/**
 * 表紙ヒーロー：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):not(.hero-variant-bottom) .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 — 下寄せ・ガラスなし（本番デフォルト）
   ═══════════════════════════════════════ */
body.is-landing.hero-variant-bottom .hero-section {
  justify-content: flex-end;
  align-items: stretch;
  min-height: min(92vh, 860px);
}

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

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

body.is-landing.hero-variant-bottom .hero-cover-photo {
  object-position: center 24%;
  filter: brightness(1.18) saturate(1.12) contrast(1.03);
}

body.is-landing.hero-variant-bottom .hero-inner--editorial {
  justify-content: flex-end;
  width: 100%;
  max-width: min(1240px, 100%);
  padding: 0 clamp(12px, 3.5vw, 20px) clamp(6px, 1.5vh, 12px);
  gap: 0;
}

body.is-landing.hero-variant-bottom .hero-copy-stack {
  width: 100%;
  max-width: min(22.5rem, 100%);
  margin-inline: auto;
  padding: 0 clamp(4px, 1.5vw, 8px);
  text-align: center;
}

body.is-landing.hero-variant-bottom .hero-copy-stack .hero-head {
  gap: clamp(6px, 1.2vh, 10px);
  padding-bottom: 0;
  border-bottom: none;
}

body.is-landing.hero-variant-bottom .hero-copy-stack .hero-body {
  gap: clamp(8px, 1.5vh, 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.625rem, 1.7vw, 0.75rem);
  font-family: var(--font-heading);
}

body.is-landing.hero-variant-bottom .hero-copy-stack .hero-org {
  font-size: clamp(0.625rem, 1.8vw, 0.75rem);
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

body.is-landing.hero-variant-bottom .hero-copy-stack .hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 10vw, 3.25rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.12;
  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(0.9375rem, 3.8vw, 1.125rem);
  font-weight: 600;
  line-height: 1.5;
  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, 2.8vw, 0.9375rem);
  line-height: 1.68;
  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.6vw, 0.875rem);
  line-height: 1.65;
  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 {
  width: 100%;
  max-width: none;
  margin: clamp(10px, 1.8vh, 14px) 0 0;
  padding-top: clamp(8px, 1.6vh, 12px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  gap: clamp(8px, 2.5vw, 12px);
}

body.is-landing.hero-variant-bottom .hero-actions--premium .hero-action--premium {
  min-height: 50px;
  border-radius: 11px;
}

/* ═══════════════════════════════════════
   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(88svh, 820px);
    padding:
      calc(var(--site-chrome-height, 70px) + 8px)
      12px
      calc(var(--mobile-cta-height, 76px) + 14px);
  }

  body.is-landing.hero-variant-bottom .hero-copy-stack {
    max-width: 100%;
    padding: 0 4px;
  }

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

  body.is-landing.hero-variant-bottom .hero-copy-stack .hero-actions--cta {
    margin-top: 10px;
    padding-top: 10px;
  }

  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);
  }
}
