@charset "utf-8";
/* ==========================================================================
   ESSENTIAL WORKS - corporate site
   VI: EWグレー #5B5657 / EWイエロー #FFF100

   構成（上から下へ固定。分割したくなったらこの境界で切り出せる）
     1. BASE      … トークン・リセット・レイアウト基盤・基本タイポ・汎用パーツ
     2. COMMON    … 全ページ共通の構造物（ヘッダー／ページヘッダー／CONTACT／フッター）
     3. TOP       … トップページ専用
     4. CONTENTS  … 下層ページ固有
     5. GLOBAL    … 全体に後から被せる指定（印刷・動きを減らす設定）

   メディアクエリは各ブロックの末尾に置く。末尾へまとめて集めないこと。
   ========================================================================== */


/* ==========================================================================
   1. BASE
   ========================================================================== */

/* --- tokens --------------------------------------------------------------- */
:root {
  --ink: #5b5657;
  --ink-deep: #3e3a3b;
  --yellow: #fff100;
  --yellow-soft: #fff899;
  --paper: #fbfbf8;
  --paper-deep: #efefe9;   /* ページヘッダー背景グラデーションの左上 */
  --white: #fff;
  --gray-1: #dcdddd;
  --gray-2: #9fa0a0;
  --line: #e2e1de;
  --muted: #8b8787;

  --max: 1180px;
  --pad: clamp(20px, 5vw, 72px);
  --header-h: 96px;

  --nav-gap: clamp(16px, 2.3vw, 34px);
  --kicker-gap: 30px;      /* 「黄色い太線＋英字」と直下の見出しの間隔。全ページ共通 */

  --t-fast: .2s;
  --t-base: .25s;
  --t-slow: .7s;
  --t-book: .62s;
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  /* 横スクロールは起こさない設計。clip は保険であって、これに頼った実装はしない */
  overflow-x: clip;
  color: var(--ink-deep);
  background: var(--paper);
  font-family: "Century Gothic", "Avenir Next", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
               "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .035em;
  /* 日本語を文節で折り返す（「目指／す」のような単語の途中での改行を防ぐ）。Chrome・Edge で有効。
     折り返せない長い語は枠を越えないよう、どこでも折り返せるようにしておく */
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
/* height:auto を必ず添える。width/height 属性を書いた画像を max-width で縮めたとき、
   これが無いと高さだけ属性値のまま残って縦に伸びる。 */
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 500; }

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

.skip-link {
  position: fixed; left: 14px; top: -100px; z-index: 1000;
  padding: 10px 16px; background: var(--yellow); color: var(--ink-deep); font-weight: 700;
}
.skip-link:focus { top: 14px; }

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

/* --- レイアウト基盤 ---------------------------------------------------------
   帯は必ずトップレベルの <section>。自分で背景色と左右パディングを持ち、
   中身は .wrap で内寄せする。負のマージンも 100vw も使わない。
   ------------------------------------------------------------------------- */
.section { padding: clamp(74px, 10vw, 144px) var(--pad); }
.section--tight { padding-block: clamp(52px, 7vw, 92px); }
.wrap { width: min(100%, var(--max)); margin-inline: auto; }

.bg-paper { background: var(--paper); }
.bg-white { background: var(--white); }

/* --- 基本タイポ ------------------------------------------------------------ */
.kicker {
  margin: 0 0 var(--kicker-gap);
  color: var(--muted);
  font-size: 12px; font-weight: 700; letter-spacing: .22em; line-height: 1.6;
}
.kicker::before {
  content: ""; display: inline-block;
  width: 22px; height: 6px; margin-right: 12px;
  background: var(--yellow); vertical-align: .08em;
}

.headline {
  margin: 0;
  font-size: clamp(26px, 4vw, 48px); line-height: 1.42; letter-spacing: .02em;
  /* 対応ブラウザでは文節で折り返す（非対応は無視される）。
     カタカナの長い複合語など分割点の無い語が溢れないよう anywhere を併用する。 */
  word-break: auto-phrase; overflow-wrap: anywhere;
}
.lede { font-size: 16px; }

.section-head {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 6vw, 90px);
  align-items: end; margin-bottom: clamp(44px, 6vw, 70px);
}
.section-head > p { margin: 0; font-size: 16px; }

/* --- ボタン・リンク --------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-width: 240px; max-width: 100%; padding: 17px 22px;
  border: 1px solid var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button--primary { background: var(--ink); color: var(--white); }
.button--primary:hover, .button--primary:focus-visible { color: var(--yellow); }
.button--line { background: var(--yellow); border-color: var(--yellow); color: var(--ink-deep); }
.button--line:hover, .button--line:focus-visible { background: var(--white); border-color: var(--white); }
.button--ghost { border-color: currentColor; }

.text-link {
  display: inline-block; padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 12px; font-weight: 700;
}

/* --- 汎用パーツ（TOP・下層の両方で使う） -------------------------------------- */
/* 2カラムの帯。TOP・ABOUT・RECRUIT で使用 */
.case-band { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(30px, 5vw, 76px); align-items: center; }
/* 帯の中の見出しはカラムが狭いので、セクション見出しより一段小さく組む */
.case-band .headline, .recruit-band .headline { font-size: clamp(21px, 2.6vw, 34px); }

