/* =========================================================
   Ring TOP — Light & Blue Futuristic Theme (v3)
   - Scope: body.theme-futuristic のみ
   - 白 + 青（#1f5e95 系）+ 幾何学モチーフ（ブループリント・グリッド・ドット）
   - 既存 index.html クラス名に整合
   ========================================================= */

/* ===== Base reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body.theme-futuristic { overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }

body.theme-futuristic {
  /* === Color tokens === */
  --bg: #ffffff;
  --bg-soft: #f4f8fd;
  --bg-mute: #eaf2fb;
  --ink: #0f2540;
  --ink-soft: #3a516e;
  --ink-mute: #6b7e96;
  --line: #d9e6f4;
  --line-soft: #ebf2fa;

  --brand: #1f5e95;
  --brand-2: #2a7fc2;
  --brand-3: #4aa8e0;
  --brand-deep: #143c63;
  --accent: #00b8d9;       /* シアン */
  --accent-2: #5b8def;     /* 明るい青紫 */
  --grad: linear-gradient(135deg, #1f5e95 0%, #2a7fc2 45%, #00b8d9 100%);
  --grad-soft: linear-gradient(135deg, rgba(31,94,149,.08), rgba(0,184,217,.08));
  --grad-text: linear-gradient(90deg, #143c63, #1f5e95 40%, #00b8d9);

  --shadow-sm: 0 4px 14px rgba(20, 60, 99, .06);
  --shadow-md: 0 10px 30px rgba(20, 60, 99, .08);
  --shadow-lg: 0 24px 60px rgba(20, 60, 99, .12);
  --shadow-brand: 0 18px 40px rgba(31, 94, 149, .25);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: clip;
}

/* ===== 全体に敷く幾何学背景（ブループリント風） ===== */
body.theme-futuristic::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(0,184,217,.10), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(31,94,149,.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  z-index: -2;
}
body.theme-futuristic::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31,94,149,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,94,149,.05) 1px, transparent 1px),
    radial-gradient(rgba(31,94,149,.10) 1px, transparent 1.4px);
  background-size: 64px 64px, 64px 64px, 24px 24px;
  background-position: 0 0, 0 0, 0 0;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 80%);
  z-index: -1;
}

/* ===== Typography ===== */
body.theme-futuristic h1,
body.theme-futuristic h2,
body.theme-futuristic h3,
body.theme-futuristic h4 {
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.3;
  margin: 0;
}
body.theme-futuristic p { margin: 0; color: var(--ink-soft); }
body.theme-futuristic a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
body.theme-futuristic a:hover { color: var(--accent); }

/* ===== Container ===== */
body.theme-futuristic .container { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; }
@media (max-width: 640px) {
  body.theme-futuristic .container { padding: 0 18px; }
}
body.theme-futuristic .container.narrow { max-width: 920px; }

/* ===== Skip link ===== */
body.theme-futuristic .skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000;
}
body.theme-futuristic .skip-link:focus { left: 16px; }

/* ===== Header ===== */
body.theme-futuristic .site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255,255,255,.80);
  border-bottom: 1px solid var(--line-soft);
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
body.theme-futuristic .site-header.is-shrink {
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-sm);
}
body.theme-futuristic .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}
body.theme-futuristic .site-header .logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; color: var(--ink); font-size: 18px; letter-spacing: .02em;
  text-decoration: none;
}
body.theme-futuristic .site-header .logo-mark {
  width: 28px; height: 28px; object-fit: contain; display: inline-block;
}
body.theme-futuristic .site-header .global-nav {
  display: flex; align-items: center; gap: 26px;
}
body.theme-futuristic .site-header .global-nav a {
  color: var(--ink); font-weight: 600; font-size: 14px; padding: 10px 0; position: relative;
}
body.theme-futuristic .site-header .global-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px;
  background: var(--grad); transition: right .3s ease;
}
body.theme-futuristic .site-header .global-nav a:hover::after { right: 0; }
body.theme-futuristic .site-header .global-nav a.header-cta {
  color: #fff; padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--grad);
  box-shadow: var(--shadow-brand);
}
body.theme-futuristic .site-header .global-nav a.header-cta::after { display: none; }
body.theme-futuristic .site-header .global-nav a.header-cta:hover { transform: translateY(-1px); }
body.theme-futuristic .site-header .menu-toggle { display: none; background: transparent; border: 0; width: 36px; height: 36px; flex-direction: column; gap: 4px; align-items: center; justify-content: center; cursor: pointer; }
body.theme-futuristic .site-header .menu-toggle__line { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 880px) {
  body.theme-futuristic .site-header .menu-toggle { display: inline-flex; }
  body.theme-futuristic .site-header .global-nav {
    position: fixed; top: 64px; right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  body.theme-futuristic .site-header .global-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  body.theme-futuristic .site-header .global-nav a { padding: 10px 12px; border-radius: 8px; }
  body.theme-futuristic .site-header .global-nav a:hover { background: var(--bg-soft); }
}

/* ===== HERO ===== */
body.theme-futuristic .hero {
  position: relative;
  min-height: 92vh;
  padding: 140px 0 100px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
body.theme-futuristic .hero > .container { width: 100%; position: relative; z-index: 2; }

/* ヒーロー幾何学装飾 */
body.theme-futuristic .hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 80% 25%, rgba(0,184,217,.18), transparent 60%),
    radial-gradient(600px 500px at 15% 70%, rgba(31,94,149,.12), transparent 60%);
  filter: blur(10px);
  z-index: 0;
}
body.theme-futuristic .hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31,94,149,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,94,149,.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 0%, transparent 75%);
  z-index: 0;
}

