/* 4.5時間テレビ — たたき台 */

:root {
  --sky-top: #7ec8f5;
  --sky-bottom: #b8e4ff;
  --blue-deep: #1e5aa8;
  --yellow: #ffd93d;
  --yellow-dark: #f5c400;
  --red: #e63939;
  --red-dark: #c41e1e;
  --text: #1a1a1a;
  --white: #fff;
  --shadow: 0 4px 14px rgba(30, 90, 168, 0.25);
  --radius-pill: 999px;
  --radius-bar: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic UI",
    "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 45%, #e8f6ff 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* 放送情報バー */
.broadcast-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, var(--blue-deep) 0%, #2a7bc8 100%);
  color: var(--white);
  padding: 14px 16px 16px;
  box-shadow: var(--shadow);
}

.broadcast-bar__shell {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media (min-width: 640px) {
  .broadcast-bar__shell {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
  }
}

.broadcast-bar__brand {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.broadcast-bar__logo {
  display: block;
  height: clamp(56px, 14vw, 88px);
  width: auto;
  max-width: min(420px, 100%);
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.75)) drop-shadow(0 2px 4px rgba(255, 255, 255, 0.5));
}

@media (max-width: 639px) {
  .broadcast-bar {
    background: linear-gradient(
        155deg,
        rgba(30, 90, 168, 0.88) 0%,
        rgba(18, 60, 120, 0.82) 45%,
        rgba(25, 75, 140, 0.85) 100%
      ),
      url("../images/bg.jpg") center / cover no-repeat;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .broadcast-bar__logo {
    height: clamp(84px, 26vw, 132px);
    max-width: min(96vw, 520px);
  }
}

.broadcast-bar__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .broadcast-bar__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 20px;
    align-items: center;
    text-align: right;
  }
}

.broadcast-bar__schedule {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 20px 14px;
  background: linear-gradient(165deg, #ffffff 0%, #fff9e6 55%, #ffe566 100%);
  border-radius: 18px;
  border: 3px solid var(--white);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12), 0 10px 28px rgba(0, 0, 0, 0.2);
  max-width: 100%;
}

@media (min-width: 640px) {
  .broadcast-bar__schedule {
    align-items: flex-end;
  }
}

.broadcast-bar__schedule-label {
  display: inline-block;
  padding: 2px 12px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: var(--white);
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.broadcast-bar__date {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 14px;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .broadcast-bar__date {
    justify-content: flex-end;
  }
}

.broadcast-bar__date-main {
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  font-weight: 900;
  color: var(--blue-deep);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.broadcast-bar__date-dow {
  font-size: 0.72em;
  font-weight: 800;
  margin-left: 0.06em;
}

.broadcast-bar__date-time {
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.06em;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-pill);
  border: 2px solid var(--blue-deep);
}

.broadcast-bar__live {
  margin: 0;
  display: inline-block;
  background: var(--yellow);
  color: var(--text);
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  font-weight: 900;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--white);
  box-shadow: 0 2px 0 var(--yellow-dark), 0 4px 12px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.06em;
}

/* メインビジュアル（スライダー） */
.hero {
  margin-top: 24px;
  margin-bottom: 8px;
}

.hero__frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(30, 90, 168, 0.2), 0 0 0 4px var(--white);
  background: var(--white);
  line-height: 0;
}

.hero-slider {
  position: relative;
  outline: none;
  line-height: normal;
}

.hero-slider__progress {
  height: 6px;
  background: rgba(30, 90, 168, 0.12);
  border-bottom: 1px solid rgba(30, 90, 168, 0.08);
}

.hero-slider__progress-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, var(--yellow-dark), var(--yellow));
  transition: width 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__progress-fill {
    transition: none;
  }
}

.hero-slider__stage {
  position: relative;
}

.hero-slider:focus-visible {
  box-shadow: 0 12px 40px rgba(30, 90, 168, 0.2), 0 0 0 4px var(--white), 0 0 0 6px var(--sky-top);
}

.hero-slider__viewport {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d3d73;
}

.hero-slider__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__track {
    transition: none;
  }
}

.hero-slider__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
}

.hero__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  min-width: 72px;
  height: 48px;
  padding: 0 12px;
  border: none;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue-deep);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s, transform 0.15s;
}

.hero-slider__btn:hover {
  background: var(--white);
}

.hero-slider__btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.hero-slider__btn:active {
  transform: translateY(-50%) scale(0.96);
}

.hero-slider__btn--prev {
  left: 10px;
}

.hero-slider__btn--next {
  right: 10px;
}

.hero-slider__btn-icon {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  margin-top: -1px;
}

.hero-slider__btn-text {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 12px 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(30, 90, 168, 0.45);
  backdrop-filter: blur(4px);
}

.hero-slider__dots::before {
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.04em;
  margin-right: 4px;
  white-space: nowrap;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero-slider__dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-slider__dot.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  transform: scale(1.15);
}

.hero-slider__dot:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .hero-slider__btn {
    min-width: 52px;
    height: 44px;
    padding: 0 8px;
    flex-direction: column;
    gap: 0;
    line-height: 1.1;
  }

  .hero-slider__btn--prev {
    left: 6px;
  }

  .hero-slider__btn--next {
    right: 6px;
  }

  .hero-slider__btn-icon {
    font-size: 1.35rem;
  }

  .hero-slider__btn-text {
    font-size: 0.62rem;
  }

  .hero-slider__dots::before {
    content: "";
    margin: 0;
    width: 0;
    overflow: hidden;
  }
}

/* 出演者 */
.cast {
  margin-top: 32px;
}

.cast__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--blue-deep);
}

.cast__title-badge {
  background: linear-gradient(180deg, #2a7bc8 0%, var(--blue-deep) 100%);
  color: var(--white);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.cast__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 20px);
}

@media (min-width: 768px) {
  .cast__grid {
    gap: 20px;
  }
}

.cast__card {
  margin: 0;
}

.cast__figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: clamp(10px, 2vw, 16px);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(30, 90, 168, 0.15), 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.cast__photo {
  width: 100%;
  aspect-ratio: 280 / 320;
  object-fit: cover;
  display: block;
  background: #e8f2fc;
}

.cast__name {
  margin: 0;
  padding: clamp(6px, 1.2vw, 10px) clamp(2px, 0.8vw, 8px) clamp(8px, 1.5vw, 12px);
  text-align: center;
  font-size: clamp(0.68rem, 2.2vw, 0.95rem);
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1.3;
}

.cast__note {
  margin: 18px 0 0;
  font-size: 0.78rem;
  color: var(--blue-deep);
  opacity: 0.75;
  text-align: center;
  line-height: 1.5;
}

/* フッター */
.site-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px dashed rgba(30, 90, 168, 0.25);
  text-align: center;
  font-size: 0.8rem;
  color: var(--blue-deep);
  opacity: 0.85;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
