/* ============================================================
   AI Match デザインシステム v2 (2026-07)
   ライト/ダーク両対応(prefers-color-scheme)。トークン→コンポーネントの順。
   ============================================================ */

:root {
    /* ブランド */
    --brand-1: #4f46e5;
    --brand-2: #7c3aed;
    --brand-3: #0891b2;
    --grad-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
    --grad-cta: linear-gradient(135deg, #f97316, #ea580c);

    /* サーフェス・テキスト */
    --color-bg: #f5f6fb;
    --color-surface: #ffffff;
    --color-surface-2: #f2f4fa;
    --color-text: #101730;
    --color-muted: #525e7d;
    --color-faint: #8791ab;
    --color-border: #e4e7f2;
    --color-border-strong: #cfd6e8;

    /* セマンティック */
    --color-primary: #4f46e5;
    --color-primary-strong: #4338ca;
    --color-primary-bg: #edeefe;
    --color-accent: #ea580c;
    --color-accent-bg: #fff3ea;
    --color-good: #0e8a5f;
    --color-good-bg: #e8f7f0;
    --color-warn: #b45309;
    --color-warn-bg: #fdf3e3;

    /* チャート(validate_palette.js 検証済みペア) */
    --radar-a: #4f46e5;
    --radar-b: #ea580c;
    --radar-grid: #e4e7f2;
    --radar-label: #525e7d;

    /* ヒーロー(ライトでは淡色パネル、ダークで深紺パネルに反転) */
    --hero-bg: #edeffc;
    --hero-text: #101730;
    --hero-strong: #101730;
    --hero-muted: #46527a;
    --hero-grad-1: #4f46e5;
    --hero-grad-2: #9333ea;
    --hero-grad-3: #0e7490;
    --hero-chip-bg: rgba(79, 70, 229, .08);
    --hero-chip-border: rgba(79, 70, 229, .25);
    --hero-line: rgba(16, 23, 48, .18);
    --hero-gridline: rgba(16, 23, 48, .05);
    --hero-glow-a: rgba(79, 70, 229, .18);
    --hero-glow-b: rgba(168, 85, 247, .13);
    --hero-glow-c: rgba(8, 145, 178, .12);
    --hero-ghost-border: #aab3d0;
    --hero-ghost-text: #2c3660;
    --hero-ghost-border-hover: #4f46e5;
    --hero-ghost-bg-hover: rgba(79, 70, 229, .08);
    --hero-ghost-text-hover: #4f46e5;
    --hero-art-shadow: rgba(35, 45, 90, .22);
    --ha-grid: rgba(16, 23, 48, .17);
    --ha-line: rgba(16, 23, 48, .12);
    --da-spark-1: #6366f1;
    --da-spark-2: #0891b2;

    --shadow-1: 0 1px 2px rgba(16, 23, 48, .05), 0 2px 8px rgba(16, 23, 48, .05);
    --shadow-2: 0 4px 14px rgba(16, 23, 48, .08), 0 12px 32px rgba(16, 23, 48, .10);
    --radius: 16px;
    --radius-sm: 10px;
    --header-glass: rgba(255, 255, 255, .82);
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0b1020;
        --color-surface: #121933;
        --color-surface-2: #182144;
        --color-text: #e8ebf7;
        --color-muted: #a4aecd;
        --color-faint: #7681a3;
        --color-border: #232d52;
        --color-border-strong: #313c66;

        --color-primary: #99a2ff;
        --color-primary-strong: #b3baff;
        --color-primary-bg: rgba(99, 102, 241, .16);
        --color-accent: #ff8b48;
        --color-accent-bg: rgba(249, 115, 22, .14);
        --color-good: #4ade9d;
        --color-good-bg: rgba(16, 185, 129, .14);
        --color-warn: #f5b45c;
        --color-warn-bg: rgba(217, 119, 6, .16);

        --radar-a: #5b64f0;
        --radar-b: #e8620d;
        --radar-grid: #263050;
        --radar-label: #a4aecd;

        --hero-bg: #0c1024;
        --hero-text: #eef0fb;
        --hero-strong: #ffffff;
        --hero-muted: #aab3d6;
        --hero-grad-1: #a5b4fc;
        --hero-grad-2: #d8b4fe;
        --hero-grad-3: #67e8f9;
        --hero-chip-bg: rgba(255, 255, 255, .09);
        --hero-chip-border: rgba(255, 255, 255, .18);
        --hero-line: rgba(255, 255, 255, .16);
        --hero-gridline: rgba(255, 255, 255, .045);
        --hero-glow-a: rgba(79, 70, 229, .5);
        --hero-glow-b: rgba(168, 85, 247, .34);
        --hero-glow-c: rgba(8, 145, 178, .3);
        --hero-ghost-border: rgba(255, 255, 255, .3);
        --hero-ghost-text: #e8ebf7;
        --hero-ghost-border-hover: rgba(255, 255, 255, .65);
        --hero-ghost-bg-hover: rgba(255, 255, 255, .08);
        --hero-ghost-text-hover: #ffffff;
        --hero-art-shadow: rgba(0, 0, 0, .4);
        --ha-grid: rgba(255, 255, 255, .13);
        --ha-line: rgba(255, 255, 255, .1);
        --da-spark-1: #c7d2fe;
        --da-spark-2: #a5f3fc;

        --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
        --shadow-2: 0 6px 18px rgba(0, 0, 0, .45);
        --header-glass: rgba(11, 16, 32, .8);
    }
}

