@charset "UTF-8";
/* ============================================================
   営業用ポートフォリオ v3「脱・AI感」
   設計書 v2.0 §6（カラー／タイポ／レイアウト／動きの上限）に準拠
   方針: 白基調・左揃え基調・罫線と余白で区切る・影なし・角丸4px以下
   禁止: 紫グラデ／ベタ塗り全幅帯／絵文字／✓／英大文字セクションラベル／中央揃え基調
   ============================================================ */

/* ---------- 1. デザイントークン（自作ミニDS） ----------
   コントラストはブラウザ実測（getComputedStyle + WCAG式）で確定済み。
   実測値（白 #ffffff 地）:
     --ink       15.76:1  （AAA）
     --ink-soft   7.53:1  （AAA）
     --brand      7.11:1  （AAA / 主ボタンの白文字も同値）
     --brand-deep 8.23:1
     --error      5.93:1  --success 5.32:1
   暖色紙 #f7f6f3 地: --ink 14.59:1 / --ink-soft 6.96:1 / --brand 6.58:1
   罫線は非テキスト。フォーム入力枠など UI 部品には 3:1 以上の --rule-strong を使う。
------------------------------------------------------------ */
:root {
    --ink:        #1a2333;  /* 本文・見出し。slate-900 より青みを抑えた独自値 */
    --ink-soft:   #4a5568;  /* 補足文 */
    --brand:      #1e4fc2;  /* 主ボタン・リンク */
    --brand-deep: #1b47ad;  /* hover（明度 -10%） */
    --brand-tint: #eef2fb;  /* ごく淡い面（タグ等） */
    --paper:      #ffffff;
    --paper-warm: #f7f6f3;  /* 交互背景。青グレーをやめた暖かい紙色 */
    --rule:       #d9d6d0;  /* 装飾罫線 1px */
    --rule-strong:#8f8880;  /* UI部品の枠線（対白 3.50:1） */
    --error:      #b23a30;
    --success:    #1f7a4d;

    /* タイポスケール 6段階（設計書 §6-2） */
    --fs-xs: 0.8rem;    /* 12.8px */
    --fs-sm: 0.9rem;    /* 14.4px */
    --fs-md: 1rem;      /* 16px */
    --fs-lg: 1.25rem;   /* 20px */
    --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 1.75rem);  /* 24-28px */
    --fs-2xl: clamp(1.75rem, 1.1rem + 2.8vw, 2.5rem); /* 28-40px */

    --lh-body: 1.9;
    --lh-title: 1.45;

    --radius: 4px;
    --gap: 24px;
    --sec-pad: 64px;    /* スマホ */
    --max: 1120px;

    --font-jp: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    --font-num: "IBM Plex Sans", sans-serif;
}

@media (min-width: 768px) {
    :root { --sec-pad: 96px; }
}

/* ---------- 2. ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-jp);
    font-size: var(--fs-md);
    font-weight: 400;
    line-height: var(--lh-body);
    color: var(--ink);
    background: var(--paper);
    text-align: left;
    font-feature-settings: "palt" 1;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 700;
    line-height: var(--lh-title);
    letter-spacing: 0;
}

p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img { max-width: 100%; height: auto; display: block; }

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

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.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;
}

.skip-link {
    position: absolute; left: 8px; top: -60px; z-index: 200;
    background: var(--paper); color: var(--brand);
    border: 1px solid var(--brand); border-radius: var(--radius);
    padding: 10px 16px; font-size: var(--fs-sm);
    transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

.container {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: 20px;
}
.container--narrow { max-width: 760px; }

@media (min-width: 768px) {
    .container { padding-inline: 32px; }
}

/* ---------- 3. セクション共通 ---------- */
.section { padding-block: var(--sec-pad); }
.section--warm { background: var(--paper-warm); }
.section--last { padding-bottom: calc(var(--sec-pad) + 16px); }

