/* ============================================================
   HERO / FIRST VIEW — v4: Warm / Sunset tone
   Layers: global-bg (fixed) → warm flares + rays → content → fade
   ============================================================ */

.hero {
  position: relative;
  z-index: var(--z-content);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #FFFFFF;
}

/* ============================================================
   BUILDING BACKGROUND — right side only
   ============================================================ */

.hero__building {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.7) 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.7) 100%);
}

.hero__building img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: saturate(0.3);
}

/* ============================================================
   FLARE EFFECTS — Warm sun-like light sources
   ============================================================ */

.hero__flare {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

/* Main flare — top-right, white-core sun */
.hero__flare--main {
  top: -10%;
  right: -5%;
  width: 45vw;
  height: 45vw;
  max-width: 550px;
  max-height: 550px;
}

.hero__flare--main .hero__flare-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.9) 25%,
    rgba(255, 200, 120, 0.35) 45%,
    rgba(232, 103, 42, 0.2) 60%,
    rgba(232, 103, 42, 0.03) 75%,
    transparent 90%
  );
  filter: blur(30px);
  animation: flarePulseMain 8s ease-in-out infinite alternate;
}

@keyframes flarePulseMain {
  0%   { transform: scale(0.85) rotate(0deg); opacity: 0.8; }
  100% { transform: scale(1.15) rotate(3deg); opacity: 1; }
}

/* Sub flare — right-center, soft warm */
.hero__flare--sub {
  top: 35%;
  right: 5%;
  width: 28vw;
  height: 28vw;
  max-width: 340px;
  max-height: 340px;
}

.hero__flare--sub .hero__flare-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 220, 180, 0.15) 35%,
    rgba(232, 103, 42, 0.05) 55%,
    transparent 75%
  );
  filter: blur(40px);
  animation: flarePulseSub 10s ease-in-out infinite alternate;
}

@keyframes flarePulseSub {
  0%   { transform: scale(1) translateY(0); opacity: 0.5; }
  100% { transform: scale(1.2) translateY(-30px); opacity: 0.8; }
}

/* Accent flare — bottom-right, peach warmth */
.hero__flare--accent {
  bottom: 10%;
  right: 15%;
  width: 18vw;
  height: 18vw;
  max-width: 220px;
  max-height: 220px;
}

/* Extra flare 4 — top-center-right */
.hero__flare--extra1 {
  top: 5%;
  right: 25%;
  width: 22vw;
  height: 22vw;
  max-width: 280px;
  max-height: 280px;
}

.hero__flare--extra1 .hero__flare-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 210, 150, 0.2) 40%,
    rgba(232, 103, 42, 0.06) 60%,
    transparent 80%
  );
  filter: blur(25px);
  animation: flarePulseExtra1 9s ease-in-out infinite alternate;
}

@keyframes flarePulseExtra1 {
  0%   { transform: scale(0.9) translateX(0); opacity: 0.3; }
  100% { transform: scale(1.1) translateX(10px); opacity: 0.6; }
}

/* Extra flare 5 — bottom-right */
.hero__flare--extra2 {
  bottom: 20%;
  right: 10%;
  width: 20vw;
  height: 20vw;
  max-width: 250px;
  max-height: 250px;
}

.hero__flare--extra2 .hero__flare-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 190, 130, 0.15) 35%,
    rgba(201, 168, 76, 0.05) 55%,
    transparent 75%
  );
  filter: blur(35px);
  animation: flarePulseExtra2 11s ease-in-out infinite alternate;
}

@keyframes flarePulseExtra2 {
  0%   { transform: scale(1); opacity: 0.35; }
  100% { transform: scale(1.15); opacity: 0.65; }
}

.hero__flare--accent .hero__flare-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 200, 150, 0.2) 35%,
    rgba(201, 168, 76, 0.08) 55%,
    transparent 75%
  );
  filter: blur(30px);
  animation: flarePulseAccent 12s ease-in-out infinite alternate;
}

@keyframes flarePulseAccent {
  0%   { transform: scale(0.9); opacity: 0.4; }
  100% { transform: scale(1.1); opacity: 0.7; }
}

