/* ============================================================
   株式会社C-Creation コーポレートサイト
   Design tokens & components
   - 藍墨 × 和紙白 × 瑠璃 × 金茶
   - 見出し: しっぽり明朝 B1 / 本文: Zen Kaku Gothic New / ラベル: IBM Plex Mono
   - シグネチャ: 「道筋」レール（縦罫線＋区画番号）/ 非対称画像フレーム
   ============================================================ */

:root {
  --ink: #1b2632;
  --ink-70: rgba(27, 38, 50, 0.7);
  --ink-45: rgba(27, 38, 50, 0.68); /* ラベル・注記用。paper-2上でもコントラストAA(4.5:1)を満たす値 */
  --ink-25: rgba(27, 38, 50, 0.25);
  --ink-12: rgba(27, 38, 50, 0.12);
  --paper: #f5f6f3;
  --paper-2: #ebeee8;
  --lapis: #2b50c8;
  --lapis-deep: #1f3a94;
  --hakugun: #c9d8e4;
  --kincha: #7f5c2b; /* 必須マーカー等の機能文字にも使うためAA余裕確保 */
  --white: #fdfdfc;

  --font-display: "Shippori Mincho B1", "Yu Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-mono: "IBM Plex Mono", "Zen Kaku Gothic New", "Consolas", monospace; /* 和文はZen角ゴへフォールバック */

  --w-max: 1200px;
  --w-narrow: 820px;
  --gutter: clamp(20px, 4vw, 48px);
  --sec-pad: clamp(72px, 11vw, 150px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 2.05;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--lapis); color: var(--white); }
:focus-visible { outline: 2px solid var(--lapis); outline-offset: 3px; }

/* スキップリンク（キーボード利用者向け） */
.skip-link {
  position: absolute;
  left: 12px; top: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.08em;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.55; letter-spacing: 0.06em; word-break: keep-all; overflow-wrap: anywhere; }
.t-display { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.42; }
.t-h2 { font-size: clamp(24px, 3.1vw, 38px); }
.t-h3 { font-size: clamp(18px, 2vw, 24px); }
.t-lead { font-size: clamp(15px, 1.4vw, 17px); line-height: 2.3; }
.t-mono { font-family: var(--font-mono); letter-spacing: 0.08em; }
.t-en { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-45); }

/* 縦書きの見出しラベル（シグネチャ要素） */
.tate {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--lapis);
}

/* ---------- layout ---------- */
.wrap { max-width: var(--w-max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--w-narrow); }

.section { padding-block: var(--sec-pad); position: relative; }
.section--tight { padding-block: calc(var(--sec-pad) * 0.62); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .t-en { color: rgba(245, 246, 243, 0.6); }
.section--ink .t-lead { color: rgba(245, 246, 243, 0.85); }
.section--ink .tate { color: var(--hakugun); }

/* 道筋レール：セクション左端を貫く罫線＋区画番号 */
.rail { position: relative; }
.rail::before {
  content: "";
  position: absolute;
  left: max(calc((100vw - var(--w-max)) / 2 - 36px), 14px);
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--ink-25) 8%, var(--ink-25) 92%, transparent);
}
.section--ink.rail::before { background: linear-gradient(to bottom, transparent, rgba(245,246,243,.25) 8%, rgba(245,246,243,.25) 92%, transparent); }
.rail__no {
  position: absolute;
  left: max(calc((100vw - var(--w-max)) / 2 - 36px), 14px);
  top: var(--sec-pad);
  z-index: 2;
  transform: translate(-50%, -8px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--lapis);
  background: var(--paper);
  padding-block: 10px;
  writing-mode: vertical-rl;
}
.section--paper2 .rail__no { background: var(--paper-2); }
.section--ink .rail__no { background: var(--ink); color: var(--hakugun); }
.section--tight .rail__no { top: calc(var(--sec-pad) * 0.62); }
@media (max-width: 880px) {
  /* 761〜880px帯で区画番号チップが本文カラムに被るためレールごと非表示 */
  .rail::before, .rail__no { display: none; }
}

