/* =====================================================================
   FAREAST LAB — Design System (Light / Trust + Navy)
   トークン駆動。依存ライブラリのCSSは不要（動きはGSAP）。
   ===================================================================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
picture,
svg,
iframe {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
ul {
  list-style: none;
  padding: 0;
}

/* ---------- Tokens ---------- */
:root {
  /* surfaces (light) */
  --bg: #ffffff;
  --bg-2: #f5f8fc; /* 交互セクション */
  --surface: #ffffff; /* カード */
  --surface-2: #eef3f9;
  --border: #e3e9f2;
  --border-soft: #eef2f7;

  /* text */
  --text: #25324a; /* 本文（濃いグレー/ネイビー寄り） */
  --text-mut: #54607a;
  --text-dim: #8995a9;

  /* navy（見出し・濃色面） */
  --navy: #0e2747;
  --navy-2: #143a66;
  --navy-deep: #0a1c33;

  /* brand green */
  --brand: #15803d; /* 文字・アクセント（白地でAA） */
  --brand-2: #16a34a;
  --brand-bright: #22c55e; /* グラデ/グロー専用 */
  --danger: #dc2626;
  --glow: rgba(22, 163, 74, 0.28);

  /* gradients */
  --grad-brand: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  --grad-text: linear-gradient(120deg, #15803d 0%, #0e2747 70%);

  /* typography */
  --font-display: "Space Grotesk", "Noto Sans JP", system-ui, sans-serif;
  --font-sans: "Inter", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --fs-display: clamp(2.4rem, 4.6vw, 3.8rem);
  --fs-h1: clamp(2rem, 4.2vw, 3.1rem);
  --fs-h2: clamp(1.65rem, 3vw, 2.4rem);
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.02rem, 1.5vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.78rem;
  --lh-tight: 1.2;
  --lh: 1.85;

  /* spacing / shape */
  --container: 1280px;
  --container-narrow: 880px;
  --radius-sm: 0.6rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --section-y: clamp(4.5rem, 9vw, 8rem);

  /* shadows（品よく立体） */
  --shadow-sm: 0 1px 2px rgba(14, 39, 71, 0.04),
    0 2px 10px -6px rgba(14, 39, 71, 0.1);
  --shadow: 0 6px 24px -10px rgba(14, 39, 71, 0.14),
    0 2px 6px -4px rgba(14, 39, 71, 0.06);
  --shadow-lg: 0 28px 64px -28px rgba(14, 39, 71, 0.24),
    0 8px 24px -16px rgba(14, 39, 71, 0.12);
  --ring: 0 0 0 3px rgba(22, 163, 74, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg);
  overflow-x: clip; /* hidden だと position:sticky を壊すため clip を使う */
  /* 日本語の約物・かなを詰めて上質な文字組みに */
  font-feature-settings: "palt" 1;
  font-kerning: normal;
  /* 文節単位で改行（対応ブラウザ）。単語の途中で切れるのを防ぐ */
  word-break: auto-phrase;
  line-break: strict; /* 禁則処理を厳格に（行頭の句読点・閉じ括弧を防ぐ） */
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
p {
  color: var(--text-mut);
}
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 4px;
}
::selection {
  background: rgba(22, 163, 74, 0.18);
  color: var(--navy);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.container.narrow {
  max-width: var(--container-narrow);
}
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section.tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
}
.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .eyebrow {
  justify-content: center;
}
.section-head h2 {
  font-size: var(--fs-h2);
  margin-top: 0.9rem;
}
.section-head p {
  margin-top: 1rem;
  font-size: var(--fs-lead);
}
.lead {
  font-size: var(--fs-lead);
  color: var(--text-mut);
}
.muted {
  color: var(--text-mut);
}
.dim {
  color: var(--text-dim);
}
.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 0.85rem;
  --pad-x: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn svg {
  width: 1.1em;
  height: 1.1em;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 10px 26px -10px var(--glow);
}
.btn-primary:hover {
  box-shadow: 0 16px 34px -12px var(--glow);
}
.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--navy);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-lg {
  --pad-y: 1.05rem;
  --pad-x: 2rem;
  font-size: var(--fs-body);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand img.logo-fe {
  height: 26px;
  width: auto;
}
.brand img.logo-lab {
  height: 54px;
  width: auto;
  margin-left: -4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-mut);
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy);
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.985),
      rgba(245, 248, 252, 0.985)
    );
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 7vw, 2.75rem);
  padding-top: 96px; /* ヘッダー分を空ける */
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s var(--ease);
}
.mobile-menu.show {
  transform: none;
  visibility: visible;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.mobile-menu .menu-eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
/* 通常リンク：大きめ・右に誘導の矢印・下線は控えめに */
.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0.15rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--border-soft);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.mobile-menu a:not(.btn)::after {
  content: "→";
  font-size: 1.05rem;
  color: var(--brand);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.mobile-menu a:not(.btn):hover {
  color: var(--brand);
  padding-left: 0.5rem;
}
.mobile-menu a:not(.btn):hover::after {
  opacity: 1;
  transform: none;
}
/* CTA：中央寄せ＋十分な左右余白（文字の見切れを解消）＋高級感 */
.mobile-menu a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 2rem;
  padding: 1.15rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 16px 34px -12px var(--glow);
}
/* メニューを開いたときの上品なスタッガー表示 */
.mobile-menu nav > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-menu.show nav > * {
  opacity: 1;
  transform: none;
}
.mobile-menu.show nav > *:nth-child(1) {
  transition-delay: 0.06s;
}
.mobile-menu.show nav > *:nth-child(2) {
  transition-delay: 0.12s;
}
.mobile-menu.show nav > *:nth-child(3) {
  transition-delay: 0.18s;
}
.mobile-menu.show nav > *:nth-child(4) {
  transition-delay: 0.24s;
}
.mobile-menu.show nav > *:nth-child(5) {
  transition-delay: 0.3s;
}
.mobile-menu.show nav > *:nth-child(6) {
  transition-delay: 0.36s;
}
.mobile-menu.show nav > *:nth-child(7) {
  transition-delay: 0.42s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(8rem, 12vw, 11rem) clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
  background: radial-gradient(
      1200px 500px at 85% -5%,
      rgba(22, 163, 74, 0.08),
      transparent 60%
    ),
    radial-gradient(900px 500px at -5% 10%, rgba(14, 39, 71, 0.06), transparent 55%),
    var(--bg);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  /* PCではアニメ枠(右)を少し広めに。文字側(左)は見出しが2行に収まる幅(約530px)を確保し、
     差分は列間ギャップを詰めて捻出する（見出しの折返し崩れ・文字かぶりを防ぐ） */
  grid-template-columns: 0.86fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.hero h1 {
  font-size: var(--fs-display);
  margin: 1.1rem 0 1.3rem;
}
.hero .hero-sub {
  font-size: var(--fs-lead);
  max-width: 560px;
  color: var(--text-mut);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}
.hero-meta .n {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
}
.hero-meta .l {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
.hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.3;
}
.hero-figure img {
  position: absolute;
  inset: -7% 0;
  width: 100%;
  height: 114%;
  object-fit: cover;
  will-change: transform;
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 28, 51, 0.35));
}
.hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
}
.hero-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(7.5rem, 12vw, 10rem) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(
      900px 400px at 80% -10%,
      rgba(22, 163, 74, 0.08),
      transparent 60%
    ),
    var(--bg-2);
}
.page-hero h1 {
  font-size: var(--fs-h1);
  margin-top: 0.9rem;
}
.page-hero p {
  margin-top: 1.1rem;
  font-size: var(--fs-lead);
  max-width: 640px;
}