/* ---------- ベース ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: rgba(124, 58, 237, .25); }

a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-primary-strong); }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }

h1 { font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.1rem); line-height: 1.35; margin: 0 0 10px; letter-spacing: .01em; font-weight: 800; }
h2 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); font-weight: 750; margin: 52px 0 18px; line-height: 1.4; }
h2:first-child { margin-top: 0; }
.lead { color: var(--color-muted); margin: 0 0 26px; max-width: 46em; }

/* セクション見出し(アクセントバー付き) */
h2.section-title, .page h2 {
    position: relative;
    padding-left: 16px;
    border-bottom: none;
}
h2.section-title::before, .page h2::before {
    content: "";
    position: absolute;
    left: 0; top: .32em; bottom: .28em;
    width: 4.5px; border-radius: 3px;
    background: var(--grad-brand);
}

/* ---------- ヘッダー ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-glass);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--color-border);
}
.site-header .container { display: flex; align-items: center; gap: 10px 22px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.site-logo { display: inline-flex; align-items: center; gap: 9px; font-size: 1.16rem; font-weight: 800; color: var(--color-text); text-decoration: none; letter-spacing: .02em; }
.site-logo svg { display: block; filter: drop-shadow(0 2px 5px rgba(79, 70, 229, .35)); }
.site-logo em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.site-nav { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
/* モバイル: 横スクロールをやめ、チップを折り返して全件見せる(ヘッダーは非固定) */
@media (max-width: 860px) {
    .site-header { position: static; }
    .site-nav { order: 3; flex-basis: 100%; flex-wrap: wrap; overflow: visible; margin-left: 0; gap: 6px; }
    .site-nav a { border: 1px solid var(--color-border); background: var(--color-surface-2); padding: 4px 12px; font-size: .8rem; }
    .header-cta { margin-left: auto; }
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .85rem; font-weight: 600; white-space: nowrap;
    color: var(--color-muted); text-decoration: none;
    padding: 6px 12px; border-radius: 9999px;
    transition: background .15s ease, color .15s ease;
}
.site-nav a svg { opacity: .8; }
.site-nav a:hover { color: var(--color-primary); background: var(--color-primary-bg); }
.header-cta {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--grad-brand); color: #fff !important;
    font-size: .85rem; font-weight: 700; text-decoration: none;
    padding: 7px 16px; border-radius: 9999px; white-space: nowrap;
    box-shadow: 0 2px 10px rgba(99, 102, 241, .35);
    transition: transform .15s ease, box-shadow .15s ease;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99, 102, 241, .45); }
@media (max-width: 720px) { .header-cta span.cta-long { display: none; } }

