@charset "UTF-8";
/* ============================================================
   style.css — 株式会社Revalus コーポレートサイト
   方向: 案E「生成りの熱」(生成りの白 × 墨 × 熱の面)。ENERGIZE の
         「明るい地 × 熱の色 × 広い余白」に、見出しの明朝で品を足す
   シグネチャー: 画面を横切る熱のグラデーションの面(ヒーローは実測値を乗せる、
                 相談の帯も同じ面)。見出しは明朝、本文とUIはゴシック、主ボタンは墨
   構成: 1.トークン → 2.リセット/ベース → 3.レイアウト → 4.コンポーネント
        → 5.モーション → 6.停止ポリシー
   2026-10-16 黒×熱源版(backup_2026-10-16_dark-heat-version)から全面刷新
   ============================================================ */

/* ---------- 1. トークン ---------- */
:root {
  --color-bg: #f4f2ec;            /* 地: 生成りの白 */
  --color-paper: #fbfaf7;         /* 面: 紙の白(カード) */
  --color-text: #141414;          /* 墨 */
  --color-muted: #5c5b56;         /* 補助テキスト */
  --color-dim: #8b8a84;           /* 注記 */
  --color-accent: #d8432b;        /* 熱の赤 */
  --color-ember: #ef6a4a;         /* 熾火(赤寄りの橙) */
  --color-amber: #f6a58a;         /* 熱の芯(やわらかい珊瑚色。黄色は使わない) */
  --color-accent-ink: #ffffff;
  --color-line: rgba(20, 20, 20, 0.12);
  --color-line-strong: rgba(20, 20, 20, 0.5);
  /* 旧トークン互換 */
  --color-surface: #fbfaf7;
  --color-ink: #141414;
  --color-ink-text: #ffffff;
  --color-ink-muted: #5c5b56;
  --color-ink-line: rgba(20, 20, 20, 0.12);

  --grad-heat: linear-gradient(100deg, #f29a7c 0%, #e2563a 45%, #b9341f 100%);
  --shadow-card: 0 24px 60px -40px rgba(20, 20, 20, 0.25);
  --shadow-card-hover: 0 30px 60px -36px rgba(216, 67, 43, 0.35);

  --font-mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Space Grotesk", "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --space: 8px;
  --section-pad: clamp(72px, 10vw, 130px);
  --container: 1200px;
  --container-narrow: 760px;
  --radius: 999px;          /* ボタン: ピル */
  --radius-card: 20px;      /* カード */
  --radius-heat: 22px;      /* 熱の面 */
  --gutter: clamp(20px, 5vw, 80px);
  --header-h: 78px;

  --z-content: 2;
  --z-sidenav: 90;
  --z-header: 100;
  --z-nav: 200;
  --z-modal: 1000;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.8s;
  --duration-fast: 0.3s;
}

/* ---------- 2. リセット/ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; background: var(--color-bg); }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
a:hover { opacity: 0.75; transition: opacity 0.3s; }

::selection { background: rgba(216, 67, 43, 0.25); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

section[id], [data-nav] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* 文節の途中で折り返さない(本体は各HTML末尾の BudouX。Chrome 系はネイティブの auto-phrase も効く) */
@supports (word-break: auto-phrase) {
  main, .site-footer { word-break: auto-phrase; }
}

.en { font-family: var(--font-en); letter-spacing: 0.02em; }
.num { font-family: var(--font-en); font-weight: 700; font-variant-numeric: tabular-nums; }

main, .site-footer { position: relative; z-index: var(--z-content); }

/* ---------- 3. レイアウト ---------- */
.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.container--narrow { width: min(var(--container-narrow), 100% - var(--gutter) * 2); margin-inline: auto; }

.section { padding-block: var(--section-pad); }
.section--tight { padding-block: calc(var(--section-pad) * 0.6); }
.section--line { border-top: 1px solid var(--color-line); }
.section--surface { background: var(--color-paper); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }

/* セクション見出し(Re:番号 + 赤い短線が伸びる / 見出しは明朝) */
.sec-head { margin-bottom: calc(var(--space) * 6); }
.sec-head__no {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  padding-bottom: 8px;
  margin-bottom: calc(var(--space) * 2);
  background: linear-gradient(var(--color-accent), var(--color-accent)) no-repeat left bottom / 0 1px;
  transition: background-size 0.9s var(--ease-out-expo) 0.15s;
}
.is-inview .sec-head__no, .sec-head__no.is-inview { background-size: 100% 1px; }
.sec-head__title { font-family: var(--font-mincho); font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.4; letter-spacing: 0.04em; text-wrap: balance; }
.sec-head__lead { margin-top: calc(var(--space) * 2); max-width: 38em; color: var(--color-muted); }
.sec-head--center { text-align: center; }
.sec-head--center .sec-head__lead { margin-inline: auto; }

/* 積小為大マーク(3×3の小正方形。リビールで順に灯る) */
.marker { display: inline-grid; grid-template-columns: repeat(3, 8px); gap: 3px; vertical-align: middle; }
.marker i { width: 8px; height: 8px; background: var(--color-line); transition: background 0.4s var(--ease-out); transition-delay: calc(var(--i, 0) * 0.07s); }
.is-inview .marker i { background: var(--color-accent); }

/* ---------- 4. コンポーネント ---------- */

/* ヘッダー(生成りのガラス + 細い罫線) */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding: 18px var(--gutter);
  background: rgba(244, 242, 236, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__logo {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--font-en); font-weight: 700; font-size: 22px; letter-spacing: -0.01em;
  text-decoration: none; line-height: 1; color: var(--color-text);
}
.site-header__logo small { font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; color: var(--color-muted); }
.site-header__right { display: flex; align-items: center; gap: 24px; }

.global-nav ul { display: flex; gap: calc(var(--space) * 4); list-style: none; padding: 0; }
.global-nav a {
  text-decoration: none; font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--color-muted); padding-bottom: 4px; transition: color 0.3s;
}
.global-nav a:hover { color: var(--color-text); opacity: 1; }
.global-nav a[aria-current="page"] {
  color: var(--color-text);
  background: linear-gradient(var(--color-accent), var(--color-accent)) no-repeat left bottom / 100% 1px;
}
.site-header .header-cta { display: none; }
@media (min-width: 1024px) {
  .site-header .header-cta { display: inline-flex; padding: 12px 22px; font-size: 13px; }
}

