/* ===== Tokens ===== */
:root {
  --bg: #030712;
  --bg-soft: radial-gradient(1200px 600px at 80% 0%, rgba(14, 165, 233, .12), transparent 65%),
    radial-gradient(800px 500px at 10% 40%, rgba(79, 124, 255, .08), transparent 60%),
    #030712;
  --text: #e5f4ff;
  --muted: rgba(229, 244, 255, .72);
  --brand: #7dd3fc;
  --brand-strong: #4f7cff;
  --line: rgba(255, 255, 255, .08);
  --glass: rgba(8, 14, 28, .6);
  --noise: rgba(255, 255, 255, .05);
  --glow: 0 0 40px rgba(125, 211, 252, .25);
  --radius: 24px;
  --max: 1200px;
  --transition: .6s cubic-bezier(.2, .65, .28, 1);
  --luxe-logo-size: 32px;
  --luxe-accent: 56, 189, 248;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-soft);
  color: var(--text);
  font-family: "Outfit", "Inter", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  letter-spacing: .01em;
  position: relative;
  overflow-x: hidden;
}

html.is-about-locked,
body.is-about-locked {
  overscroll-behavior-y: contain;
  touch-action: pan-up pinch-zoom;
}

.aeris-peek-anchor {
  position: relative;
}

.aeris-peek-source {
  display: none;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

.aeris-peek {
  --peek-progress: 0;
  --peek-top: 0px;
  --peek-dim: 0;
  position: fixed;
  inset: var(--peek-top, 0px) 0 0 0;
  height: calc(100vh - var(--peek-top, 0px));
  width: 100vw;
  max-width: none;
  transform: translateY(calc((1 - var(--peek-progress)) * 100%));
  opacity: calc(var(--peek-progress));
  border-radius: 0;
  overflow: hidden;
  box-shadow:
    0 28px 110px rgba(0, 0, 0, .65),
    0 0 0 1px rgba(125, 211, 252, .22);
  transition:
    transform .45s cubic-bezier(.2, .65, .28, 1),
    opacity .35s ease;
  pointer-events: none;
  z-index: 30;
}

.aeris-peek.is-free {
  position: relative;
  inset: auto;
  height: auto;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  transform: none;
  opacity: 1;
  pointer-events: auto;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, .7),
    0 0 0 1px rgba(125, 211, 252, .16);
  transition: none;
}

.aeris-peek::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, .58) 0%,
      rgba(0, 0, 0, .45) 35%,
      rgba(0, 0, 0, .55) 100%);
  opacity: var(--peek-dim);
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 1;
}

.aeris-peek__content {
  position: absolute;
  inset: 0;
  padding: clamp(18px, 5vw, 38px);
  min-height: 100%;
  height: calc(100vh - var(--peek-top, 0px));
  padding-top: calc(var(--peek-top, 0px) + clamp(10px, 2vh, 16px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(52px, 14vh, 170px);
  pointer-events: none;
  text-align: center;
  z-index: 2;
}

.aeris-peek.is-free .aeris-peek__content {
  position: relative;
  height: auto;
  min-height: clamp(540px, 92vh, 940px);
  padding-top: clamp(2.8rem, 6vw, 4rem);
  gap: clamp(42px, 12vh, 150px);
}

.aeris-peek__hero {
  max-width: 820px;
  width: min(90vw, 820px);
  margin: 0 auto;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  color: #ffffff;
  text-shadow: 0 8px 22px rgba(0, 0, 0, .65);
  opacity: var(--peek-text-opacity, 0);
  transform: translateY(calc((1 - var(--peek-text-progress, 0)) * 48px - var(--peek-text-lift, 0px) - 9vh));
  transition: opacity .32s ease, transform .32s ease;
}

.aeris-peek__kicker {
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: .82;
}

.aeris-peek__heading {
  font-size: clamp(2.2rem, 4.2vw, 3rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: #f7fbff;
}

.aeris-peek__subtitle {
  font-size: 1rem;
  line-height: 1.9;
  color: #eaf5ff;
  opacity: .98;
  margin: 0 0 22px;
}

.aeris-peek__copy {
  max-width: 760px;
  margin: 0 auto;
  font-size: .95rem;
  line-height: 1.9;
  color: #f6fbff;
}

.aeris-peek__copy + .aeris-peek__copy {
  margin-top: 14px;
}

.aeris-peek__cards {
  width: min(960px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + var(--peek-card-follow, 140px)));
}

.aeris-peek__card {
  background: rgba(4, 10, 26, .76);
  border: 1px solid rgba(125, 211, 252, .25);
  border-radius: 16px;
  padding: 14px 14px 16px;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(125, 211, 252, .08);
  color: #eaf6ff;
  text-align: left;
  opacity: var(--card-progress, 0);
  transform: translateX(calc((1 - var(--card-progress, 0)) * var(--card-shift, 60%)));
  transition: opacity .3s ease, transform .3s ease;
}

.aeris-peek__card-title {
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.aeris-peek__card-text {
  font-size: .86rem;
  line-height: 1.7;
  opacity: .9;
  margin: 0;
}

.aeris-peek__card--1 { --card-progress: var(--peek-card-1, 0); --card-shift: -80%; }
.aeris-peek__card--2 { --card-progress: var(--peek-card-2, 0); --card-shift: 80%; }
.aeris-peek__card--3 { --card-progress: var(--peek-card-3, 0); --card-shift: -80%; }
.aeris-peek__card--4 { --card-progress: var(--peek-card-4, 0); --card-shift: 80%; }

.aeris-peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 16px;
  padding: 10px 16px;
  background: #000;
  color: #fff;
  border-radius: 12px;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2rem);
}

.luxe-layers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  overflow: hidden;
}

