/* ============================================================
   株式会社OGZA｜サイトCSS（第2弾：カンプの再現度を上げる作り直し・2026-10-30）
   ------------------------------------------------------------
   ★規律：ブランド色の直値をここに書かない。色は必ず var() を参照する
     （基本トークンは parts/theme.php、見出し色・本文色・循環図の円・札の色は
       parts/header.php が theme.accent / brand / ink から生成する）。
     白・黒の透過rgba等、ブランドと無関係な値だけ直値でよい。
   ★アニメは opacity / transform / stroke-dashoffset に限定（レイアウトを動かさない）。
     prefers-reduced-motion: reduce で全停止し最終状態を出す。
   ★見出し・リード文のスマホ改行は意味の切れ目で固定する（<br class="br-sp">／行の配列）。
   ★基準＝PC 1440px（カンプ721px幅の2倍）。コンテンツ幅1300・左右の余白70
   ============================================================ */

@font-face {
  font-family: 'BrandEn';
  src: url('/assets/fonts/brand-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ── リセット・ベース ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
sup.tm { font-size: .5em; vertical-align: super; line-height: 0; font-weight: 500; margin-left: .04em; white-space: nowrap; }
.en { font-family: var(--font-en); letter-spacing: .04em; }
.pc-br { display: none; }
@media (min-width: 768px) { .pc-br { display: inline; } }
.br-sp { display: none; }
@media (max-width: 767px) { .br-sp { display: inline; } }

:root {
  --wrap: 1300px;
  --gutter: 40px;
  --pad-sec: clamp(64px, 7vw, 100px);
  --pad-sec-s: clamp(52px, 5.6vw, 80px);
  --ease: cubic-bezier(.22, .65, .3, 1);
}
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ── ページ全体のフェードイン（JSあり時のみ） ─────────────── */
html.js body { animation: page-in .6s ease both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* ── スクロール出現（[data-rev]）＋ 子要素の時間差（stagger） ── */
html.js [data-rev] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js [data-rev].on,
html.js.rev-safe [data-rev] { opacity: 1; transform: none; }
/* 親が .on になった後、子を順に出す（カード・ロゴ・ステップ等）。--i は PHP が振る */
html.js [data-stagger] > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s ease, transform .7s var(--ease);
  transition-delay: calc(.08s + var(--i, 0) * .09s);
}
html.js [data-stagger].on > *, html.js.rev-safe [data-stagger] > * { opacity: 1; transform: none; }

/* ── ボタン（ピル・48px）・テキストリンク・丸矢印 ─────────── */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; background: var(--brand); color: var(--on-brand);
  font-weight: 600; font-size: 15px; letter-spacing: .06em; line-height: 1.4;
  padding: 12px 36px; border: 1px solid var(--brand);
  border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
/* ホバー時の微かな光沢（白の透過＝ブランド色ではない） */
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s ease;
}
.btn:hover { background: var(--brand-d); border-color: var(--brand-d); transform: translateY(-2px); box-shadow: 0 10px 24px var(--sh-2); }
.btn:hover::after { transform: translateX(120%); }
.btn svg { width: 22px; height: 8px; flex: none; transition: transform .3s ease; }
.btn:hover svg { transform: translateX(6px); }
.btn--lg { min-height: 56px; padding: 14px 48px; font-size: 16px; }
/* 枠線ボタン（2つ並ぶときの2番手）。ホバーで塗りに変わる */
.btn--line { background: transparent; color: var(--brand); }
.btn--line:hover { background: var(--brand); color: var(--on-brand); }

.tlink {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--heading); font-weight: 600; font-size: 14px; letter-spacing: .04em;
}
.tlink svg { width: 22px; height: 8px; transition: transform .3s ease; }
.tlink:hover { color: var(--brand); }
.tlink:hover svg { transform: translateX(5px); }

.cbtn {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--heading);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.cbtn svg { width: 15px; height: 6px; transition: transform .3s ease; }

