/* ============================================================
   snekke-kit 共通CSS
   ------------------------------------------------------------
   ★規律：ブランド色の直値をここに書かない。色は必ず var() を参照する
     （トークンは parts/theme.php が site.php の3色から生成する）。
     白の透過rgba等、ブランドと無関係な値だけ直値でよい。
   ★アニメは opacity / transform に限定（レイアウトを動かさない＝CLSゼロ）。
     prefers-reduced-motion: reduce で全停止する。
   ============================================================ */

/* ── フォント（欧文のみself-host。和文はシステムスタック＝theme.php） ── */
@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(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  line-break: strict;                 /* 日本語の禁則処理（実測で効かせる） */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.en { font-family: var(--font-en); letter-spacing: .04em; }
.pc-br { display: none; }
@media (min-width: 768px) { .pc-br { display: inline; } }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ── スクロール出現（[data-rev]）──────────────────────────── */
/* JS無効時は最初から見える。html.js が付いた時だけ隠す（header.phpの前提クラス） */
html.js [data-rev] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.65,.3,1);
  transition-delay: var(--d, 0s);
}
html.js [data-rev].on,
html.js.rev-safe [data-rev] { opacity: 1; transform: none; }

/* ── ボタン・テキストリンク ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--band); color: var(--on-band);
  font-weight: 700; font-size: 15px; letter-spacing: .06em;
  padding: 16px 34px; border: 1px solid var(--band);
  border-radius: var(--r-btn); cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.btn svg { width: 24px; height: 8px; transition: transform .25s ease; }
.btn:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn:hover svg { transform: translateX(5px); }

.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand); font-weight: 700; font-size: 14px;
}
.tlink svg { width: 22px; height: 7px; transition: transform .25s ease; }
.tlink:hover svg { transform: translateX(4px); }
.tlink__dn { transition: transform .25s ease; }
.tlink:hover .tlink__dn { transform: translateY(3px); }

/* ── セクション共通 ─────────────────────────────────────────
   ★余白は全セクションで同じclampスケールに乗せる（画面幅に応じて一緒に伸縮させ、
     セクション間で高さのバランスが崩れないようにする）。個別のpxは書かない。 */
.sec { padding-block: var(--pad-sec); background: var(--bg); }
.sec--tint { background: var(--tint-1); }
:root { --pad-sec: clamp(58px, 7vw, 100px); }

/* 英字ラベル＋日本語見出しの組（カンプの共通パターン） */
.lbl {
  color: var(--brand); font-family: var(--font-en);
  font-weight: 700; font-size: 13px; letter-spacing: .14em;
  margin-bottom: 10px;
}
.lbl--line { display: inline-flex; align-items: center; gap: 12px; }
.lbl--line::after {
  /* ★色はラベル自身に追従させる（currentColor）。--brand 固定だと
     .msg（濃紺グラデ）や .lbl--onband の帯で線が背景に沈む。
     .fv__lbl::before と同じ作法に揃えた（2026-08-18 ダッチ） */
  content: ''; width: 34px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left center; transition: transform .6s ease .3s;
}
html.js [data-rev].on .lbl--line::after,
html:not(.js) .lbl--line::after,
html.rev-safe .lbl--line::after { transform: scaleX(1); }
.lbl--onband { color: var(--brand-l); }
.sec__h { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; letter-spacing: .04em; line-height: 1.5; }
/* セクション見出し行（左=ラベル+見出し／右=補足の一文） */
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sec__note { font-size: 14px; color: var(--muted); }
/* ★見出しの直後に本文が続くときは必ず間を空ける（塊として分ける）。
   個別クラスごとに margin を書くとバラつくので、隣接セレクタで一括して効かせる */
.sec__h + p, .sec__h + div > p:first-child { margin-top: clamp(16px, 1.8vw, 24px); }

/* 濃紺帯 */
.band { background: var(--band-grad); color: var(--on-band); padding-block: calc(var(--pad-sec) * .88); }

/* ============================================================
   ヘッダー（白ソリッド・非オーバーレイ＝雛形0号の確定方針）
   ============================================================ */