/* section heading block */
.sec-head { margin-bottom: clamp(36px, 5.5vw, 72px); }
.sec-head--tight { margin-bottom: 32px; }
.sec-head--flush { margin-bottom: 0; }
.sec-head .t-en { display: block; margin-bottom: 14px; }
.sec-head__sub { margin-top: 18px; max-width: 640px; color: var(--ink-70); }
.section--ink .sec-head__sub { color: rgba(245, 246, 243, 0.72); }

/* ---------- header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.header.is-scrolled {
  background: rgba(245, 246, 243, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--ink-12);
}
.header__inner {
  max-width: var(--w-max);
  margin-inline: auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink); /* SVGマークのC弧・中心点はcurrentColor */
  line-height: 1;
}
.logo__mark svg { width: 27px; height: 27px; display: block; }
.logo__mark .mark-path { stroke: var(--lapis); }
.footer .logo__mark .mark-path { stroke: var(--hakugun); opacity: .85; }
.logo__text { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: 0.08em; }
.logo__kk { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--ink-45); display: block; margin-top: 2px; }

.gnav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.gnav__link {
  font-size: 13px;
  letter-spacing: 0.1em;
  padding-block: 6px;
  position: relative;
  white-space: nowrap;
}
.gnav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--lapis);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.gnav__link:hover::after, .gnav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.gnav__link[aria-current="page"] { color: var(--lapis); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.btn:hover { background: var(--lapis); border-color: var(--lapis); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--lapis); border-color: var(--lapis); color: var(--white); }
/* 暗背景用ゴーストボタン */
.btn--ghost-light { background: transparent; border-color: rgba(245,246,243,.55); color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn svg { width: 14px; height: 14px; }
.btn--sm { padding: 9px 18px; font-size: 12px; }

/* mobile nav（ナビ7項目のためPC表示は1000px超から） */
.nav-toggle { display: none; }
@media (max-width: 1000px) {
  .gnav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: safe center;
    background: var(--ink);
    gap: 26px;
    padding-block: 96px 48px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s;
  }
  .gnav.is-open { opacity: 1; visibility: visible; }
  .gnav__link { color: var(--paper); font-size: 16px; font-family: var(--font-display); }
  .gnav .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 110;
    width: 44px; height: 44px;
  }
  .nav-toggle span {
    position: absolute;
    left: 10px;
    width: 24px; height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease-out), opacity 0.3s, background 0.3s;
  }
  .nav-toggle span:nth-child(1) { top: 17px; }
  .nav-toggle span:nth-child(2) { top: 26px; }
  .nav-toggle.is-open span { background: var(--paper); }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(24deg); }
  .nav-toggle.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-24deg); }
  body.nav-locked { overflow: hidden; }
}
/* 低い画面高（横持ち・小型端末）ではドロワーの余白を圧縮し全項目を視認しやすく */
@media (max-width: 1000px) and (max-height: 620px) {
  .gnav { gap: 14px; padding-block: 72px 32px; }
  .gnav__link { font-size: 14px; }
}

