/* ============================================================
   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: #fff; color: var(--ink);
  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); }
.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: #fff; color: var(--ink); border-color: #fff; }

/* お知らせ */
.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); }
.article__body p { font-size: 15.5px; }
.article__body p + p { margin-top: 18px; }
.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);
}
.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; }
  /* 事例は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, .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; }
}
