/**
 * 表紙ヒーロー：5デザイン案（?hero=glass|open|bottom|split|sheet）
 * 比較: ?hero-preview=1 を付けると右側に切替パネル表示
 */

/* ── ガラス案以外：パネル装飾をリセット ── */
body.is-landing:not(.hero-variant-glass) .hero-copy-stack {
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
}

body.is-landing:not(.hero-variant-glass) .hero-copy-stack .hero-head {
  border-bottom: none;
  padding-bottom: 0;
}

body.is-landing:not(.hero-variant-glass) .hero-copy-stack .hero-body {
  padding-top: 0;
}

body.is-landing:not(.hero-variant-glass) .hero-copy-stack .hero-title {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #fff;
  -webkit-text-fill-color: currentColor;
  filter: none;
}

body.is-landing:not(.hero-variant-glass) .hero-copy-stack .hero-eyebrow {
  display: block;
  padding-bottom: 0;
  border-bottom: none;
  color: rgba(255, 255, 255, 0.92);
}

/* ═══════════════════════════════════════
   B: open — 前作風・写真を広く見せる
   ═══════════════════════════════════════ */
body.is-landing.hero-variant-open .hero-section::before {
  background:
    linear-gradient(180deg, rgba(90, 175, 230, 0.2) 0%, transparent 38%),
    linear-gradient(0deg, rgba(6, 22, 34, 0.75) 0%, rgba(6, 22, 34, 0.35) 38%, transparent 72%);
}

body.is-landing.hero-variant-open .hero-cover-photo {
  filter: brightness(1.16) saturate(1.12) contrast(1.02);
  object-position: center 30%;
}

body.is-landing.hero-variant-open .hero-inner--editorial {
  max-width: min(28rem, 100%);
  gap: clamp(12px, 2.5vh, 18px);
}

body.is-landing.hero-variant-open .hero-copy-stack {
  padding: 0;
}

body.is-landing.hero-variant-open .hero-title {
  font-size: clamp(2rem, 9.5vw, 2.75rem);
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(0, 0, 0, 0.35);
}

body.is-landing.hero-variant-open .hero-tagline {
  font-size: clamp(1rem, 4.2vw, 1.25rem);
  line-height: 1.55;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

body.is-landing.hero-variant-open .hero-deck,
body.is-landing.hero-variant-open .hero-lead {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

body.is-landing.hero-variant-open .hero-deck {
  font-size: clamp(0.8125rem, 3.1vw, 0.9375rem);
  line-height: 1.65;
}

body.is-landing.hero-variant-open .hero-lead {
  font-size: clamp(0.75rem, 2.9vw, 0.875rem);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.94);
}

body.is-landing.hero-variant-open .hero-actions--cta {
  max-width: 100%;
}

/* ═══════════════════════════════════════
   C: bottom — コピー上段・CTA最下部（本番デフォルト）
   ═══════════════════════════════════════ */
body.is-landing.hero-variant-bottom .hero-section {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  min-height: min(100svh, 920px);
  padding:
    calc(var(--site-chrome-height, 94px) + 0px)
    clamp(12px, 3.5vw, 20px)
    clamp(6px, 1.2vh, 10px);
  box-sizing: border-box;
}

body.is-landing.hero-variant-bottom .hero-section::before {
  background:
    linear-gradient(180deg, rgba(4, 16, 26, 0.42) 0%, rgba(4, 16, 26, 0.12) 42%, transparent 58%),
    linear-gradient(
      0deg,
      rgba(4, 16, 26, 0.92) 0%,
      rgba(6, 22, 34, 0.58) 22%,
      rgba(6, 22, 34, 0.22) 42%,
      transparent 56%
    );
}

body.is-landing.hero-variant-bottom .hero-section::after {
  opacity: 0.28;
  height: 40px;
}

body.is-landing.hero-variant-bottom .hero-cover-photo {
  object-position: center 16%;
  filter: brightness(0.96) saturate(1.08) contrast(1.05);
}

body.is-landing.hero-variant-bottom .hero-inner--editorial {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: center;
  width: 100%;
  max-width: min(1240px, 100%);
  margin-inline: auto;
  padding: 0;
  gap: 0;
  min-height: 0;
}

body.is-landing.hero-variant-bottom .hero-copy-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: min(27rem, 100%);
  min-height: 0;
  margin-inline: auto;
  padding: 0 clamp(4px, 1.5vw, 8px);
  text-align: center;
}