/* split panel */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.split.rev > :first-child {
  order: 2;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.panel h4 {
  font-size: var(--fs-sm);
  color: var(--navy);
  letter-spacing: 0.03em;
  margin-bottom: 0.9rem;
}
.panel + .panel {
  margin-top: 1rem;
}
.domain-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.domain-head .card-icon {
  margin-bottom: 0;
}
.domain-head h2 {
  font-size: var(--fs-h2);
}

/* figure (story etc.) */
.figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.card {
  transform-style: preserve-3d;
}
.card:hover {
  border-color: rgba(22, 163, 74, 0.4);
  box-shadow: var(--shadow-lg);
}
.card .shine {
  display: none;
}
.card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.6rem;
  color: var(--navy);
}
.card p {
  font-size: var(--fs-sm);
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 1.1rem;
  color: var(--brand);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(22, 163, 74, 0.04));
  border: 1px solid rgba(22, 163, 74, 0.2);
}
.card-icon svg {
  width: 28px;
  height: 28px;
}
.card-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.card .index {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.1em;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand);
}
.card-link svg {
  width: 1em;
  height: 1em;
  transition: transform 0.2s;
}
.card:hover .card-link svg {
  transform: translateX(3px);
}

/* feature list */
.ticks {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1rem;
}
.ticks li {
  display: flex;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--text);
}
.ticks li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    center / 12px no-repeat;
}

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.chip.brand {
  color: var(--brand);
  border-color: rgba(22, 163, 74, 0.3);
  background: rgba(22, 163, 74, 0.08);
}