/* ---------- 画像プレースホルダーフレーム ----------
   使い方: <div class="ph ph--32"><span class="ph__label">PHOTO — 商談風景</span></div>
   画像差し替え: この div の中に <img src="..." alt="..."> を置くだけ。
--------------------------------------------------- */
.ph {
  position: relative;
  overflow: hidden;
  min-height: 160px; /* aspect-ratio非対応環境での高さ0対策 */
  background:
    repeating-linear-gradient(45deg, transparent 0 9px, var(--ink-12) 9px 10px),
    linear-gradient(155deg, #dfe5de 0%, #cdd7da 100%);
  border: 1px solid var(--ink-25);
}
.ph::before, .ph::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--ink);
  border-style: solid;
  z-index: 2;
}
.ph::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.ph::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
.ph__label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-45);
  white-space: nowrap;
  z-index: 1;
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
}
/* 地図埋め込み（Googleマップ等のiframe） */
.ph iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 3;
  filter: grayscale(0.35) contrast(0.95);
}
/* 比率バリエーション */
.ph--169 { aspect-ratio: 16 / 9; }
.ph--32  { aspect-ratio: 3 / 2; }
.ph--43  { aspect-ratio: 4 / 3; }
.ph--34  { aspect-ratio: 3 / 4; }
.ph--11  { aspect-ratio: 1 / 1; }
.ph--219 { aspect-ratio: 21 / 9; }
/* 罫線オフセット装飾（非対称感） */
.ph-shift { position: relative; }
.ph-shift::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--ink-25);
  pointer-events: none;
}
.ph-shift--l::after { inset: 14px 14px -14px -14px; }
.section--ink .ph { border-color: rgba(245,246,243,.3); background: repeating-linear-gradient(45deg, transparent 0 9px, rgba(245,246,243,.08) 9px 10px), linear-gradient(155deg, #26333f, #1f2a35); }
.section--ink .ph::before, .section--ink .ph::after { border-color: var(--hakugun); }
.section--ink .ph__label { color: rgba(245,246,243,.4); }
.section--ink .ph-shift::after { border-color: rgba(245,246,243,.25); }

/* ---------- 背景画像スロット ----------
   使い方: <section class="bg-media"> <div class="bg-media__ph"><span class="ph__label">BG — ...</span></div> <div class="bg-media__overlay"></div> ...content
   画像差し替え: .bg-media__ph の中に <img> を置くだけ。
--------------------------------------------------- */
.bg-media { position: relative; overflow: hidden; }
.bg-media__ph {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(27,38,50,.05) 14px 15px),
    linear-gradient(165deg, #d4dcd6 0%, #b9c7cd 55%, #9fb2bd 100%);
  z-index: 0;
}
.bg-media__ph .ph__label { top: auto; bottom: 14px; left: auto; right: 18px; transform: none; }
.bg-media__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-media__overlay { position: absolute; inset: 0; z-index: 1; }
.bg-media__overlay--ink { background: linear-gradient(rgba(27,38,50,.86), rgba(27,38,50,.92)); }
.bg-media > .wrap { position: relative; z-index: 2; }

/* ---------- 非対称スプリット ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--75 { grid-template-columns: 7fr 5fr; }
.split--57 { grid-template-columns: 5fr 7fr; }
.split--48 { grid-template-columns: 4fr 8fr; }
.split--84 { grid-template-columns: 8fr 4fr; }
/* 画像をコンテナ外へ引き出す */
.pull-r { margin-right: calc(var(--gutter) * -1.3); }
.pull-l { margin-left: calc(var(--gutter) * -1.3); }
/* サブ画像の右はみ出し（860px以下で解除） */
.nudge-r { margin-right: -8%; }
/* wrap外余白が薄い帯域では引き出し量を抑え、ph-shiftの外罫線の見切れを防ぐ */
@media (max-width: 1320px) {
  .pull-r { margin-right: calc(var(--gutter) * -0.5); }
  .pull-l { margin-left: calc(var(--gutter) * -0.5); }
}
@media (max-width: 860px) {
  .split--75, .split--57, .split--48, .split--84 { grid-template-columns: 1fr; }
  .pull-r, .pull-l { margin: 0; }
  .nudge-r { margin-right: 0; }
}
/* 上端揃えスプリット */
.split--top { align-items: start; }

/* ---------- カード ---------- */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ink-25); border: 1px solid var(--ink-25); }
.svc-card { background: var(--paper); padding: clamp(28px, 3.6vw, 48px); position: relative; transition: background 0.35s var(--ease-out); }
.svc-card:hover { background: var(--white); }
.svc-card__no { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--lapis); display: block; margin-bottom: 18px; }
.svc-card__title { font-size: clamp(18px, 2vw, 22px); margin-bottom: 6px; }
.svc-card__en { display: block; margin-bottom: 16px; }
.svc-card__body { font-size: 14px; color: var(--ink-70); line-height: 2; }
.svc-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 12.5px; letter-spacing: 0.12em; color: var(--lapis); }
.svc-card__link svg { width: 13px; height: 13px; transition: transform 0.3s var(--ease-out); }
.svc-card:hover .svc-card__link svg { transform: translateX(4px); }
@media (max-width: 760px) { .svc-list { grid-template-columns: 1fr; } }