/* 通し番号（01〜）＋日本語見出し・左揃え。英大文字ラベルは全廃 */
.section-head {
    max-width: 720px;
    margin-bottom: 40px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
}
.section-num {
    font-family: var(--font-num);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--brand);
    letter-spacing: .04em;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}
.section-title {
    font-size: var(--fs-2xl);
    margin-bottom: 12px;
}
.section-lead {
    font-size: var(--fs-md);
    color: var(--ink-soft);
}
/* 中央揃えは最終CTAブロックのみ許可（設計書 §6-3-1） */
.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-cta { margin-top: 40px; }

/* ---------- 4. ボタン ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;           /* タップ領域 44px 以上 */
    padding: 12px 28px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: var(--fs-md);
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

.btn-outline {
    background: transparent;
    border-color: var(--rule-strong);
    color: var(--ink);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-full { display: flex; width: 100%; }

/* ---------- 5. ヘッダー ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}
.nav-container {
    max-width: var(--max);
    margin-inline: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nav-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;          /* タップ領域44px以上 */
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--fs-md);
    line-height: 1.35;
}
.nav-logo-sub {
    font-weight: 400;
    font-size: var(--fs-xs);
    color: var(--ink-soft);
}
.nav-menu {
    display: none;
    align-items: center;
    gap: 4px;
}
.nav-link {
    display: block;
    padding: 10px 12px;
    min-height: 44px;
    line-height: 24px;
    color: var(--ink);
    font-size: var(--fs-sm);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--brand); border-bottom-color: var(--brand); }
.nav-cta {
    margin-left: 8px;
    padding: 10px 20px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius);
    border-bottom-color: transparent;
}
.nav-cta:hover { background: var(--brand-deep); color: #fff; border-bottom-color: transparent; }

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0 10px;
    background: none;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 1.5px;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 900px) {
    .nav-menu { display: flex; }
    .nav-toggle { display: none; }
}

@media (max-width: 899px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: fixed;
        inset: 61px 0 auto 0;
        /* 背後のコンテンツが下から覗かないよう、残りのビューポートを埋める */
        height: calc(100dvh - 61px);
        overflow-y: auto;
        padding: 8px 20px 24px;
        background: var(--paper);
    }
    .nav-menu.active .nav-link {
        padding: 14px 0;
        border-bottom: 1px solid var(--rule);
        font-size: var(--fs-md);
    }
    .nav-menu.active .nav-cta {
        margin: 16px 0 0;
        padding: 14px 20px;
        text-align: center;
        border-bottom: none;
    }
}

/* ---------- 6. ヒーロー（左寄せ2カラム） ---------- */
.hero {
    padding-block: 48px 0;
    border-bottom: 1px solid var(--rule);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}
.hero-eyebrow {
    font-size: var(--fs-xs);
    color: var(--ink-soft);
    letter-spacing: .02em;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--rule);
}
/* 改行位置を手動指定するため、2行で収まるサイズに抑える（設計書 §6-2） */
.hero-title {
    font-size: clamp(1.5rem, 1.02rem + 2.4vw, 2.25rem);
    line-height: 1.45;
    margin-bottom: 20px;
}
.hero-accent {
    color: var(--brand);
    /* 下線は罫線1本のみ。塗り・グラデーションは使わない */
    border-bottom: 2px solid var(--brand);
    padding-bottom: 2px;
    white-space: nowrap;   /* 「最短翌日」が途中で折れて下線が割れるのを防ぐ */
}
.hero-lead {
    font-size: var(--fs-md);
    color: var(--ink-soft);
    margin-bottom: 28px;
    max-width: 34em;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.hero-actions .btn { flex: 1 1 auto; min-width: 180px; }
.hero-microcopy {
    font-size: var(--fs-xs);
    color: var(--ink-soft);
}

/* 実物スクショのコラージュ（整列基調・傾けない） */
.hero-figure { position: relative; }
.shot { border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.shot-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 10px;
    background: var(--paper-warm);
    border-bottom: 1px solid var(--rule);
}
.shot-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--rule-strong); }
.shot-pc img { width: 100%; display: block; }
/* スマホ画面のスクショを右下に重ねる（傾けない・整列基調） */
.shot-sp {
    position: absolute;
    right: 16px;
    bottom: -28px;
    width: 26%;
    max-width: 124px;
}
.shot-sp img { width: 100%; }
.hero-figure-caption {
    margin-top: 40px;
    padding-right: 30%;
    font-size: var(--fs-xs);
    color: var(--ink-soft);
}