/* ---------- Stats ---------- */
.stat {
  text-align: center;
}
.stat .n {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
}
.stat .n small {
  font-size: 0.5em;
  color: var(--brand);
}
.stat .l {
  font-size: var(--fs-sm);
  color: var(--text-mut);
  margin-top: 0.3rem;
}

/* ---------- Process timeline ---------- */
.timeline {
  position: relative;
  margin-top: 2.5rem;
}
.timeline .track {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--border);
}
.timeline .progress {
  position: absolute;
  top: 28px;
  left: 0;
  height: 3px;
  width: 0;
  border-radius: 3px;
  background: var(--grad-brand);
}
.steps {
  display: grid;
  gap: 1.5rem;
}
.step .num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 8px 20px -8px var(--glow);
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}
.step h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.step p {
  font-size: var(--fs-sm);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}
.marquee-track .chip {
  font-size: var(--fs-sm);
  padding: 0.6rem 1.15rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* ---------- CTA band (navy) ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: radial-gradient(
      700px 300px at 85% -20%,
      rgba(34, 197, 94, 0.25),
      transparent 60%
    ),
    var(--navy);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 {
  color: #fff;
  font-size: var(--fs-h2);
}
.cta-band p {
  margin: 1rem auto 2rem;
  max-width: 540px;
  font-size: var(--fs-lead);
  color: #cdd8e8;
}
.cta-band .eyebrow {
  color: #6ee7a8;
}
.cta-band .eyebrow::before {
  background: #6ee7a8;
}
.cta-band .hero-actions {
  justify-content: center;
}
.cta-band .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.cta-band .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-mut);
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  color: var(--navy);
  border-color: var(--brand);
}
.filter-btn.active {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
}

/* ---------- Capability table ---------- */
.cap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.cap-table th,
.cap-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.cap-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.cap-table td.yes {
  color: var(--brand);
  text-align: center;
  font-weight: 700;
}
.cap-table tbody tr:nth-child(even) {
  background: var(--bg-2);
}
.cap-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Info table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.info-table th,
.info-table td {
  padding: 1rem 0.5rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.info-table th {
  width: 30%;
  color: var(--navy);
  font-weight: 600;
}
.info-table td {
  color: var(--text);
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 1.3rem;
}
.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.45rem;
}
.field .req {
  color: var(--danger);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--text-mut);
}
.consent input {
  margin-top: 0.25rem;
  accent-color: var(--brand-2);
}
.form-status {
  margin-top: 1rem;
  font-size: var(--fs-sm);
  min-height: 1.2em;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item + .faq-item {
  margin-top: 0.75rem;
}
.faq-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  color: var(--navy);
}
.faq-head .chev {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--brand);
  transition: transform 0.3s var(--ease);
}
.faq-body {
  height: 0;
  overflow: hidden;
}
.faq-body p {
  padding: 0 1.3rem 1.2rem;
  font-size: var(--fs-sm);
}

