/* =========================================================
   JudgeLove — 案A「ポップ」デザインシステム
   パレット・フォント・コンポーネントをまとめて定義
   ========================================================= */
:root {
    --bg: #faf9f5;
    --ink: #2c2433;
    --muted: #8a7f93;
    --line-soft: #efe9e3;
    --primary: #ff5a7a;
    --primary-dark: #e84a68;
    --cream: #fff2e9;
    --teal: #20b8c4;
    --amber: #ffb020;
    --purple: #7b61ff;
    --line: #06c755;
    --positive: #22c55e;
    --surface: #ffffff;
    --radius: 22px;
    --radius-lg: 30px;
    --shadow: 0 10px 30px rgba(44, 36, 51, 0.08);
    --shadow-soft: 0 4px 14px rgba(44, 36, 51, 0.06);
}

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

html { -webkit-text-size-adjust: 100%; }
/* アンカー遷移時に固定ヘッダーへ隠れないようオフセット */
#about, #faq { scroll-margin-top: 84px; }

body {
    font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 50% -10%, #fff5ef 0%, rgba(255, 245, 239, 0) 60%),
        var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---- レイアウト ---- */
.app-bg {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 14px 40px;
    gap: 18px;
}

.phone {
    width: 100%;
    max-width: 440px;
    min-width: 0; /* nowrap 子要素で横に膨らまないように */
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    min-height: 640px;
    display: flex;
    flex-direction: column;
}

.app-foot {
    width: 100%;
    max-width: 440px;
    text-align: center;
    color: var(--muted);
    font-size: 11px;
}
.app-foot__note { line-height: 1.5; margin-bottom: 8px; }
.app-foot__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.app-foot__links a { color: var(--muted); text-decoration: none; }
.app-foot__links a:hover { color: var(--primary); }

/* ---- 共通スクリーン ---- */
.screen { padding: 20px 22px 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; min-width: 0; }
.screen--cream { background: linear-gradient(180deg, var(--cream), #fff 70%); }

.topbar {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; min-height: 52px;
    border-bottom: 1px solid var(--line-soft);
}
.topbar__back {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg); display: grid; place-items: center;
    text-decoration: none; color: var(--ink); font-size: 18px; border: none; cursor: pointer;
}
.topbar__title { font-weight: 700; font-size: 15px; }
.topbar__spacer { flex: 1; }
.topbar__chip { font-size: 12px; color: var(--muted); background: var(--bg); padding: 4px 10px; border-radius: 999px; }

.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 18px 0; font-size: 12px; font-weight: 700; color: var(--muted); }

/* ---- テキスト ---- */
.h1 { font-size: 26px; font-weight: 800; letter-spacing: .02em; line-height: 1.35; }
.h2 { font-size: 20px; font-weight: 800; }
.lead { color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.tiny { font-size: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; }

/* ---- ボタン ---- */
.btn {
    appearance: none; border: none; cursor: pointer;
    font-family: inherit; font-weight: 700; font-size: 16px;
    padding: 15px 20px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none; transition: transform .08s ease, box-shadow .2s ease, opacity .2s;
    width: 100%;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #ff7a93, var(--primary));
    box-shadow: 0 8px 18px rgba(255, 90, 122, .35);
}
.btn-primary:hover { box-shadow: 0 10px 22px rgba(255, 90, 122, .45); }
.btn-outline { background: #fff; color: var(--ink); border: 2px solid var(--line-soft); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-line { background: var(--line); color: #fff; }
.btn-ghost { background: var(--bg); color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 14px; width: auto; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---- カード ---- */
.card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-soft); padding: 18px;
    border: 1px solid var(--line-soft);
}
.card--cream { background: var(--cream); border: none; }

/* ---- 免責・注意 ---- */
.disclaimer {
    display: flex; gap: 10px; align-items: flex-start;
    background: var(--bg); border-radius: 16px; padding: 12px 14px;
    font-size: 12px; color: var(--muted); line-height: 1.5;
}
.disclaimer .i {
    flex: none; width: 20px; height: 20px; border-radius: 50%;
    background: var(--muted); color: #fff; display: grid; place-items: center;
    font-size: 12px; font-style: normal; font-weight: 700;
}

/* ---- ヒーロー（ホーム） ---- */
.hero { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
.brand .heart { color: var(--primary); }
.hero__art { width: 200px; height: 200px; object-fit: contain; }
.hero__art--lg { width: 240px; height: 240px; }
.hero__label { font-weight: 800; font-size: 24px; margin-top: -8px; letter-spacing: .01em; white-space: nowrap; }
/* ○○カップル と「タイプは全5種」の間隔を広げる */
.home__visual .section-label { margin-top: 14px; }

/* ---- ホーム SEO 本文 / FAQ ---- */
.home-seo { line-height: 1.85; font-size: 14px; color: #4a4651; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 22px; margin-top: 10px; text-align: left; }
.home-seo h2 { font-size: 17px; font-weight: 800; color: var(--ink); margin-top: 10px; }
.home-seo a { color: var(--primary); font-weight: 700; text-decoration: none; }
.home-seo a:hover { text-decoration: underline; }
.home-seo__steps { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.home-seo__types { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__q { font-size: 14px; font-weight: 800; color: var(--ink); }
.faq__q::before { content: "Q. "; color: var(--primary); }
.faq__a { font-size: 13px; color: #4a4651; }
.faq__a::before { content: "A. "; color: var(--muted); font-weight: 700; }
@media (min-width: 1000px) { .home-seo { max-width: 840px; margin-left: auto; margin-right: auto; } }

/* ---- 私たちの願い ---- */
.wish { display: flex; flex-direction: column; gap: 16px; text-align: center; padding: 6px 0 8px; }
.wish__logo { width: 84px; height: auto; margin: 0 auto; }
.wish__title { font-size: 24px; font-weight: 800; }
.wish__title::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; background: var(--primary); margin: 10px auto 0; }
.wish p { font-size: 15px; line-height: 2.05; color: #4a4651; text-align: left; }
.wish__sign { text-align: right !important; font-weight: 700; color: var(--muted); }
@media (min-width: 1000px) {
    .wish { max-width: 760px; margin: 0 auto; }
    .wish__title { font-size: 28px; }
    .wish p { font-size: 16px; }
}

/* 大きく表示されるタイプ画像は白背景を透過（素材は白地のため multiply で背景になじませる）。
   ※素材は JPEG（アルファ無し）のため、白抜き＝乗算ブレンドで実現する。 */
.hero__art,
.result-hero img,
.report__hero img,
.share-card img,
.async-art,
.cutout { mix-blend-mode: multiply; }

/* ---- 5タイプ ---- */
.types-strip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.type-bubble {
    width: 60px; height: 60px; border-radius: 18px; overflow: hidden;
    background: #fff; box-shadow: var(--shadow-soft); border: 2px solid var(--line-soft);
    cursor: pointer; transition: transform .12s ease, border-color .12s ease; padding: 0;
}
.type-bubble:hover { transform: translateY(-2px); }
.type-bubble.is-active { border-color: var(--primary); transform: translateY(-2px); }
.type-bubble img { width: 100%; height: 100%; object-fit: cover; display: block; }

.section-label { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.section-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* ---- 6桁コード ---- */
.code-row { display: flex; gap: 8px; justify-content: center; }
.code-cell {
    width: 46px; height: 58px; border-radius: 14px;
    background: var(--cream); display: grid; place-items: center;
    font-size: 28px; font-weight: 800; color: var(--ink);
}
.code-input {
    letter-spacing: .5em; text-align: center; font-size: 28px; font-weight: 800;
    padding: 14px; border-radius: 16px; border: 2px solid var(--line-soft); width: 100%;
    font-family: inherit; color: var(--ink);
}
.code-input:focus { outline: none; border-color: var(--primary); }
.qr { width: 160px; height: 160px; margin: 0 auto; background:#fff; padding:10px; border-radius:18px; box-shadow: var(--shadow-soft); }

/* ---- ステップ ---- */
.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step__num {
    flex: none; width: 28px; height: 28px; border-radius: 50%;
    background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px;
}
.step__num--soft { background: var(--cream); color: var(--primary); }
.step__body h4 { font-size: 14px; font-weight: 700; }
.step__body p { font-size: 13px; color: var(--muted); }

/* ---- 同意チェック ---- */
.check {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px;
    border: 2px solid var(--line-soft); border-radius: 16px; cursor: pointer; transition: border-color .2s, background .2s;
}
.check:has(input:checked) { border-color: var(--primary); background: #fff6f8; }
.check input { position: absolute; opacity: 0; }
.check__box {
    flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-soft);
    display: grid; place-items: center; color: #fff; font-weight: 800; transition: background .15s, border-color .15s;
}
.check:has(input:checked) .check__box { background: var(--primary); border-color: var(--primary); }
.check__box::after { content: "✓"; opacity: 0; font-size: 14px; }
.check:has(input:checked) .check__box::after { opacity: 1; }
.check__text h4 { font-size: 14px; font-weight: 700; }
.check__text p { font-size: 12px; color: var(--muted); }
.field-error { color: var(--primary-dark); font-size: 12px; }

/* ---- モード選択 ---- */
.mode-card {
    display: block; padding: 16px; border-radius: 18px; border: 2px solid var(--line-soft);
    background: #fff; cursor: pointer; position: relative; transition: border-color .2s, transform .08s;
}
.mode-card:has(input:checked) { border-color: var(--primary); background: #fff6f8; }
.mode-card:active { transform: scale(.99); }
.mode-card input { position: absolute; opacity: 0; }
.mode-card__title { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.mode-card__desc { font-size: 13px; color: var(--muted); margin-top: 4px; }
.badge { font-size: 11px; font-weight: 800; color: #fff; background: var(--amber); padding: 2px 8px; border-radius: 999px; }
.badge--teal { background: var(--teal); }

/* ---- チャット（プレイ） ---- */
.play-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font-size: 18px; }
.online { font-size: 11px; color: var(--positive); display: flex; align-items: center; gap: 4px; }
.online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--positive); }
.progress-chip { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--bg); padding: 4px 10px; border-radius: 999px; }

.situation {
    background: var(--cream); border-radius: 16px; padding: 14px; font-size: 14px; font-weight: 700;
    display: flex; gap: 8px; align-items: flex-start;
}
.chat { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.bubble {
    max-width: 80%; padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5;
    opacity: 0; transform: translateY(8px); animation: bubbleIn .35s forwards;
}
.bubble--partner { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 6px; }
.bubble--you { align-self: flex-end; background: linear-gradient(135deg, #ff8fa3, var(--primary)); color: #fff; border-bottom-right-radius: 6px; }
@keyframes bubbleIn { to { opacity: 1; transform: translateY(0); } }

.prompt-label { font-weight: 800; font-size: 15px; margin-top: 6px; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
    width: 100%; text-align: left; padding: 14px 16px; border-radius: 16px;
    border: 2px solid var(--line-soft); background: #fff; font-family: inherit; font-size: 15px; font-weight: 700;
    color: var(--ink); cursor: pointer; transition: border-color .15s, transform .08s, background .15s;
}
.choice:hover { border-color: var(--primary); }
.choice:active { transform: scale(.99); }
.choice.is-picked { border-color: var(--primary); background: #fff6f8; }

.safety-note { font-size: 11px; color: var(--muted); text-align: center; }

/* ---- 広告枠（AdSense） ---- */
.ad-slot { margin: 20px auto; width: 100%; text-align: center; }
.ad-slot__label { display: block; font-size: 10px; color: var(--muted); letter-spacing: .04em; margin-bottom: 4px; }
.ad-slot .adsbygoogle { display: block; }

/* ---- 同期チャット（自由チャット＋感情スタンプ） ---- */
.chat-theme {
    display: flex; flex-direction: column; gap: 2px; text-align: center;
    background: linear-gradient(135deg, #fff2e9, #ffe3ec);
    border: 2px dashed var(--primary); border-radius: 16px; padding: 10px 14px;
}
.chat-theme__label { font-size: 11px; font-weight: 800; color: var(--primary); letter-spacing: .04em; }
.chat-theme__text { font-size: 16px; font-weight: 800; color: var(--ink); }
.chat { min-height: 160px; max-height: 46vh; overflow-y: auto; }
.chat-intro { align-self: center; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--cream); padding: 10px 14px; border-radius: 14px; }
.my-stamp { align-self: flex-start; margin-top: -4px; font-size: 12px; font-weight: 700; color: var(--muted); }

.stamp-block { background: var(--cream); border-radius: 16px; padding: 12px; margin-top: auto; }
.stamp-label { text-align: center; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.stamp-picker { display: flex; justify-content: space-between; gap: 4px; }
.stamp {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px;
    border: 2px solid transparent; border-radius: 12px; background: #fff; cursor: pointer;
    font-family: inherit; transition: border-color .15s, transform .08s;
}
.stamp:hover { border-color: var(--primary); }
.stamp:active { transform: scale(.95); }
.stamp__emoji { font-size: 24px; line-height: 1; }
.stamp__label { font-size: 10px; font-weight: 700; color: var(--muted); }

.chat-input { display: flex; gap: 8px; margin-top: auto; }
.chat-input input {
    flex: 1; min-width: 0; padding: 12px 14px; border-radius: 999px; border: 2px solid var(--line-soft);
    font-family: inherit; font-size: 15px; background: #fff;
}
.chat-input input:focus { outline: none; border-color: var(--primary); }
.chat-input .btn { flex: none; width: auto; }

/* ---- メーター ---- */
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter__head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.meter__track { height: 10px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.meter__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffd1db, var(--primary)); width: 0; transition: width 1s ease; }

/* ---- スケール（ネガ↔ポジ） ---- */
.scale { position: relative; height: 14px; border-radius: 999px;
    background: linear-gradient(90deg, #c9b8e8, #fff2e9 50%, #bfe9d6); margin: 18px 0 6px; }
.scale__dot { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background:#fff;
    border: 3px solid var(--primary); transform: translate(-50%, -50%); box-shadow: var(--shadow-soft); transition: left 1s ease; }
.scale__labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

/* ---- 位相空間 ---- */
.phase-wrap { background: #fff; border-radius: var(--radius); border: 1px solid var(--line-soft); padding: 14px; box-shadow: var(--shadow-soft); }
.phase-canvas { width: 100%; aspect-ratio: 1 / 1; display: block; border-radius: 14px; background:
    linear-gradient(0deg, rgba(123,97,255,.04), rgba(32,184,196,.04)); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
/* 結果ページ内のグラフは正方形なので幅を抑えて中央寄せ（PCで巨大化しないように） */
.result-phase { max-width: 440px; width: 100%; margin: 4px auto 0; }
.result-phase .section-label { margin-bottom: 2px; }

/* ---- 結果ヘッダ ---- */
.result-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 6px; min-width: 0; }
.result-hero img { width: 180px; height: 180px; object-fit: contain; }
.type-name { font-size: 24px; font-weight: 800; }
.type-catch { color: var(--muted); font-size: 14px; }
.type-switch { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.type-switch a { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .55; transition: .2s; }
.type-switch a.is-active { opacity: 1; border-color: var(--primary); transform: translateY(-2px); }
.type-switch img { width: 100%; height: 100%; object-fit: cover; }

.stability-badge { display: inline-flex; align-items: baseline; gap: 6px; background: var(--cream); padding: 8px 16px; border-radius: 999px; font-weight: 800; }
.stability-badge b { font-size: 22px; color: var(--primary); }

/* ---- シェアカード ---- */
.share-card {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    background: linear-gradient(160deg, #fff, var(--cream)); position: relative; padding: 20px;
}
.share-card__top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--primary); }
.share-card img { width: 150px; height: 150px; object-fit: contain; margin: 6px auto; }
.share-buttons { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.share-buttons .btn { font-size: 14px; padding: 12px; }
.btn-x { background: #15121a; color: #fff; }
.btn-ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b 50%, #6228d7); color:#fff; }

/* ---- 履歴・比較 ---- */
.compare { display: flex; align-items: center; gap: 10px; justify-content: center; }
.compare__col { text-align: center; }
.compare__arrow { font-size: 22px; color: var(--muted); }
.delta { display: inline-flex; flex-direction:column; align-items:center; background: var(--cream); border-radius: 14px; padding: 10px 14px; }
.delta b { font-size: 22px; color: var(--positive); }
.history-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line-soft); }
.history-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.premium-row { display: flex; align-items: center; gap: 10px; background: var(--cream); border-radius: 16px; padding: 14px; }
.premium-tag { margin-left: auto; font-size: 11px; font-weight: 800; color:#fff; background: var(--purple); padding: 3px 10px; border-radius: 999px; }

/* ---- 待機 ---- */
.waiting { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 20px; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--cream); border-top-color: var(--primary); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--ink); color:#fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; opacity: 0; transition: opacity .3s; z-index: 50; }
.toast.show { opacity: 1; }

/* ---- 法務ページ ---- */
.legal { line-height: 1.8; font-size: 14px; }
.legal h1 { font-size: 20px; margin-bottom: 10px; }
.legal h2 { font-size: 15px; margin: 18px 0 6px; }
.legal p, .legal li { color: #4a4651; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--primary); }

.consult-item { display:block; padding: 14px; border-radius: 16px; border: 1px solid var(--line-soft); text-decoration: none; margin-bottom: 10px; }
.consult-item:hover { border-color: var(--primary); }
.consult-item h4 { font-size: 14px; font-weight: 700; color: var(--ink); }
.consult-item p { font-size: 12px; color: var(--muted); }

/* =========================================================
   レスポンシブ：スマホ＝端末風1カラム / PC＝Webアプリ風ワイドレイアウト
   ========================================================= */

/* グローバルヘッダー：スマホ=ブランド＋ハンバーガー / PC=横並びリンク */
.site-nav {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line-soft);
    padding: 12px 18px;
}
.site-nav__brand { font-weight: 800; font-size: 18px; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.site-nav__brand .heart { color: var(--primary); }
.site-nav__logo { height: 30px; width: auto; display: block; }
.nav-toggle {
    margin-left: auto; width: 44px; height: 38px; border: none; background: transparent; cursor: pointer;
    display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 8px;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.site-nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.site-nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.site-nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; gap: 6px;
    background: #fff; border-bottom: 1px solid var(--line-soft);
    padding: 12px 18px; box-shadow: var(--shadow-soft); font-weight: 700;
}
.site-nav.is-open .site-nav__links { display: flex; }
.site-nav__links a { text-decoration: none; color: var(--ink); padding: 8px 2px; }
.site-nav__links a:hover { color: var(--primary); }
.site-nav__links .btn { width: 100%; margin-top: 4px; }

@media (min-width: 1000px) {
    body {
        background:
            radial-gradient(900px 520px at 100% -5%, #fff0f3 0%, rgba(255,240,243,0) 55%),
            radial-gradient(900px 520px at 0% 105%, #eafaf7 0%, rgba(234,250,247,0) 55%),
            var(--bg);
    }

    .site-nav { padding: 14px 40px; }
    .site-nav__brand { font-size: 20px; }
    .site-nav__logo { height: 34px; }
    .nav-toggle { display: none; }
    .site-nav__links {
        position: static; display: flex; flex-direction: row; align-items: center;
        gap: 26px; margin-left: auto; padding: 0; font-size: 15px;
        background: transparent; border: none; box-shadow: none;
    }
    .site-nav__links a { padding: 0; }
    .site-nav__links .btn { width: auto; margin-top: 0; padding: 13px 30px; font-size: 16px; }

    .app-bg { padding: 34px 24px 56px; gap: 24px; }

    /* 端末枠 → ゆとりある中央パネルへ */
    .phone {
        max-width: 600px;
        min-height: auto;
        border-radius: var(--radius-lg);
    }
    .screen { padding: 32px 40px 40px; }
    .app-foot { max-width: 600px; }

    /* 電話モック演出（時刻バー）はPCでは隠す */
    .statusbar { display: none; }

    /* 横長ページ（ホーム・結果） */
    .phone--wide { max-width: 1060px; }

    /* ---- ホーム：左コピー＋右ビジュアルの2カラム ---- */
    .home {
        display: grid;
        grid-template-columns: 1.05fr 0.95fr;
        grid-template-areas: "head visual" "cta visual";
        column-gap: 48px; row-gap: 16px;
        align-items: center;
    }
    .home__head { grid-area: head; align-self: end; text-align: left; }
    .home__head .h1 { font-size: 38px; }
    .home__cta { grid-area: cta; align-self: start; margin-top: 0; }
    .home__visual { grid-area: visual; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
    .home__visual .hero__art--lg { width: 320px; height: 320px; }
    .home .types-strip { justify-content: center; }

    /* ---- 結果：左キャラ＋安定度 / 右メーター＋提案の2カラム ---- */
    .result-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 36px;
        align-items: start;
    }
    .result-col { display: flex; flex-direction: column; gap: 16px; }
    .result-hero img { width: 220px; height: 220px; }
}

/* スマホ：ホームの縦積み順（見出し→ビジュアル→CTA）＋中央寄せ */
@media (max-width: 999px) {
    .home { text-align: center; min-width: 0; }
    .home__head { display: flex; flex-direction: column; gap: 12px; }
    .home__visual { display: flex; flex-direction: column; gap: 14px; align-items: center; margin: 6px 0; }
    .home__cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
    .home .section-label { justify-content: center; }
    .result-grid { display: flex; flex-direction: column; gap: 16px; }
    .result-col { display: flex; flex-direction: column; gap: 16px; }
}

/* =========================================================
   タイプ図鑑 / 料金 / 詳細レポート
   ========================================================= */

/* ---- タイプ図鑑 ---- */
.types-grid { display: flex; flex-direction: column; gap: 14px; }
.type-card {
    background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
    box-shadow: var(--shadow-soft); padding: 16px; display: flex; gap: 14px; align-items: flex-start;
    min-width: 0;
}
.type-card__body { min-width: 0; } /* nowrap 名称で横に膨らまないように（幅を正しく測るため） */
.type-card img { width: 104px; height: 104px; object-fit: contain; flex: none; border-radius: 14px; }
.type-card__name { font-weight: 800; font-size: 18px; }
.type-card__catch { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 11px; background: var(--cream); color: var(--ink); padding: 3px 10px; border-radius: 999px; }
/* 一覧カードをリンク化 */
.type-card--link { text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .2s ease; }
.type-card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.type-card__more { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 13px; }
/* 前後タイプのナビ */
.type-nav { display: flex; gap: 10px; margin-top: 4px; }
.type-nav__link { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 16px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.type-nav__link:hover { border-color: var(--primary); }
.type-nav__link--next { text-align: right; align-items: flex-end; }
.type-nav__dir { font-size: 11px; color: var(--muted); }
.type-nav__name { font-weight: 700; font-size: 14px; }

/* ---- 料金プラン ---- */
.plans { display: flex; flex-direction: column; gap: 14px; }
.plan { position: relative; border: 2px solid var(--line-soft); border-radius: var(--radius); padding: 20px; background: #fff; }
.plan--premium { border-color: var(--purple); box-shadow: 0 8px 22px rgba(123,97,255,.14); }
.plan__badge { position: absolute; top: -12px; right: 16px; background: var(--purple); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.plan__name { font-weight: 800; font-size: 16px; color: var(--muted); }
.plan__price { font-size: 32px; font-weight: 800; margin: 4px 0 12px; }
.plan__per { font-size: 14px; color: var(--muted); font-weight: 700; }
.plan__feats { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.plan__feats li { position: relative; padding-left: 24px; font-size: 14px; }
.plan__feats li::before { content: "✓"; position: absolute; left: 0; color: var(--positive); font-weight: 800; }

/* ---- 詳細レポート ---- */
.report__head { text-align: center; padding-bottom: 8px; border-bottom: 2px dashed var(--line-soft); }
.report__hero { display: flex; gap: 16px; align-items: center; }
.report__hero img { width: 120px; height: 120px; object-fit: contain; flex: none; }
.report__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.report__table th, .report__table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.report__table th { color: var(--muted); font-weight: 700; }
.report__table td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.report__actions { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

@media (min-width: 1000px) {
    .types-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
}

/* ---- お知らせ ---- */
.news { display: flex; flex-direction: column; gap: 12px; }
.news__item { border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; background: #fff; }
.news__date { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary); }
.news__title { font-size: 14px; font-weight: 800; color: var(--ink); margin: 2px 0; }
.news__body { font-size: 13px; color: #4a4651; margin: 0; }

/* ---- お問い合わせフォーム ---- */
.contact-form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field__label { font-size: 13px; font-weight: 700; color: var(--ink); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%; box-sizing: border-box; font: inherit; color: var(--ink);
    border: 2px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form .btn { align-self: flex-start; }
.form-ok { color: var(--line); font-weight: 700; font-size: 14px; }
/* ハニーポット（画面外に隠す。表示・読み上げ・タブ移動の対象外） */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- 印刷（PDF保存）最適化 ---- */
@media print {
    .site-nav, .app-foot, .topbar, .no-print { display: none !important; }
    body { background: #fff; }
    .app-bg { padding: 0; gap: 0; }
    .phone { max-width: 100%; box-shadow: none; border-radius: 0; }
    .result-phase { max-width: 360px; }
    .disclaimer { background: #f4f4f4; }
}