body.is-landing.hero-variant-bottom .hero-copy-stack .hero-head {
  flex: 0 0 auto;
  width: 100%;
  gap: clamp(8px, 1.6vh, 12px);
  padding-bottom: 0;
  border-bottom: none;
}

body.is-landing.hero-variant-bottom .hero-copy-stack .hero-body {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  gap: clamp(8px, 1.6vh, 12px);
  padding-top: 0;
}

body.is-landing.hero-variant-bottom .hero-copy-stack .hero-eyebrow {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(126, 232, 244, 0.5);
  color: rgba(158, 232, 240, 0.96);
  letter-spacing: 0.22em;
  font-size: clamp(0.6875rem, 1.9vw, 0.8125rem);
  font-family: var(--font-heading);
}

body.is-landing.hero-variant-bottom .hero-copy-stack .hero-org {
  font-size: clamp(0.8125rem, 2.2vw, 0.9375rem);
  letter-spacing: 0.06em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

body.is-landing.hero-variant-bottom .hero-copy-stack .hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 13vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.08;
  color: #fff;
  text-shadow:
    0 3px 12px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(0, 0, 0, 0.35);
}

body.is-landing.hero-variant-bottom .hero-copy-stack .hero-tagline {
  font-size: clamp(1.1875rem, 5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.is-landing.hero-variant-bottom .hero-copy-stack .hero-deck {
  margin: 0;
  font-size: clamp(0.8125rem, 3.2vw, 0.9375rem);
  line-height: 1.74;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.98);
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.65),
    0 0 12px rgba(0, 0, 0, 0.35);
}

body.is-landing.hero-variant-bottom .hero-copy-stack .hero-lead {
  margin: 0;
  font-size: clamp(0.75rem, 2.8vw, 0.875rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.94);
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.6),
    0 0 10px rgba(0, 0, 0, 0.3);
}

body.is-landing.hero-variant-bottom .hero-copy-stack .hero-actions--cta {
  flex: 0 0 auto;
  width: 100%;
  max-width: min(24rem, 100%);
  margin: auto 0 0;
  padding-top: 0;
  border-top: none;
  align-self: center;
}