/* ---------- Footer (navy) ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #c6d2e4;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer .brand img.logo-lab {
  filter: none;
}
.site-footer h4 {
  font-size: var(--fs-sm);
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.site-footer p {
  color: #aab8cf;
}
.site-footer a {
  color: #c6d2e4;
  font-size: var(--fs-sm);
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--brand-bright);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-info p {
  font-size: var(--fs-sm);
  margin-bottom: 0.3rem;
}
.footer-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
}
.footer-map {
  margin-top: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: var(--fs-xs);
  color: #8597b2;
}

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 14px 30px -10px var(--glow);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.float-cta.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[id] {
  scroll-margin-top: 92px;
}

.note {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

/* ---------- Preloader（液体＋泡） ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  overflow: hidden;
}
#liquid {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  overflow: hidden;
}
.wave-wrap {
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 300%;
  height: 110px;
  pointer-events: none;
}
.wave {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.wave.back {
  opacity: 0.35;
}
.wave.mid {
  opacity: 0.6;
  left: 100%;
}
.wave.front {
  opacity: 0.85;
  left: 200%;
}
.bubble {
  position: absolute;
  bottom: -18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
#preloader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
#preloader-logo .logo-fe {
  height: 34px;
  width: auto;
}
#preloader-logo .logo-lab {
  height: 66px;
  width: auto;
}

/* =====================================================================
   Extra motion（さんこうデザイン系の汎用テクを自前実装）
   ===================================================================== */

/* リピート訪問ではプリローダーを出さない */
html.preloaded #preloader {
  display: none !important;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* セクション背景の漂うブロブ（寂しさ対策／可読性を損なわない薄さ） */
.section,
.page-hero {
  overflow: hidden;
}
.section > .container,
.page-hero > .container {
  position: relative;
  z-index: 1;
}
.deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.deco-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  will-change: transform;
}
.deco-blob.db1 {
  width: 320px;
  height: 320px;
  top: -70px;
  left: -50px;
  background: radial-gradient(closest-side, rgba(22, 163, 74, 0.12), transparent);
  animation: floatXY 16s ease-in-out infinite;
}
.deco-blob.db2 {
  width: 280px;
  height: 280px;
  bottom: -70px;
  right: -40px;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.1), transparent);
  animation: floatXY 20s ease-in-out infinite reverse;
}
@keyframes floatXY {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(36px, 22px);
  }
  66% {
    transform: translate(-24px, 34px);
  }
}

/* ヒーローを漂うキーワード（薄く・邪魔しない） */
.hero-words {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-words span {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.05em;
  color: rgba(22, 163, 74, 0.07);
  will-change: transform;
  animation: wordDrift var(--d, 20s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.hero-words span.navy {
  color: rgba(14, 39, 71, 0.06);
}
.hero-words span:nth-child(even) {
  animation-direction: reverse;
}
@keyframes wordDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -28px, 0) rotate(2deg);
  }
}
@media (max-width: 820px) {
  .hero-words {
    display: none;
  }
}

/* スクロール進捗バー（上端） */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 70;
  background: var(--grad-brand);
  box-shadow: 0 0 10px var(--glow);
  transition: width 0.08s linear;
}

/* ヒーローの浮遊ブロブ */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero-blob.b1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(closest-side, rgba(22, 163, 74, 0.35), transparent);
  top: -70px;
  right: 6%;
  animation: floatY 9s ease-in-out infinite;
}
.hero-blob.b2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.3), transparent);
  bottom: -50px;
  left: -40px;
  animation: floatY 11s ease-in-out infinite reverse;
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(28px);
  }
}

