/* =========================================================
   WAKUWAKU SHOTEN — v3
   Dark gradient base (not pure black) + video hero + rich imagery
   Combines v1 dark aesthetic with v2 gradient text & photos
   ========================================================= */

:root {
  --bg: #0b1022;                /* deep navy base — not pure black */
  --bg-2: #0f1430;
  --bg-3: #141a3d;
  --bg-soft: #161c3a;
  --bg-card: rgba(22, 28, 58, 0.6);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f1f4fb;
  --text-dim: #a8b0cc;
  --text-mute: #6d7595;
  --accent: #00e887;            /* signature green */
  --accent-2: #00d4ff;          /* cyan */
  --accent-3: #7a73ff;          /* purple */
  --accent-4: #ff80b5;          /* pink */
  --radius: 8px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --max: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Helvetica Neue", "Yu Gothic", "游ゴシック体", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(0,232,135,0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(122,115,255,0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0,212,255,0.08), transparent 60%),
    linear-gradient(180deg, #0b1022 0%, #0f1430 50%, #0b1022 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text);
}
h1 {
  font-size: clamp(48px, 7vw, 112px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
h2 {
  font-size: clamp(34px, 4.5vw, 66px);
  letter-spacing: -0.028em;
}
h3 { font-size: clamp(22px, 2.2vw, 30px); }
h4 { font-size: 18px; font-weight: 500; }

p { color: var(--text-dim); font-size: 16px; }
.lead { font-size: clamp(18px, 1.5vw, 22px); color: var(--text); line-height: 1.55; }

/* gradient text (from v2) */
.gradient-text {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.gradient-text-warm {
  background: linear-gradient(120deg, var(--accent-4) 0%, var(--accent-3) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.italic {
  font-family: "Times New Roman", "游明朝", "Yu Mincho", serif;
  font-style: italic;
  font-weight: 400;
}

/* ---------- navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(11, 16, 34, 0.55);
  border-bottom: 1px solid transparent;
  transition: all .3s var(--ease);
}
.nav.scrolled {
  background: rgba(11, 16, 34, 0.85);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.logo-mark {
  width: 40px; height: 40px;
  flex-shrink: 0;
}
.logo-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);  /* white on dark backgrounds */
  transition: filter .3s var(--ease);
}
.logo:hover .logo-mark img {
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(0,232,135,.5));
}
.logo-text { display: inline-flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: 17px; color: var(--text); }
.logo-sub { font-size: 10px; color: var(--text-mute); letter-spacing: 0.22em; text-transform: uppercase; margin-top: 5px; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color .2s var(--ease);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: all .25s var(--ease);
  backdrop-filter: blur(4px);
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: rgba(0,232,135,0.06);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0b1022;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 232, 135, .3);
  font-weight: 600;
}
.btn-primary:hover {
  color: #0b1022;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  box-shadow: 0 14px 36px rgba(0, 232, 135, .45);
  transform: translateY(-2px);
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.nav-toggle { display: none; font-size: 28px; cursor: pointer; }

/* ---------- HERO with video ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 180px 0 140px;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* fallback is hidden by default; shown only when video fails */
.hero-video-wrap .video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,232,135,0.35), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(122,115,255,0.35), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0,212,255,0.25), transparent 60%),
    linear-gradient(135deg, #0a0f2a, #1a0f3a, #0b2540);
  animation: auroraShift 22s ease-in-out infinite;
}
.hero-video-wrap .video-fallback.active {
  opacity: 1;
}
@keyframes auroraShift {
  0%, 100% { background-position: 0% 50%, 100% 50%, 50% 50%, 0 0; filter: hue-rotate(0deg); }
  50% { background-position: 100% 50%, 0% 50%, 50% 50%, 0 0; filter: hue-rotate(20deg); }
}
/* light gradient overlay on video for text readability — keeps video clearly visible */
.hero-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,16,34,0.25) 0%, rgba(11,16,34,0.40) 70%, rgba(11,16,34,0.70) 100%);
  z-index: 1;
}