/* ── セクション共通 ───────────────────────────────────────── */
.sec { padding-block: var(--pad-sec); background: var(--bg); }
.sec--tint { background: var(--tint-1); }
.sec--s { padding-block: var(--pad-sec-s); }
/* 「｜見出し」＝左に短い縦線のラベル（カンプの共通パターン）。線が伸びてから文字が出る */
.sl {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; letter-spacing: .08em; line-height: 1.3;   /* 16→22px＝2026-10-30 ボス指示 */
  color: var(--heading);
}
.sl::before {
  content: ''; width: 3px; height: 1.1em; background: var(--brand); flex: none;
  transform: scaleY(0); transform-origin: top; transition: transform .5s ease .1s;
}
html.js [data-rev].on .sl::before, html.js [data-rev].on.sl::before,
html:not(.js) .sl::before, html.rev-safe .sl::before { transform: scaleY(1); }
.sl--onband { color: #fff; }
.sl--onband::before { background: #fff; }
.sec__head { margin-bottom: clamp(28px, 3.2vw, 44px); }
.lead { font-size: 16px; line-height: 1.95; color: var(--text); }
.lead p + p { margin-top: 1em; }
.h-lg { font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; line-height: 1.55; letter-spacing: .03em; color: var(--heading); }

/* ============================================================
   ヘッダー（白・80px・スクロールで少し縮み、背景に軽いぼかし）
   ============================================================ */
.hd {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
}
.hd.stuck {
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px var(--sh-1);
}
.hd--hide { transform: translateY(-100%); }
.hd__in {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; transition: height .35s ease;
}
.hd.stuck .hd__in { height: 66px; }
/* ロゴ＝実ロゴのマーク（画像・描き直しなし）＋セリフ体の「OGZA」。2026-10-30 ボス指示で大きく（マーク30→48px・文字32→40px） */
.logo { display: inline-flex; align-items: center; gap: 14px; }
/* リンク（a）がインラインのままだと行の高さ分ロゴが5px上に浮く＝ナビ・ボタンと縦中心をそろえる（2026-10-30 ボス指摘） */
.hd__logo, .ft__logo { display: flex; align-items: center; line-height: 1; }
.logo__mark { display: block; width: auto; height: 48px; transition: height .35s ease; }
.hd.stuck .logo__mark { height: 40px; }
/* 文字「OGZA」＝正式ロゴの文字の切り抜き（画像）。高さはマークの約55% */
.logo__word { display: block; width: auto; height: 26px; transition: height .35s ease; }
.hd.stuck .logo__word { height: 22px; }
.ft__logo .logo__word { height: 25px; }
.ft__logo .logo__mark { height: 46px; }
.logo--text {
  font-family: Georgia, 'Times New Roman', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 400; font-size: 40px; letter-spacing: .06em; line-height: 1; color: var(--heading);
  transition: font-size .35s ease;
}
.hd.stuck .logo--text { font-size: 34px; }
.logo--light .logo--text { color: #fff; }
.hd__r { display: flex; align-items: center; gap: 44px; }
.hd__nav { display: flex; gap: 40px; }
.hd__nav a {
  position: relative; font-size: 15px; font-weight: 500; letter-spacing: .06em; color: var(--heading);
  padding-block: 6px;
}
.hd__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.hd__nav a:hover::after, .hd__nav a[aria-current="page"]::after { transform: scaleX(1); }
.hd__cta {
  display: inline-flex; align-items: center; min-height: 46px;
  background: var(--brand); color: var(--on-brand);
  font-size: 13.5px; font-weight: 600; letter-spacing: .06em;
  padding: 10px 30px; border-radius: 999px;
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.hd__cta:hover { background: var(--brand-d); transform: translateY(-1px); box-shadow: 0 8px 20px var(--sh-2); }

.burger { display: none; }
@media (max-width: 1024px) {
  .hd__in, .hd.stuck .hd__in { height: 64px; }
  .logo { gap: 10px; }
  .logo--text, .hd.stuck .logo--text { font-size: 30px; }
  .logo__mark, .hd.stuck .logo__mark { height: 36px; }
  .logo__word, .hd.stuck .logo__word { height: 20px; }
  .hd__nav, .hd__cta { display: none; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; margin-right: -8px;
    background: none; border: 0; cursor: pointer;
  }
  .burger i { display: block; height: 2px; background: var(--heading); transition: transform .3s ease, opacity .3s ease; }
  body.nav-open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .burger i:nth-child(2) { opacity: 0; }
  body.nav-open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  overflow-y: auto; padding-top: 90px;
}
.drawer.on { opacity: 1; visibility: visible; transform: none; }
.drawer__in { padding: 0 32px 48px; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a { padding: 18px 4px; font-size: 17px; font-weight: 600; color: var(--heading); border-bottom: 1px solid var(--line); }
.drawer__cta { margin-top: 32px; }

/* ============================================================
   TOP：FV（写真全幅・高さ760・暗いオーバーレイ・白文字を左に）
   ============================================================ */
.fv { position: relative; overflow: hidden; background: var(--band); }
.fv__media { position: relative; height: clamp(560px, 61vw, 880px); overflow: hidden; }   /* 760→880px＝2026-10-30 ボス「高さをもう少し上げて」 */
.fv__img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.fv__media::after {
  content: ''; position: absolute; inset: 0;
  /* 本番写真（GPT生成・元から暗め）に合わせて共通ベール（.92/.62/.30）より薄く。文字が届く6割までは .80〜.50 を残す（PC p95で大きい文字3:1以上を実測）（2026-10-30） */
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--ink) 72%, transparent) 0%,
      color-mix(in srgb, var(--ink) 56%, transparent) 40%,
      color-mix(in srgb, var(--ink) 34%, transparent) 60%,
      color-mix(in srgb, var(--ink) 6%, transparent) 82%,
      transparent 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--ink) 26%, transparent) 0%, transparent 40%);   /* 2026-10-30 ボス「まだ強い・特に右側」で弱めた */
}
@media (max-width: 767px) {
  /* SPは文字が写真の中央寄りに重なるので、全体をもう一段だけ暗く */
  .fv__media::after { background: linear-gradient(0deg, color-mix(in srgb, var(--ink) 76%, transparent) 0%, color-mix(in srgb, var(--ink) 36%, transparent) 60%, color-mix(in srgb, var(--ink) 10%, transparent) 100%); }
}
.fv__copy {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-56%);
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  color: #fff;
}
.fv__catch {
  font-size: clamp(30px, 4.3vw, 62px); font-weight: 700;
  line-height: 1.3; letter-spacing: .06em; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.35), 0 2px 28px rgba(0,0,0,.45);   /* ベールを薄くした分、文字の影で読みやすさを補う */
}
.fv__sub {
  margin-top: clamp(16px, 1.7vw, 24px);
  font-size: clamp(16px, 2vw, 29px); font-weight: 700;   /* 500→700＝2026-10-30 ボス指示 */ letter-spacing: .12em; line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0,0,0,.4), 0 1px 16px rgba(0,0,0,.5);
}
.fv__kicker, .fv__scroll { display: none; }   /* SP専用（767px以下で出す） */
/* マスク出現：行が下からせり上がる */
.fv__mask, .ph__mask { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.fv__line, .ph__line { display: block; }
html.js .fv__img { transform: scale(1.08); animation: fv-zoom 18s cubic-bezier(.2,.6,.3,1) forwards; }
html.js .fv__catch .fv__line { transform: translateY(110%); animation: rise-in 1s var(--ease) forwards .35s; }
html.js .fv__sub .fv__line { transform: translateY(110%); animation: rise-in 1s var(--ease) forwards .75s; }
@keyframes fv-zoom { to { transform: scale(1); } }
@keyframes rise-in { to { transform: translateY(0); } }

/* ============================================================
   TOP：OGZAとは（左＝理念の4語＋一言＋本文／右＝写真が右端へ抜けて白へ溶ける）
   ============================================================ */
.about { position: relative; overflow: hidden; }
.about__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.about__words { margin-top: clamp(20px, 2.4vw, 34px); font-size: clamp(22px, 2.8vw, 40px); font-weight: 700; line-height: 1.55; letter-spacing: .02em; color: var(--heading); }
.about__w { white-space: nowrap; }
.about__w .en { font-family: var(--font-en); font-weight: 700; letter-spacing: .01em; }
.about__w .en b { color: var(--brand); font-weight: 800; }
.about__w small { font-size: .52em; font-weight: 600; letter-spacing: 0; margin-left: .06em; color: var(--heading); }
.about__x { display: inline-block; margin-inline: .32em; font-weight: 400; color: var(--heading); }
.about__tag { margin-top: clamp(18px, 2.2vw, 30px); font-size: clamp(17px, 1.8vw, 25px); font-weight: 700; letter-spacing: .04em; color: var(--heading); }
.about__body { margin-top: clamp(16px, 2vw, 26px); max-width: 640px; }
.about__media { position: relative; aspect-ratio: 4 / 3; min-height: 300px; }
.about__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
@media (min-width: 1025px) {
  .about__media { margin-right: calc(50% - 50vw); aspect-ratio: auto; height: 100%; min-height: 460px; }
}

/* ============================================================
   TOP：サービス（Co Evo™メソッド＋循環図 → 4事業カード）
   ============================================================ */
.svc__intro { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(20px, 2.4vw, 32px); }
.svc__name { font-size: clamp(30px, 3.3vw, 48px); font-weight: 700; letter-spacing: .02em; line-height: 1.35; color: var(--heading); }
.svc__lead { margin-top: clamp(14px, 1.6vw, 22px); font-size: clamp(15px, 1.2vw, 17px); }

/* 循環図（カンプ実測：円184px・横長の楕円上に4つ・中央に濃紺のメソッド名） */
.coevo { position: relative; width: min(100%, 700px); aspect-ratio: 700 / 572; margin-inline: auto; --node: 184px; }
.coevo--lg { width: min(100%, 720px); --node: 190px; margin-top: clamp(28px, 3vw, 44px); }
.coevo__arrows { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--brand); overflow: visible; }
.coevo__arrows path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.coevo__arrows .coevo__tip { stroke: none; }   /* 矢じりだけを載せる不可視の線（太さは線と同じ扱いで marker の大きさがそろう） */
.coevo__arrows .ah { fill: currentColor; stroke: none; }
.coevo__center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: center; font-weight: 700; line-height: 1.25; color: var(--heading); white-space: nowrap;
}
.coevo__cname { display: block; font-size: clamp(22px, 2.3vw, 34px); letter-spacing: 0; }
.coevo__cname .tm { font-size: .55em; margin-left: .05em; }
.coevo__cjp { display: block; font-size: clamp(18px, 1.9vw, 28px); letter-spacing: .08em; margin-top: 4px; }
.coevo__node {
  position: absolute; width: var(--node); height: var(--node); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 10px; line-height: 1.35;
  box-shadow: 0 14px 34px var(--sh-2), inset 0 -10px 24px rgba(0,0,0,.08);
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}
/* 上が明るい縦グラデ＋左上の柔らかい光沢（カンプの立体感） */
.coevo__node::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(55% 32% at 50% 6%, rgba(255,255,255,.22), rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.coevo__node--1 { left: 50%; top: 0; transform: translateX(-50%); background: linear-gradient(175deg, var(--node1-a) 0%, var(--node1-b) 52%, var(--node1-c) 100%); }
.coevo__node--2 { right: 0; top: 50%; transform: translateY(-50%); background: linear-gradient(175deg, var(--node2-a) 0%, var(--node2-b) 55%, var(--node2-c) 100%); }
.coevo__node--3 { left: 50%; bottom: 0; transform: translateX(-50%); background: linear-gradient(175deg, var(--node3-a) 0%, var(--node3-b) 55%, var(--node3-c) 100%); }
.coevo__node--4 { left: 0; top: 50%; transform: translateY(-50%); background: linear-gradient(175deg, var(--node4-a) 0%, var(--node4-b) 55%, var(--node4-c) 100%); }
.coevo__jp { position: relative; font-size: clamp(16px, 1.45vw, 21px); font-weight: 700; letter-spacing: .04em; line-height: 1.4; }
.coevo__en { position: relative; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; opacity: .92; margin-bottom: 6px; font-family: var(--font-en); }
.coevo--lg .coevo__jp { font-size: clamp(16px, 1.5vw, 22px); }
.coevo--lg .coevo__en { font-size: 12.5px; }
/* 出現：円が順に現れ → 矢印が線を描く → 円がゆっくり順に光る（控えめ・ループ） */
html.js [data-rev] .coevo__node { opacity: 0; transition: opacity .6s ease calc(.1s + var(--i, 0) * .18s); }
html.js [data-rev].on .coevo__node, html.js.rev-safe [data-rev] .coevo__node { opacity: 1; }
html.js [data-rev] .coevo__arrows .coevo__line {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .9s var(--ease) calc(.9s + var(--i, 0) * .22s);
}
/* 矢じりは各線が伸びきる少し手前（線の開始＋0.8秒）からフェードで出る */
html.js [data-rev] .coevo__arrows .coevo__tip { opacity: 0; transition: opacity .3s ease calc(1.7s + var(--i, 0) * .22s); }
html.js [data-rev].on .coevo__arrows .coevo__line, html.js.rev-safe [data-rev] .coevo__arrows .coevo__line { stroke-dashoffset: 0; }
html.js [data-rev].on .coevo__arrows .coevo__tip, html.js.rev-safe [data-rev] .coevo__arrows .coevo__tip { opacity: 1; }
html.js [data-rev].on .coevo__node::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,255,255,.0);
  animation: coevo-glow 9s ease-in-out infinite; animation-delay: calc(2.2s + var(--i, 0) * 2.25s);
}
@keyframes coevo-glow {
  0%, 18%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  8% { box-shadow: 0 0 0 10px rgba(255,255,255,.22), 0 0 40px 6px rgba(255,255,255,.18); }
}

