/* ==========================================================
   COMPANY PORTAL — 共通スタイル（和モダン：藍と朱）
   モバイルファースト：基本 = スマホ、768px〜 = タブレット、1024px〜 = PC
   ========================================================== */
/* 目次：
   - ボタン
   - ヘッダー
   - ロゴ（東啓）
   - 言語切り替え
   - セクション共通
   - 数字（濃藍の帯）
   - カード
   - 2 カラム
   - 工程（順序のある情報なので漢数字を振る）
   - 実績カード
   - 実績カードのシーン別イラスト（src/case_art.py）
   - 採用バナー
   - CTA
   - 下層ページ見出し（藍地に青海波）
   - 404
   - 会社概要
   - サービス詳細
   - 実績一覧
   - 採用
   - お問い合わせフォーム
   - 本文ページ
   - フッター
   - 多言語フォント
   - スクロール表示
   - モーション配慮
   - タッチ端末（スマホ・タブレット）のタップ領域（44px 以上）
   - 印刷用
*/

:root {
  --paper: #ffffff;
  --mist: #eef1f6;        /* 交互セクション（藍白） */
  --ai: #1e2f55;          /* 藍：メイン */
  --ai-deep: #14203d;     /* 濃藍：フッター・帯 */
  --shu: #c8322b;         /* 朱：印章・強調 */
  --text: #1b1e28;
  --muted: #5c6475;
  --line: #d9dee8;

  --f-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;

  --radius: 4px;
  --gutter: 20px;
  --maxw: 1160px;
  --header-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .03em;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}
/* 長い英単語・URL・メールアドレスでも枠からはみ出さないように（入りきらないときだけ語の途中で折り返す。anywhere だとグリッドの列幅の計算まで変わるので break-word） */
body { overflow-wrap: break-word; }
/* グリッドの中身が長い語で列を押し広げないように（列の幅は設計どおりのまま、入りきらない語だけ折り返す）。
   ヘッダーの .container は Logo とナビが縮まないよう対象外。:where で詳細度 0 にして既存の指定は上書きしない */
