/* ============================================================
   R STREET Inc. — Corporate Site / "MONOLITH II"
   Obsidian × champagne gold, set in sharp grotesque type.
   IBM Plex Sans JP + IBM Plex Mono. Hairline rules and
   whitespace instead of boxes; left-aligned editorial flow.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --obsidian: #0A0A0C;
  --obsidian-2: #0E0E11;

  --paper: #F4F5F7;         /* cool porcelain interlude sections */
  --paper-2: #FBFBFC;

  --tx1: #F2F3F5;
  --tx2: #B0B6C0;
  --tx3: #8A909B;

  --ink1: #15161A;          /* text on paper */
  --ink2: #494E58;
  --ink3: #666C78;

  --gold: #C9A961;
  --gold-2: #E3C889;
  --gold-deep: #A07F3E;
  --gold-ink: #7E6425;      /* gold on paper */

  --ln-d: rgba(242, 243, 245, 0.15);
  --ln-d-soft: rgba(242, 243, 245, 0.08);
  --ln-gold: rgba(201, 169, 97, 0.42);
  --ln-gold-soft: rgba(201, 169, 97, 0.22);
  --ln-l: rgba(21, 22, 26, 0.18);
  --ln-l-soft: rgba(21, 22, 26, 0.10);

  --f-jp: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --f-serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-hero: clamp(24px, 3.35vw, 45px);
  --fs-h2: clamp(28px, 3.3vw, 40px);
  --fs-h3: clamp(21.5px, 2.4vw, 26.5px);

  --sec-pad: clamp(104px, 15vh, 184px);
  --header-h: 80px;

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

  /* 枠線レスの面デザイン用（1pxの四辺枠線は使わない） */
  --rad-lg: 18px;      /* パネル・カード */
  --rad-md: 12px;      /* 図版・小パネル */
  --rad-pill: 999px;   /* ボタン・チップ */
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-jp);
  font-size: 19px;
  font-weight: 400;
  line-height: 2.0;
  letter-spacing: 0.02em;
  color: var(--tx1);
  background: var(--obsidian);
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (max-width: 864px) { body { font-size: 18px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(201, 169, 97, 0.9); color: #0A0A0C; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 1800;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: min(100% - 48px, 1120px); margin-inline: auto; }
.container--wide { width: min(100% - 48px, 1280px); margin-inline: auto; }
@media (max-width: 720px) { .container, .container--wide { width: calc(100% - 40px); } }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--rv-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Eyebrow / section head ---------- */
/* 英語ラベルの直下に日本語（大きく・パキッとした色）を積む2段構成 */
.eyebrow { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 28px; line-height: 1.5; }
.eyebrow--center { align-items: center; text-align: center; }
.eyebrow-en {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.eyebrow-jp {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #FFFFFF;
}
.sec--light .eyebrow-en, .sec--white .eyebrow-en { color: var(--gold-ink); }
.sec--light .eyebrow-jp, .sec--white .eyebrow-jp { color: var(--ink1); }

.sec-title {
  font-family: var(--f-jp);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
}
.sec-lead { margin-top: 29px; max-width: 768px; color: var(--tx2); font-size: 18px; line-height: 2.2; }
.sec--light .sec-lead, .sec--white .sec-lead { color: var(--ink2); }

/* index bar: EN + JP を左に積み、下にヘアライン */
.sec-head { margin-bottom: clamp(46px, 7vh, 80px); text-align: left; }
.sec-head .eyebrow {
  border-bottom: 1px solid var(--ln-d);
  padding-bottom: 18px;
  margin-bottom: 36px;
}
.sec--light .sec-head .eyebrow, .sec--white .sec-head .eyebrow { border-bottom-color: var(--ln-l); }

/* ---------- Sections ---------- */
.sec { padding: var(--sec-pad) 0; position: relative; scroll-margin-top: calc(var(--header-h) + 8px); }
.sec--dark { background: var(--obsidian-2); color: var(--tx1); }
.sec--darker { background: var(--obsidian); color: var(--tx1); }
.sec--light { background: var(--paper); color: var(--ink1); }
.sec--white { background: var(--paper-2); color: var(--ink1); }
.hairline-top { box-shadow: inset 0 1px 0 var(--ln-d-soft); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 42px;
  font-family: var(--f-jp);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  border: 0;
  border-radius: var(--rad-pill);
  transition: color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  white-space: nowrap;
}
.btn .arr { font-family: var(--f-mono); }

/* hover fill — 動きは付けず、色だけが静かに変わる */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.btn:hover::before { opacity: 1; }

/* on obsidian — champagne glass: translucent gold over dark, fills solid on hover */
.btn--solid {
  color: #F5ECD3;
  background:
    linear-gradient(170deg, rgba(227, 200, 137, 0.30) 0%, rgba(160, 127, 62, 0.14) 48%, rgba(201, 169, 97, 0.24) 100%),
    linear-gradient(180deg, rgba(18, 17, 16, 0.6), rgba(10, 10, 12, 0.52));
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    0 14px 34px -16px rgba(201, 169, 97, 0.4),
    inset 0 1px 0 rgba(255, 236, 194, 0.32),
    inset 0 0 26px rgba(201, 169, 97, 0.13);
}
.btn--solid::before { background: linear-gradient(165deg, #F0DDA6 0%, var(--gold) 55%, #BB9A54 100%); }
.btn--solid:hover {
  color: #0A0A0C;
  box-shadow:
    0 18px 44px -14px rgba(227, 200, 137, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* ダーク面のボタンは視認性を btn--solid と同一のシャンパンガラスに統一
   （2026-08-06 オーナーFB: 見える/見えないボタンの混在をなくす） */
.btn--ghost {
  color: #F5ECD3;
  background:
    linear-gradient(170deg, rgba(227, 200, 137, 0.30) 0%, rgba(160, 127, 62, 0.14) 48%, rgba(201, 169, 97, 0.24) 100%),
    linear-gradient(180deg, rgba(18, 17, 16, 0.6), rgba(10, 10, 12, 0.52));
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    0 14px 34px -16px rgba(201, 169, 97, 0.4),
    inset 0 1px 0 rgba(255, 236, 194, 0.32),
    inset 0 0 26px rgba(201, 169, 97, 0.13);
}
.btn--ghost::before { background: linear-gradient(165deg, #F0DDA6 0%, var(--gold) 55%, #BB9A54 100%); }
.btn--ghost:hover {
  color: #0A0A0C;
  box-shadow:
    0 18px 44px -14px rgba(227, 200, 137, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* on paper */
.btn--ink { background: var(--ink1); color: var(--paper-2); box-shadow: 0 18px 40px -26px rgba(21, 22, 26, 0.6); }
.btn--ink::before { background: var(--gold-deep); }
.btn--ink:hover { color: #fff; }
.btn--ghost-ink { background: rgba(21, 22, 26, 0.07); color: var(--ink1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn--ghost-ink::before { background: var(--ink1); }
.btn--ghost-ink:hover { color: var(--paper-2); }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ln-gold);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tlink:hover { color: var(--gold-2); border-color: var(--gold); }
.sec--light .tlink:hover, .sec--white .tlink:hover { color: var(--gold-ink); }
.about-works { margin-top: 46px; }
/* 金の強調リンク（tlink--gold）: 1.2倍・シャンパンゴールド・周期的に光沢が走る（オーナー指示: 目立たせる） */
.tlink--gold {
  font-size: 18px;
  color: transparent;
  background: linear-gradient(105deg, var(--gold) 0%, var(--gold) 34%, #F5E3B0 50%, var(--gold) 66%, var(--gold) 100%);
  background-size: 240% 100%;
  background-position: 115% 0;
  -webkit-background-clip: text;
  background-clip: text;
  border-bottom-color: var(--gold);
  filter: drop-shadow(0 0 14px rgba(201, 169, 97, 0.38));
  animation: gold-sheen 3.6s ease-in-out infinite;
}
.tlink--gold:hover { color: transparent; border-bottom-color: var(--gold-2); filter: drop-shadow(0 0 18px rgba(227, 200, 137, 0.6)); }
/* 明るい背景では深い金でコントラストを確保 */
.sec--light .tlink--gold, .sec--white .tlink--gold {
  background-image: linear-gradient(105deg, var(--gold-deep) 0%, var(--gold-deep) 34%, var(--gold) 50%, var(--gold-deep) 66%, var(--gold-deep) 100%);
  border-bottom-color: var(--gold-deep);
  filter: drop-shadow(0 0 12px rgba(160, 127, 62, 0.32));
}
.sec--light .tlink--gold:hover, .sec--white .tlink--gold:hover { color: transparent; border-bottom-color: var(--gold); filter: drop-shadow(0 0 14px rgba(160, 127, 62, 0.5)); }
@keyframes gold-sheen {
  0% { background-position: 115% 0; }
  55% { background-position: -65% 0; }
  100% { background-position: -65% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tlink--gold { animation: none; background-image: none; color: var(--gold-2); }
  .sec--light .tlink--gold, .sec--white .tlink--gold { color: var(--gold-ink); }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2400;
  height: var(--header-h);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; position: relative; z-index: 2; }
.brand img { height: 17px; width: auto; transition: opacity 0.4s var(--ease); }
.brand .logo-b { position: absolute; inset: 0; margin: auto; opacity: 0; }

.g-nav { display: flex; align-items: center; gap: 38px; }
.g-nav a {
  position: relative;
  font-family: var(--f-jp);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--tx1);
  padding: 8px 0;
  transition: color 0.35s var(--ease);
}
.g-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.g-nav a:hover::after, .g-nav a[aria-current="page"]::after { opacity: 1; }
.g-nav a:hover { color: var(--gold-2); }
.g-nav .nav-contact {
  border-radius: var(--rad-pill);
  padding: 12px 26px;
  background: linear-gradient(170deg, rgba(227, 200, 137, 0.32) 0%, rgba(160, 127, 62, 0.16) 55%, rgba(201, 169, 97, 0.26) 100%);
  box-shadow:
    inset 0 1px 0 rgba(240, 226, 180, 0.30),
    0 10px 26px -14px rgba(201, 169, 97, 0.35);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.g-nav .nav-contact::after { display: none; }
.g-nav .nav-contact:hover { background: var(--gold); color: #0A0A0C; }

.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 -1px 0 var(--ln-d-soft);
}

/* over paper sections */
.site-header[data-on="light"] .brand .logo-w { opacity: 0; }
.site-header[data-on="light"] .brand .logo-b { opacity: 1; }
.site-header[data-on="light"] .g-nav a { color: var(--ink1); }
.site-header[data-on="light"] .g-nav a:hover { color: var(--gold-ink); }
.site-header[data-on="light"] .g-nav .nav-contact {
  background: linear-gradient(170deg, rgba(226, 195, 132, 0.55) 0%, rgba(199, 165, 98, 0.42) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 20px -12px rgba(160, 127, 62, 0.45);
}
.site-header[data-on="light"] .g-nav .nav-contact:hover { background: var(--ink1); color: var(--paper-2); }
.site-header[data-on="light"].is-scrolled {
  background: rgba(244, 245, 247, 0.8);
  box-shadow: inset 0 -1px 0 var(--ln-l-soft);
}

/* menu button */
.menu-btn { display: none; position: relative; z-index: 3200; width: 48px; height: 48px; margin-right: -10px; }
.menu-btn span {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 1px;
  background: var(--tx1);
  transition: transform 0.45s var(--ease), background-color 0.35s;
}
.menu-btn span:nth-child(1) { top: 20px; }
.menu-btn span:nth-child(2) { top: 28px; }
.site-header[data-on="light"] .menu-btn span { background: var(--ink1); }
html.menu-open .menu-btn span { background: var(--tx1) !important; }
html.menu-open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(18deg); }
html.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-18deg); }
@media (max-width: 880px) { .g-nav { display: none; } .menu-btn { display: block; } }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(10, 10, 12, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 9vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s 0.5s;
}
html.menu-open .mobile-menu { opacity: 1; visibility: visible; transition-delay: 0s; }
html.menu-open, html.menu-open body { overflow: hidden; }
.mobile-menu a.mm-link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ln-d-soft);
  color: var(--tx1);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.menu-open .mobile-menu a.mm-link { opacity: 1; transform: none; }
.mobile-menu a.mm-link:nth-child(2) { transition-delay: 0.06s; }
.mobile-menu a.mm-link:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu a.mm-link:nth-child(4) { transition-delay: 0.18s; }
.mobile-menu a.mm-link:nth-child(5) { transition-delay: 0.24s; }
.mm-link .en { font-family: var(--f-mono); font-size: 26.5px; font-weight: 500; letter-spacing: 0.1em; }
.mm-link .jp { font-size: 14px; letter-spacing: 0.18em; color: var(--tx3); }
.mm-foot {
  margin-top: 44px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--tx3);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.3s;
}
html.menu-open .mm-foot { opacity: 1; }
.mm-foot a { color: var(--tx2); }

/* ============================================================
   Hero — obsidian liquid, candle-gold light follows the cursor
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--obsidian);
  color: var(--tx1);
  overflow: hidden;
}
.hero-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 42%, rgba(201, 169, 97, 0.10), transparent 60%),
    radial-gradient(120% 100% at 50% 110%, rgba(201, 169, 97, 0.05), transparent 55%),
    linear-gradient(180deg, #0A0A0C 0%, #0D0D11 55%, #08080A 100%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero--nogl .hero-canvas { display: none; }

.hero-inner { position: relative; z-index: 3; padding-top: var(--header-h); display: flex; flex-direction: column; align-items: center; }

/* soft obsidian scrim behind the copy — keeps text legible over the gold light */
.hero-inner::before {
  content: "";
  position: absolute;
  inset: -12% -16%;
  z-index: -1;
  background: radial-gradient(56% 56% at 50% 48%, rgba(8, 8, 10, 0.46), transparent 72%);
  pointer-events: none;
}

.hero-title {
  font-family: var(--f-serif);
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 1.78;
  letter-spacing: 0.16em;
  filter: drop-shadow(0 2px 16px rgba(8, 8, 10, 0.55));
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(114%);
  transition: transform 1.4s var(--ease);
  color: #F3EDDD;
}
/* engraved champagne sheen — white crown fading into gold at the base */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title .line > span {
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F0E4 46%, #D8C79E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
body.is-loaded .hero-title .line:nth-child(1) > span { transform: none; transition-delay: 0.3s; }
body.is-loaded .hero-title .line:nth-child(2) > span { transform: none; transition-delay: 0.5s; }
@media (max-width: 480px) {
  .hero-title { font-size: clamp(18px, 5.6vw, 21px); letter-spacing: 0.08em; }
}

.hero-lead {
  margin: 56px auto 0;
  max-width: 752px;
  color: #EFEDE4;
  font-size: 17.5px;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 2.35;
  text-shadow: 0 1px 2px rgba(8, 8, 10, 0.6), 0 2px 20px rgba(8, 8, 10, 0.5);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.2s var(--ease) 1.0s, transform 1.2s var(--ease) 1.0s;
}
body.is-loaded .hero-lead { opacity: 1; transform: none; }
@media (max-width: 720px) { .br-pc { display: none; } }

/* リードのラッパー。PCではレイアウトに関与しない（モバイルのグリッド配置でのみ実体化） */
.hero-sub { display: contents; }
.br-sp { display: none; }

/* --- モバイルのヒーロー配置: 主文言をビューポート縦中央に固定し、リード以下を下半分へ --- */
@media (max-width: 720px) {
  .br-sp { display: inline; }
  .hero-inner {
    box-sizing: border-box;
    min-height: 100svh;
    padding-top: 0;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-rows: 1fr auto 1fr;
  }
  .hero-title { grid-row: 2; }
  .hero-sub { display: block; grid-row: 3; align-self: start; }
  .hero-lead { margin-top: 40px; font-size: 14px; line-height: 2.1; letter-spacing: 0.04em; }
}

/* ============================================================
   Duality — grotesque spread + hairline columns
   ============================================================ */
.duality-copy { max-width: 936px; color: var(--tx2); font-size: 18.5px; line-height: 2.25; }
.duality-copy p + p { margin-top: 1.7em; }
.duality-copy strong { color: var(--tx1); font-weight: 600; }
.duality-aside {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.4vw, 48px);
  margin-top: clamp(56px, 8vh, 88px);
}
.dua-item {
  border-left: 1px solid var(--ln-d);
  padding-left: clamp(20px, 2.2vw, 30px);
}
.dua-item .t {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}
.dua-item .d { font-size: 16px; color: var(--tx2); line-height: 2.05; }
.dua-item .d b { color: var(--tx1); font-weight: 600; font-size: 18px; display: block; margin-bottom: 9.5px; }
@media (max-width: 880px) { .duality-aside { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================================
   Strength — numbered open columns on paper
   ============================================================ */
.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 52px); }
.strength-card { border-left: 1px solid var(--ln-l); padding-left: clamp(20px, 2.2vw, 30px); }
.strength-card .num {
  font-family: var(--f-mono);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold-ink);
  display: block;
  margin-bottom: 22px;
}
.strength-card h3 {
  font-family: var(--f-jp);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.strength-card p { font-size: 17px; color: var(--ink2); line-height: 2.1; }
@media (max-width: 880px) { .strength-grid { grid-template-columns: 1fr; gap: 40px; } }

/* dark sections reuse (recruit) */
.sec--dark .strength-card, .sec--darker .strength-card { border-left-color: var(--ln-d); }
.sec--dark .strength-card .num, .sec--darker .strength-card .num { color: var(--gold); }
.sec--dark .strength-card p, .sec--darker .strength-card p { color: var(--tx2); }

/* ============================================================
   Services — index rows I–IV
   ============================================================ */
.svc-list { border-top: 1px solid var(--ln-d); }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr 70px;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(34px, 4.8vh, 56px) clamp(6px, 1vw, 20px);
  border-bottom: 1px solid var(--ln-d);
}
.svc-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.svc-row:hover::before { transform: scaleY(1); }
.svc-num {
  font-family: var(--f-mono);
  font-size: clamp(19px, 2.16vw, 25px);
  letter-spacing: 0.1em;
  color: var(--tx3);
  transition: color 0.45s var(--ease);
}
.svc-main h3 {
  font-family: var(--f-jp);
  font-size: clamp(23px, 2.76vw, 29px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.7;
  transition: color 0.45s var(--ease);
}
.svc-main p { margin-top: 14.5px; font-size: 17px; color: var(--tx2); max-width: 792px; line-height: 2.1; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 14px; }
.svc-tags li {
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--tx3);
  transition: color 0.45s var(--ease);
  display: inline-flex;
  align-items: center;
}
.svc-tags li + li::before { content: "/"; margin: 0 14px; color: var(--ln-d); }
.svc-arrow {
  font-family: var(--f-mono);
  font-size: 24px;
  color: var(--tx3);
  justify-self: end;
  transition: color 0.45s var(--ease);
}
.svc-row:hover .svc-num { color: var(--gold); }
.svc-row:hover .svc-main h3 { color: var(--gold-2); }
.svc-row:hover .svc-tags li { color: var(--tx2); }
.svc-row:hover .svc-arrow { color: var(--gold); }
@media (max-width: 720px) {
  .svc-row { grid-template-columns: 1fr; gap: 8px; }
  .svc-arrow { display: none; }
  .svc-num { font-size: 17px; }
}

/* ============================================================
   Works — ticker + editorial case list
   ============================================================ */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(40px, 5vw, 72px); border-top: 1px solid var(--ln-d); }
.case-card {
  padding: clamp(30px, 3.4vh, 42px) 0;
  border-bottom: 1px solid var(--ln-d);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.case-ind { font-size: 15px; letter-spacing: 0.1em; color: var(--tx3); font-weight: 500; }
.case-type {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.case-card h3 {
  font-family: var(--f-jp);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.85;
}
.case-card p { font-size: 16px; color: var(--tx2); line-height: 2.05; }
.case-note { margin-top: 43px; font-size: 15px; color: var(--tx3); letter-spacing: 0.06em; }
@media (max-width: 680px) { .case-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Mission band / CTA — candlelight
   ============================================================ */
.mission-band { position: relative; text-align: center; overflow: hidden; }
.mission-band::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background:
    radial-gradient(52% 46% at 50% 58%, rgba(201, 169, 97, 0.13), transparent 65%),
    radial-gradient(30% 30% at 50% 48%, rgba(227, 200, 137, 0.06), transparent 60%);
  pointer-events: none;
}
.mission-quote {
  position: relative;
  font-family: var(--f-serif);
  font-size: clamp(29px, 4.32vw, 50.5px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.9;
  margin: 32px 0 48px;
}
.mission-quote .bracket { color: var(--gold); font-weight: 400; }

.cta-duo { display: grid; grid-template-columns: 1fr 1fr; background: var(--obsidian); color: var(--tx1); }
.cta-panel {
  position: relative;
  padding: clamp(58px, 9vh, 114px) clamp(28px, 5vw, 84px);
  border-top: 1px solid var(--ln-d-soft);
}
.cta-panel + .cta-panel { border-left: 1px solid var(--ln-d-soft); }
.cta-label {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 24px;
}
.cta-panel h3 {
  font-family: var(--f-jp);
  font-size: clamp(24px, 2.76vw, 31px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.75;
  margin-bottom: 16px;
}
.cta-panel p { font-size: 17px; color: var(--tx2); margin-bottom: 43px; max-width: 504px; line-height: 2.15; }
@media (max-width: 880px) { .cta-duo { grid-template-columns: 1fr; } .cta-panel + .cta-panel { border-left: 0; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #070708; color: var(--tx2); border-top: 1px solid var(--ln-d-soft); padding: clamp(66px, 9vh, 104px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(36px, 5vw, 76px); padding-bottom: clamp(50px, 7vh, 76px); }
.footer-brand img { height: 22px; width: auto; }
.footer-tag { margin-top: 29px; font-size: 15px; color: var(--tx3); letter-spacing: 0.08em; line-height: 2.2; }
.footer-h {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tx3);
  margin-bottom: 24px;
}
.footer-nav { display: grid; gap: 13px; }
.footer-nav a { font-size: 15.5px; letter-spacing: 0.1em; color: var(--tx2); transition: color 0.3s var(--ease); }
.footer-nav a:hover { color: var(--gold-2); }
.footer-addr { font-style: normal; font-size: 15.5px; line-height: 2.25; letter-spacing: 0.04em; color: var(--tx2); }
.footer-addr a { color: var(--tx1); border-bottom: 1px solid var(--ln-gold-soft); transition: color 0.3s, border-color 0.3s; }
.footer-addr a:hover { color: var(--gold-2); border-color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--ln-d-soft);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx3);
}
.footer-bottom a { color: var(--tx3); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--gold-2); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Sub-page hero
   ============================================================ */
.page-hero {
  position: relative;
  background: var(--obsidian);
  color: var(--tx1);
  padding: calc(var(--header-h) + clamp(76px, 12vh, 132px)) 0 clamp(68px, 9vh, 112px);
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(201, 169, 97, 0.11), transparent 60%);
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(60%, 520px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ln-gold), transparent);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-en {
  font-family: var(--f-mono);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 26px;
}
.page-hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(37px, 5.64vw, 62.5px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
}
.page-hero .lead { margin: 33.5px auto 0; max-width: 816px; color: var(--tx2); font-size: 18px; line-height: 2.25; }
.page-crumb {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx3);
}
.page-crumb a:hover { color: var(--gold-2); }

/* ============================================================
   Services detail
   ============================================================ */
.anchor-pills { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 46px; justify-content: center; }
.anchor-pills a {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15.5px;
  letter-spacing: 0.08em;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  color: var(--tx2);
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.anchor-pills a .n { font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.08em; color: var(--gold); }
.anchor-pills a:hover { border-bottom-color: var(--ln-gold); color: var(--tx1); }

.svc-detail { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.svc-side { position: sticky; top: calc(var(--header-h) + 32px); }
.svc-side .num {
  font-family: var(--f-mono);
  font-size: clamp(38.5px, 4.08vw, 55px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--gold-ink);
  display: block;
  margin-bottom: 26px;
}
.svc-side .num::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 22px;
  background: var(--gold-deep);
}
.svc-side .en-label {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink3);
  display: block;
  margin-bottom: 16px;
}
.svc-side h2 {
  font-family: var(--f-jp);
  font-size: clamp(25px, 2.88vw, 31px);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.03em;
}
.svc-side .side-note { margin-top: 24px; font-size: 16px; color: var(--ink2); line-height: 2.2; }

.svc-body > p.lead-p { font-size: 18.5px; color: var(--ink1); max-width: 864px; line-height: 2.25; }
.svc-body > p.note-p { margin-top: 19px; font-size: 15.5px; color: var(--ink3); line-height: 2.1; }

.kv-cards { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 40px; max-width: 830px; }
.kv-card { border-left: 1px solid var(--ln-l); padding-left: clamp(18px, 2vw, 26px); }
.kv-card .t {
  font-family: var(--f-jp);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.kv-card p { font-size: 16px; color: var(--ink2); line-height: 2.1; }
@media (max-width: 880px) { .kv-cards { grid-template-columns: 1fr; gap: 30px; } }

.chip-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 40px; margin-top: 26px; max-width: 760px; }
.chip-row li {
  position: relative;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ink2);
  padding-left: 22px;
  line-height: 2.0;
}
.chip-row li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(1em - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-deep);
}
.chip-row--dark li { color: var(--tx2); }
@media (max-width: 640px) { .chip-row { grid-template-columns: 1fr; } }

.block-h {
  margin: clamp(48px, 7vh, 68px) 0 24px;
  font-family: var(--f-jp);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink1);
  display: flex;
  align-items: center;
  gap: 18px;
}

/* roadmap — hairline timeline */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 2.6vw, 40px); border-top: 1px solid var(--ln-l); }
.phase { position: relative; padding-top: 30px; }
.phase::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--gold-deep);
}
.phase .ph {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  display: block;
  margin-bottom: 12px;
}
.phase .t { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 12px; line-height: 1.85; }
.phase p { font-size: 15.5px; color: var(--ink2); line-height: 2.05; }
@media (max-width: 880px) {
  .roadmap { grid-template-columns: 1fr; border-top: 0; gap: 0; }
  .phase { border-top: 1px solid var(--ln-l); margin-top: 26px; padding-top: 26px; }
  .phase:first-child { margin-top: 0; }
}

/* courses — open columns */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 2.6vw, 40px); }
.course {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--ln-l);
  padding-left: clamp(18px, 2vw, 26px);
}
.course .c-en { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); display: block; margin-bottom: 17px; }
.course .c-name { font-size: 23px; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 7px; }
.course .c-time { font-family: var(--f-mono); font-size: 14px; color: var(--ink3); letter-spacing: 0.06em; margin-bottom: 21.5px; padding-bottom: 21.5px; border-bottom: 1px solid var(--ln-l-soft); }
.course .c-goal { font-size: 16px; color: var(--ink1); line-height: 2.05; margin-bottom: 19px; }
.course ul { display: grid; gap: 8px; margin-top: auto; }
.course ul li { font-size: 15px; color: var(--ink2); line-height: 1.95; padding-left: 21.5px; position: relative; }
.course ul li::before { content: ""; position: absolute; left: 0; top: 0.9em; width: 8px; height: 1px; background: var(--gold-deep); }
@media (max-width: 880px) { .course-grid { grid-template-columns: 1fr; gap: 36px; } }