/* 4事業カード（白地・1px枠・写真を内側に・角丸なし・影なし／ホバーで浮く＋写真ゆっくり拡大） */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(48px, 5.6vw, 84px); }
.card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s ease, border-color .45s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px var(--sh-2); border-color: var(--line-strong); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin: 10px 10px 0; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__body { display: flex; flex-direction: column; flex-grow: 1; padding: 20px 20px 22px; }
.card__name { font-size: clamp(16px, 1.3vw, 19px); font-weight: 700; letter-spacing: .02em; line-height: 1.5; color: var(--heading); }
.card__desc { margin-top: 10px; font-size: 13.5px; line-height: 1.85; color: var(--text); flex-grow: 1; }
.card__act { margin-top: 20px; }
.card:hover .cbtn { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.card:hover .cbtn svg { transform: translateX(3px); }

/* ============================================================
   実績の数字（濃いチャコール帯・3列・縦の細い罫線・数字はカウントアップ・アイコンは線で描く）
   ============================================================ */
.stats { background: var(--band); color: #fff; padding-block: var(--pad-sec); }
.stats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(32px, 3.8vw, 56px); }
.stat { text-align: center; padding: 10px clamp(12px, 2vw, 32px); }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.22); }
.stat__label { font-size: clamp(14px, 1.15vw, 16px); font-weight: 700; letter-spacing: .06em; }
.stat__num { margin-top: 12px; line-height: 1; font-weight: 700; letter-spacing: .02em; }
.stat__num .en { font-size: clamp(52px, 5.6vw, 80px); font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.stat__num .unit { font-size: clamp(17px, 1.6vw, 23px); margin-left: 4px; }
.stat__num .unit--long { font-size: clamp(16px, 1.5vw, 21px); margin-left: 6px; }
.stat__icon { display: block; width: 48px; height: 48px; margin: 26px auto 0; color: #fff; }
.stat__icon svg { width: 100%; height: 100%; }
.stat__note { margin-top: 16px; font-size: 14px; line-height: 1.85; opacity: .9; }
html.js [data-rev] .stat__num { opacity: 0; transform: translateY(10px); transition: opacity .6s ease calc(.2s + var(--i, 0) * .12s), transform .6s ease calc(.2s + var(--i, 0) * .12s); }
html.js [data-rev].on .stat__num, html.js.rev-safe [data-rev] .stat__num { opacity: 1; transform: none; }
html.js [data-rev] .stat__icon path, html.js [data-rev] .stat__icon circle {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.3s var(--ease) calc(.6s + var(--i, 0) * .15s);
}
html.js [data-rev].on .stat__icon path, html.js [data-rev].on .stat__icon circle,
html.js.rev-safe [data-rev] .stat__icon path, html.js.rev-safe [data-rev] .stat__icon circle { stroke-dashoffset: 0; }

/* ============================================================
   取引実績（ロゴが1行で右→左へ流れる無限ループ。第3弾 2026-10-30）
   ------------------------------------------------------------
   ・track に同じセットを2つ並べ、translateX(0→-50%) で1セット分だけ動かす＝継ぎ目なし
   ・間隔は各項目の margin-right（flex gap だと -50% と1セット幅がずれて継ぎ目で跳ぶ）
   ・速さは「px/秒」を PC・SP で揃える：1セット幅 ÷ 約70px/s（PC 14×220=3080px→44s、TB 14×192=2688px→38s、SP 14×154=2156px→31s）
   ・ロゴは枠なし（2026-10-30 ボス指示）。枠の代わりに間隔を広めに取る
   ・左右は mask-image で地の色へフェード／ホバー・フォーカスで一時停止
   ・reduced-motion：流さず折り返して全社を静止表示（2つ目のセットは出さない）
   ============================================================ */
.clients { padding-block: var(--pad-sec-s); }
.marquee {
  margin-top: clamp(26px, 3vw, 40px); overflow: hidden; padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  --mq-w: 180px; --mq-gap: 40px; --mq-dur: 44s;
}
.marquee__track { display: flex; width: max-content; will-change: transform; animation: marquee var(--mq-dur) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; flex: none; }
.clients__item {
  flex: none; width: var(--mq-w); margin-right: var(--mq-gap);
  display: grid; place-items: center; aspect-ratio: 12 / 5;
  padding: 10px 14px;
}
.clients__item img { width: 100%; height: 100%; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 会社概要の取引実績＝流さない一覧（2026-10-30 ボス指示）。淡い地の上に白いタイル（枠線なし）。PC 7列×2段／TB 5列／SP 2列 */
.clients-grid__list {
  margin-top: clamp(26px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px;
}
.clients-grid__item {
  display: grid; place-items: center; aspect-ratio: 12 / 5;
  background: var(--bg); border-radius: 4px; padding: 12px 16px;
}
.clients-grid__item img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 1024px) { .clients-grid__list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 767px)  { .clients-grid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ============================================================
   お知らせ（日付・札・タイトルの1行リスト。上下に細い罫線）
   ============================================================ */
.news { padding-block: var(--pad-sec-s); }
.news__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(18px, 2vw, 26px); }
.news__list { border-top: 1px solid var(--line); }
.news__more { margin-top: clamp(28px, 3.2vw, 44px); text-align: center; }
.news__list li { border-bottom: 1px solid var(--line); }
.news__list a {
  display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px);
  padding: 22px 8px; transition: background .3s ease;
}
.news__list a:hover { background: var(--tint-1); }
.news__list time { font-family: var(--font-en); font-weight: 600; font-size: 14px; color: var(--muted); flex-shrink: 0; letter-spacing: .02em; min-width: 6.4em; font-variant-numeric: tabular-nums; }   /* 日付の幅をそろえて札・タイトルの縦位置を一直線に */
.news__tag {
  flex: none; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; line-height: 1;
  color: #fff; background: var(--tag); padding: 7px 14px; border-radius: 3px;
}
.news__list span { font-size: 15px; font-weight: 500; line-height: 1.8; color: var(--heading); transition: color .3s ease; }
.news__list a:hover span { color: var(--brand); }

/* ============================================================
   下層共通：タイトル帯（写真＋暗いブルーグレーのベール・日本語＋英字・写真はゆっくりズーム）
   ============================================================ */
.ph {
  position: relative; overflow: hidden; color: #fff;
  background: var(--band-grad);
  min-height: clamp(240px, 25vw, 360px);
  display: flex; align-items: center;
  padding-block: clamp(44px, 5vw, 64px);
}
.ph__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
html.js .ph__img { transform: scale(1.08); animation: fv-zoom 14s cubic-bezier(.2,.6,.3,1) forwards; }
/* ★ベールは ::after（img より後に描く）。::before だと DOM 順で img が上に乗り効かない（2026-10-29 実測） */
.ph::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--veil-1) 0%, var(--veil-2) 45%, var(--veil-3) 100%);
}
.ph--plain::after { display: none; }
.ph__in { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.ph__h { font-size: clamp(32px, 3.3vw, 46px); font-weight: 700; letter-spacing: .1em; line-height: 1.3; color: #fff; }
.ph__en { display: block; margin-top: 10px; font-size: clamp(12px, 1vw, 14px); font-weight: 600; letter-spacing: .34em; opacity: .92; }
html.js .ph__h .ph__line { transform: translateY(110%); animation: rise-in .9s var(--ease) forwards .15s; }
html.js .ph__en { opacity: 0; animation: fade-in .9s ease forwards .55s; }
@keyframes fade-in { to { opacity: .92; } }
.ph__bc { margin-top: clamp(16px, 1.8vw, 24px); font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.85); }
.ph__bc a:hover { color: #fff; }
/* キット側の一覧・記事ページ（parts/post-index.php / post-article.php）は英字ラベル .lbl を上に置く＝並び順だけ入れ替える */
.ph .lbl { order: 1; margin-top: 10px; font-family: var(--font-en); font-size: clamp(12px, 1vw, 14px); font-weight: 600; letter-spacing: .34em; opacity: .92; }
.ph .lbl--line::after { display: none; }
.ph .ph__bc { order: 2; }
.ph p.ph__h { margin: 0; }

/* ============================================================
   サービスページ
   ============================================================ */
.sv-intro__body { margin-top: clamp(18px, 2.2vw, 28px); max-width: 900px; }
.sv-method__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 4vw, 60px); }
.sv-step { border-top: 2px solid var(--brand); padding-top: 16px; }
.sv-step__no { font-family: var(--font-en); font-weight: 800; font-size: 13px; color: var(--brand); letter-spacing: .1em; }
.sv-step__jp { font-size: 17px; font-weight: 700; margin-top: 4px; color: var(--heading); }
.sv-step__en { font-family: var(--font-en); font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.sv-step__desc { font-size: 14px; color: var(--text); margin-top: 8px; line-height: 1.85; }

/* Co Evo™の4ステップ（カード＋進行線＋戻る矢印）。色は循環図の円のトークンを流用 */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: clamp(36px, 4vw, 60px); padding-bottom: 46px; }
.steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; margin-bottom: 22px; padding-bottom: 0; }
.step {
  position: relative; background: var(--bg); border: 1px solid var(--line);
  padding: 26px 22px 24px; --step-c: var(--brand);
  transition: transform .45s var(--ease), box-shadow .45s ease, border-color .45s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: 0 16px 36px var(--sh-2); border-color: var(--line-strong); }