/* hero content layout */
body.theme-futuristic .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
body.theme-futuristic .hero-main { min-width: 0; position: relative; }

/* 装飾用：H1の左にブループリントマーク */
body.theme-futuristic .hero-main::before {
  content: "";
  position: absolute; left: -28px; top: 8px; width: 8px; height: 84px;
  background: var(--grad);
  border-radius: 4px;
  opacity: .9;
  box-shadow: 0 0 24px rgba(0,184,217,.4);
}

body.theme-futuristic .hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(31,94,149,.2);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  font-family: "JetBrains Mono", "Menlo", monospace;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  margin: 0;
}
body.theme-futuristic .hero .eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,184,217,.18);
}

body.theme-futuristic .hero h1 {
  margin-top: 24px;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--ink);
  word-break: keep-all; overflow-wrap: anywhere;
}
body.theme-futuristic .hero h1 .accent-grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

body.theme-futuristic .hero-text {
  margin-top: 22px;
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--ink-soft);
  max-width: 56ch;
}

body.theme-futuristic .hero-points {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
body.theme-futuristic .hero-points li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft); font-weight: 600;
  box-shadow: var(--shadow-sm);
}
body.theme-futuristic .hero-points li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

body.theme-futuristic .hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 32px;
}
body.theme-futuristic .cases-actions {
  justify-content: center;
  margin-top: 32px;
}

/* Buttons */
body.theme-futuristic .btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px;
  cursor: pointer; border: 0;
  transition: transform .2s ease, box-shadow .25s ease;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
body.theme-futuristic .btn::after {
  content: "→"; transition: transform .25s ease;
}
body.theme-futuristic .btn:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(31,94,149,.3); }
body.theme-futuristic .btn:hover::after { transform: translateX(4px); }
body.theme-futuristic .btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s ease;
  z-index: 0;
}
body.theme-futuristic .btn:hover::before { transform: translateX(120%); }
body.theme-futuristic .btn-ghost {
  background: rgba(255,255,255,.92);
  color: var(--brand-deep);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
body.theme-futuristic .btn-ghost:hover { color: var(--brand); border-color: var(--brand); }

/* Hero side: 情報カード（ブループリント風） */
body.theme-futuristic .hero-aside {
  position: relative;
  padding: 22px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-family: "JetBrains Mono", "Menlo", monospace;
  font-size: 13px;
  isolation: isolate;
  overflow: hidden;
}
body.theme-futuristic .hero-aside::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(0,184,217,.16), transparent 60%),
    radial-gradient(300px 200px at 0% 100%, rgba(31,94,149,.10), transparent 60%);
  z-index: -1;
}
body.theme-futuristic .hero-aside::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31,94,149,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,94,149,.05) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: -1;
}
body.theme-futuristic .hero-aside-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
  font-size: 11px; letter-spacing: .14em; color: var(--brand); font-weight: 700;
  text-transform: uppercase;
}
body.theme-futuristic .hero-aside-dots { display: inline-flex; gap: 6px; }
body.theme-futuristic .hero-aside-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-3); opacity: .55;
}
body.theme-futuristic .hero-aside-dots span:nth-child(2) { background: var(--accent); opacity: .85; }
body.theme-futuristic .hero-aside-dots span:nth-child(3) { background: var(--brand); }
body.theme-futuristic .hero-aside-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--line-soft);
}
body.theme-futuristic .hero-aside-row:last-child { border-bottom: 0; }
body.theme-futuristic .hero-aside-row .k { color: var(--ink-mute); font-weight: 600; }
body.theme-futuristic .hero-aside-row .v { color: var(--ink); }
body.theme-futuristic .hero-aside-row .v.brand { color: var(--brand); font-weight: 700; }

/* Hero stats */
body.theme-futuristic .hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 36px;
  width: min(100%, 900px);
  margin: 56px auto 0;
  padding-top: 32px; border-top: 1px solid var(--line);
  justify-items: center;
}
body.theme-futuristic .hero-stat {
  text-align: center;
  width: 100%;
}
body.theme-futuristic .hero-stat .v {
  font-weight: 800; font-size: clamp(28px, 3vw, 38px);
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.1;
}
body.theme-futuristic .hero-stat .k {
  font-size: 12px; color: var(--ink-mute); margin-top: 6px; font-weight: 600;
}

/* SCROLL hint */
body.theme-futuristic .hero-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .35em; color: var(--ink-mute); text-transform: uppercase; font-weight: 700;
  display: inline-flex; align-items: center; gap: 12px;
}
body.theme-futuristic .hero-scroll-hint::before,
body.theme-futuristic .hero-scroll-hint::after {
  content: ""; width: 32px; height: 1px; background: var(--line);
}