/* analogy strip — open columns, big equals */
.meta-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 40px); margin-top: 40px; }
.meta-item { border-top: 1px solid var(--ln-l); padding-top: 22px; }
.meta-item .from { font-size: 15px; color: var(--ink3); letter-spacing: 0.08em; }
.meta-item .eq { font-family: var(--f-mono); color: var(--gold-ink); font-size: 20.5px; margin: 7px 0; }
.meta-item .to { font-size: 17px; font-weight: 700; letter-spacing: 0.04em; }
@media (max-width: 720px) { .meta-strip { grid-template-columns: 1fr; } }

/* flow — numbered steps on a shared hairline */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 clamp(18px, 2vw, 32px); counter-reset: fl; border-top: 1px solid var(--ln-l); }
.flow li { position: relative; padding-top: 26px; counter-increment: fl; }
.flow li::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 24px;
  height: 1px;
  background: var(--gold-deep);
}
.flow li::before {
  content: counter(fl);
  font-family: var(--f-mono);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
  display: block;
  margin-bottom: 10px;
}
.flow li .t { font-size: 17.5px; font-weight: 700; letter-spacing: 0.03em; display: block; margin-bottom: 9.5px; }
.flow li p { font-size: 15px; color: var(--ink2); line-height: 2.0; }
@media (max-width: 1020px) { .flow { grid-template-columns: 1fr 1fr; gap: 28px clamp(18px, 2vw, 32px); border-top: 0; } .flow li { border-top: 1px solid var(--ln-l); } }
@media (max-width: 600px) { .flow { grid-template-columns: 1fr; } }
@media (max-width: 1020px) { .svc-detail { grid-template-columns: 1fr; } .svc-side { position: static; } }