/* プライマリボタンの光沢スイープ */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary > * {
  position: relative;
  z-index: 1;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: skewX(-18deg);
  z-index: 0;
}
.btn-primary:hover::after {
  animation: sweep 0.85s ease;
}
@keyframes sweep {
  to {
    left: 140%;
  }
}

/* グラデーション文字のゆるい光り */
.text-grad {
  background-size: 220% auto;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: 220% center;
  }
}

/* card-link の矢印を常時ほんのり誘導 */
@keyframes nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}
.card-link svg {
  animation: nudge 1.8s ease-in-out infinite;
}
.card:hover .card-link svg {
  animation: none;
}

/* eyebrow の線が伸びる */
.reveal .eyebrow::before,
.eyebrow.reveal::before {
  width: 0;
  transition: width 0.6s var(--ease) 0.2s;
}
.reveal.in .eyebrow::before,
.in .eyebrow::before,
.eyebrow.reveal.in::before {
  width: 22px;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-figure {
    order: -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-info {
    grid-column: 1 / -1;
  }
}
/* ナビは詰まり始める手前（960px）でハンバーガーへ切替え、リンクの折返しを防ぐ */
@media (max-width: 960px) {
  .nav-links,
  .nav-cta .btn {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}
@media (max-width: 820px) {
  .cols-4,
  .cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split.rev > :first-child {
    order: 0;
  }
  /* 縦並びになったら、横向きの進捗ラインは消す（崩れ防止） */
  .timeline .track,
  .timeline .progress {
    display: none;
  }
  .timeline {
    margin-top: 0;
  }
}
@media (max-width: 600px) {
  .cols-2,
  .cols-3,
  .cols-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-meta {
    gap: 1.4rem;
  }
}

/* =====================================================================
   Bento グリッド
   ===================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 1.25rem;
}
.bento-tile {
  display: flex;
  flex-direction: column;
  color: inherit;
}
.bento .b-a {
  grid-column: span 2;
  grid-row: span 2;
}
.bento .b-b,
.bento .b-c,
.bento .b-d,
.bento .b-e {
  grid-column: span 2;
}
.bento .b-a h3 {
  font-size: 1.5rem;
}
.bento .b-a .chips {
  margin-top: 1rem;
}
.bento-tile .card-link {
  margin-top: auto;
  padding-top: 1rem;
}
.bento-cta {
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-radius: var(--radius);
  background: var(--grad-brand);
  color: #fff;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 14px 30px -12px var(--glow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.bento-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -14px var(--glow);
}
.bento-cta strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #fff;
  line-height: 1.3;
}
.bento-cta-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}
.bento-cta .card-link {
  margin-top: 0.4rem;
  padding-top: 0;
}

/* 成果カウンタの帯 */
.stats-row {
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.stats-row .stat {
  padding: clamp(1.4rem, 3vw, 2.2rem) 1rem;
}
.stats-row .stat + .stat {
  border-left: 1px solid var(--border);
}
@media (max-width: 600px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
  .stats-row .stat + .stat {
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

/* =====================================================================
   ビフォー→アフター（スクロール物語）
   ===================================================================== */
#transform {
  padding-top: var(--section-y);
}
.transform-track {
  height: 300vh;
  position: relative;
}
.transform-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
}
.t-stage {
  position: relative;
  width: min(560px, 90vw);
  height: 360px;
}
.t-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(34px) scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.t-card.is-active {
  opacity: 1;
  transform: none;
}
.t-after {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.07), #fff);
  border-color: rgba(22, 163, 74, 0.3);
}
.t-tag {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: rgba(22, 163, 74, 0.1);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}
.t-emoji {
  font-size: 3.6rem;
  line-height: 1;
}
.t-card.is-active .t-emoji {
  animation: pop 0.55s var(--ease);
}
@keyframes pop {
  0% {
    transform: scale(0.5);
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
.t-card h3 {
  font-size: 1.5rem;
}
.t-card p {
  max-width: 42ch;
}
.t-progress {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}
.t-progress span {
  width: 30px;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  transition: background 0.3s;
}
.t-progress span.is-active {
  background: var(--grad-brand);
}
@media (max-width: 820px) {
  .transform-track {
    height: auto;
  }
  .transform-pin {
    position: static;
    height: auto;
    display: block;
    padding-bottom: var(--section-y);
  }
  .t-stage {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .t-card {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
  }
  .t-progress {
    display: none;
  }
}
/* 低モーション等で縦並びに（JSが .static を付与） */
#transform.static .transform-track {
  height: auto;
}
#transform.static .transform-pin {
  position: static;
  height: auto;
  display: block;
  padding-bottom: var(--section-y);
}
#transform.static .t-stage {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#transform.static .t-card {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: none;
}
#transform.static .t-progress {
  display: none;
}
@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .bento .b-a {
    grid-column: span 2;
    grid-row: span 1;
  }
}
@media (max-width: 600px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento > * {
    grid-column: span 1 !important;
    grid-row: auto !important;
  }
}