/* ============================================================
   LIGHT RAYS — Warm diagonal streaks
   ============================================================ */

.hero__rays {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
}

.hero__ray {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232, 103, 42, 0.03) 20%,
    rgba(255, 228, 208, 0.08) 50%,
    rgba(232, 103, 42, 0.03) 80%,
    transparent 100%
  );
  transform-origin: center center;
}

.hero__ray--1 {
  top: -20%;
  right: -10%;
  width: 120%;
  height: 2px;
  transform: rotate(-25deg);
  animation: rayShimmer 6s ease-in-out infinite alternate;
}

.hero__ray--2 {
  top: 10%;
  right: -5%;
  width: 100%;
  height: 1px;
  transform: rotate(-20deg);
  animation: rayShimmer 8s ease-in-out infinite alternate-reverse;
  opacity: 0.7;
}

.hero__ray--3 {
  top: 40%;
  right: -15%;
  width: 130%;
  height: 3px;
  transform: rotate(-30deg);
  animation: rayShimmer 10s ease-in-out infinite alternate;
  opacity: 0.5;
}

@keyframes rayShimmer {
  0%   { opacity: 0.3; transform: rotate(-25deg) translateX(-5%); }
  100% { opacity: 1; transform: rotate(-25deg) translateX(5%); }
}

/* ============================================================
   LIGHT PARTICLES — floating sparkles
   ============================================================ */

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero__particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 103, 42, 0.4) 0%, rgba(255, 200, 120, 0.15) 50%, transparent 70%);
  animation: particleFloat linear infinite;
}

.hero__particle--1 { width: 6px; height: 6px; top: 20%; right: 25%; animation-duration: 7s; animation-delay: 0s; }
.hero__particle--2 { width: 4px; height: 4px; top: 40%; right: 15%; animation-duration: 9s; animation-delay: 1s; }
.hero__particle--3 { width: 8px; height: 8px; top: 15%; right: 35%; animation-duration: 6s; animation-delay: 2s; }
.hero__particle--4 { width: 3px; height: 3px; top: 55%; right: 20%; animation-duration: 11s; animation-delay: 0.5s; }
.hero__particle--5 { width: 5px; height: 5px; top: 30%; right: 10%; animation-duration: 8s; animation-delay: 3s; }
.hero__particle--6 { width: 7px; height: 7px; top: 10%; right: 18%; animation-duration: 10s; animation-delay: 1.5s; }
.hero__particle--7 { width: 4px; height: 4px; top: 65%; right: 30%; animation-duration: 7.5s; animation-delay: 4s; }
.hero__particle--8 { width: 5px; height: 5px; top: 45%; right: 40%; animation-duration: 9.5s; animation-delay: 2.5s; }

@keyframes particleFloat {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  15%  { opacity: 0.8; }
  50%  { opacity: 0.4; }
  85%  { opacity: 0.7; }
  100% { transform: translateY(-80px) translateX(20px); opacity: 0; }
}

/* ============================================================
   PRISMATIC / RAINBOW LIGHT RAYS
   ============================================================ */

.hero__prism {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
}

.hero__prism-ray {
  position: absolute;
  transform-origin: top right;
}

/* Ray 1 — Main diagonal rainbow streak */
.hero__prism-ray--1 {
  top: -15%;
  right: 5%;
  width: 180%;
  height: 6px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 120, 80, 0.25) 10%,
    rgba(255, 180, 60, 0.4) 25%,
    rgba(120, 255, 160, 0.3) 40%,
    rgba(80, 180, 255, 0.4) 55%,
    rgba(160, 100, 255, 0.3) 70%,
    rgba(255, 100, 180, 0.25) 85%,
    transparent 100%
  );
  transform: rotate(-22deg);
  filter: blur(3px);
  animation: prismShift1 8s ease-in-out infinite alternate;
}

/* Ray 2 — Secondary, offset */
.hero__prism-ray--2 {
  top: 5%;
  right: -5%;
  width: 160%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(80, 200, 255, 0.3) 15%,
    rgba(160, 100, 255, 0.4) 35%,
    rgba(255, 100, 180, 0.35) 55%,
    rgba(255, 200, 60, 0.3) 75%,
    transparent 100%
  );
  transform: rotate(-18deg);
  filter: blur(2px);
  animation: prismShift2 10s ease-in-out infinite alternate;
}

