@charset "UTF-8";

/* 
 * =========================================================================================
 *  STYLE.CSS 目次 (Table of Contents)
 * =========================================================================================
 *
 *  1. 共通設定 (Common Settings) .................. 変数定義, ベーススタイル, ユーティリティ
 *  2. レイアウト (Layout) ......................... ヘッダー, メインコンテンツ, フッター
 *  3. 共通コンポーネント (Common Components) ...... リンク, ボタン, フォーム(入力・選択), タイトル
 *  4. トップページ (Index) ........................ CTAエリア, 監修者セクション, お問い合わせ
 *  5. 属性入力ページ (Attribute) .................. 属性入力フォーム (共通フォームスタイル利用)
 *  6. 質問ページ (Question) ....................... 質問カード, スケール(ラジオボタン), グループ
 *  7. 診断結果ページ (Result) ..................... レーダーチャート, 分布図, フィードバック詳細
 *  8. 気づきページ (Insight) ...................... リスト形式ラジオボタン
 *  9. 完了ページ (Thanks) ......................... (共通コンポーネント利用)
 *  10. その他 (Others) ............................ エラーページ, レスポンシブ設定, アニメーション
 *
 * =========================================================================================
 */

/* ==========================================================================
   1. 共通設定 (Common Settings)
   ========================================================================== */

/* ----------------------------------------
   変数定義 (CSS Custom Properties)
   ---------------------------------------- */
:root {
    /* --- ブランドカラー --- */
    --kddi-blue: #0E0D6A;   /* メインカラー（濃い青） */
    --au-orange: #eb5505;   /* アクセントカラー（オレンジ） */
    
    /* --- テキストカラー --- */
    --text-main: #333333;         /* 本文 */
    --text-sub: #666666;          /* 補足・薄い文字 */
    --text-footer: #626262;       /* フッター文字 */
    --text-footer-copy: #7A7A7A;  /* コピーライト */
    --white: #fff;                /* 白（背景・文字） */

    /* --- 背景色 --- */
    --bg-light: #f1f2f6;        /* 薄いグレー（フッターなど） */
    --bg-lighter: #f9f9f9;      /* さらに薄いグレー（ラジオボタン背景など） */
    --bg-hover: #f0f0f0;        /* ホバー時の背景 */
    --bg-supervisor: #fdfdfd;   /* 監修者セクションの背景 */
    --bg-group-header: #e9ecef; /* 質問グループヘッダーの背景 */

    /* --- ボーダー・装飾 --- */
    --border-color: #eeeeee;    /* 一般的な区切り線 */
    --border-section: #ddd;     /* セクション枠線 */
    --color-gray-std: #ccc;     /* グラフ、入力フォーム枠線 */

    /* --- ボタン・アクション --- */
    --btn-blue: #0077c1;          /* 青ボタン（基本） */
    --btn-blue-hover: #005fa3;    /* 青ボタン（ホバー） */
    --btn-orange-hover: #d14800;  /* オレンジボタン（ホバー） */

    /* --- シャドウ（影） --- */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);   /* 小さな影 */
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);  /* 大きな影 */
    
    /* --- その他 --- */
    --color-error: #d9534f;     /* エラー色（濃い赤） */
    --color-danger: #ff0000;    /* 警告色（赤） */
    --color-annotation-bg: rgba(255, 255, 255, 0.9); /* 注釈背景 */
    
    /* --- フォント設定 --- */
    --font-family: "Noto Sans JP", "DM Sans", "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
    
    /* --- Chart.js用カラー変数（グラフ用） --- */
    --radar-bg-safe: #058AF7;
    --radar-bg-warn: rgba(255, 255, 0, 1.0);
    --radar-bg-danger: rgba(255, 0, 0, 1.0);
    
    --radar-3axis-safe: rgba(255, 0, 0, 0.6);
    --radar-3axis-warn: rgba(255, 0, 0, 0.3);
    --radar-3axis-danger: rgba(255, 255, 255, 0);

    --bar-filter-safe: rgba(0, 160, 255, 0.5);
    --bar-filter-warn: rgba(255, 200, 0, 0.5);
    --bar-filter-danger: rgba(255, 80, 80, 0.5);

     /* --- スケールUI用（ラジオボタンの色分け） --- */
    --color-safe: var(--kddi-blue);
    --color-caution: var(--au-orange);
    --color-neutral: #ccc;
    --bg-safe-light: rgba(14, 13, 106, 0.1);
    --bg-caution-light: #fff3e0;
    --border-hover: #bbb;
    --bg-selection-shadow: rgba(0, 0, 0, 0.05);
}