/* =====================================================================
   手触り（ホバー／押し心地／アイコン）
   ===================================================================== */
.btn:active {
  transform: translateY(1px) scale(0.985);
}
.card-icon {
  transition: transform 0.35s var(--ease);
}
.card:hover .card-icon {
  transform: translateY(-3px) rotate(-5deg) scale(1.08);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transition: left 0.25s var(--ease), right 0.25s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  left: 0;
  right: 0;
}

/* =====================================================================
   生成イラスト／アイコンの当て込み
   ===================================================================== */

/* 画像アイコン（約束・安心・強み・サービス概要・Bento）：緑の箱を外して絵柄を主役に */
.card-icon.is-img {
  width: 76px;
  height: 76px;
  background: none;
  border: none;
  border-radius: 0;
  margin-bottom: 1rem;
}
.card-icon.is-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* 画像アイコンはホバーで傾けず、やさしく持ち上げるだけ */
.card:hover .card-icon.is-img {
  transform: translateY(-4px) scale(1.06);
}
/* サービス詳細の見出しアイコンは少し大きめ */
.domain-head .card-icon.is-img {
  width: 92px;
  height: 92px;
  margin-bottom: 0;
}

/* カード上部のイラスト（実績カードなどのサムネ） */
.card-media {
  margin: calc(-1 * clamp(1.4rem, 2.5vw, 2rem))
    calc(-1 * clamp(1.4rem, 2.5vw, 2rem)) 1.3rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(160deg, #fff, var(--bg-2));
  border-bottom: 1px solid var(--border);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card-media img {
  transform: scale(1.05);
}

/* ヒーロー（トップ）をイラストにする場合の見せ方 */
.hero-figure.is-illust {
  background: linear-gradient(160deg, #ffffff 0%, #eef3f9 100%);
  aspect-ratio: 4 / 3.3;
}
.hero-figure.is-illust::after {
  display: none;
}
.hero-figure.is-illust img {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  object-fit: contain;
}

/* ヒーロー（トップ）をモーションアニメ(iframe)にする場合の見せ方
   fareast-lab-hero.html は 1280×1056 = 4/3.3 なので枠にぴったり収まる */
.hero-figure.is-embed {
  background: #f4f8fc;
  /* 気持ち縦にも広げる（4/3.3 → 4/3.4）。canvasは4/3.3なので上下にごく薄いクリーム余白が出るが背景同色で目立たない */
  aspect-ratio: 4 / 3.4;
}
.hero-figure.is-embed::after {
  display: none; /* 下部を暗くするグラデは不要 */
}
.hero-figure.is-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* 下層ページのヒーロー（テキスト＋イラストの2カラム） */
.ph-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.ph-figure {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ffffff 0%, #eef3f9 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  padding: 6%;
  overflow: hidden;
}
.ph-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 820px) {
  .ph-grid {
    grid-template-columns: 1fr;
  }
  .ph-figure {
    aspect-ratio: 16 / 9;
    margin-top: 1.5rem;
  }
}

/* 物語3コマのイラスト（絵文字から差し替え） */
.t-figure {
  width: clamp(116px, 22vw, 148px);
  height: auto;
}
.t-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.t-card.is-active .t-figure {
  animation: pop 0.55s var(--ease);
}

/* =====================================================================
   Premium 仕上げ（quiet luxury：余白・質感・微動作の底上げ）
   ===================================================================== */

/* --- ボタン：内側ハイライトと上質な影で立体感を上げる --- */
.btn-primary {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 12px 30px -12px var(--glow);
}
.btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 20px 40px -14px var(--glow);
}
.btn-ghost {
  box-shadow: var(--shadow-sm);
}
.btn-lg {
  --pad-y: 1.1rem;
  --pad-x: 2.1rem;
  letter-spacing: 0.02em;
}

/* --- eyebrow：ドット＋大きめのトラッキングで上品に --- */
.eyebrow {
  letter-spacing: 0.22em;
}

/* --- 見出し階層：セクション見出しに少しゆとりを --- */
.section-head h2 {
  letter-spacing: -0.025em;
}
.section-head p {
  color: var(--text-mut);
  max-width: 46ch;
  margin-inline: auto;
}
.section-head:not(.center) p {
  margin-inline: 0;
}

/* --- カード：ホバー時に上端へブランドのアクセント線、より深い浮遊 --- */
.card {
  transition: transform 0.45s var(--ease-out), border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
}
.card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

/* --- ヒーロー図版：内側に細いリングを重ねて“額装”感 --- */
.hero-figure,
.ph-figure {
  outline: 1px solid rgba(14, 39, 71, 0.05);
  outline-offset: -1px;
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  pointer-events: none;
}
.hero-badge {
  border: 1px solid rgba(255, 255, 255, 0.7);
}

/* --- ヘッダー：スクロール時はより薄く洗練された硝子に --- */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(14, 39, 71, 0.06), var(--shadow-sm);
}
.nav-links a {
  letter-spacing: 0.02em;
}