body.is-landing.hero-variant-bottom .hero-actions--quad {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════
   D: split — 上写真 / 下テキストパネル
   ═══════════════════════════════════════ */
body.is-landing.hero-variant-split .hero-section {
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  min-height: auto;
  overflow: visible;
}

body.is-landing.hero-variant-split .hero-section::before,
body.is-landing.hero-variant-split .hero-section::after {
  display: none;
}

body.is-landing.hero-variant-split .hero-cover-photo {
  position: relative;
  inset: auto;
  width: 100%;
  height: min(40vh, 320px);
  min-height: 200px;
  flex-shrink: 0;
  object-position: center 35%;
}

body.is-landing.hero-variant-split .hero-inner--editorial {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(20px, 4vw, 28px) clamp(16px, 4vw, 24px) clamp(16px, 3vw, 24px);
  background: linear-gradient(180deg, #071e2e 0%, #061a28 100%);
  color: #fff;
  gap: clamp(14px, 2.5vh, 20px);
  border-radius: 20px 20px 0 0;
  margin-top: -18px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
}

body.is-landing.hero-variant-split .hero-title {
  font-size: clamp(1.75rem, 7.5vw, 2.25rem);
  color: #fff;
}

body.is-landing.hero-variant-split .hero-tagline {
  font-size: clamp(0.9375rem, 3.8vw, 1.0625rem);
  color: rgba(200, 235, 248, 0.98);
}

body.is-landing.hero-variant-split .hero-deck,
body.is-landing.hero-variant-split .hero-lead {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: none;
}

body.is-landing.hero-variant-split .hero-actions--cta {
  max-width: none;
}

/* ═══════════════════════════════════════
   E: sheet — 見出しは写真上 / 本文は白シート（ハイブリッド）
   ═══════════════════════════════════════ */
body.is-landing.hero-variant-sheet .hero-section::before {
  background:
    linear-gradient(180deg, rgba(100, 185, 235, 0.22) 0%, transparent 50%),
    linear-gradient(0deg, rgba(6, 22, 34, 0.5) 0%, transparent 55%);
}

body.is-landing.hero-variant-sheet .hero-inner--editorial {
  justify-content: flex-start;
  gap: 0;
  padding: 0 clamp(12px, 3vw, 20px);
}

body.is-landing.hero-variant-sheet .hero-copy-stack {
  width: 100%;
  max-width: min(26rem, 100%);
  padding: 0;
}

body.is-landing.hero-variant-sheet .hero-head {
  padding: clamp(4px, 1vh, 8px) 0 clamp(12px, 2vh, 16px);
}

body.is-landing.hero-variant-sheet .hero-title {
  font-size: clamp(1.875rem, 8.5vw, 2.5rem);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

body.is-landing.hero-variant-sheet .hero-tagline {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

body.is-landing.hero-variant-sheet .hero-body {
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: clamp(16px, 3.5vw, 22px) clamp(14px, 3.5vw, 20px);
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f2f9fc 100%);
  box-shadow:
    0 -8px 32px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  text-align: left;
  align-items: stretch;
}

body.is-landing.hero-variant-sheet .hero-deck,
body.is-landing.hero-variant-sheet .hero-lead {
  color: #1a3d52;
  text-shadow: none;
  text-align: left;
  max-width: none;
}

body.is-landing.hero-variant-sheet .hero-deck {
  font-size: clamp(0.8125rem, 3vw, 0.9375rem);
  font-weight: 600;
  line-height: 1.65;
}

body.is-landing.hero-variant-sheet .hero-lead {
  font-size: clamp(0.75rem, 2.8vw, 0.8125rem);
  line-height: 1.62;
  color: #2d5068;
  margin-top: 8px;
}

body.is-landing.hero-variant-sheet .hero-actions--cta {
  max-width: none;
  margin-top: clamp(12px, 2vh, 16px);
  padding: 0 clamp(12px, 3vw, 20px) clamp(4px, 1vh, 8px);
}

body.is-landing.hero-variant-sheet .hero-actions--premium .hero-action.ghost {
  background: linear-gradient(165deg, #0e3a54 0%, #061a28 100%);
  color: #fff;
  border-color: rgba(126, 232, 244, 0.4);
}

body.is-landing.hero-variant-sheet .hero-actions--premium .hero-action.ghost .hero-action__hint {
  color: rgba(200, 240, 248, 0.88);
}

/* ── 比較パネル（?hero-preview=1） ── */
.hero-variant-picker {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 2500;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px 10px 10px;
  max-width: 9.5rem;
  background: rgba(6, 22, 34, 0.94);
  border: 1px solid rgba(126, 232, 244, 0.35);
  border-right: none;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 8px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-variant-picker[hidden] {
  display: none !important;
}

.hero-variant-picker__title {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #7ee8f4;
  text-transform: uppercase;
}

.hero-variant-picker__btn {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s, border-color 0.15s;
}

.hero-variant-picker__btn:hover {
  background: rgba(126, 232, 244, 0.15);
  border-color: rgba(126, 232, 244, 0.5);
}

.hero-variant-picker__btn.is-active {
  background: rgba(126, 232, 244, 0.22);
  border-color: #7ee8f4;
  color: #e8fbff;
}

.hero-variant-picker__btn small {
  display: block;
  margin-top: 2px;
  font-size: 0.5625rem;
  font-weight: 500;
  opacity: 0.75;
}

@media (max-width: 768px) {
  body.is-landing.hero-variant-split .hero-cover-photo {
    height: min(36vh, 280px);
  }

  body.is-landing.hero-variant-split .hero-inner--editorial {
    margin-top: -14px;
    padding-top: 18px;
  }

  body.is-landing.hero-variant-open .hero-inner--editorial {
    max-width: 100%;
  }

  body.is-landing.hero-variant-bottom .hero-section {
    min-height: min(100svh, 900px);
    padding:
      calc(var(--site-chrome-height, 70px) + 0px)
      12px
      max(6px, env(safe-area-inset-bottom, 0px));
  }

  body.is-landing.hero-variant-bottom .hero-inner--editorial {
    flex: 1;
    min-height: 0;
  }

  body.is-landing.hero-variant-bottom .hero-copy-stack {
    max-width: min(27rem, 100%);
    padding: 0 4px;
  }

  body.is-landing.hero-variant-bottom .hero-copy-stack .hero-title {
    font-size: clamp(2.75rem, 12.5vw, 3.5rem);
  }

  body.is-landing.hero-variant-bottom .hero-copy-stack .hero-tagline {
    font-size: clamp(1.0625rem, 4.4vw, 1.25rem);
  }

  body.is-landing.hero-variant-bottom .hero-copy-stack .hero-deck {
    font-size: clamp(0.8125rem, 3.4vw, 0.9375rem);
  }

  body.is-landing.hero-variant-bottom .hero-copy-stack .hero-lead {
    font-size: clamp(0.9375rem, 4vw, 1.0625rem);
  }

  body.is-landing.hero-variant-bottom .hero-copy-stack .hero-actions--cta {
    margin-top: auto;
    margin-bottom: clamp(14px, 3.2vh, 22px);
  }

  body.is-landing.hero-variant-sheet .hero-inner--editorial {
    padding-inline: 12px;
  }

  .hero-variant-picker {
    top: auto;
    bottom: calc(var(--mobile-cta-height, 76px) + 12px);
    right: 8px;
    transform: none;
    border-radius: 12px;
    border: 1px solid rgba(126, 232, 244, 0.35);
    max-width: min(10rem, 42vw);
  }
}

/* ── PC（769px〜）：表紙 C 案をワイド画面向けに調整 ── */
@media (min-width: 769px) {
  body.is-landing.hero-variant-bottom .hero-section {
    min-height: min(88vh, 840px);
    padding:
      calc(var(--site-chrome-height, 94px) + clamp(16px, 4vh, 40px))
      clamp(32px, 5vw, 72px)
      clamp(10px, 2vh, 16px);
    justify-content: stretch;
    align-items: stretch;
  }

  body.is-landing.hero-variant-bottom .hero-section::before {
    background:
      linear-gradient(180deg, rgba(120, 190, 235, 0.14) 0%, transparent 55%),
      linear-gradient(
        0deg,
        rgba(4, 16, 26, 0.72) 0%,
        rgba(6, 22, 34, 0.36) 34%,
        transparent 62%
      );
  }

  body.is-landing.hero-variant-bottom .hero-cover-photo {
    object-position: center 20%;
    filter: brightness(0.96) saturate(1.08) contrast(1.05);
  }

  body.is-landing.hero-variant-bottom .hero-inner--editorial {
    width: 100%;
    max-width: min(960px, 92vw);
    flex: 1;
    min-height: 0;
    padding-bottom: 0;
  }

  body.is-landing.hero-variant-bottom .hero-copy-stack {
    max-width: min(44rem, 100%);
  }

  body.is-landing.hero-variant-bottom .hero-copy-stack .hero-title {
    font-size: clamp(3.25rem, 5.6vw, 4.5rem);
  }

  body.is-landing.hero-variant-bottom .hero-copy-stack .hero-tagline {
    font-size: clamp(1.3125rem, 2.3vw, 1.5625rem);
  }

  body.is-landing.hero-variant-bottom .hero-copy-stack .hero-deck {
    font-size: clamp(0.9375rem, 1.35vw, 1.0625rem);
    max-width: 36em;
    margin-inline: auto;
  }

  body.is-landing.hero-variant-bottom .hero-copy-stack .hero-lead {
    font-size: clamp(0.875rem, 1.15vw, 0.9375rem);
    max-width: 34em;
    margin-inline: auto;
  }

  body.is-landing.hero-variant-bottom .hero-copy-stack .hero-actions--cta {
    max-width: min(24rem, 100%);
    margin: auto 0 0;
    margin-inline: auto;
    margin-bottom: clamp(12px, 2vh, 18px);
  }
}