/* Ray 3 — Wide soft glow */
.hero__prism-ray--3 {
  top: 20%;
  right: 0%;
  width: 140%;
  height: 14px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 160, 60, 0.15) 20%,
    rgba(100, 220, 255, 0.25) 40%,
    rgba(180, 120, 255, 0.2) 60%,
    rgba(255, 120, 160, 0.15) 80%,
    transparent 100%
  );
  transform: rotate(-26deg);
  filter: blur(6px);
  animation: prismShift3 12s ease-in-out infinite alternate;
}

/* Ray 4 — Thin sharp accent */
.hero__prism-ray--4 {
  top: -5%;
  right: 15%;
  width: 150%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 220, 100, 0.35) 20%,
    rgba(100, 255, 200, 0.4) 45%,
    rgba(100, 150, 255, 0.35) 70%,
    transparent 100%
  );
  transform: rotate(-30deg);
  filter: blur(1px);
  animation: prismShift4 7s ease-in-out infinite alternate;
}

/* Ray 5 — Low sweep */
.hero__prism-ray--5 {
  top: 35%;
  right: -10%;
  width: 170%;
  height: 8px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 80, 120, 0.2) 15%,
    rgba(255, 200, 80, 0.3) 35%,
    rgba(80, 255, 200, 0.25) 55%,
    rgba(120, 100, 255, 0.3) 75%,
    transparent 100%
  );
  transform: rotate(-15deg);
  filter: blur(4px);
  animation: prismShift5 9s ease-in-out infinite alternate;
}

@keyframes prismShift1 {
  0%   { opacity: 0.4; transform: rotate(-22deg) translateX(-3%); }
  100% { opacity: 1;   transform: rotate(-22deg) translateX(3%); }
}

@keyframes prismShift2 {
  0%   { opacity: 0.3; transform: rotate(-18deg) translateX(-2%); }
  100% { opacity: 0.9; transform: rotate(-18deg) translateX(4%); }
}

@keyframes prismShift3 {
  0%   { opacity: 0.3; transform: rotate(-26deg) translateX(-4%); }
  100% { opacity: 0.8; transform: rotate(-26deg) translateX(2%); }
}

@keyframes prismShift4 {
  0%   { opacity: 0.5; transform: rotate(-30deg) translateX(-2%); }
  100% { opacity: 1;   transform: rotate(-30deg) translateX(3%); }
}

@keyframes prismShift5 {
  0%   { opacity: 0.3; transform: rotate(-15deg) translateX(-3%); }
  100% { opacity: 0.7; transform: rotate(-15deg) translateX(5%); }
}

/* ============================================================
   RAINBOW LENS FLARE RINGS
   ============================================================ */

.hero__lens {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
}

.hero__lens-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
}

/* Ring 1 — Large, top-right area */
.hero__lens-ring--1 {
  top: 8%;
  right: 12%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, transparent 45%, rgba(180, 120, 255, 0.2) 55%, rgba(80, 200, 255, 0.15) 70%, rgba(255, 150, 100, 0.1) 85%, transparent 95%);
  border: 2px solid rgba(180, 140, 255, 0.2);
  animation: lensFloat1 9s ease-in-out infinite alternate;
}

/* Ring 2 — Medium, center-right */
.hero__lens-ring--2 {
  top: 30%;
  right: 25%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, transparent 40%, rgba(100, 255, 180, 0.18) 55%, rgba(255, 180, 100, 0.15) 75%, transparent 90%);
  border: 1.5px solid rgba(100, 220, 255, 0.2);
  animation: lensFloat2 11s ease-in-out infinite alternate;
}

/* Ring 3 — Small, accent */
.hero__lens-ring--3 {
  top: 18%;
  right: 35%;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, transparent 35%, rgba(255, 200, 100, 0.2) 50%, rgba(120, 180, 255, 0.18) 70%, transparent 90%);
  border: 1.5px solid rgba(255, 180, 120, 0.2);
  animation: lensFloat3 7s ease-in-out infinite alternate;
}