.luxe-layer {
  position: absolute;
  inset: 0;
}

.luxe-layer--background {
  inset: -37vh -37vw;
  transform-origin: center;
  background:
    radial-gradient(1200px 800px at 60% 10%, rgba(61, 216, 255, .18), transparent 60%),
    radial-gradient(820px 620px at 10% 75%, rgba(108, 187, 224, .14), transparent 60%),
    linear-gradient(180deg, rgba(3, 7, 18, .82) 0%, rgba(3, 7, 18, .6) 70%, rgba(3, 7, 18, .85) 100%),
    url("../images/backgraund.png");
  background-size: 140% 140%, 120% 120%, 100% 100%, cover;
  background-position: 80% 20%, 10% 80%, center, center;
  background-repeat: no-repeat;
  animation: moveLight 18s ease-in-out infinite;
}

.luxe-layer--noise::after {
  content: "";
  position: absolute;
  inset: -60%;
  background-image:
    radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  opacity: .06;
  animation: noiseAnimation 2.6s steps(4) infinite;
}

.luxe-layer--screen {
  background: linear-gradient(180deg, rgba(3, 7, 18, 0), rgba(3, 7, 18, .7));
  mix-blend-mode: screen;
}

#product {
  margin-top: 200px;
}

.section {
  padding: clamp(4rem, 12vw, 8rem) 0;
  scroll-margin-top: 120px;
}

.story-feature.section {
  padding: clamp(2.5rem, 8vw, 4.5rem) 0;
}

#company.story-feature.section {
  margin-top: clamp(8rem, 24vw, 16rem);
}

.eyebrow {
  font-size: .85rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}

.section-head {
  text-align: left;
  margin-bottom: 40px;
}

h1,
h2,
h3,
.brand-mark,
.btn {
  font-family: "Jokker", "Outfit", "Inter", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: .18em;
}

.section-title {
  margin: 0 0 1ch;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-subtitle {
  margin: 0 0 16px;
  font-size: clamp(1.2rem, 3.2vw, 1.8rem);
  letter-spacing: .08em;
  line-height: 1.3;
  color: var(--text);
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.95rem, 2.2vw, 1.05rem);
  line-height: 1.85;
  max-width: 680px;
}

/* ===== Splash ===== */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 800px at 50% 50%, rgba(14, 165, 233, .12), transparent 60%),
    radial-gradient(800px 500px at 20% 10%, rgba(167, 139, 250, .1), transparent 60%),
    var(--bg);
  transition: opacity .6s ease;
}

#splash .mark {
  display: grid;
  place-items: center;
  gap: 18px;
}

#splash .ring {
  width: 140px;
  height: 140px;
  border: 1px solid var(--brand);
  border-radius: 9999px;
  filter: drop-shadow(0 0 20px rgba(125, 211, 252, .35));
  animation: pulse 1.8s ease-out infinite;
}

#splash .logo {
  letter-spacing: .42em;
  text-indent: .42em;
  font-weight: 700;
  font-size: 24px;
  color: var(--brand);
  text-shadow: 0 0 24px rgba(14, 165, 233, .5);
}

@keyframes pulse {
  0% {
    transform: scale(.7);
    opacity: .9;
  }
  100% {
    transform: scale(1.32);
    opacity: 0;
  }
}

body.loaded #splash {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #splash .ring {
    animation: none;
    opacity: 1;
  }
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  width: 100%;
  backdrop-filter: blur(18px);
  background: rgba(3, 7, 18, .78);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 70px;
  position: relative;
}

.header-grid::before,
.header-grid::after {
  content: "";
  flex: 0 0 clamp(1rem, 3vw, 2.5rem);
  pointer-events: none;
  background: transparent;
}