/* ----------------------------------------
   ベーススタイル (HTML/Body)
   ---------------------------------------- */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* 横スクロール防止 */
}

body {
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 画面いっぱいに広げる */
    color: var(--text-main);
}

*,
*::before,
*::after {
    box-sizing: border-box; /* パディングを含めたサイズ計算 */
}

a {
    transition: opacity 0.2s; /* リンクのホバーアニメーション */
    text-decoration: none;
    color: inherit;
}

a:hover {
    opacity: 0.7;
}

/* 外部リンクアイコン (target="_blank" のリンク) */
a[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    margin-left: 0.35em;
    vertical-align: -0.1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.8;
}

/* ----------------------------------------
   ユーティリティクラス
   ---------------------------------------- */
.keep {
    display: inline-block; /* 改行させない */
}

/* 汎用ユーティリティ */
.text-left {
    text-align: left !important;
    display: block;
}
.text-center {
    text-align: center !important;
    display: block;
}
.text-small-80 {
    font-size: 0.8em;
}


/* ==========================================================================
   2. レイアウト (Layout)
   ========================================================================== */

/* ----------------------------------------
   Header (ヘッダー)
   ---------------------------------------- */
header {
    width: 100%;
    text-align: center;
}

header img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ----------------------------------------
   Main (メインコンテンツエリア)
   ---------------------------------------- */
main {
    flex: 1; /* フッターを下に押し下げる */
    padding: 30px 20px;
    max-width: 800px; /* コンテンツ幅の制限 */
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ----------------------------------------
   Footer (フッター)
   ---------------------------------------- */
footer {
    background-color: var(--bg-light);
    padding: 30px 20px;
    font-size: 12px;
    color: var(--text-sub);
    width: 100%;
}

footer > * {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* フッターリンクコンテナ */
.footer-links-container {
    width: fit-content;
    margin: 0 auto 20px auto;
    max-width: 800px;
}

.footer-links {
    list-style: square; /* 四角いリストマーカー */
    list-style-position: inside;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* 折り返し許可 */
    gap: 0px 50px;
}

.footer-links-main {
    margin-bottom: 10px;
}
.footer-links-sub {
    margin-bottom: 0;
}

.footer-links li {
    text-align: left;
}
.footer-links li a {
    color: var(--text-sub);
    text-decoration: none;
}
.footer-links li a:hover {
    text-decoration: underline;
}

/* コピーライト */
.copyright {
    color: var(--text-footer-copy);
    font-size: 11px;
    font-weight: 300;
    line-height: 1.8;
    text-align: end;
    margin-top: 14px;
}
.copyright p {
    margin: 0;
    padding-right: 20px;
}


/* ==========================================================================
   3. 共通コンポーネント (Common Components)
   ========================================================================== */

/* ----------------------------------------
   リンクスタイル (KDDI風・矢印付き)
   ---------------------------------------- */
.kddi-link {
    color: var(--kddi-blue);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.kddi-link::before {
    content: "＞";
    font-size: 11px;
    margin-right: 4px;
    font-family: sans-serif;
    position: relative;
    top: -1px;
}

.kddi-link:hover {
    text-decoration: underline;
}

/* ----------------------------------------
   ボタン (Buttons) - Start, Submit, Next
   ---------------------------------------- */
/* 共通スタイル */
.btn-start,
.btn-submit,
.btn-next {
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    padding: 18px 80px;      /* サイズ統一 */
    border-radius: 100px;    /* 丸型（カプセル）統一 */
    display: inline-block;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

/* オレンジボタン (開始・戻る等) - 矢印あり */
.btn-start {
    background-color: var(--au-orange);
    color: var(--white);
}
.btn-start::after {
    content: "＞";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}
.btn-start:hover {
    background-color: var(--btn-orange-hover);
    color: var(--white);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    opacity: 1;
}

/* 青色ボタン (送信・次へ) - 矢印なし */
/* ※全ボタンオレンジ化に伴い、色は共通化 */
.btn-next,
.btn-submit {
    background-color: var(--au-orange);
    color: var(--white);
}
.btn-next:hover,
.btn-submit:hover {
    background-color: var(--btn-orange-hover);
    text-decoration: none;
}

/* 無効化ボタンのスタイル */
.btn-submit.is-disabled,
.btn-submit:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

/* ----------------------------------------
   フォーム共通 (Forms) - Attribute, Question, Insight
   ---------------------------------------- */
/* フォームコンテナ（白い箱） */
.attribute-form,
.question-form {
    background-color: var(--white);
    padding: 20px;
    border-radius: 4px;
}

/* フォームグループ（質問ごとの塊） */
.form-group {
    margin-bottom: 30px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 20px;
}
.form-group:last-child {
    border-bottom: none;
}

/* ラベルテキスト */
.input-label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 16px;
}

/* テキスト入力フィールド */
.input-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}
.form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--border-section);
    border-radius: 12px;
    background-color: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}