.step--1 { --step-c: var(--node1-b); } .step--2 { --step-c: var(--node2-b); } .step--3 { --step-c: var(--node3-b); } .step--4 { --step-c: var(--node4-b); }
/* 上辺の色の線（左から伸びる） */
.step::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--step-c); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease) calc(.25s + var(--i, 0) * .14s); }
html:not(.js) .step::before, [data-stagger].on .step::before, html.rev-safe .step::before { transform: scaleX(1); }
.step__dot { position: absolute; top: -7px; left: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--step-c); box-shadow: 0 0 0 4px var(--bg); }
.steps .step__no { font-size: clamp(30px, 2.6vw, 38px); font-weight: 800; line-height: 1; color: var(--step-c); letter-spacing: 0; }
.steps .step__en { margin-top: 12px; font-size: clamp(15px, 1.2vw, 17px); font-weight: 700; letter-spacing: .01em; color: var(--heading); line-height: 1.4; }
.steps .step__jp { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--step-c); }
.steps .step__desc { margin-top: 12px; font-size: 14px; line-height: 1.85; color: var(--text); }
/* カード間の細い矢印（番号の高さ） */
.step__arrow { position: absolute; right: -22px; top: 34px; width: 22px; z-index: 2; color: var(--brand); display: grid; place-items: center; }
.step__arrow svg { width: 20px; height: 8px; }
.step__arrow svg path { stroke-width: 2; }
.steps--2 .step--2 .step__arrow { display: none; }
/* 最後から最初へ戻る線 */
.steps__loop { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--brand); overflow: visible; pointer-events: none; display: none; }
.steps__loop[data-ready] { display: block; }
.steps__loop > path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
html.js [data-stagger] .steps__loop > path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) 1.1s; marker-end: none; }
html.js [data-stagger].on .steps__loop > path, html.js.rev-safe [data-stagger] .steps__loop > path { stroke-dashoffset: 0; marker-end: url(#steps-ah); }

/* 4つの事業（写真50：本文50・交互） */
.biz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.2vw, 64px); align-items: start; padding-block: clamp(36px, 4.4vw, 64px); border-top: 1px solid var(--line); }
.biz:last-child { border-bottom: 1px solid var(--line); }
.biz--rev .biz__media { order: 2; }
.biz__media { position: sticky; top: 100px; aspect-ratio: 4 / 3; overflow: hidden; }
.biz__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.biz:hover .biz__media img { transform: scale(1.04); }
.biz__no { font-family: var(--font-en); font-weight: 800; font-size: 13px; letter-spacing: .14em; color: var(--brand); }
.biz__h { font-size: clamp(22px, 2.1vw, 30px); font-weight: 700; letter-spacing: .03em; line-height: 1.5; margin-top: 8px; color: var(--heading); }
.biz__card { margin-top: 8px; font-size: 15.5px; font-weight: 600; color: var(--heading); }
.biz__lead { margin-top: 18px; font-size: 16px; line-height: 1.95; color: var(--text); }
.biz__body { margin-top: 16px; font-size: 14.5px; line-height: 1.95; color: var(--text); }
.biz__body p + p { margin-top: .9em; }
.biz__act { margin-top: 24px; }

