/*
 * hero.css - ヒーローセクション
 * Why: TOPバナー。PC/SP別画像の<picture>ベタ張り + テキストオーバーレイ。
 *      clip-pathによる写真整形は行わず、完成画像を1枚で配置する方針。
 */

.section-hero {
  height: 100svh;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--color-magenta);
}

@supports (height: 100svh) {
  .section-hero {
    height: 100svh;
  }
}

.admin-bar .section-hero {
  height: calc(100svh - 32px);
  height: calc(100vh - 32px);
}

@supports (height: 100svh) {
  .admin-bar .section-hero {
    height: calc(100svh - 32px);
  }
}

@media (max-width: 782px) {
  .admin-bar .section-hero {
    height: calc(100svh - 46px);
    height: calc(100vh - 46px);
  }
}

/* 背景画像: <picture> + <img> でフル表示 */
.section-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.section-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* プレースホルダー: 画像未設定時 */
.section-hero__bg .placeholder-image {
  width: 100%;
  height: 100%;
}

.section-hero__menu-trigger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 120;
  width: 128px;
  height: 128px;
  border: 2px solid #333;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.section-hero__scroll-indicator {
  position: absolute;
  right: 36px;
  bottom: 0px;
  z-index: 40;
  color: var(--color-black);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.section-hero__scroll-text {
  font-family: var(--font-en-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  line-height: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.section-hero__scroll-line {
  width: 1px;
  height: 76px;
  background: currentColor;
  opacity: 0.85;
}

.section-hero__scroll-indicator:hover,
.section-hero__scroll-indicator:focus-visible {
  opacity: 0.75;
}

.section-hero__menu-label {
  font-family: var(--font-en-heading);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
}

.section-hero__menu-plus {
  font-size: 2rem;
  line-height: 1;
  font-weight: 400;
}

.admin-bar .section-hero__menu-trigger {
  top: calc(20px + 32px);
}

/* テキストオーバーレイ: 画像の上に配置 */
.section-hero__inner {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
}

.section-hero__image-credit {
  margin: 10px 0 0;
  padding-left: 12px;
  font-family: var(--font-en-ui);
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.72);
}

/* テキストブロック全体: absolute配置のコンテナ */
.section-hero__text {
  color: var(--color-white);
  max-width: 50%;
}

/* ============================================================
   タイトルラップ: SUDAN中央配置
   ============================================================ */
.section-hero__title-wrap {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: auto;
}

.section-hero__logo-picture {
  display: block;
}

/* ロゴ画像（ACFで設定時 or テスト用SVG） */
.section-hero__logo {
  display: block;
  width: 1320px;
  height: auto;
  max-width: none;
}

@media (max-width: 768px) {
  .section-hero__logo {
    width: 700px;
  }

  .section-hero__menu-trigger {
    position: fixed;
    top: auto;
    bottom: 16px;
    right: 16px;
    width: 88px;
    height: 88px;
    gap: 0px;
  }

  .section-hero__menu-label {
    font-size: 1rem;
  }

  .section-hero__menu-plus {
    font-size: 1.75rem;
  }

  .section-hero__scroll-indicator {
    left: 20px;
    right: auto;
    bottom: 0px;
  }

  .section-hero__scroll-text {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
  }

  .section-hero__scroll-line {
    height: 56px;
  }
}

@media (max-width: 768px) {
  .admin-bar .section-hero__menu-trigger {
    top: auto;
    bottom: 16px;
  }
}

.section-hero__tagline {
  font-family: var(--font-ja);
  font-size: clamp(0.875rem, 1.5vw, 1.25rem);
  margin-top: var(--space-lg);
  line-height: 1.8;
  max-width: 75ch;
}

@media (max-width: 767px) {
  .section-hero__text {
    max-width: 100%;
    text-align: center;
    padding-top: calc(var(--header-height) + var(--space-xl));
  }

  .section-hero__title {
    font-size: clamp(2.5rem, 15vw, 5rem);
  }

  .section-hero__inner {
    align-items: center;
  }

  .section-hero__image-credit {
    margin-top: 8px;
    padding-left: 10px;
    font-size: 0.6875rem;
  }
}

/* TODO: デザインカンプに合わせてピクセル再現を進める */
