/* ============================================================
   Hero — White / Front page
   ============================================================ */
.hero {
  padding: clamp(80px, 14vw, 140px) 0 clamp(60px, 10vw, 100px);
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  background-attachment: fixed;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #aaa;
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-jp), var(--font-en);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0a0a0a;
  margin-bottom: 1.5rem;
  max-width: 720px;
}

.hero__title em {
  font-style: normal;
  color: #f97316;
}

.hero__sub {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero__deco-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}

.hero__deco-num {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #ccc;
}

.hero__deco-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f97316;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.2);
  padding: 0.3em 0.8em;
  border-radius: 100px;
}

/* ============================================================
   Hero Dark — Full Viewport / 2-column
   ============================================================ */
.hero-dark {
  position: relative;
  background: #0a0a0a;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 80px;
}

.hero-dark__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero-dark__glow {
  position: absolute;
  top: -160px;
  left: -120px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(249,115,22,0.8) 0%, transparent 65%);
  pointer-events: none;
  animation: glowDrift 8s ease-in-out infinite;
}

.hero-dark__glow--r {
  top: auto;
  left: auto;
  right: -200px;
  bottom: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,0.6) 0%, transparent 65%);
  animation: glowDriftR 10s ease-in-out infinite;
}

@keyframes glowDrift {
  0%   { transform: translate(0px, 0px) scale(1); opacity: 1; }
  33%  { transform: translate(140px, 80px) scale(1.15); opacity: 0.85; }
  66%  { transform: translate(-80px, 120px) scale(0.9); opacity: 0.95; }
  100% { transform: translate(0px, 0px) scale(1); opacity: 1; }
}

@keyframes glowDriftR {
  0%   { transform: translate(0px, 0px) scale(1); opacity: 1; }
  33%  { transform: translate(-120px, -80px) scale(1.12); opacity: 0.8; }
  66%  { transform: translate(60px, -110px) scale(0.88); opacity: 0.9; }
  100% { transform: translate(0px, 0px) scale(1); opacity: 1; }
}

.hero-dark__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: center;
}

.hero-dark__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.hero-dark__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f97316;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(249,115,22,0.6);
}

.hero-dark__eyebrow-text {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f97316;
}

.hero-dark__title {
  font-family: var(--font-jp), var(--font-en);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero-dark__title em {
  font-style: normal;
  color: #f97316;
}

.hero-dark__desc {
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--color-text-inv);
  margin-bottom: 0;
}

.hero-dark__rule {
  width: 40px;
  height: 1px;
  background: rgba(249,115,22,0.4);
  margin: 2rem 0;
}

.hero-dark__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-dark__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 1;
}

.hero-dark__scroll-text {
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.18);
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

.hero-dark__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(249,115,22,0.7), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================================
   Hero Deco — Terminal card (right column)
   ============================================================ */
.hero-deco {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  height: 100%;
}

.hero-deco__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-deco__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
}

.hero-deco__dots {
  display: flex;
  gap: 5px;
}

.hero-deco__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.hero-deco__path {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.02em;
}

.hero-deco__list {
  list-style: none;
  padding: 0.35rem 0;
  margin: 0;
}

.hero-deco__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s ease;
  cursor: default;
}

.hero-deco__item:last-child {
  border-bottom: none;
}

.hero-deco__item:hover {
  background: rgba(255,255,255,0.04);
}

.hero-deco__badge {
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.12em 0.5em;
  border-radius: 3px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.hero-deco__badge--new {
  background: rgba(249,115,22,0.15);
  color: #f97316;
  border: 1px solid rgba(249,115,22,0.25);
}

.hero-deco__badge--upd {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-deco__name {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-deco__arrow {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.18);
  transition: color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.hero-deco__item:hover .hero-deco__arrow {
  color: #f97316;
  transform: translate(2px, -2px);
}

.hero-deco__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}

.hero-deco__footer > span {
  font-family: 'Courier New', monospace;
  font-size: 0.66rem;
  color: rgba(255,255,255,0.2);
}

.hero-deco__footer > a {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  color: #f97316;
  text-decoration: none;
  transition: opacity 0.15s;
}

.hero-deco__footer > a:hover {
  opacity: 0.75;
}

/* ============================================================
   Hero Section — Fullscreen image style (monochrome)
   ============================================================ */
.hero--fullscreen {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--color-text-inv);
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.45) 60%,
    rgba(0,0,0,.65) 100%
  );
}

.hero--fullscreen .hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  gap: 3rem;
}

.hero--fullscreen .hero__content {
  max-width: 720px;
}

.hero--fullscreen .hero__eyebrow {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.25rem;
}

.hero--fullscreen .hero__title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero--fullscreen .hero__desc {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.hero--fullscreen .hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 2rem;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding-right: 2.5rem;
}
.hero__stat-num {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,.5);
  letter-spacing: 0.08em;
}
.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
  margin-right: 2.5rem;
  flex-shrink: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  display: flex;
  justify-content: center;
}

.hero__scroll-bar {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent);
  animation: scrollBar 1.8s ease-in-out infinite;
}

@keyframes scrollBar {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   Subpage Hero — compact light header for inner pages
   ============================================================ */
.subpage-hero {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 56px 0 48px;
}

.subpage-hero__inner {
  position: relative;
}

.subpage-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.subpage-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  flex-shrink: 0;
}

.subpage-hero__eyebrow-text {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #aaa;
}

.subpage-hero__title {
  font-family: var(--font-jp), var(--font-en);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0a0a0a;
  margin-bottom: 0;
}

.subpage-hero__desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #888;
  margin-top: 1rem;
  max-width: 560px;
}

.subpage-hero .breadcrumb {
  padding-bottom: 0;
  margin-bottom: 1.25rem;
}

/* ============================================================
   Hero New — Dark / 3D Sphere (front page)
   ============================================================ */
.hero-new {
  position: relative;
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 100px;
}

.hero-new__canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.hero-new__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

.hero-new__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-new__eyebrow {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 1.5rem;
}

.hero-new__title {
  font-family: var(--font-en);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-new__sub {
  font-family: var(--font-jp);
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.hero-new__body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-text);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-new__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-dark__inner {
    grid-template-columns: 1fr;
  }

  .hero-deco {
    display: none;
  }

  .hero-dark {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-dark__scroll {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-new {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero-new__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-new__body br {
    display: none;
  }

  .subpage-hero {
    padding: 64px 0 48px;
  }
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__actions { justify-content: center; }
  .hero__visual { display: none; }
}