/* ===== Marquee strip ===== */
body.theme-futuristic .marquee-strip {
  position: relative;
  padding: 18px 0;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand) 50%, var(--brand-2));
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.15);
}
body.theme-futuristic .marquee-track {
  display: inline-flex; gap: 48px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
body.theme-futuristic .marquee-track span {
  font-family: "JetBrains Mono", monospace;
  color: rgba(255,255,255,.85);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  position: relative;
  padding-left: 22px;
}
body.theme-futuristic .marquee-track span::before {
  content: "◇"; position: absolute; left: 0; top: 0; color: var(--accent); opacity: .9;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Section base ===== */
body.theme-futuristic .section { position: relative; padding: 110px 0; }
body.theme-futuristic section[data-index]::before {
  content: attr(data-index);
  position: absolute; right: 28px; top: 32px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .25em; color: var(--brand);
  opacity: .55;
  font-weight: 700;
}
body.theme-futuristic .section.alt-bg { background: var(--bg-soft); }

/* Section heading */
body.theme-futuristic .section-heading {
  max-width: 880px;
  margin: 0 auto 56px;
  position: relative;
}
body.theme-futuristic .section-heading[data-eyebrow]::before {
  content: attr(data-eyebrow);
  display: inline-flex; align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 14px;
}
body.theme-futuristic .section-heading[data-eyebrow]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: block;
  width: 64px;
  height: 3px;
  background: var(--grad);
  border-radius: 2px;
}
body.theme-futuristic .section-heading h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
}
body.theme-futuristic .section-heading p,
body.theme-futuristic .issues-subtitle,
body.theme-futuristic .services-subtitle,
body.theme-futuristic .cases-subtitle,
body.theme-futuristic .voices-subtitle,
body.theme-futuristic .related-subtitle,
body.theme-futuristic .flow-subtitle {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 60ch;
  font-size: 15px;
}

/* ===== Generic Card ===== */
body.theme-futuristic .card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
  isolation: isolate;
}
body.theme-futuristic .card::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(31,94,149,.0), rgba(0,184,217,.5));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
body.theme-futuristic .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(31,94,149,.25);
}
body.theme-futuristic .card:hover::before { opacity: 1; }
/* Spotlight (JS) */
body.theme-futuristic .card[data-spot] { --x: 50%; --y: 50%; }
body.theme-futuristic .card[data-spot]::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(220px circle at var(--x) var(--y), rgba(0,184,217,.12), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
body.theme-futuristic .card[data-spot]:hover::after { opacity: 1; }

/* ===== Grid utilities ===== */
body.theme-futuristic .grid { display: grid; gap: 24px; }
body.theme-futuristic .grid.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.theme-futuristic .grid.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.theme-futuristic .grid.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ===== Issues ===== */
body.theme-futuristic .issue-card { padding: 28px; }
body.theme-futuristic .issue-card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  border: 1px solid rgba(31,94,149,.18);
  color: var(--brand);
  margin-bottom: 18px;
}
body.theme-futuristic .issue-card__icon-svg {
  width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6;
}
body.theme-futuristic .issue-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 10px; }
body.theme-futuristic .issue-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ===== Banner Image (画像セクション 上下フェード) ===== */
body.theme-futuristic .banner-image {
  position: relative;
  height: clamp(220px, 28vw, 360px);
  overflow: hidden;
  isolation: isolate;
}
body.theme-futuristic .banner-image > * { width: 100%; height: 100%; }
body.theme-futuristic .banner-image img,
body.theme-futuristic .banner-image picture,
body.theme-futuristic .banner-image picture img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.02);
}
body.theme-futuristic .banner-image::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0) 18%, rgba(255,255,255,0) 82%, #ffffff 100%),
    linear-gradient(120deg, rgba(31,94,149,.30), rgba(0,184,217,.05) 60%, transparent);
  z-index: 1;
}
body.theme-futuristic .banner-image::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.20) 1px, transparent 1px);
  background-size: 80px 80px;
  mix-blend-mode: overlay;
  opacity: .55;
}

/* ===== Services ===== */
body.theme-futuristic .service-card { padding: 28px; }
body.theme-futuristic .service-card-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
body.theme-futuristic .service-card-label {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; padding: 5px 10px; border-radius: var(--radius-pill);
  background: var(--grad); font-weight: 700;
}
body.theme-futuristic .service-card-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--brand);
}
body.theme-futuristic .service-card-mark-svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
body.theme-futuristic .service-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 10px; }
body.theme-futuristic .service-card p { color: var(--ink-soft); font-size: 14.5px; }

/* ===== Reasons ===== */
body.theme-futuristic .reason-card { padding: 32px; }
body.theme-futuristic .reason-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--bg-soft); color: var(--brand); border: 1px solid var(--line);
  font-size: 12px; font-weight: 700;
  margin-bottom: 18px;
}
body.theme-futuristic .reason-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(31,94,149,.3);
}
body.theme-futuristic .reason-card h3 { font-size: 22px; color: var(--ink); margin-bottom: 12px; }
body.theme-futuristic .reason-card p { color: var(--ink-soft); font-size: 15px; }

/* ===== Flow ===== */
body.theme-futuristic .flow-list-v2 {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px;
  position: relative;
}
body.theme-futuristic .flow-list-v2::before {
  content: ""; position: absolute;
  left: 8%; right: 8%; top: 70px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 16px);
  opacity: .35;
  z-index: 0;
}
body.theme-futuristic .flow-item {
  position: relative; z-index: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
body.theme-futuristic .flow-item:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(31,94,149,.25);
}
body.theme-futuristic .flow-card-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
body.theme-futuristic .flow-step-badge {
  font-family: "JetBrains Mono", monospace; font-size: 14px; font-weight: 800;
  color: #fff; padding: 6px 10px; border-radius: 8px; background: var(--grad);
  box-shadow: var(--shadow-brand);
}
body.theme-futuristic .flow-icon-circle {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--brand);
}
body.theme-futuristic .flow-icon-svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
body.theme-futuristic .flow-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
body.theme-futuristic .flow-desc { color: var(--ink-soft); font-size: 13.5px; }

