/*
  site.css — 第3版「港の青と夕日」（タスク382・2026-10-03）
  方針：17_第3版の方針.md（色＝港の青＋夕日の橙・地は生成り／画像＝雑誌の挿絵／見出しの言い切りと雑誌の組み方は残す）。
  文字と組み方は 14_見た目の決まり（明朝の大見出し＋ゴシック本文・大小の差・罫線と余白・カードを並べない）。
  しるし：言い切りの見出しの「。」を夕日の橙の丸で打つ。同じ丸を、仕組みの図の「私たちがやるところ」と年表の点にも使う。
  面：生成り／白を交互に。港の青の面は「私たちの考え方」と相談の帯（とフッター）だけ。
  表紙：挿絵の上に「生成りの面」を敷いて見出しを載せる（挿絵を差し替えても読めるように）。
  JSが使うのは data-* だけ。クラス名は自由に変えてよい（テンプレートと一緒に）。
*/

/* ===== 色と文字 ===== */
:root {
  --kou: #1E4E79;        /* 港の青（濃）：見出し・帯・図の主線・リンク */
  --kou-dk: #173E61;     /* 港の青：押したとき・奥付 */
  --umi: #3A7CA5;        /* 海の青：補助の線・図の副線 */
  --yuhi: #E8833A;       /* 夕日の橙：相談ボタン・句点・印（面積は小さく） */
  --yuhi-dk: #D46F27;    /* 夕日の橙：押したとき */
  --kinari: #F6F1E7;     /* 生成り：地 */
  --shiro: #FFFFFF;      /* 白：交互の面 */
  --sumi: #2B2B2B;       /* 墨：本文 */
  --ki: #F2C14E;         /* 淡い黄：港の青の面の上の印・フォーカス */
  --nezumi: #5F5A50;     /* 添え書き（生成り・白の上で 6:1 以上） */
  --kei: #DCD2BF;        /* 罫：細い線（生成り・白の上） */
  --on-kou: #F6F1E7;     /* 港の青の面の上の文字 */
  --on-kou-sub: rgba(246, 241, 231, .8);
  --kei-on-kou: rgba(246, 241, 231, .28);
  --warn-bg: #fff6d6;
  --warn-line: #b98c00;
  --error: #b3261e;
  /* 2026-10-04 ロゴ（太く角のある自作の字）に合わせ、見出しは明朝から太いゴシックに（印象＝確か＋新しい＋ワクワク） */
  --display: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --gothic: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --m: 48px;    /* 紙の左右の余白 */
  --gap: 24px;
  --sec: 128px; /* セクションの上下 */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'%3E%3Cpath d='M0 6h28M23 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; overflow-x: clip; }
/* overflow-x: clip（2026-10-04）：まだ画面に入っていない塊は右へずらして置かれる（スクロール連動の動き）。その分がページの横幅に数えられると、スマホの
   Chrome は「中身の幅」まで縮小して表示してしまう（実測：手を入れる前のトップで 417px・悩みページで 414px、第3弾の途中で 736px）。html だけでは効かず body に要る
   （実測）。clip は hidden と違ってスクロールの入れ物を作らないので、柱の sticky も縦のスクロールも fixed の面（メニュー・画面下のボタン）もそのまま（hidden だと柱の sticky が壊れる：実測） */
body { margin: 0; background: var(--kinari); color: var(--sumi); font-family: var(--gothic); font-size: 17px; line-height: 1.95; letter-spacing: .02em; text-wrap: pretty; overflow-wrap: anywhere; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
p, figure, ul, ol, dl, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; color: var(--kou); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--kou); outline-offset: 4px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; background: var(--kou); color: var(--on-kou); padding: 8px 14px; }
.skip:focus { left: 8px; }
.tel { font-feature-settings: "tnum"; letter-spacing: .06em; white-space: nowrap; }

.wrap { max-width: calc(1280px + var(--m) * 2); margin: 0 auto; padding: 0 var(--m); }
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.g > * { min-width: 0; }
.sec { padding: var(--sec) 0; }
.h2 { font-size: clamp(34px, 3.6vw, 50px); font-weight: 900; letter-spacing: -.02em; line-height: 1.25; }

/* 句点（言い切りの「。」）＝ロゴと同じ夕日の橙の四角（2026-10-04）。「。」の字は読み上げ用に残し、見た目は四角にする。
   開いた瞬間の演出は表紙の名乗りの句点が打たれる1つだけ */
.kuten { display: inline-block; position: relative; width: .2em; height: .2em; margin-left: .07em; background: var(--yuhi); vertical-align: baseline; }
.kuten > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; font-size: 0; }  /* 字の箱が次の行に重ならないよう大きさ0（コピーと検索には「。」が残る） */
.cover__title .kuten { transform-origin: 50% 50%; animation: stamp .46s cubic-bezier(.2, .9, .25, 1.25) .4s both; }
@keyframes stamp { from { opacity: 0; transform: scale(2.4); } to { opacity: 1; transform: scale(1); } }

/* 矢印（罫線と同じ細さ） */
.links a::after, .more::after, .btn::after, .toc-row__go::before, .news-list__go::before, .pager a::after, .contents__h a::after, .tried__go::before {
  content: ""; display: inline-block; flex: none; width: 30px; height: 12px; background: currentColor;
  -webkit-mask: var(--arrow) no-repeat center / contain; mask: var(--arrow) no-repeat center / contain;
  transition: transform .2s;
}
.links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; }
.links__sep { display: none; }
.links a, .more { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; line-height: 1.5; color: var(--kou); }
.links a:hover::after, .more:hover::after { transform: translateX(4px); }
.links a:hover { color: var(--kou-dk); }

/* 相談ボタン（1種類だけ）：夕日の橙の面に墨の文字（5.2:1） */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--yuhi); color: var(--sumi); border: 0; border-radius: 0; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: .08em; line-height: 1.5; padding: 19px 28px 19px 30px; cursor: pointer; transition: background .2s, transform .35s cubic-bezier(.2, .8, .2, 1); transform: translate(var(--mx, 0px), var(--my, 0px)); }
/* ロゴの8°の傾きを、押す場所の形に（2026-10-04 ワクワク）。字は立てたまま、箱だけ平行四辺形に切る。切ると外側の枠が隠れるので、選択中の枠は内側に出す */
.btn { position: relative; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-left: 34px; padding-right: 32px; }  /* position: 面を横切る光（::before・motion.css）の置き場 */
.btn:focus-visible { outline: 3px solid var(--kou); outline-offset: -7px; }
.btn:hover { background: var(--yuhi-dk); }
.btn:hover::after { transform: translateX(4px); }
.btn[disabled] { opacity: .65; cursor: wait; }
.btn--tel { background: transparent; color: inherit; border: 1px solid currentColor; padding: 18px 27px 18px 29px; }
.btn--tel::after { display: none; }
.btn--tel:hover { background: transparent; color: var(--ki); }
.notes { margin-top: 18px; font-size: 14px; line-height: 1.85; color: var(--nezumi); }
.notes b { font-weight: 700; color: var(--sumi); }
.note { font-size: 13px; line-height: 1.85; color: var(--nezumi); }

/* 部門の見出し（雑誌の柱。箱にしない：文字と上の罫だけ） */
.dept { position: relative; grid-column: 1 / -1; font-size: 13px; font-weight: 700; letter-spacing: .24em; line-height: 1.6; padding-top: 14px; border-top: 2px solid currentColor; }
.dept::before { content: ""; display: inline-block; width: .62em; height: .62em; margin-right: .7em; background: var(--yuhi); transform: skewX(-8deg); vertical-align: -.02em; }

/* 【事例：16待ち】の差し込み口（事例と件数の確認待ち。本番 live の組み立てでは止まる） */
.pending, .md-pending { padding: 14px 18px; border: 2px dashed var(--umi); background: rgba(58, 124, 165, .07); color: var(--kou); font-size: 14px; font-weight: 700; line-height: 1.75; text-align: left; }
.md-pending p { text-align: left; }

/* 柱とノンブル（悩みページの足もと） */
.folio { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 18px; margin-top: 104px; font-size: 11px; letter-spacing: .22em; color: var(--nezumi); line-height: 1.6; }
.folio b { font-weight: 700; font-size: 12px; letter-spacing: .06em; color: var(--kou); font-feature-settings: "tnum"; }
.folio--r { justify-content: flex-end; }
.folio--r b { order: 2; }

.nm { white-space: nowrap; }  /* 肩書と名前（代表取締役　湊 一浩）は途中で折り返さない。lib/phrase.mjs decorate() が付ける（2026-10-05） */

/* ===== 柱（ヘッダー）：全ページ生成りの面 ===== */
/* 2026-10-04 第3弾（湊さん「ヘッダーまで全部」）：柱は上に貼りつき（sticky）、24px スクロールしたら細くなる（html.is-scrolled は site.js）。
   面は ::before に持たせる（細くするのは面の transform だけ＝流れの上の高さは変えない）。.mast / .mast__in には transform を掛けない（中のメニューの面が position: fixed） */
.mast { position: sticky; top: 0; z-index: 20; color: var(--sumi); background: transparent; }
.mast::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--kinari); transform-origin: 50% 0; }
/* 2026-10-04 代表「ヘッダーの帯はもう少し細く」「ロゴは小さすぎる」：帯 98px→約61px。ロゴの絵の余白を実測で詰め（tight_viewbox.py）、
   帯の高さのほとんどをロゴの字が占めるようにした（字は前より約4割大きい） */
