body {
  /* position: relative; */
  min-height: 100vh;
  color: var(--color-text-base);
}

body::before {
  content: "";
  position: fixed;
  inset: 0; /* top, right, bottom, left すべて0 */
  
  /* 背景画像の設定 */
  background-image: url(../img/bg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.2; /* 10%の濃さで表示 */
  
  /* コンテンツの下に配置 */
  z-index: -1; 
}

/* ==========================================================================
ヘッダー
========================================================================== */
.logo {
  width: 25%;
  padding: 0.5rem;
}

header h1 {
  margin-block-start: 1.5rem; /* 論理プロパティによる余白管理 */
  margin-inline: auto;
  text-align: center;
  margin: 10px;
}

h1 img { margin: 0 auto; }

@keyframes statelyReveal {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

/* ==========================================================================
放送日時
========================================================================== */
.broadcast-date {
  white-space: nowrap;/* スマホでの改行不可 */
  text-align: center;
  font-size: clamp(1.2rem, 6.5vw, 2rem);
}

/* 強調したい数字のスタイル */
.broadcast-date .num-highlight {
  font-size: 1.5em;
  color: var(--color-accent);
  font-weight: bold;
}

/* ==========================================================================
main 囲み
========================================================================== */
main {
  padding: 15px;
}

/* ==========================================================================
見出し
========================================================================== */
h2 {
  font-size: var(--font-size-xlarge);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 6px;
  
}

h3 { text-align: center; }

/* ==========================================================================
共通
========================================================================== */
.pc-only { display: none; }
.sp-only { display: block; }

/* ==========================================================================
番組概要
========================================================================== */
.responsive-text-container {
  text-align: left;
  font-size: var(--font-size-medium);
  line-height: 1.8;
}

.pc-br { display: inline; }

/* ==========================================================================
フッター
========================================================================== */
.footer {
  inline-size: 100%; /* 物理的な width: 100% ではなく、論理プロパティを使用 */
  padding-block: var(--s-4); /* 上下 1.5rem */
  padding-inline: var(--s-3); /* 左右 1rem */
  text-align: center;
  background-color: var(--color-bg-third);
}

.footer p {
  margin: 0;
  color: var(--color-text-inverse);
}

.footer small {
  font-size: var(--font-size-small);
  line-height: 1.5;
  display: flex; /* 画面が狭い時だけ自然に折り返す */
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.5ch; /* 各要素の間に半角スペース1つ分(0.5ch)の隙間を空ける */
}

/* "All rights reserved" の単語の途中で変な改行が起きるのを防ぐ */
.footer .rights { white-space: nowrap; }

/* ==========================================================================
出演者
========================================================================== */
.castname { font-size: var(--font-size-medium); }

.emphasis {
  font-size: 1.15em;
  font-weight: bold;
}

.cast {
  padding-inline: 0;
  margin-block: 0;
  list-style: none;
  width: min(100%, 90vw);
}

/* ==========================================================================
カルーセルUI（矢印・ドット）
========================================================================== */
.carousel-image-area { position: relative; }

/* --- 左右の矢印ボタン --- */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-btn::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--color-white);
  border-right: 2px solid var(--color-white);
}

/* 左矢印の向きと位置 */
.carousel-btn.prev { left: 10px; }

.carousel-btn.prev::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

/* 右矢印の向きと位置 */
.carousel-btn.next { right: 10px; }

.carousel-btn.next::before {
  transform: rotate(45deg);
  margin-right: 4px;
}

/* --- 下部のドットナビゲーション --- */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-block-start: 1rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: var(--color-carousel-dot);
  box-shadow:
    0 0 0 2px var(--color-carousel-ring),
    0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 現在表示されている画像のドットだけ横に伸びる */
.carousel-dot.is-active {
  width: 24px;
  background-color: var(--color-carousel-dot-active);
  box-shadow:
    0 0 0 2px var(--color-carousel-ring-active),
    0 4px 8px rgba(0, 0, 0, 0.2);
}

.teaser {
  display: flex;
  gap: 1rem;
  padding-inline: 0;
  margin-block: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.teaser::-webkit-scrollbar { display: none; }

.teaser li {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin-block-end: 0;
}

.teaser img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ==========================================================================
見逃し配信
========================================================================== */
.minogashi {
  font-size: var(--font-size-medium);
  text-align: left;
}

/* ==========================================================================
タブレット以上
========================================================================== */
@media (min-width: 768px) {
  body {
    font-size: var(--font-size-large);
    }

  .logo {
    width: 768px;
    margin: 10px auto;
  }

  .logo img {
    width: 125px;
  }

h1 img {
  max-width: 600px;
  }

main {
    max-width: 1000px;
    margin: 0 auto;
  }

  .responsive-text-container {
    text-align: center;
    font-size: var(--font-size-large);
  }

  .pc-only { display: block; }
  .sp-only { display: none; }
  .pc-br { display: block; }
  .castname { font-size: var(--font-size-large); }

  .teaser {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    overflow-x: visible;
  }

  .teaser li {
    flex: auto;
  }

.carousel-btn, .carousel-dots { display: none; }
.minogashi {
  font-size: var(--font-size-large);
  text-align: center;
}
}

/* ==========================================================================
デスクトップ以上（1024px)
========================================================================== */
@media (min-width: 1024px) {
  .broadcast-date { font-size: var(--font-size-xxlarge); }

  .logo {
    width: 960px;
    margin: 10px auto;
  }
}

/* ==========================================================================
デスクトップ以上（1280px)
========================================================================== */
@media (min-width: 1280px) {
  body { font-size: var(--font-size-xlarge); }
  h2 { font-size: 2.5rem; }
}