/* ハンバーガー(SP) */
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: none; cursor: pointer; position: relative; z-index: calc(var(--z-nav) + 1); }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--color-text); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed; inset: 0; z-index: var(--z-nav);
    background: rgba(244, 242, 236, 0.97);
    display: grid; place-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  }
  .global-nav.is-open { opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; text-align: center; gap: calc(var(--space) * 4); }
  .global-nav a { font-size: 24px; font-family: var(--font-mincho); font-weight: 700; color: var(--color-text); }
}

/* ボタン(ピル。主ボタンは墨、矢印だけ熱の色) */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  position: relative;
  padding: 17px 32px;
  background: var(--color-text); color: var(--color-accent-ink);
  border: 0; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; letter-spacing: 0.08em; text-decoration: none; line-height: 1.3;
  cursor: pointer;
  transition: transform 0.45s var(--ease-out-expo), background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.button::after {
  content: "→"; font-family: var(--font-en); font-weight: 500; font-size: 1.05em; line-height: 1; color: var(--color-ember);
  transition: transform 0.45s var(--ease-out-expo), color 0.3s;
}
.button:hover { opacity: 1; transform: translateY(-2px); background: var(--color-accent); }
.button:hover::after { transform: translateX(4px); color: #fff; }
.button--accent, .button--on-ink { background: var(--color-text); }
.button--ghost { background: transparent; color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-line-strong); }
.button--ghost::after { content: none; }
.button--ghost:hover { background: #fff; color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-text); }
.button:disabled { opacity: 0.5; cursor: wait; transform: none; }
.button--wide { width: 100%; }

.text-link {
  display: inline-block; font-weight: 700; text-decoration: none; padding-bottom: 3px; color: var(--color-text);
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 100% 1px;
  transition: color 0.3s;
}
.text-link::after { content: " →"; font-family: var(--font-en); }
.text-link:hover { opacity: 1; color: var(--color-accent); }

/* ページ内の目次(右端の縦ナビ。JSが [data-nav] から生成。1560px以上) */
.side-nav { position: fixed; right: 28px; top: 50%; transform: translateY(-50%); z-index: var(--z-sidenav); display: none; flex-direction: column; gap: 12px; text-align: right; }
@media (min-width: 1560px) { .side-nav { display: flex; } }
.side-nav a {
  font-family: var(--font-en); font-weight: 500; font-size: 11px; letter-spacing: 0.14em;
  color: rgba(20, 20, 20, 0.45); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; transition: color 0.3s;
}
.side-nav a::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(20, 20, 20, 0.2); transition: background 0.3s; }
.side-nav a:hover, .side-nav a.is-on { color: var(--color-text); opacity: 1; }
.side-nav a.is-on::after { background: var(--color-accent); }