.mast__in { display: flex; align-items: center; gap: 28px; padding-top: 5px; padding-bottom: 5px; border-bottom: 1px solid var(--kei); }
.mast__name { display: block; flex: none; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 27px; line-height: 1.1; letter-spacing: .06em; white-space: nowrap; color: var(--kou); }
.mast__logo { display: block; height: 50px; width: auto; }
.menu__logo { display: block; height: 44px; width: auto; }
.okuzuke__logo { display: block; height: 92px; width: auto; max-width: 100%; margin: 0 0 18px -12px; }
.mast__name small, .menu__name small { display: block; font-family: var(--gothic); font-weight: 400; font-size: 11px; letter-spacing: .3em; margin-bottom: 6px; color: var(--sumi); }
.mast__sub { flex: none; white-space: nowrap; font-size: 11.5px; line-height: 1.6; letter-spacing: .14em; padding-left: 22px; border-left: 1px solid var(--kei); color: var(--nezumi); }
/* 現在時刻（2026-10-04 仕掛け全体・参考 ds-k.site の「Yamagata City … 16:35:14 GMT+9」）。site.js が毎秒書く。空のうちは何も出ない */
.mast__clock { margin-left: 1.1em; padding-left: 1.1em; border-left: 1px solid var(--kei); font-feature-settings: "tnum"; letter-spacing: .1em; }
.mast__clock:empty { display: none; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; align-items: center; gap: 26px; font-size: 14px; letter-spacing: .08em; }
.gnav a { text-decoration: none; white-space: nowrap; }
.gnav a:hover { color: var(--kou); text-decoration: underline; text-underline-offset: 6px; }
.gnav a[aria-current="page"] { color: var(--kou); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.mast__cta { flex: none; font-size: 14px; letter-spacing: .08em; font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 3px solid var(--yuhi); padding-bottom: 2px; line-height: 1.95; color: var(--kou); }
.mast__cta:hover { color: var(--kou-dk); }
.menu { display: none; }
/* 柱はスクロールで細くなる：面を上から .8 に縮め、ロゴを .88 に、中身を 6px 上げる。transform と影だけ（置き場所は動かない）。0.4秒。
   動きを減らす設定は下の全体の決まりで時間が 0 になる。Motion オフでも時間を掛けない（状態そのものは機能なので残す） */
.mast::before, .mast__logo, .mast__name, .mast__sub, .gnav, .mast__cta, .menu__btn { transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease; }
.mast__in { transition: border-color .4s ease; }
.mast__logo { transform-origin: 0 50%; }
html.is-scrolled .mast::before { transform: scaleY(.8); box-shadow: 0 1px 0 rgba(30, 78, 121, .16), 0 8px 20px rgba(16, 48, 77, .08); }
html.is-scrolled .mast__in { border-bottom-color: transparent; }
html.is-scrolled .mast__name, html.is-scrolled .mast__sub, html.is-scrolled .gnav, html.is-scrolled .mast__cta, html.is-scrolled .menu__btn { transform: translateY(-6px); }
html.is-scrolled .mast__logo { transform: scale(.88); }
html.is-motion-off .mast::before, html.is-motion-off .mast__logo, html.is-motion-off .mast__name, html.is-motion-off .mast__sub, html.is-motion-off .gnav, html.is-motion-off .mast__cta, html.is-motion-off .menu__btn, html.is-motion-off .mast__in { transition: none; }
/* 柱が貼りつく分、ページ内リンクの着地は柱の下に（scroll-padding の 24px は変えない：積み重ねの見開きがそれを打ち消して上端に着く決まりのため） */
main [id] { scroll-margin-top: 36px; }

/* メニュー（900px以下）：<details> なのでJSが無くても開閉できる */
.menu__btn { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 13px; letter-spacing: .14em; padding: 6px 0 6px 10px; position: relative; z-index: 42; user-select: none; color: var(--kou); }
.menu__btn::-webkit-details-marker { display: none; }
.menu__btn i { display: block; width: 20px; height: 7px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.menu__close { display: none; }
.menu[open] .menu__btn { color: var(--on-kou); }
.menu[open] .menu__btn i { height: 0; border-bottom: 0; }
.menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: inline; }
.menu:not([open]) .menu__panel { display: none; }
.menu__panel { position: fixed; inset: 0; z-index: 41; overflow: auto; overscroll-behavior: contain; background: var(--kou); color: var(--on-kou); padding: 20px var(--m) calc(48px + env(safe-area-inset-bottom, 0px)); }
.menu__name { font-family: var(--display); font-weight: 900; font-size: 21px; line-height: 1.1; letter-spacing: .06em; padding: 0 0 14px; border-bottom: 1px solid var(--kei-on-kou); }
.menu__name small { color: var(--on-kou); }
/* 2026-10-05 2段（群の見出し 12.5px・行 16px×46px）。動きは motion.css */
.menu__group { margin-top: 22px; }
.menu__h { padding-bottom: 6px; border-bottom: 1px solid var(--on-kou-sub); font-size: 12.5px; letter-spacing: .16em; color: var(--on-kou-sub); }
.menu__list li { border-bottom: 1px solid var(--kei-on-kou); }
.menu__list a { display: block; padding: 12px 0; font-weight: 700; font-size: 16px; line-height: 1.4; text-decoration: none; }
.menu__list--pages { margin-top: 28px; border-top: 1px solid var(--on-kou-sub); }
.menu__list a[aria-current="page"] { color: var(--ki); }
.menu__act { margin-top: 30px; }
.menu__act .btn { display: flex; width: 100%; }
.menu__panel .notes { color: var(--on-kou-sub); }
.menu__panel .notes b { color: var(--on-kou); }
.menu__panel :focus-visible { outline-color: var(--ki); }
html.is-menu-open { overflow: hidden; }

/* ===== 表紙（トップ）：3Dの回廊の上で言葉が流れ、名乗りが着地する ===== */
/* 2026-10-05 代表の指示「課題の文字が浮かんでは消える・奥から飛び出す → 解決手段の言葉 → 最後に『地域の可能性をビジネスに変える』が
   ドーンと大きく。最後の一言はロゴと同じ書体で」。言葉は HTML（.cover__words・content/top.json の cover・飾りなので aria-hidden）、
   動かすのは assets/js/hero-seq.js（Web Animations）。名乗りの h1 は1つで最初から HTML にあり、JSが無い・動きを減らす設定・Motion オフでは
   名乗りだけが見える（終わった状態）。PCは下のブロック（リード・相談ボタン）を表紙の中に重ねる */
.cover { position: relative; padding-bottom: 88px; background: var(--kinari); --rise: 110px; }
.cover__art { position: relative; height: clamp(400px, 64svh, 640px); overflow: hidden; background: var(--kou-dk); }
/* ===== 表紙の3D（2026-10-04 代表の決定：参考 ds-k.site の回廊を、港の青とロゴの四角で） =====
   canvas は assets/js/cover3d.js が描く。読み込み前・WebGLなし・JSなし・動きを減らす設定・Motionオフでは、
   濃い青の面にざらついた粒子（::before）だけが見える。 */
.cover__art { background: radial-gradient(120% 90% at 50% 60%, #1e4e79 0%, #173e61 55%, #10304d 100%); }
/* 2026-10-06 ポスター：回廊そのもの（夜の光・言葉なし）の実画像を canvas の下に敷く（最初の描画の最大要素＝LCP。WebGL なし・動きを減らす設定・Motion オフの背景にもなる）。
   canvas は従来どおりこの上に 1.2秒で現れる（DOM の順＝ポスター → canvas。z-index は付けない） */
.cover__poster, .cover__poster img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.cover__poster img { object-fit: cover; }
.cover__art::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .22; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cover__3d { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.cover__art.is-3d .cover__3d { opacity: 1; }
/* 夜明けの光（2026-10-05 代表「徐々に解決していくことで画面が少し明るくなっていく感じ」）：回廊の奥（右上）から生成り→夕日の橙の暖かい光。
   濃さは --solved（hero-seq.js が衝突ごとに 0→1、着地で 1。流れが無い時は最初から 1）。WebGL が無くてもこの面だけで明るくなる */
.cover__dawn { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: calc(var(--solved, 0) * .28); transition: opacity .6s ease; mix-blend-mode: soft-light; background: radial-gradient(95% 85% at 70% 28%, var(--kinari) 0%, var(--kinari) 18%, var(--yuhi) 46%, rgba(232, 131, 58, .35) 70%, rgba(232, 131, 58, 0) 100%); }
.cover__art.is-flash .cover__dawn { opacity: calc(var(--solved, 0) * .28 + .22); transition-duration: .05s; }  /* 命中の一瞬の強まり（2026-10-05 5度目）：hero-seq.js が 90ms だけ付ける。上がりは一瞬、戻りは上の .6s */
/* 言葉の舞台（2026-10-05）：.cover__art いっぱい。奥行き（perspective）はここに置き、言葉（li）は絶対配置・opacity 0 で待つ。
   hero-seq.js が位置・大きさを入れ、transform / opacity / filter だけで動かす（8°の傾きもその transform の中）。JSが無ければ何も見えない。
   課題（issues）＝輪郭だけの字（.is-ghost）と生成りの字を混ぜる。解決手段（solutions）＝生成りの字に、ロゴの橙の四角を前に */
.cover__words { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; font-family: var(--display); font-weight: 900; line-height: 1; letter-spacing: .02em; }
.cover__list { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; perspective: 900px; perspective-origin: 50% 50%; }  /* perspective は li の直接の親に（孫には効かない） */
.cover__list li { position: absolute; left: 50%; top: 50%; opacity: 0; white-space: nowrap; color: var(--kinari); }  /* 中心合わせの translate は hero-seq.js が置く時に入れる（待っている103語に transform を持たせない＝最初の描画で層を作らない） */
.cover__list li.is-ghost { color: transparent; -webkit-text-stroke: 1.2px rgba(246, 241, 231, .5); }
.cover__list--solutions li::before { content: ""; display: inline-block; width: .32em; height: .32em; margin-right: .4em; background: var(--yuhi); vertical-align: .06em; }
/* 衝突（2026-10-05 代表「解決手段が課題にぶつかっていく。ぶつかった瞬間にはじける」）：当たった課題の字は hero-seq.js が1字ずつ span にして飛ばす。
   当てた解決手段は一瞬だけ橙に光る（.is-hit）。四角（ロゴの印・橙と生成り）・輪・残像は .cover__fx（JS が作り、終わったら消す） */
.cover__list li > span { display: inline-block; }
.cover__list li.is-hit { text-shadow: 0 0 2px rgba(232, 131, 58, .7), 0 0 16px rgba(232, 131, 58, .9); }
.cover__fx { position: absolute; inset: 0; pointer-events: none; }
.cover__sq { position: absolute; left: 0; top: 0; width: 6px; height: 6px; background: var(--yuhi); transform: skewX(-8deg); opacity: 0; }
.cover__sq--k { background: var(--kinari); }
.cover__ring { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 2px solid var(--kinari); border-radius: 50%; opacity: 0; }
.cover__ring--o { border-color: var(--yuhi); }
.cover__ghost { position: absolute; left: 0; top: 0; translate: -50% -50%; white-space: nowrap; color: var(--kinari); opacity: 0; }
/* 名乗り（h1 は1つ・HTML に最初からある）：3Dの中央に、一塊で2行（地域の可能性を、／ビジネスに変える。）。
   書体はロゴと同じ系統の太いゴシック（--display 900）＋ロゴの8°の前傾（ロゴは手描きの字なので、この2つで寄せる）。
   後ろに薄い暗がり（::before）を敷いて回廊の上でも読める。句点はロゴの橙の四角 */
.cover__art .cover__title { position: absolute; z-index: 3; left: var(--m); right: var(--m); top: 45%; margin: 0; transform: translateY(-50%) skewX(-8deg); text-align: center; font-weight: 900; font-size: clamp(36px, 6.4vw, 96px); line-height: 1.16; letter-spacing: .01em; color: var(--kinari); text-shadow: 0 2px 24px rgba(16, 48, 77, .5); }
/* 2026-10-05 夜明けで画面が明るくなるぶん、暗がりは字の下では一様に濃く（.74）、外へ向かって消える（最も明るい所＝生成りの柱の上でも 4.5:1 を保つ） */
.cover__title::before { content: ""; position: absolute; z-index: -1; left: -6%; right: -6%; top: -45%; bottom: -45%; pointer-events: none; background: radial-gradient(ellipse at center, rgba(16, 48, 77, .76) 0%, rgba(16, 48, 77, .74) 60%, rgba(16, 48, 77, .5) 80%, rgba(16, 48, 77, 0) 100%); }
/* 2026-10-06 代表「Aで進める」：名乗りの見た目はロゴと同じ描き起こしの字（h1 の中の inline SVG .cover__svg・assets/img/tagline.svg・書体なし）。
   2行の span は検索と読み上げのための本文として残し、見えなくする（display:none にしない）。大きさは字（フォント）の時の 112%（PC 1440 で実測：
   字の高さ 194px → 218px＝font-size の 2.368倍）、スマホは同じ高さ（88px＝2.129倍）。前傾は h1 の skewX(-8deg) のまま（SVG の中では傾けない）。
   句点は SVG の rect.kuten：.kuten の .2em を 16（SVG の単位）に戻し、打たれる動き（scale）の中心を四角自身に（transform-box: fill-box） */
.cover__line { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cover__svg { display: block; width: auto; max-width: 100%; height: clamp(85px, 15.15vw, 227px); margin: 0 auto; overflow: visible; }
.cover__title .kuten { background: var(--yuhi); }
.cover__svg .kuten { width: 16px; height: 16px; margin: 0; fill: var(--yuhi); transform-box: fill-box; transform-origin: 50% 50%; }
/* 流れの状態（hero-seq.js が .cover に付ける）：is-seq＝流れている間は名乗りを隠す／is-landed＝名乗りが着地（1.5倍・ぼけた所から 0.9秒、
   少し行き過ぎて戻る）、句点はそのあと 0.25秒おいて打たれる／is-quick＝飛ばした時の短い着地（0.4秒） */
.cover.is-seq .cover__title { opacity: 0; }
.cover.is-seq.is-landed .cover__title { opacity: 1; animation: hero-land .9s cubic-bezier(.2, .9, .25, 1.15) both; }
.cover.is-seq.is-landed .cover__title .kuten { animation: hero-stamp .46s cubic-bezier(.2, .9, .25, 1.25) 1.15s both; }
.cover.is-seq.is-landed.is-quick .cover__title { animation-duration: .4s; }
.cover.is-seq.is-landed.is-quick .cover__title .kuten { animation-delay: .5s; }
@keyframes hero-land { from { opacity: 0; transform: translateY(-50%) skewX(-8deg) scale(1.5); filter: blur(10px); } to { opacity: 1; transform: translateY(-50%) skewX(-8deg) scale(1); filter: blur(0); } }
@keyframes hero-stamp { from { opacity: 0; transform: scale(2.4); } to { opacity: 1; transform: scale(1); } }
/* 2026-10-06 2行目は 0.08秒おくれて現れる（着地 0.9秒の中・opacity だけ。transform は <g> の transform 属性を消すので使わない）。飛ばした時は 0.05秒 */
.cover.is-seq.is-landed .cover__svgline + .cover__svgline { animation: hero-line .42s ease-out .08s both; }
.cover.is-seq.is-landed.is-quick .cover__svgline + .cover__svgline { animation-duration: .2s; animation-delay: .05s; }
@keyframes hero-line { from { opacity: 0; } to { opacity: 1; } }
/* 動きを減らす設定・Motion オフ＝終わった状態（名乗りだけ・言葉は出ない）。hero-seq.js は始めない。途中で Motion を押した時は飛ばして即着地 */
html.is-motion-off .cover.is-seq .cover__title, html.is-motion-off .cover.is-seq .cover__title .kuten { animation: none; }
html.is-motion-off .cover.is-seq .cover__svgline { animation: none; }
/* Motion（動きの停止）：参考サイトと同じ位置（右上）。四角＝ロゴの印。押すと html.is-motion-off */
.motion { position: absolute; z-index: 4; right: var(--m); top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; font: 700 12px/1 var(--gothic); letter-spacing: .12em; color: var(--kinari); background: rgba(23, 62, 97, .55); border: 1px solid rgba(246, 241, 231, .45); cursor: pointer; backdrop-filter: blur(4px); }
.motion i { display: block; width: 10px; height: 10px; background: var(--yuhi); }
.motion.is-off i { background: transparent; border: 2px solid var(--yuhi); box-sizing: border-box; }
.motion:hover { border-color: var(--kinari); }
.motion:focus-visible { outline-color: var(--ki); }
/* 下層ページの Motion（2026-10-04 仕掛け全体）：最初の画面（扉）の右上。生成りの地に合わせて青い字・淡い面。形と橙の四角は表紙と同じ */
main { position: relative; }
.motion--page { z-index: 5; top: 16px; color: var(--kou); background: rgba(246, 241, 231, .8); border-color: rgba(30, 78, 121, .45); }
.motion--page:hover { border-color: var(--kou); }
.motion--page:focus-visible { outline-color: var(--kou); }
.is-motion-off .rv { transition: none; }
.is-motion-off .cover__title .kuten, .is-motion-off .opener__h1.has-kuten::after { animation: none; }

/* 画面下の浮いたメニュー（PCのみ）。ヘッダーの横並びメニューはPCでは出さず、こちらが主になる */
.pillnav { display: none; }
@media (min-width: 1024px) {
  .gnav { display: none; }
  .pillnav { display: block; position: fixed; left: 50%; bottom: 22px; z-index: 30; transform: translateX(-50%); padding: 5px; background: rgba(23, 62, 97, .92); border: 1px solid rgba(246, 241, 231, .22); box-shadow: 0 10px 30px rgba(16, 48, 77, .35); backdrop-filter: blur(8px); }
  .pillnav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
  .pillnav a, .pillnav__ddbtn { display: block; padding: 11px 16px; font-size: 13px; font-weight: 700; letter-spacing: .08em; line-height: 1; color: var(--kinari); text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
  .pillnav a:hover, .pillnav__ddbtn:hover, .pillnav__ddbtn[aria-expanded="true"] { border-color: rgba(246, 241, 231, .5); }
  .pillnav a[aria-current="page"] { background: rgba(246, 241, 231, .14); border-color: rgba(246, 241, 231, .5); }
  /* 「事業」（2026-10-05）：状態は site.js 2b（is-js / is-open）。JS 無しは :hover / :focus-within。::before は隙間の橋 */
  .pillnav__dd { position: relative; }
  .pillnav__ddbtn { display: flex; align-items: center; gap: 7px; background: none; cursor: pointer; }
  .pillnav__ddbtn::after { content: ""; width: 6px; height: 6px; margin-top: 3px; border: solid currentColor; border-width: 1px 0 0 1px; transform: rotate(45deg); }
  .pillnav__ddbtn[aria-expanded="true"]::after { margin-top: -3px; transform: rotate(225deg); }
  .pillnav .pillnav__ddlist { display: none; position: absolute; left: 50%; bottom: calc(100% + 9px); translate: -50% 0; min-width: 15em; padding: 5px; background: rgba(23, 62, 97, .96); border: 1px solid rgba(246, 241, 231, .22); box-shadow: 0 10px 30px rgba(16, 48, 77, .35); }
  .pillnav__ddlist::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
  .pillnav__dd.is-open .pillnav__ddlist, .pillnav__dd:not(.is-js):hover .pillnav__ddlist, .pillnav__dd:not(.is-js):focus-within .pillnav__ddlist { display: block; }
  .pillnav__ddlist a { padding: 10px 14px; }
  .pillnav__cta a { color: var(--sumi); background: var(--yuhi); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding-left: 20px; padding-right: 20px; }
  .pillnav__cta a:hover { background: #f09a5a; }
  .pillnav :focus-visible { outline: 3px solid var(--ki); outline-offset: -4px; }
  .okuzuke { padding-bottom: 120px; }
}
@media print { .pillnav, .motion { display: none !important; } }
.cover__in { position: relative; z-index: 2; margin-top: calc(var(--rise) * -1); }
/* 生成りの面：左は画面の端まで（--bleed）、幅は見出しの9文字ぶん＋余白 */
.cover__plate { --bleed: calc(var(--m) + max(0px, (100vw - 1280px - var(--m) * 2) / 2)); max-width: calc(100% + var(--bleed)); margin-left: auto; margin-right: calc(var(--bleed) * -1); padding: 34px var(--bleed) 4px 56px; background: var(--kinari); border-top: 4px solid var(--kou); }
.cover__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 36px; margin-top: 24px; }
.cover__copy { min-width: 0; max-width: 31em; }
.cover__lead { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: .05em; line-height: 1.6; color: var(--sumi); word-break: keep-all; overflow-wrap: anywhere; }
.cover__sub { margin-top: 8px; max-width: 34em; font-size: 15px; line-height: 1.85; color: var(--nezumi); }
.cover__act { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cover__free { font-size: 13.5px; font-weight: 700; color: var(--sumi); }

/* 2026-10-04 表紙の3D：PC・タブレットでは名乗りを画面中央の高さに置き、リードと相談ボタンは左下に重ねる。
   スマホ（639px以下）は 4:3 の3Dの中央に名乗り（2〜3行）、その下にリードと相談ボタン。 */
@media (min-width: 640px) {
  .cover { padding-bottom: 0; }
  .cover__art { height: clamp(560px, 86svh, 820px); }
  .cover__art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(16, 48, 77, 0) 0%, rgba(16, 48, 77, .72) 100%); }
  .cover__in { position: absolute; left: 0; right: 0; bottom: 92px; z-index: 2; margin: 0; }
  .cover__plate { width: min(900px, 70%); max-width: none; margin: 0; padding: 0; background: none; border: 0; }
  .cover__lead, .cover__free { color: var(--kinari); }
  .cover__sub { color: rgba(246, 241, 231, .78); }
  .cover__foot { margin-top: 0; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .cover__art .cover__title { font-size: clamp(30px, 6vw, 58px); }
  .cover__svg { height: clamp(71px, 14.2vw, 137px); }  /* 2026-10-06 字の高さ × 2.368（PC と同じ比） */
  .cover__in { bottom: 40px; }
}
@media (max-width: 639px) {
  .cover__art .cover__title { left: 20px; right: 20px; top: 50%; font-size: min(10.6vw, 44px); line-height: 1.18; }
  .cover__svg { height: min(22.6vw, 94px); }  /* 2026-10-06 スマホは字（フォント）の時と同じ高さ（390px で 88px） */
  .cover__title::before { left: -30%; right: -30%; }  /* 字が箱いっぱいに広がるぶん、暗がりの濃い所も広く */
  .motion { top: 12px; right: 16px; padding: 6px 10px 6px 9px; font-size: 11px; }
  .motion--page { top: 6px; padding: 5px 9px 5px 8px; font-size: 10.5px; }
}

/* ===== 私たちの考え方（港の青の面） ===== */
.rinen { background: var(--kou); color: var(--on-kou); padding: var(--sec) 0; }
.rinen :focus-visible { outline-color: var(--ki); }
.rinen__dept { color: var(--on-kou); }
.rinen__text { grid-column: 1 / 7; margin-top: 56px; padding-right: 24px; }
.rinen__h { font-size: clamp(38px, 4.6vw, 64px); font-weight: 900; letter-spacing: -.015em; line-height: 1.18; color: var(--on-kou); }
.rinen__lead { margin-top: 30px; font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.85; }
.rinen__points { margin-top: 32px; border-top: 1px solid var(--kei-on-kou); }
.rinen__points li { position: relative; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--kei-on-kou); font-size: 16px; line-height: 1.8; }
.rinen__points li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 9px; height: 9px; background: var(--yuhi); }
.rinen__close { margin-top: 26px; font-weight: 700; line-height: 1.85; }
.rinen .links { margin-top: 26px; }
.rinen .links a { color: var(--on-kou); }
.rinen .links a:hover { color: var(--ki); }
.rinen__fig { grid-column: 7 / 13; margin-top: 56px; align-self: center; }
.rinen__fig img, .back__fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 10px solid var(--kinari); background: var(--kinari); }
/* 2026-10-04 考え方の挿絵：額（生成りの縁）を figure に移し、picture で切り抜く＝写真だけが中でゆっくり動ける（区画ごとの動き 1） */
.rinen__fig { padding: 10px; background: var(--kinari); }
.rinen__fig picture { display: block; overflow: hidden; }
.rinen__fig img { border: 0; }
/* 「イメージ」 badge on the AI-generated pictures (the cover is covered by the note in the footer) */
.rinen__fig, .spread__fig, .back__fig, .opener__fig { position: relative; }
.rinen__fig picture { clip-path: none; }  /* 8°の窓が開く決まりは motion.css（終わった状態＝全部見える） */
.img-badge { position: absolute; right: 8px; bottom: 8px; padding: 1px 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; line-height: 1.7; color: #fff; background: rgba(43, 43, 43, .6); pointer-events: none; }
.rinen__fig .img-badge, .back__fig .img-badge { right: 18px; bottom: 18px; }

/* ===== 地域の稼ぐ力を、こう動かす（循環の図・2026-10-05 代表の決定）：トップは考え方の直後、会社のことは考え方の後。絵は lib/cycle.mjs ===== */
.cycle { position: relative; isolation: isolate; padding: var(--sec) 0; background: var(--kinari); }
.cycle__h { margin-top: 14px; }
.cycle__lead { max-width: 40em; margin-top: 16px; font-size: 16px; line-height: 1.9; }
.cycle__fig { margin: 40px 0 0; container-type: inline-size; }
.cy { display: block; width: 100%; height: auto; color: var(--kou); font-family: var(--gothic); }
.cy--h { display: none; max-width: 1080px; margin: 0 auto; }
.cy--v { max-width: 400px; margin: 0 auto; }
@container (min-width: 760px) { .cy--h { display: block; } .cy--v { display: none; } }
.cy-arc { fill: none; stroke: var(--kou); stroke-width: 2.5; }
.cy-box--us { fill: var(--kou); } .cy-box--out { fill: #fff; stroke: var(--kou); stroke-width: 2.5; }
.cy-sq, .cy-kuten, .cy-run { fill: var(--yuhi); }
.cy-t { font-family: var(--display); font-weight: 900; font-size: 22px; } .cy-t--w { fill: #fff; } .cy-t--k { fill: var(--kou); }
.cy-c { font-weight: 700; font-size: 13px; } .cy-c--w { fill: #fff; opacity: .92; } .cy-c--k { fill: var(--kou); } .cy--v .cy-c { font-size: 12px; }
.cy-lab { font-weight: 700; font-size: 14px; fill: var(--nezumi); } .cy-lab--s { font-size: 13px; } .cy-lab--xs { font-size: 12px; }
.cy-labbg { fill: var(--kinari); }
.cy-ct { font-family: var(--display); font-weight: 900; font-size: 32px; fill: var(--kou); } .cy-ct--s { font-size: 26px; }
.cy-legend { font-size: 12px; fill: var(--nezumi); }
.cy-run { offset-rotate: 0deg; }
.cycle__why { max-width: 40em; margin: 28px 0 0; padding: 18px 22px; border-left: 3px solid var(--yuhi); background: #fff; font-size: 15px; line-height: 1.9; }
.cycle__why b { color: var(--kou); }

/* ===== 私たちの仕事（7事業の見開き） ===== */
.work__head { padding: var(--sec) 0 88px; }
.work__h { grid-column: 1 / 6; }
.work__lead { grid-column: 7 / 13; align-self: end; font-size: 16.5px; line-height: 1.95; }
.work__index { grid-column: 1 / -1; margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); border-top: 2px solid var(--kou); }
.work__index li { border-bottom: 1px solid var(--kei); }
.work__index a { display: flex; flex-direction: column; gap: 2px; padding: 14px 0 13px; text-decoration: none; }
.work__index-name { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.5; color: var(--kou); word-break: keep-all; overflow-wrap: anywhere; }
.work__index-area { font-size: 12.5px; letter-spacing: .06em; color: var(--nezumi); }
.work__index a:hover .work__index-name { text-decoration: underline; text-underline-offset: 5px; }

.spread { padding: 96px 0 104px; }
.spread--l { background: var(--shiro); }
.spread--r { background: var(--kinari); }
.spread__bar { grid-column: 1 / -1; grid-row: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 20px; padding-top: 12px; border-top: 2px solid var(--kou); margin-bottom: 44px; font-size: 13.5px; letter-spacing: .1em; line-height: 1.6; }
.spread__name { font-weight: 700; color: var(--kou); }
.spread__area { color: var(--nezumi); }
.spread__area-k { margin-right: .8em; padding-right: .8em; border-right: 1px solid var(--kei); font-weight: 700; color: var(--kou); }
.spread__fig { grid-row: 2; align-self: start; }
.spread__fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--kei); }
.spread__text { grid-row: 2; align-self: center; }
.spread--l .spread__fig { grid-column: 1 / 8; }
.spread--l .spread__text { grid-column: 8 / 13; }
.spread--r .spread__fig { grid-column: 6 / 13; }
.spread--r .spread__text { grid-column: 1 / 6; }
/* 見出しは h3（トップ）か p（できること：サービス名を見出しにする）。どちらでも同じ見た目 */
.spread__h { font-family: var(--display); font-size: clamp(28px, 2.9vw, 40px); font-weight: 900; letter-spacing: -.01em; line-height: 1.32; color: var(--kou); word-break: keep-all; overflow-wrap: anywhere; }
.spread__p { margin-top: 20px; font-size: 16.5px; line-height: 1.95; text-align: justify; text-justify: inter-character; }
.spread__p + .spread__p { margin-top: 12px; }
.spread__links { margin-top: 28px; }
.spread__subs { grid-column: 1 / -1; grid-row: 3; }
.spread__dg { grid-column: 1 / -1; grid-row: 4; margin-top: 64px; }
.spread__rec { grid-column: 1 / -1; grid-row: 5; margin-top: 40px; }
.spread__pending { grid-column: 1 / -1; grid-row: 6; margin-top: 28px; }
.spread__text > .md-draft { margin-top: 16px; }
/* できること：柱の帯のサービス名が見出し（h3）。先頭に傾いた橙の四角（部門の見出しと同じしるし） */
h3.spread__name { font-size: 17px; font-weight: 700; letter-spacing: .06em; line-height: 1.5; }
h3.spread__name::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .6em; background: var(--yuhi); transform: skewX(-8deg); vertical-align: .02em; }
.spread__for { margin-top: 18px; font-size: 14.5px; line-height: 1.85; color: var(--nezumi); }
.spread__for-k { font-weight: 700; color: var(--kou); }
/* 同じ章の、写真を持たないサービス（見開きの下に2つ並べる） */
.spread__subs { margin-top: 72px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; }
.sub { padding-top: 18px; border-top: 2px solid var(--kou); }
.sub__h { font-size: clamp(21px, 1.9vw, 26px); font-weight: 900; line-height: 1.42; }
.sub__p { margin-top: 14px; font-size: 16px; line-height: 1.95; text-align: justify; text-justify: inter-character; }
.sub__links { margin-top: 22px; }
/* 写真のない見開き（マップ健診）：言葉を大きく */
.spread--plain .spread__text { grid-column: 1 / 9; grid-row: 2; }
.spread--plain .spread__p { margin-top: 0; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.7; color: var(--kou); text-align: left; }

/* ===== できること（2026-10-04：トップの見開きと同じ組み方） ===== */
.svc .opener { padding-bottom: 72px; }
.svc-index { padding-bottom: 96px; }
.svc-index__col { grid-column: span 3; padding-top: 14px; border-top: 2px solid var(--kou); }
.svc-index__ch { display: flex; align-items: baseline; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; line-height: 1.6; color: var(--kou); word-break: keep-all; overflow-wrap: anywhere; }
.svc-index__no { flex: none; font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: -.01em; line-height: 1; font-feature-settings: "tnum"; }
.svc-index ul { margin-top: 12px; border-top: 1px solid var(--kei); }
.svc-index li { border-bottom: 1px solid var(--kei); }
.svc-index a { display: block; padding: 11px 0 10px; font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.5; color: var(--kou); text-decoration: none; word-break: keep-all; overflow-wrap: anywhere; }
.svc-index a:hover { text-decoration: underline; text-decoration-color: var(--yuhi); text-decoration-thickness: 2px; text-underline-offset: 5px; }
/* 章の頭：太い罫＋大きな番号（傾いた橙の四角）＋見出し。面は章の最初の見開きと同じ色 */
.chap__head { padding-top: 104px; }
.chap--l .chap__head { background: var(--shiro); }
.chap--r .chap__head { background: var(--kinari); }
.chap__head .g { align-items: end; }
.chap__head .g::before { content: ""; grid-column: 1 / -1; height: 4px; margin-bottom: 30px; background: var(--kou); }
.chap__no { grid-column: 1 / 3; display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 900; font-size: clamp(56px, 6vw, 88px); line-height: .9; letter-spacing: -.03em; color: var(--kou); font-feature-settings: "tnum"; }
.chap__no::before { content: ""; flex: none; width: .2em; height: .2em; background: var(--yuhi); transform: skewX(-8deg); }
.chap__h { grid-column: 3 / 13; font-size: clamp(30px, 3.4vw, 48px); font-weight: 900; line-height: 1.25; letter-spacing: -.015em; }
.chap__lead { grid-column: 3 / 10; margin-top: 20px; }
.chap__head + .spread { padding-top: 64px; }

/* ===== 実績（content/records.json。件数と合計だけ・出典と取得日つき。2026-10-04） ===== */
.rec { position: relative; max-width: 760px; padding: 18px 24px 20px 28px; background: var(--shiro); text-align: left; }
/* 左の橙の罫（スクロールで上から伸びる決まりは motion.css。ここは終わった状態＝全部） */
.rec::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--yuhi); }
.spread--l .rec { background: var(--kinari); }
.rec__h { font-size: 13px; font-weight: 700; letter-spacing: .16em; line-height: 1.6; color: var(--kou); }
.rec__list { margin-top: 8px; }
.rec__list li { position: relative; padding-left: 1.1em; font-size: 15.5px; line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; }
.rec__list li::before { content: ""; position: absolute; left: 0; top: .74em; width: 7px; height: 7px; background: var(--yuhi); }
.rec__src, .rec__note { margin-top: 10px; font-size: 12.5px; line-height: 1.7; color: var(--nezumi); }
.rec__note { margin-top: 2px; }
.cases__recs .rec { max-width: none; }
.cases__recs .rec + .rec { margin-top: 16px; }

/* ===== 仕組みの図（lib/diagrams.mjs が描くSVG。横と縦の2枚を、置き場の幅で出し分ける） ===== */
.dg { container-type: inline-size; padding-top: 16px; border-top: 1px solid var(--kei); }
.dg__cap { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; font-size: 13.5px; letter-spacing: .08em; line-height: 1.6; color: var(--nezumi); }
.dg__mark { font-weight: 700; color: var(--kou); letter-spacing: .2em; }
.dg__svg { display: block; width: 100%; height: auto; font-family: var(--gothic); }
.dg__svg--h { display: none; max-width: 1080px; }
.dg__svg--v { max-width: 400px; }
.dg__note { margin-top: 18px; font-size: 14px; line-height: 1.8; color: var(--nezumi); }
/* 図の部品（lib/diagrams.mjs のクラス）。文字の大きさは viewBox の単位（横＝幅1000・縦＝幅360） */
.dg-n { fill: #fff; stroke: var(--kou); stroke-width: 1.6; }
.dg-us { fill: var(--kou); }
.dg-a { stroke: var(--umi); stroke-width: 2.2; stroke-dasharray: 5 5; stroke-linecap: round; }
.dg-c { fill: none; stroke: var(--umi); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dg-b { fill: none; stroke: var(--kou); stroke-width: 1.6; }
.dg-d { fill: var(--yuhi); }
.dg text { text-anchor: middle; }
.dg .dg-start { text-anchor: start; }
.dg-l { font-weight: 700; fill: var(--kou); }
.dg-s { fill: #4F5A64; }
.dg-bt { font-weight: 700; fill: var(--kou); }
.dg-l.dg-on { fill: var(--kinari); }
.dg-s.dg-on { fill: #D6E2EC; }
.dg__svg--h .dg-l { font-size: 20px; }
.dg__svg--h .dg-s { font-size: 15px; }
.dg__svg--h .dg-bt { font-size: 16px; }
.dg__svg--v .dg-l { font-size: 18px; }
.dg__svg--v .dg-s { font-size: 14px; }
.dg__svg--v .dg-bt { font-size: 15px; }
@container (min-width: 880px) {
  .dg__svg--h { display: block; }
  .dg__svg--v { display: none; }
}
.prose .dg { margin-top: 36px; }
.prose .dg__note { text-align: left; }

/* ===== 数字で見る当社（年表。点は夕日の橙の丸） ===== */
.figs__h { grid-column: 1 / 7; }
.figs__lead { grid-column: 7 / 13; align-self: end; font-size: 15px; color: var(--nezumi); }
.tl { grid-column: 1 / -1; margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); column-gap: var(--gap); border-top: 2px solid var(--kou); }
.tl__item { position: relative; padding-top: 30px; }
.tl__item::before { content: ""; position: absolute; top: -9px; left: 0; width: 16px; height: 16px; background: var(--yuhi); }
.tl__when { display: flex; align-items: baseline; gap: 8px; line-height: 1.1; }
.tl__when b { font-family: var(--display); font-weight: 900; font-size: 34px; letter-spacing: -.01em; color: var(--kou); font-feature-settings: "tnum"; }
.tl__when > span { font-size: 14px; font-weight: 700; color: var(--kou); }
.tl__fig { display: flex; align-items: baseline; gap: 4px; margin-top: 14px; line-height: 1.2; color: var(--kou); }
.tl__fig b { font-family: var(--display); font-weight: 900; font-size: 60px; letter-spacing: -.02em; font-feature-settings: "tnum"; }
.tl__fig > span { font-size: 18px; font-weight: 700; }  /* 2026-10-05: 子だけ。b の中の桁回りの span に当たると大きな数字が単位の大きさに縮む */
.tl__text { margin-top: 14px; font-size: 15px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.tl__label { margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: var(--nezumi); }
.tl__more { margin-top: 12px; border-top: 1px solid var(--kei); }
.tl__more li { padding: 8px 0 7px; border-bottom: 1px solid var(--kei); line-height: 1.4; }
.tl__more b { display: block; font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: -.01em; color: var(--kou); font-feature-settings: "tnum"; }
.tl__more span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.6; color: var(--nezumi); }
/* 数字の出典と取得日（根拠台帳ルール） */
.tl__src { margin-top: 10px; font-size: 11.5px; line-height: 1.65; color: var(--nezumi); }
.tl__item .md-draft { margin-top: 10px; }
.figs__pending { grid-column: 1 / -1; margin-top: 48px; }

/* ===== 悩みの目次（トップ） ===== */
.toc { background: var(--shiro); }
.toc__mark { grid-column: 1 / 2; grid-row: 1 / 2; writing-mode: vertical-rl; font-size: 13px; letter-spacing: .42em; line-height: 1; padding-top: 6px; color: var(--kou); }
.toc__h { grid-column: 2 / 8; grid-row: 1 / 2; font-size: clamp(40px, 4.6vw, 62px); font-weight: 900; letter-spacing: -.01em; line-height: 1.15; }
.toc__lead { grid-column: 9 / 13; grid-row: 1 / 2; align-self: end; font-size: 15.5px; line-height: 1.95; }
.toc__list { grid-column: 1 / -1; grid-row: 2; margin-top: 72px; }
.toc__cta { grid-column: 2 / 9; grid-row: 3; margin-top: 64px; }

.toc-list { border-top: 3px solid var(--kou); }
.toc-list > li { position: relative; border-bottom: 1px solid var(--kei); }
.toc-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; padding: 30px 0 28px; text-decoration: none; }
.toc-row__no { grid-column: 1 / 2; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--kou); font-feature-settings: "tnum"; }
.toc-row__ttl { grid-column: 2 / 8; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.25vw, 30px); line-height: 1.4; letter-spacing: -.01em; color: var(--kou); word-break: keep-all; overflow-wrap: anywhere; }
.toc-row__sub { grid-column: 8 / 12; font-size: 14.5px; line-height: 1.75; color: var(--nezumi); word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.toc-row__go { grid-column: 12 / 13; justify-self: end; align-self: center; display: flex; color: var(--kou); }
.toc-row:hover .toc-row__ttl { text-decoration: underline; text-decoration-color: var(--yuhi); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.toc-row:hover .toc-row__go::before { transform: translateX(6px); }
.toc-list > li.toc-list__else { border-bottom-color: var(--kou); }
.toc-list__else .toc-row__ttl { font-family: var(--gothic); font-size: 17px; letter-spacing: .04em; }

/* ===== 事例（トップ） ===== */
.cases__h { grid-column: 1 / 5; }
.cases__lead { grid-column: 1 / 5; grid-row: 2; margin-top: 24px; font-size: 15px; color: var(--nezumi); }
.cases__body { grid-column: 6 / 13; grid-row: 1 / 4; }
.cases__body > * + * { margin-top: 28px; }
.cases__sub { font-family: var(--gothic); font-size: 13px; font-weight: 700; letter-spacing: .2em; padding-top: 14px; border-top: 2px solid var(--kou); }
.cases__body > .cases__sub + .tried { margin-top: 0; }
.tried > li { border-bottom: 1px solid var(--kei); }
.tried a { display: grid; grid-template-columns: minmax(0, 1fr) 30px; column-gap: 18px; padding: 22px 0 20px; text-decoration: none; }
.tried__t { grid-column: 1; font-family: var(--display); font-weight: 700; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--kou); word-break: keep-all; overflow-wrap: anywhere; }
.tried__x { grid-column: 1; margin-top: 6px; font-size: 14.5px; line-height: 1.8; color: var(--sumi); }
.tried__go { grid-column: 2; grid-row: 1 / 3; align-self: center; display: flex; color: var(--kou); }
.tried a:hover .tried__t { text-decoration: underline; text-decoration-color: var(--yuhi); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.tried a:hover .tried__go::before { transform: translateX(4px); }
.cases__works .works-list { border-top-color: var(--kou); }

/* ===== 代表あいさつ・お知らせ（トップ） ===== */
.meet { background: var(--shiro); }
.meet__greet { grid-column: 1 / 7; display: grid; grid-template-columns: 168px minmax(0, 1fr); column-gap: 28px; align-items: start; }
.meet__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; background: var(--kei); }
.meet__h { font-size: clamp(26px, 2.5vw, 34px); font-weight: 900; letter-spacing: -.02em; padding-top: 14px; border-top: 2px solid var(--kou); }
.meet__body { margin-top: 22px; }
.meet__body > p:first-child { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.9; }
.meet__body > p:nth-child(2) { margin-top: 18px; font-size: 14px; letter-spacing: .14em; }
.meet__body .links { margin-top: 18px; }
.meet__news { grid-column: 8 / 13; }
.meet__news .news-list { margin-top: 22px; }
.meet__all { margin-top: 22px; }

/* ===== お知らせの一覧 ===== */
.news-list { border-top: 1px solid var(--kou); }
.news-list > li { border-bottom: 1px solid var(--kei); }
.news-list a { display: grid; grid-template-columns: 11em minmax(0, 1fr) 30px; gap: var(--gap); align-items: baseline; padding: 20px 0; text-decoration: none; }
.news-list time { font-size: 13.5px; letter-spacing: .06em; color: var(--nezumi); font-feature-settings: "tnum"; }
.news-list__t { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.news-list__go { display: flex; align-self: center; color: var(--kou); }
.news-list a:hover .news-list__t { color: var(--kou); text-decoration: underline; text-underline-offset: 5px; }
.news-list a:hover .news-list__go::before { transform: translateX(4px); }
.news-list__empty { padding: 22px 0; color: var(--nezumi); }
.meet__news .news-list a { grid-template-columns: minmax(0, 1fr) 30px; row-gap: 0; }
.meet__news .news-list time { grid-column: 1 / -1; }

/* ===== 裏表紙（各ページ末尾の相談・港の青の面）と奥付 ===== */
.back { background: var(--kou); color: var(--on-kou); padding: var(--sec) 0 calc(var(--sec) - 16px); }
.back :focus-visible { outline-color: var(--ki); }
.back__text { grid-column: 1 / 7; align-self: center; }
.back__h { font-size: clamp(38px, 4.8vw, 68px); font-weight: 900; letter-spacing: -.015em; line-height: 1.14; color: var(--on-kou); }
.back__lead { margin-top: 28px; max-width: 32em; word-break: keep-all; overflow-wrap: anywhere; }
.back__act { margin-top: 40px; }
.back__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.back__or { font-size: 14px; color: var(--on-kou-sub); }
.back .notes { color: var(--on-kou-sub); }
.back .notes b { color: var(--on-kou); }
.back__fig { grid-column: 7 / 13; align-self: center; }
.back--slim { padding: 72px 0; }
.back--slim .back__act { grid-column: 1 / -1; margin-top: 0; }
.okuzuke { background: var(--kou-dk); color: var(--on-kou-sub); padding: 56px 0 40px; font-size: 13.5px; line-height: 1.95; }
.okuzuke :focus-visible { outline-color: var(--ki); }
.okuzuke__co { grid-column: 1 / 5; }
.okuzuke__co b { display: block; margin-bottom: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .1em; color: var(--on-kou); }
/* 2026-10-05 メニューと同じ2つの群＋ページのリンクを3列に */
.okuzuke__nav { grid-column: 5 / 13; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px var(--gap); align-content: start; }
.okuzuke__h { margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--kei-on-kou); font-size: 12px; letter-spacing: .14em; }
.okuzuke__pages { padding-top: 35px; }
.okuzuke__who { display: block; margin-top: -2px; font-size: 11px; letter-spacing: .06em; color: var(--on-kou-sub); }  /* SNSとnote：どのアカウントか（2026-10-05）。薄さは色で（opacity は監査が数える） */
.okuzuke__nav a { display: inline-block; padding: 3px 0; text-decoration: none; color: var(--on-kou); }
.okuzuke__nav a:hover, .okuzuke__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.okuzuke__c { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--kei-on-kou); font-size: 12px; letter-spacing: .1em; color: rgba(246, 241, 231, .66); }
.okuzuke__c small { font-size: inherit; }
.okuzuke__issue { letter-spacing: .22em; }

/* スマホの固定ボタン（表紙・扉を過ぎてから出す。site.js） */
.dock { display: none; }

/* ===== 扉（下層ページの書き出し） ===== */
.opener { padding: 56px 0 96px; }
.opener__bar { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 24px; border-top: 3px solid var(--kou); padding-top: 14px; font-size: 13px; letter-spacing: .08em; }
/* 扉の帯の先頭にロゴと同じ傾いた橙の四角（全下層ページ共通のしるし。2026-10-04） */
.opener__bar::before, .nf__bar::before { content: ""; flex: none; align-self: center; width: 12px; height: 12px; background: var(--yuhi); transform: skewX(-8deg); }
.opener__no { font-weight: 700; letter-spacing: .14em; color: var(--kou); font-feature-settings: "tnum"; }
.opener__date { color: var(--nezumi); font-feature-settings: "tnum"; letter-spacing: .06em; }
.crumb { margin-left: auto; color: var(--nezumi); }
.crumb ol { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.crumb li + li::before { content: "／"; margin: 0 .9em; }
.crumb a { text-decoration: none; border-bottom: 1px solid var(--kei); }
.crumb a:hover { color: var(--kou); border-color: var(--kou); }
.opener__h1 { grid-column: 1 / -1; margin-top: 72px; font-size: clamp(44px, 6.4vw, 88px); font-weight: 900; letter-spacing: -.02em; line-height: 1.16; }
/* inline のまま（inline-block にすると「。」だけが次の行に落ちることがある）。演出は色が灯るだけ */
.opener__h1.has-kuten::after { content: ""; display: inline-block; width: .2em; height: .2em; margin-left: .07em; background: var(--yuhi); animation: kuten-in .5s ease-out .35s both; }
@keyframes kuten-in { from { opacity: 0; } to { opacity: 1; } }
.opener__lead { grid-column: 7 / 12; margin-top: 56px; font-size: 17px; line-height: 2; }
.opener__lead > * + * { margin-top: 1em; }
.opener__lead p { text-align: justify; text-justify: inter-character; }
.opener__lead .note { font-size: 13.5px; text-align: left; }
.opener__lead .note small { font-size: inherit; }
/* 挿絵のある扉：見出しの下を「リード｜挿絵」の見開きに */
.opener--fig .opener__fig { grid-column: 6 / 13; grid-row: 3; margin-top: 56px; }
.opener--fig .opener__fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--kei); }
.opener--fig .opener__lead { grid-column: 1 / 6; grid-row: 3; align-self: end; margin-top: 56px; padding-right: 8px; }
.opener--fig .opener__fig:last-child { grid-column: 4 / 13; }
/* 挿絵があってリードの無い扉（会社のこと）：PCでは見出しと挿絵を横に並べる見開き */
@media (min-width: 1024px) {
  .opener--fig.opener--nolead .opener__h1 { grid-column: 1 / 6; grid-row: 2; align-self: end; }
  .opener--fig.opener--nolead .opener__fig { grid-column: 6 / 13; grid-row: 2; margin-top: 72px; }
}
/* お知らせ・事例の記事は見出しが長いので、扉の文字を一段小さく */
.doc--news .opener__h1, .doc--works .opener__h1 { font-size: clamp(30px, 3.5vw, 46px); letter-spacing: -.02em; line-height: 1.35; }
.doc--mypl .opener { background: var(--shiro); }
.doc--mypl .opener__lead .links { margin-top: 1.4em; }

/* ===== 本文（小見出しを左に出す組み方） ===== */
.article__body { padding-bottom: 112px; }
.part { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: 52px 0 88px; border-top: 1px solid var(--kou); }
.part > * { min-width: 0; }
.part > h2 { grid-column: 1 / 4; font-size: clamp(22px, 2.05vw, 27px); font-weight: 900; line-height: 1.5; padding-right: 12px; }
.part__main { grid-column: 4 / 10; }
.part__wide { grid-column: 4 / 13; }
.part--cost .part__main p:first-child { font-weight: 700; }

/* 原稿（Markdown）の組み方 */
.prose > * + * { margin-top: 1.15em; }
.prose p { text-align: justify; text-justify: inter-character; }
.prose h2 { font-size: clamp(22px, 2vw, 26px); font-weight: 900; margin-top: 2.2em; }
.prose h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; line-height: 1.5; }
.prose h3:not(:first-child) { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--kei); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h3 + * { margin-top: 12px; }
.prose ul > li { position: relative; padding-left: 24px; }
.prose ul > li + li { margin-top: .5em; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 8px; height: 8px; background: var(--yuhi); }
.prose ol { counter-reset: n; }
.prose ol > li { position: relative; padding-left: 2.2em; counter-increment: n; }
.prose ol > li + li { margin-top: .6em; }
.prose ol > li::before { content: counter(n) "."; position: absolute; left: 0; font-weight: 700; color: var(--kou); font-feature-settings: "tnum"; }
.prose strong { font-weight: 700; }
.prose a:not(.btn) { color: var(--kou); text-decoration-thickness: 1px; }
.prose a:not(.btn):hover { color: var(--kou-dk); }
.prose .links { margin-top: 18px; }
.prose .note { text-align: left; }
.prose .note small { font-size: inherit; }
.prose blockquote { padding-left: 20px; border-left: 2px solid var(--kou); }
.prose hr { border: 0; border-top: 1px solid var(--kei); }
.prose img { margin: 1.4em 0; }
.md-table { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.8; border-top: 1px solid var(--kou); }
.prose th, .prose td { padding: 14px 16px 13px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--kei); }
.prose thead th { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--nezumi); }
.prose tbody th, .prose td:first-child { font-weight: 700; white-space: nowrap; padding-right: 24px; }
.md-draft { padding: 10px 14px; border: 2px dashed var(--warn-line); background: var(--warn-bg); color: var(--sumi); font-size: 13px; font-weight: 400; line-height: 1.8; text-align: left; }
.md-draft p { text-align: left; }
.map-embed iframe { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border: 0; }