/* 末尾の帯（写真＋白ベール） */
.band-photo { position: relative; overflow: hidden; color: var(--heading); padding-block: var(--pad-sec); }
.band-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.band-photo::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.94) 55%, rgba(255,255,255,.78) 100%); }
.band-photo__in { position: relative; z-index: 2; max-width: 780px; }
.band-photo__h { font-size: clamp(24px, 2.7vw, 38px); font-weight: 700; line-height: 1.55; letter-spacing: .03em; margin-top: 16px; color: var(--heading); }
.band-photo__body { margin-top: clamp(16px, 2vw, 24px); }
.band-photo__body p { font-size: 16px; line-height: 1.95; color: var(--text); }
.band-photo__body p + p { margin-top: .8em; }
.band-photo .btn { margin-top: clamp(24px, 2.8vw, 36px); }

/* ============================================================
   会社概要ページ
   ============================================================ */
.co-intro__body { margin-top: clamp(18px, 2.2vw, 28px); max-width: 900px; }
/* 導入の右に先方の正式ロゴ（2026-10-30 ボス指示で会社概要表の横から移設）。PC＝本文｜ロゴの2列・SP＝本文の下に小さく */
.co-intro__in { display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 22vw, 300px); gap: clamp(32px, 4.4vw, 72px); align-items: center; }
.co-intro__logo img { display: block; width: 100%; height: auto; }
.msg__in { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, .58fr); gap: clamp(28px, 4.4vw, 72px); align-items: start; margin-top: clamp(28px, 3.4vw, 48px); }
.msg__media { aspect-ratio: 3 / 4; overflow: hidden; }   /* 追従（sticky）は外した＝2026-10-30 ボス指示 */
.msg__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.msg__lead { font-size: clamp(21px, 2.2vw, 30px); font-weight: 700; line-height: 1.7; letter-spacing: .03em; color: var(--heading); }
.msg__body { margin-top: clamp(20px, 2.4vw, 32px); }
.msg__body p { font-size: 16px; line-height: 2; color: var(--text); }
.msg__body p + p { margin-top: .9em; }
.msg__steps { margin: 18px 0; padding: 20px 24px; background: var(--tint-2); border-left: 3px solid var(--brand); }
.msg__steps li { font-size: 15px; line-height: 1.9; color: var(--text); }
.msg__steps li + li { margin-top: 4px; }
.msg__steps .en { font-weight: 700; color: var(--heading); }
.msg__steps .en::after { content: '：'; }
.msg__sign { margin-top: clamp(24px, 2.8vw, 36px); font-size: 14.5px; line-height: 1.9; color: var(--text); }
.msg__sign b { display: block; font-size: 19px; letter-spacing: .1em; color: var(--heading); }