/* ---- ヒーロー(トップ: 余白 → 明朝の一行 → 熱の面に実績) ---- */
.hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 0; }
.hero__inner { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.hero__brand { display: flex; align-items: center; gap: 14px; font-family: var(--font-en); font-weight: 500; font-size: 12px; letter-spacing: 0.22em; color: var(--color-muted); }
.hero__spark { width: 28px; height: 1px; background: var(--color-accent); flex: none; }
.hero__row { display: grid; gap: 28px; margin-top: 28px; align-items: end; }
@media (min-width: 1024px) { .hero__row { grid-template-columns: 1fr auto; gap: 60px; } }
.hero__title { font-family: var(--font-mincho); font-weight: 700; font-size: clamp(38px, 5.2vw, 74px); line-height: 1.3; letter-spacing: 0.04em; text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--color-accent); }
.hero__wm { display: none; font-family: var(--font-en); font-weight: 700; font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; position: relative; padding-left: min(20vw, 220px); user-select: none; }
.hero__wm::before { content: ""; position: absolute; left: 0; bottom: 0.18em; width: calc(min(20vw, 220px) - 24px); height: 1px; background: var(--color-text); }
@media (min-width: 1024px) { .hero__wm { display: block; } }
.hero__sub { margin-top: 26px; font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.8; letter-spacing: 0.06em; }
.hero__lead { margin-top: 14px; max-width: 40em; color: var(--color-muted); font-size: clamp(14px, 1.1vw, 16px); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
@media (max-width: 767px) { .hero__brand-sub { display: none; } }

/* 熱の面(シグネチャー): ゆっくり動く熱のグラデーションに、実測値3つを乗せる */
.heat {
  position: relative; margin-top: clamp(40px, 6vw, 80px);
  border-radius: var(--radius-heat); overflow: hidden; isolation: isolate;
  min-height: clamp(300px, 34vw, 440px);
  display: flex; align-items: flex-end;
  color: var(--color-text);
}
.heat__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(90% 120% at 12% 100%, #ffc2ad 0%, rgba(255, 194, 173, 0) 55%),
    radial-gradient(70% 100% at 70% 20%, #e85a3a 0%, rgba(232, 90, 58, 0) 60%),
    var(--grad-heat);
}
.heat__bg::after {
  content: ""; position: absolute; inset: -50%; width: 200%; height: 200%; opacity: 0.12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.heat__drift { position: absolute; inset: 0; z-index: 0; background: radial-gradient(45% 60% at 30% 70%, rgba(255, 255, 255, 0.22), transparent 70%); animation: drift 12s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(18%, -14%) scale(1.15); } }
.heat__label { position: absolute; left: clamp(20px, 3vw, 40px); top: clamp(20px, 3vw, 40px); z-index: 1; font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: 0.22em; color: rgba(20, 20, 20, 0.75); }
.heat__stats { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: clamp(20px, 3vw, 40px); }
.stat__label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: rgba(20, 20, 20, 0.72); line-height: 1.5; }
.stat__num { display: block; font-family: var(--font-en); font-weight: 700; font-size: clamp(30px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat__num i { font-family: var(--font-display); font-style: normal; font-weight: 900; font-size: 0.4em; letter-spacing: 0; margin-left: 2px; }
.stat__num .arrow { font-size: 0.6em; margin: 0 0.1em; }
.stat__note { display: block; font-size: 11px; font-weight: 700; color: rgba(20, 20, 20, 0.72); margin-top: 4px; line-height: 1.5; }
.hero__foot { margin-top: 14px; font-size: 12px; color: var(--color-dim); }
@media (max-width: 767px) {
  .heat { min-height: 0; border-radius: 16px; }
  .heat__stats { padding: 64px 16px 18px; gap: 8px; }
  .stat__num { font-size: 24px; }
  .stat__label, .stat__note { font-size: 10px; }
}

/* ヒーローのロードシーケンス */
.hero__brand, .hero__row, .hero__sub, .hero__lead, .hero__actions, .heat, .hero__foot { opacity: 0; }
.is-loaded .hero__brand   { animation: heroUp 1s var(--ease-out-expo) 0.05s forwards; }
.is-loaded .hero__row     { animation: heroUp 1s var(--ease-out-expo) 0.18s forwards; }
.is-loaded .hero__sub     { animation: heroUp 1s var(--ease-out-expo) 0.3s forwards; }
.is-loaded .hero__lead    { animation: heroUp 1s var(--ease-out-expo) 0.4s forwards; }
.is-loaded .hero__actions { animation: heroUp 1s var(--ease-out-expo) 0.52s forwards; }
.is-loaded .heat          { animation: heroUp 1.1s var(--ease-out-expo) 0.68s forwards; }
.is-loaded .hero__foot    { animation: heroUp 1s var(--ease-out-expo) 0.9s forwards; }
@keyframes heroUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---- 事業3本柱(紙のカード・細い影・ホバーで熱の線) ---- */
.pillars { display: grid; grid-template-columns: 1fr; gap: 18px; }
.pillar {
  position: relative; overflow: hidden;
  display: grid; gap: 14px; align-content: start;
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--radius-card);
  background: var(--color-paper); border: 1px solid var(--color-line);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s;
}
.pillar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--color-amber), var(--color-ember), var(--color-accent)); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out-expo); }
a.pillar:hover { opacity: 1; transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
a.pillar:hover::after { transform: scaleX(1); }
.pillar__no { font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; color: var(--color-accent); }
.pillar__title { font-size: clamp(20px, 2vw, 24px); line-height: 1.5; }
.pillar__text { color: var(--color-muted); font-size: 15px; }
.pillar__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.pillar__tags li { font-size: 12px; font-weight: 700; padding: 5px 12px; border: 1px solid var(--color-line); border-radius: 999px; color: var(--color-muted); }
.pillar__link { margin-top: 8px; font-size: 14px; justify-self: start; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* ---- 見せ場(実績カード。PCは2枚並び、SPは横スクロール) ---- */
.showcase { position: relative; padding-block: var(--section-pad); overflow: hidden; border-top: 1px solid var(--color-line); }
.showcase__head { display: grid; gap: 24px; align-items: end; }
@media (min-width: 1024px) {
  .showcase__head { grid-template-columns: 1.2fr 1fr; }
  .showcase__head .sec-head { margin-bottom: 0; }
}
.showcase__intro { color: var(--color-muted); font-size: 15px; max-width: 32em; }

.hscroll {
  margin-top: calc(var(--space) * 6);
  display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-color: rgba(20, 20, 20, 0.25) transparent;
}
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { background: rgba(20, 20, 20, 0.25); border-radius: 999px; }
.case-card {
  flex: 0 0 min(88vw, 620px); scroll-snap-align: start;
  border-radius: var(--radius-card);
  background: var(--color-paper); border: 1px solid var(--color-line);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3vw, 36px);
  display: grid; gap: 16px;
}
.case-card__tag { font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; color: var(--color-accent); }
.case-card__tag span { font-family: var(--font-body); font-weight: 400; color: var(--color-muted); letter-spacing: 0.04em; margin-left: 10px; }
.case-card__title { font-family: var(--font-mincho); font-weight: 700; font-size: clamp(20px, 2vw, 24px); line-height: 1.5; letter-spacing: 0.03em; }
.case-card__title b { color: var(--color-accent); }
.led { width: 100%; border-collapse: collapse; font-size: 14px; }
.led td { padding: 9px 0; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.led td:first-child { color: var(--color-muted); width: 46%; }
.led td:last-child { font-family: var(--font-en); font-weight: 700; font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.case-card__note { font-size: 13px; color: var(--color-muted); }
.case-card__video { display: grid; grid-template-columns: 1fr; gap: 12px; text-decoration: none; }
.case-card__thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: #ddd; }
.case-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out-expo); }
.case-card__video:hover { opacity: 1; }
.case-card__video:hover img { transform: scale(1.04); }
.case-card__play {
  position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-content: center; padding-left: 3px;
  color: #000; font-size: 18px; background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s var(--ease-out-expo);
}
.case-card__video:hover .case-card__play { transform: scale(1.08); }
.case-card__caption strong { display: block; font-size: 15px; }
.case-card__caption small { display: block; color: var(--color-muted); font-size: 12px; line-height: 1.6; margin-top: 2px; }
.hscroll__hint { font-size: 12px; color: var(--color-dim); margin-top: 10px; }
@media (min-width: 1024px) {
  .hscroll { margin-inline: 0; padding-inline: 0; padding-bottom: 0; overflow: visible; display: grid; grid-template-columns: 1fr 1fr; }
  .case-card { flex: none; }
  .hscroll__hint { display: none; }
}
.showcase__cta { margin-top: calc(var(--space) * 6); display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.showcase__cta p { color: var(--color-muted); font-size: 14px; }

/* ---- 選ばれる理由(スティッキーサイド) ---- */
.reasons { display: grid; gap: calc(var(--space) * 6); }
@media (min-width: 1024px) {
  .reasons { grid-template-columns: 1fr 1.4fr; gap: calc(var(--space) * 10); }
  .reasons__side { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}
.reason-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--color-line-strong); }
.reason { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: calc(var(--space) * 4) 0; border-bottom: 1px solid var(--color-line); }
.reason__no { font-family: var(--font-en); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1; color: var(--color-accent); }
.reason__title { font-size: clamp(19px, 2vw, 24px); }
.reason__text { color: var(--color-muted); font-size: 15px; margin-top: 8px; }

/* ---- Re・Val・us(ストーリー1カラム) ---- */
.story { text-align: center; }
.story__words { display: flex; justify-content: center; gap: clamp(16px, 5vw, 56px); margin-bottom: calc(var(--space) * 5); }
.story__word { display: grid; gap: 6px; }
.story__word b { font-family: var(--font-en); font-weight: 700; font-size: clamp(40px, 8vw, 88px); line-height: 1; letter-spacing: -0.03em; }
.story__word b.is-accent { color: var(--color-accent); }
.story__word span { font-size: 13px; font-weight: 700; color: var(--color-muted); letter-spacing: 0.06em; }
.story__title { font-family: var(--font-mincho); font-weight: 700; font-size: clamp(24px, 3.2vw, 36px); letter-spacing: 0.04em; }
.story__text { margin-top: calc(var(--space) * 3); color: var(--color-muted); max-width: 30em; margin-inline: auto; }
.story__link { margin-top: calc(var(--space) * 4); }

/* ---- 流れステップ ---- */
.steps { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--color-line-strong); list-style: none; padding: 0; }
.step { padding: calc(var(--space) * 4) 0; border-bottom: 1px solid var(--color-line); }
.step__no { font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; color: var(--color-accent); }
.step__title { font-size: 20px; margin-top: 6px; }
.step__text { color: var(--color-muted); font-size: 14px; margin-top: 8px; }
.step__meta { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; padding: 4px 12px; border: 1px solid var(--color-line-strong); border-radius: 999px; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding: calc(var(--space) * 5) calc(var(--space) * 3); }
  .step:first-child { padding-left: 0; }
  .step + .step { border-left: 1px solid var(--color-line); }
}