.tools-row { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 24px; }
.tools-row span {
  font-family: var(--f-mono);
  font-size: 15.5px;
  letter-spacing: 0.04em;
  color: var(--ink2);
  display: inline-flex;
  align-items: center;
}
.tools-row span + span::before { content: "/"; margin: 0 16px; color: var(--ln-l); }

/* ============================================================
   Company page
   ============================================================ */
.philosophy-title {
  font-family: var(--f-serif);
  font-size: clamp(31px, 4.8vw, 53px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.9;
  text-align: center;
  margin-bottom: clamp(52px, 8vh, 88px);
}
.philosophy-title .bracket { color: var(--gold); font-weight: 400; }
.philosophy-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(17.5px, 1.92vw, 18.5px);
  line-height: 2.5;
  letter-spacing: 0.04em;
  color: var(--tx1);
}
.philosophy-body p + p { margin-top: 2.1em; }

.message-grid { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.ceo-figure img { filter: saturate(0.94); }
.ceo-figure figcaption { margin-top: 33.5px; font-size: 14.5px; letter-spacing: 0.14em; color: var(--ink3); }
.ceo-figure figcaption .nm {
  display: block;
  font-family: var(--f-jp);
  font-size: 26.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink1);
  margin-top: 8px;
}
.message-body p { color: var(--ink1); font-size: 18px; line-height: 2.4; }
.message-body p + p { margin-top: 1.9em; }
.message-sign { margin-top: 53px; text-align: right; font-size: 14.5px; letter-spacing: 0.16em; color: var(--ink3); }
.message-sign .nm {
  display: block;
  font-family: var(--f-jp);
  font-size: 27.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--ink1);
  margin-top: 8px;
}
.profile-box { margin-top: clamp(50px, 7vh, 76px); border-top: 1px solid var(--ln-l); padding-top: 30px; }
.profile-box .ph {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  display: block;
  margin-bottom: 16px;
}
.profile-box p { font-size: 16px; color: var(--ink2); line-height: 2.3; }
@media (max-width: 880px) { .message-grid { grid-template-columns: 1fr; } .ceo-figure { max-width: 380px; } }