.profile__tbl { margin-top: clamp(26px, 3.2vw, 44px); border-top: 1px solid var(--line-strong); }
.profile__row { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line); }
.profile__row dt { font-weight: 700; font-size: 15px; padding: 22px 24px; background: var(--tint-2); color: var(--heading); }
.profile__row dd { font-size: 15px; padding: 22px 28px; line-height: 1.9; color: var(--text); }
.profile__row dd ul li::before { content: '・'; }

/* ============================================================
   採用情報ページ
   ============================================================ */
.rc-intro__body { margin-top: clamp(16px, 2vw, 26px); max-width: 900px; }
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); margin-top: clamp(28px, 3.4vw, 48px); }
.job { background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s ease; }
.job:hover { transform: translateY(-5px); box-shadow: 0 18px 40px var(--sh-2); }
.job__media { aspect-ratio: 16 / 9; overflow: hidden; margin: 10px 10px 0; }
.job__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.job:hover .job__media img { transform: scale(1.06); }
.job__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.job__name { font-size: clamp(18px, 1.5vw, 21px); font-weight: 700; letter-spacing: .02em; line-height: 1.5; color: var(--heading); }
.job__sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.job__dl { margin-top: 18px; border-top: 1px solid var(--line); flex-grow: 1; }
.job__dl div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.8; }
.job__dl dt { font-weight: 700; color: var(--brand); }
.job__dl dd { color: var(--text); }
.job__act { margin-top: 18px; display: flex; justify-content: flex-end; }

.ws { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(28px, 3.4vw, 48px); }
.ws__item { border: 1px solid var(--line); padding: 32px 16px; text-align: center; background: var(--bg); }
.ws__icon { display: block; width: 44px; height: 44px; margin: 0 auto 16px; color: var(--brand); }
.ws__icon svg { width: 100%; height: 100%; }
.ws__t { font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--heading); }

.terms { margin-top: clamp(28px, 3.4vw, 48px); border: 1px solid var(--line); background: var(--bg); }
.terms__row { display: grid; grid-template-columns: 200px 1fr; }
.terms__row + .terms__row { border-top: 1px solid var(--line); }
.terms__row dt { font-weight: 700; font-size: 15px; padding: 18px 24px; background: var(--tint-2); color: var(--heading); }
.terms__row dd { font-size: 15px; padding: 18px 26px; line-height: 1.9; color: var(--text); }
.rc-note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.rc-act { margin-top: clamp(32px, 3.8vw, 52px); text-align: center; }

/* ============================================================
   フォーム（お問い合わせ・応募）：幅860・欄56px・角丸4・項目間32
   ============================================================ */