/* 区切りの組み方（build.mjs shapeSection・partials/parts.html。2026-10-04） */
/* voices：こんな状況ではありませんか（お客さんの声）。大きな行と、傾いた橙の四角の印 */
.part--voices .part__main { grid-column: 4 / 13; }
.part--voices .prose > ul > li { --pt: 16px; padding: var(--pt) 0 15px 30px; border-bottom: 1px solid var(--kei); font-family: var(--display); font-weight: 700; font-size: clamp(19px, 1.75vw, 23px); line-height: 1.6; color: var(--kou); word-break: keep-all; overflow-wrap: anywhere; }
.part--voices .prose > ul > li:first-child { --pt: 0px; }
.part--voices .prose > ul > li::before { top: calc(var(--pt) + .8em - 5px); width: 10px; height: 10px; transform: skewX(-8deg); }
.part--voices .prose > ul > li + li { margin-top: 0; }
/* acts：私たちがやること。番号つきの塊を全幅に並べ、図は全幅（PCでは横の図）に出す */
.part__lead { grid-column: 4 / 10; }
.acts { grid-column: 1 / -1; margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 52px; }
.acts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.act, .way { min-width: 0; padding-top: 20px; border-top: 2px solid var(--kou); }
.act__no, .way__no, .steps__no { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 3.8vw, 54px); line-height: 1; letter-spacing: -.02em; color: var(--kou); font-feature-settings: "tnum"; }
.act__no::before, .way__no::before, .steps__no::before { content: ""; flex: none; width: .24em; height: .24em; background: var(--yuhi); transform: skewX(-8deg); }
.act__h { margin-top: 16px; font-size: clamp(20px, 1.8vw, 24px); font-weight: 900; line-height: 1.45; }
.act__body { margin-top: 12px; }
.act__body p { text-align: left; }
.part__dg { grid-column: 1 / -1; margin-top: 72px; }
.part__more { grid-column: 4 / 11; margin-top: 64px; }
.part__more > h3 { padding-top: 14px; border-top: 2px solid var(--kou); font-size: clamp(20px, 1.8vw, 24px); font-weight: 900; }
.part__more > h3 + * { margin-top: 16px; }
/* tried：代表が営む店で試したこと（トップの実績の箱と同じ囲み） */
.part--tried .part__main { padding: 24px 28px 22px; background: var(--shiro); border-left: 4px solid var(--yuhi); }