/* --- 表：角丸・余白・行の質感を上げる --- */
.cap-table,
.info-table {
  font-feature-settings: "palt" 1;
}
.cap-table {
  box-shadow: var(--shadow-sm);
}
.cap-table th,
.cap-table td {
  padding: 1.05rem 1.15rem;
}
.cap-table thead th {
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  letter-spacing: 0.04em;
}

/* --- CTAバンド：奥行きのあるネイビー＋細い縁 --- */
.cta-band {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(
      900px 360px at 80% -30%,
      rgba(34, 197, 94, 0.28),
      transparent 60%
    ),
    radial-gradient(700px 300px at 0% 120%, rgba(20, 58, 102, 0.5), transparent 60%),
    var(--navy);
}

/* --- セクション見出しと本文のリズムを少しゆったり --- */
:root {
  --section-y: clamp(5rem, 9.5vw, 9rem);
}

/* =====================================================================
   スマホ最適化（余白・文字サイズ・図版の見せ方）
   ===================================================================== */
@media (max-width: 600px) {
  :root {
    --fs-h2: clamp(1.55rem, 6.4vw, 2rem);
    --fs-h3: 1.12rem;
  }
  .hero {
    padding-top: clamp(6.5rem, 22vw, 8rem);
  }
  .hero h1 {
    font-size: clamp(2.15rem, 11vw, 2.9rem);
  }
  .hero-figure.is-illust {
    aspect-ratio: 4 / 3;
  }
  .section-head {
    margin-bottom: 2rem;
  }
  /* カードのサムネは画面端まで伸ばさず角丸を保つ */
  .card {
    padding: 1.3rem;
  }
  .card-media {
    margin: -1.3rem -1.3rem 1.1rem;
  }
  .btn-lg {
    width: 100%;
  }
  .hero-actions .btn,
  .cta-band .hero-actions .btn {
    width: 100%;
  }
}

/* =====================================================================
   Reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