.brand-mark {
  font-weight: 700;
  letter-spacing: .4em;
  font-size: 1rem;
  margin-right: auto;
  display: inline-flex;
  text-align: left;
  position: relative;
  align-items: center;
  padding-left: calc(var(--luxe-logo-size) + 16px);
  min-height: var(--luxe-logo-size);
}

/* ヘッダーのロゴマークを追加 */
.brand-mark::after,
.brand-mark::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.brand-mark::after {
  left: 0;
  width: var(--luxe-logo-size);
  height: var(--luxe-logo-size);
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0%, rgba(var(--luxe-accent), .6), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(59, 130, 246, .7), transparent 55%),
    radial-gradient(circle at 50% 50%, #0f172a, #0f172a);
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, .35),
    0 0 32px rgba(var(--luxe-accent), .65);
}

.brand-mark::before {
  left: 3px;
  width: calc(var(--luxe-logo-size) - 6px);
  height: calc(var(--luxe-logo-size) - 6px);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-top-color: rgba(248, 250, 252, .7);
  border-left-color: rgba(148, 163, 184, .6);
  opacity: .8;
  z-index: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  justify-content: flex-end;
  text-align: right;
}

.site-nav ul {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-size: .92rem;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}

.site-nav a.is-active,
.site-nav a:hover {
  border-color: var(--brand);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  margin-left: 16px;
  justify-content: flex-end;
}

.lang-switch span {
  color: var(--text);
}

.lang-link {
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

.lang-link.is-active {
  color: var(--text);
  border-color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  border-radius: 999px;
  padding: 12px 24px;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .2em;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.btn--outline {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn--solid {
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--brand), var(--brand-strong));
  color: #041830;
  font-weight: 600;
}

.btn--ghost {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
}

.btn::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, .45), transparent 65%);
  opacity: 0;
  transform: translate3d(-30%, -20%, 0) rotate(12deg) scale(1);
  transition: opacity .4s ease;
  z-index: -1;
}

.btn--solid::after,
.btn--ghost::after {
  animation: moveLight 18s linear infinite;
  opacity: .4;
}

.btn--outline:hover {
  border-color: var(--brand);
}

.btn--solid:hover {
  opacity: .85;
  color: #031022;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .18);
}

.btn:hover::after {
  opacity: .65;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(7rem, 20vh, 11rem) 0 clamp(4rem, 10vw, 6rem);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  min-height: calc(100vh - 70px + 6rem);
}

.hero .container {
  width: min(100%, var(--max));
}

.hero-copy {
  width: min(100%, 960px);
  margin: 0 auto;
  text-align: center;
}

.hero-headline {
  margin: 0 0 20px;
  font-size: clamp(1.05rem, 5vw, 3.6rem);
  letter-spacing: .02em;
  line-height: 1.15;
  font-family: "Product", "Outfit", "Inter", "Noto Sans JP", system-ui, sans-serif;
  white-space: nowrap;
  color: transparent;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, .92), rgba(125, 211, 252, .8), rgba(79, 124, 255, .85));
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: animationGradient 12s linear infinite;
}

body:not(.loaded) .hero-headline {
  opacity: 0;
  transform: translateY(18px) scale(.98);
  filter: blur(6px);
}

body.loaded .hero-headline {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity .85s ease, transform .85s ease, filter .85s ease;
  transition-delay: .15s;
}

body:not(.loaded) .hero-subheadline {
  opacity: 0;
  transform: translateY(18px) scale(.98);
  filter: blur(6px);
}

body.loaded .hero-subheadline {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity .85s ease, transform .85s ease, filter .85s ease;
  transition-delay: .45s;
}

.hero-subheadline {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  line-height: 1.7;
  font-family: "Product", "Outfit", "Inter", "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: .08em;
}

