@charset "UTF-8";

/* ==========================================
   スマートフォン用レイアウト (769px以下)
   ========================================== */
@media screen and (max-width: 769px) {

  /* -----------------------------------
     1. ベース設定 & リセット
  ------------------------------------ */
  img {
    width: 100%;
    height: auto;
  }

  #container {
    width: 100%;
    background-size: contain;
  }

  .bg1 {
    background-size: contain;
  }

  #header {
    width: 100%;
    height: auto;
  }
  #header a {
    width: auto;
    height: auto;
  }
  #header h1#site_logo {
    width: 55%;
    margin: 0;
    padding: 0;
  }
  #header h1#site_logo a {
    width: auto;
    height: auto;
  }

  .accordion,
  .archive {
    margin: 0;
    padding: 0;
  }

  .airdate {
    margin: 0;
  }

  .archive dd.contents {
    padding: 5px 1px;
    font-size: .6rem;
  }

  .accordion dt .encout1st,
  .accordion dt .encout2nd {
    width: auto;
    height: 45px;
    background-size: contain;
  }

  .contents {
    background: rgba(0, 0, 0, 0.65);
  }

  #footer #copyright {
    white-space: normal;
  }
  #footer #copyright em {
    display: inline-block;
  }

  /* -----------------------------------
     2. 右側コンテンツ（本文・タイトル）
  ------------------------------------ */
  #right_contents {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 10px 0 40px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
  }
  #right_contents p,
  #right_contents dt.ttl_lv02,
  #right_contents dt.ttl_lv02 span,
  #right_contents dt.ttl_lv02 em {
    font-size: 16px !important;
    line-height: 1.6 !important;
    display: block;
  }

  /* 本文内の画像をスマホ画面に合わせて自動縮小 */
  #right_contents img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }
  #right_contents .photo_frame {
    max-width: 100% !important;
    height: auto !important;
    display: inline-block;
  }

  /* -----------------------------------
     3. 「出演」ブロックの表示
  ------------------------------------ */
  #right_contents #cast {
    margin: 0 0 25px 0;
    padding: 0 0 15px 0;
    width: 100%;
    border-bottom: 1px dashed #ccc;
  }
  #right_contents #cast h2.ttl_cast {
    display: block !important;
    background: none !important;
    text-indent: 0 !important;
    font-size: 18px !important;
    font-weight: bold;
    color: #e4007f !important;
    margin-bottom: 10px;
  }
  #right_contents #cast .contents p {
    display: flex !important;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 16px !important;
  }
  #right_contents #cast .contents p em {
    display: block;
    font-style: normal;
    font-size: 16px !important;
  }

  /* -----------------------------------
     4. 左メニュー本体（黒系透過・文字を白に）
  ------------------------------------ */
  #left_contents {
    position: fixed;
    top: 0;
    left: -280px;
    float: none;
    width: 280px;
    height: 100vh;
    margin: 0;
    padding: 20px 20px 20px 40px;
    background-color: rgba(20, 20, 20, 0.85); /* 黒系の半透明背景 */
    color: #fff; /* 全体の文字を白に */
    z-index: 9999;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    box-sizing: border-box;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  }
  #left_contents.is-open {
    transform: translateX(280px);
  }

  /* メニュー内の見出しやリンクを白に強制 */
  #archives,
  #archives a,
  #left_contents h2 {
    font-size: 15px !important;
    color: #fff !important;
    text-decoration: none;
  }

  #left_contents .ttl_cast,
  #archives .ttl_archives {
    background-size: auto 75%;
  }

  #archives ol {
    padding: 5px 0px 2px 0px;
  }
  #archives ol li a {
    float: right;
    padding-left: 3px;
    width: 5.5em;
    font-size: .5rem;
    line-height: 1.6;
  }

  /* スクロール時のリスト崩れ(Sticky)を強制無効化 */
  #archives,
  #archives-sticky-wrapper,
  .my-sticky-element,
  #archives.stuck {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  /* -----------------------------------
     5. 過去の放送のアコーディオン用デザイン（黒背景用）
  ------------------------------------ */
  .accordion-parent {
    position: relative;
    cursor: pointer;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 境界線をうっすら白に */
    font-weight: bold;
  }
  .accordion-parent::after {
    content: '＋';
    position: absolute;
    right: 10px;
    top: 12px;
    color: #ff99cc; /* アイコン色はピンクで目立たせる */
    font-weight: bold;
  }
  .accordion-parent.is-active::after {
    content: '－';
  }
  .accordion-parent > ul {
    display: none;
    padding-left: 15px;
    margin-top: 10px;
    font-weight: normal;
  }
  .accordion-parent > ul li {
    padding: 5px 0;
  }

  /* -----------------------------------
     6. スワイプを促す「取っ手」＆「閉じる」兼用ボタン
  ------------------------------------ */
  #swipe_handle {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background-color: #444;
    color: #fff;
    padding: 15px 4px;
    font-size: 14px;
    font-weight: bold;
    writing-mode: vertical-rl;
    text-orientation: upright;
    border-radius: 0 6px 6px 0;
    z-index: 10000;
    cursor: pointer;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
  }
  #swipe_handle.is-open {
    background-color: #222;
  }

  /* -----------------------------------
     7. 背景の暗転用オーバーレイ
  ------------------------------------ */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
  }
  .menu-overlay.is-open {
    display: block;
  }

/* -----------------------------------
8. 「Topページに戻る」ボタン（左メニュー内）
  ------------------------------------ */
  #archives .buttons {
    margin-top: 40px;       /* 上部コンテンツとの隙間を広く確保 */
    padding: 0;
    border-top: none;       /* PC用のピンクの境界線を消去 */
    list-style: none;
  }
  #archives .buttons li {
    width: 100%;
    text-align: center;
  }
  #archives .buttons a {
    display: inline-block;
    width: 85%;             /* 四角を少しコンパクトに */
    padding: 10px 12px;     /* 上下の高さをスリムに */
    text-align: center;
    background: #e4007f none !important; /* PC用の背景画像を消してピンク一色に */
    color: #fff !important;
    font-size: 14px !important;
    font-weight: bold;
    border-radius: 6px;
    box-sizing: border-box;
    text-decoration: none;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  }
  #archives .buttons a:active {
    transform: translateY(2px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }

/* -----------------------------------
     9. ページトップへ戻るボタン (#toTop)
  ------------------------------------ */
  #toTop {
    position: fixed !important;
    right: 10px !important;
    bottom: 70px !important;
    z-index: 99999 !important;
    font-size: 0 !important;
    color: transparent !important;
  }
  #toTopHover {
    display: none !important;
  }

}