.hd {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.hd.stuck { box-shadow: 0 2px 16px var(--sh-1); }
.hd--hide { transform: translateY(-100%); }
.hd__in {
  max-width: var(--wrap); margin-inline: auto; padding-inline: 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo--text {
  font-family: var(--font-en); font-weight: 800; font-size: 21px;
  letter-spacing: .02em; color: var(--ink);
}
.logo--light { color: #fff; }
.hd__r { display: flex; align-items: center; gap: 28px; }
.hd__nav { display: flex; gap: 28px; }
.hd__nav a {
  position: relative; font-size: 14px; font-weight: 600; letter-spacing: .05em;
  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: center; transition: transform .25s ease;
}
.hd__nav a:hover::after, .hd__nav a[aria-current="page"]::after { transform: scaleX(1); }
.hd__cta {
  background: var(--band); color: var(--on-band);
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  padding: 11px 22px; border-radius: var(--r-btn);
  transition: background .25s ease, color .25s ease;
}
.hd__cta:hover { background: var(--brand); color: var(--on-brand); }

/* バーガー（〜1024pxで表示） */
.burger { display: none; }
@media (max-width: 1024px) {
  .hd__nav, .hd__cta { display: none; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: 0; cursor: pointer;
  }
  .burger i { display: block; height: 2px; background: var(--ink); 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: 100px;
}
.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: 700;
  border-bottom: 1px solid var(--line);
}
.drawer__cta { margin-top: 32px; }
@media (prefers-reduced-motion: reduce) {
  .drawer { transition: none; }
}

/* ============================================================
   FV（写真＋キャッチ。ヘッダーの下に置く）
   ============================================================ */
.fv { position: relative; overflow: hidden; }
.fv__media { position: relative; height: min(78vh, 700px); overflow: hidden; }
.fv__img { width: 100%; height: 100%; object-fit: cover; }
/* 濃紺のベール（左ほど濃い）。文字の可読性を作る。色はトークン参照 */
.fv__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(95deg, var(--veil-1) 0%, var(--veil-2) 46%, var(--veil-3) 100%);
}
.fv__copy {
  position: absolute; left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  max-width: var(--wrap); margin-inline: auto; padding-inline: 32px;
  color: #fff;
}
.fv__lbl {
  display: flex; align-items: center; gap: 16px;
  color: var(--brand-l); font-weight: 600; font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: .18em; margin-bottom: 22px;
}
.fv__lbl::before { content: ''; width: 42px; height: 1px; background: currentColor; flex-shrink: 0; }
.fv__catch {
  font-size: clamp(34px, 5.2vw, 58px); font-weight: 800;
  line-height: 1.45; letter-spacing: .05em;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
/* ★行はSPでは縦に積み（意味の区切りで折れる）、PC（768px〜）では横に連結して1行にする。
   inline-block のままなので overflow:hidden が効き、行スライドの登場アニメも保たれる */
.fv__line { display: block; overflow: hidden; }
.fv__line > span { display: inline-block; }
@media (min-width: 768px) { .fv__line { display: inline-block; vertical-align: top; } }
.fv__sub {
  margin-top: 18px; font-size: clamp(14px, 1.6vw, 17px); font-weight: 600;
  letter-spacing: .08em; text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.fv__btn {
  display: inline-flex; align-items: center; gap: 34px;
  margin-top: 38px;
  background: var(--surface-inv); color: var(--on-surface-inv);
  font-size: 15px; font-weight: 700; letter-spacing: .06em;
  padding: 18px 34px; border-radius: var(--r-btn);
  transition: background .25s ease, color .25s ease;
}
.fv__btn svg { width: 26px; height: 8px; transition: transform .25s ease; }
.fv__btn:hover { background: var(--brand); color: var(--on-brand); }
.fv__btn:hover svg { transform: translateX(5px); }

/* FV登場（ページロード時。行単位のスライドアップ＝catch_linesと連動） */
html.js .fv__img { transform: scale(1.06); animation: fv-zoom 7s cubic-bezier(.2,.6,.3,1) forwards; }
html.js .fv__line > span {
  transform: translateY(110%);
  animation: fv-line .9s cubic-bezier(.22,.65,.3,1) forwards;
  animation-delay: calc(.15s + var(--i, 0) * .12s);
}
html.js .fv__lbl { opacity: 0; animation: fv-fade .7s ease forwards .05s; }
html.js .fv__sub { opacity: 0; animation: fv-fade .8s ease forwards .7s; }
html.js .fv__btn { opacity: 0; transform: translateY(14px); animation: fv-rise .7s cubic-bezier(.22,.65,.3,1) forwards .9s; }
@keyframes fv-zoom { to { transform: scale(1); } }
@keyframes fv-line { to { transform: translateY(0); } }
@keyframes fv-fade { to { opacity: 1; } }
@keyframes fv-rise { to { opacity: 1; transform: none; } }

/* ============================================================
   TOP
   ============================================================ */
/* 導入（左=ラベル+見出し／右=本文+リンクの2カラム）。固定背景を見せるため縦を厚めに取る */
.intro { padding-block: calc(var(--pad-sec) * 1.5); }
/* 固定背景：写真をスクロールに対して固定し、白ベールで伏せて本文の可読性を保つ。
   ★文字色は変えない（前後に暗いセクションが続くため、ここは明るいまま保つ）
   ★iOS Safari は background-attachment:fixed を無視する＝単に固定されないだけで崩れない。
     モバイルは描画負荷も高いので 1024px 以下では scroll に落とす（下のメディアクエリ） */
.intro--bg { position: relative; background-image: var(--intro-bg); background-size: cover;
  background-position: center; background-attachment: fixed; }
.intro--bg::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.78); }
.intro--bg > .wrap { position: relative; }
.intro__in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
/* ★サイズは「各行が折り返さない上限」で決める（2カラムに切り替わる1025px前後が最も窮屈）。
   変更したら必ず 1025 / 1100 / 1280 / 1440 / 390px で行数を実測すること */
.intro__h { font-size: clamp(23px, 3.8vw, 46px); font-weight: 800; line-height: 1.5; letter-spacing: .03em; }
.intro__r { padding-top: 30px; }
.intro__body { margin-bottom: 26px; }
.intro__body p { color: var(--muted); font-size: 15.5px; }

/* 事業カード（上に写真／番号は白ボックスで写真に食い込ませる） */
.svc__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 30px); margin-top: clamp(28px, 3.4vw, 44px); }
/* ★事業が4つの案件だけ横4列にする。3つ以下は既定の3列のまま＝他案件・雛形に影響しない */
.svc__cards--4 { grid-template-columns: repeat(4, 1fr); }
.svc__card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line-soft, var(--line));
  box-shadow: 0 3px 18px var(--sh-1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.svc__card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px var(--sh-2); }
.svc__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc__card:hover .svc__media img { transform: scale(1.04); }
/* 番号：写真の左下に白ボックスで重ねる */
.svc__no {
  position: absolute; left: 0; bottom: 0;
  background: var(--bg); color: var(--brand);
  font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; line-height: 1;
  padding: 13px 20px 11px;
}
.svc__body { display: flex; flex-direction: column; flex-grow: 1; padding: clamp(20px, 2.2vw, 28px); }
.svc__name { font-size: clamp(15.5px, 1.5vw, 17.5px); font-weight: 700; letter-spacing: .04em; }
/* 事業名の下の短い青線 */
.svc__name::after { content: ''; display: block; width: 30px; height: 2px; background: var(--brand); margin-top: 14px; }
.svc__desc {
  font-size: 14px; line-height: 1.9; color: var(--muted); flex-grow: 1;
  margin-top: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.svc__body .tlink { margin-top: 16px; }

/* 会社概要（左=写真／右=濃紺パネル。全幅・wrapの外） */
.abt { display: grid; grid-template-columns: 1fr 1fr; background: var(--band-grad); color: var(--on-band); }
.abt__media { position: relative; min-height: clamp(420px, 46vw, 620px); overflow: hidden; }
.abt__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.abt__panel { display: flex; align-items: center; padding: clamp(46px, 6vw, 92px) clamp(26px, 5vw, 78px); }
.abt__in { max-width: 560px; }
.abt__sub { font-size: clamp(17px, 1.7vw, 21px); font-weight: 700; letter-spacing: .06em; margin-bottom: clamp(20px, 2.6vw, 34px); }
.abt__h { font-size: clamp(25px, 3.2vw, 40px); font-weight: 800; letter-spacing: .04em; line-height: 1.55; margin-bottom: clamp(18px, 2.2vw, 28px); }
.abt__body p { font-size: 15px; opacity: .88; }
.abt__body p + p { margin-top: 15px; }
.abt__in .btn { margin-top: clamp(26px, 3.4vw, 42px); }
/* 濃紺の上に置くアウトラインボタン */
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: var(--surface-inv); color: var(--on-surface-inv); border-color: var(--surface-inv); }

/* お知らせ */
.news__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.news__list li { border-bottom: 1px solid var(--line); }
.news__list li:first-child { border-top: 1px solid var(--line); }
.news__list a {
  display: flex; align-items: baseline; gap: 28px;
  padding: 20px 8px; transition: background .25s 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; }
.news__list span { font-size: 15px; font-weight: 500; }

/* ============================================================
   下層共通：タイトル帯・パンくず
   ============================================================ */