/* 電話の帯（ホームページの悩みページだけ） */
.tel-band { grid-column: 4 / 13; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: -40px 0 56px; padding: 22px 0 22px 24px; border-left: 3px solid var(--yuhi); }
.tel-band__text { flex: 1 1 100%; font-weight: 700; }
.tel-band__hours { font-size: 14px; color: var(--nezumi); }
.tel-band .btn--tel { color: var(--kou); }
.tel-band .btn--tel:hover { color: var(--kou-dk); }

/* 進め方 */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--kei); }
.part > .steps { grid-column: 1 / -1; margin-top: 48px; }
.steps li { padding: 22px var(--gap) 0 0; }
.steps li + li { padding-left: var(--gap); border-left: 1px solid var(--kei); }
.steps b { display: block; margin-bottom: 8px; font-size: 17px; line-height: 1.6; color: var(--kou); }
.steps__no { margin-bottom: 14px; font-size: clamp(30px, 2.6vw, 38px); }  /* 2026-10-05: 子孫の span 指定（b の下の span 全部）は桁回りの内側の span にも当たって番号が崩れたので、番号に名前を付けた */
.steps p { font-size: 15px; line-height: 1.9; }

/* 事例（CMSに許諾つきの事例があるときだけ） */
.works-list { border-top: 1px solid var(--kou); }
.works-list > li { border-bottom: 1px solid var(--kei); }
.works-list a { display: grid; gap: 4px; padding: 22px 0; text-decoration: none; }
.works-list img { width: 100%; max-width: 480px; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 12px; }
.works-list__client { font-size: 13px; letter-spacing: .08em; color: var(--nezumi); }
.works-list__t { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.5; color: var(--kou); word-break: keep-all; overflow-wrap: anywhere; }
.works-list__summary { font-size: 15px; color: var(--nezumi); }
.works-list a:hover .works-list__t { text-decoration: underline; text-underline-offset: 5px; }

