body {
  position: relative;
  background-color: var(--color-background-body);
}

img {
  pointer-events: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* ==========================================================================
ヘッダー
========================================================================== */
.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;
}


/* ==========================================================================
放送日時
========================================================================== */
.broadcast-date {
  white-space: nowrap; /* スマホ時改行不可 */
  text-align: center;
  font-size: var(--font-size-xlarge);
  font-weight: 800;
  margin-bottom: 1rem;
  font-feature-settings: "palt";
}

/* 強調したい数字のスタイル */
.broadcast-date .num-highlight {
  font-size: 1.6em;
  color: #e7461c;
}

/* ==========================================================================
main 囲み
========================================================================== */
main {
  padding: 15px;
}

/* ==========================================================================
見出し
========================================================================== */
h2 {
  font-size: var(--font-size-xxlarge);
  color: var(--color-text-main);
  text-align: center;
  margin-bottom: 1rem;
}

h3 {
  text-align: center;
}

/* ==========================================================================
番組概要
========================================================================== */
.responsive-text-container {
  text-align: left;
  font-size: var(--font-size-medium);
}

.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(--secondary-bg-color);
}

.footer p {
  margin: 0;
  color: var(--color-text-inverse);
}

.footer small {
  font-size: var(--font-size-small);
  line-height: 1.5;
  display: flex; /* Flexboxを使って「画面が狭い時だけ自然に折り返す」 */
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.5ch; /* 各要素の間に半角スペース1つ分(0.5ch)の隙間を空ける */
}

.footer .rights {
  white-space: nowrap; /* "All rights reserved" の単語の途中で変な改行が起きるのを防ぐ */
}

/* ==========================================================================
出演者写真
========================================================================== */
.cast-wrapper {
  display: grid;
  place-items: center;
}

.castname {
  font-size: var(--font-size-medium);
}

.cast {
  padding-inline: 0;
  margin-block: 0;
  list-style: none;
  width: min(100%, 90vw);
}

.cast img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
  border-radius: 8px;
}

/* ==========================================================================
カルーセルUI（矢印・ドット）
========================================================================== */
.carousel-wrapper {
  position: relative;
  margin-block: 2rem;
}

/* --- 左右の矢印ボタン --- */
.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 #ffffff;
  border-right: 2px solid #ffffff;
}

/* 左矢印の向きと位置 */
.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: rgba(26, 26, 26, 0.2);
  box-shadow: 0 0 0 2px #fcf8ec, 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: #008dbd;
  box-shadow:
    0 0 0 2px #008dbd,
    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%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ==========================================================================
店舗情報
========================================================================== */
.comment {
  text-align: center;
  margin-bottom: var(--s-3);
  font-size: var(--s-3);
}

.shop-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.shop-item {
  border: 1px solid #ddd;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #ffffff;
}

/* --- 画像エリア --- */
.shop-images {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.shop-images img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* --- テキストエリア --- */
.shop-details h4 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem 0;
}

.shop-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: var(--font-size-base);
  gap: 0.25rem;
}

.shop-details ul li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #333;
  transition: color 0.2s;
  word-break: break-all;
}

/* ==========================================================================
見逃し配信
========================================================================== */
.haishin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.haishin li {
  width: 100%;
  max-width: 200px;
}

.haishin li a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  transition: transform 0.2s, opacity 0.2s;
}

.haishin li a:hover {
  transform: translateY(-2px);
  opacity: 0.7;
}

.haishin li a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* ==========================================================================
Googleフォント
========================================================================== */
.shippori-mincho-regular {
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-style: normal;
}

.shippori-mincho-medium {
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  font-style: normal;
}

.shippori-mincho-semibold {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  font-style: normal;
}

.shippori-mincho-bold {
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  font-style: normal;
}

.shippori-mincho-extrabold {
  font-family: "Shippori Mincho", serif;
  font-weight: 800;
  font-style: normal;
}

/* ==========================================================================
タブレット以上
========================================================================== */
@media (min-width: 768px) {
  body {
    font-size: var(--font-size-large);
  }

  .pc-only {
    display: block;
  }

  .sp-only {
    display: none;
  }

  .logo {
    width: 768px;
    margin: 10px auto;
  }

  .logo img {
    width: 125px;
  }

  h1 img {
    max-width: 600px;
  }

  h2 {
    font-size: var(--font-size-xxlarge);
  }

  main {
    max-width: 1000px;
    margin: 0 auto;
  }

  .responsive-text-container {
    text-align: center;
    font-size: var(--font-size-large);
    line-height: 1.8;
  }

  .pc-br {
    display: block;
  }

  .castname {
    font-size: var(--font-size-large);
  }

  .shop-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .shop-item .shop-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .shop-item .shop-images img {
    flex: unset;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

.haishin {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }

  .haishin li {
    width: 200px;
    max-width: none;
  }

  .teaser {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    overflow-x: visible;
  }
  .teaser li {
    flex: auto;
  }

  /* PCは3列グリッドで全画像が見えるため、スライダーUIは隠す */
  .carousel-btn,
  .carousel-dots {
    display: none;
  }
}

/* ==========================================================================
デスクトップ以上（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;
  }
}