/* moving grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,232,135,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,232,135,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero-text h1 { margin: 22px 0 32px; }
.hero-text h1 .line { display: block; opacity: 0; transform: translateY(30px); animation: rise .9s var(--ease) forwards; }
.hero-text h1 .line:nth-child(2) { animation-delay: .15s; }
.hero-text h1 .line:nth-child(3) { animation-delay: .3s; }
.hero-text .lead { max-width: 620px; margin-bottom: 44px; opacity: 0; animation: rise 1s var(--ease) forwards .55s; color: rgba(241, 244, 251, 0.88); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: rise 1s var(--ease) forwards .75s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* hero image mosaic */
.hero-mosaic {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 520px;
  width: 100%;
  justify-self: end;
  opacity: 0;
  animation: rise 1.2s var(--ease) forwards .9s;
}
.hero-mosaic .mosaic-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px var(--line-strong);
}
.hero-mosaic .mosaic-card img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-main {
  inset: 0;
  transform: rotate(-2deg);
}
.mosaic-sub {
  width: 55%;
  aspect-ratio: 4/3;
  right: -8%;
  bottom: -6%;
  transform: rotate(5deg);
  z-index: 2;
}
.mosaic-badge {
  position: absolute;
  top: 6%;
  left: -6%;
  background: rgba(15, 20, 48, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  animation: bob 4s ease-in-out infinite;
}
.mosaic-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,232,135,.25), 0 0 14px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.88); opacity: 0.6; }
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  opacity: 0;
  animation: rise 1s var(--ease) forwards 1.2s;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- section frames ---------- */
.section {
  padding: 140px 0;
  position: relative;
}
.section-soft {
  background: linear-gradient(180deg, transparent 0%, rgba(22,28,58,0.4) 50%, transparent 100%);
}

.section-header {
  max-width: 820px;
  margin: 0 auto 80px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.section-header.left {
  text-align: left;
  margin: 0 0 64px;
}
.section-header h2 { margin-top: 18px; }
.section-header p { margin-top: 24px; }

/* ---------- trust logos ---------- */
.trust {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11,16,34,0.4);
}
.trust .label {
  text-align: center;
  color: var(--text-mute);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 56px;
}
.trust-logos span {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  opacity: 0.55;
  font-style: italic;
  transition: opacity .25s, color .25s;
}
.trust-logos span:hover { opacity: 1; color: var(--accent); }

