/* ============================================================
   Joborn適職診断 — モダンデザイン
   ============================================================ */

/* ----- デザイントークン ----- */
:root {
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f5f7fb;
    --bg-soft: #eef2f9;
    --white: #ffffff;

    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --cyan: #06b6d4;
    --coral: #ff6b35;
    --coral-dark: #f0480c;

    --grad-brand: linear-gradient(120deg, #2563eb 0%, #06b6d4 100%);
    --grad-warm: linear-gradient(120deg, #ff8a3d 0%, #ff5722 100%);
    --grad-hero: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #0e7490 100%);

    --radius: 18px;
    --radius-lg: 26px;
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);

    --maxw: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic Medium', 'Meiryo', sans-serif;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ----- ヘッダー ----- */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
}

.header-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

/* ----- メイン ----- */
.main {
    margin-top: 66px;
    min-height: calc(100vh - 66px);
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.page { display: none; }
.page.active { display: block; }

/* ============================================================
   トップページ
   ============================================================ */
#top-page {
    background:
        radial-gradient(900px 420px at 80% -10%, rgba(6, 182, 212, 0.14), transparent 60%),
        radial-gradient(800px 380px at 0% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
        var(--bg);
    padding: 72px 0 90px;
}

.hero-section {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.15;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 28px;
}

/* ロゴ風タイトル（Joborn ＋ 適職診断のカラーボックス） */
.brand-logo {
    width: fit-content;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.brand-name {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    color: var(--ink);
}
.brand-boxes { display: flex; gap: 6px; }
.bx {
    width: 78px; height: 78px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 2.7rem;
    font-weight: 800;
    border-radius: 5px;
}
.bx-navy { background: #13357f; }
.bx-blue { background: #2563eb; }

.hero-description { margin-bottom: 26px; }

.hero-description p {
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
}

.highlight { color: var(--coral); font-weight: 800; }
.highlight-red { color: var(--coral); font-weight: 800; }

.hero-features { margin-bottom: 18px; }
.hero-features p { font-size: 1.25rem; color: var(--ink-soft); }

.hero-time p { font-size: 1.35rem; color: var(--ink-soft); margin-bottom: 34px; }
.highlight-large {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand);
    margin: 0 4px;
}

.start-btn {
    background: var(--grad-warm);
    color: #fff;
    border: none;
    padding: 20px 46px;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 12px 30px rgba(255, 87, 34, 0.35);
}
.start-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(255, 87, 34, 0.45); }

/* ============================================================
   診断ページ
   ============================================================ */
#diagnosis-page {
    background: var(--bg);
    min-height: calc(100vh - 66px);
    padding: 20px 0 90px;
}

.progress-bar-container {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px 0;
    z-index: 999;
    border-bottom: 1px solid var(--line);
}

.progress-bar {
    max-width: var(--maxw);
    margin: 0 24px;
    height: 10px;
    background-color: var(--bg-soft);
    border-radius: 999px;
    overflow: hidden;
}
@media (min-width: 1148px) {
    .progress-bar { margin: 0 auto; }
}

.progress-fill {
    height: 100%;
    background: var(--grad-brand);
    width: 0%;
    border-radius: 999px;
    transition: width .4s ease;
}

.question-container {
    margin: 84px auto 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow);
    max-width: 760px;
}

.question {
    padding-bottom: 34px;
    margin-bottom: 34px;
    border-bottom: 1px dashed var(--line);
}
.question:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.question-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--ink);
    text-align: center;
    line-height: 1.6;
}

.answer-options {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
}

.answer-option {
    flex: 1;
    max-width: 150px;
    text-align: center;
    cursor: pointer;
    transition: transform .2s ease;
}
.answer-option:hover { transform: translateY(-2px); }

.answer-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid transparent;
    transition: all .2s ease;
}
.answer-option.moderate .answer-circle { width: 44px; height: 44px; margin-top: 7px; }