/* ---------- フッター ---------- */
.site-footer { margin-top: 88px; padding: 48px 0 36px; background: var(--color-surface); border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: .86rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--color-border); margin-bottom: 20px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.02rem; color: var(--color-text); margin: 0 0 10px; }
.footer-head { font-weight: 700; color: var(--color-text); margin: 0 0 10px; font-size: .88rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-nav a { display: inline-flex; align-items: center; gap: 7px; color: var(--color-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--color-primary); }
.footer-sites { gap: 12px; }
.footer-sites a { font-weight: 600; color: var(--color-text); gap: 5px; }
.footer-site-desc { display: block; font-size: .76rem; color: var(--color-faint); margin-top: 2px; }
.footer-note { font-size: .78rem; color: var(--color-faint); }

/* ---------- 姉妹サイト導線(ツール詳細) ---------- */
.sister-note { margin-top: 28px; padding: 16px 20px; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: .86rem; color: var(--color-muted); }
.sister-note p { margin: 0; line-height: 1.7; }
.sister-note strong { color: var(--color-text); }
.sister-note a { display: inline-flex; align-items: center; gap: 4px; color: var(--color-primary); font-weight: 600; }

/* ---------- ボタン ---------- */
.cta-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--grad-cta); color: #fff; text-decoration: none;
    font-weight: 750; font-size: .98rem;
    padding: 13px 34px; border-radius: 12px; border: none; cursor: pointer;
    box-shadow: 0 3px 12px rgba(234, 88, 12, .35);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(234, 88, 12, .42); filter: brightness(1.04); color: #fff; }
.cta-button:active { transform: translateY(0); }
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--grad-brand); color: #fff; text-decoration: none;
    font-weight: 750; font-size: .98rem;
    padding: 13px 34px; border-radius: 12px; border: none; cursor: pointer;
    box-shadow: 0 3px 12px rgba(99, 102, 241, .35);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99, 102, 241, .45); color: #fff; }
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent; color: var(--color-text); text-decoration: none;
    font-weight: 650; font-size: .95rem;
    padding: 12px 28px; border-radius: 12px;
    border: 1.5px solid var(--color-border-strong);
    transition: border-color .15s ease, background .15s ease;
}
.btn-ghost:hover { border-color: var(--color-primary); background: var(--color-primary-bg); color: var(--color-primary); }
.cta-note { font-size: .8rem; color: var(--color-faint); margin-top: 10px; }

/* ---------- バッジ ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; background: var(--color-primary-bg); color: var(--color-primary); border-radius: 9999px; padding: 2px 12px; font-size: .8rem; font-weight: 650; }
.badge-warn { background: var(--color-warn-bg); color: var(--color-warn); }
.badge-good { background: var(--color-good-bg); color: var(--color-good); }
.badge-accent { background: var(--color-accent-bg); color: var(--color-accent); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.verified-date { font-size: .85rem; color: var(--color-muted); }
.fresh-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--color-good); margin-right: 6px; box-shadow: 0 0 0 0 rgba(14, 138, 95, .5); animation: pulse 2.4s infinite; vertical-align: 1px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14, 138, 95, .45); } 70% { box-shadow: 0 0 0 7px rgba(14, 138, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 138, 95, 0); } }

/* ---------- カード ---------- */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow-1); }
.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--color-border-strong); }

