/* ===================================
   基本設定
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 100%);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ===================================
   ページ表示制御
=================================== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ===================================
   トップページ
=================================== */
#top-page {
    text-align: center;
    padding: 60px 20px;
}

#top-page h1 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-weight: 700;
}

#top-page > p {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 50px;
    font-weight: 500;
}

/* 特徴カード */
.features {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    flex: 1 1 0;
    min-width: 200px;
    max-width: 320px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 2rem;
    color: #4A90A4;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.3;
}

.feature-card p {
    display: none;
}

/* ===================================
   ボタン
=================================== */
.btn-primary, .btn-secondary {
    padding: 25px 80px;
    font-size: 1.8rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    margin-top: 50px;
    box-shadow: 0 6px 20px rgba(93, 173, 226, 0.5);
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #5DADE2 0%, #87CEEB 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(93, 173, 226, 0.6);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

/* ===================================
   オリエンテーションページ（統合版・スタイリッシュ）
=================================== */
#orientation-page {
    background: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 100%);
    min-height: 100vh;
    padding: 60px 20px;
}

#orientation-page .container {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-width: 900px;
}

#orientation-page h1 {
    color: #4A90A4;
    margin-bottom: 40px;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
}

#orientation-page h2 {
    color: #4A90A4;
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.orientation-content {
    margin-bottom: 40px;
    line-height: 1.8;
}

.orientation-content p {
    color: #4a5568;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.orientation-content ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.orientation-content li {
    margin-bottom: 12px;
    color: #4a5568;
    font-size: 1.05rem;
}

/* 区切り線 */
.divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, #87CEEB, transparent);
    margin: 50px 0;
}

/* フォーム */
.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #5DADE2;
    background: white;
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.1);
}

/* 基本情報セクション */
#orientation-page form {
    background: #f7fafc;
    padding: 40px;
    border-radius: 15px;
    margin-top: 30px;
}

#orientation-page form h2 {
    margin-top: 0;
}

/* ===================================
   診断ページ（上部固定対応）
=================================== */
#survey-page {
    background-color: #f0f4f8;
    min-height: 100vh;
    padding-top: 280px; /* 230px → 280px に変更 */
    position: relative; 
}

/* 🔥 固定ヘッダー全体 */
#fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 🔥 進捗バーコンテナ */
#progress-bar-container {
    padding: 20px;
    background: white;
}

#progress-bar {
    max-width: 900px;
    margin: 0 auto;
    height: 35px;
    background-color: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

#progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5dade2, #3498db);
    transition: width 0.4s ease;
    border-radius: 20px;
}

#progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* 🔥 カテゴリーヘッダー（固定 + 中央揃え） */
#category-header-fixed {
    background: linear-gradient(135deg, #5dade2, #3498db);
    color: white;
    padding: 20px;
    text-align: center;
}

.category-header h2 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

/* ✨ 評価凡例（横1行表示）【新規追加】 */
#rating-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px 10px;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    font-size: 14px;
    flex-wrap: wrap;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.rating-num {
    font-weight: bold;
    color: #5dade2;
    font-size: 16px;
}

/* カテゴリー5の説明文 */
.category-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 20px auto;
    border-radius: 8px;
    color: #856404;
    font-size: 1rem;
    max-width: 900px;
    text-align: center;
}

.category-note p {
    margin: 0;
}

/* ===================================
   質問コンテンツ（中央揃え）
=================================== */
#survey-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.section-container {
    margin-bottom: 40px;
}