.cf__in { max-width: 860px; margin-inline: auto; }
.cf__h { font-size: clamp(21px, 2.3vw, 30px); font-weight: 700; line-height: 1.7; letter-spacing: .03em; color: var(--heading); }
.cf__note { margin-top: 12px; font-size: 15px; color: var(--text); }
.cf__form { margin-top: clamp(32px, 3.8vw, 52px); }
.cf__req, .cf__opt {
  display: inline-block; margin-left: 10px; padding: 1px 8px;
  font-size: 11px; font-weight: 700; border-radius: 3px; vertical-align: 2px; line-height: 1.7;
}
.cf__req { background: var(--brand); color: var(--on-brand); }
.cf__opt { background: var(--line); color: var(--muted); }
.f-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.f-row { margin-bottom: 32px; }
.f-row label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--heading); }
.f-row .f-note { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.f-row input, .f-row select, .f-row textarea {
  width: 100%; min-height: 56px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: 4px; padding: 14px 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.f-row textarea { min-height: 180px; }
.f-row select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; }
.f-row input::placeholder, .f-row textarea::placeholder { color: rgba(0,0,0,.35); }
.f-row input:focus, .f-row select:focus, .f-row textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--tint-3); }
.f-row .is-err, .f-agree .is-err { border-color: #c33a52; background: #fdeaee; }
.f-err { display: none; font-size: 12.5px; color: #c33a52; margin-top: 6px; }
.f-err.on { display: block; }
.f-alert { display: none; font-size: 14px; font-weight: 700; color: #c33a52; background: #fdeaee; border-radius: 4px; padding: 12px 16px; margin-bottom: 20px; }
.f-alert.on { display: block; }
.f-agree { display: flex; align-items: center; gap: 10px; font-size: 14.5px; margin-top: 30px; color: var(--text); }
.f-agree a { color: var(--brand); text-decoration: underline; }
.f-agree input { width: 18px; height: 18px; accent-color: var(--brand); }
.act { margin-top: 36px; }
.cf__form .act { text-align: center; }
.cf__form .btn { min-width: 280px; }
.is-sending { opacity: .6; pointer-events: none; }

/* ============================================================
   お知らせ記事
   ============================================================ */
.article__in { max-width: 1000px; margin-inline: auto; }   /* 800→1000px・中央寄せ＝2026-10-30 ボス指示「枠が狭すぎる」 */
.article__date { font-family: var(--font-en); font-weight: 600; font-size: 14px; color: var(--muted); }
.article__h { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; line-height: 1.6; margin: 10px 0 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line); color: var(--heading); }
.article__body p { font-size: 16px; line-height: 2.1; color: var(--text); }
.article__body p + p { margin-top: 18px; }
.article__body figure { margin: 28px 0; }
.article__body figure img { max-width: 100%; height: auto; }   /* 640px上限を外した（原寸を超えては拡大しない） */
.article__body figure + figure { margin-top: 16px; }
.article__body h2 { font-size: 20px; font-weight: 700; line-height: 1.6; margin: 44px 0 14px; padding-left: 14px; border-left: 3px solid var(--brand); color: var(--heading); }
.article__body h3 { font-size: 18px; font-weight: 700; line-height: 1.6; margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); color: var(--heading); }
.article__body h2 + p, .article__body h3 + p { margin-top: 0; }
.article__body ul, .article__body ol { padding-left: 1.5em; margin-top: 18px; }
.article__body ul li { list-style: disc; font-size: 16px; line-height: 2.1; }
.article__body ol li { list-style: decimal; font-size: 16px; line-height: 2.1; }
.article__body strong { font-weight: 700; }
.article__body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.article__body a:hover { text-decoration-thickness: 2px; }
.article__back { margin-top: 44px; }

/* ============================================================
   サンクス・404
   ============================================================ */
.thx { padding-block: calc(var(--pad-sec) * 1.25); }
.thx__in { text-align: center; max-width: 640px; }
.thx__ic { display: inline-block; width: 64px; height: 64px; color: var(--brand); margin-bottom: 18px; }
.thx__h { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin: 6px 0 22px; color: var(--heading); }
.thx__lead p { font-size: 16px; color: var(--text); }
.thx__lead p + p { margin-top: 14px; }
.thx__lead a { color: var(--brand); text-decoration: underline; }
.thx .act { text-align: center; margin-top: 36px; }
.nf__code { font-family: var(--font-en); font-size: clamp(64px, 10vw, 110px); font-weight: 800; color: var(--tint-4); line-height: 1; }

/* ============================================================
   プライバシーポリシー
   ============================================================ */
.pp__in { max-width: 900px; }
.pp__in h2 { font-size: 17px; font-weight: 700; margin: 36px 0 12px; padding-left: 14px; border-left: 3px solid var(--brand); color: var(--heading); }
.pp__in p { font-size: 15.5px; color: var(--text); }
.pp__in p + p { margin-top: .8em; }
.pp__in ol { padding-left: 1.6em; margin-top: 8px; }
.pp__in ol li { list-style: decimal; font-size: 15.5px; color: var(--text); }
.pp__in ol ol li { list-style: lower-roman; }
.pp__in a { color: var(--brand); text-decoration: underline; }
.pp__in .pp__date { margin-top: 32px; text-align: right; }

/* ============================================================
   CTA帯（写真＋白ベール・左に文言・下に濃紺のピル）・フッター（コンパクト・1段）
   ============================================================ */
.cta { position: relative; overflow: hidden; padding-block: clamp(64px, 6.6vw, 96px); color: var(--heading); }
.cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.cta::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.94) 50%, rgba(255,255,255,.72) 100%); }
.cta__in { position: relative; z-index: 2; }
.cta__h { margin-top: 18px; font-size: clamp(24px, 2.8vw, 40px); font-weight: 700; line-height: 1.5; letter-spacing: .03em; color: var(--heading); }
.cta .btn { margin-top: clamp(24px, 2.8vw, 36px); }
/* お問い合わせ｜採用情報の2列（2026-10-30）。PC＝縦線で区切る・SP＝上下に積んで横線 */
.cta__in--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cta__in--2 .cta__col + .cta__col { border-left: 1px solid var(--line-strong); padding-left: clamp(32px, 4.4vw, 72px); }
.cta__in--2 .cta__col:first-child { padding-right: clamp(32px, 4.4vw, 72px); }
.cta__in--2 .cta__h { font-size: clamp(22px, 2.3vw, 34px); }
@media (max-width: 767px) {
  .cta__in--2 { grid-template-columns: 1fr; }
  .cta__in--2 .cta__col:first-child { padding-right: 0; padding-bottom: 36px; }
  .cta__in--2 .cta__col + .cta__col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: 36px; }
}