/* ---------- 会社概要テーブル ---------- */
.def-table { width: 100%; border-top: 1px solid var(--ink-25); }
.def-table div { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--ink-12); }
.def-table dt { padding: 20px 12px; font-family: var(--font-display); font-size: 14px; letter-spacing: 0.1em; color: var(--ink-70); }
.def-table dd { padding: 20px 12px; font-size: 14.5px; }
.def-table--wide div { grid-template-columns: 260px 1fr; }
@media (max-width: 640px) {
  .def-table div { grid-template-columns: 1fr; }
  .def-table dt { padding-bottom: 0; }
  .def-table dd { padding-top: 6px; }
}

/* ---------- 沿革タイムライン ---------- */
.timeline { border-left: 1px solid var(--ink-25); padding-left: clamp(24px, 4vw, 48px); }
.timeline li { position: relative; padding-block: 18px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(clamp(24px, 4vw, 48px) * -1 - 3.5px);
  top: 34px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lapis);
}
.timeline__date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--lapis); display: block; margin-bottom: 4px; }
.timeline__title { font-family: var(--font-display); font-size: 16.5px; margin-bottom: 4px; }
.timeline__body { font-size: 13.5px; color: var(--ink-70); }

/* ---------- ニュースリスト ---------- */
.news-list { border-top: 1px solid var(--ink-25); }
.news-list__item { display: grid; grid-template-columns: 130px 110px 1fr auto; gap: 18px; align-items: center; padding: 22px 8px; border-bottom: 1px solid var(--ink-12); transition: background 0.3s var(--ease-out); }
a.news-list__item:hover { background: var(--white); }
.news-list__date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--ink-45); }
.news-list__cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--lapis); border: 1px solid currentColor; padding: 3px 10px; text-align: center; }
.news-list__title { font-size: 14px; }
.news-list__item svg { width: 13px; height: 13px; color: var(--ink-45); }
@media (max-width: 640px) {
  .news-list__item { grid-template-columns: 1fr; gap: 8px; }
  .news-list__cat { justify-self: start; }
  .news-list__item svg { display: none; } /* 1カラム時に矢印が単独行になるのを防ぐ */
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink-25); }
.faq details { border-bottom: 1px solid var(--ink-12); }
.faq summary {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 24px 8px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 15.5px;
  letter-spacing: 0.06em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--font-mono); color: var(--lapis); font-size: 13px; }
.faq summary::after { content: "+"; margin-left: auto; font-family: var(--font-mono); color: var(--ink-45); transition: transform 0.3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { display: flex; gap: 16px; padding: 0 8px 26px; font-size: 14px; color: var(--ink-70); }
.faq__a::before { content: "A"; font-family: var(--font-mono); color: var(--kincha); font-size: 13px; flex-shrink: 0; }

/* ---------- フォーム ---------- */
.form-grid { display: grid; gap: 28px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.08em; }
.form-row .req { font-family: var(--font-mono); font-size: 10px; color: var(--kincha); margin-left: 8px; letter-spacing: 0.14em; white-space: nowrap; }
.form-row input, .form-row select, .form-row textarea {
  font: inherit;
  font-size: 14.5px;
  padding: 14px 16px;
  border: 1px solid var(--ink-25);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.3s var(--ease-out);
  width: 100%;
  border-radius: 0;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--lapis); outline: none; }