/* ===== Cases ===== */
body.theme-futuristic .case-card {
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
body.theme-futuristic .case-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(31,94,149,.25);
}
body.theme-futuristic .case-card > img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform .6s ease;
}
body.theme-futuristic .case-card:hover > img { transform: scale(1.06); }
body.theme-futuristic .case-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 14px; }
body.theme-futuristic .case-body h3 { font-size: 17px; color: var(--ink); }
body.theme-futuristic .case-body .case-company { font-size: 13px; color: var(--brand); font-weight: 600; margin: 0; }
body.theme-futuristic .case-body hr { border: 0; border-top: 1px solid var(--line-soft); margin: 4px 0; }
body.theme-futuristic .case-definition-list { margin: 0; display: grid; gap: 10px; }
body.theme-futuristic .case-definition-list dt {
  display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 6px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--brand); font-weight: 700;
  margin-bottom: 4px;
}
body.theme-futuristic .case-definition-list dd { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }
body.theme-futuristic .case-slider-dots { display: none; }

/* ===== Voices (quote cards) ===== */
body.theme-futuristic .quote { padding: 30px; }
body.theme-futuristic .quote h3 { font-size: 16px; color: var(--ink); margin-bottom: 4px; }
body.theme-futuristic .quote .quote-role { font-size: 12px; color: var(--ink-mute); margin: 0 0 14px; }
body.theme-futuristic .quote hr { border: 0; border-top: 1px solid var(--line-soft); margin: 6px 0 14px; }
body.theme-futuristic .quote p {
  position: relative; padding: 14px 16px;
  background: var(--bg-soft); border-left: 3px solid var(--brand);
  border-radius: 8px; color: var(--ink-soft); font-size: 14px; line-height: 1.85;
}
body.theme-futuristic .quote span {
  display: inline-block; margin-top: 14px; font-size: 12px; padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); color: var(--brand); background: #fff; font-weight: 600;
}
body.theme-futuristic .voices-slider-dots { display: none; }

/* ===== FAQ ===== */
body.theme-futuristic .faq-list { display: grid; gap: 12px; margin-top: 16px; }
body.theme-futuristic .faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .25s ease, box-shadow .25s ease;
}
body.theme-futuristic .faq-list details[open] { border-color: rgba(31,94,149,.35); box-shadow: var(--shadow-sm); }
body.theme-futuristic .faq-list summary {
  list-style: none; cursor: pointer;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-weight: 700; color: var(--ink); font-size: 15px;
}
body.theme-futuristic .faq-list summary::-webkit-details-marker { display: none; }
body.theme-futuristic .faq-list summary::after {
  content: "+";
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; flex: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
body.theme-futuristic .faq-list details[open] summary::after {
  background: var(--grad); color: #fff; transform: rotate(45deg);
}
body.theme-futuristic .faq-answer { padding: 0 24px 22px; color: var(--ink-soft); font-size: 14.5px; }
body.theme-futuristic .faq-answer p { margin: 0 0 10px; }

/* ===== Related ===== */
body.theme-futuristic .related-card {
  display: block; padding: 26px 28px;
  position: relative;
}
body.theme-futuristic .related-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
body.theme-futuristic .related-card p { color: var(--ink-soft); font-size: 14px; margin-bottom: 14px; }
body.theme-futuristic .related-card span {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand); font-weight: 700; font-size: 13px;
}
body.theme-futuristic .related-card span::after {
  content: "→"; transition: transform .25s ease;
}
body.theme-futuristic .related-card:hover span::after { transform: translateX(4px); }

/* ===== CTA / Contact ===== */
body.theme-futuristic .section.cta {
  position: relative; padding: 110px 0; overflow: hidden;
}
body.theme-futuristic .cta-box {
  position: relative; padding: 56px clamp(24px, 4vw, 56px);
  background: linear-gradient(135deg, #ffffff, #f4f8fd);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  isolation: isolate;
  overflow: hidden;
}
body.theme-futuristic .cta-box::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(0,184,217,.18), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(31,94,149,.18), transparent 60%);
  z-index: -1;
}
body.theme-futuristic .cta-box::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31,94,149,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,94,149,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}
body.theme-futuristic .cta-box h2 {
  font-size: clamp(26px, 3vw, 38px); color: var(--ink); margin-bottom: 14px; text-align: center;
}
body.theme-futuristic .cta-box .cta-lead { color: var(--ink-soft); margin-bottom: 22px; text-align: center; }
body.theme-futuristic .cta-points {
  list-style: none; padding: 0; margin: 0 auto 28px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
body.theme-futuristic .cta-points li {
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--line);
  color: var(--brand); font-size: 13px; font-weight: 700;
}

/* ===== Form ===== */
body.theme-futuristic .contact-form {
  margin-top: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
body.theme-futuristic .form-note { font-size: 13px; color: var(--ink-mute); margin-bottom: 14px; }
body.theme-futuristic .contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body.theme-futuristic .form-field { display: flex; flex-direction: column; gap: 6px; }
body.theme-futuristic .form-field > :first-child { font-size: 13px; font-weight: 700; color: var(--ink); }
body.theme-futuristic .contact-input,
body.theme-futuristic .contact-textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px; color: var(--ink);
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.theme-futuristic .contact-input:focus,
body.theme-futuristic .contact-textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(31,94,149,.12);
}
body.theme-futuristic .privacy-note { font-size: 12px; color: var(--ink-mute); margin: 14px 0; }
body.theme-futuristic .hp-field { position: absolute; left: -9999px; }
body.theme-futuristic .contact-submit-btn { margin-top: 6px; }
body.theme-futuristic .form-status { margin-top: 10px; font-size: 13px; }