.hero-headline--compact {
  font-size: clamp(1.2rem, 3.6vw, 3rem);
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ===== Products ===== */
.section.product {
  padding: 0;
}

.product-showcase {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: 0;
}

.product-showcase-grid {
  display: flex;
  gap: 0;
  min-height: clamp(460px, 65vw, 720px);
  width: 100%;
}

body.platform-animate-ready .product-tile {
  --wave-order: 0;
}

body.platform-animate-ready .product-tile:not(.is-wave-visible) {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
}

body.platform-animate-ready .product-tile.is-wave-visible {
  animation: productWaveUp .85s cubic-bezier(.22, .55, .36, .99) both;
  animation-delay: calc(var(--wave-order, 0) * 120ms);
}

@keyframes productWaveUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 48px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.platform-animate-ready .product-tile:not(.is-wave-visible),
  body.platform-animate-ready .product-tile.is-wave-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.product-tile {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: clamp(360px, 50vw, 580px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  border: none;
  isolation: isolate;
  cursor: pointer;
  flex: 1 1 0;
  transition: transform .7s ease, border-color .4s ease, flex .6s ease, filter .6s ease;
}

.product-tile::before,
.product-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity .6s ease, transform 1s ease;
  z-index: -2;
}

.product-tile::before {
  background-image: var(--tile-image, linear-gradient(135deg, rgba(8, 12, 20, .4), rgba(3, 7, 18, .9)));
  background-size: cover;
  background-position: center;
  filter: saturate(1.15);
}

.product-tile::after {
  background: linear-gradient(180deg, rgba(3, 7, 18, .2) 20%, rgba(3, 7, 18, .85) 100%);
  z-index: -1;
}

.product-tile:focus-visible {
  outline: 2px solid var(--tile-accent, #f7d167);
  outline-offset: 4px;
}

.product-tile:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, .4);
}

.product-tile:hover::before {
  transform: scale(1.05);
}

@media (hover: hover) {
  .product-showcase-grid:hover .product-tile {
    flex: .9 1 0;
    filter: saturate(.88) brightness(.78);
  }

  .product-showcase-grid:hover .product-tile:hover {
    flex: 1.4 1 0;
    filter: saturate(1.04) brightness(1);
  }

  .product-showcase-grid:has(.product-tile:nth-child(2):hover) .product-tile:not(:nth-child(2)),
  .product-showcase-grid:has(.product-tile:nth-child(3):hover) .product-tile:not(:nth-child(3)) {
    flex: .75 1 0;
    filter: saturate(.78) brightness(.65);
  }

  .product-showcase-grid:has(.product-tile:nth-child(2):hover) .product-tile:nth-child(2),
  .product-showcase-grid:has(.product-tile:nth-child(3):hover) .product-tile:nth-child(3) {
    flex: 1.4 1 0;
    filter: saturate(1.04) brightness(1);
  }
}

.product-tile__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.product-tile__index {
  font-size: .8rem;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

.product-tile__title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-tile__accent {
  width: 4px;
  height: 40px;
  background: var(--brand);
  border-radius: 999px;
  display: inline-flex;
}

.product-tile__title h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.5;
}

.product-tile__body {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
  max-height: 0;
  opacity: 0;
  transform: translateY(-18px);
  transition:
    max-height .6s ease,
    opacity .45s ease,
    transform .5s ease;
  transition-delay: 0s, 0s, 0s;
  pointer-events: none;
}

.product-tile__body p {
  margin: 0;
}

.product-tile__body p + p {
  margin-top: .65em;
}

.product-tile:hover .product-tile__body {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: .45s, .65s, .65s;
}

.product-tile[data-theme="nature"] {
  --tile-image: url("../images/product1.png");
}

.product-tile[data-theme="air"] {
  --tile-image: url("../images/product2.png");
}

.product-tile[data-theme="community"] {
  --tile-image: url("../images/product3.png");
}

.product-tile[data-theme="climate"] {
  --tile-image: url("../images/product4.png");
}

@media (max-width: 640px) {
  .product-tile {
    min-height: 300px;
  }

  .product-tile__title {
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .product-showcase-grid {
    flex-direction: column;
  }

  .product-showcase-grid:hover .product-tile,
  .product-tile {
    flex-grow: 1;
  }
}

/* ===== Gallery ===== */
.gallery-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.gallery-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
  overscroll-behavior-x: contain;
  padding-inline: clamp(12px, 4vw, 32px);
  padding-bottom: 0;
  scroll-padding-left: clamp(12px, 4vw, 32px);
  scroll-padding-right: clamp(12px, 4vw, 32px);
}

.gallery-grid::-webkit-scrollbar { display: none; }

.gallery-nav {
  width: clamp(44px, 5vw, 56px);
  height: clamp(44px, 5vw, 56px);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 28, .75);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.gallery-nav span {
  font-size: 1.2rem;
  letter-spacing: 0;
  pointer-events: none;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
  background: rgba(125, 211, 252, .18);
  border-color: rgba(125, 211, 252, .4);
  outline: none;
}

.gallery-nav:disabled {
  opacity: .35;
  cursor: default;
}

.gallery-item {
  flex: 0 0 auto;
  width: clamp(200px, 22vw, 280px);
  min-width: 200px;
  text-decoration: none;
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2);
  transition: transform .6s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.gallery-item.is-active figure {
  outline: 2px solid var(--brand);
  outline-offset: 0;
}

#gallery-detail {
  margin-top: clamp(1.2rem, 4vw, 2.2rem);
}