/* ---------- テーブル ---------- */
.table-wrap { overflow-x: auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-1); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { padding: 12px 16px; border-bottom: 1px solid var(--color-border); text-align: left; white-space: nowrap; vertical-align: top; }
table.data thead th { background: var(--color-surface-2); font-size: .76rem; letter-spacing: .04em; color: var(--color-muted); font-weight: 700; text-transform: uppercase; }
table.data tbody tr { transition: background .12s ease; }
table.data tbody tr:hover { background: var(--color-surface-2); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.wrap, table.data th.wrap { white-space: normal; min-width: 220px; }
table.data .price-cell { font-weight: 700; font-variant-numeric: tabular-nums; }

/* 評価スコアバー(テーブル内) */
.score-cell { display: inline-flex; align-items: center; gap: 8px; }
.score-cell .num { font-weight: 750; font-variant-numeric: tabular-nums; min-width: 2em; }
.score-bar { width: 64px; height: 6px; border-radius: 3px; background: var(--color-surface-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--color-border); }
.score-bar i { display: block; height: 100%; border-radius: 3px; background: var(--grad-brand); }

/* ---------- パンくず・ページ ---------- */
.page { padding: 36px 0 12px; }
.breadcrumb { font-size: .83rem; color: var(--color-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--color-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }

/* ---------- カテゴリヒーロー ---------- */
.cat-hero { border-radius: 22px; padding: clamp(28px, 5vw, 46px) clamp(22px, 4.5vw, 44px); color: #fff; margin-bottom: 30px; position: relative; overflow: hidden; box-shadow: var(--shadow-2); }
.cat-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(560px 260px at 88% -30%, rgba(255,255,255,.22), transparent 65%), radial-gradient(420px 260px at -8% 120%, rgba(255,255,255,.13), transparent 60%); pointer-events: none; }
.cat-hero > * { position: relative; z-index: 1; }
.cat-hero .breadcrumb, .cat-hero .breadcrumb a { color: rgba(255,255,255,.82); }
.cat-hero h1 { color: #fff; margin: 4px 0 10px; }
.cat-hero .lead { color: rgba(255,255,255,.9); margin-bottom: 0; max-width: 640px; }
.cat-hero .hero-icon { position: absolute; right: -18px; bottom: -34px; opacity: .15; pointer-events: none; z-index: 0; }
.cat-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cat-hero .hero-meta span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 9999px; padding: 3px 14px; font-size: .8rem; font-weight: 600; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hero-blue   { background: linear-gradient(135deg, #3b45c4, #6d28d9); }
.hero-violet { background: linear-gradient(135deg, #6d28d9, #be185d); }
.hero-teal   { background: linear-gradient(135deg, #0e7490, #4338ca); }
.hero-amber  { background: linear-gradient(135deg, #c2410c, #be185d); }
.hero-rose   { background: linear-gradient(135deg, #be185d, #6d28d9); }

/* ---------- FAQ ---------- */
.faq-list details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 15px 20px; margin-bottom: 10px; box-shadow: var(--shadow-1); }
.faq-list summary { font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 4px; top: .45em; width: 9px; height: 9px; border-right: 2px solid var(--color-faint); border-bottom: 2px solid var(--color-faint); transform: rotate(45deg); transition: transform .18s ease; }
.faq-list details[open] summary::after { transform: rotate(225deg); top: .62em; }
.faq-list p { margin: 12px 0 2px; color: var(--color-muted); }

/* ---------- レーダー・スコア ---------- */
.radar-flex { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.radar-flex svg { flex: 0 0 auto; max-width: 100%; height: auto; }
.score-list { flex: 1 1 300px; margin: 0; padding: 0; list-style: none; }
.score-list li { padding: 11px 0; border-bottom: 1px solid var(--color-border); font-size: .9rem; }
.score-list li:last-child { border-bottom: none; }
.score-list .score-head { display: flex; align-items: center; gap: 10px; }
.score-list .score-value { font-weight: 750; color: var(--color-primary); font-variant-numeric: tabular-nums; margin-left: auto; }
.score-list .rationale { display: block; color: var(--color-faint); font-size: .82rem; margin-top: 3px; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: var(--color-muted); margin: 4px 0 0; }
.chart-legend .key { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; }
.chart-legend .swatch { width: 12px; height: 12px; border-radius: 3px; }
.swatch-a { background: var(--radar-a); }
.swatch-b { background: var(--radar-b); }

/* ---------- 変更履歴 ---------- */
.changelog { margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.changelog li { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.changelog li:last-child { border-bottom: none; }
.changelog time { color: var(--color-faint); margin-right: 10px; font-variant-numeric: tabular-nums; }
.changelog .type { margin-right: 8px; }

/* ---------- 診断 ---------- */
.question { margin: 0 0 22px; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px 26px; }
.question legend { font-weight: 750; padding: 0 10px; font-size: 1.02rem; }
.question .option { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin: 8px 0; cursor: pointer; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); transition: border-color .15s ease, background .15s ease; font-weight: 550; }
.question .option:hover { border-color: var(--color-primary); background: var(--color-primary-bg); }
.question .option:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-bg); box-shadow: 0 0 0 1px var(--color-primary); }
.question input[type="radio"] { accent-color: var(--color-primary); width: 17px; height: 17px; }
.flash-error { background: var(--color-warn-bg); color: var(--color-warn); border: 1px solid var(--color-warn); border-radius: var(--radius-sm); padding: 12px 16px; }

/* 診断結果 */
.result-card { margin-bottom: 26px; position: relative; overflow: hidden; }
.result-card.rank-1 { border-color: rgba(234, 179, 8, .5); box-shadow: 0 4px 18px rgba(234, 179, 8, .12), var(--shadow-1); }
.result-rank { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 800; color: var(--color-accent); margin-bottom: 10px; }
.rank-medal { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 800; font-size: .95rem; box-shadow: var(--shadow-1); }
.rank-medal.m1 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.rank-medal.m2 { background: linear-gradient(135deg, #94a3b8, #64748b); }
.rank-medal.m3 { background: linear-gradient(135deg, #d97706, #92400e); }
.match-meter { max-width: 260px; margin: 6px 0 2px; }
.match-meter .track { height: 9px; border-radius: 5px; background: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--color-border); overflow: hidden; }
.match-meter .fill { height: 100%; border-radius: 5px; background: var(--grad-brand); }
.match-meter .label { font-size: .82rem; color: var(--color-muted); font-weight: 650; margin-top: 4px; }

/* ---------- カテゴリ導入記事 ---------- */
.category-intro { margin-top: 56px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-1); }
.category-intro h2::before { display: none; }
.category-intro h2 { padding-left: 0; margin-top: 32px; }
.category-intro h3 { font-size: 1.05rem; margin: 28px 0 8px; }
.category-intro ul { padding-left: 1.4em; }
.category-intro li { margin-bottom: 6px; }

.tool-link { font-weight: 700; text-decoration: none; }
.tool-link:hover { text-decoration: underline; }
.empty-note { color: var(--color-muted); background: var(--color-surface); border: 1.5px dashed var(--color-border-strong); border-radius: var(--radius); padding: 36px; text-align: center; }

/* ============================================================
   トップページ(ランディング)
   ============================================================ */
.hero {
    position: relative;
    background: var(--hero-bg);
    color: var(--hero-text);
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(720px 420px at 12% -12%, var(--hero-glow-a), transparent 62%),
        radial-gradient(640px 420px at 88% 6%, var(--hero-glow-b), transparent 60%),
        radial-gradient(520px 380px at 62% 118%, var(--hero-glow-c), transparent 62%);
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(var(--hero-gridline) 1px, transparent 1px), linear-gradient(90deg, var(--hero-gridline) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(80% 90% at 50% 10%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(80% 90% at 50% 10%, #000 30%, transparent 100%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; padding-top: clamp(48px, 8vw, 84px); padding-bottom: clamp(48px, 8vw, 84px); }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } .hero-art { max-width: 420px; margin: 0 auto; } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--hero-chip-bg); border: 1px solid var(--hero-chip-border); border-radius: 9999px; padding: 5px 16px; font-size: .82rem; font-weight: 650; color: var(--hero-muted); margin-bottom: 20px; }
.hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.8rem); line-height: 1.28; margin: 0 0 18px; color: var(--hero-strong); font-weight: 850; letter-spacing: .01em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--hero-grad-1), var(--hero-grad-2) 55%, var(--hero-grad-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .hero-lead { color: var(--hero-muted); font-size: clamp(.95rem, .9rem + .3vw, 1.08rem); margin: 0 0 30px; max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero .btn-ghost { border-color: var(--hero-ghost-border); color: var(--hero-ghost-text); }
.hero .btn-ghost:hover { border-color: var(--hero-ghost-border-hover); background: var(--hero-ghost-bg-hover); color: var(--hero-ghost-text-hover); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 44px var(--hero-art-shadow)); }

/* 統計バンド */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 26px; }
@media (max-width: 720px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat-band .stat { border-left: 1px solid var(--hero-line); padding: 2px 0 2px 16px; }
.stat-band .stat b { display: block; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); font-weight: 800; color: var(--hero-strong); font-variant-numeric: tabular-nums; line-height: 1.25; }
.stat-band .stat b small { font-size: .62em; font-weight: 750; margin-left: 2px; }
.stat-band .stat span { font-size: .78rem; color: var(--hero-muted); font-weight: 600; }

/* ホーム共通セクション */
.home-section { padding: clamp(40px, 7vw, 68px) 0 0; }
.home-section .section-head { margin-bottom: 26px; }
.home-section .section-head .kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--color-primary); font-weight: 750; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.home-section .section-head h2 { margin: 0 0 8px; padding-left: 0; }
.home-section .section-head h2::before { display: none; }
.home-section .section-head p { color: var(--color-muted); margin: 0; max-width: 44em; }

/* 特徴カード */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { position: relative; overflow: hidden; }
.feature-card .icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: var(--grad-brand); color: #fff; box-shadow: 0 4px 14px rgba(99, 102, 241, .35); margin-bottom: 14px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--color-muted); font-size: .9rem; }

/* カテゴリカード */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card { display: flex; flex-direction: column; text-decoration: none; color: var(--color-text); position: relative; overflow: hidden; }
.cat-card .cat-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cat-card .cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; flex: none; box-shadow: var(--shadow-1); }
.cat-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.4; }
.cat-card p { margin: 0 0 14px; color: var(--color-muted); font-size: .87rem; flex: 1; }
.cat-card .cat-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--color-faint); font-weight: 600; }
.cat-card .cat-meta .go { margin-left: auto; color: var(--color-primary); font-weight: 750; display: inline-flex; align-items: center; gap: 4px; transition: gap .15s ease; }
.cat-card:hover .cat-meta .go { gap: 8px; }
.icon-bg-blue   { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.icon-bg-violet { background: linear-gradient(135deg, #7c3aed, #db2777); }
.icon-bg-teal   { background: linear-gradient(135deg, #0891b2, #4f46e5); }
.icon-bg-amber  { background: linear-gradient(135deg, #ea580c, #db2777); }
.icon-bg-rose   { background: linear-gradient(135deg, #db2777, #7c3aed); }

/* 注目ツールランキング */
.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .rank-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .rank-grid { grid-template-columns: 1fr; } }
.rank-card { text-decoration: none; color: var(--color-text); display: flex; flex-direction: column; gap: 8px; }
.rank-card .rank-top { display: flex; align-items: center; gap: 10px; }
.rank-card .tool-name { font-size: 1.02rem; font-weight: 750; }
.rank-card .cat-tag { margin-left: auto; font-size: .72rem; color: var(--color-faint); font-weight: 650; background: var(--color-surface-2); padding: 2px 10px; border-radius: 9999px; white-space: nowrap; }
.rank-card p { margin: 0; color: var(--color-muted); font-size: .85rem; flex: 1; }
.rank-card .rank-meta { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--color-muted); }
.rank-card .rank-meta .price { font-weight: 750; color: var(--color-text); font-variant-numeric: tabular-nums; }

/* 診断CTAパネル */
.diagnosis-panel { position: relative; overflow: hidden; border-radius: 22px; background: var(--hero-bg); color: var(--hero-text); padding: clamp(30px, 5.5vw, 52px); box-shadow: var(--shadow-2); }
.diagnosis-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(560px 340px at 85% -20%, var(--hero-glow-b), transparent 60%), radial-gradient(480px 300px at 0% 130%, var(--hero-glow-c), transparent 60%); }
.diagnosis-panel > div { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
@media (max-width: 800px) { .diagnosis-panel > div { grid-template-columns: 1fr; } .diagnosis-panel .diag-art { display: none; } }
.diagnosis-panel h2 { color: var(--hero-strong); margin: 0 0 12px; padding-left: 0; }
.diagnosis-panel h2::before { display: none; }
.diagnosis-panel p { color: var(--hero-muted); margin: 0 0 24px; }
.diag-steps { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 26px; padding: 0; list-style: none; }
.diag-steps li { display: inline-flex; align-items: center; gap: 8px; background: var(--hero-chip-bg); border: 1px solid var(--hero-chip-border); border-radius: 9999px; padding: 5px 16px; font-size: .82rem; font-weight: 650; }
.diag-steps li b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--grad-brand); color: #fff; font-size: .72rem; }

/* 更新タイムライン */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: linear-gradient(var(--brand-1), var(--brand-2)); opacity: .35; }
.timeline li { position: relative; padding: 0 0 18px 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--color-surface); border: 3px solid var(--brand-1); }
.timeline .tl-meta { font-size: .8rem; color: var(--color-faint); display: flex; align-items: center; gap: 10px; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.timeline .tl-body { font-size: .9rem; color: var(--color-muted); }
.timeline .tl-body a { font-weight: 700; }

/* ============================================================
   ツール個別・比較ページ
   ============================================================ */
.tool-head { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.tool-mark { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 16px; color: #fff; font-size: 1.5rem; font-weight: 800; flex: none; box-shadow: var(--shadow-1); background: var(--grad-brand); }
.tool-head .tool-title { flex: 1; min-width: 240px; }
.tool-head h1 { margin-bottom: 4px; }
.tool-head .lead { margin-bottom: 8px; }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 6px; }
@media (max-width: 860px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
.spec-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 13px 16px; box-shadow: var(--shadow-1); }
.spec-item .spec-label { display: block; font-size: .72rem; letter-spacing: .05em; color: var(--color-faint); font-weight: 700; text-transform: uppercase; margin-bottom: 3px; }
.spec-item .spec-value { font-weight: 750; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.spec-yes { color: var(--color-good); }
.spec-no { color: var(--color-faint); }
.spec-cond { color: var(--color-warn); }

.score-list .score-bar { flex: 1 1 60px; max-width: 150px; margin-left: auto; }

/* vs リンク一覧(ツールページ下部) */
.vs-links { list-style: none; margin: 0; padding: 10px 24px; }
.vs-links li { border-bottom: 1px solid var(--color-border); }
.vs-links li:last-child { border-bottom: none; }
.vs-links a { display: flex; align-items: center; gap: 9px; padding: 11px 2px; text-decoration: none; font-weight: 600; }
.vs-links a svg:first-child { color: var(--color-faint); }
.vs-links a span { margin-left: auto; color: var(--color-primary); display: inline-flex; }

/* vs ページ */
.vs-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 8px 0 26px; }
.vs-head .vs-side { text-align: center; }
.vs-head .vs-side .tool-mark { width: 64px; height: 64px; margin: 0 auto 10px; }
.vs-head .vs-side h2 { margin: 0; padding: 0; font-size: 1.05rem; }
.vs-head .vs-side h2::before { display: none; }
.vs-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--grad-brand); color: #fff; font-weight: 850; font-size: .95rem; letter-spacing: .02em; box-shadow: 0 4px 14px rgba(99, 102, 241, .4); }
.win { color: var(--color-good); font-weight: 750; }

/* CTAセクション */
.cta-panel { text-align: center; background: linear-gradient(180deg, var(--color-surface), var(--color-primary-bg)); }

/* 404 */
.error-hero { text-align: center; padding: 80px 20px; }
.error-hero .code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 850; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }

/* ============================================================
   モーション(登場・浮遊・スクロールリビール)
   prefers-reduced-motion はベースで animation/transition を全停止済み
   ============================================================ */
@keyframes hero-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: none; } }
.hero-eyebrow      { animation: hero-rise .6s cubic-bezier(.22, .8, .35, 1) both; }
.hero h1           { animation: hero-rise .6s cubic-bezier(.22, .8, .35, 1) .08s both; }
.hero .hero-lead   { animation: hero-rise .6s cubic-bezier(.22, .8, .35, 1) .16s both; }
.hero .hero-actions{ animation: hero-rise .6s cubic-bezier(.22, .8, .35, 1) .24s both; }
.hero .stat-band   { animation: hero-rise .6s cubic-bezier(.22, .8, .35, 1) .32s both; }
.hero-art          { animation: hero-rise .8s cubic-bezier(.22, .8, .35, 1) .2s both; }

/* ヒーロー図版のフローティングカード(SVG内の <g class>) */
@keyframes ha-bob { from { transform: translateY(0); } to { transform: translateY(-7px); } }
.hero-art .ha-float   { animation: ha-bob 5.5s ease-in-out 1s infinite alternate; }
.hero-art .ha-float-2 { animation-duration: 6.5s; animation-delay: 1.6s; animation-direction: alternate-reverse; }

/* スクロールリビール(JSが .reveal を付与。translate プロパティ使用のため hover の transform と干渉しない) */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .55s ease, translate .55s ease; }
.reveal.in { opacity: 1; translate: none; }