/* タイトル帯：既定は濃紺グラデ＋白文字（背景画像がある場合は .ph--bg が写真＋ベールで上書き） */
.ph {
  background: var(--band-grad); color: var(--on-band);
  padding-block: calc(var(--pad-sec) * 1.05) calc(var(--pad-sec) * .95);
}
.ph .lbl { color: var(--brand-l); }
.ph .ph__h::after { background: var(--brand-l); }
.ph .ph__bc, .ph .ph__bc a { color: rgba(255,255,255,.72); }
.ph .ph__bc a:hover { color: #fff; }
/* 背景画像を敷くタイトル帯（高さは帯のまま。濃紺ベールを重ねて白文字にする） */
.ph--bg {
  position: relative; color: #fff;
  background-image: var(--ph-bg); background-size: cover; background-position: center;
}
.ph--bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(92deg, var(--veil-1) 0%, var(--veil-2) 55%, var(--veil-3) 100%);
}
.ph--bg > .wrap { position: relative; }
.ph--bg .lbl { color: var(--brand-l); }
.ph--bg .ph__bc, .ph--bg .ph__bc a { color: rgba(255,255,255,.72); }
.ph--bg .ph__bc a:hover { color: #fff; }
.ph__in { position: relative; }
.ph__h { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; letter-spacing: .06em; line-height: 1.4; }
.ph__h::after { content: ''; display: block; width: 34px; height: 3px; background: var(--brand); margin-top: 18px; }
.ph__bc { position: absolute; right: 0; bottom: 4px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.ph__bc a { color: var(--muted); }
.ph__bc a:hover { color: var(--brand); }
@media (max-width: 767px) { .ph__bc { position: static; margin-top: 14px; } }

/* ============================================================
   サービス
   ============================================================ */
.sintro__in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.sintro__body { margin-top: 22px; }
.sintro__body p { color: var(--muted); font-size: 15px; }
.sintro__body p + p { margin-top: 14px; }

/* 構想→実行→定着の図 */
.sintro__dia { display: flex; align-items: center; justify-content: center; gap: 18px; }
.sintro__circle {
  display: grid; place-items: center;
  width: 108px; height: 108px; border-radius: 50%;
  border: 2px solid var(--ink);
  font-size: 17px; font-weight: 700; letter-spacing: .1em;
  background: var(--bg);
}
.sintro__circle:last-of-type { border-color: var(--brand); color: var(--brand); }
.sintro__arr { color: var(--ink); }
.sintro__arr svg { width: 30px; height: 10px; }
.sintro__cap { text-align: center; margin-top: 22px; font-size: 14px; font-weight: 700; letter-spacing: .04em; }
/* 図の順次出現（親の .on を起点に円→矢印の順で立ち上がる） */
html.js [data-rev] .sintro__circle,
html.js [data-rev] .sintro__arr {
  opacity: 0; transform: scale(.85);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,.65,.3,1);
  transition-delay: calc(.15s + var(--i, 0) * .18s);
}
html.js [data-rev].on .sintro__circle,
html.js [data-rev].on .sintro__arr,
html.js.rev-safe [data-rev] .sintro__circle,
html.js.rev-safe [data-rev] .sintro__arr { opacity: 1; transform: none; }

/* 支援領域カード＝TOPのサービスカード（.svc__*）と共通の意匠を使う */

/* 事業詳細（交互） */
.sdetail__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.sdetail--rev .sdetail__in { grid-template-columns: 1.1fr 1fr; }
.sdetail--rev .sdetail__media { order: 2; }
.sdetail__media { border-radius: var(--r-card); overflow: hidden; box-shadow: 0 10px 34px var(--sh-2); }
.sdetail__media img { width: 100%; height: auto; transition: transform .5s ease; }
.sdetail__media:hover img { transform: scale(1.03); }
.sdetail__h { font-size: clamp(23px, 2.8vw, 29px); font-weight: 800; letter-spacing: .04em; margin-bottom: 16px; }
.sdetail__lead { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.sdetail__items-h { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.sdetail__items { margin-bottom: 24px; }
.sdetail__items li {
  position: relative; padding: 9px 0 9px 26px;
  font-size: 14.5px; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.sdetail__items li::before {
  content: ''; position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border: 2px solid var(--brand); border-radius: 50%;
}

/* 進め方（濃紺帯） */
.process__h { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: .05em; }
/* ============================================================
   支援事例（守秘義務のため社名は出さず、業種・規模・課題・打ち手・成果で見せる）
   ============================================================ */
/* 見出し行の右（導入文・注記・一覧リンク） */
.cases__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.cases__note { font-size: 13px; color: var(--muted); }
.cases__side .tlink { margin-top: 4px; }

.cases__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 30px); margin-top: clamp(28px, 3.4vw, 44px); }
.case {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--band);
}
.case__in { display: flex; flex-direction: column; flex-grow: 1; padding: clamp(22px, 2.4vw, 30px); }
.case__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
/* CASE＋番号は縦組み（カンプ準拠。番号を大きく見せる） */
.case__label { display: flex; flex-direction: column; color: var(--brand); line-height: 1.1; }
.case__label span { font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.case__label b { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: .02em; }
.case__meta { display: flex; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; justify-content: flex-end; }
.case__meta span { border: 1px solid var(--line); padding: 3px 10px; white-space: nowrap; }
.case__title { font-size: clamp(16px, 1.6vw, 18.5px); font-weight: 700; line-height: 1.6; margin: 18px 0 0; }
.case__body { margin-top: 18px; display: flex; flex-direction: column; flex-grow: 1; }
/* 課題／ご支援は横罫で仕切り、ラベルは縦罫で本文と分ける */
.case__body > div {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start;
  padding: 15px 0; border-top: 1px solid var(--line);
}
.case__body dt { font-size: 12.5px; font-weight: 700; color: var(--brand); }
.case__body dd { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); }
/* 成果はカード下部の色帯として独立させる */
.case__result {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: var(--tint-2); padding: clamp(18px, 2vw, 22px) clamp(22px, 2.4vw, 30px);
}
.case__rlabel {
  background: var(--brand); color: var(--on-brand);
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  padding: 6px 12px; white-space: nowrap;
}
.case__result > span:last-child { font-size: 13.5px; font-weight: 600; line-height: 1.8; }

.process__note { font-size: 14.5px; opacity: .8; }

/* ★水平タイムライン：線の上に4つのノード。線→ノードの順に出て、その後ノードが順に脈打つ */
.process__steps {
  --proc-gap: clamp(20px, 2.6vw, 40px);
  --node: 21px;          /* ノードの直径 */
  --track: 30px;         /* 線の高さ位置（ステップ上端から） */
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--proc-gap);
  margin-top: clamp(34px, 4vw, 52px); padding-top: calc(var(--track) + 34px);
}
/* 横一本の線（左→右へ伸びる） */
.process__steps::before {
  content: ''; position: absolute; top: var(--track); left: 0; right: 0; height: 1px;
  background: rgba(255,255,255,.28);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1s cubic-bezier(.22,.65,.3,1);
}
html:not(.js) .process__steps::before,
.process__steps.on::before,
html.rev-safe .process__steps::before { transform: scaleX(1); }

.process__step { position: relative; }
/* ステップ間の縦の区切り線（ノードより下） */
.process__step:not(:first-child)::after {
  content: ''; position: absolute; top: 0; bottom: 4px;
  left: calc(var(--proc-gap) / -2); width: 1px; background: rgba(255,255,255,.13);
}
/* ノード（外周リング＋中央の点） */
/* ★top に % は使わない（親=stepの高さ基準になって浮く）。
   step上端から線までの距離（padding-top − --track = 34px）を負で指定する */
.process__node {
  position: absolute; top: -34px; left: 50%;
  width: var(--node); height: var(--node);
  border-radius: 50%; border: 1px solid rgba(255,255,255,.55);
  background: var(--band);
  display: grid; place-items: center;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
  transition-delay: calc(.45s + var(--i) * .13s);
}
.process__node::after {
  content: ''; width: calc(var(--node) * .48); height: calc(var(--node) * .48);
  border-radius: 50%; background: var(--brand);
}
/* 脈動（波紋）。ノードが出そろってから順に広がる */
.process__node::before {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--brand); opacity: 0;
}
html:not(.js) .process__node,
.process__steps.on .process__node,
html.rev-safe .process__node { transform: translate(-50%, -50%) scale(1); }
.process__steps.on .process__node::before,
html.rev-safe .process__node::before {
  animation: node-pulse 3.2s ease-out infinite;
  animation-delay: calc(1.1s + var(--i) * .4s);
}
@keyframes node-pulse {
  0%        { transform: scale(.72); opacity: .75; }
  55%, 100% { transform: scale(1.55); opacity: 0; }
}

