/* AI ガバナンスガイドライン策定支援サービス LP。トンマナは実装支援 LP（AI セキュリティ改善・実装支援サービス）の styles/site.css を基準にする（docs/decision-log.md「トンマナ」） */
:root {
  --navy: #0B1F33;
  --blue: #006FE6;
  --blue-hover: #005BBD;
  --cyan: #00AFC8;
  --ink: #1A2433;
  --pale: #F4F8FC;
  --muted: #4A5A6E;
  --line: #D5E0EC;
  --white: #FFFFFF;
  --radius: 8px;
  --content: 1120px;
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-latin: Inter, Arial, "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--content); margin: 0 auto; padding-inline: 32px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand img { display: block; width: 72px; height: auto; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav .nav-link { color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 500; }
.header-nav .nav-link:hover { text-decoration: underline; }

/* Breadcrumb */
.breadcrumb { font-size: 12px; color: var(--muted); padding-block: 12px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }
.breadcrumb a { color: var(--navy); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 6px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
}
.button:focus-visible, .text-link:focus-visible, .header-nav .nav-link:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.button--primary { background: var(--blue); color: var(--white); }
.button--primary:hover { background: var(--blue-hover); }
.button--secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.button--small { min-height: 44px; padding: 10px 18px; font-size: 14px; }

/* Hero */
.hero { position: relative; isolation: isolate; background: linear-gradient(90deg, var(--white) 0%, var(--white) 36%, #E8F2FD 60%, #E3F0FD 100%); padding-block: 64px 96px; overflow-x: clip; overflow-y: clip; }
.hero-grid {
  display: grid;
  /* 先方提供の KV（16:9）を大きく見せるため、H1 は全幅に置き、その下でリード・CTA（左）と KV（右）を並べる（2026-10-12 修正指示書 1・12） */
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  grid-template-areas:
    "head head"
    "lead visual"
    "primary visual"
    "secondary visual"
    "sub visual";
  grid-template-rows: auto auto auto auto 1fr;
  column-gap: 40px;
  align-items: start;
}
.hero-head { grid-area: head; }
.hero-lead { grid-area: lead; }
.hero-primary { grid-area: primary; justify-self: start; margin-bottom: 12px; }
.hero-secondary { grid-area: secondary; justify-self: start; margin-bottom: 20px; }
.hero-sublink { grid-area: sub; }
/* 図は右カラムから右の余白へ最大 96px 出して大きく見せる（実装支援 LP と同じ）。左はリードと重ならないよう、カラム間の余白へは入れない */
.hero-visual { grid-area: visual; align-self: center; justify-self: stretch; width: auto; margin-left: 0; margin-right: calc(-1 * min(max(0px, (100vw - var(--content)) / 2) + 32px, 96px)); pointer-events: none; }
.hero-eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--navy); letter-spacing: 0.02em; margin: 0 0 16px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
/* 見出しサイズの基準: H1 48〜56px／モバイル 32〜36px、H2 32〜40px／モバイル 26〜30px */
.hero h1 { font-size: 48px; line-height: 1.35; color: var(--navy); margin: 0 0 28px; letter-spacing: 0.01em; font-weight: 700; }
/* H1 は「」が 2 組あり、全角の約物の余白で行が長くなるため、約物だけを詰める（palt）。スマホで「から、」を割らずに 1 行へ収めるため */
.hero h1 { font-feature-settings: "palt"; }
.hero h1 .line { display: block; white-space: nowrap; }
.hero-lead { font-size: 17px; line-height: 1.9; margin: 0 0 32px; max-width: 34em; }
.hero-sublink { font-size: 14px; color: var(--muted); margin: 0; }
/* 既存のPCの文節配置。モバイルでは末尾のルールで文節内改行を禁止する。 */
.phrase { display: inline-block; }
.nowrap { white-space: nowrap; }
.text-link { color: var(--navy); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; display: inline-block; }

/* Visual: 先方提供のキービジュアル（2026-10-12・地は白〜淡い青）。縦横比を保って全体を見せ、四辺だけを細いグラデーションで背景へつなぐ（左右の端に図柄があるため、ぼかしは端の 4% に留める）。スマホは左右が画面の端に接するので上下だけ */
.hero-visual { position: relative; aspect-ratio: 1600 / 900; margin-block: 0; }
.hero-visual picture, .hero-visual .hero-visual-img { display: block; width: 100%; height: 100%; }
.hero-visual-img { object-fit: contain; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-composite: intersect; }

@media (max-width: 1023px) {
  .header-nav .nav-link { display: none; }
  .hero-grid { display: flex; flex-direction: column; }
  .hero h1 { font-size: 48px; }
  .hero-primary, .hero-secondary { align-self: flex-start; }
  /* 1 列のときは背景を上下のグラデーションにする。タブレットでは図の幅を 720px までにし、四辺を背景へつなぐ */
  .hero { background: linear-gradient(180deg, var(--white) 0%, #EEF5FD 45%, #E3F0FD 100%); }
  .hero-visual { width: 100%; max-width: 720px; margin: 8px auto 24px; }
  .hero-visual-img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(180deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(180deg, transparent 0, #000 5%, #000 95%, transparent 100%); }
}

@media (max-width: 767px) {
  .container { padding-inline: 20px; }
  .header-inner { min-height: 60px; }
  .brand img { width: 56px; }
  .header-nav .button { display: none; } /* mobile は主 CTA 通過後に画面下部の固定 CTA を表示する */
  .hero h1 .line { white-space: normal; }
  .breadcrumb li[aria-current="page"] { flex-basis: 100%; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .hero { padding-block: 16px 64px; }
  .hero h1 { font-size: clamp(24px, 7.8vw, 34px); } /* 「「禁止するルール」から、」を 1 行に収める上限。390px で約 30px */
  .hero-lead { font-size: 16px; }
  /* mobile は DOM 順のまま縦に並べる（H1 → リード → 主 CTA → ビジュアル → 副 CTA → 補助リンク） */
  .hero-primary, .hero-secondary { align-self: stretch; width: 100%; white-space: normal; }
  .hero-primary { margin-bottom: 0; }
  /* スマホは図を左右の画面端まで伸ばし、画面の端に接する左右はぼかさない */
  .hero-visual { width: calc(100% + 40px); max-width: none; margin: 16px -20px; }
  .hero-visual-img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 5%, #000 95%, transparent 100%); }
}

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


/* mobile の固定 CTA。主 CTA 通過後、問い合わせ欄が見えていない間だけ表示 */
.sticky-cta { display: none; }
@media (max-width: 767px) {
  .sticky-cta {
    display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 20;
    padding: 8px 20px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
  }
  .sticky-cta .button { width: 100%; padding-inline: 8px; white-space: normal; }
  .sticky-cta[hidden] { display: none; }
  body.has-sticky-cta { padding-bottom: var(--sticky-cta-height, 0px); }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--white); padding-block: 40px 56px; }
.site-footer h2 { font-size: 14px; color: var(--muted); font-weight: 700; margin: 0 0 8px; }
.site-footer p { margin: 0 0 8px; font-size: 14px; }
.site-footer .footer-note { color: var(--muted); font-size: 13px; }

/* ===== 本文セクション ===== */
.section { padding-block: 96px; }
.section--tinted { background: var(--pale); }
.section h2 { font-size: clamp(32px, 2.6vw, 38px); line-height: 1.5; color: var(--navy); margin: 0 0 20px; }
.section-lead { font-size: 17px; margin: 0 0 40px; max-width: 46em; }
.note { font-size: 14px; color: var(--muted); margin: 24px 0 0; max-width: 60em; }
.section-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* 課題提起（実装支援 LP と同じ部品） */
.problem-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.problem-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 24px 1fr; gap: 6px 12px; align-items: start; }
.problem-card h3 { font-size: 17px; color: var(--navy); margin: 0; line-height: 1.6; }
.problem-card p { margin: 0; font-size: 15px; grid-column: 2; }
.card-icon { color: var(--blue); }
.shift-message { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 28px 32px; margin: 0; }
.shift-message p { margin: 0; font-size: 15px; line-height: 1.9; max-width: 52em; }
.shift-message .shift-message-title { font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; line-height: 1.6; margin-bottom: 12px; max-width: none; }

/* ラベル（「例」） */
.tag {
  font-size: 11px; font-weight: 700; line-height: 1.6; letter-spacing: 0.08em;
  color: #0B4E8F; background: #E4F0FD; border: 0; border-radius: 4px; padding: 3px 8px;
  white-space: nowrap; align-self: center; margin-left: 8px;
}

/* 3 層の考え方 */
.layer-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.layer-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.layer-card:nth-child(2) { border-top-color: var(--blue); }
.layer-card:nth-child(3) { border-top-color: var(--cyan); }
.layer-index { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.layer-card h3 { font-size: 18px; color: var(--navy); margin: 0; line-height: 1.5; }
.layer-card > p { margin: 0; font-size: 15px; }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { font-size: 14px; color: var(--navy); background: var(--pale); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; line-height: 1.6; }
.table-scroll { overflow-x: auto; }
.rule-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.rule-table caption { text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.rule-table th, .rule-table td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.rule-table thead th { font-size: 12px; color: var(--muted); border-bottom: 2px solid var(--line); }
.rule-table tbody th { color: var(--navy); font-weight: 700; width: 42%; word-break: keep-all; overflow-wrap: anywhere; } /* 「作成」等の短い語を途中で折らない */

/* 策定範囲 */
.scope-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.scope-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 40px 1fr; gap: 6px 12px; align-items: start; align-content: start; /* 同じ行のカードに高さを合わせたとき、余りを行間へ配らない */ }
.scope-index { font-size: 20px; font-weight: 700; color: var(--blue); line-height: 1.4; }
.scope-card h3 { font-size: 17px; color: var(--navy); margin: 0; line-height: 1.6; }
.scope-card p { margin: 0; font-size: 15px; grid-column: 2; }
.scope-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ワークショップ */
.workshop { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 20px; }
.workshop-topic { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 17px; font-weight: 700; color: var(--navy); }
.workshop-topic-label { font-size: 12px; font-weight: 700; color: var(--white); background: var(--navy); border-radius: 4px; padding: 3px 10px; white-space: nowrap; }
.voice-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.voice-card { background: var(--pale); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.voice-role { font-size: 13px; font-weight: 700; color: var(--blue-hover); } /* pale 地の上の 13px は blue だと 4.46:1 で AA に届かないため、一段濃い青にする */
.voice-text { font-size: 14px; line-height: 1.7; }
.workshop-arrow { display: flex; justify-content: center; color: var(--blue); }
.verdict-row { display: grid; justify-items: center; gap: 12px; }
.verdict-title { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.verdict-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 12px; }
.verdict { text-align: center; font-size: 16px; font-weight: 700; border-radius: var(--radius); padding: 14px 12px; border: 2px solid transparent; }
.verdict--deny { color: var(--white); background: var(--navy); }
.verdict--conditional { color: var(--navy); background: var(--white); border-color: var(--blue); }
.verdict--allow { color: var(--white); background: var(--blue); }

/* 進め方（8 Step） */
.process-list { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.process-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; display: flex; flex-direction: column; gap: 8px; }
.process-step::before { counter-increment: step; content: "Step " counter(step); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--blue); }
.process-step h3 { font-size: 16px; color: var(--navy); margin: 0; line-height: 1.6; }
.process-term { margin: auto 0 0; font-size: 14px; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--line); }
.process-term::before { content: "期間の目安 "; }

/* 成果物 */
.deliverable-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.deliverable-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; font-size: 15px; }
.deliverable-name { display: block; font-weight: 700; color: var(--navy); }
.deliverable-use { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.option-box { margin-top: 24px; border: 1px dashed var(--navy); border-radius: var(--radius); padding: 20px 24px; }
.option-box h3 { font-size: 16px; color: var(--navy); margin: 0 0 12px; }
.option-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.option-item { font-size: 14px; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

/* プラン */
.plan-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.plan-card h3 { font-size: 22px; color: var(--navy); margin: 0; }
.plan-card p { margin: 0; font-size: 15px; }
.plan-for { color: var(--muted); }
.plan-base { font-size: 14px !important; font-weight: 700; color: var(--blue); }
.plan-scope { margin: 0; padding-left: 1.2em; font-size: 15px; display: grid; gap: 4px; }
.plan-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.plan-meta dt { color: var(--muted); }
.plan-meta dd { margin: 0; font-weight: 700; color: var(--navy); }

/* アセスメントからの接続 */
.convert { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.convert-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.convert-col--rules { border-color: var(--blue); border-width: 2px; }
.convert-title { font-size: 16px; color: var(--navy); margin: 0 0 16px; line-height: 1.6; }
.convert-arrow { display: grid; place-items: center; color: var(--blue); }
.finding-list, .guideline-rule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.finding-item, .rule-item { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.7; }
.finding-item::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.rule-item { color: var(--navy); font-weight: 700; }
.rule-item::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 6px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); }
.after-box { margin-top: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.after-box h3 { font-size: 17px; color: var(--navy); margin: 0 0 12px; }
.after-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.after-list li { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.after-list strong { color: var(--blue); font-size: 15px; }
/* 実装のセクション（D5）: 決めたルール → AI MONBAN での実装 を 1 枚のカードで対にする */
.implement-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.implement-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.implement-card p { margin: 0; }
.implement-label { display: block; font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.implement-rule { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.implement-how { font-size: 15px; line-height: 1.8; padding-top: 16px; border-top: 1px solid var(--line); }
#implementation .note { margin-top: 20px; }
#assessment .section-lead { margin-bottom: 0; }
#assessment .assessment-note { margin: 12px 0 40px; }

/* 選ばれる理由 */
.reason-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.reason-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-left: 3px solid var(--blue); }
.reason-card h3 { font-size: 17px; color: var(--navy); margin: 0 0 8px; }
.reason-card p { margin: 0; font-size: 15px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item h3 { margin: 0; font-size: 16px; }
.faq-question {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px;
  font: inherit; font-weight: 700; color: var(--navy); line-height: 1.7;
}
.faq-question:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.faq-icon { flex: none; width: 16px; height: 16px; margin-top: 5px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--blue); }
.faq-icon::before { inset: 7px 0; height: 2px; }
.faq-icon::after { inset: 0 7px; width: 2px; transition: transform 0.15s ease; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: scaleY(0); }
.faq-answer { padding: 0 24px 20px 52px; }
.faq-answer p { margin: 0; font-size: 15px; }

/* 最終 CTA */
.section--contact { background: var(--navy); }
.section--contact h2, .section--contact .section-lead { color: var(--white); }
.section--contact .section-lead { max-width: 52em; }

@media (prefers-reduced-motion: reduce) { .faq-icon::after { transition: none; } }

@media (max-width: 1023px) {
  .section { padding-block: 72px; }
  .section h2 { font-size: 32px; }
  .layer-list, .plan-list { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voice-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .after-list, .implement-list { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .section { padding-block: 64px; }
  .section h2 { font-size: clamp(26px, 7.2vw, 30px); }
  .section-lead { margin-bottom: 32px; }
  #assessment .assessment-note { margin-bottom: 32px; }
  .problem-list, .scope-list, .deliverable-list, .reason-list, .process-list, .voice-list { grid-template-columns: 1fr; }
  .shift-message { padding: 24px 20px; }
  .workshop { padding: 20px; }
  .verdict-list { grid-template-columns: 1fr; width: 100%; }
  .convert { grid-template-columns: 1fr; gap: 8px; }
  .convert-col { padding: 20px; }
  .convert-arrow { transform: rotate(90deg); }
  .section-actions .button { width: 100%; white-space: normal; }
  .faq-question { padding: 16px 20px; }
  .faq-answer { padding: 0 20px 16px 48px; }
}

/* 日本語の改行: 見出しは .phrase で文節の塊ごとに折り返す。本文は孤立行を避ける（text-wrap: pretty）。
   auto-phrase は Chromium のみ対応のため補助として使う */
:lang(ja) .section-lead, :lang(ja) .problem-card p, :lang(ja) .layer-card > p, :lang(ja) .scope-card p, :lang(ja) .voice-text,
:lang(ja) .deliverable-use, :lang(ja) .plan-for, :lang(ja) .plan-scope, :lang(ja) .finding-item, :lang(ja) .rule-item, :lang(ja) .after-list span, :lang(ja) .implement-how,
:lang(ja) .reason-card p, :lang(ja) .faq-answer p, :lang(ja) .layer-example-rule, :lang(ja) .change-row p, :lang(ja) .workshop-body > p, :lang(ja) .sample-table td, :lang(ja) .tier-items, :lang(ja) .note, :lang(ja) .shift-message p, :lang(ja) .rule-table td,
:lang(ja) .footer-note, :lang(ja) .workshop-topic { text-wrap: pretty; word-break: auto-phrase; }
.section h2, .section h3, .faq-question, .button { text-wrap: balance; word-break: auto-phrase; }

/* ===== 2026-10-12 修正指示書の反映 ===== */
/* 3 層の具体例（指示 2） */
.layer-example { margin-top: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.layer-example-title { font-size: 18px; color: var(--navy); margin: 0 0 16px; line-height: 1.6; }
.layer-example-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.layer-example-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 16px; border-radius: var(--radius); background: var(--pale); }
.layer-example-row p { margin: 0; }
.layer-example-layer { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.layer-example-index { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--white); background: var(--navy); border-radius: 4px; padding: 1px 8px; margin-right: 8px; }
.layer-example-row:nth-child(2) .layer-example-index { background: var(--blue-hover); }
.layer-example-row:nth-child(3) .layer-example-index { background: #00758A; }
.layer-example-rule { font-size: 15px; line-height: 1.7; }
.layer-example-arrow { display: flex; justify-content: center; color: var(--blue); margin: 8px 0; }
.layer-example-result { margin: 0; text-align: center; font-size: 17px; font-weight: 700; color: var(--white); background: var(--blue-hover); border-radius: var(--radius); padding: 14px 16px; line-height: 1.6; }
.layer-example .note { margin-top: 16px; }

/* 7 領域の補足説明（指示 3: カードには差し替えた説明だけを出し、補足はアコーディオンに収める） */
.scope-more { grid-column: 2; margin-top: 4px; font-size: 14px; }
.scope-more summary { cursor: pointer; color: var(--navy); font-weight: 700; width: fit-content; }
.scope-more summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.scope-more p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* 導入前後の変化（指示 4）: PC は 2 列の比較、スマホは項目ごとに Before → After */
.change-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-bottom: 8px; font-family: var(--font-latin); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; }
.change-head-before { color: var(--muted); }
.change-head-after { color: var(--blue-hover); }
.change-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.change-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; position: relative; }
.change-row::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -9px; border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: rotate(45deg); }
.change-row p { margin: 0; border-radius: var(--radius); padding: 16px 20px; font-size: 15px; line-height: 1.7; display: flex; align-items: center; }
.change-before { background: #EDF0F3; color: var(--ink); border: 1px solid #D9DEE4; }
.change-after { background: #E4F0FD; color: var(--navy); font-weight: 700; border: 1px solid #B9D6F6; }
.change-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ワークショップの説明（指示 5: 図解の下に置く） */
.workshop-body { margin-top: 32px; max-width: 52em; }
.workshop-body > p { margin: 0; font-size: 16px; }
.workshop-decide-title { font-size: 16px; color: var(--navy); margin: 24px 0 8px; }
.workshop-decide-list { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; font-size: 15px; }

/* 成果物（指示 6）: プランごとの提供範囲を 3 群で示す */
.deliverable-note { margin: 0 0 24px; }
.tier-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tier-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 24px; }
.tier-card:nth-child(2) { border-top-color: var(--blue); }
.tier-card:nth-child(3) { border-top-color: var(--cyan); }
.tier-name { font-family: var(--font-latin); font-size: 20px; color: var(--navy); margin: 0 0 8px; }
.tier-base { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--blue-hover); }
.tier-items { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 15px; }
.option-sub { font-size: 13px; font-weight: 500; color: var(--muted); }
.sample { margin-top: 40px; }
.sample-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 15px; line-height: 1.7; border: 1px solid var(--line); }
.sample-table caption { text-align: left; font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.sample-table th, .sample-table td { border-bottom: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; }
.sample-table thead th { font-size: 13px; color: var(--navy); background: #E4F0FD; }
.sample-table tbody th { color: var(--navy); font-weight: 700; white-space: nowrap; }
.sample-table td:nth-child(2) { white-space: nowrap; }
.verdict-chip { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 4px; padding: 2px 10px; line-height: 1.7; }
.verdict-chip--allow { color: var(--white); background: var(--blue-hover); }
.verdict-chip--conditional { color: var(--navy); background: var(--white); border: 2px solid var(--blue); padding: 0 8px; }
.verdict-chip--deny { color: var(--white); background: var(--navy); }

/* 選ばれる理由（指示 8）: PC は 2 列 × 2 段 */
#why .note { margin-top: 20px; }

/* 進め方のガントチャート（指示 7）。スマホは「実施時期／工程」の一覧に切り替える */
.gantt { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.gantt-scale, .gantt-row { display: grid; grid-template-columns: minmax(200px, 340px) repeat(8, minmax(0, 1fr)); column-gap: 4px; align-items: center; }
.gantt-scale { font-family: var(--font-latin); font-size: 12px; font-weight: 700; color: var(--muted); padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.gantt-scale span { text-align: center; white-space: nowrap; }
.gantt-scale .gantt-scale-label { text-align: left; font-family: var(--font); }
.gantt-list { list-style: none; margin: 0; padding: 0; }
.gantt-row { grid-template-rows: auto; padding-block: 8px; border-bottom: 1px solid var(--line); }
.gantt-row:last-child { border-bottom: 0; }
.gantt-name { grid-column: 1; grid-row: 1; font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.5; padding-right: 12px; }
.gantt-term { grid-row: 1; background: var(--blue-hover); color: var(--white); font-family: var(--font-latin); font-size: 12px; font-weight: 700; border-radius: 4px; padding: 6px 8px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: clip; }
#process .note { margin-top: 16px; }

/* プラン（指示 7・6）: 策定プロセスと隣接させ、実施内容と主な成果物を分けて示す */
.section--joined { padding-top: 0; }
.plan-label { font-size: 13px !important; font-weight: 700; color: var(--muted); margin-top: 4px !important; }
.after-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 1023px) {
  .tier-list { grid-template-columns: 1fr; }
  .layer-example-row { grid-template-columns: 200px minmax(0, 1fr); }
  .gantt-scale, .gantt-row { grid-template-columns: minmax(160px, 220px) repeat(8, minmax(0, 1fr)); }
  .gantt-term { font-size: 11px; padding-inline: 2px; }
}

@media (max-width: 767px) {
  .layer-example { padding: 20px; }
  .layer-example-row { grid-template-columns: 1fr; gap: 4px; }
  /* スマホは項目ごとに Before → After を縦に並べ、それぞれにラベルを出す */
  .change-head { display: none; }
  .change-row { grid-template-columns: 1fr; gap: 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .change-row:last-child { border-bottom: 0; }
  .change-row::after { top: calc(50% - 6px); left: 50%; margin: -5px 0 0 -5px; transform: rotate(135deg); }
  .change-row p { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; }
  .change-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; font-family: var(--font-latin); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
  .change-before .change-label { color: var(--muted); }
  .change-after .change-label { color: var(--blue-hover); }
  /* 表はラベルと値を縦に積む */
  .sample-table, .sample-table tbody, .sample-table tr, .sample-table th, .sample-table td { display: block; }
  .sample-table { border: 0; background: none; }
  .sample-table caption { display: block; }
  .sample-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sample-table tr { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 4px 0; }
  .sample-table th, .sample-table td { border-bottom: 0; padding: 6px 16px; white-space: normal !important; }
  .sample-table tbody th { font-size: 16px; padding-top: 12px; }
  .sample-table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
  /* ガントチャートは「実施時期／工程」の一覧に切り替える */
  .gantt { padding: 8px 16px; }
  .gantt-scale { display: none; }
  .gantt-row { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 4px; padding-block: 12px; }
  .gantt-term { background: none; color: var(--blue-hover); padding: 0; font-size: 13px; text-align: left; }
  .gantt-name { padding-right: 0; font-size: 15px; }
}


/* 2026-10-25 Safariの改行対策。PCの既存文節box・文字組みは維持する。 */
.phrase-group { display: inline-block; }
.phrase--mobile { display: contents; }

@media (max-width: 767px) {
  /* 元の長い文節boxを解き、意味の通る小さい文節だけを改行単位にする。 */
  .phrase-group { display: contents; }
  .phrase, .phrase--mobile { display: inline-block; white-space: nowrap; }
  .line-label { min-width: 0; }

  /* 本文・リード・注記は自然に折り返す。見出しに準じる2種のpは除く。 */
  p:not(.hero-eyebrow):not(.shift-message-title) { word-break: normal; }
  p:not(.hero-eyebrow):not(.shift-message-title) .phrase {
    display: inline; white-space: normal;
  }

  /* サービス名は分割せず、320pxのラベル内幅に収める。 */
  #faq-q-2 { font-size: 14px; }
  .button[data-cta-location="assessment_link"] { font-size: clamp(13px, 4vw, 16px); }
}