/* 数字3つ: ボックス化せず罫線区切りの1行に（診断#1・#3の解消） */
.hero-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 8px;
    border-top: 1px solid var(--rule);
}
.hero-stats li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
}
.hero-stat-value {
    font-family: var(--font-num);
    font-size: var(--fs-lg);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    white-space: nowrap;
}
.hero-stat-label {
    font-size: var(--fs-sm);
    color: var(--ink-soft);
}

@media (min-width: 900px) {
    .hero { padding-block: 64px 0; }
    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 48px;
        column-gap: 56px;
    }
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 40px;
        border-bottom: 1px solid var(--rule);
    }
    .hero-stats li {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 18px 24px 18px 0;
        border-bottom: none;
        border-right: 1px solid var(--rule);
    }
    .hero-stats li:last-child { border-right: none; }
    .hero-stat-value { font-size: 1.75rem; }
}

/* ---------- 7. サービス（非対称グリッド） ---------- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--rule);
}
.service-card {
    padding: 28px 0;
    border-bottom: 1px solid var(--rule);
}
.service-num {
    font-family: var(--font-num);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
    margin-bottom: 10px;
}
.service-pain {
    font-size: var(--fs-sm);
    color: var(--ink-soft);
    padding-left: 12px;
    border-left: 2px solid var(--rule-strong);
    margin-bottom: 14px;
}
.service-title {
    font-size: var(--fs-lg);
    margin-bottom: 10px;
}
.service-card--lead .service-title { font-size: var(--fs-xl); }
.service-desc { margin-bottom: 12px; }
.service-note {
    font-size: var(--fs-sm);
    color: var(--ink-soft);
}
.service-note--tech { font-family: var(--font-num); }

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 40px;
        border-top: none;
    }
    .service-card {
        padding: 28px 0 32px;
        border-top: 1px solid var(--rule);
        border-bottom: none;
    }
    /* 主力の「業務自動化・AI導入」を2枠分に。均等グリッドの定型を崩す */
    .service-card--lead { grid-column: span 2; }
    .service-card--wide { grid-column: span 2; }
}

/* ---------- 8. 約束していること（罫線リスト） ---------- */
.promise-list { border-top: 1px solid var(--rule); }
.promise-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 8px 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--rule);
}
.promise-num {
    font-family: var(--font-num);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
    line-height: 1.6;
}
.promise-title { font-size: var(--fs-lg); margin-bottom: 6px; }
.promise-text { color: var(--ink-soft); }

@media (min-width: 768px) {
    .promise-item { grid-template-columns: 88px 1fr; gap: 8px 24px; }
}

