body {
  position: relative;
  min-height: 100vh;
  background: var(--color-background-body);
    font-family: "Noto Sans JP", sans-serif;
}

/* ==========================================================================
ヘッダー
========================================================================== */
.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);
  margin-bottom: 1rem;
  font-weight: 900;
  text-size-adjust: 100%;
}

/* 強調したい数字のスタイル */
.broadcast-date .num-highlight {
  font-size: 1.4em;
  color: #e60012;
  font-weight: bold;
}

/* ==========================================================================
main 囲み
========================================================================== */
main {
  padding: var(--s-3);
}

/* ==========================================================================
見出し
========================================================================== */
h2 {
  font-size: var(--font-size-xxlarge);
  color: var(--color-text-main);
  margin-bottom: 1rem;
  font-weight: 900;
  position: relative;
  padding: 0 65px;
  text-align: center;
  font-optical-sizing: auto;
  font-style: normal;

}

h2:before {
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--color-accent);
}

h2 span {
  position: relative;
  padding: 0 1em;
  background: var(--color-background-body);
}

h3 {
  font-size: var(--font-size-large);
  position: relative;
  padding: 1rem 0;
  color: #ffffff;
  border-radius: 10px;
  background: var(--secondary-bg-color);
}

h3:after {
  position: absolute;
  bottom: -9px;
  left: 1em;
  width: 0;
  height: 0;
  content: "";
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: var(--secondary-bg-color) transparent transparent transparent;
}

h4 {
  font-weight: 900;
  font-size: var(--font-size-large);
}

/* ==========================================================================
共通
========================================================================== */
.pc-only {
  display: none;
}
.sp-only {
  display: block;
}
.color_accent {
  color: var(--color-accent);
}

.mb-9 { margin-bottom: var(--s-9) !important; }

/* ==========================================================================
フッター
========================================================================== */
.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-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, 200px);
  justify-content: center;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.cast-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.cast-item dt,
.cast-item dd {
  margin: 0;
}

.cast-item dt {
  flex-shrink: 0;
}

.cast-item img {
  display: block;
  width: 100%;
  height: auto;
}

.cast-item dd {
  display: grid;
  place-items: center;
  padding: 12px;
  line-height: 1.4;
  font-weight: bold;
  text-align: center;
  color: var(--color-text-inverse);
  background-color: var(--secondary-bg-color);
  font-size: var(--font-size-medium);
  flex-grow: 1; /* これで1行の人も2行の人も底まで背景が伸びる */
}

/* ==========================================================================
タブレット以上
========================================================================== */
@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-ularge); }

  h3 {
    font-size: var(--font-size-large);
    padding: 1.5rem 2rem;
    width: 70%;
    margin: 0 auto;
  }

  .broadcast-date .num-highlight{
    font-size: 1.6em;
  }

  main {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--s-6);
  }

  .pc-br { display: block; }
}

/* ==========================================================================
デスクトップ以上（1024px)
========================================================================== */
@media (min-width: 1024px) {
  .broadcast-date {
    font-size: var(--font-size-xxlarge);
    letter-spacing: 0.05em;
  }



  .logo {
    width: 960px;
    margin: 10px auto;
  }
}
