/* ===== Hero Section ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background-color: #1a1a1a;
}

/* Background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.18) saturate(0.8);
  transition: transform 8s ease-out;
}

.hero.is-loaded .hero__bg img {
  transform: scale(1.03);
}

/* Gradient overlays */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(26,26,26,0.7) 0%, transparent 50%),
    linear-gradient(to top, rgba(26,26,26,0.6) 0%, transparent 40%);
}

/* Subtle noise texture */
.hero__texture {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}

/* Content layout */
.hero__content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr;
  min-height: 100vh;
  padding: 6rem 4rem 3rem;
}

/* Left side: horizontal text */
.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4rem;
  max-width: 680px;
}

.hero__company {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: #f5b274;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s ease-out 0.3s forwards;
}

.hero__subtitle {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 2.2;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s ease-out 0.8s forwards;
  text-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.hero__cta {
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s ease-out 1.2s forwards;
}

.hero__cta a {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #faf8f5;
  text-decoration: none;
  letter-spacing: 0.12em;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: all 0.4s ease;
}

.hero__cta a:hover {
  border-bottom-color: #F19A4A;
  color: #f5b274;
}

.hero__cta a::after {
  content: '\2192';
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.hero__cta a:hover::after {
  transform: translateX(6px);
}

/* Tate-chu-yoko: horizontal-in-vertical for "AI" */
.tcy {
  -webkit-text-combine: horizontal;
  -ms-text-combine-horizontal: all;
  text-combine-upright: all;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0;
}

/* Right side: vertical text */
.hero__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
}

.hero__vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  gap: 1.8rem;
  opacity: 0;
  animation: heroFadeIn 1.5s ease-out 0.5s forwards;
}

.hero__vertical-line1 {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 500;
  color: #faf8f5;
  letter-spacing: 0.18em;
  line-height: 1.8;
}

.hero__vertical-line2 {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.8;
  color: #F19A4A;
}

/* Decorative bottom line */
.hero__deco-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10;
  background: linear-gradient(to right, #F19A4A, transparent 60%);
  transform: scaleX(0);
  transform-origin: left;
  animation: heroLineReveal 1.2s ease-out 1.4s forwards;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: heroFadeIn 1s ease-out 2s forwards;
}

.hero__scroll-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f5b274;
  animation: heroScrollDown 2s ease-in-out infinite;
}

/* ===== Hero Animations ===== */
@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes heroLineReveal {
  to {
    transform: scaleX(1);
  }
}

@keyframes heroScrollDown {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ===== Hero Responsive ===== */
@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    padding: 5rem 2rem 2rem;
  }

  .hero__right {
    order: -1;
    justify-content: flex-start;
    padding-right: 0;
    padding-top: 2rem;
    padding-bottom: 1rem;
  }

  .hero__vertical {
    gap: 1.2rem;
  }

  .hero__vertical-line1,
  .hero__vertical-line2 {
    font-size: 1.4rem;
    text-shadow: 0 0 40px rgba(0,0,0,0.6), 0 0 10px rgba(0,0,0,0.3);
  }

  .hero__left {
    padding-bottom: 5rem;
    max-width: 100%;
  }

  .hero__subtitle {
    font-size: 0.92rem;
    line-height: 2.1;
  }
}

@media (max-width: 600px) {
  .hero__content {
    padding: 1.5rem 1.5rem;
  }

  .hero__right {
    padding-top: 4rem;
  }

  .hero__vertical-line1,
  .hero__vertical-line2 {
    font-size: 1.2rem;
  }

  .hero__subtitle {
    font-size: 0.85rem;
    line-height: 2;
  }
}