/* ---------- 9. 実績（大小混在Bento） ---------- */
.works-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
    /* 画像なしカード（非公開ツール）が、画像ありカードの高さに引き伸ばされて
       下に大きな空白ができるのを防ぐ。各カードを内容の高さで止める */
    align-items: start;
}
.work-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s ease;   /* hoverは罫線色の変化のみ。影・拡大は使わない */
}
.work-card:hover { border-color: var(--rule-strong); }
.work-figure {
    border-bottom: 1px solid var(--rule);
    background: var(--paper-warm);
}
.work-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.work-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.work-tag {
    align-self: flex-start;
    font-size: var(--fs-xs);
    color: var(--brand);
    background: var(--brand-tint);
    border-radius: var(--radius);
    padding: 2px 8px;
    margin-bottom: 10px;
    line-height: 1.7;
}
.work-title { font-size: var(--fs-lg); margin-bottom: 14px; }
.work-facts { display: grid; gap: 8px; margin-bottom: 16px; }
.work-facts > div {
    display: grid;
    grid-template-columns: 3.5em 1fr;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--rule);
    font-size: var(--fs-sm);
}
.work-facts dt { color: var(--ink-soft); font-weight: 500; }
.work-facts dd { margin: 0; }
.work-link {
    margin-top: auto;
    align-self: flex-start;
    font-size: var(--fs-sm);
    font-weight: 500;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
/* 矢印などの装飾記号は使わず、下線でリンクであることを示す */
.work-link { text-decoration: underline; text-decoration-thickness: 1px; }
.work-note {
    margin-top: auto;
    padding-top: 8px;
    font-size: var(--fs-xs);
    color: var(--ink-soft);
}
.work-card--text .work-body { padding-top: 24px; }

@media (min-width: 768px) {
    .works-bento { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* 小: 稼働中の非公開ツールは罫線リストで密度を上げる（カードの反復を避ける） */
.works-list-wrap { margin-top: 48px; }
.works-list-title {
    font-size: var(--fs-md);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule-strong);
}
.works-list-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
}
.works-list-name { font-size: var(--fs-md); font-weight: 500; }
.works-list-text { font-size: var(--fs-sm); color: var(--ink-soft); }
.works-list-state { font-size: var(--fs-xs); color: var(--ink-soft); }

@media (min-width: 768px) {
    .works-list-item {
        grid-template-columns: 100px 1fr 120px;
        align-items: baseline;
        gap: 20px;
    }
    .works-list-state { text-align: right; }
}

/* ---------- 10. 料金表 ---------- */
.table-wrap { overflow-x: auto; }
.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-md);
}
.price-table th, .price-table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid var(--rule);
    vertical-align: baseline;
}
.price-table thead th {
    font-size: var(--fs-sm);
    color: var(--ink-soft);
    font-weight: 500;
    border-bottom: 1px solid var(--rule-strong);
}
.price-table tbody th { font-weight: 500; }
.price-table .num {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    white-space: nowrap;
}
.price-note {
    display: block;
    font-family: var(--font-jp);
    font-size: var(--fs-xs);
    font-weight: 400;
    color: var(--ink-soft);
}
.price-footnote {
    margin-top: 16px;
    font-size: var(--fs-sm);
    color: var(--ink-soft);
}

/* ---------- 11. AI顧問プラン ---------- */
.plans {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.plan {
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.plan--popular { border-color: var(--brand); }
.plan-badge {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 2px 10px;
    font-size: var(--fs-xs);
    color: #fff;
    background: var(--brand);
    border-radius: var(--radius);
    line-height: 1.8;
}
.plan-name { font-size: var(--fs-lg); margin-bottom: 8px; }
.plan-price {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
    margin-bottom: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule);
}
.plan-price-pre, .plan-price-unit {
    font-family: var(--font-jp);
    font-size: var(--fs-sm);
    color: var(--ink-soft);
}
.plan-price-value { font-size: 1.75rem; font-weight: 700; margin-inline: 4px; }
.plan-build {
    margin-top: 12px;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--brand);
}
.plan-features { margin: 14px 0 20px; display: grid; gap: 8px; }
.plan-features li {
    font-size: var(--fs-sm);
    color: var(--ink-soft);
    padding-left: 14px;
    position: relative;
}
/* ✓や絵文字は使わない。1pxの短い罫線で列挙を示す */
.plan-features li::before {
    content: "";
    position: absolute;
    left: 0; top: .85em;
    width: 8px; height: 1px;
    background: var(--rule-strong);
}
.plan-features + .btn { margin-top: auto; }