/* contact-form full-width fields */
body.theme-futuristic .contact-form > .form-field { margin-top: 16px; }

/* ===== Reveal animation ===== */
body.theme-futuristic [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
body.theme-futuristic [data-reveal].is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  body.theme-futuristic .grid.cards-4 { grid-template-columns: repeat(2, 1fr); }
  body.theme-futuristic .flow-list-v2 { grid-template-columns: repeat(2, 1fr); }
  body.theme-futuristic .flow-list-v2::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-futuristic *,
  body.theme-futuristic *::before,
  body.theme-futuristic *::after {
    animation: none !important; transition: none !important;
  }
}


/* ===== Footer ===== */
body.theme-futuristic .site-footer {
  position: relative;
  background: linear-gradient(180deg, #f4f8fd, #ffffff);
  border-top: 1px solid var(--line);
  padding: 60px 0 28px;
  margin-top: 40px;
}
body.theme-futuristic .site-footer::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31,94,149,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,94,149,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 80%);
  pointer-events: none;
}
body.theme-futuristic .site-footer > .container { position: relative; }
body.theme-futuristic .footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start;
}
body.theme-futuristic .footer-company { display: flex; flex-direction: column; gap: 8px; }
body.theme-futuristic .footer-company-logo { width: 36px; height: auto; }
body.theme-futuristic .footer-company-name { font-size: 16px; font-weight: 800; color: var(--ink); margin: 4px 0 0; }
body.theme-futuristic .footer-company-desc { font-size: 13px; color: var(--ink-mute); margin: 0; }
body.theme-futuristic .footer-contact { font-style: normal; text-align: right; font-size: 13px; color: var(--ink-soft); line-height: 1.9; }
body.theme-futuristic .footer-divider { border: 0; border-top: 1px solid var(--line-soft); margin: 32px 0; }
body.theme-futuristic .footer-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
body.theme-futuristic .footer-links h3 {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
  margin: 0 0 14px;
  font-weight: 700;
}
body.theme-futuristic .footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
body.theme-futuristic .footer-links a { color: var(--ink-soft); font-size: 13.5px; }
body.theme-futuristic .footer-links a:hover { color: var(--brand); }
body.theme-futuristic .copyright {
  font-size: 12px; color: var(--ink-mute); padding-top: 24px; margin: 24px 0 0; text-align: center;
  border-top: 1px solid var(--line-soft);
}
@media (max-width: 880px) {
  body.theme-futuristic .footer-top,
  body.theme-futuristic .footer-links { grid-template-columns: 1fr; }
  body.theme-futuristic .footer-contact { text-align: left; }
}


/* ===========================================================
   SP / Tablet Responsive (拡張版)
   =========================================================== */

/* タブレット (881px〜1024px の汎用調整) */
@media (max-width: 1024px) {
  body.theme-futuristic .section { padding: 96px 0; }
  body.theme-futuristic section[data-index]::before { right: 20px; top: 24px; font-size: 10px; }
  body.theme-futuristic .hero-content { gap: 40px; }
}

