/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    background-color: #ffffff;
    color: #132045;
    overflow-x: hidden;
}

/* ページコンテナ */
.shindan-page-container {
    position: relative;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* ゲージ */
.shindan-gauge {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    overflow: hidden;
    background: #FFF;
    border-bottom: 2px solid #EFEFEF;
    z-index: 100;
}

.shindan-gauge-content {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.shindan-gauge-bar-container {
    position: relative;
    width: 486px;
    height: 24px;
    border-radius: 100px;
    overflow: hidden;
}

.shindan-gauge-bar-bg {
    position: absolute;
    inset: 0;
    background: #efefef;
    border-radius: 100px;
}

.shindan-gauge-bar-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #3EB8E7 0%, #62FFD0 100%);
    border-radius: 100px;
    width: 0%;
    transition: width 0.3s ease;
}

.shindan-gauge-text {
    color: var(--textcolor, #132045);
    text-align: center;
    font-family: "Hiragino Kaku Gothic ProN";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 14px; /* 87.5% */
    white-space: nowrap;
}

.shindan-gauge-text span {
    font-weight: 300;
}

/* FV (First View) */
.shindan-fv {
    position: relative;
    margin-top: 0;
    left: 0;
    right: 0;
    height: 200px;
    overflow: hidden;
    background: #E5F4FA;
}

.shindan-ttl {
    position: relative;
    margin-top: 31px;
    left: 50%;
    transform: translateX(-50%);
    width: 576px;
    background: white;
    border-left: none;
    border-right: none;
    padding: 23px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.shindan-ttl::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(294deg, #00A6D3 -1%, #69B980 34.35%, #F6BB00 64.65%, #EA83B0 100%);
}

.shindan-ttl::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(294deg, #00A6D3 -1%, #69B980 34.35%, #F6BB00 64.65%, #EA83B0 100%);
}

.shindan-ttl-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.shindan-frame-2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    align-self: center;
}

.shindan-ttl-main {
    font-family: "Noto Sans JP";
    font-size: 21px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1px;
    background: linear-gradient(294deg, #00A6D3 -1%, #69B980 34.35%, #F6BB00 64.65%, #EA83B0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;    
}

.shindan-ttl-sub {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #132045;
    white-space: nowrap;
}

/* Body */
.shindan-body {
    position: relative;
    margin-top: 0;
    left: 0;
    right: 0;
    background: white;
    padding-bottom: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

/* 質問リスト */
.shindan-questions-list {
    width: 674px;
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
}

/* 質問アイテム */
.shindan-question-item {
    display: flex;
    height: 186px;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
}

.shindan-question-item.inactive {
    opacity: 0.3;
}

.shindan-question-item.active {
    opacity: 1;
}

.shindan-question-wrap {
    display: flex;
    padding-bottom: 24px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    align-self: stretch;
    border-bottom: 1px solid #EEE;
}

.shindan-question-text {
    color: #132045;
    text-align: center;
    font-family: "Hiragino Kaku Gothic ProN";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
}

/* Yes/No */
.shindan-yesno {
    position: relative;
    width: 342px;
    height: 66px;
    margin: 0 auto;
}

.shindan-yes-label,
.shindan-no-label {
    position: absolute;
    bottom: 0;
    font-family: 'Hiragino Kaku Gothic ProN';
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    color: #132045;
}

.shindan-yes-label {
    left: 2.34%;
    top: 63.64%;
}

.shindan-no-label {
    right: 0;
    top: 63.64%;
}

.shindan-icons-row {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shindan-icon {
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.shindan-icon:hover {
    transform: scale(1.1);
}

.shindan-icon-large {
    width: 48px;
    height: 42px;
}

.shindan-icon-medium {
    width: 38px;
    height: 33px;
}

.shindan-icon-small {
    width: 28px;
    height: 25px;
}

.shindan-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* コントロール */
.shindan-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.shindan-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.shindan-btn {
    height: 48px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    transition: opacity 0.3s;
}

.shindan-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shindan-btn-prev {
    width: 140px;
    background: #b8b8b8;
}

.shindan-btn-next {
    width: 140px;
    background: #00a6d3;
}

.shindan-btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ページャー */
.shindan-pager {
    display: flex;
    gap: 8px;
    align-items: center;
}

.shindan-pager-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #efefef;
    transition: background 0.3s;
}

.shindan-pager-dot.active {
    background: linear-gradient(90deg, #3EB8E7 0%, #62FFD0 100%);
}

/* Hover時のopacity統一 */
.shindan-btn-next:hover,
.shindan-btn-prev:hover {
    opacity: 0.6;
}

/* スマホサイズ */
@media (max-width: 767px) {
    .shindan-page-container {
        width: 100%;
    }
    
    .shindan-ttl {
        width: 342px;
    }
    
    .shindan-gauge-bar-container {
        width: 259px;
    }
    
    .shindan-questions-list {
        width: 100% !important;
    }
    
    .shindan-question-wrap {
        width: 342px !important;
        margin: 0 auto;
    }
    
    .shindan-question-text {
        text-align: left !important;
    }
}
