/* Hero Section */
.hero-pin {
  height: 200vh;
}

.hero {
  display: grid;
  place-items: center;
  text-align: center;
  /* 固定ナビ分(約80px)を考慮して視覚中央に */
  min-height: calc(100vh - 80px);
  padding-top: 80px;
  position: sticky;
  top: 0;
  overflow: hidden;
  color: var(--color-white);
  z-index: 1;
  will-change: transform;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/jpg/bg-hero-black8.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  /* opacity: 0.3; */
}

.hero > *:not(.hero__bg) {
  /* position: relative; */
  z-index: 1;
}

.hero__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
  align-items: center;
  position: relative;
}

/* 前面に配置 */
.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1;
  font-weight: bold;
}
.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(50px);
  white-space: nowrap;
}
.hero__subtitle {
  font-family: var(--font-english);
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.1em;
  opacity: 0;
}
.hero__description {
  margin-bottom: var(--spacing-sm);
  opacity: 0;
}
.hero__description p {
  font-size: 0.75rem;
  color: var(--color-gray);
  line-height: 1.6;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  opacity: 0;
}

/* ビジュアルは画面高の中央に配置（背面） */
.hero__visual {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  margin-top: -50px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero__visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__kanji-logo {
  width: auto;
  height: 180px;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.8;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.3));
  transition:
    transform 0.1s ease-out,
    opacity 0.1s ease-out;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform, opacity;
}
.hero__kanji-logo--scrolling {
  animation: none;
  transition:
    transform 0.1s ease-out,
    opacity 0.1s ease-out,
    filter 0.1s ease-out;
  filter: drop-shadow(0 0 30px rgba(246, 191, 0, 0.4))
    drop-shadow(0 0 60px rgba(0, 0, 0, 0.5));
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
}
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--color-gray);
  font-family: var(--font-english) !important;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}
.scroll-indicator__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gray), transparent);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

/* Hero Liquid CTA size (baseline for mobile) */
.hero__content .hero__liquid-cta {
  --lg-min-width: 180px;
  --lg-min-height: 40px;
  margin-right: 0;
  display: none;
}

/* 既存のmax系メディアクエリはベースと同値で競合回避 */
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    text-align: center;
  }
}
@media (max-width: 768px) {
  .hero-pin {
    height: 200vh;
  }
  .hero__title {
    font-size: 2rem;
  }
  .hero__cta {
    flex-direction: column;
    align-items: center;
  }
  .hero__kanji-logo {
    height: 180px;
  }
}
@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }
  .hero__kanji-logo {
    height: 180px;
  }
}