/* タブレット縦〜SP共通 (max-width: 880px) */
@media (max-width: 880px) {
  body.theme-futuristic .section { padding: 72px 0; }

  /* ===== ヘッダー ===== */
  body.theme-futuristic .header-inner { padding: 12px 0; gap: 12px; }
  body.theme-futuristic .site-header .logo { font-size: 16px; margin-left: 6px; }
  body.theme-futuristic .site-header .logo-mark { width: 26px; height: 26px; }

  /* ===== ヒーロー ===== */
  body.theme-futuristic .hero { padding: 110px 0 64px; min-height: auto; }
  body.theme-futuristic .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  body.theme-futuristic .hero-main::before { display: none; }
  body.theme-futuristic .hero h1 {
    font-size: clamp(28px, 7.6vw, 40px);
    margin-top: 18px;
    line-height: 1.28;
    word-break: keep-all; overflow-wrap: anywhere;
  }
  body.theme-futuristic .hero-text { margin-top: 16px; font-size: 14.5px; line-height: 1.85; max-width: none; }
  body.theme-futuristic .hero-text br { display: none; }
  body.theme-futuristic .hero h1 br { display: inline; }
  body.theme-futuristic .hero .eyebrow {
    font-size: 10.5px; padding: 7px 12px; letter-spacing: .12em;
    white-space: normal;
  }
  body.theme-futuristic .hero-points { gap: 8px; margin-top: 20px; }
  body.theme-futuristic .hero-points li { font-size: 12px; padding: 6px 12px; }
  body.theme-futuristic .hero-actions { gap: 10px; margin-top: 24px; }
  body.theme-futuristic .hero-actions .btn { padding: 13px 22px; font-size: 14px; }
  body.theme-futuristic .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 36px; padding-top: 24px;
  }
  body.theme-futuristic .hero-stat .v { font-size: 22px; }
  body.theme-futuristic .hero-stat .k { font-size: 10.5px; line-height: 1.4; }
  body.theme-futuristic .hero-scroll-hint { display: none; }
  body.theme-futuristic .hero::after { background-size: 56px 56px; }

  /* ===== セクション見出し ===== */
  body.theme-futuristic section[data-index]::before { right: 18px; top: 18px; font-size: 10px; }
  body.theme-futuristic .section-heading { margin: 0 0 36px; }
  body.theme-futuristic .section-heading h2 { font-size: clamp(22px, 5.8vw, 30px); }
  body.theme-futuristic .section-heading p,
  body.theme-futuristic .issues-subtitle,
  body.theme-futuristic .services-subtitle,
  body.theme-futuristic .cases-subtitle,
  body.theme-futuristic .voices-subtitle,
  body.theme-futuristic .related-subtitle,
  body.theme-futuristic .flow-subtitle { font-size: 13.5px; line-height: 1.8; max-width: none; }
  body.theme-futuristic .section-heading[data-eyebrow]::after { display: none; }

  /* ===== Grid ===== */
  body.theme-futuristic .grid { gap: 16px; }
  body.theme-futuristic .grid.cards-2,
  body.theme-futuristic .grid.cards-3,
  body.theme-futuristic .grid.cards-4 { grid-template-columns: 1fr; }

  /* ===== Card ===== */
  body.theme-futuristic .card { padding: 22px; border-radius: 16px; }
  body.theme-futuristic .issue-card { padding: 22px; }
  body.theme-futuristic .issue-card h3 { font-size: 16.5px; }
  body.theme-futuristic .issue-card p { font-size: 13.5px; line-height: 1.8; }
  body.theme-futuristic .service-card { padding: 22px; }
  body.theme-futuristic .service-card h3 { font-size: 16.5px; }
  body.theme-futuristic .service-card p { font-size: 13.5px; line-height: 1.8; }
  body.theme-futuristic .reason-card { padding: 24px; }
  body.theme-futuristic .reason-card h3 { font-size: 18px; }
  body.theme-futuristic .reason-card p { font-size: 14px; line-height: 1.85; }

  /* ===== Banner Image ===== */
  body.theme-futuristic .banner-image { height: clamp(160px, 36vw, 220px); }

  /* ===== Flow ===== */
  body.theme-futuristic .flow-list-v2 { grid-template-columns: 1fr; gap: 14px; }
  body.theme-futuristic .flow-list-v2::before { display: none; }
  body.theme-futuristic .flow-item { padding: 18px 18px; }
  body.theme-futuristic .flow-title { font-size: 15px; }
  body.theme-futuristic .flow-desc { font-size: 13.5px; line-height: 1.85; }

  /* ===== Cases ===== */
  body.theme-futuristic .case-card > img { height: 200px; }
  body.theme-futuristic .case-body { padding: 20px 22px 24px; gap: 12px; }
  body.theme-futuristic .case-body h3 { font-size: 16px; }
  body.theme-futuristic .case-definition-list dd { font-size: 13.5px; line-height: 1.8; }

  /* ===== Voices ===== */
  body.theme-futuristic .quote { padding: 24px; }
  body.theme-futuristic .quote p { padding: 14px; font-size: 13.5px; line-height: 1.85; }

  /* ===== FAQ ===== */
  body.theme-futuristic .faq-list summary { padding: 16px 18px; font-size: 14px; gap: 12px; }
  body.theme-futuristic .faq-list summary::after { width: 28px; height: 28px; font-size: 16px; }
  body.theme-futuristic .faq-answer { padding: 0 18px 18px; font-size: 13.5px; line-height: 1.85; }

  /* ===== Related ===== */
  body.theme-futuristic .related-card { padding: 22px; }
  body.theme-futuristic .related-card h3 { font-size: 16.5px; }
  body.theme-futuristic .related-card p { font-size: 13.5px; line-height: 1.85; }

  /* ===== CTA ===== */
  body.theme-futuristic .section.cta { padding: 72px 0; }
  body.theme-futuristic .cta-box { padding: 36px 22px; border-radius: 18px; }
  body.theme-futuristic .cta-box h2 { font-size: clamp(22px, 5.4vw, 28px); }
  body.theme-futuristic .cta-box .cta-lead { font-size: 13.5px; line-height: 1.85; }

  /* ===== Contact form ===== */
  body.theme-futuristic .contact-form-grid { grid-template-columns: 1fr; gap: 14px; }
  body.theme-futuristic .contact-form > .form-field { margin-top: 12px; }
  body.theme-futuristic .contact-input,
  body.theme-futuristic .contact-textarea { padding: 12px 14px; font-size: 16px; /* iOSズーム抑止 */ }

  /* ===== Marquee ===== */
  body.theme-futuristic .marquee-track { gap: 32px; }
  body.theme-futuristic .marquee-track span { font-size: 12px; }

  /* ===== Footer ===== */
  body.theme-futuristic .site-footer { padding: 48px 0 24px; }
  body.theme-futuristic .footer-top { grid-template-columns: 1fr; gap: 24px; }
  body.theme-futuristic .footer-contact { text-align: left; }
  body.theme-futuristic .footer-links { grid-template-columns: 1fr; gap: 24px; }
  body.theme-futuristic .footer-divider { margin: 24px 0; }
}