#gallery-detail[data-state="empty"] {
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 18% -10%, rgba(59, 130, 246, 0.22), transparent 60%),
    radial-gradient(circle at 85% 120%, rgba(14, 165, 233, 0.18), transparent 55%),
    rgba(4, 7, 18, 0.9);
  padding: clamp(.12rem, .8vw, .45rem) clamp(1rem, 2.6vw, 2rem) 0 clamp(1rem, 2.6vw, 2rem);
  min-height: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(3, 6, 23, 0.75);
  backdrop-filter: blur(18px);
}

/* ===== Story Section ===== */
.story .container {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1.2rem, 4vw, 2rem);
}

.story--right .container {
  padding-right: 0;
}

.story--left .container {
  padding-left: 0;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.story-copy p {
  margin: 0 0 1.2em;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.1rem);
}

.story-copy p:last-child {
  margin-bottom: 0;
}


.story-visual {
  margin: 0;
  display: flex;
  align-items: stretch;
}

.story--right .story-visual {
  justify-content: flex-end;
  margin-right: calc(clamp(1.2rem, 4vw, 2rem) * -1);
}

.story--left .story-visual {
  justify-content: flex-start;
  margin-left: calc(clamp(1.2rem, 4vw, 2rem) * -1);
}

/* Feature story: stretch visual horizontally while keeping it flush to the edge */
.story-feature.story--right .container {
  padding-right: 0;
}

.story-feature.story--left .container {
  padding-left: 0;
}

.story-feature {
  position: relative;
  z-index: 0;
}

.story-feature::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  bottom: -1px;
  background: linear-gradient(180deg, rgba(3, 7, 18, .94), rgba(3, 7, 18, .82));
  z-index: -1;
}

.story-feature .story-grid {
  gap: clamp(1.2rem, 5vw, 2.8rem);
  align-items: center;
}

.story-feature.story--right .story-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.story-feature.story--left .story-grid {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.story-feature .story-copy {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: clamp(320px, 48vw, 640px);
  margin: 0 auto;
}

.story-feature.story--right .story-visual {
  justify-content: flex-end;
  margin-right: 0;
}

.story-feature.story--left .story-visual {
  justify-content: flex-start;
  margin-left: 0;
}

.story-media {
  width: clamp(320px, 78vw, 1200px);
  min-height: clamp(280px, 45vw, 520px);
  aspect-ratio: 21 / 9;
  border-radius: 40px;
  overflow: hidden;
  border: 0;
  box-shadow: inset 0 0 30px rgba(125, 211, 252, .12), 0 35px 70px rgba(3, 6, 23, .8);
  position: relative;
}

.story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(79, 124, 255, .25), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.story-feature .eyebrow {
  font-size: clamp(.65rem, 1.8vw, .8rem);
  letter-spacing: .22em;
}

.story-feature .section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: .18em;
}

.story-feature .story-copy p {
  font-size: clamp(.95rem, 2vw, 1rem);
}

@media (max-width: 900px) {
  .story .container,
  .story--right .container,
  .story--left .container {
    max-width: var(--max);
    padding-inline: clamp(1.2rem, 4vw, 2rem);
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-visual,
  .story--right .story-visual,
  .story--left .story-visual {
    margin: 0;
    justify-content: flex-start;
  }

  .story-feature.story--right .container {
    padding-right: 0;
  }

  .story-feature.story--left .container {
    padding-left: 0;
  }

  .story-feature .story-grid {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 4vw, 2rem);
  }

  .story-feature .story-visual {
    margin: 0;
  }

  .story-feature .story-copy {
    max-width: 100%;
  }

  .story-media {
    width: 100%;
    border-radius: 32px;
  }
}

.hud-console {
  position: relative;
}

.hud-console__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}

.hud-console__media {
  position: relative;
  padding-top: 8px;
  max-width: clamp(220px, 45vw, 420px);
  margin-left: clamp(0rem, 2vw, 1rem);
  margin-right: clamp(0rem, 2vw, 1rem);
  align-self: flex-start;
  margin-bottom: clamp(.45rem, 2.1vw, 1.2rem);
}

.hud-console__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: none;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: rgba(241, 245, 249, 0.9);
  background: rgba(15, 23, 42, 0.35);
}

.hud-console__frame {
  position: relative;
  margin-top: 10px;
  border-radius: 22px;
  padding: clamp(.55rem, 1.6vw, .9rem) clamp(.7rem, 2vw, 1.2rem);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.5);
  overflow: hidden;
}

.hud-console__orbit {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 32px;
  opacity: 0.55;
}

.hud-console__placeholder {
  position: relative;
  display: flex;
  width: clamp(210px, 50vw, 380px);
  height: clamp(140px, 24vw, 220px);
  margin-inline: auto;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  align-items: center;
  justify-content: center;
  color: rgba(226, 239, 255, 0.85);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: none;
  backdrop-filter: blur(6px);
}

