/* アンフォーマ コーポレートサイト 共通スタイル（デザイン確定 2026-11-16）。生成物: build.py が ../top-20261115 と ../pages-20261115 から作る */

/* 構成: 白地 → 灰色の角丸パネル → 墨色の全面帯 → 白地 → 赤の帯、と面の色を大きく切り替えて区画を分ける。
   写真は灰色の箱、未定の文は灰色の棒。色は「墨・赤・灰」の3つだけで、面の割り振りを見るためのもの。ライトのみ。 */
:root {
  --bg: #ffffff; --panel: #f3f0ef; --ink: #1f1d1d; --ink-2: #33302f; --muted: #6a6465; --line: #ddd6d4;
  --red: #b52f3b; --red-soft: #f3d3d6; --ph: #d9d3d1; --ph-2: #c7c0be; --note: #0b5c6b; --note-bg: #e4f1f3;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  --latin: Jost, "Zen Kaku Gothic New", sans-serif;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.9; letter-spacing: .03em; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
.in { max-width: 1200px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* 注記（ワイヤーフレームの説明。実際のサイトには出ない） */
.guide { background: var(--note-bg); color: var(--ink); font-size: 14px; line-height: 1.8; }
.guide .in { padding-block: 20px; display: grid; gap: 10px; }
.guide h1 { font-size: 18px; letter-spacing: .04em; }
.guide ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.guide li { display: flex; align-items: center; gap: 8px; }
.guide i { display: inline-block; width: 28px; height: 14px; border: 1px solid var(--ph-2); }
.tg { justify-self: start; font: inherit; font-size: 13px; background: var(--bg); color: var(--note); border: 1px solid var(--note); padding: 4px 14px; border-radius: 4px; cursor: pointer; }
.tg:focus-visible, a:focus-visible { outline: 2px solid var(--note); outline-offset: 2px; }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--note-bg); color: var(--note); font-size: 13px; line-height: 1.7; padding: 8px 12px; border-left: 3px solid var(--note); margin-block: 0 20px; max-width: 760px; }
.note b { font-family: var(--latin); font-weight: 600; white-space: nowrap; }
.note span { color: var(--ink); min-width: 0; }
.hide-notes .note { display: none; }
.onDark .note, .onRed .note { background: var(--bg); }

/* 共通部品 */
.ph { background: repeating-linear-gradient(135deg, var(--ph) 0 14px, var(--ph-2) 14px 15px); display: grid; place-items: center; color: var(--ink-2); font-size: 12px; letter-spacing: .08em; min-height: 60px; }
.ph span { background: var(--bg); padding: 1px 10px; border-radius: 3px; }
.bar { display: block; height: 10px; background: var(--ph); border-radius: 2px; margin-block: 8px; }
.bar.w9 { width: 90%; } .bar.w7 { width: 70%; } .bar.w5 { width: 50%; }
.lab { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lab::before { content: ""; width: 9px; height: 9px; background: var(--red); transform: rotate(45deg); }
.en { font-family: var(--latin); font-weight: 600; font-size: clamp(30px, 3vw + 14px, 46px); line-height: 1.2; letter-spacing: .01em; margin-top: 6px; display: inline; background: linear-gradient(transparent 82%, var(--red) 82%); }
.lead { font-size: clamp(22px, 1.6vw + 14px, 32px); font-weight: 700; line-height: 1.6; letter-spacing: .05em; text-wrap: balance; }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--ink); background: var(--bg); color: var(--ink); font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 4px; position: relative; }
.btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); }
.btn.fill { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.go { width: 30px; height: 30px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; flex: none; }
.go::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg) translate(-1px, -1px); }
/* 改行: 文節の途中で折らない（対応ブラウザ）。句読点までのかたまり（.nb）は、入りきらなければ次の行へ送る */
h1, h2, h3, h4, .lead, .btn, .chip { word-break: auto-phrase; line-break: strict; text-wrap: balance; }
p, li, dd { word-break: auto-phrase; line-break: strict; text-wrap: pretty; }
.nb { display: inline-block; }
section { position: relative; }
.pad { padding-block: clamp(56px, 7vw, 104px); }