.form-input:hover,
.form-input:focus {
    border-color: var(--kddi-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 13, 106, 0.1);
}

/* セレクトボックス */
.select-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}
.select-wrapper::after {
    /* 三角アイコン */
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-sub);
    pointer-events: none;
}
.form-select {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--border-section);
    border-radius: 12px;
    background-color: var(--white);
    appearance: none; /* デフォルトのスタイルを消す */
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    padding-right: 45px;
}
.form-select:hover,
.form-select:focus {
    border-color: var(--kddi-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 13, 106, 0.1);
}

/* ラジオボタン (標準的な縦並び) */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.radio-label {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: var(--bg-lighter);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.radio-label:hover {
    background-color: var(--bg-hover);
}
.radio-label input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}

/* アクションエリア (ボタン配置) */
.form-actions {
    text-align: center;
    margin-top: 30px;
}

#check-notice {
    font-size: 0.7em;
    margin-top: -15px;
    padding-bottom: 10px;
}


/* ==========================================================================
   4. トップページ (Index)
   ========================================================================== */
.home-container {
    color: var(--text-main);
    line-height: 1.8;
    font-size: 16px;
}

/* CTAエリア (診断スタートボタンエリア) */
.cta-area {
    background-color: var(--bg-light);
    padding: 50px 20px;
    text-align: center;
    border-radius: 4px;
    margin: 10px 0px 40px 0px;
}

.cta-title {
    font-size: clamp(18px, 5.5vw, 24px);
    color: var(--kddi-blue);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-title .notice {
    font-size: 0.6em;
    color: var(--au-orange);
}

/* 同意チェックボックス */
.consent-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.consent-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-main);
    user-select: none;
}

.consent-text-wrapper {
    text-align: left;
    max-width: 680px;
    margin: 0 auto 20px;
    font-size: 14px;
    line-height: 1.6;
}

.consent-text-wrapper .note {
    font-size: 0.9em;
    color: var(--text-sub);
}

.consent-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ボタン無効状態 */
.btn-start.is-disabled {
    background-color: #ccc;
    pointer-events: none;
    box-shadow: none;
}
.btn-start.is-disabled:hover {
    background-color: #ccc;
}
.btn-start.is-disabled::after {
    display: none;
}

/* 監修者セクション */
.supervisor-section {
    border: 1px solid var(--border-color);
    padding: 24px 20px;
    background-color: var(--bg-supervisor);
    margin: 40px 0;
    border-radius: 8px;
}