.hud-console__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-right: clamp(0rem, 2vw, 1rem);
}

.hud-console__kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: none;
  color: rgba(125, 211, 252, 0.9);
}

.hud-console__headline-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.hud-console__headline {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.hud-console__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hud-console__pill {
  padding: 8px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(226, 239, 255, 0.85);
  background: rgba(15, 23, 42, 0.35);
}

.hud-console__note {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(148, 181, 222, 0.9);
}

@media (max-width: 900px) {
  #gallery-detail[data-state="empty"] {
    border-radius: 24px;
    padding: clamp(1.2rem, 6vw, 2rem);
  }

  .hud-console__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hud-console__headline-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === AERIS Drone Courier ORBIT セクション === */
.product-orbit {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 4rem);
  padding: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  backdrop-filter: none;
}

.product-orbit .product-media {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.product-orbit .product-image-frame {
  position: relative;
  width: 100%;
  border-radius: 30px;
  background: radial-gradient(circle at top, #020617, #000814);
  border: 1px solid rgba(148, 163, 184, 0.4);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca6c9;
  font-size: 14px;
  text-align: center;
}

.product-orbit .product-image-frame span {
  opacity: .7;
}

.product-orbit .product-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-orbit .media-tag {
  position: absolute;
  left: 20px;
  top: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca6c9;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-orbit .media-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle, #0ea5e9 0, transparent 70%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
}

.product-orbit .product-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-orbit .product-kicker {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
}

.product-orbit .product-title {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: 0.08em;
  margin: 2px 0 6px;
}

.product-orbit .product-subtitle {
  font-size: 28px;
  line-height: 1.1;
  color: #9ca6c9;
  margin-bottom: 12px;
}

.product-orbit .product-tagline {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 10px;
}

.product-orbit .product-lead {
  font-size: 14px;
  line-height: 1.7;
  color: #9ca6c9;
  max-width: 34em;
}

.product-orbit .product-lead strong {
  color: #0ea5e9;
  font-weight: 500;
}

.product-orbit .spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.product-orbit .spec-card {
  position: relative;
  border-radius: 18px;
  padding: 14px 14px 16px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.85);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.product-orbit .spec-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.08), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.product-orbit .spec-card:hover {
  border-color: rgba(14, 165, 233, 0.25);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.product-orbit .spec-card:hover::before {
  opacity: 1;
}

.product-orbit .spec-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}

.product-orbit .spec-value {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.product-orbit .spec-caption {
  margin-top: 4px;
  font-size: 11px;
  color: #9ca6c9;
  opacity: 0.9;
}

.product-orbit .feature-list {
  margin-top: 16px;
  padding: 14px 16px 10px;
  border-radius: 20px;
  background: radial-gradient(circle at left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.product-orbit .feature-list-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}

.product-orbit .feature-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #9ca6c9;
  padding-block: 4px;
}

.product-orbit .feature-bullet {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin-top: 6px;
  background: radial-gradient(circle, #0ea5e9 0, transparent 65%);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.9);
}

.product-orbit .feature-label {
  font-weight: 500;
  color: #e5f0ff;
}

.product-orbit .feature-text {
  grid-column: 2 / -1;
  color: #9ca6c9;
}

.product-orbit .safety-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.product-orbit .safety-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: #9ca6c9;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.product-orbit .safety-pill-icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #0ea5e9;
}

@media (max-width: 960px) {
  .product-orbit {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
  }

  .product-orbit .product-media {
    order: -1;
  }

  .product-orbit .product-title {
    font-size: 32px;
  }

  .product-orbit .product-subtitle {
    font-size: 22px;
  }

  .product-orbit .spec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .product-orbit .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .product-orbit .spec-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.contact-detail {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
  color: var(--muted);
}

.contact-detail span {
  display: block;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(8, 10, 20, .8);
  box-shadow: inset 0 0 30px rgba(125, 211, 252, .05);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  inset: -50% -30%;
  background: linear-gradient(140deg, rgba(79, 124, 255, .2), transparent 60%);
  transform: rotate(-8deg);
  opacity: .6;
}

.contact-form > * {
  position: relative;
  z-index: 1;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: .9rem;
}

.contact-form span {
  letter-spacing: .2em;
  font-size: .75rem;
  text-transform: uppercase;
  color: var(--brand);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(4, 8, 18, .7);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 4, 10, .9);
  padding: 24px 0 32px;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--muted);
}

.foot-links {
  display: flex;
  gap: 18px;
}

.foot-links a {
  position: relative;
}

.foot-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.foot-links a:hover::after {
  transform: scaleX(1);
}

/* ===== Animations ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: var(--transition);
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

[data-animate="section-rise"] {
  transform: translateY(80px);
  transition: opacity .9s ease, transform 1s cubic-bezier(.22, 1, .36, 1);
}

[data-animate="section-rise"].is-visible {
  transform: none;
}

[data-animate="company-left"],
[data-animate="company-right"] {
  transition: opacity .85s ease, transform .95s cubic-bezier(.23, 1, .32, 1);
}

[data-animate="company-left"] {
  transform: translateX(-60px);
}

[data-animate="company-right"] {
  transform: translateX(60px);
}

[data-animate="company-left"].is-visible,
[data-animate="company-right"].is-visible {
  transform: none;
}

[data-animate="aeris-card"] {
  transform: translateY(40px);
  transition: opacity .6s ease, transform .65s ease;
}

[data-animate="aeris-card"].is-visible {
  transform: none;
}

.aeris-principles-inner .aeris-principle-card:nth-child(1)[data-animate="aeris-card"] {
  transition-delay: .05s;
}
.aeris-principles-inner .aeris-principle-card:nth-child(2)[data-animate="aeris-card"] {
  transition-delay: .15s;
}
.aeris-principles-inner .aeris-principle-card:nth-child(3)[data-animate="aeris-card"] {
  transition-delay: .25s;
}
.aeris-principles-inner .aeris-principle-card:nth-child(4)[data-animate="aeris-card"] {
  transition-delay: .35s;
}

.gallery-grid .gallery-item {
  --device-order: 0;
}

.gallery-grid .gallery-item figure[data-animate="device"] {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: calc(200ms + var(--device-order) * 140ms);
}

.gallery-grid .gallery-item figure[data-animate="device"].is-visible {
  opacity: 1;
  transform: none;
}

.gallery-grid .gallery-item:nth-child(1) { --device-order: 0; }
.gallery-grid .gallery-item:nth-child(2) { --device-order: 1; }
.gallery-grid .gallery-item:nth-child(3) { --device-order: 2; }
.gallery-grid .gallery-item:nth-child(4) { --device-order: 3; }
.gallery-grid .gallery-item:nth-child(5) { --device-order: 4; }
.gallery-grid .gallery-item:nth-child(6) { --device-order: 5; }
.gallery-grid .gallery-item:nth-child(7) { --device-order: 6; }
.gallery-grid .gallery-item:nth-child(8) { --device-order: 7; }
.gallery-grid .gallery-item:nth-child(9) { --device-order: 8; }
.gallery-grid .gallery-item:nth-child(10) { --device-order: 9; }
.gallery-grid .gallery-item:nth-child(11) { --device-order: 10; }
.gallery-grid .gallery-item:nth-child(12) { --device-order: 11; }

body:not(.loaded) .site-header,
body:not(.loaded) main,
body:not(.loaded) .site-footer {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

body.loaded .site-header,
body.loaded main,
body.loaded .site-footer {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s ease;
}

@media (prefers-reduced-motion: reduce) {
  .luxe-layer--background {
    animation: none;
  }

  .luxe-layer--noise::after {
    animation: none;
  }

  .btn--solid::after,
  .btn--ghost::after {
    animation: none;
  }

  .hero-headline,
  .card h3 {
    animation: none;
    background-position: center;
  }

  body:not(.loaded) .hero-headline,
  body.loaded .hero-headline,
  body:not(.loaded) .hero-subheadline,
  body.loaded .hero-subheadline {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (max-width: 720px) {
  .site-nav ul {
    gap: 12px;
  }

  .header-grid {
    flex-direction: column;
    align-items: stretch;
    padding-block: 16px;
  }

  .header-actions {
    width: 100%;
  }
}

/* ===== Navigation ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(11, 15, 18, .55);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: Outfit, Inter, "Noto Sans JP", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .28em;
  font-size: 15px;
}

nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, .02);
}

.nav a.is-active {
  border-color: rgba(124, 195, 255, .35);
  background: rgba(124, 195, 255, .08);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  box-shadow: var(--shadow);
  transition: transform .25s ease, opacity .25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  position: relative;
  border: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #0a0d10;
  font-weight: 700;
}

.btn--ghost {
  background: transparent;
}

/* ===== Section base ===== */
section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px; /* sticky header offset */
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 1.5ch;
  margin-bottom: 28px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--muted);
  text-transform: uppercase;
}