.form-row textarea { min-height: 180px; resize: vertical; }
/* iOS Safariのフォーカス時自動ズーム防止（16px未満で発生） */
@media (max-width: 640px) {
  .form-row input, .form-row select, .form-row textarea { font-size: 16px; }
}
.form-note { font-size: 12.5px; color: var(--ink-45); }
.form-note a { color: var(--lapis); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 数字ステートメント ---------- */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-25); border-block: 1px solid var(--ink-25); }
.figures > div { background: var(--paper); padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.figures .num { font-family: var(--font-mono); font-size: clamp(28px, 3.6vw, 44px); letter-spacing: 0.02em; color: var(--ink); line-height: 1.2; }
.figures .num small { font-size: 0.45em; letter-spacing: 0.1em; color: var(--kincha); margin-left: 4px; }
.figures .cap { font-size: 12px; color: var(--ink-70); margin-top: 10px; letter-spacing: 0.1em; }
@media (max-width: 640px) { .figures { grid-template-columns: 1fr; } }

/* ---------- ページヒーロー（下層） ---------- */
.page-hero { padding-top: clamp(140px, 18vw, 220px); padding-bottom: clamp(48px, 7vw, 90px); position: relative; }
.page-hero .t-en { display: block; margin-bottom: 16px; }
.page-hero__title { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.4; }
.page-hero__lead { margin-top: 24px; max-width: 620px; color: var(--ink-70); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-45); margin-bottom: clamp(28px, 4vw, 48px); }
.breadcrumb a, .breadcrumb span { white-space: nowrap; }
.breadcrumb a:hover { color: var(--lapis); }
.breadcrumb span[aria-hidden] { color: var(--ink-25); }