/* 前後の記事 */
.pager { border-top: 3px solid var(--kou); }
.pager__in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--gap); align-items: center; padding-top: 26px; padding-bottom: 30px; }
.pager a { display: flex; align-items: center; gap: 16px; min-width: 0; text-decoration: none; color: var(--kou); }
.pager__label { display: block; min-width: 0; }
.pager__n, .pager__t { display: block; }
.pager a.pager__prev::after { display: none; }
a.pager__prev::before { content: ""; flex: none; width: 30px; height: 12px; background: currentColor; -webkit-mask: var(--arrow) no-repeat center / contain; mask: var(--arrow) no-repeat center / contain; transform: scaleX(-1); }
.pager__next { justify-content: flex-end; text-align: right; }
.pager__n { font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.pager__t { margin-top: 2px; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.pager a:hover .pager__t { text-decoration: underline; text-underline-offset: 5px; }
.pager a.pager__toc { font-size: 13px; letter-spacing: .16em; padding: 8px 18px; border-left: 1px solid var(--kei); border-right: 1px solid var(--kei); white-space: nowrap; }
.pager a.pager__toc::after { display: none; }

/* ===== 目次ページ（お困りごと別） ===== */
.contents { grid-column: 1 / -1; border-top: 3px solid var(--kou); }
.contents__item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: var(--gap); align-items: start; padding: 32px 0; border-bottom: 1px solid var(--kei); }
.contents__item:last-child { border-bottom-color: var(--kou); }
.contents__no { grid-column: 1 / 2; grid-row: 1 / 3; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: clamp(26px, 2.4vw, 34px); font-weight: 900; line-height: 1; letter-spacing: -.01em; color: var(--kou); font-feature-settings: "tnum"; }
.contents__no::before { content: ""; flex: none; width: .26em; height: .26em; background: var(--yuhi); transform: skewX(-8deg); }
/* その悩みページの挿絵（2026-10-04）。同じ挿絵が続く行は切り取る位置をずらす（--thumb-pos は build.mjs が入れる） */
.contents__thumb { grid-column: 2 / 4; grid-row: 1 / 3; position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; background: var(--kei); }
.contents__thumb picture, .contents__thumb img { display: block; width: 100%; height: 100%; }
.contents__thumb img { object-fit: cover; object-position: var(--thumb-pos, 50% 50%); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.contents__item:hover .contents__thumb img { transform: scale(1.05); }
.contents__thumb .img-badge { right: 6px; bottom: 6px; padding: 0 6px; font-size: 10px; }
.contents__h { grid-column: 4 / 13; grid-row: 1; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.45; }
.contents__h a { display: inline; text-decoration: none; }
.contents__h a::after { display: none; }
.contents__h a:hover { text-decoration: underline; text-decoration-color: var(--yuhi); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.contents__body { grid-column: 4 / 12; grid-row: 2; margin-top: 12px; font-size: 15.5px; }
.contents__body > p:first-child { color: var(--nezumi); }
.contents__body > p + p { margin-top: .7em; }
.contents__body a { white-space: nowrap; font-weight: 700; color: var(--kou); }

/* ===== できること・まいぷれ小樽・プライバシーポリシー ===== */
.doc--service .prose h3 + p + p { font-size: 14.5px; color: var(--nezumi); }
.doc--privacy .part__main { grid-column: 4 / 13; }
.doc--privacy .part__main > p, .doc--privacy .part__main > h3 { max-width: 40em; }
.doc--privacy .prose table { font-size: 14px; }
.doc--privacy .prose td:first-child { white-space: normal; width: 34%; }

/* ===== お知らせ・事例の記事 ===== */
.entry { grid-column: 4 / 10; }
.entry__eyecatch img { width: 100%; }
.entry__client { font-size: 13px; letter-spacing: .08em; color: var(--nezumi); }
.entry__back { grid-column: 4 / 10; margin-top: 56px; }
.list-page { padding-bottom: 112px; }
.list-page__list { grid-column: 1 / -1; }
.list-page__tried { margin-top: 48px; }  /* 2026-10-06 事例の一覧の「先に試したこと」 */
.pagination { grid-column: 1 / -1; display: flex; gap: 24px; justify-content: center; align-items: baseline; margin-top: 40px; font-size: 14px; letter-spacing: .08em; }
.pagination a { color: var(--kou); }

/* ===== 会社のこと（発行元のページ） ===== */
.colophon .opener { padding-bottom: 72px; }
.cp-label { font-family: var(--gothic); font-size: 13px; font-weight: 700; letter-spacing: .24em; line-height: 1.6; padding-top: 14px; border-top: 3px solid var(--kou); }
.cp-policy { background: var(--shiro); }
.cp-policy .cp-label { grid-column: 1 / 4; align-self: start; }
.cp-policy__body { grid-column: 4 / 13; }
.cp-policy__body h3.catch { font-size: clamp(40px, 5.6vw, 80px); font-weight: 900; letter-spacing: -.02em; line-height: 1.14; }
.cp-policy__body h3.catch + p { margin-top: 48px; }
.cp-policy__body > p, .cp-policy__body > ul { max-width: 38em; }
/* やり方の3つの柱（原稿の箇条書きから。2026-10-04） */
.ways { grid-column: 4 / 13; margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.way__t { margin-top: 16px; font-family: var(--display); font-weight: 900; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--kou); word-break: keep-all; overflow-wrap: anywhere; }
.way__x { margin-top: 10px; font-size: 15.5px; line-height: 1.9; }
.greet--company .greet__fig { grid-column: 1 / 6; }
.greet--company .greet__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; background: var(--kei); }
.greet--company .greet__text { grid-column: 7 / 13; align-self: start; }
.greet--company .greet__body { margin-top: 30px; }
.greet--company .greet__body > h3 { font-size: clamp(26px, 2.8vw, 38px); font-weight: 900; letter-spacing: -.02em; }
.greet--company .greet__body > * + * { margin-top: 1.15em; }
.greet--company .greet__body > h3 + p { margin-top: 28px; }
.greet--company .greet__body > p:last-child { margin-top: 28px; font-size: 15px; letter-spacing: .1em; text-align: right; }
.cp-facts { background: var(--shiro); }
.cp-facts__outline { grid-column: 1 / 9; }
/* これまでの歩み＝トップの「数字で見る当社」と同じ年表（2026-10-04） */
.cp-facts__history { grid-column: 1 / -1; margin-top: 104px; }
.cp-facts__history .tl { margin-top: 44px; }
.cp-facts .prose { margin-top: 28px; }
.cp-facts .prose table { border-top: 0; }
.cp-facts .prose thead { display: none; }
.cp-more__community { grid-column: 1 / 8; }
.cp-more__group { grid-column: 9 / 13; }
.cp-more .prose { margin-top: 28px; font-size: 15.5px; }
.cp-more .prose ul > li + li { margin-top: 1em; }
.cp-access { background: var(--shiro); }
.cp-access .cp-label { grid-column: 1 / 4; align-self: start; }
.cp-access__body { grid-column: 4 / 13; }
.cp-access__body > p:first-child { font-size: 18px; letter-spacing: .04em; }

/* ===== ご相談（フォーム） ===== */
.form-wrap { padding-bottom: 128px; }
.form-side { grid-column: 1 / 5; align-self: start; font-size: 15.5px; }
.form-side h2 { font-size: 20px; padding-top: 14px; border-top: 1px solid var(--kou); }
.form-side .tel, .form-side a[href^="tel:"] { font-size: 24px; font-weight: 700; text-decoration: none; letter-spacing: .04em; color: var(--kou); }
.form-main { grid-column: 6 / 13; }
.form-h { font-size: clamp(26px, 2.6vw, 34px); font-weight: 900; padding-top: 14px; border-top: 3px solid var(--kou); }
.contact-form { margin-top: 32px; }
.cf-group { margin: 0 0 32px; padding: 0; border: 0; min-width: 0; }
.cf-group legend { padding: 0; margin-bottom: 14px; font-weight: 700; }
.choices { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--kei); }
.choices--inline { grid-template-columns: repeat(auto-fit, minmax(9em, 1fr)); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 12px 12px 0; border-bottom: 1px solid var(--kei); cursor: pointer; line-height: 1.6; }
.choice input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--kou); }
.choice:hover span { color: var(--kou); }
.field { margin: 0 0 24px; }
.field label { display: block; margin-bottom: 8px; font-weight: 700; }
.field input, .field textarea { display: block; width: 100%; padding: 13px 14px; font: inherit; font-size: 17px; line-height: 1.6; color: var(--sumi); background: #fff; border: 1px solid #7d7769; border-radius: 0; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--kou); outline-offset: 0; border-color: var(--kou); }
.field textarea { min-height: 9em; resize: vertical; }
.req, .opt { margin-left: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.req { color: var(--kou); }
.opt { color: var(--nezumi); font-weight: 400; }
.field-help { margin-top: -8px; font-size: 14px; color: var(--nezumi); }
.field-error { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--error); }
.urgent-note { margin: -8px 0 32px; padding: 14px 0 14px 18px; border-left: 3px solid var(--yuhi); font-weight: 700; }
.contact-form__agree { margin-top: 8px; font-size: 14px; }
.contact-form__submit { margin-top: 24px; }
.contact-form__submit .btn { min-width: 18em; }
.contact-form__promise { margin-top: 14px; font-size: 14px; color: var(--nezumi); }
.form-status:empty { display: none; }
.cf-turnstile { margin: 8px 0 4px; min-height: 65px; }
.form-fallback { margin: 24px 0 32px; padding: 18px 0 18px 20px; border-left: 3px solid var(--error); }
.form-fallback__title { color: var(--error); font-size: 18px; }
.form-fallback > * + * { margin-top: .8em; }
.form-fallback ul > li + li { margin-top: .4em; }
.form-success { padding: 0 0 128px; }
.form-success__in { grid-column: 1 / 10; padding-top: 24px; border-top: 3px solid var(--kou); }
.form-success__title { font-size: clamp(32px, 4vw, 52px); font-weight: 900; }

/* ===== 404 ===== */
.nf { padding: 96px 0 128px; }
.nf__bar { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; padding-top: 14px; border-top: 3px solid var(--kou); font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--kou); }
.nf__h { grid-column: 1 / 11; margin-top: 64px; font-size: clamp(36px, 5vw, 68px); font-weight: 900; letter-spacing: -.015em; line-height: 1.2; }
.nf__lead { grid-column: 1 / 8; margin-top: 36px; }
.nf__links { grid-column: 1 / 8; margin-top: 40px; border-top: 1px solid var(--kou); }
.nf__links li { padding: 16px 0; border-bottom: 1px solid var(--kei); font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--kou); }
.nf__links a { color: var(--kou); text-underline-offset: 5px; }