/* ヘッダー */
.hd { display: flex; align-items: stretch; gap: 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
.logo { align-self: center; width: 170px; height: auto; flex: none; }
.pic { overflow: hidden; background: var(--ph); border-radius: 4px; }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; gap: 26px; align-items: center; margin-left: auto; font-size: 14px; font-weight: 500; white-space: nowrap; }
.cta2 { display: flex; flex: none; }
.cta2 a { display: grid; place-items: center; padding: 0 22px; min-height: 64px; font-size: 14px; font-weight: 700; color: var(--bg); white-space: nowrap; }
.cta2 a:first-child { background: var(--ink); } .cta2 a:last-child { background: var(--red); }

/* ① ヒーロー */
.fv .in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; padding-block: 40px 56px; }
.fv-copy { display: grid; gap: 22px; justify-items: start; }
.fv-tag { font-weight: 700; font-size: 17px; }
.fv h1 { font-weight: 900; font-size: clamp(38px, 5.4vw, 74px); line-height: 1.32; letter-spacing: .03em; }
.fv h1 em { font-style: normal; background: linear-gradient(transparent 84%, var(--red) 84%, var(--red) 93%, transparent 93%); }
.fv-lead { font-size: 15px; max-width: 34em; }
.fv-vis { position: relative; aspect-ratio: 1 / .92; max-width: 100%; }
.sh-a { position: absolute; left: 0; top: 12%; width: 62%; height: 76%; background: var(--ink); border-radius: 50% 0 0 50%; }
.sh-b { position: absolute; right: 0; top: 0; width: 70%; height: 100%; background: var(--red); clip-path: polygon(38% 0, 100% 0, 100% 62%, 52% 100%, 14% 100%, 14% 60%); }
.fv-ph { position: absolute; left: 22%; top: 14%; width: 56%; height: 72%; border-radius: 0 38% 0 0; }
.chip { position: absolute; background: var(--bg); border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 700; box-shadow: 0 4px 16px rgb(31 29 29 / .16); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
.c1 { left: 10%; top: 24%; } .c2 { right: 2%; top: 56%; } .c3 { left: 4%; top: 76%; }
/* ヒーローの図形 D: 名刺の赤い一本線と、角を1つ丸めた写真 */
.s4 .r { position: absolute; left: 5%; top: 0; width: 3px; height: 72%; background: var(--red); }
.s4 .k { position: absolute; right: 0; bottom: 0; width: 34%; height: 12%; background: var(--red); z-index: 1; }
.s4 .pic { position: absolute; inset: 6% 0 6% 13%; border-radius: 0 0 0 clamp(60px, 9vw, 120px); }
.s4 .c1 { left: 4%; top: 20%; z-index: 2; } .s4 .c2 { right: 4%; top: 52%; z-index: 2; } .s4 .c3 { left: 8%; top: 74%; z-index: 2; }
.strip { background: var(--panel); }
.strip .in { display: flex; flex-wrap: wrap; gap: 8px 0; align-items: center; padding-block: 16px; font-size: 14px; }
.strip strong { margin-right: 24px; }
.strip a { padding: 2px 24px; border-left: 1px solid var(--line); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.strip a small { font-family: var(--latin); color: var(--red); font-size: 13px; }

/* ② 考え方と流れ */
.about { padding-inline: clamp(0px, 1vw, 12px); }
.about-panel { background: var(--panel); border-radius: 12px; }
.about-top { display: grid; gap: 28px; max-width: 760px; }
.about-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 48px; }
/* データを整える流れ: ひとつながりの帯（サイズ大・白 → 赤）。区切りの色は --bg / --fg / --mut / --acc / --prev で渡す */
.slab { --pad: clamp(22px, 3vw, 44px); --tip: 34px; list-style: none; margin: 48px 0 0; padding: 0; border-radius: 12px; box-shadow: 0 8px 28px rgb(31 29 29 / .08); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; }
.seg { background: var(--bg); color: var(--fg); display: grid; align-content: space-between; gap: 36px; min-height: 320px; padding: var(--pad); padding-left: calc(var(--pad) + var(--tip)); position: relative; }
.seg:first-child { padding-left: var(--pad); }
.seg + .seg::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: var(--tip); background: var(--prev); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.seg svg { display: block; width: clamp(84px, 10vw, 136px); height: auto; stroke: var(--fg); stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.seg svg .r { stroke: var(--acc); }
.cap { display: grid; gap: 2px; }
.cap small { font-family: var(--latin); font-weight: 600; color: var(--acc); font-size: 18px; line-height: 1.2; }
.cap b { font-size: clamp(20px, 1.4vw + 10px, 26px); line-height: 1.5; }
.cap i { font-family: var(--latin); font-style: normal; font-weight: 500; font-size: 12px; letter-spacing: .14em; color: var(--mut); line-height: 1.4; }
.cap span { font-size: 13px; color: var(--mut); line-height: 1.6; margin-top: 6px; word-break: auto-phrase; line-break: strict; text-wrap: balance; }
/* 帯の 03（赤）から線が下り、2つの届く先に分かれる。白い箱は使わず、文字と罫線だけにして帯と作り分ける */
.reach { position: relative; margin-top: 44px; border-top: 3px solid var(--red); padding-top: 26px; }
.reach::before { content: ""; position: absolute; right: calc(100% / 6); top: -47px; width: 3px; height: 44px; background: var(--red); }
.reach-h { font-size: 14px; font-weight: 700; color: var(--red); letter-spacing: .08em; }
.reach-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.rc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 2.4vw, 36px); align-items: start; padding-block: 6px; padding-right: clamp(16px, 3vw, 48px); }
.rc + .rc { border-left: 1px solid var(--ph-2); padding-left: clamp(16px, 3vw, 48px); padding-right: 0; }
.rc-k { font-size: clamp(24px, 2vw + 10px, 34px); font-weight: 900; line-height: 1.3; letter-spacing: .04em; white-space: nowrap; }
.rc h4 { font-size: 19px; line-height: 1.6; }
.rc p { font-size: 14px; margin-top: 6px; }
.tl { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; margin-top: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.tl .go { width: 24px; height: 24px; border-color: var(--red); } .tl .go::after { border-color: var(--red); width: 6px; height: 6px; }
.ring { position: sticky; top: 24px; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; }
.ring::before { content: ""; position: absolute; inset: 15%; border: 2px dashed var(--ph-2); border-radius: 50%; }
.core { position: absolute; inset: 36%; background: var(--ink); border-radius: 50%; }
.core::after { content: ""; position: absolute; inset: 26%; background: var(--red); border-radius: 50%; }
.node { position: absolute; width: 36%; aspect-ratio: 1; background: var(--bg); border-radius: 50%; box-shadow: 0 6px 24px rgb(31 29 29 / .12); display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center; padding: 8px; }
.node svg { width: 38%; height: auto; stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.node svg .r { stroke: var(--red); }
.node small { font-family: var(--latin); font-weight: 600; color: var(--red); font-size: 13px; line-height: 1; }
.node b { font-size: clamp(12px, 1.2vw, 16px); line-height: 1.4; }
.node span { font-size: 11px; color: var(--muted); line-height: 1.4; }
.n1 { left: 32%; top: -2%; } .n2 { right: -2%; bottom: 6%; } .n3 { left: -2%; bottom: 6%; }
.n3 { outline: 3px solid var(--red-soft); }

/* ③ 事業 */
.svc { background: var(--ink); color: var(--bg); overflow: hidden; }
.svc-bg { position: absolute; inset: 0 0 auto 0; height: 560px; background: var(--red); clip-path: polygon(0 62%, 46% 0, 70% 0, 62% 26%, 100% 0, 100% 12%, 30% 100%, 0 100%); opacity: .95; }
.svc-bg2 { position: absolute; right: 0; bottom: 0; width: 46%; height: 300px; background: var(--red); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.svc .in { position: relative; }
.svc .lab { color: var(--bg); } .svc .lab::before { background: var(--bg); }
.svc .en { background: linear-gradient(transparent 82%, var(--bg) 82%); }
.svc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-top: 40px; }
.svc-head p:not(.lead) { font-size: 15px; }
.svc-panel { background: var(--panel); color: var(--ink); border-radius: 12px; padding: clamp(20px, 3vw, 40px); margin-top: 48px; display: grid; gap: 28px; }
.grp { font-size: 17px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.grp em { font-style: normal; font-size: 12px; background: var(--red); color: var(--bg); padding: 0 10px; border-radius: 3px; }
.main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: center; }
.main .pic { aspect-ratio: 16 / 10; background-color: var(--bg); }
.item { display: grid; gap: 8px; }
.item h4 { font-size: 20px; line-height: 1.5; }
.item p { font-size: 14px; }
.item .go { justify-self: end; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.sub { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: center; }
.sub .pic { aspect-ratio: 4 / 3; }
.svc-foot { display: flex; justify-content: center; margin-top: 32px; }

/* ④ 特長 */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.split-l { position: sticky; top: 24px; display: grid; gap: 24px; justify-items: start; }
.rows li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: center; padding-block: 24px; border-bottom: 1px solid var(--line); }
.rows li:first-child { border-top: 1px solid var(--line); }
.rows .pic { aspect-ratio: 4 / 3; }
.rows h4 { font-size: 19px; line-height: 1.5; }
.rows p { font-size: 14px; margin-top: 6px; }

/* ⑤ 相談の帯 */
.cta { background: var(--red); color: var(--bg); overflow: hidden; }
.cta::after { content: ""; position: absolute; right: 0; bottom: 0; width: 22%; height: 14px; background: var(--ink); }
.cta .in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding-block: 56px; }
.cta-copy { display: grid; gap: 10px; border-left: 3px solid var(--bg); padding-left: clamp(18px, 2.4vw, 32px); }
.cta h3 { font-size: clamp(22px, 2vw + 12px, 30px); letter-spacing: .06em; }
.cta p { font-size: 15px; max-width: 34em; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.cta .btn { min-width: 220px; justify-content: center; padding-block: 14px; border-color: var(--bg); }
.cta .btn.fill { border-color: var(--ink); }

/* ⑥ お知らせ・⑦ 事例（入れるかは未定） */
.opt { outline: 2px dashed var(--note); outline-offset: -8px; }
.news li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); }
.news .d { font-family: var(--latin); font-size: 13px; color: var(--muted); }
.case { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.case .ph { aspect-ratio: 3 / 2; }

/* ⑧ 会社 */
.co { padding-inline: clamp(0px, 1vw, 12px); }
.co-panel { background: var(--panel); border-radius: 12px; overflow: hidden; position: relative; }
.co-panel::after { content: ""; position: absolute; right: 0; bottom: 0; width: 22%; height: 14px; background: var(--red); }
.co-in { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.co-copy { display: grid; gap: 22px; justify-items: start; }
.co-vis { position: relative; aspect-ratio: 1 / .8; }
/* 会社概要の写真: k1・k2 はひし形3枚、k3 は角を1つ丸めた1枚と一本線、k4 はパネルの右半分いっぱい */
.dm { position: absolute; aspect-ratio: 1; transform: rotate(45deg); border-radius: 10px; overflow: hidden; background: var(--ph); }
.dm img { display: block; width: 100%; height: 100%; object-fit: cover; transform: rotate(-45deg) scale(1.45); }
.d1 { width: 52%; right: 4%; top: -2%; } .d2 { width: 40%; left: 6%; top: 34%; } .d3 { width: 34%; right: 12%; bottom: -10%; }
/* 下の1枚（ラップトップと窓）は、ラップトップが見えるよう下寄りに切り取る */
.d3 img { object-position: 36% 50%; transform: rotate(-45deg) translate(18%, -34%) scale(2.2); }
.k3 .co-vis { aspect-ratio: 4 / 3; }
.k3 .co-vis::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 72%; background: var(--red); }
.k3 .pic { position: absolute; inset: 0 0 0 9%; border-radius: 0 0 0 96px; }
.k4::after { display: none; }
.k4 .co-in { position: static; }
.k4 .co-vis { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; aspect-ratio: auto; border-left: 3px solid var(--red); }
.k4 .pic { position: absolute; inset: 0; border-radius: 0; }
.co dl { margin: 0; font-size: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 20px; }
.co dt { font-weight: 700; } .co dd { margin: 0; }

/* フッター */
.ft .in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; padding-block: 56px; font-size: 14px; }
.ft-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; font-weight: 700; }
.ft-nav small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.copy { background: var(--ink); color: var(--bg); text-align: center; font-family: var(--latin); font-size: 12px; padding-block: 12px; }