/* ---- FAQ(details) ---- */
.faq { border-top: 1px solid var(--color-line-strong); }
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 40px 1fr 24px; gap: 12px; align-items: baseline;
  padding: calc(var(--space) * 3) 0;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  transition: color 0.3s;
}
.faq summary:hover { color: var(--color-accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { font-family: var(--font-en); color: var(--color-accent); }
.faq summary .toggle { position: relative; width: 24px; height: 24px; justify-self: end; align-self: center; }
.faq summary .toggle::before, .faq summary .toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--color-text); transform: translate(-50%, -50%); transition: transform 0.3s var(--ease-out); }
.faq summary .toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 0 calc(var(--space) * 3) 52px; color: var(--color-muted); font-size: 15px; }
@media (max-width: 767px) { .faq__a { padding-left: 0; } }

/* ---- CTAバンド(熱の面。文字は墨、ボタンも墨) ---- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-heat);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  display: grid; gap: 24px;
  color: var(--color-text);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 120% at 10% 100%, #ffc2ad 0%, rgba(255, 194, 173, 0) 55%),
    radial-gradient(70% 100% at 75% 10%, #e85a3a 0%, rgba(232, 90, 58, 0) 60%),
    var(--grad-heat);
}
.cta-band::after {
  content: ""; position: absolute; inset: -50%; width: 200%; height: 200%; z-index: -1; opacity: 0.12; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 1024px) { .cta-band { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.cta-band__label { font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; color: rgba(20, 20, 20, 0.75); }
.cta-band__title { font-family: var(--font-mincho); font-weight: 700; font-size: clamp(24px, 3vw, 36px); margin-top: 10px; letter-spacing: 0.04em; text-wrap: balance; }
.cta-band__text { margin-top: 12px; font-size: 15px; color: rgba(20, 20, 20, 0.85); max-width: 30em; }
.cta-band__list { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: cta; display: grid; gap: 10px; max-width: 34em; font-size: 15px; }
.cta-band__list li { counter-increment: cta; position: relative; padding-left: 2.6em; line-height: 1.7; color: rgba(20, 20, 20, 0.85); }
.cta-band__list li::before { content: counter(cta, decimal-leading-zero); position: absolute; left: 0; top: 0.1em; font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; color: var(--color-text); border: 1px solid rgba(20, 20, 20, 0.5); border-radius: 4px; padding: 1px 5px; }
.cta-band__list b { font-weight: 700; color: var(--color-text); }
.cta-band__list + .cta-band__text { font-size: 13px; color: rgba(20, 20, 20, 0.7); }
.cta-band__actions { display: grid; gap: 12px; justify-items: start; }
@media (min-width: 1024px) { .cta-band__actions { justify-items: end; } }
.cta-band .button { background: var(--color-text); color: #fff; box-shadow: 0 18px 40px -16px rgba(20, 20, 20, 0.5); }
.cta-band .button:hover { background: #fff; color: var(--color-text); }
.cta-band .button:hover::after { color: var(--color-accent); }
.cta-band__sub { font-size: 13px; color: rgba(20, 20, 20, 0.7); }
.cta-band__sub a { color: inherit; }

/* ---- 下層ページヘッダー ---- */
.page-header { padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 calc(var(--section-pad) * 0.45); }
.page-header__en { display: flex; align-items: center; gap: 14px; font-family: var(--font-en); font-weight: 500; font-size: 12px; letter-spacing: 0.22em; color: var(--color-accent); }
.page-header__en::before { content: ""; width: 28px; height: 1px; background: var(--color-accent); flex: none; }
.page-header__title { font-family: var(--font-mincho); font-weight: 700; font-size: clamp(34px, 5vw, 64px); margin-top: 18px; line-height: 1.3; letter-spacing: 0.04em; }
.page-header__lead { margin-top: 22px; color: var(--color-muted); max-width: 36em; }
.page-header__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.breadcrumb { padding-block: 14px; font-size: 12px; color: var(--color-dim); border-top: 1px solid var(--color-line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.6em; list-style: none; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.6em; opacity: 0.5; }
.breadcrumb a { text-decoration: none; }

/* ---- 汎用: 定義テーブル(会社概要など) ---- */
.def { border-top: 1px solid var(--color-line-strong); }
.def__row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: calc(var(--space) * 2.5) 0; border-bottom: 1px solid var(--color-line); }
.def__row dt { font-size: 13px; font-weight: 700; color: var(--color-muted); letter-spacing: 0.04em; }
.def__row dd { font-size: 15px; }
.def__row dd a { color: var(--color-accent); }
@media (min-width: 768px) { .def__row { grid-template-columns: 200px 1fr; gap: 24px; } }