.advisory-entry {
    margin-top: 32px;
    padding: 24px 20px;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    display: grid;
    gap: 20px;
}
.advisory-entry-eyebrow {
    font-size: var(--fs-xs);
    color: var(--ink-soft);
    margin-bottom: 6px;
}
.advisory-entry-title { font-size: var(--fs-lg); margin-bottom: 8px; }
.advisory-entry-desc { font-size: var(--fs-sm); color: var(--ink-soft); }
.advisory-entry-amount {
    font-family: var(--font-num);
    font-size: 1.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-bottom: 12px;
}
.advisory-entry-amount-unit {
    font-family: var(--font-jp);
    font-size: var(--fs-sm);
    font-weight: 400;
    color: var(--ink-soft);
    margin-left: 4px;
}

@media (min-width: 768px) {
    .plans { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .advisory-entry { grid-template-columns: 1fr 280px; align-items: center; padding: 28px; }
}

/* ---------- 12. 依頼の流れ（左罫線の縦タイムライン） ---------- */
.flow { border-left: 1px solid var(--rule); padding-left: 0; }
.flow-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 0 0 32px 24px;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before {
    content: "";
    position: absolute;
    left: -4.5px; top: 10px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--brand);
}
.flow-num {
    font-family: var(--font-num);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
}
.flow-title { font-size: var(--fs-lg); margin-bottom: 4px; }
.flow-text { color: var(--ink-soft); }
.flow-time { font-size: var(--fs-xs); color: var(--ink-soft); }

@media (min-width: 768px) {
    .flow-step { grid-template-columns: 80px 1fr; gap: 24px; padding-left: 32px; }
    .flow-num { line-height: 1.9; }
}

/* ---------- 13. 担当者（罫線表組み） ---------- */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.profile-photo { margin-bottom: 20px; }
.profile-photo img {
    width: 100%;
    max-width: 240px;
    border-radius: var(--radius);   /* 角版。円形トリミングはアバター感が出るため使わない */
    border: 1px solid var(--rule);
}
.profile-name {
    font-size: var(--fs-xl);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}
.profile-role {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 400;
    color: var(--ink-soft);
}
.profile-bio { color: var(--ink-soft); margin-bottom: 12px; }
.profile-org { font-size: var(--fs-sm); color: var(--ink-soft); }

.profile-facts { border-top: 1px solid var(--rule-strong); }
.profile-facts > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
}
.profile-facts dt {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--ink-soft);
}
.profile-facts dd { margin: 0; font-size: var(--fs-md); }

@media (min-width: 768px) {
    .profile-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; }
    .profile-facts > div { grid-template-columns: 9em 1fr; gap: 20px; align-items: baseline; }
}

