/* AI Security ハブページ。色・書体・余白・コンテンツ幅（1056px）は実装支援 LP を基準にする */
:root {
  /* アイコンは1組だけ使う（矢印・外部リンク）。向きは rotate で変える */
  --icon-arrow: url("../assets/icons/arrow-right.svg");
  --icon-arrow-white: url("../assets/icons/arrow-right-white.svg");
  --icon-external: url("../assets/icons/external-link.svg");
  --navy: #0B1F33;
  --blue: #006FE6;
  --blue-hover: #005BBD;
  --cyan: #00829A;
  --ink: #1A2433;
  --pale: #F4F8FC;
  --muted: #4A5A6E;
  --line: #D5E0EC;
  --white: #FFFFFF;
  --radius: 8px;
  --content: 1120px;
  --header-h: 73px; /* 固定ヘッダーの高さ（72px + 下線 1px）。アンカー移動の余白に使う */
  --pad: 96px;
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
ul, ol { padding: 0; }

.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; }
.phrase { display: inline-block; }

/* Header / Breadcrumb */
.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 { 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; line-height: 1.5; text-decoration: none; text-align: center;
  border: 1px solid transparent; font-family: inherit;
}
.button:focus-visible, .text-link:focus-visible, .service-link:focus-visible, .header-nav .nav-link:focus-visible, .challenge-body:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.button--primary { background: var(--blue); color: var(--white); }
a.button--primary:hover { background: var(--blue-hover); }
.button--secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.button--secondary:hover { background: var(--pale); }
.button--small { min-height: 44px; padding: 10px 18px; font-size: 14px; }
/* 受付フォームの URL を受領するまでの CTA。見た目は主ボタンのまま、押せない状態にする */
.cta-group { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* 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; grid-template-columns: minmax(520px, 1.05fr) minmax(0, 1fr); column-gap: 40px; align-items: center; }
/* 図は右カラムから右の余白へ最大 96px 出して大きく見せる（兄弟 LP と同じ。枠・影は付けず、端をマスクで背景へなじませる） */
.hero-visual { position: relative; margin: 0 calc(-1 * min(max(0px, (100vw - var(--content)) / 2) + 32px, 96px)) 0 -24px; aspect-ratio: 1120 / 747; container-type: inline-size; pointer-events: none; }
.hero-visual picture, .hero-visual img { display: block; width: 100%; height: 100%; }
.hero-visual img { object-fit: contain; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-composite: intersect; }
.hero-eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--navy); letter-spacing: 0.02em; margin: 0 0 16px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
/* 見出しサイズの基準（兄弟 LP と同じ）: H1 48px・行間 1.35／モバイル 28〜36px */
.hero h1 { font-size: 48px; line-height: 1.35; color: var(--navy); margin: 0 0 24px; letter-spacing: 0.01em; font-weight: 700; }
.hero h1 .line { display: block; }
.hero-lead { font-size: 17px; line-height: 1.9; margin: 0 0 32px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-start; }
/* 画像の上に重ねる札。位置は画像に対する %（画像の島・円盤の位置）。文字は画像に入れず HTML が持つ */
.hero-label { position: absolute; transform: translateX(-50%); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0.3em 0.8em; background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 2px 8px rgba(11, 31, 51, 0.12); color: var(--navy); font-size: clamp(10px, 2.5cqw, 14px); font-weight: 700; line-height: 1.35; white-space: nowrap; pointer-events: none; }
.hero-label--stage { border-radius: 10px; padding: 0.2em 0.4em; }
.hero-label-en { letter-spacing: 0.04em; color: var(--blue); }
.hero-label-ja { font-size: 0.84em; letter-spacing: -0.02em; font-weight: 500; color: var(--navy); }
.hero-label--application { left: 22%; top: 2.5%; }
.hero-label--governance { left: 73%; top: 2.5%; border-color: var(--cyan); }
.hero-label--stage { bottom: 2%; }
.hero-label--assess { left: 29.5%; }
.hero-label--protect { left: 50%; }
.hero-label--operate { left: 71%; }