/* ---- 汎用: 番号つきの段(サービス詳細) ---- */
.feature { display: grid; gap: 20px; padding: calc(var(--space) * 6) 0; border-top: 1px solid var(--color-line); }
.feature:first-of-type { border-top: 1px solid var(--color-line-strong); }
@media (min-width: 1024px) { .feature { grid-template-columns: 120px 1fr 1fr; gap: 40px; align-items: start; } }
.feature__no { font-family: var(--font-en); font-weight: 700; font-size: clamp(32px, 4vw, 56px); line-height: 1; color: var(--color-accent); }
.feature__title { font-size: clamp(22px, 2.4vw, 28px); }
.feature__sub { font-size: 14px; color: var(--color-muted); margin-top: 6px; }
.feature__text { color: var(--color-muted); font-size: 15px; }
.feature__list { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 6px; }
.feature__list li { position: relative; padding-left: 18px; font-size: 14px; }
.feature__list li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }

/* ---- 汎用: 課題(3つ) ---- */
.problems { display: grid; gap: 0; border-top: 1px solid var(--color-line-strong); }
.problem { padding: calc(var(--space) * 4) 0; border-bottom: 1px solid var(--color-line); display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.problem__mark { width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent); margin-top: 0.75em; }
.problem__title { font-size: 19px; }
.problem__text { color: var(--color-muted); font-size: 14px; margin-top: 6px; }
@media (min-width: 768px) {
  .problems { grid-template-columns: repeat(3, 1fr); }
  .problem { padding: calc(var(--space) * 5) calc(var(--space) * 3); }
  .problem:first-child { padding-left: 0; }
  .problem + .problem { border-left: 1px solid var(--color-line); }
}