/* ---------- CTAセクション ---------- */
.cta-sec { text-align: center; }
.cta-sec .t-en { display: block; margin-bottom: 18px; }
.cta-sec__title { font-size: clamp(24px, 3.4vw, 40px); margin-bottom: 20px; }
.cta-sec__body { max-width: 560px; margin-inline: auto; color: rgba(245,246,243,.72); margin-bottom: 40px; }
.cta-sec .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 96px) 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin-bottom: clamp(40px, 6vw, 72px); }
.footer .logo__text, .footer .logo__mark { color: var(--paper); }
.footer .logo__mark { color: var(--hakugun); }
.footer__addr { font-size: 13px; color: rgba(245,246,243,.6); font-style: normal; margin-top: 18px; line-height: 2.1; }
.footer__head { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.24em; color: rgba(245,246,243,.6); margin-bottom: 18px; text-transform: uppercase; }
.footer__nav li { margin-bottom: 12px; }
.footer__nav a { font-size: 13.5px; color: rgba(245,246,243,.8); transition: color 0.3s; }
.footer__nav a:hover { color: var(--hakugun); }
.footer__bottom { border-top: 1px solid rgba(245,246,243,.15); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bottom small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: rgba(245,246,243,.6); }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { font-size: 12px; color: rgba(245,246,243,.6); }
.footer__legal a:hover { color: var(--hakugun); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- reveal ----------
   JSが動く環境（html.js）でのみ初期非表示にする。JS無効・読込失敗時は常に可視 */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal-line { transition-delay: calc(var(--d, 0) * 0.12s); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ---------- home hero ---------- */
.hero {
  min-height: 100vh; /* svh非対応環境向けフォールバック */
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero__bg-c {
  position: absolute;
  right: -6vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(420px, 58vw, 900px);
  height: auto;
  z-index: 1;
  pointer-events: none;
}
.hero__bg-c path { fill: none; stroke: var(--ink-12); stroke-width: 1.2; }
.hero__inner { position: relative; z-index: 3; width: 100%; padding-top: 80px; }
.hero__label { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(24px, 3vw, 40px); }
.hero__label .line { width: 56px; height: 1px; background: var(--lapis); }
.hero__title { font-size: clamp(34px, 5.4vw, 68px); line-height: 1.42; letter-spacing: 0.08em; }
.hero__title .accent { color: var(--lapis); }
.hero__lead { margin-top: clamp(24px, 3.4vw, 44px); max-width: 560px; color: var(--ink-70); }
.hero__cta { margin-top: clamp(32px, 4.4vw, 56px); display: flex; gap: 16px; flex-wrap: wrap; }
.hero__foot {
  position: absolute;
  bottom: 32px; left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.hero__scroll { display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.3em; color: var(--ink-45); }
.hero__scroll .bar { width: 1px; height: 48px; background: var(--ink-25); position: relative; overflow: hidden; }
.hero__scroll .bar::after { content: ""; position: absolute; inset: 0; background: var(--lapis); animation: scrollbar 2.2s var(--ease-out) infinite; }
@keyframes scrollbar { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }
/* ヒーロー右の画像スロット群（非対称コラージュ） */
.hero__media {
  position: absolute;
  right: clamp(16px, 5vw, 80px);
  top: 50%;
  transform: translateY(-46%);
  z-index: 2;
  width: clamp(260px, 30vw, 430px);
  display: grid;
  gap: 18px;
}
.hero__media .ph:nth-child(2) { width: 64%; margin-left: auto; margin-right: -8%; }
@media (max-width: 1060px) { .hero__media { opacity: 0.5; width: clamp(200px, 26vw, 320px); } }
@media (max-width: 860px) {
  .hero { min-height: auto; padding-block: 140px 90px; flex-direction: column; align-items: stretch; }
  .hero__inner { order: 1; }
  .hero__media { order: 2; position: static; transform: none; opacity: 1; width: 100%; margin-top: 48px; padding-inline: var(--gutter); grid-template-columns: 1fr 1fr; align-items: start; }
  .hero__media .ph:nth-child(2) { width: 100%; margin: 24px 0 0; }
  .hero__foot { display: none; }
}

/* ---------- 汎用小物 ---------- */
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.12em; color: var(--lapis); border-bottom: 1px solid transparent; transition: border-color .3s; }
.link-arrow:hover { border-color: var(--lapis); }
.link-arrow svg { width: 14px; height: 14px; }
.divider-jp {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; color: var(--ink-45);
}
.divider-jp::before, .divider-jp::after { content: ""; flex: 1; height: 1px; background: var(--ink-12); }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-row span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-70); border: 1px solid var(--ink-25); padding: 6px 14px; }
.section--ink .tag-row span { color: rgba(245,246,243,.75); border-color: rgba(245,246,243,.3); }

/* モバイルのみ改行 */
.sp-only { display: none; }
@media (max-width: 640px) { .sp-only { display: inline; } }

/* 課題リスト（事業ページ共用） */
.issue-list { border-top: 1px solid var(--ink-25); }
.issue-list li { position: relative; padding: 14px 8px 14px 36px; border-bottom: 1px solid var(--ink-12); font-size: 14px; color: var(--ink-70); line-height: 1.9; }
.issue-list li svg { position: absolute; left: 8px; top: 20px; width: 15px; height: 15px; color: var(--lapis); }

/* 本文中の下線リンク */
.txt-link { color: var(--lapis); text-decoration: underline; text-underline-offset: 3px; }
.txt-link:hover { color: var(--lapis-deep); }

/* 補足段落（本文より一段引いたトーン） */
.txt-sub { color: var(--ink-70); }
.section--ink .txt-sub { color: rgba(245,246,243,.72); }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ---------- 記事（コラム）本文 ---------- */
.article { max-width: 720px; margin-inline: auto; }
.article__meta { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.article__meta time { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--ink-45); }
.article__lead { font-family: var(--font-display); font-size: clamp(16px, 1.7vw, 19px); line-height: 2.2; letter-spacing: 0.05em; margin-bottom: clamp(36px, 5vw, 56px); }
.article h2 { font-size: clamp(19px, 2.2vw, 24px); margin: clamp(44px, 6vw, 68px) 0 22px; padding-left: 18px; border-left: 2px solid var(--lapis); }
.article h3 { font-size: clamp(16px, 1.8vw, 19px); margin: 36px 0 16px; }
.article p { margin-bottom: 22px; }
.article p:last-child { margin-bottom: 0; }
.article ul, .article ol { margin: 0 0 22px; }
.article li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.article ul li::before { content: "—"; position: absolute; left: 0; color: var(--lapis); font-family: var(--font-mono); }
.article ol { counter-reset: art; }
.article ol li { counter-increment: art; padding-left: 30px; }
.article ol li::before { content: counter(art, decimal-leading-zero); position: absolute; left: 0; font-family: var(--font-mono); font-size: 12px; color: var(--lapis); top: 4px; }
.article strong { font-weight: 700; }
.article .article__note { font-size: 13px; color: var(--ink-45); border-top: 1px solid var(--ink-12); padding-top: 20px; margin-top: clamp(40px, 6vw, 60px); }
.article .ph { margin-block: clamp(32px, 5vw, 48px); }

/* 記事 前後ナビ */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--ink-25); margin-top: clamp(48px, 7vw, 80px); }
.article-nav a { padding: 24px 18px; display: block; transition: background 0.3s var(--ease-out); }
.article-nav a:hover { background: var(--white); }
.article-nav a + a { border-left: 1px solid var(--ink-12); text-align: right; }
.article-nav .dir { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-45); margin-bottom: 8px; }
.article-nav .ttl { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.06em; }
.article-nav .is-empty { pointer-events: none; }
@media (max-width: 560px) { .article-nav { grid-template-columns: 1fr; } .article-nav a + a { border-left: 0; border-top: 1px solid var(--ink-12); text-align: left; } }

