/* =====================================================================
   株式会社DCC コーポレートサイト  style.css（v2 2026-09-16）
   主題: 一本の線が、角を切らずに、続いていく。
   - 色は INK / DARK / ACCENT / PAPER の4つだけ。補助文字と罫は透明度で作る
   - 角丸・影・グラデーション・縁取り・カード・ボタン風の面は作らない
   - 動く性質は transform / opacity / stroke-dashoffset だけ
   - 隠れた初期状態は html.js 配下にだけ書く（JS 無効・reduced-motion は完成形）
   ===================================================================== */

/* ---------- 書体 ---------- */
/* Space Grotesk は可変フォント1本（latin サブセット・約22KB）で 500 と 700 をまかなう。
   local() は置かない：可変レンジ宣言に端末の静的1ウェイト（Regular 等）が当たると 500〜700 全域がその太さになり、
   font-synthesis: none のため太字が細く出る。preload 済みなので転送上の不利はない */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* 二倍ダーシ（——）と三点リーダ（…）は必ず和文書体で描く。欧文書体のダーシが和文の中心線から浮くのを防ぐ保険 */
@font-face {
  font-family: "DCC JaPunct";
  src: local("BIZ UDPGothic"), local("BIZ UDPゴシック"), local("Hiragino Sans"), local("Yu Gothic UI");
  unicode-range: U+2014-2015, U+2026;
}

/* ---------- トークン ---------- */
:root {
  --ink:    #22304D;  /* 紙の上の文字・四隅・点 */
  --dark:   #161D30;  /* 表紙・奥付・裏表紙の地 */
  --accent: #8AA7DE;  /* マーク・走る罫・下線・暗地の上の文字。紙の上の文字には使わない */
  --paper:  #F6F1E3;  /* 本文の地・暗地の上の文字 */
  --ink-72:   rgba(34, 48, 77, .72);
  --ink-18:   rgba(34, 48, 77, .18);
  --paper-72: rgba(246, 241, 227, .72);
  --paper-20: rgba(246, 241, 227, .2);

  --font-ja: "DCC JaPunct", "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
             "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  --font-en: "Space Grotesk", "Segoe UI", system-ui, sans-serif;

  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 48px);
  --measure: 40.5rem;               /* 全角38字 */
  --header-h: 94px;                 /* <600 は2段 */
  --mark: 56px;                     /* 表紙のマーク（<600。PC は下で大きく） */
  --mark-bc: 72px;                  /* 裏表紙のマーク */
  --cover-pt: 16px;
  --sec-pad: clamp(72px, 10vw, 128px);
  --h3-gap: clamp(32px, 5vw, 48px);
  --ease-out: cubic-bezier(.2, 0, 0, 1);   /* 止まる動き */
  --ease-std: cubic-bezier(.4, 0, .2, 1);  /* 描き切る動き */

  /* 表紙のタイトルシーケンスの時刻（初回のみ。どの操作でもスキップ）
     到着 → 角 → 余白が生まれる → 斜線が止まる → 間 → 文字が拭われる → 帯。短くしたいときはここだけ変える */
  --t-lead: 120ms;  --d-lead: 500ms;   /* 画面幅いっぱいに一本の線が到着 */
  --t-b: 700ms;     --d-b: 320ms;      /* ブラケットが線を引き受けて角を曲がる */
  --t-gap: 1020ms;                     /* 導入の線が消え、余白が生まれる */
  --t-s: 1200ms;    --d-s: 200ms;      /* 斜線が加速して角の手前で止まる */
  --t-fill: 1400ms;                    /* 公式の塗りで確定 */
  --t-txt: 1600ms;  --gap-txt: 120ms; --d-txt: 380ms;   /* 4行が線に拭われて現れる */
  --t-film: 1800ms;                    /* 背景のフィルムが流れ始める */
  --t-band: 1900ms; --t-pager: 2100ms; --t-end: 2400ms;   /* --t-pager は表紙下部の社名行・© */
  --d-turn: 220ms;                     /* ページをめくる幕 */

  --fs-h1: clamp(16px, 4.6vw, 18px);   /* 表紙の文面（<600）: 最長の行（全角19字）が版面幅 100vw−40px に入る大きさ。375→17.3px / 390→17.9px / 430→18px */
  --fs-h2: 24px; --fs-core: 18px; --fs-axis: 18px;
  --fs-acr: 56px; --fs-read: 16px; --fs-nav: 12px; --fs-band: 13px;
}
@media (min-width: 600px) {
  :root { --header-h: 64px; --mark: 140px; --mark-bc: 96px; --cover-pt: 12vh; --fs-h1: 22px; }
}
@media (min-width: 768px) {
  :root { --fs-h1: 24px; --fs-h2: 28px; --fs-core: 22px; --fs-axis: 20px; --fs-acr: 80px; --fs-read: 18px; --fs-nav: 13px; }
}
@media (min-width: 1024px) {
  :root { --mark: 200px; --fs-h1: 28px; --fs-h2: 32px; --fs-core: 26px; --fs-axis: 22px; --fs-acr: 96px; --fs-read: 20px; --fs-band: 14px;
          --header-h: 72px; --fs-nav: 15px; --cover-pt: 8vh; }   /* PC はヘッダーを一回り大きく（ロックアップ 40px・メニュー 15px）。表紙の上余白を減らして1画面を保つ */
}

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0;
  font-feature-settings: "palt" 0;
  font-synthesis: none;
  hanging-punctuation: allow-end;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 17px; } }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.5; }