.process__name { display: flex; align-items: baseline; gap: 12px; font-size: 16.5px; font-weight: 700; margin-bottom: 10px; }
.process__name .en { color: var(--brand-l); font-size: clamp(21px, 2.4vw, 30px); font-weight: 800; }
.process__desc { font-size: 13.5px; opacity: .85; line-height: 1.9; }
/* 中身は線が伸びたあと順に立ち上がる */
html.js .process__step > :not(.process__node) {
  opacity: 0; transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: calc(.5s + var(--i) * .13s);
}
html.js .process__steps.on .process__step > :not(.process__node),
html.js.rev-safe .process__step > :not(.process__node) { opacity: 1; transform: none; }

/* ============================================================
   会社概要
   ============================================================ */
.phic__st { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: .06em; line-height: 1.6; margin: 30px 0 26px; }
.phic__body { max-width: 720px; }
.phic__body p { color: var(--muted); font-size: 15px; }
.phic__body p + p { margin-top: 14px; }

/* 代表挨拶：濃紺グラデ地に白文字 */
.msg { background: var(--band-grad); color: var(--on-band); }
.msg .lbl { color: var(--brand-l); }
.msg__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.msg__p { font-size: 15px; opacity: .88; }
.msg__p + .msg__p { margin-top: 16px; }
.msg__sign { margin-top: 30px; font-size: 14px; font-weight: 700; line-height: 2; }
.msg__name { font-size: 17px; }
/* 引用符（装飾）。左上に大きく置いて“語り”の面であることを示す */
.msg__body { position: relative; }
.msg__quote {
  position: absolute; left: -.12em; top: -.55em;
  font-family: var(--font-en); font-size: clamp(80px, 9vw, 130px); font-weight: 800;
  line-height: 1; color: rgba(255,255,255,.13); pointer-events: none;
}
.msg__body > *:not(.msg__quote) { position: relative; }
/* 引用として立てる一文（左に縦線） */
.msg__lead {
  font-size: clamp(19px, 2.2vw, 27px); font-weight: 700; line-height: 1.65; letter-spacing: .02em;
  border-left: 2px solid var(--brand-l); padding-left: clamp(16px, 1.6vw, 22px);
  margin: clamp(20px, 2.4vw, 30px) 0 clamp(20px, 2.4vw, 28px);
}
.msg__sign {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: clamp(24px, 3vw, 34px); padding-top: clamp(18px, 2vw, 24px);
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: 13.5px; opacity: .9;
}
.msg__name { font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: .12em; opacity: 1; margin-top: 2px; }
/* 写真＋右端の縦組み英字 */
.msg__media { position: relative; }
.msg__media img { width: 100%; height: auto; }
.msg__vtext {
  position: absolute; right: -22px; top: 0;
  writing-mode: vertical-rl; font-size: 10.5px; letter-spacing: .22em;
  color: rgba(255,255,255,.5); white-space: nowrap;
}

/* ── 代表プロフィール（セクション下部・横並びの年表）────────────── */
.career { margin-top: clamp(40px, 5vw, 66px); padding-top: clamp(28px, 3.4vw, 44px); }
.career__in { display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 3vw, 40px); align-items: start; }
.career__en { font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--brand-l); }
.career__h { font-size: 15px; font-weight: 700; letter-spacing: .06em; margin-top: 6px; }
.career__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
/* 各項目：上に横線＋点。線は左右いっぱいに繋がって見える */
.career__item { position: relative; padding-top: 26px; }
.career__item::before {
  content: ''; position: absolute; top: 5px; left: 0; right: calc(clamp(16px, 2vw, 28px) * -1);
  height: 1px; background: rgba(255,255,255,.24);
}
.career__item:last-child::before { right: 0; }
.career__dot {
  position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--brand-l);
  transform: scale(0); transition: transform .45s cubic-bezier(.34,1.56,.64,1);
  transition-delay: calc(.2s + var(--i) * .1s);
}
html:not(.js) .career__dot,
[data-rev].on .career__dot,
html.rev-safe .career__dot { transform: scale(1); }
.career__year { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: var(--brand-l); line-height: 1.2; }
.career__text { margin-top: 10px; font-size: 13px; line-height: 1.85; opacity: .86; }

.profile__tbl { max-width: 860px; margin-top: 34px; border-top: 1px solid var(--line-strong); }
.profile__row { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 18px 8px; border-bottom: 1px solid var(--line); }
.profile__row dt { font-weight: 700; font-size: 14.5px; }
.profile__row dd { font-size: 14.5px; color: var(--muted); }


/* ============================================================
   お知らせ記事
   ============================================================ */
.article__in { max-width: 760px; }
.article__date { font-family: var(--font-en); font-weight: 600; font-size: 14px; color: var(--muted); }
.article__h { font-size: clamp(22px, 2.8vw, 28px); font-weight: 800; line-height: 1.6; margin: 10px 0 34px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
/* 記事のアイキャッチ（items に img がある記事だけ出る） */
.article__eye { margin: 0 0 32px; border-radius: var(--r-card); overflow: hidden; }
.article__eye img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.article__body p { font-size: 15.5px; line-height: 2.2; }
.article__body p + p { margin-top: 18px; }

/* ── 記事本文の装飾（2026-09-27 追加・[[startin]] で作った型をトークン化して移植）──
   ★本文は素のHTMLタグだけで書く（h2/h3/h4/h5・ul/ol・blockquote・strong・a）。
     独自クラスを覚えなくてよい＝顧客がAIに「見出しにして」と頼めばそのまま効く。
   ★色はトークン参照のみ。案件の差し色（--brand）が自動で乗る */
.article__body h2 {
  font-size: 20px; font-weight: 800; line-height: 1.6;
  margin: 44px 0 14px; padding-left: 14px;
  border-left: 3px solid var(--brand);
}
.article__body h3 {
  font-size: 18px; font-weight: 800; line-height: 1.6;
  margin: 36px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
}
/* 下線の左端に差し色の短い帯を重ねる */
.article__body h3::after {
  content: ''; display: block; width: 46px; height: 2px;
  background: var(--brand); position: relative; top: 9px; margin-bottom: -9px;
}
.article__body h4 {
  font-size: 16.5px; font-weight: 800; line-height: 1.7;
  margin: 30px 0 10px; display: flex; align-items: baseline; gap: 9px;
}
.article__body h4::before {
  content: ''; flex: none; width: 7px; height: 7px;
  border-radius: 50%; background: var(--brand);
}
.article__body h5 {
  font-size: 15px; font-weight: 700; line-height: 1.7;
  margin: 26px 0 8px; letter-spacing: .04em; color: var(--muted);
}
/* 見出しの直後の段落は上余白を詰める（見出しと本文を一塊に見せる） */
.article__body h2 + p, .article__body h3 + p,
.article__body h4 + p, .article__body h5 + p { margin-top: 0; }

.article__body ul, .article__body ol { padding-left: 1.5em; margin-top: 18px; }
.article__body ul li, .article__body ol li { font-size: 15.5px; line-height: 2.1; }
.article__body ul li { list-style: disc; }
.article__body ol li { list-style: decimal; }
.article__body ol li::marker { color: var(--brand); font-weight: 700; }
.article__body ul + p, .article__body ol + p { margin-top: 22px; }
.article__body p + ul, .article__body p + ol { margin-top: 18px; }

.article__body blockquote {
  margin: 30px 0; padding: 20px 22px;
  border-left: 3px solid var(--brand);
  background: var(--tint-2); border-radius: var(--r-card);
}
.article__body blockquote p { margin: 0; font-size: 15px; color: var(--muted); }

.article__body strong { font-weight: 800; }
.article__body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article__body a:hover { text-decoration-thickness: 2px; }

.article__back { margin-top: 44px; }

/* ============================================================
   お問い合わせ
   ============================================================ */
/* フォームは1カラム。見出しを上に置き、幅を読みやすい範囲に絞る */
.cf__in { max-width: 820px; margin-inline: auto; }
.cf__side { text-align: center; margin-bottom: clamp(26px, 3vw, 38px); }
.cf__h { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; line-height: 1.6; margin-bottom: 14px; }
.cf__note { font-size: 14px; color: var(--muted); }
/* ★見出し直後の余白は共通ルール（.sec__h + p）に任せる。ここで個別に指定しない
   （個別指定は後勝ちで共通ルールを上書きし、セクションごとに間隔がばらつく） */
.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;
}
.cf__req { background: var(--brand); color: var(--on-brand); }
.cf__opt { background: var(--line); color: var(--muted); }