h2 {
  font-family: Outfit, Inter, "Noto Sans JP", system-ui, sans-serif;
  font-size: clamp(24px, 4.8vw, 36px);
  line-height: 1.2;
  margin: 4px 0 0;
}

.lead {
  color: var(--muted);
}

/* ===== Feature grid ===== */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card {
  grid-column: span 4;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  min-height: 180px;
}

.card h3 {
  margin: 6px 0 10px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.shot img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ===== Manifest ===== */
.manifest {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
}

.quote {
  font-size: 20px;
  line-height: 1.6;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.stack {
  display: grid;
  gap: 12px;
}

.stack .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}

/* ===== Contact form ===== */
form.card {
  display: block;
}

form.card label {
  display: block;
}

/* ===== Footer ===== */
footer {
  padding: 48px 0 80px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .card {
    grid-column: span 6;
  }
  .manifest {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 72px 0 56px;
  }
  .features .card {
    grid-column: span 12;
  }
  .nav ul {
    display: none;
  }
}

/* ===== Rise animation timing ===== */
@media (prefers-reduced-motion: no-preference) {
  [data-rise="2"] { animation-delay: .12s; }
  [data-rise="3"] { animation-delay: .18s; }
  [data-rise="4"] { animation-delay: .24s; }

  @keyframes rise {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ===== Rise visibility control ===== */
/* Hidden by default */
[data-rise] { opacity: 0; transform: translateY(8px); }
/* Disable animation until element becomes visible */
[data-rise]:not(.is-visible) { animation: none !important; }
/* Reveal once intersecting */
[data-rise].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Start animation only after becoming visible */
  [data-rise].is-visible { animation: rise .7s ease .05s both; }
}
@media (prefers-reduced-motion: reduce) {
  [data-rise] { transition: none !important; }
  [data-rise].is-visible { animation: none !important; }
}
.panel-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.9;
}

.panel-list li {
  list-style: disc;
  margin-bottom: .8rem;
}

.panel-list li:last-child { margin-bottom: 0; }

.panel-list .list-term {
  display: block;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text, #f8fafc);
}

.panel-list .list-desc {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
}

.panel-list--compact {
  padding-left: 0;
}

.panel-list--compact li {
  list-style: none;
}

#aeris {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 120px 0 120px;
  background-image: url("../images/aerisback.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.aeris-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* AERIS Hero */
.aeris-hero {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, .7),
    0 0 0 1px rgba(146, 192, 255, .08);
}

.aeris-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, .45) 60%,
      rgba(0, 0, 0, .85) 100%);
  opacity: 1;
  mix-blend-mode: normal;
  filter: none;
  z-index: 0;
}

