/* ============================================================
   Aqua Intelligence Layer 3.0 — Impact upgrade
   Loaded AFTER style.css and v2.css.
   - Hero h1 大型化 + accent gradient + drop-shadow
   - Hero bg: M11v3 aurora
   - Keyvisual: M12v3
   - .impact-band 新規（中盤ダーク没入）
   - .cta-band: M14v3 + 大型 h2 + 強発光ボタン
   - Page-Hero: 薄いM11v3 overlay + Aモチーフ
   - Reveal & Genesis アニメ用クラス
   ============================================================ */

/* Header stays above hero stacking context */
.site-header { z-index: 200 !important; }
.dropdown-menu { z-index: 201; }

:root {
  --electric-aqua: #35C7FF;
  --aqua-glow: rgba(53,199,255,.55);
  --ink: #061226;
  --glass-strong: rgba(255,255,255,.72);
  --hero-shadow: 0 40px 120px rgba(15,36,68,.22);
}

/* ===== HERO upgrades ===== */
.hero {
  min-height: clamp(620px, 82vh, 880px);
  background:
    radial-gradient(900px 600px at 78% 28%, rgba(53,199,255,.22), transparent 65%),
    radial-gradient(420px 320px at 100% 50%, rgba(15,36,68,.15), transparent 70%),
    linear-gradient(180deg, #F4FAFE 0%, #EAF4FC 60%, #DCEDFB 100%);
}
.hero-bg-mesh {
  background-image: url("../images/bg/v3/M11v3_hero_aurora_loop_01.webp") !important;
  opacity: 1 !important;
  animation: meshDriftV3 22s ease-in-out infinite alternate;
}
@keyframes meshDriftV3 {
  0%   { transform: translate3d(-4%,  1%, 0) scale(1.03); }
  100% { transform: translate3d( 4%, -2%, 0) scale(1.10); }
}

.hero-inner { grid-template-columns: 1.15fr .85fr !important; align-items: center !important; }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 76px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.05em !important;
  line-height: 1.04 !important;
}
.hero h1 .accent {
  background-image: linear-gradient(110deg, #0F2444 0%, #2E7BD6 45%, var(--electric-aqua) 100%) !important;
  background-color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
.hero p.lead {
  font-size: clamp(15px, 1.2vw, 18px);
  max-width: 480px;
  color: #2c3a55;
}

.hero-visual img {
  filter: drop-shadow(0 36px 60px rgba(15,36,68,.22));
}

/* Genesis prep classes (start hidden, JS reveals) */
.is-genesis .hero-bg-mesh,
.is-genesis .hero-visual,
.is-genesis .hero-text > * {
  will-change: transform, opacity;
}
.is-genesis-init .hero-bg-mesh { opacity: 0; transform: scale(1.08); }
.is-genesis-init .hero-visual { opacity: 0; transform: rotate(-4deg) scale(0.86); }
.is-genesis-init .hero-text > * { opacity: 0; transform: translateY(28px); }

/* ===== Section title size up ===== */
.section-title {
  font-size: clamp(34px, 5.2vw, 56px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.1 !important;
}

/* ===== IMPACT BAND (新規) ===== */
.impact-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: clamp(120px, 14vw, 190px) 0;
  background:
    radial-gradient(900px 540px at 80% 30%, rgba(53,199,255,.22), transparent 65%),
    linear-gradient(180deg, #050F22 0%, #091B36 60%, #0E2748 100%);
}
.impact-band::before {
  content: ""; position: absolute; inset: -4%;
  background: url("../images/bg/v3/M17v3_dark_subsection_bg.webp") center/cover no-repeat;
  z-index: 0; opacity: .55;
  filter: blur(0.8px) saturate(1.1);
  animation: meshDriftV3 26s ease-in-out infinite alternate;
  will-change: transform;
}
.impact-band > .ib-fade-top, .impact-band > .ib-fade-bot { display: none; }
.impact-band::after {
  content: ""; position: absolute; inset: 0;
  background: url("../images/bg/v3/M18v3_A_motif_tile.svg") right center / 60% auto no-repeat;
  opacity: .12; z-index: 1; pointer-events: none;
}
.impact-band .container { position: relative; z-index: 2; }
.impact-band .ib-headline {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 20px;
  max-width: 1080px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.impact-band .ib-headline .accent {
  background: linear-gradient(110deg, var(--electric-aqua) 0%, #9AD8FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.impact-band .ib-sub {
  color: rgba(255,255,255,.75);
  font-size: 17px; line-height: 1.85;
  max-width: 680px;
  margin: 0 0 64px;
}
.impact-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 16px;
}
.impact-stat {
  position: relative;
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(154,216,255,.20);
  backdrop-filter: blur(6px);
}
.impact-stat::before {
  content: ""; position: absolute; top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: url("../images/bg/v3/M16v3_number_decoration.png") center/contain no-repeat;
  opacity: .35; pointer-events: none;
}
.impact-stat .stat-num {
  display: block;
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  background: linear-gradient(120deg, #fff 0%, var(--electric-aqua) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.impact-stat .stat-suffix { font-size: 0.5em; color: var(--electric-aqua); vertical-align: top; margin-left: 6px; }
.impact-stat .stat-label {
  display: block; margin-top: 12px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ===== CTA — climax ===== */
.cta-band {
  padding: clamp(120px, 14vw, 180px) 0 !important;
  background:
    radial-gradient(700px 380px at 50% 50%, rgba(53,199,255,.18), transparent 70%),
    linear-gradient(180deg, #061226 0%, #0B1F3F 70%, #0F2444 100%);
}
.cta-bg-streak {
  background-image: url("../images/bg/v3/M14v3_cta_climax_glow.webp") !important;
  opacity: 1 !important;
}
.cta-bg-pulse {
  width: 1100px !important; height: 1100px !important;
  top: 50% !important; right: 50% !important;
  transform: translate(50%, -50%) !important;
  background: radial-gradient(circle, rgba(53,199,255,.55), rgba(46,123,214,.10) 45%, transparent 70%) !important;
  animation: ctaPulseV3 6s ease-in-out infinite alternate !important;
}
@keyframes ctaPulseV3 {
  0%   { transform: translate(50%, -50%) scale(1.0);  opacity: .55; }
  100% { transform: translate(50%, -50%) scale(1.18); opacity: .90; }
}
.cta-band .container {
  text-align: center;
  display: block !important;
  max-width: 920px;
}
.cta-band .container > div { width: 100%; }
.cta-band h2 {
  font-size: clamp(36px, 6vw, 78px) !important;
  font-weight: 850 !important;
  letter-spacing: -0.05em !important;
  line-height: 1.05 !important;
  margin: 0 0 24px !important;
}
.cta-band h2 .accent {
  background: linear-gradient(110deg, var(--electric-aqua) 0%, #9AD8FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-band p {
  font-size: clamp(15px, 1.2vw, 19px) !important;
  color: rgba(255,255,255,.82) !important;
  margin: 0 0 40px !important;
}
.cta-band .btn-primary {
  padding: 20px 56px !important;
  font-size: 17px !important;
  letter-spacing: 0.04em;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.35),
    0 24px 70px rgba(53,199,255,.45),
    inset 0 1px 0 rgba(255,255,255,.5) !important;
}
.cta-band .btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,.45),
    0 30px 80px rgba(53,199,255,.6),
    inset 0 1px 0 rgba(255,255,255,.6) !important;
}

/* ===== Page-Hero overlay v3 ===== */
.page-hero .ph-mesh {
  background-image:
    url("../images/bg/v3/M11v3_hero_aurora_loop_02.webp") !important;
}
.page-hero .ph-motif {
  background-image: url("../images/bg/v3/M18v3_A_motif_tile.svg") !important;
  opacity: .16 !important;
}
.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
}

/* ===== Reveal stronger (override v2) ===== */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .is-genesis-init .hero-bg-mesh,
  .is-genesis-init .hero-visual,
  .is-genesis-init .hero-text > * { opacity: 1 !important; transform: none !important; }
  .cta-bg-pulse, .impact-band::before, .hero-bg-mesh { animation: none !important; }
}

/* ===== Mobile ===== */
@media (max-width: 740px) {
  .hero { min-height: auto; padding: 88px 0 64px; }
  .hero h1 { font-size: clamp(34px, 9vw, 58px) !important; line-height: 1.08 !important; }
  .cta-band h2 { font-size: clamp(28px, 8vw, 44px) !important; }
  .impact-band { padding: 88px 0; }
  .impact-band .ib-headline { font-size: clamp(28px, 8vw, 40px); }
  .impact-stats { grid-template-columns: 1fr; gap: 20px; }
  .impact-stat .stat-num { font-size: clamp(40px, 12vw, 60px); }
  .cta-bg-pulse { width: 600px !important; height: 600px !important; }
}

/* ===== Crop out baked-in English captions on AI-generated thumbnails ===== */
.service-card .thumb,
.case-card .thumb {
  overflow: hidden;
  background: linear-gradient(180deg, #F4FAFE 0%, #E6F2FB 100%);
}
.service-card .thumb img,
.case-card .thumb img {
  object-fit: cover;
  object-position: 50% 88%;
  transform: scale(1.25);
  transform-origin: 50% 88%;
}