h2, .chapter .body > h1 { text-wrap: balance; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { margin: 0 0 1em; padding: 0; max-width: var(--measure); }
.en { font-family: var(--font-en); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: var(--ink);
  transition: text-decoration-color 200ms var(--ease-out);
}
a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
a:focus { outline: 2px solid var(--ink); outline-offset: 3px; }
a:focus:not(:focus-visible) { outline: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* ページ切り替え時に JS が読み上げのために章題へ移すフォーカス。Tab では止まらない要素なので、ブラウザ既定の青い枠は出さない */
[tabindex="-1"]:focus { outline: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  padding: 8px 12px; background: var(--ink); color: var(--paper); text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- ヘッダー（表紙の上では紺、紙に入ると紙） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--dark);
  transition: background-color 300ms ease-out;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink-18); opacity: 0; transition: opacity 300ms linear;
}
.site-header.past-cover { background: var(--paper); }
.site-header.past-cover::after { opacity: 1; }
.site-header .inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad);
  min-height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
/* ロックアップ高 32px → マーク実寸 24px（紙の上で ACCENT 一色のマークは 24px 以上）。幅 102px ≥ 最小 90px */
.brand { position: relative; display: block; width: 102px; height: 32px; flex: none; }
.brand img { position: absolute; left: 0; top: 0; height: 32px; width: auto; transition: opacity 300ms linear; }
.brand .logo-paper { opacity: 0; }
.past-cover .brand .logo-paper { opacity: 1; }
.past-cover .brand .logo-dark { opacity: 0; }
.brand:focus { outline-color: var(--paper); }
/* PC: ロックアップ 40px（マーク実寸 30px）・幅 128px。裏表紙と表紙下部の社名行・© も一回り大きく */
@media (min-width: 1024px) {
  .site-header .inner { min-height: 72px; }
  .brand { width: 128px; height: 40px; }
  .brand img { height: 40px; }
  .site-footer .tag, .cover-foot .tag { font-size: 15px; }
  .copyright { font-size: 14px; }
  .site-footer nav a { font-size: 15px; }
  .cover-foot .copyright { margin-top: 14px; padding-top: 14px; }
}
.past-cover .brand:focus { outline-color: var(--ink); }

.nav { display: flex; align-items: center; }
.nav a {
  position: relative; display: flex; align-items: center;
  min-height: 44px; padding: 0 10px; margin-left: 4px;
  font-size: var(--fs-nav); line-height: 1; letter-spacing: .04em;
  color: var(--paper); text-decoration: none; white-space: nowrap;
  transition: color 300ms linear;
}
.past-cover .nav a { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 200ms var(--ease-out);
}
.nav a:hover::after, .nav a:focus::after { transform: scaleX(1); }
.nav a:focus { outline-color: var(--paper); }
.past-cover .nav a:focus { outline-color: var(--ink); }
@media (max-width: 599px) {
  .site-header .inner { flex-wrap: wrap; min-height: 0; }
  .brand { margin: 7px 0; }                                   /* ロックアップ行 46px（32 + 7×2） */
  /* メニュー行 48px（ロックアップ行 46 + 48 = 94 = --header-h）。太字で読みやすく、下余白は項目の高さに吸収してタップ域を広げる。5項目が1行に収まることが条件 */
  .nav { width: calc(100% + 10px); margin: 0 -5px; justify-content: space-between; }   /* タップ域を左右余白から回収 */
  .nav a { min-height: 48px; padding: 0 5px; margin-left: 0; letter-spacing: 0; font-weight: 700; }
  .nav a::after { left: 5px; right: 5px; bottom: 10px; height: 3px; }   /* 現在ページの線は太字に合わせて 3px */
}
/* 390px 以上（iPhone 12〜16 など）: PC と同じ 13px。375px は端末書体によって1行に入らない恐れがあるので 12px のまま */
@media (min-width: 390px) and (max-width: 599px) {
  :root { --fs-nav: 13px; }
}
/* 320〜359px（iPhone SE 1st・折りたたみ機のカバー画面）: 11px・余白 2px で5項目を1行に収め、横スクロールを出さない */
@media (max-width: 359px) {
  :root { --fs-nav: 11px; }
  .nav { width: calc(100% + 4px); margin: 0 -2px; }
  .nav a { padding: 0 2px; }
  .nav a::after { left: 2px; right: 2px; }
}