/* コラムカード */
.col-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.col-card { display: block; }
.col-card .ph { margin-bottom: 18px; }
.col-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.col-card__meta time { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-45); }
.col-card__title { font-family: var(--font-display); font-size: 16px; line-height: 1.8; letter-spacing: 0.05em; transition: color 0.3s var(--ease-out); }
.col-card:hover .col-card__title { color: var(--lapis); }
.col-card__excerpt { font-size: 13px; color: var(--ink-70); margin-top: 10px; line-height: 1.95; }
.col-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; letter-spacing: 0.12em; color: var(--lapis); }
.col-card__more svg { width: 13px; height: 13px; transition: transform 0.3s var(--ease-out); }
.col-card:hover .col-card__more svg { transform: translateX(4px); }
@media (max-width: 860px) { .col-list { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* カテゴリチップ（news-list__cat の単独使用向け別名を兼ねる） */
.cat-chip { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--lapis); border: 1px solid currentColor; padding: 3px 10px; }

/* 関連リンク行 */
.rel-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ink-25); border: 1px solid var(--ink-25); }
.rel-row a { background: var(--paper); padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: background 0.3s var(--ease-out); }
.rel-row a:hover { background: var(--white); }
.rel-row .ttl { font-family: var(--font-display); font-size: 14.5px; letter-spacing: 0.06em; }
.rel-row .ttl small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--ink-45); margin-bottom: 6px; text-transform: uppercase; }
.rel-row svg { width: 14px; height: 14px; color: var(--lapis); flex-shrink: 0; }
@media (max-width: 640px) { .rel-row { grid-template-columns: 1fr; } }

/* 縦書きラベル＋画像の複合見出し（about/approach共用） */
.tate-head { display: flex; gap: clamp(16px, 2.4vw, 28px); align-items: stretch; }
.tate-head .tate { flex-shrink: 0; padding-top: 4px; }
.tate-head > :last-child { flex: 1; }
@media (max-width: 640px) {
  .tate-head { flex-direction: column; }
  .tate-head .tate { writing-mode: horizontal-tb; letter-spacing: 0.28em; }
}