.supervisor-section h3 {
    font-size: 16px;
    color: var(--kddi-blue);
    margin: 0 0 20px 0;
    line-height: 1.2;
    font-weight: bold;
}

.supervisor-list {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--text-main);
}
.supervisor-list li {
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 12px;
    position: relative;
    padding-left: 1.5em;
}
.supervisor-list li:last-child {
    margin-bottom: 0;
}
.supervisor-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--au-orange);
    font-size: 10px;
}

/* お問い合わせセクション (Thanksページでも共通利用) */
.contact-section {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    font-size: 14px;
    margin: 30px 0 0;
}
.contact-section p:not(:first-child) {
    margin-top: 20px;
}


/* ==========================================================================
   5. 属性入力ページ (Attribute)
   ========================================================================== */
/* ページ見出し (各ページ共通) */
.page-header h2 {
    font-size: 20px;
    color: var(--kddi-blue);
    border-bottom: 2px solid var(--au-orange);
    padding-bottom: 10px;
    margin-bottom: 40px;
}

/* 属性ページ独自のフォームスタイル（カードを透過させ、余白を調整） */
.attribute-form {
    background-color: transparent !important;
    padding: 0 !important;
}

.attribute-form .question-text {
    color: var(--kddi-blue);
    font-size: 1.2em;
    margin-bottom: 25px;
}

.attribute-form .scale-container {
    padding: 10px 0;
}


/* ==========================================================================
   6. 質問ページ (Question)
   ========================================================================== */

/* グループヘッダー (大問タイトル) */
.group-header-wrapper {
    text-align: left;
    margin-bottom: 35px;
    position: relative;
}
.group-header {
    background-color: transparent;
    color: var(--kddi-blue);
    padding: 0;
    margin: 0;
    font-size: clamp(12px, 4vw, 25px);
    font-weight: bold;
    text-align: left;
    max-width: 100%;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

/* 質問グループコンテナ (各ページごとの塊) */
.question-group-container {
    background-color: rgba(0, 0, 0, 0.015);
    border-radius: 16px;
    padding: 35px 25px 25px;
    margin-bottom: 70px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* 質問カード (個別の質問) */
.question-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.5s ease backwards; /* ふわっと表示 */
    transition: opacity 0.4s ease, transform 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
}
.question-card:last-child,
.question-group-container:last-child {
    margin-bottom: 0;
}

/* 回答済みステート (薄くする) */
.question-card.is-answered {
    opacity: 0.4 !important;
}
.question-card.is-answered:hover {
    opacity: 0.7 !important;
}

/* 質問文 */
.question-text {
    font-size: clamp(12px, 4vw, 20px);
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-main);
    text-align: start;
}
.question-label {
    font-size: 18px;
}

/* 質問メタ情報 (1/10 などの番号) */
.question-meta {
    text-align: center;
    margin-bottom: 10px;
}
.question-number {
    font-size: 0.8em;
    color: var(--text-sub);
    font-weight: bold;
    background: var(--bg-lighter);
    padding: 2px 10px;
    border-radius: 10px;
    letter-spacing: 0.05em;
}

/* スケールUI (丸いラジオボタン) */
.scale-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
}
.scale-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 1;
    flex: 1;
    transition: all 0.2s ease;
}
.scale-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}
.scale-circle {
    margin-bottom: 12px;
    width: 24px;
    height: 24px;
    background-color: var(--white);
    border: 2px solid var(--border-section);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none;
}
.scale-option.checked .scale-circle {
    border-color: var(--kddi-blue);
    background-color: var(--kddi-blue);
    box-shadow: none; /* 4px のハロー効果（影）を完全に削除 */
}
.scale-circle::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-top: -2px;
}
.scale-option.checked .scale-circle::after {
    opacity: 1;
}
.scale-label {
    font-size: 0.85em;
    color: var(--text-sub);
    text-align: center;
    line-height: 1.2;
    min-height: 2.4em;
    max-width: 80px;
    word-break: break-all;
    transition: all 0.2s ease;
}
.scale-option.checked .scale-label {
    color: var(--kddi-blue);
    font-weight: bold;
}
.scale-option:hover .scale-circle {
    border-color: var(--border-hover);
}