.cf__form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 40px 36px; box-shadow: 0 6px 26px var(--sh-1); }
.f-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.f-row { margin-bottom: 22px; }
.f-row label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.f-row input, .f-row select, .f-row textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--tint-1); border: 1px solid var(--line);
  border-radius: var(--r-btn); padding: 12px 14px;
  transition: border-color .2s ease, background .2s ease;
}
.f-row input:focus, .f-row select:focus, .f-row textarea:focus {
  outline: none; border-color: var(--brand); background: var(--bg);
}
.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: var(--r-btn); padding: 12px 16px; margin-bottom: 20px; }
.f-alert.on { display: block; }
.f-agree { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-top: 28px; }
.f-agree a { color: var(--brand); text-decoration: underline; }
.f-agree input { width: 18px; height: 18px; accent-color: var(--brand); }
.act { margin-top: 28px; }
.cf__form .act { text-align: center; }
.is-sending { opacity: .6; pointer-events: none; }

/* お問い合わせの流れ（3ステップ） */
.flow__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(26px, 3vw, 38px); }
.flow__item {
  position: relative; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px 26px 28px;
  box-shadow: 0 3px 16px var(--sh-1);
}
.flow__no { display: block; color: var(--brand); font-size: 26px; font-weight: 800; line-height: 1; }
.flow__name { font-size: 16px; font-weight: 700; margin: 12px 0 10px; }
.flow__desc { font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.flow__mail { margin-top: clamp(20px, 2.4vw, 30px); font-size: 13px; color: var(--muted); }
.flow__mail a { color: var(--brand); text-decoration: underline; }

/* ============================================================
   サンクス・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, 30px); font-weight: 800; margin: 6px 0 22px; }
.thx__lead p { font-size: 15px; color: var(--muted); }
.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-size: clamp(64px, 10vw, 110px); font-weight: 800; color: var(--tint-4); line-height: 1; }

/* ============================================================
   プライバシーポリシー
   ============================================================ */
/* ★本文幅は他のコンテンツページと揃える＝.wrap の幅をそのまま使う。
   ここで max-width を指定しない（none にすると .wrap の制限まで外れて全幅になる） */
.pp__in h2 { font-size: 18px; font-weight: 700; margin: 36px 0 12px; padding-left: 14px; border-left: 3px solid var(--brand); }
.pp__in p { font-size: 15px; color: var(--muted); }
.pp__in ul { padding-left: 1.4em; }
.pp__in ul li { list-style: disc; font-size: 15px; color: var(--muted); }
.pp__in a { color: var(--brand); text-decoration: underline; }

/* ============================================================
   CTA帯・フッター
   ============================================================ */
/* CTA帯（左=見出し／縦線／右=大きめボタン） */
.cta { background: var(--tint-2); padding-block: calc(var(--pad-sec) * .92); }
.cta__in { display: grid; grid-template-columns: 1fr auto; gap: clamp(28px, 5vw, 76px); align-items: center; }
.cta__h { font-size: clamp(25px, 4vw, 46px); font-weight: 800; letter-spacing: .03em; line-height: 1.45; margin-bottom: 18px; }
.cta__note { font-size: 15px; color: var(--muted); }
.cta__r { border-left: 1px solid var(--line); padding-left: clamp(22px, 4vw, 62px); text-align: center; }
.btn--lg { padding: 25px 54px; font-size: 17px; gap: 44px; }
.cta__bnote { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* フッター */
.ft { background: var(--band); color: var(--on-band); padding-top: clamp(40px, 5vw, 64px); }
.ft__in {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 28px;
  padding-bottom: clamp(28px, 4vw, 46px);
}
.ft__logo .logo--text { font-size: clamp(19px, 2.1vw, 25px); }
/* ロゴの下の短い青線＋タグライン */
.ft__tag { position: relative; margin-top: 26px; padding-top: 22px; font-size: 14px; opacity: .82; }
.ft__tag::before { content: ''; position: absolute; top: 0; left: 0; width: 68px; height: 2px; background: var(--brand-l); }
.ft__nav { display: flex; flex-wrap: wrap; gap: 16px 32px; padding-top: 6px; }
.ft__nav a { font-size: 13.5px; font-weight: 600; opacity: .9; transition: opacity .2s ease; }
.ft__nav a:hover { opacity: 1; text-decoration: underline; }
.ft__btm {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-block: 18px 26px; border-top: 1px solid rgba(255,255,255,.16);
}
/* ★サンプルサイトの注記（フォーム上・サンクス画面）
   エラーの赤とは別物と分かるよう、地色に馴染む中立な面で出す */
.f-sample {
  margin: 0 0 clamp(16px, 2vw, 22px);
  padding: clamp(12px, 1.6vw, 16px) clamp(14px, 1.8vw, 18px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  font-size: 13.5px; line-height: 1.85;
}
.f-sample strong { font-weight: 700; }

/* ★サンプル表記（フッター内・全ページ共通）
   目立たせすぎず、しかし読めば必ず分かる強さにする。
   本番案件では site.php の sample_note を空にすれば丸ごと消える */
.ft__sample {
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-block: clamp(14px, 1.6vw, 18px);
}
.ft__sample p { font-size: 12.5px; line-height: 1.9; opacity: .66; max-width: 76ch; }

.ft__copy { font-size: 12.5px; opacity: .65; font-family: var(--font-en); }
.ft__links { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.ft__links a { opacity: .85; transition: opacity .2s ease; }
.ft__links a:hover { opacity: 1; }
.ft__top { border-left: 1px solid rgba(255,255,255,.28); padding-left: 18px; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1024px) {
  .sintro__in, .sdetail__in, .sdetail--rev .sdetail__in, .msg__in { grid-template-columns: 1fr; gap: 40px; }
  .intro__in { grid-template-columns: 1fr; gap: 26px; }
  .intro__r { padding-top: 0; }
  .flow__list { gap: 16px; }
  /* 4カラムはタブレット幅だと窮屈なので2×2へ */
  .svc__cards--4 { grid-template-columns: repeat(2, 1fr); }
  /* 事例は3カラムだと窮屈になるので2カラムへ（3枚目は1枚で並ぶ） */
  .cases__list { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  /* 代表プロフィール：見出しを上に出し、年表は2カラムへ */
  .career__in { grid-template-columns: 1fr; gap: 22px; }
  .career__list { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .msg__vtext { display: none; }
  /* ★モバイルは固定背景を切る（iOS Safariは無視する仕様＋描画負荷が高い） */
  .intro--bg { background-attachment: scroll; }
  /* 会社概要：写真が上、テキストが下の縦積みに */
  .abt { grid-template-columns: 1fr; }
  .abt__media { min-height: clamp(260px, 48vw, 380px); }
  .abt__in { max-width: none; }
  .sdetail--rev .sdetail__media { order: 0; }
  /* 2カラム時：線とノードは成立しないので伏せ、区切り線だけ残す */
  .process__steps { grid-template-columns: repeat(2, 1fr); padding-top: 0; row-gap: 34px; }
  .process__steps::before { display: none; }
  .process__node { display: none; }
  .process__step:nth-child(3)::after { display: none; }
}
@media (max-width: 767px) {
  /* ★padding は --pad-sec のclampが吸収するのでここでは触らない（二重管理を避ける） */
  /* SPでは改行を解いて1行に収める見出し（PCの改行はカンプ通り残す） */
  .cta__h br { display: none; }
  .cta__h { font-size: clamp(18px, 5vw, 21px); }

  /* ★孤立行（最終行に「す。」等が2文字だけ落ちる）を潰す。
     見出しは text-wrap:pretty で行を均し、詰まる文言はサイズ側で1文字分を稼ぐ。
     ※文言を変えずに直せるのが利点。案件で原稿が変わっても効き続ける */
  .sec__h, .cf__h, .phic__st, .intro__h, .abt__h, .process__h, .thx__h, .sdetail__h { text-wrap: pretty; }
  .phic__st { font-size: clamp(21px, 5.6vw, 27px); }
  .cf__h    { font-size: clamp(19px, 5vw, 24px); }
  .sintro__cap, .cf__note, .flow__desc, .cta__note { text-wrap: pretty; }
  .svc__cards, .svc__cards--4, .flow__list, .cases__list { grid-template-columns: 1fr; }
  /* 代表プロフィール：縦積み。線は各項目の上に短く残す */
  .career__list { grid-template-columns: 1fr; row-gap: 22px; }
  .career__item::before { right: 0; }
  .msg__quote { font-size: 76px; top: -.4em; }
  /* 引用見出しはSPで末尾が落ちやすいので1段詰める */
  .msg__lead { font-size: clamp(17px, 4.6vw, 21px); padding-left: 14px; }
  /* CTA帯：縦積みにして、縦線を上の横線に置き換える */
  .cta__in { grid-template-columns: 1fr; gap: 28px; }
  .cta__r { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 28px; }
  .btn--lg { padding: 20px 32px; font-size: 15.5px; gap: 24px; }
  /* フッター：ロゴ／ナビ、©／リンクを縦に */
  .ft__in { flex-direction: column; gap: 26px; }
  .ft__btm { flex-direction: column; align-items: flex-start; gap: 12px; }
  .process__steps { grid-template-columns: 1fr; gap: 26px; }
  .process__step::after { display: none; }   /* 縦積みでは区切り線を出さない */
  .fv__media { height: 64vh; }
  .fv__copy { bottom: 88px; padding-inline: 24px; }
  .fv__catch { font-size: clamp(30px, 8.6vw, 38px); }  /* 各行が1行に収まるサイズ（ルール21） */
  /* FVラベルはSPで折り返さない（線を詰め・字間を締めて1行に収める） */
  .fv__lbl { font-size: 10.5px; letter-spacing: .1em; gap: 10px; margin-bottom: 16px; }
  .fv__lbl::before { width: 22px; }
  .fv__btn { margin-top: 28px; padding: 15px 24px; gap: 20px; font-size: 14px; }
  /* 見出しの孤立行対策（「〜があ／る。」等の1〜2文字落ちを潰す。LPで実測済みの罠） */
  .abt__h { font-size: clamp(21px, 5.6vw, 27px); }
  .cta__h { font-size: clamp(18px, 5vw, 22px); }
  .news__list a { flex-direction: column; gap: 4px; }
  .profile__row { grid-template-columns: 1fr; gap: 4px; padding: 14px 4px; }
  .cf__form { padding: 28px 20px; }
  /* ★図が横にはみ出さないサイズに詰める（円3つ＋矢印2つ＋gapが最小幅360pxに収まること） */
  .sintro__dia { gap: 10px; }
  .sintro__circle { width: 72px; height: 72px; font-size: 13.5px; }
  .sintro__arr svg { width: 16px; }
  .ft__in { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ============================================================
   reduced-motion：全アニメ停止（背景・出現・ホバー移動）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-rev],
  html.js [data-rev] .sintro__circle,
  html.js [data-rev] .sintro__arr { opacity: 1; transform: none; transition: none; }
  html.js .fv__img, html.js .fv__line > span, html.js .fv__sub,
  html.js .fv__lbl, html.js .fv__btn {
    animation: none; transform: none; opacity: 1;
  }
  .fv__copy { transform: translateY(-50%); }   /* 位置指定のtransformは維持する */
  .fv__btn:hover svg { transform: none; }
  .lbl--line::after { transform: scaleX(1); transition: none; }
  /* タイムラインは完成形で静止（線の伸長・ノードの出現・脈動をすべて止める） */
  .process__steps::before { transform: scaleX(1); transition: none; }
  .process__node { transform: translate(-50%, -50%) scale(1); transition: none; }
  .process__node::before { animation: none; opacity: 0; }
  html.js .process__step > :not(.process__node) { opacity: 1; transform: none; transition: none; }
  .svc__card:hover, .btn:hover svg, .tlink:hover svg, .sdetail__media:hover img,
  .svc__card:hover .svc__media img { transform: none; }
  /* 経歴の点は出現アニメを止めて最初から表示する */
  .career__dot { transform: scale(1); transition: none; }
  .hd, .hd--hide { transition: none; transform: none; }
}

/* PHILOSOPHY に画像を置く案件だけ2カラムにする（philosophy.image が空なら従来どおり1カラム） */
.phic--media .phic__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.phic--media .phic__body { max-width: none; }
.phic__media img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .phic--media .phic__in { grid-template-columns: 1fr; gap: 28px; } }

/* FVのSP用カット（site.fv_image_sp）を <picture> で出し分ける。
   picture を display:contents にして img を .fv__media の直子として扱う */
.fv__media picture { display: contents; }

/* サービス導入の図解を1枚絵で持つ場合（service_intro.image） */
.sintro__fig img { width: 100%; height: auto; display: block; }

/* ── ブログ式の記事カード（collections[<key>].layout = 'blog'）────────
   ★雛形5号から移植（2026-09-14）。list 形式しか使わない案件には一切効かない。
   カードの中身は「アイキャッチ／カテゴリ／日付／タイトル」まで。抜粋は出さない */
.blog {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.2vw, 42px) clamp(20px, 2.2vw, 28px);
  margin-top: clamp(28px, 3.4vw, 44px);
}
.blog__link { display: grid; gap: 14px; color: inherit; text-decoration: none; }
.blog__thumb {
  display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-card); background: var(--tint-2);
}
.blog__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.blog__link:hover .blog__thumb img { transform: scale(1.05); }
/* アイキャッチを持たない記事の代わり。カードの高さを揃えるための面（無彩色に社名を薄く） */
.blog__thumb--none { display: grid; place-items: center; background: var(--tint-2); }
.blog__thumb-ph {
  font-weight: 800; font-size: clamp(15px, 1.6vw, 19px); letter-spacing: .24em;
  color: var(--ink); opacity: .17;
}
.blog__body { display: grid; gap: 9px; }
.blog__meta { display: flex; align-items: center; gap: 12px; }
.blog__cat {
  background: var(--brand); color: var(--on-brand); border-radius: 999px;
  padding: 4px 13px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-decoration: none; white-space: nowrap;
}
a.blog__cat:hover { background: var(--ink); color: var(--bg); }
.blog__date {
  font-family: var(--font-en); font-size: 13px; font-weight: 700;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.blog__title { font-size: 15.5px; font-weight: 700; line-height: 1.75; }
.blog__link:hover .blog__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* カテゴリの絞り込みタブ */
.blog__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(26px, 3vw, 38px); }
.blog__tab {
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 20px;
  font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.blog__tab:hover { border-color: var(--ink); }
.blog__tab.is-current { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* 記事ページのカテゴリ表示（blog 形式のときだけ出る） */
.article__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }

@media (max-width: 1024px) { .blog { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .blog { grid-template-columns: 1fr; gap: 26px; }
  .blog__tabs { gap: 8px; }
  .blog__tab { padding: 8px 16px; font-size: 12.5px; }
}

/* ============================================================
   記事のフリーワード検索（collections[<key>].search が true のときだけ出る）
   ★ブランド色の直値は書かない＝トークン参照のみ
   ============================================================ */
.psearch { margin-bottom: clamp(22px, 2.6vw, 32px); }
.psearch__label {
  display: block; margin-bottom: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted);
}
.psearch__row { display: flex; gap: 10px; align-items: stretch; max-width: 520px; }
.psearch__input {
  flex: 1 1 auto; min-width: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  background: var(--bg); color: var(--ink);
  padding: 11px 15px; font: inherit; font-size: 14.5px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.psearch__input::placeholder { color: var(--muted); }
.psearch__input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--tint-2);
}
/* 検索欄のクリア（×）はブラウザ標準を隠して自前のボタンに寄せる */
.psearch__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.psearch__clear {
  flex: 0 0 auto;
  border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  background: transparent; color: var(--ink);
  padding: 0 16px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.psearch__clear:hover { border-color: var(--ink); background: var(--tint-1); }
.psearch__count {
  margin-top: 8px; min-height: 1.5em;
  font-size: 12.5px; color: var(--muted);
}
.psearch__empty {
  padding: 28px 0; text-align: center; font-size: 14.5px; color: var(--muted);
}

/* ★絞り込みで外れたカードを消す。
   .blog__card / .news__list li は display を持つので hidden 属性だけでは消えない */
.blog__card[hidden],
.news__list li[hidden] { display: none; }

@media (max-width: 700px) {
  .psearch__row { max-width: none; }
}

/* ============================================================
   JIRDO 案件固有（2026-10-16〜）
   ------------------------------------------------------------
   ・画像ロゴ（名刺から切り出し）＋団体名のテキスト
   ・言語切替（JP／EN／ID）＝ヘッダー右・ドロワー
   ・事業が5つ＝カードを 3＋2 で組む
   ・フッターの団体名・所在地
   ★色は var() のみ（ゴールド＝--brand、濃紺＝--ink／--band）
   ============================================================ */
.hd__in { height: 76px; }
.logo--img { display: inline-flex; align-items: center; gap: 12px; }
.logo--img img { width: auto; height: 46px; }
.logo__name {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; line-height: 1.4;
  color: var(--ink); max-width: 18em;
}
.logo--light .logo__name { color: #fff; }
.ft__logo .logo--img img { height: 72px; }
.ft__logo .logo__name { font-size: 14px; max-width: none; }
html[lang="en"] .logo__name, html[lang="id"] .logo__name { max-width: 15em; font-size: 12px; }
@media (max-width: 480px) { .hd__logo .logo__name { display: none; } .hd__in { height: 64px; } .logo--img img { height: 40px; } }

/* 言語切替 */
.lang { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-btn); overflow: hidden; }
.lang a {
  font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .08em;
  padding: 6px 10px; color: var(--ink); line-height: 1; transition: background .2s ease, color .2s ease;
}
.lang a + a { border-left: 1px solid var(--line-strong); }
.lang a:hover { background: var(--tint-2); }
.lang a[aria-current="true"] { background: var(--band); color: var(--on-band); }
.hd__r .lang { margin-right: -8px; }
@media (max-width: 1024px) { .hd__r { gap: 14px; } .hd__r .lang { margin-right: 0; } }
.lang--drawer { margin-top: 28px; border: 0; border-radius: 0; gap: 10px; flex-wrap: wrap; }
.lang--drawer a { border: 1px solid var(--line-strong); border-radius: var(--r-btn); font-family: var(--font-jp); font-size: 13px; letter-spacing: .04em; padding: 10px 16px; }
.lang--drawer a + a { border-left: 1px solid var(--line-strong); }

/* 事業カード×5＝PCは 3＋2（6分割グリッドで前3枚は2列分、後2枚は3列分） */
.svc__cards--5 { grid-template-columns: repeat(6, 1fr); }
.svc__cards--5 .svc__card { grid-column: span 2; }
.svc__cards--5 .svc__card:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 1024px) { .svc__cards--5 { grid-template-columns: repeat(2, 1fr); } .svc__cards--5 .svc__card, .svc__cards--5 .svc__card:nth-child(n+4) { grid-column: auto; } }
@media (max-width: 767px) { .svc__cards--5 { grid-template-columns: 1fr; } }

/* フッターの団体名・所在地 */
.ft__addr { display: grid; gap: 2px; margin-top: 22px; font-style: normal; font-size: 13px; line-height: 1.8; opacity: .82; }
.ft__org { font-weight: 700; opacity: 1; }

/* 公益団体らしい落ち着き＝カード・番号の差し色はゴールド、見出し下の線も細く */
.svc__no { color: var(--brand); }
.ph__h::after { height: 2px; }
/* FVのキャッチは3行を意味の区切りで立てる（PCでは1行に連結＝kit標準）。字間を少し広く */
.fv__catch { letter-spacing: .08em; }
.fv__lbl { color: var(--brand-l); }
/* 団体概要表の値に改行（基本理念など長文）を許す */
.profile__row dd { white-space: normal; }
/* 英語・インドネシア語＝欧文の行長が伸びるので本文の字間を標準に戻す */
html[lang="en"] body, html[lang="id"] body { letter-spacing: 0; line-break: auto; }
html[lang="en"] .fv__catch, html[lang="id"] .fv__catch { letter-spacing: .02em; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.3; }
html[lang="en"] .sec__h, html[lang="id"] .sec__h { letter-spacing: .01em; }

/* ── 実描画で直した点（2026-10-17・PC1440／SP390 のスクショ）──
   ・FVのキャッチは3行を常に縦に積む（PCで横連結すると「地域をつなぎ、技術をつなぎ、／未来をつくる。」と2＋1に割れた）
   ・導入見出し・団体概要パネル見出しは2カラムの幅に収まるサイズへ（「結／ぶ、」「つな／ぎ、」の語中折れを潰す）
   ・英語・インドネシア語は語が長いので CTA・導入の見出しを一段小さく */
.fv__line { display: block; }
.intro__h { font-size: clamp(23px, 3vw, 38px); }
.abt__h { font-size: clamp(24px, 2.6vw, 34px); }
html[lang="en"] .intro__h, html[lang="id"] .intro__h { font-size: clamp(22px, 2.6vw, 34px); }
html[lang="en"] .cta__h, html[lang="id"] .cta__h { font-size: clamp(22px, 2.8vw, 34px); }
html[lang="en"] .abt__h, html[lang="id"] .abt__h { font-size: clamp(22px, 2.3vw, 30px); }
html[lang="en"] .phic__st, html[lang="id"] .phic__st { font-size: clamp(24px, 3.2vw, 36px); }

/* ── ボス実地レビュー①（2026-10-17・写真差し替え後）── */
/* 1) ヘッダーのロゴがグローバルナビより上に浮く → a.hd__logo をフレックスにしてヘッダー高の中で垂直中央に */
.hd__logo { display: flex; align-items: center; align-self: stretch; }
.logo--img { align-items: center; }
/* 2) CTA帯の見出しが「くださ／い。」で孤立 → 1行14字が列幅に収まるサイズへ（PC1440で実測） */
.cta__h { font-size: clamp(24px, 3vw, 40px); }
/* 3) 英語・インドネシア語の図（調査研究→技術交流→人材育成）で語が円からはみ出す → 円を少し大きく・字を小さく・折り返し可 */
html[lang="en"] .sintro__circle, html[lang="id"] .sintro__circle {
  width: 122px; height: 122px; font-size: 13px; letter-spacing: .02em;
  text-align: center; line-height: 1.25; padding: 0 8px; overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  html[lang="en"] .sintro__circle, html[lang="id"] .sintro__circle { width: 84px; height: 84px; font-size: 10.5px; padding: 0 4px; }
}

/* ── スマホ調整（2026-10-17・ボス実機 iPhone）──
   FVの高さが足りない → 画面の高さ基準に（svh＝ブラウザのバーを除いた見える高さ。非対応は vh に落ちる） */
@media (max-width: 767px) {
  .fv__media { height: 78vh; height: min(84svh, 760px); min-height: 560px; }
  .fv__copy { top: auto; bottom: 64px; transform: none; }
  .fv__catch { font-size: clamp(30px, 8.8vw, 40px); line-height: 1.4; }
  .fv__sub { font-size: 14.5px; line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) { .fv__copy { transform: none; } }

/* ── スマホの改行総点検（2026-10-17・390px で全ページを実測）──
   原則：行の配列で持つ文（<br> 連結）は、PCの意味の区切りがSPでは幅に合わないので
   SPでは <br> を解いて自然に流す。見出しは「1行が列幅に収まる字数×サイズ」になるよう1段落とす */
.br-sp { display: none; }
@media (max-width: 767px) {
  .br-sp { display: inline; }
  /* FVのサブ文・団体概要パネルの本文＝行（.ln）はSPでは空白1つで続ける（PCでは下で block） */
  /* 団体概要パネルの見出し（14字） */
  .abt__h { font-size: clamp(19px, 5vw, 24px); }
  /* セクション見出し（事業内容ページの導入「実践的で継続性のある協力を。」14字） */
  .sec__h { font-size: clamp(20px, 5.6vw, 23px); }
  /* 事業詳細の見出し（「社会インフラ整備・地域開発支援事業」17字） */
  .sdetail__h { font-size: 18px; letter-spacing: .02em; }
  /* CTA帯＝改行を残したまま、2行目15字が収まるサイズに（kit標準は br を消すが、英語で語がくっつく） */
  .cta__h br { display: inline; }
  .cta__h { font-size: clamp(17px, 4.9vw, 20px); }
  /* お問い合わせの見出し＝| の位置で折る */
  .cf__h { font-size: clamp(17px, 4.9vw, 20px); }
  /* フッター：団体名（18字）と所在地の建物名 */
  .ft__logo .logo__name { font-size: 12px; max-width: none; }
  .ft__addr2 { display: block; }
  /* 英語・インドネシア語の見出しはそのまま小さく */
  html[lang="en"] .cta__h, html[lang="id"] .cta__h { font-size: clamp(17px, 4.8vw, 20px); }
}

/* 行の配列（.ln）＝PCでは1行ずつ積む。SPではインラインのまま＝自然に流れる */
@media (min-width: 768px) { .fv__sub .ln, .abt__body .ln { display: block; } }

/* ── スマホのFV（2026-10-17・ボス実機「インドネシアの国旗が切れる」）──
   fv_image_sp＝両方の旗が入る縦長カット。旗は上半分に置き、文字は下半分（水面）に重ねる。
   ベールは横方向ではなく上→下に（上は旗を見せ、下は文字を読ませる） */
@media (max-width: 767px) {
  .fv__img { object-position: center top; }
  /* 文字が白い日の丸に重なる帯（上から35〜55%）を早めに落とす */
  .fv__media::after { background: linear-gradient(180deg, var(--veil-3) 0%, var(--veil-3) 28%, var(--veil-2) 48%, var(--veil-1) 100%); }
  /* サブ文1行目（22字）が「に、」だけ落ちないよう字間を詰める */
  .fv__sub { letter-spacing: .04em; }
}

/* ── 団体概要ページ（2026-10-17 ボス要望）──
   代表挨拶に写真が無いとき＝右の空き列をやめて本文を広く（読みやすい行長の上限は残す） */
.msg--nophoto .msg__in { grid-template-columns: 1fr; }
.msg--nophoto .msg__body { max-width: 960px; }
.msg--nophoto .msg__p { font-size: 15.5px; }
/* 基本理念の右の写真＝角を少し落として影 */
.phic__media img { border-radius: var(--r-card); box-shadow: 0 10px 34px var(--sh-2); }
/* 基本理念に写真を置くと列が狭くなる＝見出し14字が「つな／ぎ、」で折れないサイズへ */
.phic--media .phic__st { font-size: clamp(24px, 2.5vw, 36px); }
/* お問い合わせの見出し＝原稿の | の位置で PC でも折る（「お問い合わせ／ください。」を防ぐ。2026-10-17 ボス指摘） */
.cf__h .br-sp { display: inline; }