/* カード内の見出し・本文・箇条書き */
.card-kicker { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.card-title { margin: 0; font-size: 20px; line-height: 1.45; }
.card-lead { margin: 14px 0; font-size: 15px; font-weight: 700; }
.card-list { list-style: none; padding: 0; margin: 16px 0 24px; font-size: 14px; }
.card-list li { position: relative; padding-left: 14px; }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: 5px; height: 5px; background: var(--ink);
}
/* 中黒（・）の縦並びリスト。COMPANY の事業内容、PARTNER の実績・資格で使用。
   ・を列の左端（同じ表の他の行の文字の頭）にそろえる */
.stack { margin: 0; padding: 0; list-style: none; }
.stack li { position: relative; padding-left: 1em; }
.stack li::before { content: "\30FB"; position: absolute; left: 0; }
.status-tag {
  display: inline-block; align-self: flex-start; margin-top: auto;
  padding: 5px 9px; background: #eee; font-size: 12px; letter-spacing: .08em;
}

/* お知らせ一覧。TOP と NEWS で共用 */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { border-bottom: 1px solid var(--line); }
/* .item は詳細ページを持たないお知らせ（newsRows() のリンク無し分岐）用。
   現在の記事は全件リンク付きだが、分岐が残っているので消さないこと。 */
.news-list a, .news-list .item {
  display: grid; grid-template-columns: 120px 110px 1fr; gap: 24px; align-items: baseline;
  padding: 22px 0;
}
.news-list time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.news-list .title { font-size: 16px; }
.news-list a:hover .title { text-decoration: underline; text-underline-offset: 4px; }
.news-list .tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
  display: inline-block; padding: 4px 10px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 12px; letter-spacing: .1em; color: var(--ink); white-space: nowrap;
}
a.tag:hover, .tag--on { background: var(--yellow); border-color: var(--yellow); }

/* --- base: responsive ------------------------------------------------------ */
@media (max-width: 1000px) {
  .section-head, .case-band { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }
}