/* ---------------------------------------------------------
   モバイル対応 (Mobile Responsive)
   --------------------------------------------------------- */
@media (max-width: 768px) {
    .scale-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-width: 100%;
        padding: 10px 0;
    }

    .scale-option {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 16px 16px;
        border-radius: 12px;
        border: 2px solid var(--border-section);
    }

    .scale-option:hover {
        background-color: var(--bg-hover);
    }

    .scale-option.checked {
        border-color: var(--kddi-blue);
        background-color: var(--bg-safe-light);
        box-shadow: 0 0 0 2px rgba(14, 13, 106, 0.1);
    }

    .scale-circle {
        margin-bottom: 0;
        margin-right: 15px;
    }

    .scale-label {
        text-align: left;
        max-width: none;
        min-height: auto;
        font-size: 14px;
        word-break: normal;
    }
}

/* 質問フォーム特有のオーバーライド */
/* 余白強制調整（ボタンと質問の間隔を詰める） */
.question-form .question-group-container {
    margin-bottom: 0 !important;
}
.question-form .question-groups-wrapper {
    margin-bottom: 0 !important;
}
.question-form .form-actions {
    margin-top: 30px !important;
}


/* ==========================================================================
   7. 診断結果ページ (Result)
   ========================================================================== */

.page-title {
    color: var(--kddi-blue);
    font-size: clamp(20px, 5vw, 28px);
    white-space: nowrap;
    margin: 0 0 15px 0;
    text-align: center;
}

.result-box {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: none;
}

.result-description {
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.6;
}

.total-score {
    font-weight: bold;
    color: var(--au-orange);
    font-size: 4em;
    line-height: 1;
}

.score-display {
    margin-bottom: 20px;
}
.score-label {
    display: block;
    color: var(--text-sub);
    margin-bottom: 5px;
}
.score-unit {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 5px;
}

.percentile-display {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 10px;
    background-color: var(--bg-lighter);
    display: inline-block;
    border-radius: 4px;
}
.percentile-rank {
    font-weight: bold;
    font-size: 1.2em;
    color: var(--text-main);
}

/* レーダーチャート */
.radar-charts-container {
    display: flex;
    flex-direction: column;
}
.radar-chart-wrapper {
    flex: 1;
    background: var(--white);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: none;
}
.radar-chart-wrapper h3 {
    font-size: 18px;
    color: var(--kddi-blue);
    text-align: left;
    margin-bottom: 15px;
    font-weight: bold;
    border-left: 4px solid var(--au-orange);
    border-bottom: none;
    padding-left: 10px;
    padding-bottom: 0;
}

/* 分布図 */
.chart-section {
    padding: 20px 15px;
    background: transparent;
    border-radius: 0;
    border: none;
    text-align: left;
}
.chart-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--kddi-blue);
    border-left: 4px solid var(--au-orange);
    padding-left: 10px;
}
.chart-note {
    font-size: clamp(10px, 2vw, 12px);
    color: var(--text-sub);
    margin-top: 10px;
}

.chart-wrapper-responsive {
    position: relative;
    height: 250px;
    width: 100%;
    background-color: var(--white);
}

/* フィードバック詳細セクション */
.feedback-section {
    text-align: left;
    border-top: 1px solid var(--border-color);
}
.feedback-section h3 {
    font-size: 20px;
    color: var(--kddi-blue);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--au-orange);
    display: inline-block;
    padding-bottom: 5px;
}

/* フィードバックグループ - カード風デザイン */
.feedback-group {
    background-color: var(--bg-lighter);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: none;
}
.feedback-group:last-child {
    margin-bottom: 0;
}

.feedback-group-title {
    font-size: clamp(15px, 4vw, 18px);
    color: var(--kddi-blue);
    font-weight: bold;
    padding-left: 1.2em;
    margin: 0 0 20px 0;
    background-color: transparent;
    border-left: none;
    position: relative;
    line-height: 1.4;
}
.feedback-group-title::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--kddi-blue);
    font-size: 0.8em;
}