@keyframes lensFloat1 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(-10px, 15px) scale(1.1); opacity: 1; }
}

@keyframes lensFloat2 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.4; }
  100% { transform: translate(8px, -12px) scale(0.95); opacity: 0.9; }
}

@keyframes lensFloat3 {
  0%   { transform: translate(0, 0); opacity: 0.5; }
  100% { transform: translate(-5px, 8px); opacity: 0.9; }
}

/* ============================================================
   BOTTOM FADE
   ============================================================ */

.hero__fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 250px;
  background: linear-gradient(to bottom, transparent, var(--c-bg));
  z-index: 2;
  pointer-events: none;
}

/* ============================================================
   CONTENT — LEFT ALIGNED
   ============================================================ */

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--s-container);
  margin: 0 auto;
  padding: 180px var(--s-gutter) 160px;
}

/* ---- English Main Copy — BIG IMPACT ---- */
.hero__copy-en {
  font-family: var(--f-heading-en);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 800;
  color: var(--c-text);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  max-width: 1000px;
}

.hero__copy-en-line {
  display: block;
  overflow: hidden;
}

.hero__copy-en-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

/* ---- Japanese Sub Title ---- */
.hero__title {
  font-family: var(--f-heading-ja);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 600px;
}

.hero__title-line {
  display: block;
}

/* ---- Subtitle ---- */
.hero__subtitle {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--c-text-light);
  line-height: 2.1;
  margin-bottom: 28px;
  max-width: 540px;
  opacity: 0;
}

/* ---- Tags ---- */
.hero__tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
}

.hero__tag {
  font-family: var(--f-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  padding: 7px 18px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  transition: all 0.3s var(--ease-out);
}

.hero__tag:hover {
  color: var(--c-orange);
  border-color: var(--c-orange);
  background: rgba(232, 103, 42, 0.04);
}

/* ---- Scroll Indicator ---- */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

.hero__scroll-text {
  font-family: var(--f-heading-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--c-text-muted), transparent);
  animation: scrollPulse 2.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%      { opacity: 0.15; transform: scaleY(0.4); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero__flare--main {
    width: 85vw;
    height: 85vw;
    top: -10%;
    right: -20%;
  }

  .hero__flare--sub {
    width: 55vw;
    height: 55vw;
  }

  .hero__copy-en {
    font-size: clamp(4rem, 12vw, 8rem);
  }

  .hero__title {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  }
}

@media (max-width: 768px) {
  .hero__content {
    padding: 150px var(--s-gutter) 120px;
  }

  .hero__copy-en {
    font-size: clamp(3.2rem, 14vw, 5.5rem);
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(1rem, 4vw, 1.4rem);
    max-width: 100%;
  }

  .hero__subtitle {
    font-size: 14px;
    max-width: 100%;
  }

  .hero__tags {
    gap: 8px;
  }

  .hero__tag {
    font-size: 10px;
    padding: 5px 12px;
  }

  .hero__flare--main {
    width: 90vw;
    height: 90vw;
    top: -20%;
    right: -30%;
  }

  .hero__flare--sub {
    display: none;
  }

  .hero__flare--accent {
    display: none;
  }

  .hero__rays {
    opacity: 0.5;
  }

  .hero__prism {
    opacity: 0 !important;
  }

  .hero__lens {
    display: none;
  }

  .hero__scroll {
    bottom: 24px;
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding: 120px 20px 100px;
  }

  .hero__copy-en {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }

  .hero__title {
    font-size: clamp(0.95rem, 4.5vw, 1.2rem);
  }
}

/* ============================================================
   REDUCED MOTION — アニメーション無効時のフォールバック
   GSAP が動かなくてもコンテンツが見える状態にする
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero__copy-en-char {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__title {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__subtitle {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__tags {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__scroll {
    opacity: 1 !important;
  }

  .hero__flare,
  .hero__rays,
  .hero__prism,
  .hero__lens {
    opacity: 0.6 !important;
  }

  .hero__flare-core,
  .hero__ray,
  .hero__prism-ray,
  .hero__lens-ring,
  .hero__particle {
    animation: none !important;
  }
}
