/**
 * MBTI風診断クイズ - スタイルシート
 */

/* 結果ページ専用スタイル（SWELLを上書き） */
.mbti-result-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.mbti-result-type-name {
    font-size: 48px !important;
    color: #00BFA5 !important;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold !important;
    line-height: 1.2 !important;
}

.mbti-result-type-code {
    text-align: center;
    font-size: 24px !important;
    color: #666 !important;
    margin-bottom: 40px !important;
}

.mbti-result-image-wrapper {
    text-align: center;
    margin: 40px 0;
}

.mbti-result-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.mbti-result-image-placeholder {
    background: #f0f0f0;
    padding: 60px;
    color: #999;
    border-radius: 8px;
}

.mbti-result-section {
    margin: 60px 0;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mbti-result-heading {
    font-size: 32px !important;
    margin-bottom: 30px !important;
    color: #333 !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    border: none !important;
    padding: 0 !important;
}

.mbti-result-text {
    font-size: 20px !important;
    line-height: 1.8 !important;
    color: #555 !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .mbti-result-type-name {
        font-size: 36px !important;
    }

    .mbti-result-type-code {
        font-size: 18px !important;
    }

    .mbti-result-section {
        padding: 20px;
    }

    .mbti-result-heading {
        font-size: 24px !important;
    }

    .mbti-result-text {
        font-size: 16px !important;
    }
}

/* クイズ本体のスタイル */
.mbti-quiz-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
}

.mbti-quiz-container h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #00BFA5;
    font-weight: bold;
    text-align: center;
}

.mbti-quiz-container > p {
    font-size: 24px;
    color: #666;
    margin-bottom: 60px;
    text-align: center;
}

.mbti-quiz-form {
    background: #ffffff;
    border: none;
    border-radius: 0;
    padding: 20px 0;
}

/* プログレスバー */
.mbti-progress-wrapper {
    margin-bottom: 80px;
}

.mbti-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: #666;
}

.mbti-progress {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
}

.mbti-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00BFA5, #26C6DA);
    transition: width 0.3s ease;
    border-radius: 20px;
}

/* 質問 */
.mbti-question {
    margin-bottom: 120px;
    padding-bottom: 80px;
    border-bottom: 2px solid #f0f0f0;
}

.mbti-question:last-child {
    border-bottom: none;
}

.mbti-question-number {
    font-size: 28px;
    color: #999;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.mbti-question-text {
    font-size: 26px !important;
    font-weight: 600 !important;
    margin-bottom: 40px !important;
    color: #333 !important;
    text-align: center !important;
    line-height: 1.6 !important;
}

/* 6段階選択肢（ハート） */
.mbti-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mbti-option-labels {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 800px;
}

.mbti-option-label {
    font-size: 24px;
    color: #555;
    text-align: center;
}

.mbti-option-hearts {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.mbti-heart {
    cursor: pointer;
    font-size: 100px;
    line-height: 0.9;
    display: inline-block;
    transition: all 0.2s ease;
    user-select: none;
}

/* 左側3つ（A寄り）= ティールグリーン系グラデーション（プラス値） */
.mbti-heart[data-value="3"],
.mbti-heart[data-value="2"],
.mbti-heart[data-value="1"] {
    color: #B2EBF2;
}

.mbti-heart[data-value="3"]:hover,
.mbti-heart[data-value="2"]:hover,
.mbti-heart[data-value="1"]:hover {
    color: #26C6DA;
}

.mbti-heart[data-value="3"].selected,
.mbti-heart[data-value="2"].selected,
.mbti-heart[data-value="1"].selected {
    color: #00BFA5;
}

/* 右側3つ（B寄り）= ピンク系グラデーション（マイナス値） */
.mbti-heart[data-value="-1"],
.mbti-heart[data-value="-2"],
.mbti-heart[data-value="-3"] {
    color: #FFD0E0;
}

.mbti-heart[data-value="-1"]:hover,
.mbti-heart[data-value="-2"]:hover,
.mbti-heart[data-value="-3"]:hover {
    color: #FF69B4;
}

.mbti-heart[data-value="-1"].selected,
.mbti-heart[data-value="-2"].selected,
.mbti-heart[data-value="-3"].selected {
    color: #FF1493;
}

.mbti-ab-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 700px;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-top: 5px;
}

/* ボタン */
.mbti-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 100px;
    margin-bottom: 60px;
}

.mbti-button {
    background: #00BFA5;
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 191, 165, 0.3);
}

.mbti-button:hover:not(:disabled) {
    background: #009688;
    box-shadow: 0 8px 24px rgba(0, 191, 165, 0.4);
    transform: translateY(-4px);
}

.mbti-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.mbti-prev-button {
    background: #9E9E9E;
    box-shadow: 0 4px 16px rgba(158, 158, 158, 0.3);
}

.mbti-prev-button:hover:not(:disabled) {
    background: #757575;
    box-shadow: 0 8px 24px rgba(117, 117, 117, 0.4);
}

.mbti-submit-button {
    background: #00BFA5;
}

/* ページインジケーター */
.mbti-page-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.mbti-page-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #D0D0D0;
    transition: all 0.3s ease;
}

.mbti-page-dot.active {
    background: #00BFA5;
    transform: scale(1.3);
}

/* 結果ページ */
.mbti-result {
    text-align: center;
}

.mbti-result-type {
    font-size: 96px;
    font-weight: bold;
    color: #00BFA5;
    margin: 40px 0;
}

.mbti-result-name {
    font-size: 64px;
    margin-bottom: 20px;
}

.mbti-result-subtitle {
    font-size: 36px;
    color: #666;
    margin-bottom: 60px;
}

.mbti-result-image {
    max-width: 600px;
    margin: 40px auto;
    border-radius: 16px;
}

.mbti-result-section {
    text-align: left;
    margin: 60px 0;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mbti-result-section h3 {
    font-size: 44px;
    margin-bottom: 30px;
    color: #333;
}

.mbti-result-section p {
    font-size: 30px;
    line-height: 1.8;
    color: #555;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .mbti-quiz-container {
        padding: 15px;
    }

    .mbti-quiz-container h2 {
        font-size: 36px;
    }

    .mbti-quiz-container > p {
        font-size: 18px;
    }

    .mbti-progress-text {
        font-size: 16px;
    }

    .mbti-question-text {
        font-size: 20px !important;
    }

    .mbti-option-label {
        font-size: 18px;
    }

    .mbti-option-hearts {
        gap: 12px;
    }

    .mbti-heart {
        font-size: 60px;
    }

    .mbti-ab-labels {
        font-size: 20px;
        margin-top: 3px;
    }

    .mbti-button {
        padding: 14px 32px;
        font-size: 18px;
    }

    .mbti-result-type {
        font-size: 72px;
    }

    .mbti-result-name {
        font-size: 48px;
    }

    .mbti-result-subtitle {
        font-size: 28px;
    }

    .mbti-result-section h3 {
        font-size: 32px;
    }

    .mbti-result-section p {
        font-size: 24px;
    }
}