/* ---------- 14. FAQ ---------- */
.faq-list { border-top: 1px solid var(--rule-strong); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item h3 { margin: 0; font-size: inherit; font-weight: inherit; }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 56px;
    padding: 16px 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: var(--fs-md);
    font-weight: 500;
    line-height: 1.7;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.faq-question:hover { color: var(--brand); }
/* ＋／－記号は使わず、1px罫線を組み合わせた記号にする（絵文字・装飾記号の排除） */
.faq-mark {
    position: relative;
    flex: 0 0 auto;
    width: 14px; height: 14px;
}
.faq-mark::before, .faq-mark::after {
    content: "";
    position: absolute;
    left: 0; top: 6.5px;
    width: 14px; height: 1.5px;
    background: var(--ink-soft);
    transition: transform .2s ease;
}
.faq-mark::after { transform: rotate(90deg); }
.faq-question[aria-expanded="true"] .faq-mark::after { transform: rotate(0deg); }

/* 開閉はJSが .faq-item に .open を付け外しする（ボタンが h3 の中にあるため隣接セレクタは使わない） */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}
.faq-answer > p {
    overflow: hidden;
    color: var(--ink-soft);
    font-size: var(--fs-sm);
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer > p { padding-bottom: 20px; }

/* ---------- 15. フォーム ---------- */
.contact-form {
    padding: 28px 20px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--fs-sm);
    font-weight: 500;
}
.required {
    margin-left: 8px;
    padding: 1px 6px;
    font-size: var(--fs-xs);
    font-weight: 400;
    color: var(--error);
    border: 1px solid var(--error);
    border-radius: 2px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: var(--fs-md);      /* 16px: iOSの自動ズームを防ぐ */
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #6b6560; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--brand); }
.form-group input.invalid,
.form-group textarea.invalid { border-color: var(--error); }
.form-error {
    margin-top: 6px;
    min-height: 1.2em;
    font-size: var(--fs-xs);
    color: var(--error);
    line-height: 1.6;
}
.form-microcopy {
    margin-top: 12px;
    font-size: var(--fs-xs);
    color: var(--ink-soft);
    text-align: center;
}
.contact-mail {
    margin-top: 20px;
    font-size: var(--fs-sm);
    color: var(--ink-soft);
    text-align: center;
}

@media (min-width: 768px) {
    .contact-form { padding: 32px; }
}

/* ---------- 16. フッター ---------- */
.footer {
    padding-block: 48px 32px;
    border-top: 1px solid var(--rule-strong);
    background: var(--paper);
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--rule);
}
.footer-name { font-weight: 700; }
.footer-role, .footer-contact { font-size: var(--fs-sm); color: var(--ink-soft); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a {
    font-size: var(--fs-sm);
    color: var(--ink);
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.footer-nav a:hover { color: var(--brand); text-decoration: underline; }
.footer-privacy { padding-block: 24px; border-bottom: 1px solid var(--rule); }
.footer-privacy h2 { font-size: var(--fs-sm); margin-bottom: 8px; }
.footer-privacy p { font-size: var(--fs-xs); color: var(--ink-soft); }
.footer-copy { margin-top: 20px; font-size: var(--fs-xs); color: var(--ink-soft); }

@media (min-width: 768px) {
    .footer-top { grid-template-columns: 1fr auto; align-items: start; }
}

/* ---------- 17. 固定CTA ---------- */
.fixed-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--rule-strong);
    transform: translateY(110%);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
}
.fixed-cta.visible { transform: translateY(0); opacity: 1; visibility: visible; }
.fixed-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius);
    font-size: var(--fs-md);
    font-weight: 500;
    text-decoration: none;
}
.fixed-cta-btn:hover { background: var(--brand-deep); color: #fff; }

/* 下部バー方式のあいだは、ページ末尾がバーに隠れないよう逃げを確保する */
@media (max-width: 1499px) {
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* 中間幅（タブレット〜一般的なノートPC）は下部バーのまま。ボタン幅だけ抑えて中央に置く */
@media (min-width: 768px) {
    .fixed-cta-btn { max-width: 320px; margin-inline: auto; }
}

/* 右下固定に切り替えるのは、コンテンツと重ならない余白が確保できる幅のときだけ。
   コンテンツ右端 = vw/2 + 560 - 32(コンテナのパディング)
   CTA左端       = vw - 24(right) - 145(ボタン幅の実測値)
   両者が24px以上離れる条件は vw >= 1442px。安全側に倒して 1500px を境にする。
   945px / 1280px / 1366px などの中間幅では下部バーのままとし、
   担当者テーブルの dd 等にCTAが重なって文字が隠れる不具合を防ぐ。 */
@media (min-width: 1500px) {
    .fixed-cta {
        left: auto; right: 24px; bottom: 24px;
        padding: 0;
        background: none;
        border-top: none;
        border-radius: var(--radius);
    }
    .fixed-cta-btn { max-width: none; margin-inline: 0; border: 1px solid var(--brand-deep); }
}

/* ---------- 18. 動き（設計書 §6-4 の上限内）----------
   使うのは opacity / transform のみ。duration 0.5s以下・移動量 16px以下。
   パララックス／背景の常時アニメ／ホバー拡大／ローディング演出は使わない。
------------------------------------------------------------ */
.animate-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .45s ease, transform .45s ease;
}
.animate-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .animate-in { opacity: 1; transform: none; }
}

/* 印刷時は固定CTAを消す */
@media print {
    .fixed-cta, .navbar { display: none; }
    .animate-in { opacity: 1; transform: none; }
}