/* ---------- 表紙 ---------- */
.cover {
  position: relative; overflow: hidden;
  background: var(--dark); color: var(--paper);
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));   /* 最初の画面は表紙だけ。余りは帯の下（末尾）に寄せ、文面と帯の間には入れない */
  padding: var(--cover-pt) var(--pad) 40px;
  display: flex; flex-direction: column;
}
.cover .inner {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  flex: 1 1 auto; display: flex; flex-direction: column;
  position: relative; z-index: 1;          /* フィルム（canvas）の上に載せる */
}
.shot .cover { min-height: 0; }   /* 撮影用（?shot=1）。公開ページの見た目には関係しない */
/* 表紙のフィルム（js/film.js が挿入する canvas）。紺の地の上を細い線が流れ続ける */
.film { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* 導入の線：画面左端から到着し、ブラケットに引き受けられて消える（演出中だけ見える） */
.rule-lead {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); z-index: 1;
  top: calc(var(--grid-top, var(--cover-pt)) + var(--mark) * .1875 - 1px);   /* --grid-top は JS が実測（縦中央配置のため） */
  transform-origin: 0 50%; opacity: 0;
}
.cover-grid { margin-bottom: 48px; }
@media (min-width: 600px) {
  .cover-grid {
    display: grid; grid-template-columns: var(--mark) minmax(0, 1fr);
    column-gap: calc(var(--mark) / 2);   /* クリアスペース＝マーク高の1/2 */
    align-items: start;
  }
}
/* SVG は viewBox 内に 12/96 の余白を持つ。見える図形の左端を版面（帯の罫・文）に揃える */
.cover .mark { width: var(--mark); height: var(--mark); display: block; margin-left: calc(var(--mark) * -.125); }
.cover-title {
  font-weight: 400; font-size: var(--fs-h1); line-height: 1.9;
  max-width: 22em; margin: 40px 0 0;
}
@media (min-width: 600px) { .cover-title { margin-top: calc(var(--mark) * .1875 + 40px); } }
@media (min-width: 1024px) { .cover-title { max-width: 28em; } }
/* 和文は「、」「。」と空白でだけ折る（keep-all）。anywhere は端末書体で幅を超えたときの保険 */
.cover-title .line { display: block; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
/* 文字は「線に拭われて」現れる：.txt に紺の覆い（::before）と 2px の縦の線（::after）。JS が --lw（文字幅）を置く */
.cover-title .txt { position: relative; display: inline-block; }
.js .cover-title .txt::before {
  content: ""; position: absolute; left: -3px; right: -3px; top: -2px; bottom: -2px;
  background: var(--dark); transform-origin: 100% 50%;
}
.js .cover-title .txt::after {
  content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 2px;
  background: var(--accent); opacity: 0;
}
/* 職人の線（JS 有効時のみ）: 長押しで文字の選択や iOS の吹き出しを出さない */
.js .cover { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cover-title .nb, .cover-title .lt, .cover-title .en { white-space: nowrap; }   /* 折り返しは語の切れ目（.nb）と欧文/和文の境だけ。欧文の語群は途中で折らない */
.cover-title .en { font-weight: 700; color: var(--accent); }

/* 走る罫：マーク上辺の高さから右端へ。刻みは表紙が見えている間だけ、16秒に一度通る */
.rule-run {
  position: absolute; right: 0; height: 2px; background: var(--accent); overflow: hidden; z-index: 1;
  top: calc(var(--grid-top, var(--cover-pt)) + var(--mark) * .1875 - 1px);
  left: calc(var(--pad) + max(0px, (100% - 2 * var(--pad) - var(--wrap)) / 2) + var(--mark) * 1.5);
  transform-origin: 0 50%;
}
/* 表紙の内容（マーク・文面・帯）を画面の縦中央に置き、下部に社名の行・罫・© を置く（PC もスマホも）。表紙ページでは裏表紙を出さず、1画面で完結させる */
.js .cover .inner { justify-content: center; }
.js.paged.at-cover .site-footer { display: none; }
.rule-run::after {
  content: ""; position: absolute; top: -1px; left: 0; width: 24px; height: 4px;
  background: var(--paper); transform: translateX(-24px); will-change: transform;
}
.cover.in-view .rule-run::after { animation: tick 16s linear 2.4s infinite; }
@keyframes tick {
  0%   { transform: translateX(-24px); }
  40%  { transform: translateX(100vw); }
  100% { transform: translateX(100vw); }
}

.band {
  margin-top: 0; padding-top: 24px; border-top: 1px solid var(--paper-20);   /* 文面の直下に固定の間隔で置く（下端に押し下げない） */
  display: flex; justify-content: space-between; align-items: flex-end;
}
.band p { margin: 0; font-size: var(--fs-band); line-height: 1.7; max-width: 30em; }
.band .ph { display: inline-block; }   /* 帯の一行を文節で折る（375 では2行） */
.band .en {
  font-family: var(--font-en); font-weight: 500; font-size: 12px; letter-spacing: .12em;
  color: var(--accent); margin-left: 24px; white-space: nowrap;
}
@media (max-width: 599px) {
  .band { display: block; }
  .band .en { margin: 4px 0 0; white-space: normal; }
}

/* ---------- ページ切り替え（JS が .paged を付けたときだけ。1章＝1ページ） ---------- */
.js.paged main > section { display: none; }
.js.paged main > section.is-current { display: block; }
.js.paged main > section.cover.is-current { display: flex; }
.js.paged main > .chapter.is-current { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* 次のページへ（章の末尾）。1本のページ（JS 無効・?paged=0・site.js 失敗）では次の章がすぐ下に続くので出さない */
html:not(.paged) .pager { display: none; }
.pager { margin: clamp(48px, 7vw, 80px) 0 0; max-width: var(--measure); }
.pager .label { display: block; font-size: .85em; color: var(--ink-72); margin-bottom: 4px; }
.pager a {
  display: inline-block; font-weight: 700; font-size: 1.15em; line-height: 1.5;
  text-decoration: none; padding-bottom: 6px; position: relative;
}
.pager a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform-origin: 0 50%; transition: transform 200ms var(--ease-out);
}
.pager a.going::after { transform: scaleX(var(--go, 1)); transition: transform 220ms var(--ease-std); }   /* 押した瞬間、線が右端へ抜ける */

/* めくり：行き先の地色の幕が 2px の線を先頭に降りて画面を覆う（JS が生成。top と --turn-h は JS が実測） */
.curtain {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; display: none; pointer-events: none;
  transform: scaleY(0); transform-origin: 50% 0;
}
.curtain.paper { background: var(--paper); }
.curtain.dark { background: var(--dark); }
.curtain.go { display: block; animation: drop var(--d-turn) var(--ease-std) forwards; }
.turn-line { position: fixed; left: 0; right: 0; height: 2px; background: var(--accent); z-index: 12; display: none; pointer-events: none; }
.turn-line.go { display: block; animation: fall var(--d-turn) var(--ease-std) forwards; }
@keyframes drop { to { transform: scaleY(1); } }
@keyframes fall { to { transform: translateY(var(--turn-h, 100vh)); } }
/* 表紙の下部: 裏表紙と同じ社名の行・罫・©（表紙に「次のページ」は置かない。メニューで移動する）。.inner が残りの高さを取り、内容を縦中央に置く */
.cover .inner { flex: 1 0 auto; }
.cover-foot { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 24px auto 0; }   /* 幅は .inner（版面）と揃える */
.cover-foot .tag { margin: 0; }
.cover-foot .copyright { margin-top: 12px; padding-top: 12px; }
.colophon .pager .label { color: var(--paper-72); }

/* スマホ用の表紙の間隔は、上の .band / .cover-foot の既定値より後ろに置く（同じ詳細度なので順序で決まる） */
@media (max-width: 599px) {
  /* スマホ: 表紙（マーク・5行・帯・下部の社名行）をスクロール無しの1画面に収める。1文＝1行、折るときは「、」と欧文/和文の境だけ */
  .cover { padding-bottom: 20px; }
  .cover-grid { margin-bottom: 20px; }
  .cover-title { line-height: 1.7; margin-top: 16px; }
  .cover-title .lt { font-family: var(--font-en); font-weight: 500; font-size: .94em; }   /* 1行目の欧文: 端末書体より x-height の低い Space Grotesk で、和文と同じ見た目の大きさに（同梱フォントは 500〜700） */
  /* 余った高さを上下で等分し、マークと文面を「ヘッダーと帯の間」の中央に置く。
     帯（何をする会社か）は下部の社名行のすぐ上へ送る */
  .cover .inner { justify-content: flex-start; }
  .cover .cover-grid { margin-top: auto; }
  .cover .band { margin-top: auto; }
  .band { padding-top: 16px; }
  .cover-foot { margin-top: 16px; }
}
/* 縦が短い機種（iPhone SE・8: Safari の表示領域 約548〜555px）だけ、行送りと上下の間をもう一段詰める（マークの大きさは変えない）。
   iOS/Android はこの高さをツールバーが縮んだ「大きい方」の画面で判定するので、閾値は 660px（SE の大きい方 ≈ 610〜630px）にしてある */
@media (max-width: 599px) and (max-height: 660px) {
  :root { --cover-pt: 12px; }
  .cover { padding-bottom: 12px; }
  .cover-grid { margin-bottom: 16px; }
  .cover-title { line-height: 1.5; margin-top: 12px; }
  .band { padding-top: 12px; }
  .band p { line-height: 1.5; }
  .band .en { margin-top: 2px; }
  .cover-foot { margin-top: 12px; }
  .cover-foot .copyright { margin-top: 8px; padding-top: 8px; }
}

/* ---------- 紙の章（共通の雛形） ---------- */
.chapter { padding: var(--sec-pad) var(--pad); background: var(--paper); color: var(--ink); }
.chapter .inner { max-width: var(--wrap); margin: 0 auto; }
.rule { display: block; height: 1px; background: var(--ink-18); transform-origin: 0 50%; }
.running { margin: 24px 0 12px; }
.eyebrow {
  margin: 0; font-family: var(--font-en); font-weight: 500; font-size: 12px; line-height: 1;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-72);
}
@media (min-width: 1024px) {
  .chapter .inner { display: grid; grid-template-columns: 12em minmax(0, var(--measure)); column-gap: 48px; }
  .rule { grid-column: 1 / -1; margin-bottom: 32px; }
  .running { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; margin: 0; }
  .body { min-width: 0; }
}
.chapter h2, .chapter .body > h1 { font-size: var(--fs-h2); line-height: 1.45; max-width: 24em; margin: 0 0 32px; }
.chapter h3 { font-size: 1.15em; line-height: 1.5; margin: var(--h3-gap) 0 12px; max-width: var(--measure); }
.chapter h3.en { font-size: 1.25em; letter-spacing: .01em; }
.chapter h4 { font-size: 1.05em; line-height: 1.5; margin: 0 0 4px; }
.lead { font-weight: 700; font-size: 1.15em; line-height: 1.7; }
.note { font-size: .92em; color: var(--ink-72); }

/* ---------- 01 社名について ---------- */
.acronym { margin: 0 0 40px; max-width: none; }
.acronym .letters {
  display: block; font-family: var(--font-en); font-weight: 700;
  font-size: var(--fs-acr); line-height: 1; letter-spacing: .28em; color: var(--ink);
}
.acronym .read {
  display: block; font-family: var(--font-en); font-weight: 500;
  font-size: var(--fs-read); line-height: 1.5; color: var(--ink-72);
}
.acronym .letters + .read { margin-top: 16px; }
.acronym .read + .read { margin-top: 4px; }
/* D → C → C を一字ずつ置き、読み下し2行が続く（ページを開いたとき一度だけ） */
.js .acronym[data-in] .l { opacity: .001; transition: opacity 240ms ease-out; }
.js .acronym.in .l { opacity: 1; }
.js .acronym.in .l:nth-child(2) { transition-delay: 140ms; }
.js .acronym.in .l:nth-child(3) { transition-delay: 280ms; }
.js .acronym[data-in] .read { opacity: .001; transform: translateY(6px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .acronym.in .read { opacity: 1; transform: none; }
.js .acronym.in .letters + .read { transition-delay: 500ms; }
.js .acronym.in .read + .read { transition-delay: 620ms; }

/* ---------- 02 仕事の軸 ---------- */
.axis {
  font-weight: 700; font-size: var(--fs-axis); line-height: 1.6; margin: 0 0 40px;
  word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance;   /* 句読点でだけ折る */
}
.core { position: relative; margin: 0 0 48px; padding: 40px 32px; text-align: center; }
@media (max-width: 599px) { .core { padding: 32px 20px; } }
.core .corner { position: absolute; width: 28px; height: 28px; color: var(--ink); overflow: visible; }
.core .c1 { left: 0; top: 0; }
.core .c2 { right: 0; top: 0; transform: scaleX(-1); }
.core .c3 { right: 0; bottom: 0; transform: scale(-1); }
.core .c4 { left: 0; bottom: 0; transform: scaleY(-1); }
/* 上下の辺の中心を示す短い縦線（印刷のセンタートンボ）。辺をまたいで 12px */
.core .tick { position: absolute; left: 50%; width: 2px; height: 12px; margin-left: -1px; background: var(--ink); }
.core .t1 { top: -6px; }
.core .t2 { bottom: -6px; }
.core blockquote { margin: 0; }
.core blockquote p { margin: 0 auto; font-weight: 700; font-size: var(--fs-core); line-height: 1.9; max-width: 26em; word-break: keep-all; overflow-wrap: anywhere; }

.values, .services { list-style: none; max-width: none; margin: 0 0 8px; }
.values li, .services li {
  position: relative; padding: 22px 0; margin: 0;
  display: grid; grid-template-columns: 1fr; row-gap: 4px;
}
@media (min-width: 600px) {
  .values li, .services li { grid-template-columns: 14em minmax(0, 1fr); column-gap: 24px; }
}
.values li::before, .services li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--ink-18); transform-origin: 0 50%;
}
.values::after, .services::after, .promises::after { content: ""; display: block; height: 1px; background: var(--ink-18); transform-origin: 0 50%; }
.values p, .services p { margin: 0; }
.values h3, .services h3 { font-size: 1.05em; line-height: 1.5; margin: 0 0 4px; max-width: none; }   /* 一覧内の題（.chapter h3 の余白を打ち消す） */
.signature { margin: 40px 0 0; text-align: right; max-width: var(--measure); line-height: 1.7; }
.signature .name { display: block; font-size: 1.15em; font-weight: 700; }

/* ---------- 03 事業 ---------- */
/* 納めるもの：一本の線の上に三点 */
.three {
  position: relative; list-style: none; max-width: var(--measure);
  margin: 0 0 24px; padding: 24px 0 0;
  display: grid; grid-template-columns: 1fr; row-gap: 20px;
}
.three::before { content: ""; position: absolute; left: 0; top: 3px; width: 100%; height: 2px; background: var(--ink); transform-origin: 0 50%; }
.three li { position: relative; margin: 0; }
.three li::before { content: ""; position: absolute; width: 8px; height: 8px; background: var(--ink); }
.three b { display: block; font-size: 1.05em; }
.three span { display: block; font-size: .95em; color: var(--ink-72); }
@media (min-width: 600px) {
  .three { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .three li::before { left: 0; top: -24px; }
}
@media (max-width: 599px) {
  .three { padding: 0 0 0 24px; }
  .three::before { top: 0; bottom: 0; left: 3px; width: 2px; height: auto; transform-origin: 50% 0; }
  .three li::before { left: -24px; top: .6em; }
}
.closing { font-weight: 700; }

.promises {
  list-style: none; margin: 0 0 8px;
  display: grid; grid-template-columns: 1fr;   /* 1列・行長38字。2段組にしない */
}
.promises li {
  position: relative; padding: 16px 0; margin: 0;
  display: grid; grid-template-columns: 2.2em minmax(0, 1fr); column-gap: 8px;
}
.promises li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink-18); transform-origin: 0 50%; }
.promises .num { font-family: var(--font-en); font-weight: 700; font-size: 1.2em; line-height: 1.4; font-variant-numeric: tabular-nums; color: var(--ink-72); }
.promises p { margin: 0; font-size: .95em; }