/* セクション共通。固定ヘッダーの下に見出しが来るよう scroll-margin を節の上余白で相殺する */
.section { padding-block: var(--pad); scroll-margin-top: calc(var(--header-h) + 8px - var(--pad)); }
.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; text-wrap: balance; word-break: auto-phrase; overflow-wrap: anywhere; }
.section-lead { font-size: 17px; margin: 0 0 40px; max-width: 46em; }
.section-sub { font-size: 20px; font-weight: 700; color: var(--blue); margin: -8px 0 32px; }
.note { font-size: 14px; color: var(--muted); margin: 24px 0 0; max-width: 60em; }
.text-link { color: var(--navy); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.tag { font-size: 11px; font-weight: 700; line-height: 1.6; letter-spacing: 0.04em; color: #0B4E8F; background: #E4F0FD; border-radius: 4px; padding: 2px 8px; }
.tag--stage { color: #2F4A63; background: #EAF0F6; }
.status { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.6; color: #7A4300; background: #FFF3E0; border-radius: 999px; padding: 2px 12px; }
.status--consult { color: #0B4E8F; background: #E4F0FD; }

/* S02 */
.figure { margin: 0; }
.icon-tile { display: block; flex: none; width: 72px; height: 72px; border-radius: 16px; background: #F3F7FB; overflow: hidden; }
.icon-tile img { display: block; width: 100%; height: 100%; }
.figure--flow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "from bar to" "list list list" "caption caption caption"; align-items: center; gap: 16px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.flow-end { margin: 0; font-size: 20px; font-weight: 700; color: var(--muted); }
.flow-end--from { grid-area: from; }
.flow-end--to { grid-area: to; color: var(--blue); }
.flow-bar { grid-area: bar; height: 2px; background: linear-gradient(90deg, var(--line), var(--blue)); }
.flow { grid-area: list; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.flow-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 12px 8px 16px; background: var(--pale); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.flow-no { font-size: 14px; font-weight: 700; color: var(--blue); line-height: 1.4; }
.flow-label { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.5; overflow-wrap: anywhere; }
.flow-step + .flow-step::before { content: ""; position: absolute; top: 50%; left: -14px; width: 20px; height: 20px; translate: -50% -50%; background: var(--blue); mask: var(--icon-arrow) center / contain no-repeat; -webkit-mask: var(--icon-arrow) center / contain no-repeat; }
.flow-caption { grid-area: caption; font-size: 14px; color: var(--muted); text-align: center; line-height: 1.7; }
.action-list { list-style: none; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.action-list li { background: var(--pale); border: 1px solid var(--line); border-radius: 999px; padding: 4px 16px; font-size: 15px; color: var(--navy); }
.shift { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; }
.shift p { margin: 0; }
.shift-from, .shift-to { border-radius: var(--radius); padding: 20px 24px; font-size: 20px; font-weight: 700; line-height: 1.6; display: flex; flex-direction: column; gap: 4px; }
.shift-from { background: var(--pale); color: var(--navy); border: 1px solid var(--line); }
.shift-to { background: var(--navy); color: var(--white); }
.shift-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.8; }
.shift-arrow { align-self: center; width: 32px; height: 32px; background: var(--blue); mask: var(--icon-arrow) center / contain no-repeat; -webkit-mask: var(--icon-arrow) center / contain no-repeat; }

/* S03 */
.domain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.domain-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; border-top: 4px solid var(--blue); display: flex; flex-direction: column; align-items: flex-start; }
.domain-card--governance { border-top-color: var(--cyan); }
.domain-card h3 { font-size: 24px; color: var(--navy); margin: 0 0 4px; line-height: 1.5; }
.domain-tagline { margin: 0 0 16px; font-weight: 700; color: var(--muted); }
.domain-sub { font-size: 13px; color: var(--muted); margin: 8px 0 8px; font-weight: 700; }
.chips { list-style: none; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; line-height: 1.6; padding: 2px 12px; border-radius: 999px; background: #E4F0FD; color: #0B4E8F; }
.chips--risk li { background: #FFF3E0; color: #7A4300; }
.domain-card .button { margin-top: auto; }
.domain-card .chips:last-of-type { margin-bottom: 24px; }

/* S04 課題カード */
.challenge-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.challenge-card { display: flex; }
.challenge-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: inherit; text-decoration: none; }
a.challenge-body { position: relative; border-left: 4px solid var(--blue); box-shadow: 0 2px 8px rgba(11, 30, 51, 0.08); transition: box-shadow .15s, border-color .15s, translate .15s; }
a.challenge-body .challenge-to { padding-right: 52px; }
a.challenge-body::after { content: ""; position: absolute; right: 20px; bottom: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--blue) var(--icon-arrow-white) center / 18px no-repeat; transition: background-color .15s, translate .15s; }
a.challenge-body:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(11, 30, 51, 0.14); translate: 0 -2px; }
a.challenge-body:hover::after { background-color: var(--blue-hover); translate: 3px 0; }
.challenge-body--static { background: var(--pale); }
.challenge-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.challenge-body h3 { font-size: 18px; line-height: 1.6; color: var(--navy); margin: 0; text-wrap: balance; word-break: auto-phrase; }
.challenge-to { margin: auto 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.challenge-to-label { display: block; font-size: 12px; font-weight: 700; }

/* CTA 帯 */
.section--cta { background: var(--white); padding-block: 48px; border-block: 1px solid var(--line); --pad: 48px; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.section .cta-band-title { font-size: 20px; margin: 0; max-width: 28em; }

/* S05 Portfolio（PC は 領域 × 段階 のマトリクス） */
.portfolio { --label-w: 220px; }
.pf-head { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: var(--label-w) repeat(var(--stage-count), minmax(0, 1fr)); gap: 16px; }
.pf-head::before { content: ""; }
.pf-head-cell { display: flex; flex-direction: column; align-items: center; background: var(--navy); color: var(--white); border-radius: 6px; padding: 8px 4px; line-height: 1.5; }
.pf-head-label { font-weight: 700; letter-spacing: 0.06em; }
.pf-head-ja { font-size: 13px; }
.pf-row { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.pf-domain { margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 16px; }
.pf-row + .pf-row .pf-domain { border-left-color: var(--cyan); }
.pf-domain-name { font-size: 17px; color: var(--navy); line-height: 1.5; }
.pf-domain-tagline { font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.6; }
.pf-cells { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--stage-count), minmax(0, 1fr)); gap: 16px; }
.pf-cell { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.pf-cell + .pf-cell::before { content: ""; position: absolute; left: -8px; top: 50%; width: 16px; height: 16px; translate: -50% -50%; background: var(--blue); mask: var(--icon-arrow) center / contain no-repeat; -webkit-mask: var(--icon-arrow) center / contain no-repeat; }
.pf-cell--public { border-color: var(--blue); }
.pf-cell--empty { background: transparent; border-style: dashed; }
.pf-empty { margin: 0; font-size: 14px; color: var(--muted); }
.pf-cell-stage { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-name { margin: 0; font-size: 16px; line-height: 1.6; color: var(--navy); text-wrap: balance; word-break: auto-phrase; }
.service-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: 14px; text-underline-offset: 3px; margin-top: auto; }
.service-link::after { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; mask: var(--icon-arrow) center / contain no-repeat; -webkit-mask: var(--icon-arrow) center / contain no-repeat; transition: translate .15s; }
/* 紹介ページがあるセルとカードは、全体を押せるようにする（リンクの領域をカード全体へ広げる） */
.pf-cell--public, .service-card--public { position: relative; box-shadow: 0 2px 8px rgba(11, 30, 51, 0.08); transition: box-shadow .15s, translate .15s; }
.pf-cell--public .service-link::before, .service-card--public .service-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pf-cell--public:hover, .service-card--public:hover { box-shadow: 0 6px 18px rgba(11, 30, 51, 0.14); translate: 0 -2px; }
.pf-cell--public:hover .service-link::after, .service-card--public:hover .service-link::after { translate: 3px 0; }
.pf-cell--public:has(.service-link:focus-visible), .service-card--public:has(.service-link:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
.pf-cell--public .service-link:focus-visible, .service-card--public .service-link:focus-visible { outline: none; }

/* S06 / S07 */
.arch { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 40px; }
.figure--arch { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.layers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.layer { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 12px 16px; background: var(--pale); border: 1px solid var(--line); border-radius: var(--radius); }
.layer:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 20px; height: 20px; translate: -50% 50%; rotate: 90deg; background: var(--blue); mask: var(--icon-arrow) center / contain no-repeat; -webkit-mask: var(--icon-arrow) center / contain no-repeat; }
.layer-text { display: flex; flex-direction: column; min-width: 0; }
.layer-name { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.5; overflow-wrap: anywhere; }
.layer-name, .flow-label { word-break: auto-phrase; text-wrap: balance; }
.layer-ja { font-size: 14px; color: var(--muted); }
.layer-risk { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.layer-risk-label { font-size: 11px; font-weight: 700; color: var(--muted); }
.risk-tag { font-size: 14px; font-weight: 700; line-height: 1.5; color: #7A4300; background: #FFF3E0; border: 1px solid #E8B77A; border-radius: 999px; padding: 2px 12px; }
.layers-note { margin: 20px 0 0; text-align: center; font-size: 17px; font-weight: 700; color: var(--blue-hover); line-height: 1.6; }
.gov-lead { font-size: 17px; margin: 0 0 32px; max-width: 46em; }
.gov-cards { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gov-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon title" "icon items"; column-gap: 20px; row-gap: 8px; align-content: start; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--cyan); border-radius: var(--radius); padding: 24px; }
.gov-card .icon-tile { grid-area: icon; width: 88px; height: 88px; }
.gov-card h3 { grid-area: title; margin: 0; font-size: 22px; line-height: 1.5; color: var(--cyan); align-self: center; }
.gov-items { grid-area: items; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gov-items li { position: relative; padding-left: 16px; font-size: 16px; line-height: 1.7; color: var(--ink); }
.gov-items li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.arch-text p { font-size: 17px; margin: 0 0 16px; }
.service-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.service-card--public { border-color: var(--blue); }
.service-no { margin: 0; font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 0.08em; }
.service-card h3 { margin: 0; font-size: 18px; line-height: 1.6; color: var(--navy); text-wrap: balance; word-break: auto-phrase; }
.service-stage { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.service-summary { margin: 0; font-size: 15px; }
.service-card .service-link, .service-card .status { margin-top: auto; }
.related { margin-top: 32px; border: 1px dashed var(--navy); border-radius: var(--radius); padding: 20px 24px; background: var(--white); }
.related-title { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.related-body { margin: 0; font-size: 15px; }
.related-desc { display: block; margin-top: 4px; }
/* 新しいタブで開く外部リンク: 外部リンクのアイコンを表示し、読み上げは各リンクの sr-only の文言で伝える */
a[target="_blank"]::after { content: ""; display: inline-block; flex: none; width: 0.9em; height: 0.9em; margin-left: 0.3em; vertical-align: -0.05em; background: currentColor; mask: var(--icon-external) center / contain no-repeat; -webkit-mask: var(--icon-external) center / contain no-repeat; }
.button[target="_blank"]::after { margin-left: 0; }

/* S08 */
.reason-list { list-style: none; margin: 0 0 40px; 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-left: 3px solid var(--blue); border-radius: var(--radius); padding: 24px; }
.reason-no { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 0.08em; }
.reason-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); line-height: 1.6; }
.reason-card p { margin: 0; font-size: 15px; }
.lifecycle { list-style: none; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lifecycle li { font-size: 13px; font-weight: 700; color: #0B4E8F; background: #E4F0FD; border-radius: 4px; padding: 2px 10px; }
.lifecycle li + li::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; background: currentColor; mask: var(--icon-arrow) center / contain no-repeat; -webkit-mask: var(--icon-arrow) center / contain no-repeat; }
.key-message { margin: 0; text-align: center; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; color: var(--navy); line-height: 1.6; text-wrap: balance; word-break: auto-phrase; }

/* FAQ（兄弟 LP と同じ部品） */
.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; }
.section-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.button--on-dark { background: transparent; color: var(--white); border-color: var(--white); }
.button--on-dark:hover { background: rgba(255, 255, 255, 0.12); }

.site-footer { border-top: 1px solid var(--line); 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; }

/* SP の追従 CTA。FV と最終 CTA が見えている間は site.js が hidden にする */
.sticky-cta { display: none; }

@media (max-width: 1023px) {
  :root { --pad: 72px; }
  .header-nav .nav-link { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  /* 1 列のときは背景を上下のグラデーションにする。図は 720px までにし、四辺を背景へなじませる */
  .hero { background: linear-gradient(180deg, var(--white) 0%, #EEF5FD 45%, #E3F0FD 100%); }
  .hero-visual { width: 100%; max-width: 720px; margin: 8px auto 0; }
  .hero-visual img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
  .arch, .arch--gov { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .figure--arch { max-width: 640px; }
  .figure--flow { padding: 20px; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 28px; }
  .flow-step:nth-child(3n + 1)::before { display: none; }
  .portfolio { --label-w: 100%; }
  .pf-head { display: none; }
  .pf-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pf-cells { gap: 12px; }
  .pf-cell + .pf-cell::before { left: -6px; }
  .pf-cell-stage { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
}

@media (max-width: 767px) {
  :root { --pad: 56px; --header-h: 61px; }
  .container { padding-inline: 20px; }
  .header-inner { min-height: 60px; }
  .brand img { width: 56px; }
  .header-nav .button { display: none; } /* スマホは画面下部の追従 CTA に置き換える */
  .hero { padding-block: 32px 64px; }
  /* スマホは図を左右の画面端まで伸ばし、画面の端に接する左右はぼかさない */
  .hero-visual { width: calc(100% + 40px); max-width: none; margin: 16px -20px 0; }
  .hero-visual img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
  .hero h1 { font-size: clamp(28px, 8.4vw, 36px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .button, .section-actions .button, .cta-band .button { width: 100%; }
  .cta-group { align-items: stretch; width: 100%; }
  .section h2 { font-size: clamp(26px, 7.2vw, 30px); }
  .faq-question { padding: 16px 20px; }
  .faq-answer { padding: 0 20px 16px 48px; }
  .section-lead { font-size: 16px; margin-bottom: 28px; }
  .section--cta { padding-block: 36px; --pad: 36px; }
  .cta-band { flex-direction: column; align-items: stretch; }
  .section .cta-band-title { font-size: 18px; }
  .figure--flow { grid-template-columns: minmax(0, 1fr); grid-template-areas: "from" "list" "to" "caption"; gap: 12px; padding: 16px; }
  .flow-bar { display: none; }
  .flow-end { text-align: center; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 28px; margin: 0; }
  .flow-step { flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; padding: 10px 16px; }
  .flow-no { width: 1.4em; text-align: center; font-size: 16px; }
  .flow-label { font-size: 16px; }
  .flow-step + .flow-step::before, .flow-step:nth-child(3n + 1)::before { display: block; top: -14px; left: 50%; rotate: 90deg; }
  .layer { grid-template-columns: auto minmax(0, 1fr); padding: 10px 12px; }
  .layer-risk { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 8px; padding-left: 0; }
  .layers { gap: 28px; }
  .gov-cards { grid-template-columns: minmax(0, 1fr); }
  .gov-card { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .gov-card .icon-tile { width: 64px; height: 64px; }
  .icon-tile { width: 56px; height: 56px; border-radius: 12px; }
  .gov-card h3 { font-size: 20px; }
  .shift { grid-template-columns: minmax(0, 1fr); }
  .shift-arrow { transform: rotate(90deg); justify-self: center; }
  .shift-from, .shift-to { font-size: 18px; padding: 16px 20px; }
  .domain-grid, .reason-list { grid-template-columns: minmax(0, 1fr); }
  .domain-card { padding: 22px; }
  .domain-card .button { width: 100%; }
  /* Portfolio は領域ごとの縦タイムライン */
  .pf-cells { grid-template-columns: minmax(0, 1fr); gap: 0; position: relative; padding-left: 28px; }
  .pf-cells::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
  .pf-cell { margin-bottom: 12px; }
  .pf-cell::after { content: ""; position: absolute; left: -26px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--blue); }
  .pf-cell + .pf-cell::before { content: none; }
  .sticky-cta { display: flex; flex-direction: column; gap: 4px; position: fixed; inset-inline: 0; bottom: 0; z-index: 20; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); }
  .sticky-cta[hidden] { display: none; }
  .sticky-cta .button { width: 100%; }
  body { padding-bottom: 92px; }
}

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

/* 日本語の改行 */
:lang(ja) .section-lead, :lang(ja) .arch-text p, :lang(ja) .service-summary, :lang(ja) .reason-card p, :lang(ja) .faq-answer p, :lang(ja) .footer-note, :lang(ja) .note { text-wrap: pretty; word-break: auto-phrase; }

/* 長い名称が幅に収まらないときは、どこでも折り返す（折り返せないと枠の外へはみ出す） */
h3, h4, .pf-name, .service-summary, .challenge-to { overflow-wrap: anywhere; }

/* 2026-10-09 初見レビューの反映 */
.status-legend { margin: 12px 0 24px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.status-legend .status { margin: 0 6px 0 0; vertical-align: 1px; }
.status-legend .status + * , .status-legend .status:not(:first-child) { margin-left: 12px; }
.challenge-consult { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--blue-hover); text-underline-offset: 3px; }
.challenge-consult::after { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; mask: var(--icon-arrow) center / contain no-repeat; -webkit-mask: var(--icon-arrow) center / contain no-repeat; }
.glossary { margin-top: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 12px 20px; }
.glossary summary { cursor: pointer; font-weight: 700; }
.glossary dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 12px 0 4px; font-size: 14px; line-height: 1.7; }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 0; }
.lifecycle-stage { display: block; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
@media (min-width: 1000px) {
  .challenge-list > li:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .glossary dl { grid-template-columns: 1fr; gap: 2px; }
  .glossary dd { margin-bottom: 8px; }
}
.faq-question { text-wrap: balance; word-break: auto-phrase; overflow-wrap: anywhere; }