.aeris-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: aerisFadeUp .8s ease-out both;
}

.aeris-kicker {
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: .8;
}

.aeris-heading {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.aeris-subtitle {
  font-size: .95rem;
  line-height: 1.9;
  opacity: .88;
  margin: 0 0 28px;
}

.aeris-copy {
  max-width: 720px;
  margin: 0 auto;
  font-size: .93rem;
  line-height: 1.9;
  opacity: .9;
}

.aeris-copy + .aeris-copy {
  margin-top: .6rem;
}

.aeris-heading,
.aeris-subtitle,
.aeris-copy {
  text-shadow: 0 2px 4px rgba(0, 0, 0, .6);
}

.aeris-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  #aeris {
    border-radius: 24px;
    padding: clamp(3.5rem, 12vw, 4.5rem) clamp(1.2rem, 6vw, 2rem);
  }
  .aeris-heading {
    font-size: 2.1rem;
    letter-spacing: .16em;
  }
  .aeris-copy {
    font-size: .9rem;
  }
}

.aeris-section {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

@media (min-width: 1200px) {
  .aeris-section {
    border-radius: 32px;
  }
}

.aeris-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%,
      rgba(0, 0, 0, .75) 0%,
      rgba(0, 0, 0, .65) 28%,
      rgba(0, 0, 0, .4) 55%,
      rgba(0, 0, 0, 0) 80%);
  pointer-events: none;
}

.aeris-inner {
  position: relative;
  z-index: 1;
}

.aeris-principles {
  margin-top: 40px;
}

.aeris-principles-inner {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  animation: aerisFadeUp .9s ease-out .12s both;
}

.aeris-principle-card {
  background: rgba(3, 10, 30, .78);
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(120, 170, 255, .12);
  backdrop-filter: blur(10px);
}

.aeris-principle-title {
  font-size: .9rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .6rem;
  color: #cfe6ff;
}

.aeris-principle-text {
  font-size: .86rem;
  line-height: 1.8;
  opacity: .9;
}

@media (max-width: 900px) {
  .aeris-principles-inner {
    max-width: 100%;
    padding: 0 8px;
  }
}

@media (max-width: 640px) {
  .aeris-principles-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .aeris-principles {
    margin-top: 32px;
  }
}

@keyframes aerisFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