@media (max-width: 900px) {
  .k4 .co-vis { position: relative; width: auto; aspect-ratio: 16 / 10; border-left: 0; border-top: 3px solid var(--red); margin-inline: -16px; }
  .nav { display: none; } .cta2 { margin-left: auto; } .cta2 a { padding: 0 14px; min-height: 52px; font-size: 13px; } .logo { width: 120px; }
  .fv .in, .about-body, .svc-head, .main, .two, .split, .co-in, .ft .in { grid-template-columns: minmax(0, 1fr); }
  .ring, .split-l { position: relative; top: 0; }
  .slab, .reach-g { grid-template-columns: minmax(0, 1fr); }
  .reach::before { right: auto; left: 32px; }
  .rc, .rc + .rc { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0; border-left: 0; } .rc + .rc { border-top: 1px solid var(--ph-2); margin-top: 24px; padding-top: 24px; }
  .seg { min-height: 0; gap: 20px; padding-left: var(--pad); padding-top: calc(var(--pad) + 14px); } .seg:first-child { padding-top: var(--pad); }
  .seg + .seg::before { left: 0; right: 0; top: -1px; bottom: auto; width: auto; height: 14px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
  .ring { max-width: 360px; } .node span { display: none; }
  .rows li { grid-template-columns: 96px minmax(0, 1fr); } .rows .go { display: none; }
  .sub { grid-template-columns: 96px minmax(0, 1fr); }
  .case { grid-template-columns: minmax(0, 1fr); }
  .strip strong { width: 100%; } .strip a { padding: 2px 14px; } .strip a:first-of-type { border-left: 0; padding-left: 0; }
  .chip { font-size: 11px; padding: 4px 10px; }
  .cta .in { grid-template-columns: minmax(0, 1fr); } .cta .btn { min-width: 0; flex: 1 1 200px; }
  .ft-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== 演出用の追加 ===== */
.mo .fv-copy > *, .mo .fv-vis > * { visibility: hidden; }          /* 準備が済むまでの一瞬だけ隠す（スクリプトが外す） */
.fv h1 .ln { display: block; overflow: hidden; padding-block: .06em; margin-block: -.06em; }
.fv h1 .li { display: block; }
.fv h1 em, .en { background-repeat: no-repeat; background-size: 100% 100%; }
.reach { border-top-color: transparent; --v: 1; --h: 1; --ox: calc(100% * 5 / 6); }
.reach::before { transform: scaleY(var(--v)); transform-origin: 50% 0; }
.reach::after { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--red); transform: scaleX(var(--h)); transform-origin: var(--ox) 50%; }
.main .pic img, .sub .pic img, .rows .pic img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.btn::after, .go { transition: transform .25s ease, background-color .25s ease; }
@media (hover: hover) {
  .main:hover .pic img, .sub:hover .pic img, .rows li:hover .pic img { transform: scale(1.05); }
  .btn:hover::after { transform: translate(3px, 3px); }
  .item:hover .go, .tl:hover .go { transform: translateX(4px); }
}
.btn:active { transform: translateY(1px); }
@media (max-width: 900px) { .reach { --ox: 33px; } }
@media (prefers-reduced-motion: reduce) { .main .pic img, .sub .pic img, .rows .pic img { transition: none; } }

/* ===== 下層ページ ===== */
/* ===== ワイヤーフレーム用 ===== */
:root { --note: #0b5c6b; --note-bg: #e4f1f3; }
.wbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--note-bg); border-bottom: 1px solid var(--note); }
.wbar .in { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding-block: 10px; font-size: 13px; }
.wbar strong { margin-right: 6px; color: var(--note); }
.wbar button { font: inherit; font-size: 13px; font-weight: 700; background: var(--bg); color: var(--ink); border: 1px solid var(--note); padding: 4px 14px; border-radius: 99px; cursor: pointer; }
.wbar button[aria-pressed="true"] { background: var(--note); color: var(--bg); }
.wbar button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wbar .sp { margin-left: auto; }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--note-bg); color: var(--note); font-size: 13px; line-height: 1.7; padding: 8px 12px; border-left: 3px solid var(--note); margin-block: 0 20px; max-width: 760px; }
.note b { font-family: var(--latin); font-weight: 600; white-space: nowrap; } .note span { color: var(--ink); min-width: 0; }
.hide-notes .note { display: none; }
.ph { background: repeating-linear-gradient(135deg, var(--ph) 0 14px, var(--ph-2) 14px 15px); display: grid; place-items: center; color: var(--ink-2); font-size: 12px; letter-spacing: .08em; }
.ph span { background: var(--bg); padding: 1px 10px; border-radius: 3px; }
.bar { display: block; height: 10px; background: var(--ph); border-radius: 2px; margin-block: 10px; } .bar.w9 { width: 92%; } .bar.w7 { width: 70%; } .bar.w5 { width: 48%; }
/* 下層ページの頭 */
.pg-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 40px 56px; }
.pg-copy { display: grid; gap: 20px; justify-items: start; }
.bc { font-size: 13px; color: var(--muted); } .bc b { color: var(--ink); font-weight: 500; }
h1.lab { margin: 0; }
.pg-vis { position: relative; aspect-ratio: 16 / 10; }
.pg.plain .pg-in { grid-template-columns: minmax(0, 1fr); padding-block: 40px 24px; }
/* 事業紹介 */
.gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; }
.gloss div { background: var(--bg); padding: 18px 22px; border-left: 3px solid var(--red); }
.gloss dt { font-weight: 700; } .gloss dd { margin: 4px 0 0; font-size: 14px; }
.slab.sm { margin-top: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); --tip: 14px; border-radius: 8px; }
.slab.sm .seg { min-height: 0; gap: 2px; padding: 16px 12px 16px calc(14px + var(--tip)); align-content: center; } .slab.sm .seg:first-child { padding-left: 16px; }
.slab.sm small { font-family: var(--latin); font-weight: 600; color: var(--acc); font-size: 14px; } .slab.sm b { font-size: 15px; line-height: 1.5; }
.price { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--bg); }
.price th, .price td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price thead th { background: var(--ink); color: var(--bg); font-size: 13px; }
.price td b { font-family: var(--latin); font-size: 20px; font-weight: 600; } .price small { color: var(--muted); display: block; }
.memo { font-size: 13px; color: var(--muted); display: grid; gap: 2px; }
.h3 { font-size: 17px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rows.nop li { grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: baseline; padding-block: 18px; }
.rows.nop small { font-family: var(--latin); font-weight: 600; color: var(--red); font-size: 15px; }
.rows.nop b { display: block; font-size: 17px; font-weight: 700; line-height: 1.6; }
.panel { background: var(--panel); border-radius: 12px; }
.wrapx { padding-inline: clamp(0px, 1vw, 12px); }
/* 会社概要 */
.info { margin: 0; display: grid; grid-template-columns: 160px minmax(0, 1fr); }
.info dt, .info dd { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); } .info dt { font-weight: 700; }
.info dt:first-of-type, .info dt:first-of-type + dd { border-top: 3px solid var(--ink); }
/* お問い合わせ */
.form { display: grid; gap: 22px; background: var(--bg); padding: clamp(20px, 3vw, 40px); border-radius: 4px; }
.fld { display: grid; gap: 8px; } .fld label, .fld .lg { font-weight: 700; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.req, .opt2 { font-size: 11px; padding: 0 8px; border-radius: 3px; font-weight: 700; } .req { background: var(--red); color: var(--bg); } .opt2 { background: var(--panel); color: var(--muted); }
.inp { height: 48px; border: 1.5px solid var(--ph-2); border-radius: 4px; background: var(--bg); } .inp.ta { height: 150px; }
.hint { font-size: 13px; color: var(--muted); }
.radios { display: grid; gap: 8px; font-size: 15px; } .radios span { display: flex; gap: 10px; align-items: center; } .radios span::before { content: ""; width: 18px; height: 18px; border: 1.5px solid var(--ph-2); border-radius: 50%; flex: none; }
.send { justify-self: start; background: var(--red); color: var(--bg); font-weight: 700; padding: 14px 40px; border-radius: 4px; }
.faq li { padding-block: 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; }
.faq li:first-child { border-top: 1px solid var(--line); }
.faq h3 { font-size: 16px; line-height: 1.6; } .faq p { font-size: 14px; grid-column: 1; }
.faq i { width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 50%; position: relative; }
.faq i::before, .faq i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1.5px; background: var(--ink); margin-top: -.75px; } .faq i::after { transform: rotate(90deg); } .faq li.open i::after { display: none; }
/* プライバシーポリシー */
.pvg { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 72px; font-size: 14px; display: grid; gap: 8px; border-left: 3px solid var(--red); padding-left: 18px; }
.pvs { display: grid; gap: 40px; max-width: 720px; } .pvs h2 { font-size: 20px; line-height: 1.5; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
/* 404 */
.nf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 72px 96px; }
.nf-num { font-family: var(--latin); font-weight: 600; font-size: clamp(110px, 20vw, 260px); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--red); border-left: 3px solid var(--red); padding-left: clamp(16px, 3vw, 40px); }
.nf-copy { display: grid; gap: 20px; justify-items: start; } .nf-copy h1 { font-size: clamp(24px, 2vw + 14px, 34px); line-height: 1.5; }
.links { display: flex; flex-wrap: wrap; gap: 12px; }
/* デザイン案で足したもの */
.fld label, .fld legend { font-weight: 700; font-size: 15px; display: flex; gap: 10px; align-items: center; padding: 0; }
fieldset.fld { border: 0; margin: 0; padding: 0; }
input.inp, textarea.inp { font: inherit; font-size: 16px; padding: 10px 14px; width: 100%; color: var(--ink); }
textarea.inp { resize: vertical; line-height: 1.7; }
.inp:focus-visible, .radios input:focus-visible, .send:focus-visible, summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.radios label { display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: 15px; } .radios input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; }
.send { font: inherit; font-weight: 700; border: 0; cursor: pointer; }
.faq details { border-bottom: 1px solid var(--line); } .faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding-block: 20px; } .faq summary::-webkit-details-marker { display: none; }
.faq details p { font-size: 14px; padding-bottom: 22px; max-width: 40em; } .faq details[open] i::after { display: none; }
.toc a:hover { color: var(--red); }
.pvs { gap: 0; grid-template-columns: minmax(0, 1fr); } .pvs section { padding-bottom: 40px; scroll-margin-top: 80px; min-width: 0; }
.pvs p, .pvs li { font-size: 15px; line-height: 1.9; word-break: normal; } .pvs p + p, .pvs ul, .pvs ol, .pvs table, .pvs div { margin-top: 12px; }
.pvs ul, .pvs ol { padding-left: 1.4em; list-style: revert; display: grid; gap: 6px; }
.pvs div { overflow-x: auto; } .pvs table { border-collapse: collapse; font-size: 14px; width: 100%; min-width: 520px; }
.pvs th, .pvs td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); } .pvs thead th { background: var(--panel); }
.p-tbd { background: #fff3c4; padding: 0 4px; }
@media (max-width: 900px) {
  .pg-in, .gloss, .pvg, .nf { grid-template-columns: minmax(0, 1fr); }
  .slab.sm { grid-template-columns: minmax(0, 1fr); } .slab.sm .seg { padding: 20px 16px 12px; } .slab.sm .seg:first-child { padding-top: 14px; }
  .info { grid-template-columns: minmax(0, 1fr); } .info dt { border-bottom: 0; padding-bottom: 0; } .info dd { padding-top: 4px; } .info dt:first-of-type + dd { border-top: 0; }
  .toc { position: static; }
  .price th, .price td { padding: 12px 10px; }
}

/* ===== 演出用の追加 ===== */
.mo .pg-copy > *, .mo .pg-vis > *, .mo .nf > * { visibility: hidden; }          /* 準備が済むまでの一瞬だけ隠す（スクリプトが外す） */
.en { background-repeat: no-repeat; background-size: 100% 100%; }
.rows .pic img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.btn::after, .go { transition: transform .25s ease; }
@media (hover: hover) {
  .btn:hover::after { transform: translate(3px, 3px); }
  .tl:hover .go { transform: translateX(4px); }
  .faq summary:hover h3 { color: var(--red); }
}
.btn:active, .send:active { transform: translateY(1px); }

a.logo { display: block; } a.logo img { display: block; width: 100%; height: auto; }

/* お問い合わせフォームの送信（2026-11-16 実装） */
.f-err { font-size: 14px; color: var(--red); font-weight: 700; }
.f-sum { border: 2px solid var(--red); border-radius: 4px; padding: 14px 18px; font-size: 15px; }
.f-sum p { margin: 0; }
.f-sum ul { margin: 8px 0 0; padding-left: 1.2em; }
.f-sum a { color: var(--red); }
.f-sum:focus, .done:focus { outline: 2px solid var(--red); outline-offset: 2px; }
.inp[aria-invalid="true"] { border-color: var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form { position: relative; }
.send:disabled { opacity: .6; cursor: wait; }
.done-h { margin: 0; font-size: 20px; }
.done p { margin: 0; }
.chk { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; line-height: 1.7; cursor: pointer; }
.chk input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--red); flex: none; }
.chk .req { flex: none; margin-top: 3px; }
.chk a { color: var(--red); }
.chk input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.done { gap: 14px; }