.ft { background: var(--band); color: #fff; padding-block: clamp(26px, 2.6vw, 36px); }
.ft__in { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.ft__logo .logo--text { font-size: 38px; }
.ft__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.ft__nav a { font-size: 12.5px; font-weight: 500; letter-spacing: .04em; opacity: .92; transition: opacity .2s ease; }
.ft__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.ft__copy { font-size: 12px; opacity: .72; font-family: var(--font-en); letter-spacing: .02em; }
.ft__sample { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.16); }
.ft__sample p { font-size: 12.5px; line-height: 1.9; opacity: .66; max-width: 76ch; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .about__in { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 16 / 9; min-height: 0; }
  .about__media img { -webkit-mask-image: none; mask-image: none; }
  .svc__intro { grid-template-columns: 1fr; }
  .coevo, .coevo--lg { width: min(100%, 600px); --node: 160px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marquee { --mq-w: 160px; --mq-gap: 32px; --mq-dur: 38s; }
  .biz { grid-template-columns: 1fr; }
  .biz--rev .biz__media { order: 0; }
  .biz__media, .msg__media { position: static; }
  .msg__in { grid-template-columns: minmax(0, .45fr) minmax(0, .55fr); }
  .sv-method__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; }
  .steps .step--2 .step__arrow { display: none; }
}
@media (max-width: 767px) {
  :root { --gutter: 24px; }
  .fv__media { height: clamp(500px, 140vw, 680px); }
  .fv__img { object-position: 62% center; }   /* 説明している男性（写真の横62%）をSPの中央に */
  html.js .fv__img { transform: scale(1.04); }
  /* ── SPのFV（2026-10-30 ボス「スマホのFVをもっとかっこよく」）──
     画面の高さいっぱいの写真／英字の4語を小さく添える／キャッチは3段で大きく（×は細く小さく）／サブの上に短い線／右下にSCROLL */
  .fv__media { height: clamp(560px, calc(100svh - 64px), 780px); }
  .fv__copy { top: auto; bottom: clamp(72px, 19vw, 96px); transform: none; }
  .fv__kicker {
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
    font-family: var(--font-en); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: #fff; opacity: .88;
  }
  .fv__kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; flex: none; }
  .fv__catch { font-size: clamp(38px, 11.2vw, 46px); line-height: 1.22; letter-spacing: .04em; }
  .fv__x { display: inline-block; margin-right: .16em; font-size: .62em; font-weight: 400; vertical-align: .12em; opacity: .82; }
  .fv__sub { position: relative; margin-top: 22px; padding-top: 18px; font-size: clamp(15px, 4.3vw, 17px); letter-spacing: .1em; line-height: 1.75; }
  .fv__sub::before { content: ''; position: absolute; left: 0; top: 0; width: 36px; height: 2px; background: var(--accent); }
  .fv__scroll {
    display: block; position: absolute; right: 18px; bottom: 0; z-index: 2;
    writing-mode: vertical-rl; font-family: var(--font-en); font-size: 10px; letter-spacing: .24em; color: #fff; opacity: .85;
    padding-bottom: 66px;
  }
  .fv__scroll::after {
    content: ''; position: absolute; left: 50%; bottom: 0; width: 1px; height: 56px; background: rgba(255,255,255,.35);
    transform-origin: top; animation: fv-scroll 2.2s cubic-bezier(.6,0,.3,1) infinite;
  }
  html.js .fv__kicker { opacity: 0; animation: fv-kicker-in .9s ease forwards .15s; }
  /* OGZAとは：4語を2×2のタイルに（行頭の×をやめる） */
  .about__words { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .about__words .pc-br, .about__x { display: none; }
  .about__w { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--tint-1); border-left: 3px solid var(--brand); white-space: normal; }
  .about__w .en { font-size: 24px; line-height: 1.3; }
  .about__w small { font-size: 12.5px; margin-left: 0; color: var(--text); }
  .about__w .pa { display: none; }
  .svc__name { font-size: clamp(28px, 8vw, 32px); }
  .coevo, .coevo--lg { width: 100%; --node: clamp(96px, 29vw, 116px); }
  .coevo__cname { font-size: clamp(17px, 5vw, 20px); }
  .coevo__cjp { font-size: clamp(14px, 4.2vw, 17px); }
  .coevo__jp, .coevo--lg .coevo__jp { font-size: clamp(13px, 3.8vw, 15px); }
  .coevo__en, .coevo--lg .coevo__en { font-size: 9px; margin-bottom: 3px; }
  .coevo__arrows path { stroke-width: 2.5; }
  /* スマホは円の文字が小さい（通常文字＝4.5:1が要る）ので、いちばん明るい円だけ少し濃くする */
  .coevo__node--1 { background: linear-gradient(175deg, var(--node1-sa) 0%, var(--node1-sb) 52%, var(--node1-sc) 100%); }
  .cards { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 30px; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); padding-top: 30px; }
  .marquee { --mq-w: 130px; --mq-gap: 24px; --mq-dur: 31s; }
  .news__head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .news__list a { flex-wrap: wrap; gap: 8px 12px; padding: 18px 4px; }
  .news__list span { flex-basis: 100%; }
  .ph { min-height: 220px; }
  .ph__h { font-size: clamp(26px, 7.2vw, 32px); }
  .msg__in { grid-template-columns: 1fr; }
  .msg__media { max-width: 320px; }
  .co-intro__in { grid-template-columns: 1fr; gap: 28px; }
  .co-intro__logo { width: 160px; margin-inline: auto; }
  .profile__row, .terms__row { grid-template-columns: 1fr; }
  .profile__row dt, .terms__row dt { padding: 10px 16px; }
  .profile__row dd, .terms__row dd { padding: 12px 16px 16px; }
  .jobs { grid-template-columns: 1fr; }
  .job__dl div { grid-template-columns: 1fr; gap: 2px; }
  .ws { grid-template-columns: 1fr; gap: 10px; }
  .ws__item { padding: 22px 16px; }
  .sv-method__steps { grid-template-columns: 1fr; }
  .steps, .steps--2 { grid-template-columns: 1fr; gap: 26px; padding-bottom: 0; }
  .step__arrow { right: auto; left: 22px; top: auto; bottom: -24px; transform: rotate(90deg); }
  .steps .step--2 .step__arrow { display: grid; }
  .steps .step:last-child .step__arrow { display: none; }
  .f-row { margin-bottom: 26px; }
  .ft__in { flex-direction: column; align-items: flex-start; gap: 18px; }
  .btn--lg { padding: 14px 36px; font-size: 15px; }
  .cta::after, .band-photo::after { background: rgba(255,255,255,.95); }
}

/* ============================================================
   reduced-motion：全アニメ停止（最終状態で表示）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js body { animation: none; }
  html.js [data-rev], html.js [data-stagger] > *,
  html.js [data-rev] .coevo__node, html.js [data-rev] .stat__num { opacity: 1; transform: none; transition: none; }
  html.js [data-rev] .coevo__arrows .coevo__line, html.js [data-rev] .stat__icon path, html.js [data-rev] .stat__icon circle { stroke-dashoffset: 0; transition: none; }
  html.js [data-rev] .coevo__arrows .coevo__tip { opacity: 1; transition: none; }
  html.js [data-rev] .stat__icon path, html.js [data-rev] .stat__icon circle { stroke-dasharray: none; }
  html.js [data-rev].on .coevo__node::after { animation: none; }
  .step::before { transform: scaleX(1); transition: none; }
  html.js [data-stagger] .steps__loop > path { stroke-dashoffset: 0; transition: none; marker-end: url(#steps-ah); }
  .step, .marquee__track { transition: none; }
  /* マーキーは流さない：折り返して全社を静止表示。マスクも外す */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: 100%; }
  .marquee__set { flex: 1 1 100%; width: 100%; flex-wrap: wrap; row-gap: var(--mq-gap); }
  .marquee__set[aria-hidden="true"] { display: none; }
  html.js .fv__img, html.js .ph__img, html.js .fv__catch .fv__line, html.js .fv__sub .fv__line, html.js .ph__h .ph__line, html.js .ph__en {
    animation: none; transform: none; opacity: 1;
  }
  html.js .ph__en { opacity: .92; }
  .fv__copy { transform: translateY(-56%); }
  .sl::before { transform: scaleY(1); transition: none; }
  .btn, .btn::after, .btn svg, .tlink svg, .card, .card__media img, .job, .job__media img, .biz__media img, .hd, .hd--hide, .hd__in, .logo--text, .logo__word, .logo__mark { transition: none; transform: none; animation: none; }
}

/* SPのFV：SCROLLの線／英字の4語の出現（2026-10-30） */
@keyframes fv-scroll { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes fv-kicker-in { to { opacity: .88; } }
@media (prefers-reduced-motion: reduce) { .fv__scroll::after { animation: none; } html.js .fv__kicker { opacity: .88; animation: none; } }