/* スマホ縦 (max-width: 560px) のチューニング */
@media (max-width: 560px) {
  body.theme-futuristic .section { padding: 64px 0; }
  body.theme-futuristic .hero { padding: 100px 0 56px; }

  /* ヘッダー：ロゴと「お問い合わせ」CTAは常時、その他はハンバーガー */
  body.theme-futuristic .site-header .global-nav { top: 60px; right: 12px; left: 12px; }

  /* ヒーロー：KPIは2x2、もう少し詰める */
  body.theme-futuristic .hero h1 { font-size: clamp(26px, 8vw, 34px); }
  body.theme-futuristic .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px 18px; padding-top: 22px; }
  body.theme-futuristic .hero-stat { padding: 6px 0; }
  body.theme-futuristic .hero-stat .v { font-size: 24px; }
  body.theme-futuristic .hero-stat .k { font-size: 11px; }

  body.theme-futuristic .hero-actions { flex-direction: column; align-items: stretch; }
  body.theme-futuristic .hero-actions .btn { justify-content: center; padding: 14px 22px; }
  body.theme-futuristic .cases-actions { align-items: center; }

  /* セクション数字を下にずらして見出しと重ならないように */
  body.theme-futuristic section[data-index]::before {
    position: static;
    display: block;
    margin-left: 6px;
    margin-bottom: 8px;
  }

  /* 見出しの装飾 (eyebrow) は折り返し可に */
  body.theme-futuristic .section-heading h2 br { display: none; }
  body.theme-futuristic .hero h1 br { display: inline; }

  /* CTA points を縦並び寄り */
  body.theme-futuristic .cta-points { gap: 8px; }
  body.theme-futuristic .cta-points li { font-size: 12.5px; }

  /* バナー画像をやや低く */
  body.theme-futuristic .banner-image { height: 180px; }

  /* Quote bordered text */
  body.theme-futuristic .quote { padding: 20px; }
  body.theme-futuristic .quote h3 { font-size: 15px; }

  /* SP form fontsize 16px (iOS zoom 抑止) and remove placeholder italic */
  body.theme-futuristic .form-field > :first-child { font-size: 12.5px; }
}

/* 極小 (<=380px) フォントの最終調整 */
@media (max-width: 380px) {
  body.theme-futuristic .hero h1 { font-size: 26px; }
  body.theme-futuristic .hero-stat .v { font-size: 22px; }
  body.theme-futuristic .section-heading h2 { font-size: 22px; }
}


/* =========================================================
   Subpages (company / approach / cases) — futuristic theme
   ========================================================= */

/* ----- Page hero (sub pages) ------------------------------ */
body.theme-futuristic .company-hero,
body.theme-futuristic .approach-hero,
body.theme-futuristic .page-hero {
  position: relative;
  padding: clamp(120px, 14vw, 168px) 0 clamp(56px, 9vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
body.theme-futuristic .company-hero::before,
body.theme-futuristic .approach-hero::before,
body.theme-futuristic .page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 80% 20%, rgba(0,184,217,.14), transparent 60%),
    radial-gradient(600px 400px at 10% 80%, rgba(31,94,149,.10), transparent 60%);
  z-index: -1;
}
body.theme-futuristic .company-hero::after,
body.theme-futuristic .approach-hero::after,
body.theme-futuristic .page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31,94,149,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,94,149,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  z-index: -1;
}

body.theme-futuristic .company-hero .container,
body.theme-futuristic .approach-hero .container,
body.theme-futuristic .page-hero .container { position: relative; z-index: 2; }

body.theme-futuristic .company-hero h1,
body.theme-futuristic .approach-hero h1,
body.theme-futuristic .page-hero h1,
body.theme-futuristic .page-hero-card h1 {
  margin-top: 18px;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

body.theme-futuristic .company-hero .eyebrow,
body.theme-futuristic .approach-hero .eyebrow,
body.theme-futuristic .page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(31,94,149,.2);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  margin: 0;
}
body.theme-futuristic .company-hero .eyebrow::before,
body.theme-futuristic .approach-hero .eyebrow::before,
body.theme-futuristic .page-hero .eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,184,217,.18);
}

body.theme-futuristic .company-lead,
body.theme-futuristic .approach-hero__lead,
body.theme-futuristic .page-hero-lead {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.9;
  max-width: 76ch;
}

body.theme-futuristic .page-hero-card {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.6vw, 44px);
  box-shadow: var(--shadow-md);
}

/* ----- Generic section padding ---------------------------- */
body.theme-futuristic .section,
body.theme-futuristic .approach-section,
body.theme-futuristic .company-message,
body.theme-futuristic .company-profile,
body.theme-futuristic .company-cta,
body.theme-futuristic .cases-page-section,
body.theme-futuristic .cases-page-note {
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
}

/* ----- Section heading (sub pages) ------------------------ */
body.theme-futuristic .section-heading {
  position: relative;
  margin-inline: auto;
  margin-bottom: 36px;
  padding-bottom: 18px;
  text-align: center;
}
body.theme-futuristic .section-heading-left { text-align: center; }
body.theme-futuristic .section-heading::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 64px; height: 3px;
  background: var(--grad);
  border-radius: 2px;
}
body.theme-futuristic .section-heading-left::after { left: 50%; transform: translateX(-50%); }
body.theme-futuristic .section-heading h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 10px;
}
body.theme-futuristic .section-heading p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
  margin: 0 auto;
  max-width: 760px;
}
body.theme-futuristic .section-heading-left p { margin-left: auto; margin-right: auto; }