:where(.grid, main .container, footer .container, .service-block, .footer-grid, .footer-nav, .benefits, .process, .timeline, .stack, .case__spec, .form, .field, .profile div) > * { min-width: 0; }   /* 数字バー（.stats）は短い固定の数字なので対象外：列を均等にすると 99.95% などが 2 行に割れる */
:where(.service-block__head) > div, :where(.timeline li) > * { min-width: 0; }   /* 見出し行は文字の側だけ（アイコンは縮めない） */
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ai); line-height: 1.5; margin: 0; font-weight: 700; letter-spacing: .06em; }
h1, h2, h3 { text-wrap: balance; } /* 最後の 1 文字だけが次の行に落ちるのを防ぐ */
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }
::selection { background: var(--ai); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 本文へのスキップリンクは、キーボードでフォーカスしたときだけ左上に表示する */
a.sr-only:focus { position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto; overflow: visible; padding: 12px 18px; background: #fff; color: #111; border: 2px solid #111; border-radius: 6px; font-weight: 700; text-decoration: none; }
/* 固定ヘッダーの下に、Tab で移動した先やページ内リンクの飛び先が隠れないようにする */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
.nw { display: inline-block; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 32px;
  font-weight: 500; font-size: 15px; letter-spacing: .12em;
  border: 1px solid var(--ai); border-radius: 2px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
  cursor: pointer;
}
.btn::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.btn:hover::after { width: 28px; }
.btn--primary { background: var(--ai); color: #fff; }
.btn--primary:hover { background: var(--ai-deep); border-color: var(--ai-deep); }
.btn--ghost { background: transparent; color: var(--ai); }
.btn--ghost:hover { background: var(--ai); color: #fff; }
.btn--white { background: #fff; color: var(--ai); border-color: #fff; }
.btn--white:hover { background: transparent; color: #fff; }
.btn-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 560px) { .btn-row { flex-direction: row; flex-wrap: wrap; } }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ai); border-bottom: 1px solid var(--ai); padding-bottom: 2px; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); border-bottom: 1px solid var(--line); }
/* backdrop-filter を header 本体に付けると、中の position:fixed（スマホメニュー）が header 基準になるため疑似要素に置く */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { width: 34px; height: 34px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__en { font-family: var(--f-display); font-weight: 800; font-size: 15px; color: var(--ai); letter-spacing: .16em; }
.logo__ja { font-size: 11px; color: var(--muted); letter-spacing: .2em; }

.nav-toggle { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-content: center; gap: 7px; }
.nav-toggle span { display: block; width: 26px; height: 1px; background: var(--ai); transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.global-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--paper);
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.nav-open .global-nav { opacity: 1; transform: none; visibility: visible; }
.nav-open { overflow: hidden; }
.global-nav__list { display: flex; flex-direction: column; }
.global-nav__list a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--ai);
}
.global-nav__list a small { font-family: var(--f-body); font-size: 11px; color: var(--muted); letter-spacing: .2em; font-weight: 400; }
.global-nav__list a[aria-current="page"] { color: var(--shu); }
.global-nav .btn { margin-top: 28px; width: 100%; }

@media (min-width: 1024px) {
  :root { --header-h: 80px; }
  .nav-toggle { display: none; }
  .global-nav {
    position: static; transform: none; opacity: 1; visibility: visible; padding: 0; overflow: visible; background: none;
    display: flex; align-items: center; gap: 32px;
  }
  .global-nav__list { flex-direction: row; gap: 30px; }
  .global-nav__list a { padding: 0; border: 0; font-family: var(--f-body); font-weight: 500; font-size: 14px; color: var(--text); display: block; position: relative; }
  .global-nav__list a small { display: none; }
  .global-nav__list a::after {
    content: ""; position: absolute; left: 50%; bottom: -10px; width: 5px; height: 5px; margin-left: -2.5px;
    background: var(--shu); transform: scale(0); transition: transform .3s var(--ease);
  }
  .global-nav__list a:hover::after, .global-nav__list a[aria-current="page"]::after { transform: scale(1); }
  .global-nav__list a[aria-current="page"] { color: var(--ai); }
  .global-nav .btn { margin: 0; width: auto; min-height: 44px; padding: 0 22px; font-size: 13px; }
  .global-nav .btn::after { display: none; }
}
/* JS が動かない環境では押しても開かないので、ボタン自体を出さない（ページ移動はフッターのリンクで） */
.no-js .nav-toggle { display: none; }

/* ---------- ロゴ（東啓） ---------- */
.logo__mark { width: 40px; height: 40px; }
.logo__en { letter-spacing: .06em; font-size: 15px; white-space: nowrap; }
.logo__ja { letter-spacing: .12em; font-size: 11px; }
/* 社名が「…株式会社」まで入って長いので、狭い画面では印を縮めず文字を詰め、メニューボタンとの間をあける */
.logo__mark { flex: none; }
.site-header .logo { margin-right: 12px; }
/* PC 表示の幅が狭いとき（1024〜1279px）：社名が長いぶん、ナビの項目が 2 行に折れないよう間隔と社名の字間を詰める */
@media (min-width: 1024px) { .global-nav__list a { white-space: nowrap; } }
@media (min-width: 1024px) and (max-width: 1279px) {
  .global-nav { gap: 20px; }
  .global-nav__list { gap: 18px; }
  .logo__en { font-size: 14px; letter-spacing: .02em; }
  .logo__ja { letter-spacing: .06em; }
}
@media (max-width: 479px) { .logo { gap: 10px; } .logo__en { font-size: 13px; letter-spacing: 0; } .logo__ja { letter-spacing: .08em; } }
@media (max-width: 374px) { .logo { gap: 8px; } .logo__mark { width: 32px; height: 32px; } .logo__en { font-size: 11px; } .logo__ja { letter-spacing: .04em; } }

/* ---------- 言語切り替え ---------- */
.lang-switch { display: flex; gap: 8px; margin-top: 24px; }
.lang-switch a {
  display: grid; place-items: center; min-width: 52px; min-height: 42px; padding: 0 12px;
  font-size: 13px; letter-spacing: .08em; border: 1px solid var(--line); border-radius: 2px; color: var(--muted);
}
.lang-switch a:hover { border-color: var(--ai); color: var(--ai); }
.lang-switch a[aria-current="true"] { background: var(--ai); border-color: var(--ai); color: #fff; }
.lang-switch a[lang="zh-Hans"] { font-family: "Noto Sans SC", "PingFang SC", sans-serif; }
@media (min-width: 1024px) {
  .lang-switch { margin: 0; gap: 0; }
  .lang-switch a { min-width: 0; min-height: 28px; padding: 0 9px; font-size: 12px; border: 0; border-radius: 0; }
  .lang-switch li + li a { border-left: 1px solid var(--line); }
  .lang-switch a[aria-current="true"] { background: none; color: var(--shu); }
}
.lang-switch--footer { margin: 0; gap: 16px; }
.lang-switch--footer a { display: inline; min-width: 0; min-height: 0; padding: 0; border: 0 !important; background: none; font-size: 12px; color: rgba(255,255,255,.65); }
.lang-switch--footer a:hover { color: #fff; }
.lang-switch--footer a[aria-current="true"] { background: none; color: #fff; }

/* ---------- セクション共通 ---------- */
.section { position: relative; padding: 88px 0; }
.section--paper { background: var(--mist); }
.section--flush-top { padding-top: 0; }
@media (min-width: 768px) { .section { padding: 128px 0; } }

/* 見出し上のラベル：朱の小さな角印 + 字間の広い英字 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--shu); }
.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 5.4vw, 40px); margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 16px; }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
@media (min-width: 768px) { .section-head { margin-bottom: 72px; } }

/* ==========================================================
   ヒーロー：縦書きの見出し + 朱印
   ========================================================== */
.hero { position: relative; overflow: hidden; padding: 48px 0 64px; background: var(--paper); }
/* 下半分に青海波をうっすら */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; pointer-events: none;
  background-color: transparent;
  --sg-bg: var(--paper); --sg-line: #e7ebf2;
  background-image:
    radial-gradient(circle at 100% 150%, var(--sg-bg) 24%, var(--sg-line) 24% 28%, var(--sg-bg) 28% 36%, var(--sg-line) 36% 40%, transparent 40%),
    radial-gradient(circle at 0 150%, var(--sg-bg) 24%, var(--sg-line) 24% 28%, var(--sg-bg) 28% 36%, var(--sg-line) 36% 40%, transparent 40%),
    radial-gradient(circle at 50% 100%, var(--sg-line) 10%, var(--sg-bg) 10% 23%, var(--sg-line) 23% 30%, var(--sg-bg) 30% 43%, var(--sg-line) 43% 50%, var(--sg-bg) 50% 63%, var(--sg-line) 63% 71%, transparent 71%),
    radial-gradient(circle at 100% 50%, var(--sg-line) 5%, var(--sg-bg) 5% 15%, var(--sg-line) 15% 20%, var(--sg-bg) 20% 29%, var(--sg-line) 29% 34%, var(--sg-bg) 34% 44%, var(--sg-line) 44% 49%, transparent 49%),
    radial-gradient(circle at 0 50%, var(--sg-line) 5%, var(--sg-bg) 5% 15%, var(--sg-line) 15% 20%, var(--sg-bg) 20% 29%, var(--sg-line) 29% 34%, var(--sg-bg) 34% 44%, var(--sg-line) 44% 49%, transparent 49%);
  background-size: 64px 32px;
  mask-image: linear-gradient(180deg, transparent, #000 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 40px; }
.hero__head { position: relative; display: flex; flex-direction: row-reverse; justify-content: flex-start; align-items: flex-end; gap: 20px; }

.hero__title {
  font-size: clamp(34px, 10vw, 76px); font-weight: 800; color: var(--ai);
  letter-spacing: .12em; line-height: 1.55;
}
/* 日本語・中国語は縦書き（右の列から読む） */
html[lang="ja"] .hero__title, html[lang="zh-Hans"] .hero__title { writing-mode: vertical-rl; text-orientation: mixed; }
/* 傍点：ゴマ点は大きいと読点に見えるので小さな丸点にする */
.hero__title em { font-style: normal; color: var(--shu); text-emphasis: filled dot var(--shu); -webkit-text-emphasis: filled dot var(--shu); }
html[lang="en"] .hero__title { font-size: clamp(34px, 8vw, 72px); letter-spacing: -.005em; line-height: 1.15; }
html[lang="en"] .hero__title em { text-emphasis: none; -webkit-text-emphasis: none; font-style: italic; }
html[lang="en"] .hero__head { flex-direction: column; align-items: flex-start; }

/* 一列ずつ墨がにじむように現れる */
.hero__title .nw { opacity: 0; animation: ink 1.1s var(--ease) forwards; }
.hero__title .nw:nth-of-type(1) { animation-delay: .2s; }
.hero__title .nw:nth-of-type(2) { animation-delay: .55s; }
.hero__title .nw:nth-of-type(3) { animation-delay: .9s; }
@keyframes ink { from { opacity: 0; filter: blur(8px); transform: translateY(-12px); } to { opacity: 1; filter: none; transform: none; } }
html[lang="en"] .hero__title .nw { animation-name: ink-x; }
@keyframes ink-x { from { opacity: 0; filter: blur(8px); transform: translateX(-12px); } to { opacity: 1; filter: none; transform: none; } }

.hero__tag { display: inline-block; font-size: 13px; letter-spacing: .2em; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.hero__lead { font-size: 15px; line-height: 2.1; margin-bottom: 36px; max-width: 30em; }
@media (min-width: 768px) { .hero__lead { font-size: 16px; } }
@media (min-width: 1024px) {
  .hero { padding: 96px 0 128px; }
  .hero__inner { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; }
  .hero__text { order: -1; padding-bottom: 12px; }   /* 縦書きの見出しを右に、本文を左に */
  html[lang="en"] .hero__inner { grid-template-columns: 1.2fr 1fr; }
  html[lang="en"] .hero__text { order: 0; }
  .hero__title { font-size: clamp(56px, 6.2vw, 80px); }
  html[lang="en"] .hero__title { font-size: clamp(48px, 4.8vw, 68px); }
}
/* 読みやすい行長：一行が長くなりすぎないように（英語は約 75 字、日本語・中国語は約 45 字） */
main p, main dd { max-width: 42em; }
html[lang="en"] main p, html[lang="en"] main dd { max-width: 58ch; }
html[lang] main p.center-link { max-width: none; } /* 中央のボタン行は本文ではないので対象外 */

/* ---------- 数字（濃藍の帯） ---------- */
.stats { background: var(--ai-deep); color: #fff; }
.stats ul { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats li { padding: 32px 8px; text-align: center; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.stats li:nth-child(2n) { border-right: 0; }
.stats li:nth-child(n+3) { border-bottom: 0; }
.stats strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: 38px; line-height: 1.2; letter-spacing: .02em; }
.stats strong small { font-size: 14px; margin-left: 4px; color: #f0b4ae; }
.stats li > span { font-size: 12px; letter-spacing: .14em; color: rgba(255,255,255,.7); }
.count { font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
  .stats ul { grid-template-columns: repeat(4, 1fr); }
  .stats li { border-bottom: 0; padding: 48px 8px; }
  .stats li:nth-child(2n) { border-right: 1px solid rgba(255,255,255,.14); }
  .stats li:last-child { border-right: 0; }
  .stats strong { font-size: 52px; }
}

/* ---------- カード ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 768px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
/* 実績は罫線でつながず、カードごとに離す */
.grid--cases { gap: 24px; background: none; border: 0; }

.card { position: relative; background: var(--paper); padding: 36px 28px 40px; transition: background .3s var(--ease); }
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--shu); transition: width .4s var(--ease); }
.card:hover::before { width: 100%; }
a.card:hover { background: #fafbfd; }
.card__icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ai); margin-bottom: 22px; border: 1px solid var(--line); }
.card__icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 14.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 20px; }
.tags span { font-size: 12px; color: var(--ai); letter-spacing: .06em; }
.tags span::before { content: "#"; color: var(--shu); margin-right: 2px; }

/* ---------- 2 カラム ---------- */
.split { display: grid; gap: 48px; align-items: center; }
.split__text p + p { margin-top: 18px; }
.split__text .link-arrow { margin-top: 32px; }
.split__title { font-size: clamp(26px, 5.4vw, 40px); margin: 14px 0 28px; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 88px; } }

.figure-panel {
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  color: #fff; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ai);
}
.figure-panel::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  --sg-bg: var(--ai); --sg-line: #2a3d69;
  background-image:
    radial-gradient(circle at 100% 150%, var(--sg-bg) 24%, var(--sg-line) 24% 28%, var(--sg-bg) 28% 36%, var(--sg-line) 36% 40%, transparent 40%),
    radial-gradient(circle at 0 150%, var(--sg-bg) 24%, var(--sg-line) 24% 28%, var(--sg-bg) 28% 36%, var(--sg-line) 36% 40%, transparent 40%),
    radial-gradient(circle at 50% 100%, var(--sg-line) 10%, var(--sg-bg) 10% 23%, var(--sg-line) 23% 30%, var(--sg-bg) 30% 43%, var(--sg-line) 43% 50%, var(--sg-bg) 50% 63%, var(--sg-line) 63% 71%, transparent 71%),
    radial-gradient(circle at 100% 50%, var(--sg-line) 5%, var(--sg-bg) 5% 15%, var(--sg-line) 15% 20%, var(--sg-bg) 20% 29%, var(--sg-line) 29% 34%, var(--sg-bg) 34% 44%, var(--sg-line) 44% 49%, transparent 49%),
    radial-gradient(circle at 0 50%, var(--sg-line) 5%, var(--sg-bg) 5% 15%, var(--sg-line) 15% 20%, var(--sg-bg) 20% 29%, var(--sg-line) 29% 34%, var(--sg-bg) 34% 44%, var(--sg-line) 44% 49%, transparent 49%);
  background-size: 64px 32px;
}
.figure-panel::after { content: ""; position: absolute; right: 28px; top: 28px; width: 14px; height: 14px; background: var(--shu); }
.figure-panel > * { position: relative; }
.figure-panel__big { font-family: var(--f-display); font-size: clamp(36px, 7vw, 60px); font-weight: 700; line-height: 1.1; letter-spacing: .04em; }
.figure-panel__cap { font-size: 13px; opacity: .8; margin-top: 14px; letter-spacing: .14em; }

/* ---------- 工程（順序のある情報なので漢数字を振る） ---------- */
.process { display: grid; counter-reset: step; }
.process li { counter-increment: step; position: relative; padding: 0 0 36px 64px; }
.process li::before {
  content: counter(step, cjk-decimal);
  position: absolute; left: 0; top: -4px; width: 44px; height: 44px;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 20px; font-weight: 800; color: #fff; background: var(--ai);
}
html[lang="en"] .process li::before { content: counter(step, decimal-leading-zero); font-size: 15px; }
.process li:last-child::before { background: var(--shu); }
.process li::after { content: ""; position: absolute; left: 22px; top: 44px; bottom: 4px; width: 1px; background: var(--line); }
.process li:last-child::after { display: none; }
.process h3 { font-size: 18px; }
.process p { color: var(--muted); font-size: 14px; margin-top: 6px; }
@media (min-width: 1024px) {
  .process { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .process li { padding: 72px 0 0; }
  .process li::after { left: 56px; right: -12px; top: 18px; bottom: auto; width: auto; height: 1px; }
}

/* ---------- 実績カード ---------- */
/* 実績がまだ無いあいだの空白の枠（あとで実績カードを載せる場所） */
.cases-empty { min-height: 240px; border: 1px dashed var(--line); background: rgba(255,255,255,.5); }
@media (min-width: 768px) { .cases-empty { min-height: 320px; } }
.case { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); transition: border-color .3s; }
.case:hover { border-color: var(--ai); }
.case__thumb { aspect-ratio: 16 / 10; position: relative; padding: 22px; overflow: hidden; background: var(--mist); }
.case__thumb::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c, var(--ai)); }
.case__body { padding: 24px 24px 28px; }
.case__meta { font-size: 12px; letter-spacing: .16em; color: var(--shu); }
.case h3 { font-size: 18px; margin: 8px 0 10px; }
.case p { color: var(--muted); font-size: 14px; }
.case__spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.case__spec dt { color: var(--muted); }
.case__spec dd { margin: 0; }
.case[hidden] { display: none; }
.center-link { text-align: center; margin-top: 56px; }

/* ---------- 実績カードのシーン別イラスト（src/case_art.py） ---------- */
.case__thumb .art { position: relative; width: 100%; height: 100%; display: block; }
.art .sf { fill: var(--art-sf); }
.art .sf2 { fill: var(--art-sf2); }
.art .win { stroke: var(--art-ln); stroke-width: 1.5; }
.art .ln { fill: none; stroke: var(--art-ln); stroke-width: 1.5; }
.art .thin { stroke-width: 1; }
.art .dash { stroke-dasharray: 3 4; }
.art .ink { fill: var(--art-ink); }
.art .ink-s { fill: none; stroke: var(--art-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .mut { fill: var(--art-mut); }
.art .acc { fill: var(--c); }
.art .acc-s { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art .acc-s.thin { stroke-width: 2; }
.art .dash-l { stroke-dasharray: 6 6; }
.art .ok { fill: #2fb36b; }
.art .river { fill: none; stroke: var(--art-mut); stroke-width: 10; stroke-linecap: round; opacity: .8; }
.art .ring-bg { fill: none; stroke: var(--art-mut); stroke-width: 9; }
.art .ring { fill: none; stroke: var(--c); stroke-width: 9; stroke-linecap: round; }
.art .num { fill: var(--art-ink); font: 700 14px/1 system-ui, -apple-system, sans-serif; }
.art .check { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
/* 細かい線（グリッド・道路）と、線で描くアクセント（グラフ・ルート・リング）の色。
   既定は枠線・アクセントと同じ。枠線が濃いテーマや、淡いアクセント色があるテーマで上書きする。 */
.art .thin, .art .dash { stroke: var(--art-grid, var(--art-ln)); }
.art .acc-s, .art .ring { stroke: var(--art-acc-line, var(--c)); }
.art .on-bg { fill: var(--art-acc-line, var(--c)); stroke: var(--art-onbg-stroke, none); stroke-width: 1.5; stroke-linejoin: round; }
.case__thumb { --art-sf: #fff; --art-sf2: #f3f5f9; --art-ln: #bfc7d6; --art-grid: #d9dee8; --art-ink: #1e2f55; --art-mut: #e1e6ef; }

/* ---------- 採用バナー ---------- */
.recruit-banner { position: relative; overflow: hidden; padding: 56px 28px; color: #fff; background: var(--ai); }
.recruit-banner::before {
  content: ""; position: absolute; inset: 0; opacity: .6;
  --sg-bg: var(--ai); --sg-line: #283b66;
  background-image:
    radial-gradient(circle at 100% 150%, var(--sg-bg) 24%, var(--sg-line) 24% 28%, var(--sg-bg) 28% 36%, var(--sg-line) 36% 40%, transparent 40%),
    radial-gradient(circle at 0 150%, var(--sg-bg) 24%, var(--sg-line) 24% 28%, var(--sg-bg) 28% 36%, var(--sg-line) 36% 40%, transparent 40%),
    radial-gradient(circle at 50% 100%, var(--sg-line) 10%, var(--sg-bg) 10% 23%, var(--sg-line) 23% 30%, var(--sg-bg) 30% 43%, var(--sg-line) 43% 50%, var(--sg-bg) 50% 63%, var(--sg-line) 63% 71%, transparent 71%),
    radial-gradient(circle at 100% 50%, var(--sg-line) 5%, var(--sg-bg) 5% 15%, var(--sg-line) 15% 20%, var(--sg-bg) 20% 29%, var(--sg-line) 29% 34%, var(--sg-bg) 34% 44%, var(--sg-line) 44% 49%, transparent 49%),
    radial-gradient(circle at 0 50%, var(--sg-line) 5%, var(--sg-bg) 5% 15%, var(--sg-line) 15% 20%, var(--sg-bg) 20% 29%, var(--sg-line) 29% 34%, var(--sg-bg) 34% 44%, var(--sg-line) 44% 49%, transparent 49%);
  background-size: 64px 32px;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.recruit-banner > * { position: relative; }
.recruit-banner .eyebrow { color: rgba(255,255,255,.7); }
.recruit-banner h2 { color: #fff; font-size: clamp(24px, 5.4vw, 40px); margin: 18px 0 20px; }
.recruit-banner p { color: rgba(255,255,255,.82); margin-bottom: 32px; max-width: 34em; }
.recruit-banner__code { display: none; }
@media (min-width: 768px) { .recruit-banner { padding: 88px 72px; } }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 96px 0; background: var(--mist); }
.cta h2 { font-size: clamp(24px, 5vw, 36px); }
.cta h2::after { content: ""; display: block; width: 40px; height: 2px; background: var(--shu); margin: 28px auto 0; }
.cta p { color: var(--muted); margin: 28px auto 40px; max-width: 32em; }
.cta .btn-row { justify-content: center; align-items: center; }
.cta .btn--white { background: var(--ai); color: #fff; border-color: var(--ai); }
.cta .btn--white:hover { background: var(--ai-deep); }
.cta__tel { font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: .08em; color: var(--ai); }
.cta__tel small { display: block; font-family: var(--f-body); font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: .1em; }
@media (min-width: 768px) { .cta { padding: 136px 0; } }

/* ---------- 下層ページ見出し（藍地に青海波） ---------- */
.page-hero { position: relative; overflow: hidden; padding: 64px 0 56px; color: #fff; background: var(--ai); }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  --sg-bg: var(--ai); --sg-line: #283b66;
  background-image:
    radial-gradient(circle at 100% 150%, var(--sg-bg) 24%, var(--sg-line) 24% 28%, var(--sg-bg) 28% 36%, var(--sg-line) 36% 40%, transparent 40%),
    radial-gradient(circle at 0 150%, var(--sg-bg) 24%, var(--sg-line) 24% 28%, var(--sg-bg) 28% 36%, var(--sg-line) 36% 40%, transparent 40%),
    radial-gradient(circle at 50% 100%, var(--sg-line) 10%, var(--sg-bg) 10% 23%, var(--sg-line) 23% 30%, var(--sg-bg) 30% 43%, var(--sg-line) 43% 50%, var(--sg-bg) 50% 63%, var(--sg-line) 63% 71%, transparent 71%),
    radial-gradient(circle at 100% 50%, var(--sg-line) 5%, var(--sg-bg) 5% 15%, var(--sg-line) 15% 20%, var(--sg-bg) 20% 29%, var(--sg-line) 29% 34%, var(--sg-bg) 34% 44%, var(--sg-line) 44% 49%, transparent 49%),
    radial-gradient(circle at 0 50%, var(--sg-line) 5%, var(--sg-bg) 5% 15%, var(--sg-line) 15% 20%, var(--sg-bg) 20% 29%, var(--sg-line) 29% 34%, var(--sg-bg) 34% 44%, var(--sg-line) 44% 49%, transparent 49%);
  background-size: 64px 32px;
  mask-image: linear-gradient(90deg, transparent 25%, #000 90%);
  -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 90%);
}
.page-hero .container { position: relative; }
.page-hero .eyebrow { color: rgba(255,255,255,.7); }
.page-hero h1 { color: #fff; font-size: clamp(32px, 7vw, 56px); font-weight: 800; margin-top: 14px; }
.page-hero p { color: rgba(255,255,255,.8); margin-top: 16px; max-width: 40em; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 32px; display: flex; gap: 8px; flex-wrap: wrap; letter-spacing: .1em; }
.breadcrumb a { color: #fff; }
.breadcrumb li + li::before { content: "／"; margin-right: 8px; }
@media (min-width: 768px) { .page-hero { padding: 104px 0 88px; } }

/* ---------- 404 ---------- */
.notfound { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.notfound p { margin: 0 0 8px; }

/* ---------- 会社概要 ---------- */
.message { display: grid; gap: 32px; }
.message__body p + p { margin-top: 20px; }
.message__body { line-height: 2.2; }
.message__sign { margin-top: 36px; text-align: right; font-size: 13px; color: var(--muted); letter-spacing: .14em; }
.message__sign strong { display: block; font-family: var(--f-display); font-size: 24px; color: var(--ai); letter-spacing: .3em; margin-top: 4px; }
@media (min-width: 1024px) { .message { grid-template-columns: 1fr 2fr; gap: 80px; } }

.profile { border-top: 1px solid var(--ai); }
.profile div { display: grid; gap: 4px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.profile dt { font-weight: 500; color: var(--ai); font-size: 14px; letter-spacing: .12em; }
.profile dd { margin: 0; font-size: 15px; }
@media (min-width: 768px) { .profile div { grid-template-columns: 200px 1fr; gap: 24px; padding: 24px 8px; } }

.timeline { border-left: 1px solid var(--line); margin-left: 4px; }
.timeline li { position: relative; padding: 0 0 32px 32px; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 11px; width: 7px; height: 7px; background: var(--ai); }
.timeline li:last-child::before { background: var(--shu); }
.timeline time { font-family: var(--f-display); font-weight: 700; color: var(--ai); font-size: 16px; letter-spacing: .08em; }
.timeline p { margin-top: 2px; }

.access { display: grid; gap: 28px; }
.access__transit { margin-top: 16px; color: var(--muted); }
.access__map { overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--mist); }
.access__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(.95); }
@media (min-width: 1024px) { .access { grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; } }
/* 地図アプリで開くリンク */
.access__open { margin-top: 12px; }
/* 代表メッセージは本文と署名の右端を揃えるため、段落ではなく囲み全体で行長を抑える */
html[lang] main .message__body p { max-width: none; }
.message__body { max-width: 42em; }
html[lang="en"] .message__body { max-width: 58ch; }

/* ---------- サービス詳細 ---------- */
.service-block { display: grid; gap: 28px; padding: 48px 0; border-top: 1px solid var(--line); }
.service-block:first-of-type { border-top: 0; padding-top: 0; }
.service-block__head { display: flex; gap: 18px; align-items: flex-start; }
.service-block__head .card__icon { flex: none; margin: 0; }
.service-block h2 { font-size: clamp(22px, 4.6vw, 30px); }
.service-block__en { font-size: 11px; color: var(--shu); letter-spacing: .24em; }
.service-block .desc { color: var(--muted); margin-top: 18px; }
.service-block ul { display: grid; }
.service-block li { padding: 16px 4px 16px 28px; position: relative; border-bottom: 1px solid var(--line); }
.service-block li:first-child { border-top: 1px solid var(--line); }
.service-block li::before { content: ""; position: absolute; left: 6px; top: 1.45em; width: 6px; height: 6px; background: var(--shu); }
@media (min-width: 1024px) { .service-block { grid-template-columns: 1fr 1fr; gap: 72px; padding: 64px 0; } }

.anchor-nav { display: flex; gap: 0; overflow-x: auto; margin-bottom: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.anchor-nav a { flex: none; font-size: 13px; padding: 14px 18px; white-space: nowrap; letter-spacing: .06em; }
.anchor-nav a + a { border-left: 1px solid var(--line); }
.anchor-nav a:hover { color: var(--shu); }

.stack { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stack div { background: var(--paper); padding: 26px 24px; }
.stack dt { font-family: var(--f-display); font-size: 12px; color: var(--shu); letter-spacing: .24em; margin-bottom: 10px; }
.stack dd { margin: 0; line-height: 1.9; }
@media (min-width: 768px) { .stack { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stack { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 実績一覧 ---------- */
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter button { font: inherit; font-size: 13px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); cursor: pointer; color: var(--text); letter-spacing: .08em; }
.filter button:hover { border-color: var(--ai); }
.filter button[aria-pressed="true"] { background: var(--ai); border-color: var(--ai); color: #fff; }

/* ---------- 採用 ---------- */
.job { background: var(--paper); border: 1px solid var(--line); }
.job + .job { margin-top: -1px; }
.job summary { list-style: none; cursor: pointer; padding: 26px 64px 26px 24px; position: relative; display: flex; flex-direction: column; gap: 6px; }
.job summary::-webkit-details-marker { display: none; }
.job summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 1px solid var(--ai); border-bottom: 1px solid var(--ai); transform: rotate(45deg); transition: transform .3s var(--ease); }
.job[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.job summary strong { font-family: var(--f-display); font-size: 19px; color: var(--ai); }
.job summary span { font-size: 13px; color: var(--muted); }
.job .profile { margin: 0 24px 28px; }
@media (min-width: 768px) { .job .profile div { grid-template-columns: 160px 1fr; } }

.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.benefits li { background: var(--paper); padding: 22px 18px; }
.benefits strong { display: block; font-family: var(--f-display); color: var(--ai); font-size: 16px; }
.benefits span { font-size: 13px; color: var(--muted); }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(4, 1fr); } }

/* ---------- お問い合わせフォーム ---------- */
.contact-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 2fr; gap: 72px; } }
.contact-side .card { border: 1px solid var(--line); }
.contact-side .card + .card { margin-top: 16px; }
.contact-side .cta__tel { display: block; margin-top: 6px; }

.form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 500; font-size: 14px; color: var(--ai); display: flex; align-items: center; gap: 10px; padding: 0; letter-spacing: .06em; }
.req { font-size: 11px; color: #fff; background: var(--shu); padding: 0 7px; letter-spacing: .1em; }
.opt { font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 0 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; /* iOS のズームを防ぐため 16px 以上 */
  padding: 13px 14px; border: 1px solid #c5ccd9; border-radius: 2px; background: var(--paper); color: var(--text);
}
.field textarea { min-height: 200px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ai); box-shadow: 0 0 0 3px rgba(30,47,85,.12); }
.field [aria-invalid="true"] { border-color: var(--shu); background: #fdf5f4; }
.field__error { font-size: 13px; color: var(--shu); }
.field__error:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { font-weight: 400; color: var(--text); border: 1px solid #c5ccd9; padding: 10px 16px; cursor: pointer; letter-spacing: .02em; }
.radios input { width: auto; margin: 0 8px 0 0; accent-color: var(--ai); }
.radios label:has(input:checked) { border-color: var(--ai); background: var(--mist); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.agree input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--ai); flex: none; }
.agree a { color: var(--ai); text-decoration: underline; }
.form__notice { padding: 16px 18px; font-size: 14px; border-left: 3px solid; }
.form__notice[hidden] { display: none; }
.form__notice--ok { background: #eef5f0; border-color: #4a6b53; color: #2f4a37; }
.form__notice--ng { background: #fdf5f4; border-color: var(--shu); color: #8f231d; }
.form__notice a { font-weight: 700; text-decoration: underline; color: inherit; }
.form__hint { margin-top: 12px; font-size: 13px; color: var(--muted); }
.form__hint[hidden] { display: none; }
.form .btn { width: 100%; }
@media (min-width: 768px) { .form .btn { width: auto; min-width: 300px; } }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
/* 入力内容のコピー（メールソフトが開かない人向け）・文字数 */
.form__copy { display: inline-flex; margin-top: 14px; }
.form__copy-status { display: block; margin-top: 8px; font-size: 13px; }
.form__count { margin: 6px 0 0; font-size: 12px; color: var(--muted); text-align: right; }
.form__count.is-near { color: inherit; font-weight: 700; }

/* ---------- 本文ページ ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 19px; margin: 48px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-top: 10px; }   /* 安全管理措置など、順番のない列挙 */
.prose li + li { margin-top: 6px; }
.prose__dates { margin-top: 36px; color: var(--muted); font-size: 14px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ai-deep); color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: 14px; }
.site-footer .logo__en { color: #fff; }
.site-footer .logo__ja { color: rgba(255,255,255,.55); }
.footer-grid { display: grid; gap: 36px; }
.footer-info { margin-top: 20px; line-height: 2; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
/* 小さな文字も 11px 以上に */
.footer-bottom small { font-size: 11px; }

/* ---------- 多言語フォント ---------- */
html[lang="zh-Hans"] {
  --f-display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --f-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
html[lang="en"] body { line-height: 1.75; letter-spacing: 0; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: .01em; }

/* ---------- スクロール表示 ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- モーション配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .hero__title .nw { opacity: 1; transform: none; filter: none; }
}

/* ---------- タッチ端末（スマホ・タブレット）のタップ領域（44px 以上） ---------- */
@media (max-width: 1023px), (pointer: coarse) {
  .agree { min-height: 44px; align-items: center; }
  .link-arrow { min-height: 44px; }
  .contact-side .cta__tel { display: inline-flex; align-items: center; min-height: 44px; }
  /* パンくず・フッターの言語切替は行内のまま、上下の余白でタップ範囲だけ広げる（レイアウトは動かさない） */
  .breadcrumb a, .lang-switch--footer a { display: inline-block; padding: 16px 8px; margin: -16px -8px; }
  .footer-nav { row-gap: 0; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .logo { min-height: 44px; }
  .anchor-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .filter button { min-height: 44px; }
}
@media (max-width: 1023px), (pointer: coarse) {
  .link-arrow { border-bottom: 0; padding-bottom: 0; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
}
/* タブレット横向き（1024px〜のタッチ端末）：PC 用ナビのままタップ範囲を 44px に */
@media (min-width: 1024px) and (pointer: coarse) {
  .global-nav__list a::before { content: ""; position: absolute; inset: -9px -8px; }
  /* 社名ロゴが長くナビに余裕がないため、横幅は 36px に抑えて折り返しを防ぐ */
  .lang-switch:not(.lang-switch--footer) a { min-width: 36px; min-height: 44px; }
  .global-nav__list a { white-space: nowrap; }
}
/* ============================================================
   印刷用
   ・「背景のグラフィック」が OFF（ブラウザの既定）でも読めるよう、文字は濃い色・背景なしにそろえる
   ・画面操作用の部品と装飾は出さない。実績のイラスト（SVG）は内容なので残す
   ============================================================ */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  /* アニメーションは止めない（見出しなどは opacity:0 から animation で表示するため、止めると消える）。完了後の状態がそのまま印刷される */
  *, *::before, *::after { transition: none !important; }
  /* スクロールで出す要素は、印刷ではスクロールが起きないので最初から見せる */
  .reveal { opacity: 1 !important; transform: none !important; }
  /* 暗い配色を宣言しているページでも、紙の余白が黒くならないよう明るい配色に切り替える */
  :root { color-scheme: light !important; }
  html, body { background: #fff !important; }
  /* 疑似要素で描いた模様や色付きの丸も、背景の印刷設定に関係なく同じ見た目になるよう消す */
  body *::before, body *::after {
    color: #1b1b1b !important; -webkit-text-fill-color: currentColor !important;
    background: transparent !important; box-shadow: none !important; text-shadow: none !important;
  }
  body *:not(svg):not(svg *) {
    color: #1b1b1b !important; -webkit-text-fill-color: currentColor !important;
    background: transparent !important; box-shadow: none !important; text-shadow: none !important; filter: none !important;
  }
  .nav-toggle, .global-nav, .lang-switch, .filter, .anchor-nav, .center-link, .btn, .footer-nav, .sr-only, .motion-toggle { display: none !important; }
  .site-header { position: static !important; }
  .site-header::before { display: none !important; }
  /* 画面の高さいっぱいのヒーローや大きな余白は紙では無駄になる */
  .hero { min-height: 0 !important; height: auto !important; padding-block: 8px 20px !important; }
  .section { padding-block: 24px !important; }
  /* A4 の印刷幅（約 700px）はスマホ用の 1 列になるため、カード類は 2 列に並べてページ数を抑える */
  .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  input, textarea, select { border: 1px solid #888 !important; }
  h1, h2, h3, .section-head { break-after: avoid; }
  .section-head { break-inside: avoid; }   /* 小見出し（eyebrow）と見出しを同じページに */
  .card, .case, .stats li, .service-block, .timeline li, .job, dl > div, figure, .cta, .site-footer { break-inside: avoid; }
}