.ov-table { border-top: 1px solid var(--ln-l); }
.ov-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 26px 4px; border-bottom: 1px solid var(--ln-l-soft); }
.ov-row dt { font-size: 15.5px; letter-spacing: 0.16em; color: var(--ink3); font-weight: 500; padding-top: 2.5px; }
.ov-row dd { font-size: 17.5px; color: var(--ink1); line-height: 2.15; }
.ov-row dd ul li { padding-left: 18px; position: relative; }
.ov-row dd ul li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 1px; background: var(--ink3); }
.ov-row dd a { border-bottom: 1px solid rgba(126, 100, 37, 0.5); color: var(--gold-ink); transition: opacity 0.3s; }
.ov-row dd a:hover { opacity: 0.65; }
@media (max-width: 720px) { .ov-row { grid-template-columns: 1fr; gap: 6px; } }
.access-note { margin-top: 36px; font-size: 16px; color: var(--ink2); line-height: 2.2; }

/* ============================================================
   Recruit
   ============================================================ */
.recruit-state {
  font-family: var(--f-serif);
  font-size: clamp(31px, 5.04vw, 57.5px);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.8;
  text-align: center;
}
.recruit-sub { text-align: center; margin-top: 36px; color: var(--tx2); font-size: 17.5px; line-height: 2.3; }