/* そう思う側（青）／そう思わない側（コーラル） */
.answer-option:nth-child(1) .answer-circle { background: rgba(37, 99, 235, .16); border-color: var(--brand); }
.answer-option:nth-child(2) .answer-circle { background: rgba(37, 99, 235, .10); border-color: #93b4f5; }
.answer-option:nth-child(3) .answer-circle { background: rgba(255, 107, 53, .10); border-color: #f6b69a; }
.answer-option:nth-child(4) .answer-circle { background: rgba(255, 107, 53, .16); border-color: var(--coral); }

.answer-option:hover .answer-circle { transform: scale(1.08); }

.answer-option:nth-child(1).selected .answer-circle,
.answer-option:nth-child(2).selected .answer-circle {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 6px 18px rgba(37, 99, 235, .45);
}
.answer-option:nth-child(3).selected .answer-circle,
.answer-option:nth-child(4).selected .answer-circle {
    background: var(--coral);
    border-color: var(--coral);
    box-shadow: 0 6px 18px rgba(255, 107, 53, .45);
}

.answer-text {
    font-size: 0.85rem;
    color: var(--ink-soft);
    font-weight: 600;
    line-height: 1.35;
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 38px;
}

.next-btn, .prev-btn {
    color: #fff;
    border: none;
    padding: 15px 34px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    min-width: 150px;
}
.next-btn { background: var(--brand); box-shadow: 0 10px 24px rgba(37, 99, 235, .3); }
.next-btn:hover:not(:disabled) { background: var(--brand-dark); transform: translateY(-2px); }
.next-btn:disabled { background: #cbd5e1; cursor: not-allowed; box-shadow: none; }
.prev-btn { background: #fff; color: var(--ink-soft); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.prev-btn:hover { background: var(--bg-soft); transform: translateY(-2px); }

/* ============================================================
   FAQ
   ============================================================ */
#faq-section {
    padding: 70px 24px;
    max-width: 800px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 36px;
    color: var(--ink);
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.faq-item h3 { font-size: 1.15rem; color: var(--brand); margin-bottom: 8px; }
.faq-item p { font-size: 1rem; color: var(--ink-soft); }

/* ============================================================
   Thanks ページ
   ============================================================ */
.thanks-body {
    background: var(--bg);
    /* 結果ページはモックアップに合わせて紫を基調に（このスコープ内だけ上書き） */
    --brand: #7c5cff;
    --brand-dark: #6b46e5;
    --grad-brand: linear-gradient(120deg, #7c5cff 0%, #9d7bff 100%);
}
.thanks-body .main { padding-bottom: 40px; }
#thanks-content { max-width: 1240px; margin: 0 auto; padding-top: 26px; }

/* Thanks ヘッダー（ロゴ + もう一度診断する） */
.header-thanks { display: flex; align-items: center; justify-content: space-between; max-width: 1240px; }
.header-restart {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, background .2s ease;
}
.header-restart:hover { background: var(--bg-soft); transform: translateY(-1px); }

.no-result {
    max-width: 600px;
    margin: 80px auto;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 50px 30px;
    box-shadow: var(--shadow);
}
.no-result h1 { font-size: 1.6rem; margin-bottom: 14px; }
.no-result p { color: var(--muted); margin-bottom: 26px; }

.cta-btn {
    display: inline-block;
    background: var(--grad-warm);
    color: #fff;
    text-decoration: none;
    padding: 15px 36px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(255, 87, 34, .35);
}

/* ----- ダッシュボード・グリッド ----- */
.dashboard {
    display: grid;
    grid-template-columns: 1fr;   /* スマホ：1カラム（全幅で見出しの折り返しを防ぐ） */
    gap: 14px;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

/* スマホでは hero / 傾向 / アドバイス / 特性チャート は全幅 */
.d-hero, .d-insights, .d-advice, .d-radar { grid-column: 1 / -1; }

/* セクションごとに背景色を変えて単調さを解消 */
.d-insights   { background: linear-gradient(160deg, #eef4ff, #fbfdff); border-color: #dce8ff; }
.d-strengths  { background: linear-gradient(160deg, #eff8ff, #fbfeff); border-color: #cfe8fb; }
.d-weaknesses { background: linear-gradient(160deg, #fff5ec, #fffdfb); border-color: #ffd9bd; }
.d-suitable   { background: linear-gradient(160deg, #ecfdf6, #fbfffd); border-color: #c4f1de; }
.d-unsuitable { background: linear-gradient(160deg, #f5f7fa, #fdfdfe); border-color: #e3e8ef; }
.d-advice     { background: linear-gradient(160deg, #fffbeb, #fffef8); border-color: #fde9a8; }
.d-radar      { background: linear-gradient(160deg, #f6f3ff, #fdfcff); border-color: #e3dbff; }
/* 各セクションのアイコン色をテーマに合わせる */
.d-weaknesses .card-title svg { color: var(--coral); }
.d-suitable   .card-title svg { color: #10b981; }
.d-advice     .card-title svg { color: #d4a017; }
.d-radar      .card-title svg { color: #7c5cff; }

.card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--ink);
}
.card-title svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; }

/* ----- ヒーロー（タイプ） ----- */
.d-hero { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; }
.hero-illust {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;            /* 600×600の正方形キャラ画像に合わせる */
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-illust .illust-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-illust .illust-fallback { display: none; width: 80%; }
.hero-illust.noimg .illust-img { display: none; }
.hero-illust.noimg .illust-fallback { display: block; }
.illust { width: 100%; height: auto; }

.hero-label { font-size: .9rem; color: var(--muted); font-weight: 700; letter-spacing: 1px; }
.hero-name {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 1px;
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    margin: 4px 0 12px;
}
.hero-catch { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.hero-desc { font-size: .96rem; color: var(--ink-soft); line-height: 1.85; }

/* ----- 傾向（4指標） ----- */
.ax-list { display: flex; flex-direction: column; }
.ax-row { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.ax-row:last-child { border-bottom: none; }
.ax-title { font-size: .78rem; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.ax-main { display: flex; align-items: center; gap: 10px; }
.ax-letter {
    width: 38px; height: 38px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(124, 92, 255, .12);
    color: var(--brand);
    border-radius: 10px;
}
.ax-letter svg { width: 21px; height: 21px; }
.ax-text { display: flex; flex-direction: column; line-height: 1.25; width: 96px; flex-shrink: 0; }
.ax-label { font-weight: 800; font-size: .95rem; }
.ax-desc { font-size: .72rem; color: var(--muted); }
.ax-bar { flex: 1; height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; min-width: 40px; }
.ax-fill { height: 100%; width: 0; background: var(--grad-brand); border-radius: 999px; transition: width .9s ease; }
.ax-pct { width: 40px; text-align: right; font-weight: 800; font-size: .82rem; color: var(--brand); flex-shrink: 0; }

/* ----- 強み・気をつけたい点 ----- */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }
.check-list svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; }
.check-list.pos svg { color: #22c55e; }
.check-list.neg svg { color: var(--coral); }

/* ----- 職種 ----- */
.job-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.job-chip {
    display: flex; align-items: center; gap: 7px;
    background: rgba(124, 92, 255, .08);
    color: var(--brand-dark);
    border: 1px solid rgba(124, 92, 255, .16);
    padding: 9px 12px;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 700;
}
.job-chip svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .8; }
.job-chip.muted { background: rgba(100, 116, 139, .08); border-color: rgba(100, 116, 139, .16); color: var(--muted); }

/* ----- アドバイス ----- */
.advice-body { display: flex; align-items: center; gap: 14px; }
.advice-body p { color: var(--ink-soft); font-size: .94rem; line-height: 1.85; }
.advice-illust { width: 86px; flex-shrink: 0; }
.advice-illust .illust-advice { width: 100%; height: auto; }

/* ----- 特性チャート（五角形レーダー） ----- */
.radar-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.radar-svg { width: 100%; max-width: 240px; height: auto; }
.radar-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-data {
    fill: rgba(124, 92, 255, .2);
    stroke: var(--brand);
    stroke-width: 2.5;
    transform-origin: center;
    transform: scale(0);
    transition: transform .7s cubic-bezier(.34, 1.56, .64, 1);
}
.radar-data.show { transform: scale(1); }
.radar-dot { fill: var(--brand); }
.radar-label { font-size: 12px; font-weight: 700; fill: var(--ink-soft); }

.radar-legend { list-style: none; width: 100%; display: flex; flex-direction: column; gap: 9px; }
.radar-legend li { display: grid; grid-template-columns: 20px 60px 1fr 42px; align-items: center; gap: 8px; }
.lg-ic { color: var(--muted); display: flex; }
.lg-ic svg { width: 17px; height: 17px; }
.lg-name { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.lg-bar { height: 7px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.lg-fill { display: block; height: 100%; background: var(--grad-brand); border-radius: 999px; }
.lg-val { font-size: .8rem; font-weight: 800; color: var(--brand); text-align: right; }

/* ============================================================
   おすすめ転職エージェント
   ============================================================ */
.agents-section { margin-top: 30px; }
.agents-head { text-align: center; margin-bottom: 22px; }
.agents-title { font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
.br-pc { display: none; }
.pr-tag {
    display: inline-block; vertical-align: middle;
    font-size: .65rem; font-weight: 800;
    color: var(--muted); border: 1px solid var(--line);
    border-radius: 5px; padding: 1px 6px; margin-left: 6px;
}
.agents-lead { color: var(--muted); font-size: .9rem; max-width: 640px; margin: 8px auto 0; }

.agents-list { display: grid; grid-template-columns: 1fr; gap: 14px; }

.agent-card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.agent-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.agent-card.is-best {
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--grad-warm) border-box;
    box-shadow: var(--shadow);
}
.agent-rank {
    position: absolute; top: 18px; left: 18px;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bg-soft); color: var(--muted);
    font-weight: 800; font-size: 1rem;
}
.agent-card.is-best .agent-rank { background: var(--grad-warm); color: #fff; }
.agent-logo {
    display: block;
    margin: 10px 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 16 / 10;
}
.agent-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.agent-badge {
    align-self: flex-start;
    margin-left: 40px;
    min-height: 30px;
    display: inline-flex; align-items: center;
    font-size: .72rem; font-weight: 800;
    padding: 4px 12px; border-radius: 999px;
    background: var(--bg-soft); color: var(--muted);
}
.agent-badge.best { background: var(--grad-warm); color: #fff; }
.agent-name { font-size: 1.15rem; font-weight: 800; margin: 12px 0 4px; }
.agent-ph { font-size: .68rem; color: #94a3b8; font-weight: 600; margin-left: 4px; }
.agent-tag { font-size: .8rem; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.agent-copy { color: var(--ink-soft); font-size: .88rem; line-height: 1.7; margin-bottom: 14px; }
.agent-points { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; flex: 1; }
.agent-points li { display: flex; align-items: flex-start; gap: 7px; font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }
.agent-points svg { width: 15px; height: 15px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.agent-cta {
    margin-top: auto;
    display: block; text-align: center;
    background: var(--grad-brand); color: #fff; text-decoration: none;
    padding: 12px 20px; border-radius: 999px;
    font-weight: 800; font-size: .92rem;
    box-shadow: 0 8px 20px rgba(124, 92, 255, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}
.agent-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(124, 92, 255, .45); }

/* ----- SNSシェア ----- */
.share-section { text-align: center; margin-top: 26px; }
.share-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; }
.share-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.share-btn {
    width: 50px; height: 50px; border: none; padding: 0;
    border-radius: 50%; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.share-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.share-btn svg { width: 23px; height: 23px; }
.share-x { background: #000; }
.share-line { background: #06C755; }
.share-fb { background: #1877F2; }
.share-copy { background: var(--muted); }
.share-msg { min-height: 1.2em; margin-top: 12px; font-size: .85rem; font-weight: 700; color: var(--brand); opacity: 0; transition: opacity .2s ease; }
.share-msg.show { opacity: 1; }

/* 注記・再診断 */
.result-disclaimer { text-align: center; color: var(--muted); font-size: .78rem; margin: 26px auto 0; max-width: 760px; line-height: 1.6; }
.restart-bottom { text-align: center; margin-top: 24px; }
.restart-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--ink-soft);
    border: 1px solid var(--line); text-decoration: none;
    padding: 14px 30px; font-size: .98rem; font-weight: 700;
    border-radius: 999px; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, background .2s ease;
}
.restart-btn svg { width: 18px; height: 18px; }
.restart-btn:hover { transform: translateY(-2px); background: var(--bg-soft); }

/* ----- タブレット（2カラム） ----- */
@media (min-width: 700px) {
    .dashboard { grid-template-columns: 1fr 1fr; gap: 16px; }
    .d-hero { grid-template-columns: 260px 1fr; gap: 24px; }
    .agents-list { grid-template-columns: 1fr 1fr; }
}

/* ----- PC レイアウト ----- */
@media (min-width: 980px) {
    .dashboard { grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
    .card { padding: 26px; }

    .d-hero      { grid-column: 1 / 3; grid-row: 1; grid-template-columns: 300px 1fr; gap: 28px; }
    .d-insights  { grid-column: 3;     grid-row: 1; }
    .d-strengths { grid-column: 1;     grid-row: 2; }
    .d-weaknesses{ grid-column: 2;     grid-row: 2; }
    .d-radar     { grid-column: 3;     grid-row: 2; }
    .d-suitable  { grid-column: 1;     grid-row: 3; }
    .d-unsuitable{ grid-column: 2;     grid-row: 3; }
    .d-advice    { grid-column: 3;     grid-row: 3; }

    .hero-code { font-size: 3.6rem; }
    .card-title { font-size: 1.25rem; }

    .agents-list { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* ============================================================
   フッター
   ============================================================ */
.footer { background: var(--ink); color: #fff; padding: 48px 0 24px; margin-top: 40px; }
.footer-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}
.footer-left { flex: 1; }
.footer-logo { height: 38px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-description { font-size: .88rem; line-height: 1.7; color: #94a3b8; }
.footer-right { flex: 0 0 auto; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #e2e8f0; text-decoration: none; font-size: .9rem; transition: color .2s ease; }
.footer-links a:hover { color: #67e8f9; }
.footer-bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #334155; }
.footer-bottom p { font-size: .8rem; color: #94a3b8; }
.affiliate-note { margin-bottom: 6px; }

/* ============================================================
   モーダル
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
}
.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 760px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.close { color: #94a3b8; font-size: 28px; font-weight: bold; cursor: pointer; position: absolute; right: 24px; top: 18px; }
.close:hover { color: var(--ink); }
#modal-body { margin-top: 30px; }
#modal-body h2 { color: var(--ink); margin-bottom: 18px; font-size: 1.6rem; }
#modal-body h3 { color: var(--brand); margin: 26px 0 12px; font-size: 1.15rem; }
#modal-body p { line-height: 1.9; margin-bottom: 14px; color: var(--ink-soft); }
#modal-body ul { margin: 14px 0 14px 20px; }
#modal-body li { margin-bottom: 8px; color: var(--ink-soft); }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 768px) {
    .header-container { padding: 0 16px; }
    .logo-img { height: 32px; }
    .container { padding: 0 16px; }

    .hero-title { font-size: 2.6rem; margin-bottom: 20px; }
    .brand-name { font-size: 1.9rem; }
    .bx { width: 58px; height: 58px; font-size: 2rem; }
    .hero-description p { font-size: 1.25rem; }
    .hero-features p { font-size: 1.05rem; }
    .hero-time p { font-size: 1.15rem; }
    .highlight-large { font-size: 1.7rem; }
    .start-btn { padding: 16px 34px; font-size: 1.1rem; }

    .progress-bar { margin: 0 16px; }
    .question-container { padding: 28px 18px; margin-top: 72px; }
    .question-text { font-size: 1.1rem; margin-bottom: 22px; }

    .answer-options { gap: 6px; }
    .answer-option { max-width: 25%; }
    .answer-circle { width: 42px; height: 42px; margin-bottom: 8px; }
    .answer-option.moderate .answer-circle { width: 34px; height: 34px; margin-top: 4px; }
    .answer-text { font-size: .68rem; }

    .next-btn, .prev-btn { padding: 14px 22px; font-size: 1rem; min-width: 120px; }

    /* Thanks（スマホ） */
    .hero-name { font-size: 1.7rem; }
    .hero-catch { font-size: 1.05rem; }
    .hero-desc { font-size: .9rem; line-height: 1.8; }
    .card { padding: 18px; }
    .card-title { font-size: 1.05rem; gap: 7px; margin-bottom: 14px; }
    .card-title svg { width: 19px; height: 19px; }
    .ax-text { width: 84px; }
    .ax-label { font-size: .9rem; }
    .check-list li { font-size: .88rem; }
    .agents-title { font-size: 1.3rem; }
    .agents-lead { font-size: .85rem; }
    .agent-name { font-size: 1.1rem; }

    .footer-container { flex-direction: column; gap: 28px; }

    .modal-content { margin: 8% auto; padding: 22px; width: 94%; }
    #modal-body h2 { font-size: 1.4rem; }

    #faq-section { padding: 50px 16px; }
    .section-title { font-size: 1.6rem; margin-bottom: 28px; }
}

@media (max-width: 420px) {
    .hero-title { font-size: 2.1rem; }
    .answer-text { font-size: .62rem; }
    .hero-name { font-size: 1.5rem; }
    .brand-name { font-size: 1.6rem; }
    .bx { width: 48px; height: 48px; font-size: 1.7rem; border-radius: 4px; }
    .job-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   トップページ（ランディング）リニューアル
   ============================================================ */
#top-page { padding: 0; background: transparent; }

/* ヘッダー・ナビ */
.nav-bar { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-size: .9rem; font-weight: 700; transition: color .2s ease; }
.main-nav a:hover { color: var(--brand); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ヒーロー（PCはファーストビュー背景画像を使用） */
.lp-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #e9f1ff 0%, #f4f8ff 55%, #ffffff 100%); }
@media (min-width: 768px) {
    .lp-hero {
        background-image: url("assets/hero-bg.png");
        background-size: cover;
        background-position: center right;
        background-repeat: no-repeat;
    }
}
.lp-hero-inner {
    position: relative; z-index: 1;
    max-width: var(--maxw); margin: 0 auto;
    padding: 64px 24px;
    min-height: 520px;
    display: flex; align-items: center;
}
.lp-hero-text { max-width: 560px; }
.lp-hero-eyebrow { display: none; font-weight: 700; color: var(--ink-soft); margin-bottom: 12px; font-size: 1.05rem; }
.lp-logo { font-size: 3.4rem; font-weight: 800; line-height: 1.05; margin-bottom: 18px; }
.lp-logo-en { font-style: italic; margin-right: 6px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lp-logo-jp { color: var(--ink); }
.lp-hero-sub { font-size: 1.45rem; font-weight: 700; color: var(--ink); line-height: 1.6; margin-bottom: 28px; }
.lp-hero-sub .hl { color: var(--coral); font-weight: 800; }
.lp-features { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 30px; }
.lp-features li { display: flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 700; color: var(--ink-soft); }
.lp-features li strong { color: var(--brand); font-size: 1.05rem; }
.lp-feat-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: rgba(37, 99, 235, .1); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.lp-feat-ic svg { width: 18px; height: 18px; }
.lp-hero-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* ヒーロー右：ビジュアル */
.lp-hero-visual { position: relative; }
.lp-visual-frame { position: relative; max-width: 460px; margin: 0 auto; }
.lp-hero-img { width: 100%; height: auto; display: block; }
.lp-visual-fallback { display: none; background: linear-gradient(135deg, #dbeafe, #ede9fe); border-radius: 24px; padding: 20px; }
.lp-visual-frame.noimg .lp-hero-img { display: none; }
.lp-visual-frame.noimg .lp-visual-fallback { display: block; }
.lp-visual-fallback svg { width: 100%; height: auto; }
.lp-float { position: absolute; width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: 0 8px 22px rgba(15, 23, 42, .12); display: flex; align-items: center; justify-content: center; }
.lp-float svg { width: 26px; height: 26px; }
.lp-float-1 { top: 4%; left: 6%; color: #f59e0b; }
.lp-float-2 { top: 0; right: 12%; color: #2563eb; }
.lp-float-3 { bottom: 12%; right: 2%; color: #7c5cff; }

/* 共通セクション */
.lp-section { padding: 66px 0; }
.lp-about { background: #fff; }
.lp-faq { background: var(--bg); }
.container.narrow { max-width: 820px; }
.lp-eyebrow { text-align: center; color: var(--brand); font-weight: 800; letter-spacing: 3px; font-size: .8rem; margin-bottom: 8px; }
.lp-section-title { text-align: center; font-size: 2rem; font-weight: 800; color: var(--ink); margin-bottom: 42px; }

/* できること カード */
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 24px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.lp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lp-card-ic { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 18px; }
.lp-card-ic svg { width: 30px; height: 30px; }
.ic-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.ic-teal { background: linear-gradient(135deg, #2dd4bf, #0ea5a4); }
.ic-orange { background: linear-gradient(135deg, #fb923c, #f97316); }
.lp-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; line-height: 1.5; }
.lp-card p { font-size: .9rem; color: var(--muted); line-height: 1.8; }

/* FAQ アコーディオン */
.lp-faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.lp-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 20px 22px; font-weight: 700; color: var(--ink); font-size: 1rem; }
.lp-faq-item summary::-webkit-details-marker { display: none; }
.faq-q { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: rgba(37, 99, 235, .12); color: var(--brand); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.faq-chev { margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; flex-shrink: 0; }
.lp-faq-item[open] .faq-chev { transform: rotate(-135deg); }
.faq-a { padding: 0 22px 20px 62px; color: var(--ink-soft); line-height: 1.8; font-size: .92rem; }

/* ランディング レスポンシブ */
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-top: 1px solid var(--line);
        box-shadow: var(--shadow); max-height: 0; overflow: hidden;
        transition: max-height .28s ease;
    }
    .main-nav.open { max-height: 320px; }
    .main-nav a { padding: 15px 24px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 768px) {
    .lp-hero-inner { justify-content: center; text-align: center; padding: 34px 20px 48px; min-height: 0; }
    .lp-hero-text { max-width: 520px; margin: 0 auto; }
    .lp-hero-eyebrow { display: block; }
    .lp-logo { font-size: 2.4rem; }
    .lp-hero-sub { font-size: 1.15rem; }
    .lp-features { flex-direction: column; align-items: stretch; gap: 10px; }
    .lp-features li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; box-shadow: var(--shadow-sm); }
    .lp-hero .start-btn { width: 100%; }
    .lp-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
    .lp-card { padding: 24px 16px; }
    .lp-card-ic { width: 54px; height: 54px; margin-bottom: 14px; }
    .lp-card h3 { font-size: 1.02rem; }
    .lp-section { padding: 48px 0; }
    .lp-section-title { font-size: 1.5rem; margin-bottom: 28px; }
    .faq-a { padding-left: 22px; }
}
@media (max-width: 480px) {
    .lp-cards { grid-template-columns: 1fr; }
    .lp-logo { font-size: 2rem; }
}

/* 使い方 3ステップ */
.lp-howto { background: var(--bg); }
.lp-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm); }
.lp-step-no { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 1.3rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.lp-step h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.lp-step p { font-size: .9rem; color: var(--muted); line-height: 1.8; }

/* 適職診断とは */
.lp-about2 { background: #fff; }
.lp-prose p { font-size: 1rem; color: var(--ink-soft); line-height: 2; margin-bottom: 16px; }
.lp-prose strong { color: var(--ink); }
.lp-subtitle { text-align: center; font-size: 1.2rem; font-weight: 800; color: var(--ink); margin: 36px 0 18px; }
.lp-typelist { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lp-typelist li { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 10px; text-align: center; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }

@media (max-width: 768px) {
    .lp-steps { grid-template-columns: 1fr; gap: 14px; }
    .lp-typelist { grid-template-columns: 1fr 1fr; }
    .lp-prose p { font-size: .94rem; line-height: 1.9; }
}
