/* 全体のレイアウト */
html {
  font-size: 1em;
  background: var(--primary-bg-color);
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: メイリオ, Meiryo, ヒラギノ角ゴ ProN W3,
    "Hiragino Kaku Gothic ProN", MS Pゴシック, "MS PGothic", MS UI Gothic,
    Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

/* ==========================================================================
  ヘッダーのスタイル
========================================================================== */
header {
  padding: 10px;
}

.logo {
  width: 30%;
  padding: 1rem 0.25rem 0.25rem 1rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
h2タグの前後にオセロアイコンを付与
========================================================================== */
.icon-text::before,
.icon-text::after {
  content: ""; /* contentプロパティは必須ですが、中身は空にします */
  display: inline-block; /* インラインブロック要素として表示 */
  width: 1.2em; /* アイコンの幅（文字サイズに合わせる） */
  height: 1.2em; /* アイコンの高さ */
  margin: 0 0.4em; /* アイコンの左右の余白 */
  vertical-align: -0.2em; /* アイコンの垂直位置を微調整 */
}

.icon-text-mask::before,
.icon-text-mask::after {
  background-color: currentColor;
  -webkit-mask-image: url("../img/othello.svg");
  mask-image: url("../img/othello.svg");
  -webkit-mask-size: contain;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

h2 {
  font-size: var(--font-size-large);
  color: var(--accent-text-color);
}

/* ==========================================================================
番組内容
========================================================================== */
.bangumi-naiyou {
  width: 90%;
  margin: 0 auto;
}

/* ==========================================================================
親要素が display: flex の場合、このクラスを持つ要素が余ったスペースを埋めるよう伸長する
========================================================================== */
.flex-grow {
  flex: 1;
}

/* ==========================================================================
TOP画像をフルで表示する設定
========================================================================== */
.main_image {
  display: flex;
  justify-content: center;
}

.img-responsive {
  width: 100%;
}

/* ==========================================================================
メインメッセージ設定
========================================================================== */

.main-message {
  max-width: 90%;
}

/* ==========================================================================
放送日時
========================================================================== */
.p-program__date {
  font-size: var(--font-size-large);
  font-weight: bold;
  margin-bottom: 16px;
}

.accent {
  font-size: 1.5em;
  color: var(--accent-text-color);
}

/* ==========================================================================
見逃し配信
========================================================================== */
.haishin {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  box-sizing: border-box;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.haishin > ul {
  background-color: #0ea5e9;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  border-radius: 8px;
  flex-shrink: 0;
  font-weight: 500;
  box-sizing: border-box;
  width: 100%;
  max-width: 500px;
}

/* ==========================================================================
フッター
========================================================================== */
footer {
  width: 100%;
  padding: 1em;
  text-align: center;
  color: var(--secondary-text-color);
  background-color: var(--secondary-bg-color);
}

footer p {
  font-size: var(--font-size-base);
  line-height: 1.5;
  white-space: pre-line; /* スマホでは改行を有効にする */
}

footer a {
  text-decoration: none;
}

/* ==========================================================================
タブレット向けスタイル
========================================================================== */
@media (min-width: 768px) {
  .logo {
    width: 20%;
    padding: 1rem 0.25rem 0.25rem 1.5rem;
  }

  h2 {
    font-size: var(--font-size-large);
  }

  .bangumi-naiyou {
    width: 80%;
    margin: 0 auto;
    text-align: center;
  }

  ul li {
    font-size: var(--font-size-medium);
  }

  .p-program__date {
    font-size: var(--font-size-xlarge);
  }

  .haishin {
    flex-direction: row;
    align-items: center;
  }

  .haishin li {
    width: 250px;
  }

  .haishin > ul {
    width: calc(33.333333333333336% - 10.666666666666666px);
    max-width: none;
  }
}

/* ==========================================================================
PC向けスタイル
========================================================================== */
@media (min-width: 1024px) {
  .header-logo {
    width: 150px;
    padding: 0 20px;
  }

  .logo {
    width: 10%;
    padding: 1rem 0.25rem 0.25rem 2.5rem;
  }

  h2 {
    font-size: var(--font-size-xxlarge);
  }

  ul li,
  p {
    font-size: var(--font-size-large);
  }

  .p-program__date {
    font-size: 36px;
  }
}

@media (min-width: 1280px) {
  .p-program__date {
    font-size: 45px;
  }
}