.question-block {
    background: white;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.question-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.question-text {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

/* ===================================
   回答ボタン（丸型・サイズ差）
=================================== */
.answer-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.answer-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.answer-option input[type="radio"] {
    display: none;
}

.answer-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
    border: 3px solid #dfe6e9;
    color: #34495e;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* サイズ差: ①と⑤が大きい、②と④が中、③が小 */
.answer-option:nth-child(1) span, /* ① */
.answer-option:nth-child(5) span  /* ⑤ */ {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
}

.answer-option:nth-child(2) span, /* ② */
.answer-option:nth-child(4) span  /* ④ */ {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
}

.answer-option:nth-child(3) span  /* ③ */ {
    width: 44px;
    height: 44px;
    font-size: 1rem;
}

/* ホバー効果 */
.answer-option:hover span {
    background: #e3f2fd;
    border-color: #5dade2;
    transform: scale(1.1);
}

/* 選択時のスタイル */
.answer-option input[type="radio"]:checked + span {
    background: linear-gradient(135deg, #5dade2, #3498db);
    border-color: #3498db;
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(93, 173, 226, 0.4);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .answer-options {
        gap: 12px;
    }
    
    .answer-option:nth-child(1) span,
    .answer-option:nth-child(5) span {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .answer-option:nth-child(2) span,
    .answer-option:nth-child(4) span {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .answer-option:nth-child(3) span {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

/* ===================================
   ナビゲーションボタン
=================================== */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ===================================
   結果ページ - WEVOX風デザイン
=================================== */
#result-page {
    background: linear-gradient(135deg, #ffeef8 0%, #f3e5f5 50%, #e1bee7 100%);
    min-height: 100vh;
    padding: 60px 20px;
    overflow-y: auto;
    position: relative;
}

/* 診断結果タイトル */
.result-title {
    text-align: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* 総合スコアカード */
.result-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 70px;
}

.score-card {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    border-radius: 30px;
    padding: 60px 100px;
    box-shadow: 0 20px 60px rgba(233, 30, 99, 0.4);
    text-align: center;
    color: white;
    min-width: 450px;
    position: relative;
    overflow: hidden;
}

.score-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.score-label {
    font-size: 1.4rem;
    margin-bottom: 25px;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 1px;
}

.score-display {
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.total-score {
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.score-suffix {
    font-size: 3rem;
    margin-left: 15px;
    opacity: 0.9;
    font-weight: 600;
}

.score-max {
    font-size: 1.2rem;
    margin-top: 15px;
    opacity: 0.9;
    font-weight: 500;
}

.score-gauge {
    margin-top: 35px;
    height: 18px;
    background: rgba(255,255,255,0.25);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff, #fce4ec);
    border-radius: 15px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

/* セクションタイトル */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* チャートコンテナ */
.chart-container {
    background: white;
    padding: 60px 50px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(156, 39, 176, 0.15);
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid rgba(233, 30, 99, 0.1);
}

#radar-chart {
    max-width: 100%;
    height: auto;
}

/* フィードバックセクション */
.feedback-section {
    background: white;
    padding: 60px 50px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(156, 39, 176, 0.15);
    margin-bottom: 60px;
    border: 2px solid rgba(233, 30, 99, 0.1);
}

.feedback-overall {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.1);
}

.feedback-score-text {
    font-size: 1.6rem;
    color: #880e4f;
    margin-bottom: 20px;
    font-weight: 700;
}

.feedback-message {
    font-size: 1.3rem;
    padding: 25px;
    border-radius: 15px;
    font-weight: 600;
    line-height: 1.6;
}

.feedback-message.excellent {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    color: #1b5e20;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.2);
}

.feedback-message.good {
    background: linear-gradient(135deg, #fff9c4, #fff59d);
    color: #f57f17;
    box-shadow: 0 5px 20px rgba(255, 235, 59, 0.2);
}

.feedback-message.warning {
    background: linear-gradient(135deg, #ffccbc, #ffab91);
    color: #bf360c;
    box-shadow: 0 5px 20px rgba(255, 87, 34, 0.2);
}

/* 最高/最低カテゴリー表示 */
.category-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-bottom: 50px;
}

.highlight-card {
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.highlight-card.best {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    border-left: 6px solid #4caf50;
}

.highlight-card.worst {
    background: linear-gradient(135deg, #ffccbc, #ffab91);
    border-left: 6px solid #ff5722;
}

.highlight-label {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.highlight-icon {
    font-size: 1.8rem;
}

.highlight-category {
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.highlight-score {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 改善提案 */
.improvement-suggestions {
    background: linear-gradient(135deg, #e1f5fe, #b3e5fc);
    padding: 40px;
    border-radius: 20px;
    border-left: 6px solid #03a9f4;
    box-shadow: 0 5px 20px rgba(3, 169, 244, 0.15);
}

.improvement-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #01579b;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.improvement-list {
    list-style: none;
    padding: 0;
}

.improvement-list li {
    padding: 20px 25px;
    margin-bottom: 15px;
    background: white;
    border-radius: 15px;
    font-size: 1.15rem;
    color: #2c3e50;
    line-height: 1.7;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid #03a9f4;
}

.improvement-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 18px rgba(0,0,0,0.1);
}

.improvement-list li:before {
    content: "💡 ";
    margin-right: 12px;
    font-size: 1.3rem;
}

/* もう一度診断するボタン */
.btn-restart {
    display: block;
    margin: 0 auto;
    padding: 20px 60px;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4);
    transition: all 0.3s ease;
}

.btn-restart:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.5);
}


/* ===================================
   レスポンシブ対応（スマホ）
=================================== */
@media (max-width: 768px) {
    #top-page h1 {
        font-size: 2rem;
    }

    .features {
        flex-direction: column;
        gap: 20px;
    }

    .feature-card {
        max-width: 100%;
    }

    .feature-card h3 {
        font-size: 1.6rem;
    }

    .btn-primary, .btn-secondary {
        padding: 18px 50px;
        font-size: 1.4rem;
    }

    #orientation-page .container {
        padding: 30px 20px;
    }

    #orientation-page h1 {
        font-size: 1.8rem;
    }

    #survey-page {
        padding-top: 310px; /* スマホ用の余白調整（評価凡例分を含む） */
    }

    .category-header h2 {
        font-size: 1.3rem;
    }

    /* ✨ 評価凡例（スマホ対応）【新規追加】 */
    #rating-legend {
        font-size: 11px;
        gap: 10px;
        padding: 10px 5px;
    }

    .rating-num {
        font-size: 14px;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .answer-options {
        gap: 10px;
    }

    .answer-option {
    }

    .nav-buttons {
        flex-direction: column;
    }

    .total-score {
        font-size: 3.5rem;
    }
 /* 結果ページのスマホ対応 */
    .result-title {
        font-size: 2.5rem;
    }

    .score-card {
        min-width: auto;
        padding: 40px 35px;
    }

    .total-score {
        font-size: 5rem;
    }

    .score-suffix {
        font-size: 2rem;
    }

    .category-highlights {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .chart-container {
        padding: 40px 25px;
    }

    .feedback-section {
        padding: 40px 25px;
    }

    .highlight-category {
        font-size: 1.6rem;
    }

    .highlight-score {
        font-size: 2.5rem;
    }

    .improvement-list li {
        font-size: 1.05rem;
        padding: 18px 20px;
    }
}