.pos-list { border-top: 1px solid var(--ln-l); display: grid; }
.pos-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: clamp(30px, 4vh, 42px) clamp(4px, 1vw, 16px);
  border-bottom: 1px solid var(--ln-l);
  position: relative;
}
.pos-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px;
  height: 100%;
  background: var(--gold-deep);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.pos-item:hover::before { transform: scaleY(1); }
.pos-item h3 { font-size: 21.5px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 9.5px; transition: color 0.4s var(--ease); }
.pos-item:hover h3 { color: var(--gold-ink); }
.pos-item p { font-size: 16px; color: var(--ink2); line-height: 2.1; max-width: 912px; }
.pos-item .pos-en {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  display: block;
  margin-bottom: 10px;
}
.pos-arrow { font-family: var(--f-mono); font-size: 24px; color: var(--ink3); transition: color 0.4s, transform 0.4s; }
.pos-item:hover .pos-arrow { color: var(--gold-ink); transform: translateX(6px); }
.pos-note { margin-top: 31px; font-size: 15.5px; color: var(--ink2); line-height: 2.15; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 44px); }
.value-card { border-left: 1px solid var(--ln-d); padding-left: clamp(18px, 1.8vw, 26px); }
.value-card .vn { font-family: var(--f-mono); font-size: 15px; font-weight: 500; letter-spacing: 0.14em; color: var(--gold); display: block; margin-bottom: 21.5px; }
.value-card h3 { font-size: 20.5px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 14.5px; }
.value-card p { font-size: 15.5px; color: var(--tx2); line-height: 2.1; }
@media (max-width: 1020px) { .value-grid { grid-template-columns: repeat(2, 1fr); gap: 40px clamp(28px, 3vw, 44px); } }
@media (max-width: 600px) { .value-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: minmax(300px, 430px) 1fr; gap: clamp(40px, 6vw, 104px); align-items: start; }
.contact-info .email-card {
  border-top: 1px solid var(--ln-l);
  padding: 30px 0 34px;
  margin-bottom: 8px;
}
.email-card .lbl {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  display: block;
  margin-bottom: 14px;
}
.email-card .addr { font-family: var(--f-mono); font-size: clamp(21.5px, 2.4vw, 27.5px); letter-spacing: 0.01em; color: var(--ink1); word-break: break-all; }
.email-card .copy-btn {
  margin-top: 22px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  background: rgba(21, 22, 26, 0.07);
  border-radius: var(--rad-pill);
  padding: 11px 24px;
  color: var(--ink1);
  transition: color 0.3s, background-color 0.3s;
}
.email-card .copy-btn:hover { background: var(--ink1); color: var(--paper-2); }
.contact-info .info-note { font-size: 16px; color: var(--ink2); line-height: 2.25; }
.contact-info .info-note + .info-note { margin-top: 16px; }

.form-grid { display: grid; gap: 32px; }
.form-row { display: grid; gap: 10px; }
.form-row label { font-size: 15px; letter-spacing: 0.14em; color: var(--ink2); font-weight: 500; display: flex; align-items: center; gap: 12px; }
.req { font-size: 12px; letter-spacing: 0.1em; color: #fff; background: var(--gold-deep); padding: 2.5px 12px; border-radius: var(--rad-pill); }
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--f-jp);
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--ink1);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(21, 22, 26, 0.32);
  padding: 12px 2px;
  border-radius: 0;
  transition: border-color 0.35s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.form-row textarea { min-height: 160px; resize: vertical; line-height: 2.0; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-bottom-color: var(--gold-deep);
  box-shadow: 0 1px 0 var(--gold-deep);
}
.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23494E58' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  cursor: pointer;
}
.form-consent { font-size: 15px; color: var(--ink2); line-height: 2.1; }
.form-consent a { color: var(--gold-ink); border-bottom: 1px solid rgba(126, 100, 37, 0.5); }
.mail-hint {
  display: none;
  margin-top: 18px;
  font-size: 15.5px;
  color: var(--ink2);
  border-left: 2px solid var(--gold-deep);
  padding: 4px 0 4px 18px;
  line-height: 2.15;
}
.mail-hint.is-shown { display: block; }
.mail-hint b { color: var(--ink1); }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Privacy
   ============================================================ */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 {
  font-family: var(--f-jp);
  font-size: 20.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 56px 0 16px;
  padding-left: 18px;
  border-left: 2px solid var(--gold-deep);
  line-height: 1.8;
}
.prose p, .prose li { font-size: 17px; color: var(--ink2); line-height: 2.3; }
.prose ul { display: grid; gap: 6px; margin-top: 10px; }
.prose ul li { padding-left: 18px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 1.1em; width: 8px; height: 1px; background: var(--gold-deep); }
.prose a { color: var(--gold-ink); border-bottom: 1px solid rgba(126, 100, 37, 0.5); }
.prose .updated { margin-top: 60px; font-size: 15px; color: var(--ink3); }

/* ---------- Utilities ---------- */
.mt-l { margin-top: clamp(48px, 7vh, 76px); }
.mt-m { margin-top: 36px; }
.center { text-align: center; }
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 4000;
  background: var(--gold-deep);
  color: #fff;
  padding: 12px 20px;
  font-size: 15px;
  letter-spacing: 0.08em;
  transition: top 0.3s;
}
.skip-link:focus { top: 16px; }

/* ============================================================
   v2 editorial refinements — FDE刷新（2026-08）
   参考: docs/design-references/README.md
   ============================================================ */

/* --- serif two-tone section titles --- */
.sec-title {
  font-family: var(--f-serif);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.72;
}
.sec-title .tt {
  display: block;
  font-size: 0.62em;
  color: var(--tx3);
  letter-spacing: 0.08em;
  margin-top: 14px;
}
.sec--light .sec-title .tt, .sec--white .sec-title .tt { color: var(--ink3); }

/* --- split section head: title left / lead right --- */
.sec-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
  gap: clamp(28px, 5vw, 88px);
  align-items: end;
}
.sec-head--split .sec-title { font-size: clamp(25px, 2.55vw, 34px); }
.sec-head--split .sec-lead {
  margin-top: 0;
  font-size: 16px;
  line-height: 2.15;
  padding-bottom: 8px;
}
@media (max-width: 900px) {
  .sec-head--split { grid-template-columns: 1fr; align-items: start; }
  .sec-head--split .sec-lead { margin-top: 16px; padding-bottom: 0; }
}

/* --- candlelight glows: sections are lit from above, not flat --- */
.sec--darker {
  background:
    radial-gradient(58% 42% at 50% 0%, rgba(201, 169, 97, 0.06), transparent 70%) no-repeat,
    var(--obsidian);
}
.sec--dark {
  background:
    radial-gradient(46% 34% at 16% 0%, rgba(201, 169, 97, 0.045), transparent 72%) no-repeat,
    var(--obsidian-2);
}

/* --- FDE section (porcelain) --- */
.fde-sec { overflow: hidden; }
.fde-ghost {
  position: absolute;
  top: clamp(-10px, 1vw, 40px);
  right: -2vw;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: clamp(180px, 30vw, 432px);
  line-height: 0.82;
  letter-spacing: -0.045em;
  color: rgba(21, 22, 26, 0.05);
  pointer-events: none;
  user-select: none;
}
.fde-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin: clamp(40px, 6vh, 64px) 0 clamp(56px, 8vh, 92px);
  border-top: 1px solid var(--ln-l);
  padding-top: clamp(30px, 4.4vh, 44px);
}
.fde-step {
  border-left: 1px solid var(--ln-l);
  padding-left: clamp(18px, 2vw, 26px);
  transition: border-color 0.5s var(--ease);
}
.fde-step:hover { border-left-color: var(--gold-deep); }
.fs-num {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--gold-ink);
  margin-bottom: 14px;
}
.fs-num span {
  font-size: 12.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink3);
}
.fde-step h3 {
  font-size: clamp(20.5px, 2.28vw, 24px);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.fde-step p { font-size: 16px; color: var(--ink2); line-height: 2.05; }
.fde-why-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 30px;
}
@media (max-width: 860px) {
  .fde-steps { grid-template-columns: 1fr; gap: 28px; }
  .fde-ghost { font-size: clamp(144px, 40.8vw, 240px); top: 0; }
}

