/* =========================================================
   ヒーロー（3案・body[data-hero] で切替）
   案1 photo : 写真主役 — 大きな写真+重なる実績カード
   案2 shape : タイポ主役 — 図形パターン+マーカー強調
   案3 band  : フルワイド写真帯+前面コピーパネル
   ========================================================= */

.hero-variant { display: none; }
body[data-hero="photo"] .hero-photo { display: block; }
body[data-hero="shape"] .hero-shape { display: block; }
body[data-hero="band"]  .hero-band  { display: block; }

/* 共通：ふんわり登場
   表示状態を基準（base = 見える）にし、JSが body.is-loaded を付けたときだけ
   非表示→表示へアニメーション。これにより JS無効・印刷・PDF書き出し時は
   常に本文が表示される（停止フレームの opacity:0 で固まらない）。*/
@media (prefers-reduced-motion: no-preference) {
  body.is-loaded .hero-rise { animation: heroRise 0.7s var(--ease-out) backwards; }
  body.is-loaded .hero-rise.d1 { animation-delay: 0.08s; }
  body.is-loaded .hero-rise.d2 { animation-delay: 0.16s; }
  body.is-loaded .hero-rise.d3 { animation-delay: 0.24s; }
  @keyframes heroRise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
@media print {
  .hero-rise { opacity: 1 !important; transform: none !important; animation: none !important; }
}

.hero-headline {
  font-weight: 900;
  font-size: var(--fs-h1);
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  margin: 0 0 var(--space-5);
  text-wrap: pretty;
}
.hero-sub {
  color: var(--color-muted);
  font-size: var(--fs-body);
  font-weight: 500;
  max-width: 28em;
  margin: 0 0 var(--space-6);
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* マーカー風アクセント（蛍光ペンの下塗り） */
.marker {
  background: linear-gradient(transparent 62%, var(--color-accent-soft) 62%, var(--color-accent-soft) 94%, transparent 94%);
  padding: 0 2px;
}

/* ---------------------------------------------------------
   案1：写真主役
   --------------------------------------------------------- */
.hero-photo {
  position: relative;
  padding: var(--space-8) 0 var(--space-9);
  background:
    radial-gradient(circle at 92% 8%, rgba(192,139,60,0.10), transparent 46%),
    var(--color-bg);
  overflow: hidden;
}
.hero-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--space-7);
  align-items: center;
}
.hero-photo-visual { position: relative; }
.hero-photo-visual image-slot {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  display: block;
  box-shadow: var(--shadow-lg);
}
.hero-photo-visual::before {
  content: "";
  position: absolute;
  right: -28px; top: -28px;
  width: 132px; height: 132px;
  background: var(--color-accent-soft);
  opacity: 0.5;
  border-radius: var(--radius-pill);
  z-index: -1;
}
.hero-stat-card {
  position: absolute;
  left: -20px; bottom: -28px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  gap: var(--space-6);
}
.hero-stat-card .num {
  font-weight: 900;
  font-size: 30px;
  line-height: 1.2;
  color: var(--color-primary);
}
.hero-stat-card .num small {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-accent);
  margin-left: 2px;
}
.hero-stat-card .lbl {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ---------------------------------------------------------
   案2：タイポ主役＋図形
   --------------------------------------------------------- */
.hero-shape {
  position: relative;
  padding: var(--space-10) 0;
  background: var(--color-bg);
  overflow: hidden;
  text-align: center;
}
.hero-shape .container { position: relative; z-index: 1; }
.hero-shape .hero-headline { font-size: var(--fs-display); line-height: 1.4; }
.hero-shape .hero-sub { margin-left: auto; margin-right: auto; max-width: 34em; }
.hero-shape .hero-actions { justify-content: center; }
.hero-shape-deco { position: absolute; border-radius: var(--radius-pill); pointer-events: none; }
.hero-shape-deco.c1 { width: 220px; height: 220px; background: var(--color-bg-alt); left: -60px; top: 40px; }
.hero-shape-deco.c2 { width: 120px; height: 120px; border: 10px solid var(--color-accent-soft); right: 8%; top: 56px; opacity: 0.7; }
.hero-shape-deco.c3 { width: 280px; height: 280px; background: var(--color-bg-alt); right: -90px; bottom: -110px; }
.hero-shape-deco.c4 { width: 72px; height: 72px; background: var(--color-accent-soft); opacity: 0.55; left: 12%; bottom: 64px; }
.hero-shape-deco.dots {
  left: 7%; top: 52%;
  width: 88px; height: 56px;
  border-radius: 0;
  background-image: radial-gradient(var(--color-line) 3px, transparent 3px);
  background-size: 16px 16px;
}
.hero-trust-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7);
}
.hero-trust-pills .pill {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-muted);
}
.hero-trust-pills .pill strong {
  font-weight: 900;
  font-size: 22px;
  color: var(--color-primary);
}
.hero-trust-pills .pill small {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-accent);
}

/* ---------------------------------------------------------
   案3：フルワイド写真帯
   --------------------------------------------------------- */
.hero-band { position: relative; background: var(--color-bg); padding-bottom: var(--space-8); }
.hero-band-media {
  position: relative;
  height: clamp(440px, 56vh, 600px);
}
.hero-band-media image-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero-band-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,35,64,0.55) 0%, rgba(20,35,64,0.18) 55%, transparent 80%);
  pointer-events: none;
}
.hero-band-panel {
  position: relative;
  margin-top: -120px;
  z-index: 2;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-7) var(--space-7) var(--space-6);
  max-width: 720px;
}
.hero-band-panel::before {
  content: "";
  position: absolute;
  left: var(--space-7); top: 0;
  width: 72px; height: 6px;
  background: var(--color-accent);
  border-radius: 0 0 var(--radius-pill) var(--radius-pill);
}
.hero-band-panel .hero-headline { font-size: clamp(28px, 3.2vw, 42px); }
.hero-band-panel .hero-sub { margin-bottom: var(--space-5); }

/* ---------------------------------------------------------
   レスポンシブ（ヒーロー）
   --------------------------------------------------------- */
@media (max-width: 880px) {
  .hero-photo { padding: var(--space-6) 0 var(--space-8); }
  .hero-photo-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-photo-visual { order: -1; }
  .hero-photo-visual::before { display: none; }
  .hero-stat-card {
    position: static;
    margin-top: var(--space-3);
    justify-content: space-between;
    gap: var(--space-4);
  }
  .hero-stat-card .num { font-size: 24px; }

  .hero-shape { padding: var(--space-8) 0; text-align: left; }
  .hero-shape .hero-actions { justify-content: flex-start; }
  .hero-shape .hero-sub { margin-left: 0; }
  .hero-trust-pills { justify-content: flex-start; }
  .hero-shape-deco.c1, .hero-shape-deco.dots, .hero-shape-deco.c4 { display: none; }

  .hero-band-media { height: 320px; }
  .hero-band-panel {
    margin-top: -64px;
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-md);
  }
  .hero-band-panel::before { left: var(--space-5); }
}