/* ---- 汎用: プラン(2枚の紙) ---- */
.price { display: grid; gap: 18px; }
.price__item {
  position: relative; overflow: hidden;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius-card);
  background: var(--color-paper); border: 1px solid var(--color-line);
  box-shadow: var(--shadow-card);
}
.price__item::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 115%, rgba(226, 86, 58, 0.14), transparent 72%); }
.price__item > * { position: relative; }
.price__label { font-size: 12px; font-weight: 700; color: var(--color-accent); letter-spacing: 0.2em; font-family: var(--font-en); }
.price__title { font-size: 22px; margin-top: 6px; }
.price__num { font-family: var(--font-en); font-weight: 700; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin-top: 10px; }
.price__num small { font-family: var(--font-display); font-weight: 900; font-size: 0.4em; letter-spacing: 0; margin-left: 4px; }
.price__note { color: var(--color-muted); font-size: 14px; margin-top: 10px; }
.price__list { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 8px; font-size: 14px; }
.price__list li { position: relative; padding-left: 18px; }
.price__list li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-text); }
@media (min-width: 768px) { .price { grid-template-columns: 1fr 1fr; } }
.price__foot { margin-top: calc(var(--space) * 3); font-size: 13px; color: var(--color-muted); }

/* ---- 汎用: メンバー ---- */
.members { display: grid; gap: 40px; }
@media (min-width: 768px) { .members { grid-template-columns: 1fr 1fr; } }
.member { display: grid; gap: 16px; }
.member__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-paper); border-radius: var(--radius-card); border: 1px solid var(--color-line); box-shadow: var(--shadow-card); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__role { font-size: 12px; font-weight: 700; color: var(--color-accent); letter-spacing: 0.1em; }
.member__name { font-size: 26px; margin-top: 2px; }
.member__name small { font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; color: var(--color-muted); margin-left: 12px; }
.member__text { color: var(--color-muted); font-size: 15px; }