.decline { list-style: none; padding-left: 1.2em; }
.decline li { position: relative; margin: 0 0 .35em; }
.decline li::before { content: "—"; position: absolute; left: -1.2em; color: var(--ink-72); }

/* ---------- 04 お問い合わせ ---------- */
.contact-mail {
  font-family: var(--font-en); font-weight: 700; font-size: clamp(20px, 3.4vw, 30px);
  line-height: 1.4; margin: 8px 0 24px; overflow-wrap: anywhere;
}
.contact-mail .mail { position: relative; display: inline-block; padding-bottom: 6px; text-decoration: none; }
.contact-mail .mail::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--accent); transform-origin: 0 50%; }

/* ---------- 奥付（会社概要）：ここから裏表紙まで一面の紺 ---------- */
.colophon { background: var(--dark); color: var(--paper); }
.colophon .rule { background: var(--paper-20); }
.colophon .eyebrow { color: var(--paper-72); }
.colophon .note { color: var(--paper-72); }
.colophon a:focus { outline-color: var(--paper); }
.spec { margin: 0 0 8px; max-width: 720px; font-size: 14px; line-height: 1.8; }
.spec > div { display: grid; grid-template-columns: 1fr; row-gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--paper-20); }
.spec > div:first-child { border-top: 1px solid var(--paper-20); }
@media (min-width: 600px) { .spec > div { grid-template-columns: 9em minmax(0, 1fr); column-gap: 20px; } }
.spec dt { font-weight: 700; font-size: .92em; color: var(--paper-72); }
.spec dd { margin: 0; font-variant-numeric: tabular-nums; }
.spec dd ul { list-style: none; margin: 0; }