@media (max-width: 620px) {
  .news-list a, .news-list .item { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
}


/* ==========================================================================
   2. COMMON  … 全ページ共通の構造物
   ========================================================================== */

/* --- ヘッダー -------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base);
}
/* スクロール後の背景（すりガラス）。backdrop-filter をヘッダー本体に付けると、中のメニュー
   （position:fixed）の基準枠がヘッダーになり、スマホでメニューが一部しか見えなくなる。
   そのため背景用の疑似要素に付ける */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: transparent; transition: background var(--t-base);
}
.site-header.is-scrolled { border-color: var(--line); }
.site-header.is-scrolled::before {
  background: rgba(251, 251, 248, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
/* ヘッダーの内容box幅を .section > .wrap と完全に一致させる。
   （min(100%, --max) にパディングを内側で足すと、--max 付近の幅で
     本文カラムより狭くなり、ロゴとナビが本文とそろわなくなる） */
.header-inner {
  width: 100%; max-width: calc(var(--max) + 2 * var(--pad));
  height: var(--header-h); margin-inline: auto;
  padding-inline: var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: 108px; height: auto; }

.global-nav {
  display: flex; align-items: center; gap: var(--nav-gap);
  font-size: 12px; letter-spacing: .14em; font-weight: 700;
}
.global-nav a { position: relative; white-space: nowrap; }
.global-nav a:not(.nav-line)::after {
  content: ""; position: absolute; left: 0; bottom: -7px;
  width: 0; height: 2px; background: var(--yellow); transition: width var(--t-fast);
}
.global-nav a:hover::after,
.global-nav a:focus-visible::after,
.global-nav a[aria-current="page"]::after { width: 100%; }
.nav-line { padding: 12px 18px; background: var(--ink); color: var(--white); }
.nav-line:hover, .nav-line:focus-visible { color: var(--yellow); }

.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: none; }
.menu-button > span:not(.sr-only) {
  display: block; width: 100%; height: 1px; margin: 6px 0; background: var(--ink);
  transition: transform var(--t-fast), opacity var(--t-fast);
}

/* --- ページヘッダー（下層ページ共通） ----------------------------------------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 74px) var(--pad) clamp(46px, 6vw, 76px);
  background: linear-gradient(135deg, var(--paper-deep) 0%, #f8f8f4 45%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}
/* 斜めの黄色いライン。角度は -20deg */
.page-hero::after {
  content: ""; position: absolute; z-index: 1;
  left: 40%; bottom: 0; width: 120%; height: 2px;
  background: var(--yellow); transform-origin: left bottom; transform: rotate(-20deg);
  opacity: .9;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero-bg > * { position: absolute; }
.page-hero .hero-orbit--a { width: min(46vw, 560px); right: -30px; top: -28%; }
.page-hero .hero-orbit--b { width: min(28vw, 330px); right: 180px; top: 14%; }
.page-hero .hero-dot { right: calc(292.7px + 3.5 * var(--nav-gap)); top: 34%; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { margin: 0; font-size: clamp(28px, 4.6vw, 54px); line-height: 1.35; word-break: auto-phrase; overflow-wrap: anywhere; }
/* リード文だけを対象にする。`.page-hero p` のままだと .kicker にも当たり、
   kicker の margin-bottom が 0 になって見出しとの間隔が潰れる。 */
.page-hero .wrap > p:not(.kicker) { margin: 18px 0 0; font-size: 16px; }

/* --- 背景装飾（ページヘッダーとTOPで共用） ------------------------------------ */
/* 方眼 */
.hero-grid {
  inset: 0 0 0 46%; opacity: .55;
  background-image:
    linear-gradient(to right, rgba(91, 86, 87, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(91, 86, 87, .06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%);
          mask-image: linear-gradient(90deg, transparent, #000 38%);
}
/* 円・斜線・黄色い●の基準枠。ヘッダーのナビと同じ中央カラムに合わせてあるので、
   ウィンドウ幅が変わってもナビの項目と装飾の位置関係がずれない。 */
.hero-deco {
  inset: 0;
  width: min(calc(100% - 2 * var(--pad)), var(--max));
  margin-inline: auto;
}
.hero-deco > * { position: absolute; }
.hero-orbit { border: 1px solid rgba(91, 86, 87, .13); border-radius: 50%; }
.hero-orbit--a { width: min(50vw, 680px); aspect-ratio: 1; right: -40px;  top: 3vh; }
.hero-orbit--b { width: min(32vw, 430px); aspect-ratio: 1; right: 175px; top: 24vh; }
/* 黄色い●は、ナビの CASE と PARTNER の間と縦ラインがそろう位置に置く。
   中央カラムの右端からの距離 ＝ 右側4項目（PARTNER・RECRUIT・COMPANY・LINEで相談）の各幅（合計300.2px）＋ ナビの余白3.5個分。
   ※ 各幅はメニューの文字サイズ（12px）で実測した値。文字サイズを変えたら測り直すこと（2026-09-28 測定）。
   ※ Webフォントを使っていないので、端末のフォントによって数px前後する。
   余白は --nav-gap を共有しているので、ウィンドウ幅でナビが詰まっても●が一緒に動く。
   さらに ● 自身の半径 7.5px を引いて右端基準にする。 */
.hero-dot {
  right: calc(292.7px + 3.5 * var(--nav-gap)); top: 33%;
  width: 15px; aspect-ratio: 1; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 10px rgba(255, 241, 0, .18);
}

/* --- パンくず -------------------------------------------------------------- */
.breadcrumb { margin: 0 0 18px; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* --- CONTACT帯（フッター直前） -----------------------------------------------
   横全画面・中央寄せ・見出しは2行。背景とテキストの基準が同じ要素なので
   ウィンドウ幅が変わっても中心がずれない。
   ------------------------------------------------------------------------- */
.contact {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(36px, 4.5vw, 58px) var(--pad);
  background: var(--paper); color: var(--ink-deep);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.contact::before {
  content: ""; position: absolute; left: 50%; top: -260px;
  width: 520px; height: 520px; border: 1px solid rgba(91, 86, 87, .07);
  border-radius: 50%; transform: translateX(-50%);
}
.contact .wrap { position: relative; z-index: 1; }
.contact .kicker { display: inline-block; }
.contact h2 {
  margin: 0 auto; max-width: 22em;
  font-size: clamp(21px, 3.2vw, 38px); font-weight: 500; line-height: 1.5;
}
.contact h2 .line { display: block; }
.contact > .wrap > p:not(.kicker) { margin: 16px auto 0; max-width: 46em; font-size: 16px; }
.contact .button { margin-top: 20px; min-width: 300px; justify-content: center; gap: 12px; }
.contact .button--line { border-color: var(--ink); }
.contact .button--line:hover, .contact .button--line:focus-visible {
  background: var(--ink); border-color: var(--ink); color: var(--white);
}
.contact small { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }

/* --- フッター -------------------------------------------------------------- */
.site-footer {
  padding: 62px var(--pad) 30px;
  background: var(--ink); color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, .13);
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer-brand img { width: 150px; }
.footer-meta { margin: 18px 0 0; font-size: 12px; color: rgba(255, 255, 255, .62); line-height: 1.9; }
.footer-meta a { border-bottom: 1px solid rgba(255, 255, 255, .3); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 50px; font-size: 12px; letter-spacing: .14em; }
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom {
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  color: rgba(255, 255, 255, .52); font-size: 12px; letter-spacing: .15em;
}
.footer-bottom p { margin: 0; }
.footer-legal a { border-bottom: 1px solid rgba(255, 255, 255, .3); }
.footer-legal a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }

.floating-line {
  position: fixed; z-index: 90; right: 18px; bottom: 18px;
  display: none; align-items: center; justify-content: space-between; gap: 10px;
  width: 150px; padding: 14px 16px;
  background: var(--yellow); color: var(--ink-deep); border: 1px solid var(--ink-deep);
  box-shadow: 0 10px 30px rgba(62, 58, 59, .18);
  font-size: 12px; font-weight: 700;
}

/* --- 表示アニメーション ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) ease, transform var(--t-slow) ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* --- common: responsive ---------------------------------------------------- */
@media (max-width: 900px) {
  .menu-button { display: block; position: relative; z-index: 2; }
  .menu-button[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .global-nav {
    position: fixed; inset: 0;
    padding: calc(var(--header-h) + 38px) var(--pad) 50px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    background: var(--paper); font-size: 17px; font-weight: 500;
    transform: translateX(100%); transition: transform calc(var(--t-base) * 1.2) ease;
    overflow-y: auto;
  }
  .global-nav.is-open { transform: translateX(0); }
  .nav-line { margin-top: 12px; width: 100%; padding: 15px 18px; text-align: center; font-size: 12px; }
  body.is-menu-open { overflow: hidden; }

  .brand img { width: 88px; }

  /* SP では方眼を全面に広げ、円と●は画面内に収まる位置へ寄せる */
  .hero-grid { inset: 0; -webkit-mask-image: none; mask-image: none; opacity: .4; }
  .hero-orbit--a { right: -26vw; top: 2vh; width: 78vw; }
  .hero-orbit--b { right: -6vw; top: 24vh; width: 52vw; }
  .hero-dot { right: 4%; top: 21%; }
}

@media (max-width: 620px) {
  .contact .button { min-width: 0; width: 100%; }
  .footer-top { flex-direction: column; gap: 36px; }
  .footer-nav { width: 100%; }
  .floating-line { display: flex; }
  /* 追従するLINEボタンがフッターの内容に重ならないよう余白を足す */
  .site-footer { padding-bottom: 88px; }
}


/* ==========================================================================
   3. TOP  … トップページ専用
   ========================================================================== */

/* --- ファーストビュー -------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  /* 元画像が 2:1。高さを抑えるほど左右の切り取りが減るので 760px で頭打ちにする */
  min-height: min(100svh, 760px);
  display: grid; align-items: center;
  padding: calc(var(--header-h) + 54px) var(--pad) 110px;
  background: var(--paper);
}

/* 背景は写真（人物が右に来るよう画像を左右反転して保存している）。
   背景の人物が見えることを優先し、白の被せは最小限にしている。 */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: var(--paper-deep);
}
.hero-bg > * { position: absolute; }

.hero-photo { inset: 0; background: center center / cover no-repeat; filter: saturate(.88); }
/* 文字側（左）は写真自体が明るい領域なので、薄い被せで可読性が足りる */
.hero-scrim {
  inset: 0;
  background: linear-gradient(96deg,
    rgba(255,255,255,.62) 0%,  rgba(255,255,255,.50) 26%,
    rgba(255,255,255,.30) 44%, rgba(255,255,255,.08) 60%,
    rgba(255,255,255,0) 74%);
}
/* 上端だけを白く起こす。ヘッダーは最上部では透明なので、
   写真の上だとメニューが読みづらくなるため。 */
.hero-topfade {
  left: 0; right: 0; top: 0;
  height: calc(var(--header-h) + 64px);
  background: linear-gradient(180deg,
    rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 38%,
    rgba(255,255,255,.55) 68%, rgba(255,255,255,0) 100%);
}
/* 下端を白へ落として次セクションへ繋ぐ */
.hero-fade {
  left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(180deg, rgba(251,251,248,0), var(--paper));
}

/* 右肩上がりの黄色ライン（ブランドブック P2 と同じ向き） */
.hero-inner { position: relative; z-index: 2; width: min(100%, var(--max)); margin-inline: auto; }
/* 写真の上に乗るので、白のにじみで文字の輪郭を締める */
.hero h1, .hero-copy {
  text-shadow: 0 0 3px rgba(255,255,255,.85), 0 0 16px rgba(255,255,255,.75);
}
.hero-actions .text-link { text-shadow: 0 0 8px rgba(255,255,255,.9); }
.hero h1 {
  width: min(790px, 100%); margin: 0;
  font-size: clamp(34px, 5vw, 70px); font-weight: 500; line-height: 1.18; letter-spacing: .015em;
  word-break: auto-phrase; overflow-wrap: anywhere;
}
.hero h1 > span { display: block; }
.accent-line { position: relative; display: inline-block; }
.accent-line::after {
  content: ""; position: absolute; z-index: -1;
  left: 52%; bottom: .16em;
  width: clamp(100px, 18vw, 260px); height: clamp(7px, 1vw, 14px);
  background: var(--yellow);
}
.hero-copy { max-width: 620px; margin: 32px 0 0; font-size: clamp(14px, 1.3vw, 17px); }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; z-index: 1; right: var(--pad); bottom: 28px; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .2em; writing-mode: vertical-rl;
}
.scroll-hint span { display: block; width: 1px; height: 42px; background: var(--ink); }

/* --- 見出しの横のコピーを、見出しの上端にそろえる（TOP の BUSINESS 欄） ----------
   左の列は「英字ラベル＋見出し」。英字ラベルの高さ（12px × 行高1.6）とその下の余白の分だけ下げる */
.section-head--top { align-items: start; }
.section-head--top > :last-child { margin-top: calc(12px * 1.6 + var(--kicker-gap)); }

/* --- 事業カード（写真＋テキストの1枚） ---------------------------------------- */
.feature-card {
  display: grid; grid-template-columns: 1.02fr .98fr;
  background: var(--paper); border: 1px solid var(--line);
}
.feature-visual { position: relative; overflow: hidden; }
.feature-photo { width: 100%; height: 100%; object-fit: cover; }
.feature-content { padding: clamp(26px, 3vw, 42px); }

/* --- 支援領域を3つ横並び ----------------------------------------------------- */
.service-row {
  list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.service-row li {
  position: relative; padding: 26px 22px 24px;
  background: var(--white); border: 1px solid var(--line);
  font-size: 16px; line-height: 1.75;
}
.service-row li::before {
  content: ""; position: absolute; left: 22px; top: 0;
  width: 26px; height: 3px; background: var(--yellow);
}
/* 3つの箱の上の小見出し。箱は小見出しのすぐ下に続ける */
.service-row-title { margin: clamp(28px, 4vw, 44px) 0 0; font-size: 16px; font-weight: 500; line-height: 1.6; }
.service-row-title + .service-row { margin-top: 14px; }

/* --- top: responsive ------------------------------------------------------- */
@media (max-width: 1000px) {
  .feature-card { grid-template-columns: 1fr; grid-template-rows: 260px auto; }
  /* 1列になるので、見出しの下にそのまま続ける */
  .section-head--top > :last-child { margin-top: 0; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding-block: calc(var(--header-h) + 46px) 150px; align-items: start; }
  /* SP は切り取りが強いので、人物が入る位置まで表示位置を右へ寄せる。
     被せは上（文字側）だけにして、下半分は写真をそのまま見せる。 */
  .hero-photo { background-position: 72% center; }
  .hero-scrim {
    background: linear-gradient(176deg,
      rgba(255,255,255,.88) 0%,  rgba(255,255,255,.72) 34%,
      rgba(255,255,255,.34) 60%, rgba(255,255,255,.06) 82%,
      rgba(255,255,255,0) 100%);
  }
  .scroll-hint { display: none; }
}

@media (max-width: 620px) {
  .hero h1 { font-size: clamp(32px, 11.5vw, 56px); }
  .accent-line::after { left: 38%; width: 44vw; }
  .hero-copy br { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .hero-actions .button { min-width: 0; width: 100%; }
  .hero-actions .text-link { align-self: flex-start; }
  .service-row { grid-template-columns: 1fr; }
}


/* ==========================================================================
   4. CONTENTS  … 下層ページ固有
   ========================================================================== */

/* --- 本文冒頭の横長ビジュアル（CASE） ---------------------------------------- */
.photo-band { margin: 0; line-height: 0; background: var(--paper-deep); }
.photo-band img {
  width: 100%; height: auto;
  aspect-ratio: 128 / 37; object-fit: cover; object-position: center 42%;
  filter: saturate(.86);
}

/* --- BUSINESS：ユニット詳細 ------------------------------------------------- */
.unit-detail { display: grid; grid-template-columns: .38fr .62fr; gap: clamp(22px, 3vw, 40px); align-items: start; }
.unit-detail + .unit-detail { margin-top: clamp(56px, 7vw, 92px); }
.unit-detail__media img { width: 100%; }
/* 事業アイコンは、置いている枠（左の列／上の段）の左右中央に置く */
.unit-detail__media .unit-icon-lg { display: block; width: min(100%, 175px); margin-inline: auto; }
.unit-actions { display: flex; justify-content: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
/* 優先度の下がる2ユニットを横並びに */
.unit-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); margin-top: clamp(56px, 7vw, 92px); }
.unit-pair .unit-detail { grid-template-columns: 1fr; gap: 18px; margin-top: 0; }
.unit-pair .unit-detail__media .unit-icon-lg { width: 130px; }

/* --- 代表メッセージ --------------------------------------------------------- */
.founder { display: grid; grid-template-columns: .66fr 1.34fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
/* 写真とテキストを左右入替（テキスト左・写真右） */
.founder--flip { grid-template-columns: 1.34fr .66fr; }
/* 写真・署名・リンクをひとまとめにした右カラム。
   署名とリンクは本文の下ではなく写真の下に置く。 */
.founder-side { max-width: 280px; }
.founder--flip .founder-side { margin-left: auto; }
.founder-side .founder-photo { max-width: none; }
.founder-side .signature { margin-top: 12px; }
.founder-actions { margin: 8px 0 0; }

.founder-photo {
  position: relative; max-width: 280px; margin: 0;   /* figure の標準の余白を消す */
  padding: 22px 0 0 22px; border-left: 1px solid var(--yellow); border-top: 1px solid var(--yellow);
}
.founder--flip .founder-photo {
  padding: 22px 22px 0 0;
  border-left: 0; border-right: 1px solid var(--yellow);
}
.founder-photo img { width: 100%; aspect-ratio: .72; object-fit: cover; object-position: center top; }
.founder-photo figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; letter-spacing: .18em; }
.founder--flip .founder-photo figcaption { text-align: left; }
.founder p:not(.kicker) { font-size: 16px; }
/* 代表メッセージの本文は左右均等割り付け（写真側の署名・リンクは対象外）。最終行は左寄せのまま */
.founder > div:first-child > p:not(.kicker) { text-align: justify; text-justify: inter-character; }
.signature { margin-top: 30px; font-size: 13px; line-height: 1.6; white-space: nowrap; }
.signature strong { margin-left: 10px; font-size: 18px; font-weight: 500; }

/* --- 会社概要 -------------------------------------------------------------- */
.spec { margin: 0; }
.spec > div {
  display: grid; grid-template-columns: 200px 1fr; gap: 30px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.spec dt { color: var(--ink); font-size: 13px; font-weight: 700; }
.spec dd { margin: 0; font-size: 16px; }
.spec dd a { border-bottom: 1px solid var(--ink); }
/* 社名の英語表記・代表番号の注意書き。項目の下に小さく添える */
.spec dd .en, .spec dd .note { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.spec .nowrap { white-space: nowrap; }

/* --- 理念（VALUE・仕事の本質） ------------------------------------------------ */
.value-list { list-style: none; margin: 0; padding: 0; counter-reset: v; }
.value-list li {
  position: relative; padding: 16px 0 16px 56px; border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 1.6vw, 18px);
}
.value-list li::before {
  counter-increment: v; content: counter(v);
  position: absolute; left: 0; top: 12px;
  color: var(--gray-2); font-size: 26px; font-weight: 300; line-height: 1;
}

/* TAGLINE の3つの円（ブランドブックP4） */
/* 丸は直径 220px まで。文字が主役になるよう、ブランドブックと同じ比率で小さめに並べる */
.tagline-trio {
  list-style: none; margin: clamp(26px, 3.4vw, 40px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 20px;
}
.tagline-trio li {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-align: center;
  aspect-ratio: 1; padding: 16px; border-radius: 50%;
  background: var(--paper-deep); line-height: 1.5;
}
.tagline-trio b { font-size: 16px; font-weight: 500; }
/* 上の語と白い箱を、縦向きの「＝」でつなぐ */
.tagline-trio i { display: block; font-style: normal; font-size: 16px; line-height: 1; transform: rotate(90deg); color: var(--muted); }
.tagline-trio span { padding: 8px 14px; background: var(--white); font-size: 14px; }

/* 私たちの仕事の本質（ブランドブックP5の流れ図） */
.essence-flow { list-style: none; margin: clamp(26px, 3.4vw, 40px) 0 0; padding: 0; display: grid; gap: 14px; }
.essence-flow > li {
  position: relative; padding: 16px 20px; text-align: center;
  background: var(--white); border: 1px solid var(--line); font-size: 16px;
}
/* 段と段のあいだに下向きの矢印を置く */
.essence-flow > li + li::before {
  content: ""; position: absolute; left: 50%; top: -14px;
  width: 1px; height: 14px; background: var(--gray-1);
}
.essence-flow > li b {
  display: inline-block; margin-right: 12px; padding: 3px 12px;
  background: var(--ink); color: var(--white); font-size: 12px; font-weight: 400; letter-spacing: .1em;
}
.essence-flow > li:nth-child(2) {
  padding: 0; background: none; border: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.essence-flow > li:nth-child(2) span {
  padding: 16px 12px; background: var(--white); border: 1px solid var(--line); font-size: 14px;
}
.essence-flow > li:last-child { background: var(--paper-deep); }

/* --- あゆみ ---------------------------------------------------------------- */
.history { list-style: none; margin: 0; padding: 0; }
.history li {
  display: grid; grid-template-columns: 110px 1fr; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.history dt, .history b { font-weight: 700; font-size: 16px; letter-spacing: .06em; }
.history p { margin: 0; font-size: 16px; }

/* --- NEWS（絞り込み・記事ページ） --------------------------------------------- */
.tag-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 clamp(26px, 3vw, 38px); padding: 0; list-style: none; }
.tag-filter button { cursor: pointer; font: inherit; font-size: 12px; letter-spacing: .1em; }

.article { max-width: 760px; }
.article__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.article__meta time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.article__body { margin-top: clamp(26px, 3vw, 40px); font-size: 16px; }
.article__body h2 { margin: 2em 0 .6em; font-size: 20px; }
.article__body p { margin: 0 0 1.4em; }
.article__body ul { margin: 0 0 1.4em; padding-left: 1.3em; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; }

/* --- RECRUIT --------------------------------------------------------------- */
.recruit-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 80px); align-items: center;
  padding-block: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.recruit-band p:not(.kicker) { margin: 0; font-size: 16px; }

/* --- CASE ------------------------------------------------------------------ */
.svc-lead { font-size: 16px; }
.svc-quote {
  margin: clamp(28px, 4vw, 44px) 0 0; padding: clamp(24px, 3vw, 36px);
  background: var(--white); border: 1px solid var(--line);
  font-size: 16px; line-height: 2;
}
.svc-types { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-types > li { padding: 26px 24px; background: var(--white); border: 1px solid var(--line); }
.svc-types h3 { margin: 0 0 4px; font-size: 17px; }
.svc-types .svc-sub { margin: 6px 0 0; color: var(--gray-2); font-size: 15px; }
.svc-types .svc-body { margin: 10px 0 0; font-size: 14px; }
.svc-types .svc-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.svc-types ul { list-style: none; margin: 14px 0 0; padding: 0; font-size: 14px; }
.svc-types ul li { position: relative; padding-left: 14px; }
.svc-types ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 5px; height: 5px; background: var(--yellow); }

/* 契約までの流れ */
.flow { list-style: none; margin: clamp(26px, 3.4vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: f; }
.flow--5 { grid-template-columns: repeat(5, 1fr); }
.flow li { position: relative; padding: 22px 18px; background: var(--white); border: 1px solid var(--line); font-size: 14px; line-height: 1.7; }
.flow li::before {
  counter-increment: f; content: counter(f);
  display: block; margin-bottom: 8px;
  color: var(--gray-2); font-size: 22px; font-weight: 300; line-height: 1;
}

/* カミングスーン枠（CASE実績・PARTNER） */
.coming {
  display: grid; place-items: center; text-align: center;
  min-height: 190px; padding: 30px 22px;
  background: var(--white); border: 1px dashed var(--gray-1); color: var(--muted);
}
.coming b { display: block; margin-bottom: 6px; color: var(--gray-2); font-size: 13px; letter-spacing: .18em; }
.coming span { font-size: 14px; }

/* --- PARTNER --------------------------------------------------------------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.profile { display: grid; grid-template-columns: .40fr .60fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.profile__photo img { width: 100%; aspect-ratio: .82; object-fit: cover; }
.profile dl { margin: 22px 0 0; }
.profile dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.profile dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.profile dd { margin: 0; }

/* --- 温度っち --------------------------------------------------------------- */
/* 本家のキービジュアル。製品側の配色をそのまま見せたいので背景は白で抜く */
.od-kv { margin: 0; padding: clamp(26px, 4vw, 52px) var(--pad) 0; background: var(--white); }
/* 画像はサイト共通で display:block なので、text-align ではなく margin で中央に置く */
.od-kv img { width: min(100%, 720px); height: auto; margin-inline: auto; }

/* 料金表（本家 ondotchi.com の価格表の再現）。色は本家の画像から採った値。
   PC：左に項目名の列＋3プランを横並び。各プランは subgrid で行の高さを項目名の列とそろえる
   スマホ（900px以下）：項目名の列を消し、プランごとのカードを縦に並べる */
.od-plan--light { --plan: #acdb16; --plan-soft: #cae193; }
.od-plan--basic { --plan: #2ab1fa; --plan-soft: #9ed8fc; }
.od-plan--pro   { --plan: #ff861a; --plan-soft: #ffc08a; }
.od-plans {
  display: grid; grid-template-columns: minmax(120px, .7fr) repeat(3, 1fr);
  grid-template-rows: repeat(6, auto); column-gap: 12px;
  margin-top: clamp(26px, 3.4vw, 40px);
}
.od-plans__labels, .od-plan { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; }
.od-plans__labels > span {
  display: grid; place-content: center; padding: 10px 8px;
  background: #eeeeef; border-top: 2px solid var(--white);
  font-size: 14px; font-weight: 500; line-height: 1.5; text-align: center;
}
.od-plans__labels > span:first-child { background: none; border: 0; }
.od-plans__labels small { display: block; font-size: 12px; font-weight: 400; }
.od-plan p { margin: 0; }
.od-plan__for { align-self: end; padding: 0 4px 10px; font-size: 13px; line-height: 1.6; text-align: center; }
.od-plan__name {
  margin: 0; padding: 12px; background: var(--plan); color: var(--white);
  font-size: 20px; font-weight: 700; letter-spacing: .3em; text-align: center;
}
.od-plan__pay {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--plan); color: var(--white);
  border-top: 2px solid var(--white); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-align: center;
}
.od-plan__pay span { padding: 6px 4px; }
.od-plan__pay span + span { border-left: 2px solid var(--white); }
/* 白い本体の部分。左右と下をプラン色の枠で囲み、行の間は淡い点線で区切る */
.od-plan__row {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: 16px 10px; background: var(--white);
  border: solid var(--plan); border-width: 0 5px;
}
.od-plan__row + .od-plan__row { background-image: linear-gradient(to right, var(--plan-soft) 50%, transparent 0); background-size: 8px 2px; background-repeat: repeat-x; background-position: 10px 0; background-clip: padding-box; }
.od-plan__row--count { grid-template-columns: 1fr; border-bottom-width: 5px; }
/* 項目名は PC では左の列に出すので、読み上げ用にだけ残す */
.od-plan__label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.od-plan__price, .od-plan__count { text-align: center; line-height: 1.3; }
.od-plan__price + .od-plan__price { align-self: stretch; display: grid; place-content: center; border-left: 2px solid var(--plan); }
.od-plan__price b { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; }
.od-plan__count b { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; }
.od-plan__price small, .od-plan__count small { display: block; margin-top: 2px; font-size: 12px; }

.od-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 20px; }
.od-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.od-hero__media { display: grid; place-items: center; padding: 30px; background: var(--white); border: 1px solid var(--line); }
.od-hero__media img { width: min(100%, 230px); }
.od-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.od-features li { padding: 24px 18px; background: var(--white); border: 1px solid var(--line); }
.od-features img { width: 116px; margin: 0 auto 14px; }
.od-features h3 { margin: 0 0 8px; font-size: 16px; text-align: center; }
.od-features p { margin: 0; font-size: 14px; line-height: 1.8; }

.notes { margin: 18px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.9; color: var(--muted); }
.notes li { padding-left: 1.2em; text-indent: -1.2em; }

/* 導入例：左に初期費用、右に（払い方で月額が変わる）ランニングコスト。右は2つを並べるので広めに取る */
.cost-example { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(20px, 3vw, 36px); }
/* 初期費用の枠はランニングコストの枠と下をそろえ、余った高さは内訳の行間に配る */
.cost-box--initial { display: flex; flex-direction: column; }
.cost-box--initial table { flex: 1; }
.cost-when { margin: 0; font-size: 14px; }
.cost-when strong { background: linear-gradient(transparent 60%, var(--yellow) 0); }
.cost-pay-lead { margin: 8px 0 0; font-size: 14px; line-height: 1.8; }
.cost-total { margin: 6px 0 14px; font-size: 16px; line-height: 1.3; }
.cost-total b { font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; font-variant-numeric: tabular-nums; }
.cost-total span { margin-right: 6px; font-size: 14px; }
.cost-total small { font-size: 13px; }
/* 年一括払／月々払を横に並べる。年一括払は濃い枠で目立たせる */
.cost-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.cost-pay__item { padding: 16px 16px 12px; border: 1px solid var(--line); }
.cost-pay__item--year { border: 2px solid var(--ink); }
.cost-pay__item h4 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .1em; }
.cost-pay__item .cost-total { margin-bottom: 6px; }
.cost-year-total { margin: 0 0 10px; font-size: 13px; line-height: 1.7; }
.cost-year-total strong { font-size: 16px; background: linear-gradient(transparent 60%, var(--yellow) 0); }
.cost-diff { margin: 14px 0 0; font-size: 14px; }
.cost-diff strong { font-size: 16px; background: linear-gradient(transparent 60%, var(--yellow) 0); }
.cost-box { padding: 24px 22px; background: var(--white); border: 1px solid var(--line); }
.cost-box h3 { margin: 0 0 14px; font-size: 14px; letter-spacing: .1em; }
.cost-box table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cost-box td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.cost-box td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.cost-box tr:last-child td { border-bottom: 0; }
/* 太字は合計の行だけ（ランニングコストの内訳の最終行は太くしない） */
.cost-box .cost-sum td { font-weight: 700; }

/* --- ブランドブック（見開きビューア） ----------------------------------------- */
.book {
  --page: 460px;
  display: grid; justify-items: center; gap: 22px;
}
.book-stage {
  position: relative; width: 100%; max-width: calc(var(--page) * 2);
  aspect-ratio: 2 / 1; perspective: 2200px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(62, 58, 59, .12);
}
.book-stage.is-single { max-width: var(--page); aspect-ratio: 1 / 1; }
.book-sheet {
  position: absolute; top: 0; width: 50%; height: 100%;
  transform-style: preserve-3d; transition: transform var(--t-book) cubic-bezier(.3, .1, .2, 1);
}
.book-stage.is-single .book-sheet { width: 100%; }
.book-sheet--left  { left: 0;  transform-origin: right center; }
.book-sheet--right { left: 50%; transform-origin: left center; }
.book-stage.is-single .book-sheet--left { display: none; }
.book-stage.is-single .book-sheet--right { left: 0; }
.book-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  background: var(--white) center / contain no-repeat;
}
/* 以下3つは flipbook.js が動的に付与する。HTMLには現れないので消さないこと。 */
.book-face--back { transform: rotateY(180deg); }
.book-sheet.is-turning-fwd { transform: rotateY(-180deg); }
.book-sheet.is-turning-back { transform: rotateY(180deg); }
.book-gutter {
  position: absolute; left: 50%; top: 0; width: 26px; height: 100%;
  transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, rgba(62, 58, 59, 0), rgba(62, 58, 59, .11), rgba(62, 58, 59, 0));
}
.book-stage.is-single .book-gutter { display: none; }

.book-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.book-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.book-btn:hover:not(:disabled) { background: var(--yellow); border-color: var(--yellow); }
.book-btn:disabled { opacity: .35; cursor: default; }
.book-counter { font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .1em; min-width: 7em; text-align: center; }
.book-thumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.book-thumbs button {
  width: 52px; aspect-ratio: 1; padding: 0; cursor: pointer;
  border: 1px solid var(--line); background: var(--white) center / cover no-repeat;
}
.book-thumbs button[aria-current="true"] { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.book-noscript { display: grid; gap: 16px; justify-items: center; }

/* --- プライバシーポリシー ---------------------------------------------------- */
/* 幅は他のページと同じ（.wrap の幅いっぱい） */
.legal { font-size: 16px; }
.legal h2 { margin: 2.4em 0 .7em; font-size: 18px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { margin: 0 0 1.2em; }
.legal ul, .legal ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.legal li { margin-bottom: .4em; }
.legal .updated { margin-top: 2.6em; color: var(--muted); font-size: 13px; }

/* --- 404ページのサイトマップ（MODX の Wayfinder が <ul> を出力する） -----------
   404ページは MODX にしか無い（静的HTMLには無い）ので、_work/check.js の
   未使用CSS判定では「意図して残すもの」に入れてある。 */
.sitemap { margin-top: clamp(26px, 3.4vw, 40px); }
.sitemap ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px;
  border-top: 1px solid var(--line);
}
.sitemap li { border-bottom: 1px solid var(--line); }
.sitemap a { position: relative; display: block; padding: 16px 0 16px 18px; font-size: 16px; }
.sitemap a::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; background: var(--yellow);
}
.sitemap a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* --- contents: responsive -------------------------------------------------- */
@media (max-width: 1000px) {
  .unit-detail, .unit-pair, .od-hero, .profile, .cost-example,
  .svc-types, .founder, .founder--flip, .spec > div, .recruit-band { grid-template-columns: 1fr; }
  .spec > div { gap: 4px; padding-block: 14px; }
  .od-features, .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .book { --page: 340px; }
  .founder--flip .founder-side { margin-left: 0; }
}

@media (max-width: 900px) {
  /* 料金表：プランごとのカードを縦に並べる（本家のスマホ表示と同じ並び） */
  .od-plans { grid-template-columns: minmax(0, 480px); grid-template-rows: none; justify-content: center; row-gap: 32px; }
  .od-plans__labels { display: none; }
  .od-plan { grid-row: auto; display: block; }
  .od-plan__for { padding-bottom: 8px; }
  .od-plan__row { grid-template-columns: 1fr 1fr; padding-top: 14px; }
  .od-plan__label {
    position: static; width: auto; height: auto; margin: 0 0 10px; overflow: visible; clip: auto; white-space: normal;
    grid-column: 1 / -1; font-size: 14px; font-weight: 500; text-align: center;
  }
  .od-plan__label small { font-weight: 400; }
  .od-plan__row--count { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .photo-band img { aspect-ratio: 16 / 9; }
  .cost-pay { grid-template-columns: 1fr; }
  .od-features, .partner-grid, .flow, .sitemap ul { grid-template-columns: 1fr; }
  /* スマホは縦に1つずつ。丸は中央に置く */
  .tagline-trio { grid-template-columns: minmax(0, 220px); justify-content: center; }
  .essence-flow > li:nth-child(2) { grid-template-columns: 1fr; }
  .unit-actions { justify-content: flex-start; }
  .profile dl > div { grid-template-columns: 1fr; gap: 2px; }
  .history li { grid-template-columns: 1fr; gap: 4px; }
  .value-list li { padding-left: 44px; }
  .book { --page: 100%; }
  .book-stage { max-width: 100%; aspect-ratio: 1 / 1; }
}


/* ==========================================================================
   5. GLOBAL  … 全体に後から被せる指定。効かせる順の都合で最後に置く
   ========================================================================== */

/* 動きを減らす設定では、各 transition が参照している時間トークンを 0 にする。
   （!important で上書きするのではなく、元の値そのものを差し替える） */
@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0s; --t-base: 0s; --t-slow: 0s; --t-book: 0s; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .floating-line, .book-controls, .book-thumbs, .scroll-hint { display: none; }
  body { background: #fff; }
  .hero { min-height: auto; }
}