/* 項目（ボックス表示：きっかけ・心の状態・改善提案 共通） */
.trigger-group .feedback-item,
.state-of-mind-group .feedback-item,
.improvement-group .feedback-item {
    background-color: var(--white);
    border: 1px solid var(--border-color); /* レーダーチャートと統一 */
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: none;
}
.state-of-mind-group .feedback-item:last-child {
    margin-bottom: 0;
}

.feedback-group .feedback-item:last-child {
    margin-bottom: 0;
}

/* フィードバック項目 */
.feedback-item {
    margin-bottom: 15px;
}
.feedback-item:last-child {
    margin-bottom: 0;
}
.feedback-item h5 {
    font-size: 16px;
    color: var(--kddi-blue);
    font-weight: bold;
    margin: 0 0 8px 0;
    padding: 0 0 5px 0;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--border-section);
    border-radius: 0;
    box-shadow: none;
    align-items: center;
}
.feedback-item p {
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    color: var(--text-main);
    text-align: justify;
}

/* 詳細分析トグルボタン */
.advanced-details {
    margin: 0 0 40px 0;
    text-align: center;
}
.btn-toggle-details {
    display: inline-block;
    padding: 12px 40px;
    margin: 0 0 20px 0;
    background-color: var(--white);
    border: 1px solid var(--kddi-blue);
    color: var(--kddi-blue);
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    list-style: none; /* デフォルトの三角を消す */
    transition: all 0.2s;
    font-size: 16px;
    position: relative;
    user-select: none;
}
.btn-toggle-details:hover {
    background-color: var(--kddi-blue);
    color: var(--white);
    text-decoration: none;
}
.btn-toggle-details::-webkit-details-marker {
    display: none;
}
.btn-toggle-details::before {
    content: "▼ ";
    font-size: 12px;
    margin-right: 8px;
    display: inline-block;
    transition: transform 0.2s;
}
details[open] .btn-toggle-details {
    background-color: var(--kddi-blue);
    color: var(--white);
}
details[open] .btn-toggle-details::before {
    content: "▲ ";
}


/* ==========================================================================
   8. 気づきページ (Insight)
   ========================================================================== */
/* リスト形式の選択肢コンテナ */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}
/* リスト選択肢 */
.list-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: var(--white);
    border: 2px solid var(--border-section);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.list-option:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-hover);
}
/* 選択済みスタイル */
.list-option.checked {
    border-color: var(--kddi-blue);
    background-color: var(--bg-safe-light);
    box-shadow: 0 0 0 2px rgba(14, 13, 106, 0.1);
}
.list-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
/* カスタムラジオ円 */
.list-circle {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-section);
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}
.list-option.checked .list-circle {
    border-color: var(--kddi-blue);
    background-color: var(--kddi-blue);
}
.list-circle::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
    opacity: 0;
    margin-top: -2px;
    transition: opacity 0.2s ease;
}
.list-option.checked .list-circle::after {
    opacity: 1;
}
/* テキスト */
.list-label {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 500;
}
.list-option.checked .list-label {
    color: var(--kddi-blue);
    font-weight: bold;
}


/* ==========================================================================
   9. 完了ページ (Thanks)
   ========================================================================== */
/* 特有のスタイルなし（共通コンポーネントとContact Sectionを利用） */


/* ==========================================================================
   10. その他 (Others)
   ========================================================================== */

/* ----------------------------------------
   エラーページ (error.html)
   ---------------------------------------- */
.error-title {
    color: var(--color-error);
    border-bottom-color: var(--color-error);
}
.error-detail {
    margin-top: 30px;
    color: var(--text-sub);
    font-size: 0.8em;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}
/* レーダーチャートの個別アイテム */
.radar-chart-item {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
}