/* ----- Cards (sub pages) ---------------------------------- */
body.theme-futuristic .card,
body.theme-futuristic .approach-card,
body.theme-futuristic .company-card,
body.theme-futuristic .case-card,
body.theme-futuristic .approach-note,
body.theme-futuristic .cases-intro-card,
body.theme-futuristic .cases-page-note-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
body.theme-futuristic .card:hover,
body.theme-futuristic .approach-card:hover,
body.theme-futuristic .company-card:hover,
body.theme-futuristic .case-card:hover,
body.theme-futuristic .approach-note:hover {
  transform: translateY(-4px);
  border-color: rgba(31,94,149,.25);
  box-shadow: var(--shadow-md);
}
body.theme-futuristic .card h3,
body.theme-futuristic .approach-card h3,
body.theme-futuristic .approach-note h3,
body.theme-futuristic .case-card h3,
body.theme-futuristic .case-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.55;
}
body.theme-futuristic .card p,
body.theme-futuristic .approach-card p,
body.theme-futuristic .approach-note p,
body.theme-futuristic .case-card p,
body.theme-futuristic .case-summary,
body.theme-futuristic .cases-intro-card p,
body.theme-futuristic .cases-page-note-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 10px;
}

/* ----- Grid utilities ------------------------------------- */
body.theme-futuristic .grid {
  display: grid;
  gap: 20px;
}
body.theme-futuristic .grid.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.theme-futuristic .grid.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ----- Company message card ------------------------------- */
body.theme-futuristic .message-card { position: relative; }
body.theme-futuristic .message-kicker {
  display: inline-block;
  padding: 6px 14px;
  background: var(--grad-soft);
  border: 1px solid rgba(31,94,149,.22);
  border-radius: var(--radius-pill);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--brand);
  margin: 0 0 18px;
  text-transform: uppercase;
}
body.theme-futuristic .message-card h3 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 18px;
  line-height: 1.45;
}
body.theme-futuristic .message-card p {
  color: var(--ink-soft);
  line-height: 2;
  margin: 0 0 16px;
}
body.theme-futuristic .message-signature {
  margin-top: 24px !important;
  font-weight: 700;
  color: var(--brand) !important;
  text-align: right;
}

/* ----- Profile card (definition list) --------------------- */
body.theme-futuristic .company-definition-list { margin: 0; padding: 0; }
body.theme-futuristic .company-definition-list > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
body.theme-futuristic .company-definition-list > div:last-child { border-bottom: 0; }
body.theme-futuristic .company-definition-list dt {
  font-weight: 700;
  color: var(--brand);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: .04em;
}
body.theme-futuristic .company-definition-list dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.85;
}
body.theme-futuristic .company-service-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
}
body.theme-futuristic .company-service-list li {
  background: rgba(31,94,149,.08);
  border: 1px solid rgba(31,94,149,.20);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

/* ----- CTA cards on subpages ------------------------------ */
body.theme-futuristic .company-cta-card,
body.theme-futuristic .approach-cta__inner,
body.theme-futuristic .cases-page-note-card {
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(0,184,217,.14), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 56px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
body.theme-futuristic .company-cta-card h2,
body.theme-futuristic .approach-cta__inner h2,
body.theme-futuristic .cases-page-note-card h2 {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0 0 16px;
}
body.theme-futuristic .company-cta-card p,
body.theme-futuristic .approach-cta__inner p {
  color: var(--ink-soft);
  margin: 0 auto 24px;
  max-width: 640px;
  line-height: 1.85;
}
body.theme-futuristic .cases-page-note-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

/* ----- Approach flow list --------------------------------- */
body.theme-futuristic .approach-flow-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 18px;
}
body.theme-futuristic .approach-flow-item {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
body.theme-futuristic .approach-flow-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
body.theme-futuristic .approach-flow-step {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; font-weight: 700;
  letter-spacing: .14em;
  color: #fff;
  background: var(--grad);
  border-radius: 12px;
  padding: 8px 14px;
  align-self: start;
  display: inline-flex; align-items: center;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(31,94,149,.5);
}
body.theme-futuristic .approach-flow-item h3 {
  font-size: 18px; font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}
body.theme-futuristic .approach-flow-item p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
}

/* ----- Approach notes list -------------------------------- */
body.theme-futuristic .approach-notes {
  display: flex; flex-direction: column; gap: 14px;
}

/* ----- Cases page specific -------------------------------- */
body.theme-futuristic .cases-list {
  display: flex; flex-direction: column; gap: 20px;
}
body.theme-futuristic .case-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
body.theme-futuristic .case-meta-item {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  background: rgba(31,94,149,.08);
  border: 1px solid rgba(31,94,149,.20);
  color: var(--brand);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
body.theme-futuristic .case-body {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 18px;
  border-top: 1px dashed rgba(31,94,149,.16);
}
body.theme-futuristic .case-section {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
}
body.theme-futuristic .case-section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; font-weight: 700;
  color: var(--brand);
  background: rgba(31,94,149,.08);
  border: 1px solid rgba(31,94,149,.20);
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
  height: fit-content;
}
body.theme-futuristic .case-section-text {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.85;
}
body.theme-futuristic .case-card-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
body.theme-futuristic .case-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-mute);
}

/* ----- Scroll reveal ------------------------------------- */
body.theme-futuristic .scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
body.theme-futuristic .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive (sub pages) ----------------------------- */
@media (max-width: 880px) {
  body.theme-futuristic .grid.cards-2,
  body.theme-futuristic .grid.cards-3 {
    grid-template-columns: 1fr;
  }
  body.theme-futuristic .approach-flow-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 22px;
  }
  body.theme-futuristic .approach-flow-step {
    align-self: start;
    width: fit-content;
  }
  body.theme-futuristic .company-definition-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }
  body.theme-futuristic .case-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  body.theme-futuristic .company-hero,
  body.theme-futuristic .approach-hero,
  body.theme-futuristic .page-hero {
    padding-top: clamp(96px, 18vw, 132px);
  }
}