/* ---------- 裏表紙 ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--dark); color: var(--paper); padding: 64px var(--pad) 32px; }
@media (min-width: 768px) { .site-footer { padding-top: 96px; padding-bottom: 40px; } }
.site-footer .inner { max-width: var(--wrap); margin: 0 auto; }
.site-footer .mark { width: var(--mark-bc); height: var(--mark-bc); display: block; margin-left: calc(var(--mark-bc) * -.125); }
/* 終点の罫：右端から来て、マークの手前（マーク高の1/2）で止まる */
.rule-end {
  position: absolute; right: 0; height: 2px; background: var(--accent); transform-origin: 100% 50%;
  top: calc(64px + var(--mark-bc) * .1875 - 1px);
  left: calc(var(--pad) + max(0px, (100% - 2 * var(--pad) - var(--wrap)) / 2) + var(--mark-bc) * 1.5);
}
@media (min-width: 768px) { .rule-end { top: calc(96px + var(--mark-bc) * .1875 - 1px); } }
.site-footer nav { display: flex; flex-wrap: wrap; margin: 48px -10px 0; }   /* マークとの間隔（もとは住所が受け持っていた） */
.site-footer nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px;
  font-size: 14px; text-decoration: none; color: var(--paper);
}
.site-footer nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 200ms var(--ease-out);
}
.site-footer nav a:hover::after, .site-footer nav a:focus::after { transform: scaleX(1); }
.site-footer a:focus { outline-color: var(--paper); }
.site-footer .tag, .cover-foot .tag { font-family: var(--font-en); font-weight: 500; font-size: 13px; letter-spacing: .04em; color: var(--accent); }
.site-footer .tag { margin: 32px 0 0; }
.copyright {
  margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--paper-20);
  max-width: none;   /* 罫は裏表紙の枠幅に揃える（p の行長制限を受けない） */
  font-family: var(--font-en); font-weight: 500; font-size: 12px; letter-spacing: .06em; color: var(--paper-72);
}