/* レーダーチャートの親要素 (responsive: true 対策) */
.radar-chart-wrapper {
    max-width: 400px;
    width: 100%; /* レスポンシブ対応: 固定幅 400px を解除 */
    aspect-ratio: 1 / 1;
    margin: 20px auto; /* 中央揃え + 上下余白 */
    padding: 0 15px; /* チャート自体の周囲にも左右余白を追加 */
    position: relative;
    background: #fff; /* 背景を白で固定 */
    display: block; /* ブロック要素として明示的に指定 */
}
.radar-chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
/* ブラウザ互換性: aspect-ratio非対応用 */
@supports not (aspect-ratio: 1 / 1) {
    .radar-chart-wrapper {
        padding-top: 100%; /* 正方形維持 */
    }
    .radar-chart-wrapper canvas {
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* ----------------------------------------
   レスポンシブデザイン (@media)
   ---------------------------------------- */
/* PC表示 (768px以上) */
@media (min-width: 768px) {
    /* レーダーチャートを横並びにする */
    .radar-charts-container {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    .radar-chart-item {
        width: 48%; /* 2列並びを安定化 */
    }
}

/* スマホ表示 (767px以下) */
@media (max-width: 767px) {
    /* フッターリンク縦並び */
    .footer-links-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        margin: 0;
        width: 100%;
        gap: 6px 0;
    }
    .footer-links-main {
        margin: 0 0 6px 0;
    }
    .footer-links-sub {
        margin: 0;
    }
    .footer-links li,
    .footer-links li:nth-child(5) {
        flex-basis: auto;
        text-align: left;
    }
    .copyright {
        text-align: left;
    }
    
    /* ボタン幅調整 (iPhone SE等のスマホ向け) */
    .btn-start,
    .btn-submit {
        padding: 14px 24px;
        font-size: 18px;
        width: 100%;
        max-width: 400px;
    }

    /* 質問スケール調整 */
    .scale-container {
        padding: 10px 0;
    }
}

/* ----------------------------------------
   アニメーション定義 (@keyframes)
   ---------------------------------------- */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-card {
    animation: slideUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: var(--delay, 0s);
    opacity: 0;
}
.question-card:nth-child(1) { animation-delay: 0.1s; }
.question-card:nth-child(2) { animation-delay: 0.2s; }
.question-card:nth-child(3) { animation-delay: 0.3s; }

/* ==========================================================================
   11. Modal (利用規約)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: var(--white);
    width: 90%;
    max-width: 640px;
    max-height: 60vh;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

@media (max-height: 700px) {
    .modal-container {
        max-height: 80vh;
    }
}

.modal-overlay.is-open .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: var(--kddi-blue);
}

.modal-close-icon {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-sub);
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1; /* 残りの高さを埋める */
    font-size: 14px;
    line-height: 1.8;
}

.modal-content-text p {
    margin: 0 0 15px 0;
}
.modal-content-text p:last-child {
    margin-bottom: 0;
}

.modal-content-text .note {
    font-size: 0.9em;
    color: var(--text-sub);
    background-color: var(--bg-lighter);
    padding: 10px;
    border-radius: 4px;
    display: block;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background-color: var(--bg-light);
    border-radius: 0 0 12px 12px;
}

/* ボタン関係 */
.btn-consent-check {
    background-color: var(--white);
    color: var(--kddi-blue);
    border: 2px solid var(--kddi-blue);
    padding: 15px 30px;
    border-radius: 100px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    display: inline-block;
    margin-top: 10px;
}
.btn-consent-check:hover {
    background-color: #f0f8ff;
}
.btn-consent-check.is-agreed {
    background-color: var(--kddi-blue);
    color: var(--white);
}
.btn-consent-check.is-agreed::before {
    content: "\2713 ";
    margin-right: 5px;
}
/* スクロール禁止用クラス */
.no-scroll {
    overflow: hidden !important;
}

/* モーダル表示時の背景操作無効化 */
.home-container.is-frozen > *:not(#consent-modal) {
    pointer-events: none;
    user-select: none;
    filter: blur(1px); /* オプション: 背景を少しぼかすと分かりやすい */
}

/* モーダル自体は操作可能にする */
#consent-modal {
    pointer-events: auto;
}