/* --- services: two equal boxes --- */
.svc-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 36px);
  align-items: stretch;
}
.svc-box {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-radius: var(--rad-lg);
  background:
    radial-gradient(120% 80% at 50% -14%, rgba(201, 169, 97, 0.11), transparent 58%),
    linear-gradient(172deg, #1C1B20 0%, #16161B 56%, #16161D 100%);
  box-shadow:
    inset 0 1px 0 rgba(242, 243, 245, 0.10),
    inset 0 -1px 0 rgba(240, 226, 180, 0.09),
    0 0 70px -28px rgba(201, 169, 97, 0.13),
    0 24px 60px -26px rgba(201, 169, 97, 0.13),
    0 30px 64px -42px rgba(0, 0, 0, 0.9);
  padding: clamp(28px, 3.2vw, 46px);
  transition: box-shadow 0.5s var(--ease);
}
.svc-box:hover {
  box-shadow:
    inset 0 1px 0 rgba(240, 226, 180, 0.16),
    inset 0 0 64px rgba(201, 169, 97, 0.08),
    0 0 90px -24px rgba(201, 169, 97, 0.22),
    0 30px 70px -40px rgba(0, 0, 0, 0.95);
}
.svc-box-roman {
  position: absolute;
  top: 6px;
  right: 24px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(115px, 10.8vw, 177.5px);
  line-height: 1;
  color: rgba(201, 169, 97, 0.09);
  pointer-events: none;
  user-select: none;
}
.svc-box header { position: relative; }
.pillar-en {
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.svc-box-title {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(25px, 2.64vw, 31px);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.svc-box-copy { font-size: 16px; color: var(--tx2); line-height: 2.05; }
.svc-box-list { margin-top: 4px; }
.svc-box-list li {
  display: block;
  padding: 15px 0;
  border-top: 1px solid var(--ln-d-soft);
}
.svc-box-list li span {
  font-family: var(--f-mono);
  font-size: 14.5px;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding-top: 2px;
}
.svc-box-list h4 { font-size: 17.5px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.7; }
.svc-box-list li p { margin-top: 5px; font-size: 14.5px; color: var(--tx3); line-height: 1.9; }
.svc-box-progs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 4px; }
.sp { padding: 16px 16px 16px 0; border-top: 1px solid var(--ln-d-soft); }
.sp:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--ln-d-soft); }
.sp-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.sp h4 { font-size: 16px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.65; }
.sp p { margin-top: 6px; font-size: 14px; color: var(--tx3); line-height: 1.85; }
.svc-box-note { font-size: 13px; color: var(--tx3); letter-spacing: 0.04em; line-height: 1.9; }
.sec--light .svc-box-note, .sec--white .svc-box-note { color: var(--ink3); }
.svc-box-foot { margin-top: auto; padding-top: 16px; }
.duo-links { display: flex; justify-content: center; gap: clamp(28px, 4vw, 56px); flex-wrap: wrap; }
@media (max-width: 880px) { .svc-duo { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .svc-box-progs { grid-template-columns: 1fr; }
  .sp:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* --- 事例図版パネル（cmedia: 事業内容ページの事例カードで使用） --- */
.cmedia {
  position: relative;
  border-radius: var(--rad-md);
  background: linear-gradient(160deg, #17171D, #13131A 70%);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow:
    inset 0 1px 0 rgba(242, 243, 245, 0.09),
    0 0 56px -22px rgba(201, 169, 97, 0.12),
    0 18px 40px -30px rgba(0, 0, 0, 0.85);
  transition: box-shadow 0.5s var(--ease);
}
.cmedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  transition: transform 1.2s var(--ease), opacity 0.5s var(--ease);
}

/* ============================================================
   白基調UI（2026-08-05 オーナー指示）
   本文セクション(about/services/works)をライトに転換した際の
   コンポーネント適応。戻す場合は index.html の該当 section の
   class / data-theme をダーク版に戻す（git: 白基調化コミットを revert）
   ============================================================ */
.sec--light .duality-copy, .sec--white .duality-copy { color: var(--ink2); }

/* services: 白地上のボックス */
.sec--light .svc-box, .sec--white .svc-box {
  background: linear-gradient(176deg, #FFFFFF 0%, #FCFBF8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 10px rgba(21, 22, 26, 0.04),
    0 30px 60px -38px rgba(21, 22, 26, 0.30);
}
.sec--light .svc-box:hover, .sec--white .svc-box:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 10px rgba(21, 22, 26, 0.05),
    0 34px 68px -36px rgba(160, 127, 62, 0.35);
}
.sec--light .svc-box-roman, .sec--white .svc-box-roman { color: rgba(160, 127, 62, 0.12); }
.sec--light .svc-box-copy, .sec--white .svc-box-copy { color: var(--ink2); }
.sec--light .svc-box-list li, .sec--white .svc-box-list li { border-top-color: var(--ln-l-soft); }
.sec--light .svc-box-list li span, .sec--white .svc-box-list li span { color: var(--gold-ink); }
.sec--light .svc-box-list li p, .sec--white .svc-box-list li p { color: var(--ink3); }
.sec--light .sp, .sec--white .sp { border-top-color: var(--ln-l-soft); }
.sec--light .sp:nth-child(2n), .sec--white .sp:nth-child(2n) { border-left-color: var(--ln-l-soft); }
.sec--light .sp-label, .sec--white .sp-label { color: var(--gold-ink); }
.sec--light .sp p, .sec--white .sp p { color: var(--ink3); }
.sec--light .pillar-en, .sec--white .pillar-en { color: var(--gold-ink); }

/* 事例図版パネル: ライト地では白基調に反転 */
.sec--light .cmedia, .sec--white .cmedia {
  background: linear-gradient(160deg, #FFFFFF, #F0F0F3 70%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(21, 22, 26, 0.04),
    0 22px 44px -30px rgba(21, 22, 26, 0.32);
}
.sec--light .case-ind, .sec--white .case-ind { color: var(--ink3); }
.sec--light .case-type, .sec--white .case-type { color: var(--gold-ink); }
.sec--light .cdesc, .sec--white .cdesc { color: var(--ink3); }
.sec--light .ccard:hover h3, .sec--white .ccard:hover h3 { color: var(--gold-ink); }
.sec--light .ccard:hover .cmedia, .sec--white .ccard:hover .cmedia {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(21, 22, 26, 0.05),
    0 26px 52px -30px rgba(160, 127, 62, 0.4);
}

/* --- hero → about: 燭光の液面が漆黒へ溶けて消える --- */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(140px, 24vh, 260px);
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(52, 42, 26, 0.30) 36%,
    rgba(22, 20, 16, 0.80) 68%,
    var(--obsidian-2) 100%);
  pointer-events: none;
  z-index: 1;
}
/* about の冒頭にはヒーローの金の残光がにじむ */
#about {
  background:
    radial-gradient(74% 42% at 50% 0%, rgba(201, 169, 97, 0.11), transparent 62%),
    radial-gradient(46% 34% at 16% 4%, rgba(201, 169, 97, 0.05), transparent 72%),
    var(--obsidian-2);
}

/* --- page-hero: 二本柱（事業内容）— 面を使わず、中央の金ヘアライン1本で区切る --- */
.pillar-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 880px;
  margin: 64px auto 0;
  text-align: left;
}
.pd-item { display: block; padding-right: clamp(32px, 4vw, 56px); }
.pd-item + .pd-item {
  padding-right: 0;
  padding-left: clamp(32px, 4vw, 56px);
  border-left: 1px solid var(--ln-gold-soft);
}
.pd-en {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tx3);
}
.pd-title {
  font-family: var(--f-serif);
  font-size: clamp(23px, 2.4vw, 29px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--tx1);
  margin-top: 10px;
  transition: color 0.45s var(--ease);
}
.pd-item:hover .pd-title { color: var(--gold-2); }
.pd-desc { margin-top: 12px; font-size: 15px; color: var(--tx2); line-height: 1.9; }
@media (max-width: 720px) {
  .pillar-duo { grid-template-columns: 1fr; margin-top: 44px; }
  .pd-item { padding: 0 0 28px; }
  .pd-item + .pd-item { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--ln-gold-soft); }
}

/* svc-side内の図版パネル */
.svc-side-media { margin-top: 28px; }