/* ---- 代表メッセージ ---- */
.message { display: grid; gap: 32px; }
@media (max-width: 1023px) { .message .member { max-width: 480px; } }
@media (min-width: 1024px) { .message { grid-template-columns: 1fr 1.6fr; gap: 64px; } }
.message__body p + p { margin-top: 1.2em; }
.message__sign { margin-top: 24px; font-weight: 700; }
.message__sign small { display: block; font-weight: 400; color: var(--color-muted); font-size: 13px; }

/* ---- フォーム ---- */
.contact-intro {
  display: grid; gap: 24px; margin-bottom: calc(var(--space) * 6);
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-card);
  background: var(--color-paper); border: 1px solid var(--color-line); box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .contact-intro { grid-template-columns: 1fr auto; align-items: center; } }
.contact-intro h2 { font-size: 20px; }
.contact-intro p { font-size: 14px; color: var(--color-muted); margin-top: 6px; }

.form { display: grid; gap: calc(var(--space) * 4); }
.form__field { display: grid; gap: calc(var(--space) * 1); }
.form__field label { font-size: 14px; font-weight: 700; }
.form__field .required { color: var(--color-accent); font-size: 12px; margin-left: 0.5em; }
.form__field .optional { color: var(--color-muted); font-size: 12px; margin-left: 0.5em; font-weight: 400; }
.form input, .form textarea, .form select {
  font: inherit; padding: 14px 16px; width: 100%;
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.25); border-radius: 12px;
  color: var(--color-text);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(20, 20, 20, 0.35); }
.form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-text) 50%), linear-gradient(135deg, var(--color-text) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--color-accent); outline: none; box-shadow: 0 0 0 3px rgba(216, 67, 43, 0.15); }
.form [aria-invalid="true"] { border-color: var(--color-accent); }
.form__error { color: var(--color-accent); font-size: 13px; min-height: 1.2em; }
.form__hp { position: absolute; left: -9999px; }  /* ハニーポット: 削除禁止 */
.form__privacy { font-size: 13px; color: var(--color-muted); }
.form__privacy a { color: var(--color-accent); }