/* ===== スマホのメニュー（2026-11-17 追加。幅900px以下） ===== */
.hd { position: relative; }
.mbtn { display: none; }
@media (max-width: 900px) {
  .mbtn { display: grid; place-items: center; flex: none; width: 52px; min-height: 52px; margin-left: -16px; padding: 0; border: 0; background: var(--bg); color: var(--ink); cursor: pointer; }
  .mbtn[hidden] { display: none; }
  .mbtn i, .mbtn i::before, .mbtn i::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s, background-color .2s; }
  .mbtn i { position: relative; }
  .mbtn i::before, .mbtn i::after { content: ""; position: absolute; left: 0; }
  .mbtn i::before { top: -7px; } .mbtn i::after { top: 7px; }
  .hd.open .mbtn i { background: transparent; }
  .hd.open .mbtn i::before { transform: translateY(7px) rotate(45deg); }
  .hd.open .mbtn i::after { transform: translateY(-7px) rotate(-45deg); }
  .mbtn:focus-visible { outline: 2px solid var(--note); outline-offset: -4px; }
  .hd.open .nav { display: grid; position: absolute; left: 0; right: 0; top: 100%; z-index: 40; gap: 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(31, 29, 29, .08); font-size: 16px; font-weight: 700; white-space: normal; }
  .hd.open .nav a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); }
  .hd.open .nav a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
}
/* 狭い画面では「無料LLMO診断」をヘッダーから外す（メニューの「LLMO支援」と同じ行き先） */
@media (max-width: 520px) {
  .cta2 a:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mbtn i, .mbtn i::before, .mbtn i::after { transition: none; } }
