/* home.css - トップページ専用（ヒーロー・近くの公演・エリア・アンカー） */

.anchor { display: block; height: 0; scroll-margin-top: calc(var(--header-h) + 16px); }
@media (max-width: 899px) { .anchor { scroll-margin-top: calc(var(--header-h) + 52px); } }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--bg);
}
.hero__slides { position: relative; }
.hero__note {
  max-width: 1760px;
  margin: 0 auto;
  padding: 8px var(--gutter);
  color: var(--ink-2);
  font-size: 13px;
}
.hero__slide {
  position: relative;
  display: block;
  min-height: clamp(420px, 62vh, 640px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(145deg, hsl(var(--hue, 210) 40% 88%), hsl(calc(var(--hue, 210) + 30) 35% 80%));
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  filter: blur(28px) saturate(1.15);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 左のテキスト領域だけ白を強め、右のポスター側はぼかした背景を見せる */
  background:
    linear-gradient(90deg, rgba(246, 247, 250, 0.86) 0%, rgba(246, 247, 250, 0.55) 40%, rgba(246, 247, 250, 0.05) 100%),
    rgba(246, 247, 250, 0.22);
}
@media (max-width: 719px) {
  .hero__bg::after {
    background:
      linear-gradient(180deg, rgba(246, 247, 250, 0.15) 0%, rgba(246, 247, 250, 0.78) 58%, rgba(246, 247, 250, 0.95) 100%),
      rgba(246, 247, 250, 0.2);
  }
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  max-width: 1760px;
  min-height: clamp(420px, 62vh, 640px);
  margin: 0 auto;
  padding: 22px var(--gutter) 34px;
}
.hero__poster {
  order: -1;
  display: block;
  justify-self: center;
  width: min(72vw, calc(46vh * 5 / 7));
  max-height: 46vh;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-3);
  background: var(--surface-2);
}
.hero__poster img { width: 100%; height: 100%; aspect-ratio: 5 / 7; object-fit: cover; }
.hero__poster--landscape { width: min(88vw, 520px); }
.hero__poster--landscape img { aspect-ratio: auto; object-fit: contain; background: #fff; }

.hero__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hero__kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hero__time { color: var(--ink-2); font-family: var(--font-num), var(--font); font-size: 14px; font-weight: 700; }
.hero__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.hero__title a:hover { color: var(--accent); }
.hero__venue { color: var(--ink-2); font-size: 15px; font-weight: 700; }
.hero__venue::before { content: "🏛 "; }
.hero__pref { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 400; }
.hero__line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.hero__label {
  display: inline-block;
  margin-right: 8px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(31, 41, 51, 0.08);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: 1px;
}
.hero__copy { color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.5; }
.hero__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}
.hero__text .distance { font-size: 14px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

@media (min-width: 720px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(20px, 4vw, 56px);
    padding: 34px var(--gutter) 44px;
  }
  .hero__poster {
    order: 2;
    justify-self: end;
    width: min(100%, calc(60vh * 5 / 7));
    max-height: 60vh;
    border-radius: 16px;
  }
  .hero__poster--landscape { width: min(100%, 560px); }
  .hero__text { order: 1; gap: 10px; }
}
@media (min-width: 1200px) {
  .hero__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); }
}

.hero__controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 1760px;
  margin: -22px auto 0;
  padding: 0 var(--gutter) 8px;
}
.hero__arrow,
.hero__pause {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: var(--shadow-1);
  font-size: 20px;
  line-height: 1;
}
.hero__pause { font-size: 11px; letter-spacing: -1px; }
.hero__pause[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hero__arrow:hover,
.hero__pause:hover { background: #fff; box-shadow: var(--shadow-2); }
.hero__dots { display: flex; align-items: center; gap: 4px; padding: 0 4px; }
.hero__dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  position: relative;
}
.hero__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(31, 41, 51, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, background 0.2s ease, border-radius 0.2s ease;
}
.hero__dot[aria-selected="true"]::before { width: 22px; border-radius: 4px; background: var(--accent); }
.hero__dot:hover::before { background: var(--accent); }

.hero--empty { min-height: 44vh; display: grid; place-items: center; background: linear-gradient(145deg, #e9eef7, #f6f7fa); }
.hero__empty { display: grid; gap: 8px; justify-items: center; padding: 48px var(--gutter); text-align: center; }
.hero__empty h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; }
.hero__empty p { color: var(--ink-2); }
.hero__empty-icon { font-size: 44px; }

/* ---------- 近くの公演 ---------- */
.nearby { margin-top: 26px; }
.nearby[data-state="loading"] .nearby__idle { opacity: 0.6; }
.nearby__head { align-items: center; }
.nearby__title { display: inline-flex; align-items: center; gap: 4px; }
.nearby__radius { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.nearby__radius .chip { min-height: 30px; padding: 0 10px; font-size: 12px; }
.chip--active,
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.chip[aria-pressed="true"]:hover { color: var(--accent-ink); }
.nearby__frag .row { margin-top: 10px; }
.nearby__frag .row + .row { margin-top: 22px; }
.nearby__empty { margin-top: 6px; }

/* ---------- エリアから探す ---------- */
.areas { margin-top: 40px; }
.areas__inner { max-width: 1760px; margin: 0 auto; }
.areas__head { margin-bottom: 14px; }
.areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 0 var(--gutter);
}
.areas__region {
  padding: 4px 14px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.areas__region summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  list-style: none;
}
.areas__region summary::-webkit-details-marker { display: none; }
.areas__region summary::after { content: "▾"; color: var(--muted); font-size: 12px; transition: transform 0.15s ease; }
.areas__region:not([open]) summary::after { transform: rotate(-90deg); }
.areas__region-count { margin-left: auto; margin-right: 8px; color: var(--muted); font-family: var(--font-num), var(--font); font-size: 12px; font-weight: 700; }
.areas__region .chips { padding-top: 6px; }