/* ---- フッター ---- */
.site-footer {
  padding: calc(var(--space) * 9) 0 calc(var(--space) * 4);
  border-top: 1px solid var(--color-line);
  background: var(--color-paper);
  font-size: 13px; color: var(--color-muted);
}
.site-footer__cols { display: grid; gap: 32px; }
@media (min-width: 768px) { .site-footer__cols { grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; } }
.site-footer__logo { font-family: var(--font-en); font-weight: 700; font-size: 26px; color: var(--color-text); letter-spacing: -0.01em; line-height: 1; }
.site-footer__logo small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--color-muted); margin-top: 8px; letter-spacing: 0.06em; }
.site-footer__desc { margin-top: 14px; max-width: 28em; }
.site-footer h2 { font-size: 12px; letter-spacing: 0.14em; color: var(--color-text); margin-bottom: 10px; font-family: var(--font-display); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--color-text); opacity: 1; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer__note { margin-top: calc(var(--space) * 6); padding-top: calc(var(--space) * 3); border-top: 1px solid var(--color-line); font-size: 12px; color: var(--color-muted); }
.site-footer__copy { margin-top: 12px; font-family: var(--font-en); font-size: 12px; color: var(--color-dim); }

/* ---- SP固定CTA ---- */
.sp-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 242, 236, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-line);
  transform: translateY(110%); transition: transform 0.4s var(--ease-out);
}
.sp-cta.is-visible { transform: none; }
.sp-cta .button { width: 100%; padding: 14px 20px; font-size: 14px; }
@media (min-width: 1024px) { .sp-cta { display: none; } }
body.has-sp-cta { padding-bottom: 80px; }
@media (min-width: 1024px) { body.has-sp-cta { padding-bottom: 0; } }

/* ---- 折り返し制御(文節単位で折る / SPだけ改行) ---- */
.nb { display: inline-block; }
.sp { display: none; }
@media (max-width: 767px) { .sp { display: inline; } }

/* ---- テキスト整形 ---- */
.lead { font-size: clamp(16px, 1.5vw, 18px); }
.note { font-size: 13px; color: var(--color-muted); }
.stack > * + * { margin-top: 1.2em; }
.mt-2 { margin-top: calc(var(--space) * 2); }
.mt-4 { margin-top: calc(var(--space) * 4); }
.mt-6 { margin-top: calc(var(--space) * 6); }
.mt-8 { margin-top: calc(var(--space) * 8); }
.legal h2 { font-size: 20px; margin-top: calc(var(--space) * 6); padding-top: calc(var(--space) * 3); border-top: 1px solid var(--color-line); }
.legal p, .legal li { font-size: 15px; color: var(--color-muted); }
.legal ul { padding-left: 1.2em; margin-top: 8px; }
.legal p + p { margin-top: 0.8em; }
.legal a { color: var(--color-accent); }

/* ---------- 5. モーション基盤 ---------- */
.js-reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out); }
.js-reveal.is-inview { opacity: 1; transform: none; }
.js-reveal[data-delay="1"] { transition-delay: 0.1s; }
.js-reveal[data-delay="2"] { transition-delay: 0.2s; }
.js-reveal[data-delay="3"] { transition-delay: 0.3s; }
.js-reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ---------- 6. モーション停止(ポリシー実装。削除禁止) ---------- */
.motion-stop {
  display: none;
  position: fixed; right: 16px; bottom: 16px; z-index: var(--z-modal);
  padding: 10px 16px; font-size: 12px;
  background: var(--color-paper); color: var(--color-text); border: 1px solid var(--color-line-strong);
  border-radius: 999px; cursor: pointer;
}
@media (prefers-reduced-motion: reduce) { .motion-stop { display: block; } }
html.is-motion-off .js-reveal,
html.is-motion-off *[class] {
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
}
html.is-motion-off .js-reveal { opacity: 1; transform: none; }
html.is-motion-off .hero__brand, html.is-motion-off .hero__row, html.is-motion-off .hero__sub, html.is-motion-off .hero__lead,
html.is-motion-off .hero__actions, html.is-motion-off .heat, html.is-motion-off .hero__foot { opacity: 1; transform: none; }
html.is-motion-off .sec-head__no { background-size: 100% 1px; }
html.is-motion-off .marker i { background: var(--color-accent); }
html.is-motion-off .heat__drift { animation: none; }