/* --- dawn: 漆黒から白磁への夜明けグラデーション帯 --- */
.dawn {
  position: relative;
  height: clamp(220px, 32vh, 380px);
  background: linear-gradient(180deg,
    var(--obsidian-2) 0%,
    #17181C 16%,
    #2A2C32 34%,
    #585B63 52%,
    #9EA1A8 70%,
    #D6D8DC 86%,
    var(--paper) 100%);
}
.dawn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(46% 58% at 50% 58%, rgba(201, 169, 97, 0.12), transparent 72%);
  pointer-events: none;
}
.dawn > div, .dusk > div { height: 50%; }

/* --- dusk: 白磁から漆黒へ還るグラデーション帯（無彩色・金は入れない） --- */
.dusk {
  position: relative;
  height: clamp(220px, 32vh, 380px);
  background: linear-gradient(180deg,
    var(--paper) 0%,
    #D6D8DC 14%,
    #9EA1A8 30%,
    #585B63 48%,
    #2A2C32 66%,
    #17181C 84%,
    var(--obsidian) 100%);
}

/* サブページ用の短い帯（page-hero 直後・ダーク帯への接続） */
.dawn--page, .dusk--page { height: clamp(130px, 20vh, 220px); }
.dawn--page {
  background: linear-gradient(180deg,
    var(--obsidian) 0%,
    #17181C 18%,
    #2A2C32 36%,
    #585B63 54%,
    #9EA1A8 72%,
    #D6D8DC 87%,
    var(--paper) 100%);
}

/* --- hero 白絹バリアント（.hero--light）。外すとダーク版に戻る（現在は未使用・保存） --- */
.hero--light { background: #FCFCFD; color: var(--ink1); }
.hero--light .hero-fallback {
  background: linear-gradient(180deg, #FCFCFD 0%, #F7F7F9 55%, #F2F2F5 100%);
}
/* WebGL不可環境でも「白地を光が漂う」を保証するフォールバック光 */
.hero--light .hero-fallback::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 72vmax;
  height: 72vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 214, 0.95) 0%, rgba(255, 250, 236, 0.5) 34%, transparent 62%);
  transform: translate(-50%, -50%);
  animation: heroLightDrift 30s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroLightDrift {
  0%   { transform: translate(-64%, -56%) scale(1); }
  50%  { transform: translate(-36%, -46%) scale(1.14); }
  100% { transform: translate(-54%, -38%) scale(0.94); }
}
.hero--light .hero-inner::before { background: none; }
.hero--light .hero-title { filter: drop-shadow(0 2px 18px rgba(255, 255, 255, 0.9)); }
.hero--light .hero-title .line > span { color: #1A1B20; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero--light .hero-title .line > span {
    background: linear-gradient(180deg, #15161A 0%, #262117 52%, #7E6425 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
.hero--light .hero-lead {
  color: var(--ink2);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.75), 0 2px 20px rgba(255, 255, 255, 0.6);
}
.hero--light .hero-rule { background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); }
.hero--light .hero-rule::after { background: var(--gold-deep); box-shadow: 0 0 12px rgba(160, 127, 62, 0.6); }

/* buttons on white silk */
.hero--light .btn--solid {
  color: #171104;
  background: linear-gradient(165deg, #F2E3B5 0%, #DDC084 55%, #CBA85F 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 16px 34px -18px rgba(160, 127, 62, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.hero--light .btn--solid::before { background: linear-gradient(165deg, #B08A45 0%, #A07F3E 100%); }
.hero--light .btn--solid:hover { color: #FFFFFF; box-shadow: 0 18px 40px -16px rgba(160, 127, 62, 0.6); }
.hero--light .btn--ghost {
  color: var(--ink1);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -22px rgba(21, 22, 26, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.hero--light .btn--ghost::before { background: var(--ink1); }
.hero--light .btn--ghost:hover { color: var(--paper-2); }

/* --- header progress line --- */
.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ============================================================
   折りたたみ（fold）と事例詳細 — 事業内容ページ拡充（2026-08-09）
   「詳細を見る／閉じる」の開閉。枠線ボックス禁止ルールに従い、
   行区切りヘアライン・左アクセント線・活字のみで構成する
   ============================================================ */
.fold-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.fold-inner {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s 0.55s;
}
.fold-item.is-open .fold-panel { grid-template-rows: 1fr; }
.fold-item.is-open .fold-inner { visibility: visible; transition: visibility 0s; }

.fold-toggle {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold-ink);
  transition: color 0.3s var(--ease);
}
.fold-toggle::after {
  content: "＋";
  font-family: var(--f-jp);
  font-size: 12px;
  color: var(--gold-deep);
}
.fold-item.is-open .fold-toggle::after { content: "−"; }
.fold-toggle:hover { color: var(--gold-deep); }

/* 事例の絞り込みチップ（面＋角丸のみ・枠線なし） */
.case-filter { margin-top: 24px; }
.cf-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.cf-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--ink3); margin-right: 8px; min-width: 58px; }
.cf-chip {
  border: 0;
  cursor: pointer;
  border-radius: var(--rad-pill);
  padding: 8px 16px;
  font-family: var(--f-jp);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink2);
  background: rgba(21, 22, 26, 0.055);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cf-chip:hover { background: rgba(21, 22, 26, 0.1); }
.cf-chip.is-active {
  color: #1A1406;
  background: linear-gradient(165deg, #E3C889 0%, #C9A961 100%);
  box-shadow: 0 10px 22px -12px rgba(160, 127, 62, 0.5);
}
.cf-count { margin-top: 18px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.14em; color: var(--ink3); }
.cf-empty { margin-top: 30px; font-size: 15px; color: var(--ink3); }

/* 事例カードグリッド（図版つき・トップWorksと同文法） */
#cases { scroll-margin-top: calc(var(--header-h) + 82px); } /* ヘッダー＋縮小バー64pxの下に見出しが隠れないように */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(34px, 4vw, 48px) clamp(20px, 2.4vw, 34px); margin-top: 34px; }
@media (max-width: 1000px) and (min-width: 641px) { .case-grid { grid-template-columns: 1fr 1fr; } }
.case-card { display: flex; flex-direction: column; gap: 11px; cursor: pointer; }
.case-card[hidden] { display: none; }
.case-card:hover .cc-media img { transform: scale(1.035); }
.cc-title { font-size: 17.5px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.85; color: var(--ink1); transition: color 0.3s var(--ease); }
.case-card:hover .cc-title { color: var(--gold-ink); }
.cc-sum {
  font-size: 14.5px;
  color: var(--ink3);
  line-height: 2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cc-open { margin-top: 2px; align-self: flex-start; }
.case-grid .case-meta { min-height: 40px; align-content: flex-start; }
.case-grid .case-meta, .case-dialog .case-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px 0;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink3);
}
.case-grid .case-meta span + span::before, .case-dialog .case-meta span + span::before { content: "/"; margin: 0 10px; color: var(--ln-l); }
.cc-more-wrap { margin-top: 46px; text-align: center; }
.cc-all {
  border: 0;
  cursor: pointer;
  border-radius: var(--rad-pill);
  padding: 15px 36px;
  font-family: var(--f-jp);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #1A1406;
  background: linear-gradient(165deg, #E3C889 0%, #C9A961 100%);
  box-shadow: 0 16px 34px -16px rgba(160, 127, 62, 0.55);
  transition: filter 0.25s var(--ease);
}
.cc-all:hover { filter: brightness(1.05); }

/* 事例の詳細モーダル */
.case-dialog { border: 0; padding: 0; margin: auto; background: transparent; width: min(720px, calc(100vw - 32px)); overflow: visible; }
.case-dialog::backdrop {
  background: rgba(10, 10, 12, 0.66);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.cdlg-scroll {
  background: #FFFFFF;
  border-radius: var(--rad-lg);
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 46px 110px -34px rgba(10, 10, 12, 0.55);
}
.cdlg-close {
  position: sticky;
  top: 14px;
  z-index: 2;
  display: block;
  margin: 14px 14px -54px auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  color: var(--ink1);
  background: rgba(251, 251, 252, 0.92);
  box-shadow: 0 8px 22px -10px rgba(10, 10, 12, 0.4);
  transition: background 0.25s var(--ease);
}
.cdlg-close:hover { background: #EDE9DF; }
.cdlg-media {
  height: clamp(170px, 26vw, 225px);
  background: linear-gradient(175deg, #FDFDFE 0%, #F1F2F5 100%);
  border-radius: var(--rad-lg) var(--rad-lg) 0 0;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(21, 22, 26, 0.05);
}
.cdlg-media img { width: 100%; height: 100%; object-fit: cover; }
.cdlg-body-wrap { padding: 24px clamp(22px, 4.5vw, 40px) clamp(30px, 5vw, 44px); }
.cdlg-title { margin-top: 12px; font-size: 20.5px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.85; color: var(--ink1); }
.cdlg-body { margin-top: 6px; }
.cdlg-body .cd-h { margin: 26px 0 9px; }
.cdlg-body > p:not(.cd-h) { font-size: 15.5px; color: var(--ink2); line-height: 2.1; }
html.dialog-open, html.dialog-open body { overflow: hidden; }
.case-dialog[open] { animation: dlg-in 0.45s var(--ease); }
@keyframes dlg-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .case-dialog[open] { animation: none; } }

/* 開いた中身（事例・カリキュラム共通） */
.fold-body {
  margin: 2px 0 40px;
  padding-left: clamp(18px, 2.2vw, 26px);
  border-left: 1px solid rgba(160, 127, 62, 0.35);
  max-width: 830px;
}
.prog-fold .fold-body { margin-top: 22px; margin-bottom: 10px; }
.cd-h {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--gold-ink);
  margin: 26px 0 9px;
}
.fold-body .cd-h:first-child { margin-top: 0; }
.fold-body > p:not(.cd-h) { font-size: 15.5px; color: var(--ink2); line-height: 2.1; }
.cd-list { list-style: none; margin-top: 2px; }
.cd-list li { padding: 13px 0; border-top: 1px solid var(--ln-l-soft); }
.cd-list li:first-child { border-top: 0; padding-top: 4px; }
.cl-t { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink1); line-height: 1.9; }
.cl-d { display: block; margin-top: 3px; font-size: 14.5px; color: var(--ink3); line-height: 2; }

/* 研修プログラムの折りたたみ */
.prog-fold { margin-top: 20px; }

@media (max-width: 640px) {
  .fold-body { padding-left: 16px; }
  .case-grid { grid-template-columns: 1fr; gap: 34px; }
  .cf-label { min-width: 100%; margin-right: 0; }
  .case-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; }
  .cdlg-scroll { border-radius: 0; height: 100dvh; max-height: 100dvh; }
  .cdlg-media { border-radius: 0; }
}

/* ============================================================
   お問い合わせフォーム送信UI（2026-08-09・mailto 廃止）
   Apps Script への直接送信。送信中・完了・エラーの状態表示
   ============================================================ */
.hp-wrap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-grid[hidden] { display: none; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.form-error {
  margin-top: 18px;
  max-width: 560px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink1);
  border-left: 2px solid var(--gold-deep);
  padding: 8px 16px;
  background: rgba(160, 127, 62, 0.08);
  border-radius: 0 10px 10px 0;
}
.form-done {
  background: linear-gradient(175deg, #FFFFFF 0%, #F6F4EE 100%);
  border-radius: var(--rad-lg);
  box-shadow: 0 30px 70px -34px rgba(21, 22, 26, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  padding: clamp(32px, 5vw, 48px);
}
.fd-check { width: 44px; height: 44px; display: block; }
.fd-title { margin-top: 16px; font-size: 20px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink1); line-height: 1.9; }
.fd-body { margin-top: 12px; font-size: 15.5px; color: var(--ink2); line-height: 2.15; }

/* ============================================================
   写真導入（実験・2026-08-09）— docs/photo-design-plan.md
   P1 ヒーロー背景 / P4 帯テクスチャ / P2 スプリット / P3 シネマバンド
   実験を破棄する場合は本ブロックと各HTMLの該当要素を削除する
   ============================================================ */
.page-hero--photo::before, .page-hero--photo::after { z-index: 1; }
.page-hero--services .ph-media img { object-position: 50% 30%; }
.page-hero--company .ph-media img { transform: translateX(-3.9%) scale(1.085); }
@media (max-width: 720px) {
  /* モバイルは縦の切り出し余白がないため translateY で持ち上げる（画像下部・背景とも漆黒で継ぎ目は出ない） */
  .page-hero--services .ph-media img { object-position: 57% 50%; transform: translateY(-12%); }
  .page-hero--company .ph-media img { transform: none; object-position: 59.3% 50%; }
}
.ph-media { position: absolute; inset: 0; z-index: 0; }
.ph-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.6) 0%, rgba(10, 10, 12, 0.46) 42%, rgba(10, 10, 12, 0.97) 100%);
}