/* ---------- stats ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.stats-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,232,135,0.04), transparent 70%);
  pointer-events: none;
}
.stat-item {
  padding: 0 32px;
  border-right: 1px solid var(--line);
  text-align: center;
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ---------- services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  transition: all .35s var(--ease);
  cursor: default;
  isolation: isolate;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(0,232,135,0.08) 100%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  z-index: 1;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,232,135,0.4);
  box-shadow: 0 30px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(0,232,135,0.2);
}
.service-card:hover::before { opacity: 1; }

.service-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
  filter: saturate(1.1) brightness(0.85);
}
.service-card:hover .service-img img { transform: scale(1.08); }
.service-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11,16,34,0.9) 100%);
}
.service-body {
  padding: 32px 32px 36px;
  position: relative;
  z-index: 2;
}
.service-num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 14px; }
.service-card p { font-size: 15px; }
.service-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-tag {
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-dim);
}

/* ---------- split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5/4;
  box-shadow: 0 40px 80px rgba(0,0,0,0.55), 0 0 0 1px var(--line);
}
.split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.9);
}
.split-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,232,135,0.10), transparent 60%);
  pointer-events: none;
}
.split-img .badge {
  position: absolute;
  top: 24px; left: 24px;
  background: rgba(11,16,34,0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.process-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  position: relative;
  transition: all .3s var(--ease);
  overflow: hidden;
}
.process-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.process-card:hover { transform: translateY(-4px); border-color: rgba(0,232,135,0.3); }
.process-card:hover::before { transform: scaleX(1); }
.process-num {
  font-size: 64px;
  font-weight: 300;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

/* ---------- quote ---------- */
.quote-card {
  background: linear-gradient(135deg, rgba(22,28,58,0.6), rgba(11,16,34,0.4));
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 64px;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.quote-card::before {
  content: """;
  position: absolute;
  top: -30px; left: 40px;
  font-size: 160px;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.3;
  font-family: Georgia, serif;
}
.quote-text {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.55;
  color: var(--text);
  position: relative;
  font-weight: 400;
}
.quote-author {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.quote-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1022;
  font-weight: 700;
  font-size: 18px;
}
.quote-meta strong { display: block; color: var(--text); font-size: 15px; }
.quote-meta span { color: var(--text-mute); font-size: 13px; }

/* ---------- CTA big with video feel ---------- */
.cta-big {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
}
.cta-big::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,232,135,0.15), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(122,115,255,0.15), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(0,212,255,0.08), transparent 70%);
  pointer-events: none;
}
.cta-big-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 32px;
}
.cta-big h2 { margin: 24px 0 32px; }

/* ---------- page header for sub-pages ---------- */
.page-header {
  position: relative;
  padding: 220px 0 120px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.page-header-bg img,
.page-header-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(1.1);
}
.page-header-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,16,34,0.6) 0%, rgba(11,16,34,0.85) 60%, var(--bg) 100%),
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(0,232,135,0.1), transparent 60%);
}
.page-header h1 { font-size: clamp(48px, 5.5vw, 88px); margin-top: 20px; }
.page-header .lead { margin-top: 28px; max-width: 680px; }

/* ---------- footer ---------- */
.footer {
  padding: 100px 0 48px;
  background: linear-gradient(180deg, transparent 0%, rgba(11,16,34,0.8) 100%);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand p { font-size: 14px; max-width: 340px; margin-top: 18px; }
.footer h4 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 20px; font-weight: 500; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-mute);
}

/* ---------- form ---------- */
.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(22, 28, 58, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}
.field { margin-bottom: 28px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
  font-weight: 500;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(11,16,34,0.5);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  padding: 14px 16px;
  border-radius: 10px;
  transition: all .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(11,16,34,0.7);
  box-shadow: 0 0 0 4px rgba(0,232,135,0.12);
}
.field textarea { resize: vertical; min-height: 150px; }
.field select option { background: var(--bg-2); color: var(--text); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
  background: rgba(22, 28, 58, 0.35);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  transition: all .25s var(--ease);
  overflow: hidden;
}
.faq-item:hover { border-color: rgba(0,232,135,0.3); }
.faq-q {
  width: 100%;
  padding: 26px 32px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}
.faq-q .plus {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1022;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), padding .4s var(--ease);
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 32px 28px; }
.faq-a p { color: var(--text-dim); }

/* ---------- video section (marquee-like) ---------- */
.media-band {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.media-band-video {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.media-band-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-band-video .fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s;
  background:
    radial-gradient(circle at 30% 50%, rgba(0,232,135,0.25), transparent 55%),
    radial-gradient(circle at 70% 50%, rgba(122,115,255,0.25), transparent 55%),
    linear-gradient(135deg, #0a0f2a, #1a0f3a);
  animation: auroraShift 18s ease-in-out infinite;
}
.media-band-video .fallback.active {
  opacity: 1;
}
.media-band-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,16,34,0.30) 0%, rgba(11,16,34,0.55) 100%);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
/* ---------- tablet (≤960px) ---------- */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(11,16,34,0.97);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }
  .hero { padding: 140px 0 80px; min-height: auto; }
  .hero-content { grid-template-columns: 1fr; gap: 56px; }
  .hero-mosaic { max-width: 420px; margin: 0 auto; }
  .section { padding: 90px 0; }
  .section-header { margin-bottom: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 32px 0; padding: 48px 0; }
  .stat-item { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 32px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-img { order: -1; }
  .process-grid { grid-template-columns: 1fr; }
  .quote-card { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .form-wrap { padding: 32px 24px; }
  .page-header { padding: 140px 0 70px; }
  .trust-logos { gap: 28px; }
  .trust-logos span { font-size: 18px; }
  .cta-big { padding: 100px 0; }
}

/* ---------- mobile (≤600px) ---------- */
@media (max-width: 600px) {
  /* PC向けレイアウト改行をスマホでは非表示 */
  br.d-br { display: none; }

  /* 見出しの行間をスマホ向けに広げる */
  h1 { line-height: 1.18; }
  h2 { line-height: 1.22; }
  h3 { line-height: 1.3; }

  /* 長い単語が画面をはみ出さないようにする */
  h1, h2, h3, p, .lead {
    word-break: auto-phrase;          /* Chrome 119+ 日本語の改行位置を最適化 */
    overflow-wrap: anywhere;
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  .container { padding: 0 18px; }
  .hero { padding: 120px 0 64px; }
  .section { padding: 64px 0; }
  .page-header { padding: 120px 0 56px; }
  .cta-big { padding: 72px 0; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 24px 0; padding: 36px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-wrap { padding: 24px 16px; }

  /* サービスカード等のグリッドを1列に */
  .expertise-grid { grid-template-columns: 1fr !important; }
}

::selection { background: var(--accent); color: #0b1022; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* v4 addition: static photo background for sub-page headers */
.page-header-bg img.page-header-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.55);
}
.page-header-bg .page-header-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(0,232,135,0.22), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(122,115,255,0.28), transparent 60%),
    linear-gradient(180deg, rgba(11,16,34,0.45) 0%, rgba(11,16,34,0.85) 100%);
  mix-blend-mode: normal;
}