/* 背景の四角（飾り・2026-10-04 第3弾。動かすのは motion.css）の置き場：区画の上下の余白の帯。区画を position: relative＋isolation にして、四角を文の下（z-index: -1）に敷く。
   流れの上の大きさは何も変えない。motion.css が来る前は四角は大きさ 0（何も見えない） */
.rinen, .work__head, .figs, .toc, .cases, .meet, .opener { position: relative; isolation: isolate; }
.back { position: relative; isolation: isolate; overflow: hidden; }
.back::before { content: ""; position: absolute; inset: -12% -8%; pointer-events: none; background-image: linear-gradient(rgba(246, 241, 231, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 241, 231, .075) 1px, transparent 1px); background-size: 56px 56px; transform: skewX(-8deg); }
.back > .wrap { position: relative; }
.sq { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sq i { position: absolute; display: block; }
.meet__fig, .news-list > li, .works-list > li, .part { position: relative; }

.build-banner { position: relative; z-index: 30; height: 34px; overflow: hidden; background: #b3261e; color: #fff; text-align: center; padding: 0 16px; font-size: 13px; line-height: 34px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }

/* 柱の添え書きは、メニューと並べる幅が足りない画面では出さない */
@media (max-width: 1180px) {
  .mast__sub { display: none; }
}

/* ===== タブレット ===== */
@media (max-width: 1023px) {
  :root { --m: 32px; --sec: 104px; }
  .gnav ul { gap: 18px; font-size: 13px; }
  .mast__sub { display: none; }
  .okuzuke__co, .okuzuke__nav { grid-column: 1 / -1; }
  .okuzuke__nav { margin-top: 28px; }
  .cover { --rise: 96px; }
  .cover__foot { flex-direction: column; align-items: flex-start; }
  .rinen__text { grid-column: 1 / -1; }
  .rinen__fig { grid-column: 2 / 12; margin-top: 56px; }
  .work__h, .work__lead { grid-column: 1 / -1; }
  .work__lead { margin-top: 24px; max-width: 38em; }
  .work__index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spread--l .spread__fig, .spread--r .spread__fig { grid-column: 1 / -1; grid-row: 2; }
  .spread--l .spread__text, .spread--r .spread__text { grid-column: 1 / 11; grid-row: 3; margin-top: 40px; }
  .spread__subs { grid-row: 4; margin-top: 56px; }
  .spread__dg { grid-row: 5; margin-top: 48px; }
  .spread__rec { grid-row: 6; }
  .spread__pending { grid-row: 7; }
  .spread--plain .spread__text { grid-column: 1 / 11; grid-row: 2; margin-top: 0; }
  .svc-index .g { row-gap: 36px; }
  .svc-index__col { grid-column: span 6; }
  .chap__head { padding-top: 88px; }
  .chap__no { grid-column: 1 / 4; }
  .chap__h { grid-column: 4 / 13; }
  .chap__lead { grid-column: 4 / 13; }
  .acts { margin-top: 36px; }
  .acts--3 { grid-template-columns: minmax(0, 1fr); }
  .acts--3 .act__body { max-width: 38em; }
  .part__more { grid-column: 1 / 11; }
  .ways { grid-column: 1 / -1; }
  .figs__h, .figs__lead { grid-column: 1 / -1; }
  .figs__lead { margin-top: 16px; }
  .tl { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; border-top: 0; }
  .tl__item { border-top: 2px solid var(--kou); }
  .toc__h { grid-column: 2 / 13; }
  .toc__lead { grid-column: 2 / 13; grid-row: auto; margin-top: 24px; max-width: 38em; }
  .toc__list { grid-row: auto; }
  .toc__cta { grid-row: auto; grid-column: 2 / 13; }
  .toc-row__ttl { grid-column: 2 / 9; }
  .toc-row__sub { grid-column: 9 / 12; }
  .cases__h, .cases__lead, .cases__body { grid-column: 1 / -1; grid-row: auto; }
  .cases__body { margin-top: 40px; }
  .meet__greet, .meet__news { grid-column: 1 / -1; }
  .meet__news { margin-top: 72px; }
  .back__text { grid-column: 1 / 8; }
  .back__fig { grid-column: 8 / 13; }
  .opener__lead { grid-column: 4 / 13; }
  .opener--fig .opener__fig, .opener--fig .opener__fig:last-child { grid-column: 1 / -1; grid-row: 3; }
  .opener--fig .opener__lead { grid-column: 1 / 11; grid-row: 4; margin-top: 40px; }
  .part > h2 { grid-column: 1 / -1; margin-bottom: 22px; }
  .part__main, .part__wide, .part--voices .part__main, .doc--privacy .part__main { grid-column: 1 / 11; }
  .part__wide { grid-column: 1 / -1; }
  .tel-band { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .part > .steps { margin-top: 12px; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps li { padding-bottom: 24px; }
  .entry, .entry__back { grid-column: 1 / 11; }
  .contents__thumb { grid-column: 2 / 5; }
  .contents__h, .contents__body { grid-column: 5 / -1; }
  .cp-policy .cp-label, .cp-access .cp-label { grid-column: 1 / -1; margin-bottom: 28px; }
  .cp-policy__body, .cp-access__body { grid-column: 1 / -1; }
  .greet--company .greet__fig { grid-column: 1 / 6; }
  .greet--company .greet__text { grid-column: 6 / 13; }
  .cp-facts__outline, .cp-more__community { grid-column: 1 / -1; }
  .cp-facts__history, .cp-more__group { grid-column: 1 / -1; margin-top: 64px; }
  .form-side { grid-column: 1 / -1; margin-bottom: 56px; }
  .form-main { grid-column: 1 / -1; }
}

/* ナビはタブレット以下でメニューにたたむ */
@media (max-width: 900px) {
  .gnav { display: none; }
  .mast__in { align-items: center; gap: 18px; }
  .mast__cta { margin: 0 0 0 auto; }
  .menu { display: block; flex: none; }
}

/* ===== スマホ ===== */
@media (max-width: 639px) {
  :root { --m: 16px; --gap: 12px; --sec: 72px; }
  body { font-size: 16px; line-height: 1.9; }
  .mast__in { padding-top: 6px; padding-bottom: 6px; gap: 14px; }
  .mast__name { font-size: 21px; }
  .mast__logo { height: 34px; }
  .okuzuke__logo { height: 72px; }
  .mast__name small { font-size: 9.5px; margin-bottom: 4px; }
  .mast__cta { font-size: 13px; }
  .menu__btn { padding-left: 4px; }
  .menu__panel { padding-top: 16px; }

  .cover { --rise: 44px; padding-bottom: 56px; }
  .cover__art { height: auto; aspect-ratio: 4 / 3; }
  .cover__plate { width: auto; max-width: none; margin: 0 calc(var(--m) * -1); padding: 22px var(--m) 0; border-top-width: 3px; }
  .cover__foot { margin-top: 16px; }
  .cover__act { display: block; width: 100%; }
  .cover__lead { margin-top: 16px; font-size: 16.5px; }
  .cover__sub { font-size: 14px; line-height: 1.8; }
  .cover__act { margin-top: 4px; }
  .cover__free { display: block; margin-top: 10px; font-size: 13.5px; }
  .btn { display: flex; width: 100%; padding: 18px 22px; }

  .rinen__text { margin-top: 36px; }
  .rinen__lead { margin-top: 22px; }
  .rinen__fig { grid-column: 1 / -1; margin-top: 40px; }
  .rinen__fig img, .back__fig img { border-width: 6px; }
  .rinen__fig { padding: 6px; }
  .rinen__fig .img-badge, .back__fig .img-badge { right: 14px; bottom: 14px; }

  .h2 { font-size: 30px; }
  .work__head { padding-bottom: 56px; }
  .work__lead { font-size: 15.5px; }
  .work__index { grid-template-columns: 1fr; margin-top: 36px; }
  .work__index a { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; padding: 12px 0 11px; }
  .work__index-name { font-size: 16px; }
  .spread { padding: 56px 0 64px; }
  .spread__bar { margin-bottom: 24px; font-size: 12.5px; letter-spacing: .06em; }
  .spread--l .spread__text, .spread--r .spread__text { grid-column: 1 / -1; margin-top: 28px; }
  .spread__h { font-size: 26px; }
  .spread__p { font-size: 16px; text-align: left; }
  .spread__dg { margin-top: 40px; }
  .spread__subs { grid-template-columns: minmax(0, 1fr); margin-top: 44px; row-gap: 36px; }
  .spread--plain .spread__text { grid-column: 1 / -1; }
  .svc .opener { padding-bottom: 48px; }
  .svc-index { padding-bottom: 64px; }
  .svc-index__col { grid-column: 1 / -1; }
  .chap__head { padding-top: 64px; }
  .chap__head .g::before { height: 3px; margin-bottom: 20px; }
  .chap__no { gap: 8px; font-size: 44px; }
  .chap__h { font-size: 25px; }
  .chap__lead { grid-column: 1 / -1; }
  .chap__head + .spread { padding-top: 40px; }
  .dg__svg--v { max-width: none; }

  .figs__lead { font-size: 14px; }
  /* 2026-10-05 湊さん「横スクロールだと下の空白が目立つ。縦の方が良い」：スマホの年表は縦の1列。左に港の青の罫（縦の年表の軸）、
     橙の四角は罫の上に乗る。項目の高さがまちまちでも空白は出ない（横の帯は 2026-10-04 に一日だけ使って外した） */
  .tl { display: block; margin-top: 36px; padding: 2px 0 0 22px; border-top: 0; border-left: 2px solid var(--kou); }
  .tl__item { padding: 0; border-top: 0; }
  .tl__item + .tl__item { margin-top: 34px; }
  .tl__item::before { top: 6px; left: -29px; width: 12px; height: 12px; }
  .tl__when b { font-size: 28px; }
  .tl__fig { margin-top: 10px; }
  .tl__fig b { font-size: 48px; }
  .tl__text { margin-top: 8px; }

  .toc { padding-top: 64px; }
  .toc__mark { display: none; }
  .toc__h { grid-column: 1 / -1; font-size: 32px; }
  .toc__lead { grid-column: 1 / -1; grid-row: 3; margin-top: 32px; font-size: 15px; }
  .toc__list { grid-row: 2; margin-top: 26px; }
  .toc__cta { grid-column: 1 / -1; grid-row: 4; margin-top: 28px; }
  .toc-row { grid-template-columns: 30px minmax(0, 1fr) 30px; column-gap: 8px; padding: 20px 0 19px; }
  .toc-row__no { grid-column: 1 / 2; font-size: 12px; letter-spacing: .06em; }
  .toc-row__ttl { grid-column: 2 / 3; font-size: 19px; line-height: 1.5; }
  .toc-row__sub { grid-column: 2 / 3; font-size: 13px; line-height: 1.7; margin-top: 4px; }
  .toc-row__go { grid-column: 3 / 4; grid-row: 1 / 3; }
  .toc-list__else .toc-row__ttl { font-size: 16px; }
  .back__btns { display: block; }
  .back__btns > * + * { margin-top: 14px; }
  .back__or { display: block; }

  .cases__body { margin-top: 28px; }
  .tried a { padding: 18px 0 16px; column-gap: 10px; }
  .tried__t { font-size: 18px; }
  .tried__x { font-size: 14px; }

  .meet__greet { grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; }
  .meet__text { display: contents; }
  .meet__fig { grid-row: 1; }
  .meet__h { grid-column: 2; grid-row: 1; align-self: start; font-size: 24px; }
  .meet__body { grid-column: 1 / -1; grid-row: 2; }
  .meet__body > p:first-child { font-size: 16.5px; }
  .meet__news { margin-top: 56px; }
  .news-list a { grid-template-columns: minmax(0, 1fr) 30px; row-gap: 2px; padding: 16px 0; }
  .news-list time { grid-column: 1 / -1; }

  .back { padding: 72px 0 64px; }
  .back__h { font-size: 34px; }
  .back__text, .back__fig { grid-column: 1 / -1; }
  .back__fig { margin-top: 40px; }
  .back__act { margin-top: 32px; }
  .back--slim { padding: 48px 0; }
  .okuzuke__co, .okuzuke__nav { grid-column: 1 / -1; }
  .okuzuke__nav { margin-top: 28px; grid-template-columns: 1fr; }
  .okuzuke__nav a { padding: 9px 0; }
  .okuzuke__pages { padding-top: 0; }
  .okuzuke__c { flex-direction: column; }

  .opener { padding: 32px 0 64px; }
  .opener__bar { font-size: 12px; gap: 14px; }
  .crumb ol { justify-content: flex-start; }
  .opener__h1 { margin-top: 36px; font-size: min(11.6vw, 52px); line-height: 1.2; }
  .opener__lead { grid-column: 1 / -1; margin-top: 28px; font-size: 15.5px; }
  .opener--fig .opener__fig { margin-top: 32px; }
  .opener--fig .opener__lead { grid-column: 1 / -1; margin-top: 28px; padding-right: 0; }
  .article__body { padding-bottom: 72px; }
  .part { padding: 34px 0 60px; }
  .part > h2 { font-size: 22px; margin-bottom: 18px; }
  .part__main, .part__wide, .part--voices .part__main, .doc--privacy .part__main { grid-column: 1 / -1; }
  .part--voices .prose > ul > li { --pt: 13px; padding-bottom: 12px; padding-left: 24px; font-size: 18px; }
  .part--voices .prose > ul > li:first-child { --pt: 0px; }
  .acts, .acts--3 { grid-template-columns: minmax(0, 1fr); row-gap: 36px; margin-top: 28px; }
  .act__no, .way__no { font-size: 36px; }
  .part__dg { margin-top: 48px; }
  .part__more { grid-column: 1 / -1; margin-top: 48px; }
  .part--tried .part__main { padding: 18px 18px 16px; }
  .ways { grid-template-columns: minmax(0, 1fr); margin-top: 44px; row-gap: 32px; }
  .cp-facts__history { margin-top: 64px; }
  .prose h3:not(:first-child) { margin-top: 30px; padding-top: 28px; }
  .prose td:first-child { white-space: normal; }
  .tel-band { margin: -24px 0 40px; padding-left: 16px; }
  .steps { grid-template-columns: 1fr; }
  .part > .steps { margin-top: 0; }
  .steps li, .steps li + li, .steps li:nth-child(3) { padding: 18px 0 20px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--kei); }
  .steps__no { margin: 0 0 10px; font-size: 28px; }
  .pager__in { grid-template-columns: 1fr; gap: 0; padding-top: 0; padding-bottom: 0; }
  .pager a { padding: 18px 0; border-bottom: 1px solid var(--kei); }
  .pager span.pager__prev, .pager span.pager__next { display: none; }
  .pager a.pager__toc { order: 3; border: 0; padding: 18px 0; }
  .pager__next { justify-content: space-between; text-align: left; }
  .pager__t { font-size: 17px; }
  .contents__item { grid-template-columns: 34px minmax(0, 1fr) 84px; grid-template-rows: auto auto; column-gap: 10px; padding: 24px 0 26px; }
  .contents__no { grid-column: 1; grid-row: 1; gap: 6px; padding-top: .2em; font-size: 20px; }
  .contents__h { grid-column: 2 / 3; grid-row: 1; font-size: 20px; }
  .contents__thumb { grid-column: 3; grid-row: 1; }
  .contents__body { grid-column: 2 / 4; grid-row: 2; margin-top: 12px; }
  .contents__thumb .img-badge { right: 4px; bottom: 4px; padding: 0 4px; font-size: 9px; letter-spacing: .04em; }
  .entry, .entry__back { grid-column: 1 / -1; }
  .list-page { padding-bottom: 72px; }
  .cp-policy__body h3.catch { font-size: min(13vw, 52px); }
  .greet--company .greet__fig { grid-column: 1 / -1; }
  .greet--company .greet__fig img { aspect-ratio: 1 / 1; object-position: 50% 22%; }
  .greet--company .greet__text { grid-column: 1 / -1; margin-top: 28px; }
  .cp-facts .prose table, .cp-facts .prose tbody, .cp-facts .prose tr, .cp-facts .prose td { display: block; }
  .cp-facts .prose tr { padding: 12px 0 11px; border-bottom: 1px solid var(--kei); }
  .cp-facts .prose td { padding: 0; border: 0; }
  .cp-facts .prose td:first-child { font-size: 13px; letter-spacing: .08em; color: var(--nezumi); }
  .form-wrap { padding-bottom: 72px; }
  .choices { grid-template-columns: 1fr; }
  .contact-form__submit .btn { min-width: 0; }
  .form-success { padding-bottom: 72px; }
  .form-success__in { grid-column: 1 / -1; }
  .nf { padding: 40px 0 72px; }
  .nf__h, .nf__lead, .nf__links { grid-column: 1 / -1; }
  .nf__h { margin-top: 36px; }

  .dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: stretch; background: var(--kou); color: var(--on-kou); border-top: 3px solid rgba(246, 241, 231, .28); padding-bottom: env(safe-area-inset-bottom); transform: translateY(110%); visibility: hidden; transition: transform .25s, visibility 0s linear .25s; }
  .dock.is-on { transform: none; visibility: visible; transition: transform .25s, visibility 0s; }
  .dock :focus-visible { outline-color: var(--ki); }
  .dock a { display: flex; align-items: center; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .08em; padding: 15px 20px; }
  .dock__main { flex: 1 1 auto; justify-content: space-between; gap: 12px; }
  .dock__main::after { content: ""; width: 30px; height: 12px; background: currentColor; -webkit-mask: var(--arrow) no-repeat center / contain; mask: var(--arrow) no-repeat center / contain; }
  .dock__tel { flex: none; border-left: 1px solid var(--kei-on-kou); }
}

@media (max-width: 420px) {
  .build-banner { font-size: 10px; letter-spacing: 0; padding: 0 8px; }
}

@media (max-width: 380px) {
  .mast__name { font-size: 19px; }
  .mast__logo { height: 30px; }
  .mast__in { gap: 10px; }
}

/* 動き（現れる・スクロール連動・タップ）の決まりは assets/css/motion.css（2026-10-04 分割：site.js が最初の描画の後に読む）。
   ここに残すのは、字を割った後の組み（.rv-w / .rv-sr）と、最初の画面に要るもの（ページの切り替え・読み込み演出・マウスの反応・なめらかなスクロール・柱の is-scrolled） */
/* 見出しは字ごとに現れる（.rv--chars）。字は .ch（inline-block＝transform が効く）、語は .rv-w（nowrap＝折り返しは元の <wbr> の所だけ）。
   読み上げは見出しの aria-label（元の文）、字の span は aria-hidden（site.js） */
.rv-w { white-space: nowrap; }
.rv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; user-select: none; }

/* ページの切り替え（ブラウザ標準の View Transitions・外部ライブラリなし）：前のページが消え、港の青の面から次のページが上へ拭き取られて現れる。
   合計 0.43秒。対応しないブラウザでは普通に切り替わるだけ。動きを減らす設定では使わない（Motion オフは site.js が skipTransition） */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition { background: var(--kou); }
::view-transition-old(root) { animation: vt-out .18s ease-in both; }
::view-transition-new(root) { animation: vt-in .3s cubic-bezier(.7, 0, .3, 1) .13s both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
/* 柱と画面下のメニューは切り替えの間も動かない（同じ名前＝同じ場所） */
.mast { view-transition-name: mast; }
.pillnav { view-transition-name: pillnav; }

/* 読み込み演出（トップ・同じセッションで初回だけ・0.8秒）：港の青の面に橙の四角が押され、面が上へ拭き取られて表紙が現れる。
   html.is-splash は <head> のインライン script が付け、site.js が終わりに外す。外し損ねても面は拭き取られたまま止まり（fill: both）、押せる */
.splash { display: none; }
html.is-splash .splash { display: block; position: fixed; inset: 0; z-index: 90; pointer-events: none; background: var(--kou); animation: splash-out .34s cubic-bezier(.7, 0, .3, 1) .46s both; }
html.is-splash .splash__sq { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; background: var(--yuhi); transform: skewX(-8deg); animation: splash-sq .8s cubic-bezier(.2, .9, .25, 1.2) both; }
@keyframes splash-sq { 0% { opacity: 0; scale: 3.2; } 32% { opacity: 1; scale: 1; } 56% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 9; } }
@keyframes splash-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
html.is-splash .cover__title .kuten { animation-delay: 1s; }
@media (prefers-reduced-motion: reduce) { .splash { display: none !important; } }

/* マウスの反応（PCだけ）：事業の目次は乗せると同じ挿絵が右から寄ってくる、悩みの目次の挿絵は寄って大きくなる、
   ボタンは矢印が進み少し吸い付く（--mx/--my は site.js・14px まで）、文字のリンクは下線が右へ抜けて左から引き直される */
.work__index-pic { display: none; }  /* 乗せる手段（マウス）と幅のある画面でだけ存在する。スマホでは出ないので画像も読まれない */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .work__index a { position: relative; overflow: hidden; }
  .work__index-name, .work__index-area { position: relative; z-index: 1; }
  .work__index-pic { display: block; position: absolute; top: 0; bottom: 0; left: 46%; right: 0; z-index: 0; visibility: hidden; opacity: 0; transform: translateX(10%) scale(1.06); transition: opacity .4s ease, transform .6s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .4s; -webkit-mask: linear-gradient(90deg, transparent, #000 48%); mask: linear-gradient(90deg, transparent, #000 48%); pointer-events: none; }
  .work__index-pic picture, .work__index-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .work__index-pic .img-badge { right: 4px; bottom: 4px; padding: 0 5px; font-size: 9px; letter-spacing: .04em; }
  .work__index a:hover .work__index-pic, .work__index a:focus-visible .work__index-pic { visibility: visible; opacity: 1; transform: none; transition: opacity .4s ease, transform .6s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
}
@media (hover: hover) and (pointer: fine) {
  .contents__item:hover .contents__thumb img { transform: scale(1.12) translateX(3%); }
  .links a, .more { border-bottom: 0; padding-bottom: 5px; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; }
  .links a:hover, .more:hover { animation: uwipe .6s cubic-bezier(.65, 0, .35, 1); }
  .mast__cta { border-bottom: 0; padding-bottom: 5px; background: linear-gradient(var(--yuhi), var(--yuhi)) no-repeat 0 100% / 100% 3px; }
  .mast__cta:hover { animation: uwipe .6s cubic-bezier(.65, 0, .35, 1); }
  /* 本文のリンク：下線はそのまま（見た目は同じ）、乗せると右へ抜けて左から引き直される */
  .prose a:not(.btn) { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .prose a:not(.btn):hover { animation: uwipe .6s cubic-bezier(.65, 0, .35, 1); }
  /* 奥付のメニュー・目次ページの見出し：下線が左から引かれる */
  .okuzuke__nav a, .contents__h a { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .4s cubic-bezier(.65, 0, .35, 1); }
  .contents__h a { background-image: linear-gradient(var(--yuhi), var(--yuhi)); background-size: 0 2px; }
  .okuzuke__nav a:hover, .okuzuke__nav a[aria-current="page"] { text-decoration: none; background-size: 100% 1px; }
  .contents__h a:hover { text-decoration: none; background-size: 100% 2px; }
}
@keyframes uwipe { 0% { background-size: 100% var(--ul, 1px); background-position: 100% 100%; } 46% { background-size: 0 var(--ul, 1px); background-position: 100% 100%; } 50% { background-size: 0 var(--ul, 1px); background-position: 0 100%; } 100% { background-size: 100% var(--ul, 1px); background-position: 0 100%; } }
.mast__cta { --ul: 3px; }

/* なめらかなスクロール（Lenis・PCのマウスだけ・site.js が import()）。Lenis が html に付ける印に合わせる公式の最小CSS */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* 部門の見出しに番号（トップだけ・CSSカウンタ。文言は変えない）：「■ 01 私たちの考え方」。四角は8°傾いた橙（SVG） */
/* 2026-10-04 18:10: 小見出しの番号（CSSカウンタ）は外した。トップの .dept は「私たちの考え方」1つだけで「01」が浮いて見えたため（橙の印は残す） */

/* 動きを減らす設定：全部止める（最初の画面の表紙の句点・名乗りの着地も含むので site.css に置く。motion.css の末尾にも同じ決まりがある）。2026-10-05: 本人が Motion を押した html.is-motion-override は除く */
@media (prefers-reduced-motion: reduce) { html:not(.is-motion-override), html:not(.is-motion-override) *, html:not(.is-motion-override) *::before, html:not(.is-motion-override) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* 印刷：まだ画面に入っていない要素も全部出す（--p は 1、浮かぶ前の塊も見える） */
@media print {
  [data-scrub] { --p: 1 !important; }
  .rv { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

@media print {
  .mast, .dock, .back, .menu { display: none !important; }
  .cover__art { display: none; }
  .cover__in { margin-top: 0; }
  .rinen { background: none; color: var(--sumi); }
}