.mission-band .band-media { position: absolute; inset: 0; z-index: 0; }
.mission-band .band-media img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 1; filter: brightness(1.45) saturate(1.55) contrast(1.02); }
.mission-band .band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.62) 0%, rgba(10, 10, 12, 0.1) 48%, rgba(10, 10, 12, 0.66) 100%);
}
.mission-band::before { z-index: 1; }
.mission-band .container { position: relative; z-index: 2; }

.photo-band { position: relative; width: 100vw; margin: clamp(70px, 10vh, 120px) 0 0 calc(50% - 50vw); height: clamp(260px, 36vh, 430px); overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-band--flush { margin-top: 0; }
.fde-sec { padding-bottom: 0; }

/* ============================================================
   svc-feature — 画像バナー固定（縮小バー）＋下をコンテンツが流れる
   （2026-08-09 オーナー指示 v2: 初期はバナー、スクロールで
    ヘッダー直下にタイトルだけの細いバーとして残る）
   ============================================================ */
.svc-feature { position: relative; scroll-margin-top: var(--header-h); --pin-full: 300px; --pin-bar: 64px; }
.svc-pin {
  position: sticky;
  top: var(--header-h);
  height: var(--pin-full);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 2;
  background: var(--paper-2);
  transition: height 0.38s var(--ease), box-shadow 0.38s var(--ease);
}
.svc-pin.is-shrunk { height: var(--pin-bar); box-shadow: 0 16px 34px -24px rgba(21, 22, 26, 0.28); }
.svc-pin-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-pin-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 251, 252, 0.94) 0%, rgba(251, 251, 252, 0.76) 38%, rgba(251, 251, 252, 0.3) 66%, rgba(251, 251, 252, 0.02) 90%);
}
.svc-pin-copy { position: relative; z-index: 1; }
.svc-pin-copy .en-label {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink3);
  display: block;
  margin-bottom: 12px;
  max-height: 24px;
  opacity: 1;
  overflow: hidden;
  transition: opacity 0.3s var(--ease), max-height 0.38s var(--ease), margin 0.38s var(--ease);
}
.svc-pin-copy h2 {
  font-family: var(--f-jp);
  font-size: clamp(26px, 2.9vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--ink1);
  transition: font-size 0.38s var(--ease);
}
.svc-pin-note {
  margin-top: 14px;
  max-width: 620px;
  font-size: 15.5px;
  color: var(--ink2);
  line-height: 2;
  max-height: 200px;
  opacity: 1;
  overflow: hidden;
  transition: opacity 0.3s var(--ease), max-height 0.38s var(--ease), margin 0.38s var(--ease);
}
.svc-pin.is-shrunk .svc-pin-copy .en-label,
.svc-pin.is-shrunk .svc-pin-note { opacity: 0; max-height: 0; margin: 0; }
.svc-pin.is-shrunk .svc-pin-copy h2 { font-size: 20px; }
.svc-flow { position: relative; z-index: 1; padding: var(--sec-pad) 0; transition: padding-top 0.38s var(--ease); }
.svc-pin.is-shrunk + .svc-flow { padding-top: calc(var(--sec-pad) + var(--pin-full) - var(--pin-bar)); }
@media (max-width: 720px) {
  .svc-feature { --pin-full: 250px; --pin-bar: 56px; }
  .svc-pin-copy h2 { font-size: 22px; }
  .svc-pin.is-shrunk .svc-pin-copy h2 { font-size: 17px; }
  .svc-pin-note { font-size: 13.5px; line-height: 1.9; }
}
}