/* =====================================================================
   動き（html.js 配下のみ）。語彙は「線が引かれる」の一種類
   ===================================================================== */

/* --- A. 読み込み時（表紙のタイトルシーケンス）。初期状態 → .is-ready で演出、.is-done で完成形。時刻は :root の --t-* --- */
.js .cover .draw-b { stroke-dasharray: 132; stroke-dashoffset: 132; }
.js .cover .draw-s { stroke-dasharray: 51;  stroke-dashoffset: 51; }
.js .cover .fill { opacity: 0; }
.js .rule-lead { opacity: 1; transform: scaleX(0); }
.js .rule-run { opacity: 0; }
.js .cover-title .txt::before { transform: scaleX(1); }
.js .cover-title .line.wrap { opacity: .001; transform: translateY(6px); }              /* 折り返した行は覆いを使わず浮き上がる */
.js .cover-title .line.wrap .txt::before, .js .cover-title .line.wrap .txt::after { display: none; }
.js .band, .js .cover-foot { opacity: .001; }

.js.is-done .cover .draw-b, .js.is-done .cover .draw-s { stroke-dashoffset: 0; }
.js.is-done .cover .fill { opacity: 1; }
.js.is-done .rule-lead { opacity: 0; }
.js.is-done .rule-run { opacity: 1; }
.js.is-done .cover-title .txt::before { transform: scaleX(0); }
.js.is-done .cover-title .txt::after { opacity: 0; }
.js.is-done .cover-title .line.wrap { opacity: 1; transform: none; }
.js.is-done .band, .js.is-done .cover-foot { opacity: 1; }

@keyframes draw    { to { stroke-dashoffset: 0; } }
@keyframes fade    { to { opacity: 1; } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes rise    { to { opacity: 1; transform: none; } }
@keyframes extend  { to { transform: scaleX(1); } }
@keyframes wipe    { to { transform: scaleX(0); } }
@keyframes run     { from { opacity: 1; transform: translateX(0); } to { opacity: 1; transform: translateX(var(--lw, 0px)); } }

/* 到着（一本の線が画面幅いっぱいに） */
.js.is-ready .rule-lead { animation: extend var(--d-lead) var(--ease-out) var(--t-lead) forwards, fadeout 180ms linear var(--t-gap) forwards; }
/* 角（ブラケットが線を引き受け、角を曲がる） */
.js.is-ready .cover .draw-b { animation: draw var(--d-b) var(--ease-std) var(--t-b) forwards; }
/* 余白が生まれる（導入の線が消え、マークの右から続く罫だけが残る） */
.js.is-ready .rule-run { animation: fade 120ms linear var(--t-gap) forwards; }
/* 停止（斜線が加速して、角の手前で止まる）→ 塗りで確定 */
.js.is-ready .cover .draw-s { animation: draw var(--d-s) cubic-bezier(.4, 0, 1, 1) var(--t-s) forwards; }
.js.is-ready .cover .fill { animation: fade 1ms linear var(--t-fill) forwards; }
/* 間を置いて、文字が線に拭われて現れる（1行ずつ） */
.js.is-ready .cover-title .txt::before { animation: wipe var(--d-txt) var(--ease-std) var(--t-txt) forwards; }
.js.is-ready .cover-title .txt::after { animation: run var(--d-txt) var(--ease-std) var(--t-txt) forwards, fadeout 1ms linear calc(var(--t-txt) + var(--d-txt)) forwards; }
.js.is-ready .cover-title .line:nth-child(2) .txt::before { animation-delay: calc(var(--t-txt) + var(--gap-txt)); }
.js.is-ready .cover-title .line:nth-child(2) .txt::after  { animation-delay: calc(var(--t-txt) + var(--gap-txt)), calc(var(--t-txt) + var(--gap-txt) + var(--d-txt)); }
.js.is-ready .cover-title .line:nth-child(3) .txt::before { animation-delay: calc(var(--t-txt) + 2 * var(--gap-txt)); }
.js.is-ready .cover-title .line:nth-child(3) .txt::after  { animation-delay: calc(var(--t-txt) + 2 * var(--gap-txt)), calc(var(--t-txt) + 2 * var(--gap-txt) + var(--d-txt)); }
.js.is-ready .cover-title .line:nth-child(4) .txt::before { animation-delay: calc(var(--t-txt) + 3 * var(--gap-txt)); }
.js.is-ready .cover-title .line:nth-child(4) .txt::after  { animation-delay: calc(var(--t-txt) + 3 * var(--gap-txt)), calc(var(--t-txt) + 3 * var(--gap-txt) + var(--d-txt)); }
.js.is-ready .cover-title .line:nth-child(5) .txt::before { animation-delay: calc(var(--t-txt) + 4 * var(--gap-txt)); }
.js.is-ready .cover-title .line:nth-child(5) .txt::after  { animation-delay: calc(var(--t-txt) + 4 * var(--gap-txt)), calc(var(--t-txt) + 4 * var(--gap-txt) + var(--d-txt)); }
.js.is-ready .cover-title .line.wrap { animation: rise 440ms var(--ease-out) var(--t-txt) forwards; }
.js.is-ready .cover-title .line.wrap:nth-child(2) { animation-delay: calc(var(--t-txt) + var(--gap-txt)); }
.js.is-ready .cover-title .line.wrap:nth-child(3) { animation-delay: calc(var(--t-txt) + 2 * var(--gap-txt)); }
.js.is-ready .cover-title .line.wrap:nth-child(4) { animation-delay: calc(var(--t-txt) + 3 * var(--gap-txt)); }
.js.is-ready .cover-title .line.wrap:nth-child(5) { animation-delay: calc(var(--t-txt) + 4 * var(--gap-txt)); }
/* 帯と「次のページ」 */
.js.is-ready .band { animation: fade 300ms ease-out var(--t-band) forwards; }
.js.is-ready .cover-foot { animation: fade 300ms ease-out var(--t-pager) forwards; }

/* --- B. スクロール時（data-in を持つ要素に .in が付いたら一度だけ） --- */
.js .rule[data-in] { transform: scaleX(0); transition: transform 900ms var(--ease-out); }
.js .rule.in { transform: none; }
.js .chapter .body h2, .js .chapter .body > h1 { opacity: .001; transform: translateY(8px); transition: opacity 500ms var(--ease-out) 200ms, transform 500ms var(--ease-out) 200ms; }
.js .rule.in ~ .body h2, .js .rule.in ~ .body > h1 { opacity: 1; transform: none; }

.js .values li::before, .js .services li::before, .js .promises li::before { transform: scaleX(0); transition: transform 900ms var(--ease-out); }
.js .values::after, .js .services::after, .js .promises::after { transform: scaleX(0); transition: transform 900ms var(--ease-out) 480ms; }
.js [data-in] li:nth-child(2)::before { transition-delay: 120ms; }
.js [data-in] li:nth-child(3)::before { transition-delay: 240ms; }
.js [data-in] li:nth-child(4)::before { transition-delay: 360ms; }
.js [data-in] li:nth-child(n+5)::before { transition-delay: 480ms; }
.js .in li::before, .js .values.in::after, .js .services.in::after, .js .promises.in::after { transform: none; }

.js .core .corner path { stroke-dasharray: 54; stroke-dashoffset: 54; transition: stroke-dashoffset 500ms var(--ease-out); }
.js .core .tick { transform: scaleY(0); transition: transform 300ms var(--ease-out) 500ms; }   /* 中心から上下へ打たれる */
.js .core blockquote { opacity: .001; transition: opacity 500ms ease-out 600ms; }
.js .core.in .corner path { stroke-dashoffset: 0; }
.js .core.in .tick { transform: none; }
.js .core.in blockquote { opacity: 1; }

.js .three::before { transform: scaleX(0); transition: transform 900ms var(--ease-out); }
@media (max-width: 599px) { .js .three::before { transform: scaleY(0); } }
.js .three li::before { opacity: 0; transition: opacity 200ms ease-out; }
.js .three li:nth-child(1)::before { transition-delay: 300ms; }
.js .three li:nth-child(2)::before { transition-delay: 600ms; }
.js .three li:nth-child(3)::before { transition-delay: 900ms; }
.js .three.in::before { transform: none; }
.js .three.in li::before { opacity: 1; }

.js .contact-mail .mail::after { transform: scaleX(0); transition: transform 400ms var(--ease-out); }
.js .contact-mail.in .mail::after { transform: none; }

/* 裏表紙：マークがもう一度描かれ、罫が右端から来て止まる */
.js .site-footer .draw-b { stroke-dasharray: 132; stroke-dashoffset: 132; transition: stroke-dashoffset 700ms var(--ease-std); }
.js .site-footer .draw-s { stroke-dasharray: 51; stroke-dashoffset: 51; transition: stroke-dashoffset 520ms var(--ease-out) 780ms; }
.js .site-footer .fill { opacity: 0; transition: opacity 160ms linear 1300ms; }
.js .rule-end { transform: scaleX(0); transition: transform 600ms var(--ease-out) 1400ms; }
.js .site-footer.in .draw-b, .js .site-footer.in .draw-s { stroke-dashoffset: 0; }
.js .site-footer.in .fill { opacity: 1; }
.js .site-footer.in .rule-end { transform: none; }

/* ---------- 動きを止める（OS の設定・印刷） ---------- */
@media print, (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .cover .draw-b, .js .cover .draw-s, .js .site-footer .draw-b, .js .site-footer .draw-s, .js .core .corner path {
    stroke-dashoffset: 0 !important; animation: none !important; transition: none !important;
  }
  .js .cover .fill, .js .site-footer .fill, .js .cover-title .line, .js .band, .js .chapter .body h2, .js .chapter .body > h1,
  .js .core .tick, .js .core blockquote, .js .three li::before {
    opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
  }
  .js .rule-run, .js .rule-end, .js .rule[data-in], .js .values li::before, .js .services li::before, .js .promises li::before,
  .js .values::after, .js .services::after, .js .promises::after, .js .three::before, .js .contact-mail .mail::after {
    transform: none !important; transition: none !important; animation: none !important;
  }
  .rule-run::after { display: none; }
  .site-header, .brand img, .nav a, .nav a::after, .site-footer nav a::after, .pager a::after, a { transition: none !important; }
  /* 表紙のタイトルシーケンスとめくりも完成形に */
  .js .rule-lead { opacity: 0 !important; animation: none !important; }
  .js .rule-run { opacity: 1 !important; animation: none !important; }
  .js .cover-title .txt::before { transform: scaleX(0) !important; animation: none !important; }
  .js .cover-title .txt::after { opacity: 0 !important; animation: none !important; }
  .js .cover-title .line.wrap, .js .cover-foot, .js .acronym .l, .js .acronym .read {
    opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
  }
  .curtain, .turn-line { display: none !important; }
}
@media print {
  .site-header, .skip, .rule-run, .rule-end, .rule-lead, .pager, .film { display: none; }
  .js.paged main > section { display: block; }   /* 印刷は全章 */
  .js.paged main > section.cover { display: flex; }
  .cover, .colophon, .site-footer { background: transparent; color: var(--ink); }
  .cover-title .en, .band .en, .site-footer .tag, .site-footer nav a { color: var(--ink); }
  .colophon .eyebrow, .spec dt, .copyright { color: var(--ink-72); }
  .colophon .rule { background: var(--ink-18); }
  .band, .spec > div, .copyright { border-color: var(--ink-18); }
  .chapter, .cover { padding-top: 32px; padding-bottom: 32px; min-height: 0; }
  .js.paged main > .chapter.is-current { min-height: 0; }   /* 表示中の章だけ 100vh に伸びないように */
}
