@charset "UTF-8";

/* =====================================================
   THE SECOND 2026 共通：SPハンバーガーメニュー／追従TOPボタン
   ・全ページ共通（読み込み：各ページの style.css の後）
   ・動きは js/sp_menu.js
===================================================== */

/* =====================================================
   フジテレビ標準TOPボタン非表示（独自ボタンを使用）
===================================================== */
#cx_commonPageTopBtn,
#cx_pagetop,
.cx_pagetop,
#pagetop,
.pagetop { display: none !important; }

/* =====================================================
   追従TOPボタン
===================================================== */
.btn_top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9010;
  width: 112px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.08))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
}

.btn_top.is_visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .btn_top:hover {
    transform: scale(1.08) translateY(-3px);
  }
  .btn_top:hover .btn_top_img {
    filter:
      drop-shadow(0 0 6px rgba(255, 255, 255, 1))
      drop-shadow(0 0 18px rgba(255, 255, 255, 0.85))
      drop-shadow(0 0 36px rgba(255, 255, 255, 0.5));
    animation: none;
  }
  .btn_top:active {
    transform: scale(0.95) translateY(1px);
  }
}

.btn_top_chevron {
  display: block;
  width: 15px;
  height: 15px;
  border-right: 3px solid rgba(255, 255, 255, 1);
  border-top: 3px solid rgba(255, 255, 255, 1);
  border-radius: 1px;
  transform: rotate(-45deg);
  margin: 0 auto -10px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
}

.btn_top_img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.5))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.btn_top_label {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  margin-top: -1px;
  text-shadow:
    1px  1px 0 rgba(0, 0, 0, 0.45),
   -1px -1px 0 rgba(0, 0, 0, 0.45),
    1px -1px 0 rgba(0, 0, 0, 0.45),
   -1px  1px 0 rgba(0, 0, 0, 0.45),
    0    2px 5px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 768px) {
  .btn_top {
    width: 62px;
    bottom: 0;
    right: 10px;
  }
  .btn_top_chevron {
    width: 11px;
    height: 11px;
    border-right: 2.5px solid rgba(255, 255, 255, 1);
    border-top: 2.5px solid rgba(255, 255, 255, 1);
    margin: 0 auto -7px;
  }
  .btn_top_label {
    font-size: 13px;
  }
}

/* =====================================================
   SP ハンバーガーメニュー
===================================================== */
body.is_modal_open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.sp_menu_btn,
.sp_menu_drawer { display: none; }

@media screen and (max-width: 768px) {

  .sp_menu_btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: fixed;
    top: 0;
    right: 12px;
    z-index: 9010;
    width: 56px;
    height: 56px;
    background-color: #1b018d;
    border: 2px solid #fff;
    border-radius: 10px;
    box-shadow: 0 4px 0 rgba(0,0,0,0.4);
    cursor: pointer;
    padding: 9px 0 3px;
    opacity: 0;
    visibility: hidden;
    transition: top 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.3s ease, visibility 0.3s ease;
  }

  .sp_menu_btn.is_visible {
    opacity: 1;
    visibility: visible;
  }

  .sp_menu_btn:hover {
    transform: translateY(4px);
    box-shadow: none;
  }

  .sp_menu_btn .sp_menu_btn_bar {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  .sp_menu_btn_label {
    display: block;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-top: 4px;
    max-height: 20px;
    overflow: hidden;
    transition: opacity 0.25s, max-height 0.25s, margin-top 0.25s;
  }

  .sp_menu_btn_close_label {
    display: block;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.25s, max-height 0.25s, margin-top 0.25s;
  }

  .sp_menu_btn.is_open .sp_menu_btn_bar:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }
  .sp_menu_btn.is_open .sp_menu_btn_bar:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }
  .sp_menu_btn.is_open .sp_menu_btn_label {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
  }
  .sp_menu_btn.is_open .sp_menu_btn_close_label {
    opacity: 1;
    max-height: 20px;
    margin-top: 4px;
  }

  .sp_menu_drawer {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9000;
    width: 100vw;
    height: 100dvh;
    background:
      linear-gradient(rgba(0, 0, 20, 0.72), rgba(0, 0, 20, 0.72)),
      url('../image/menu_bg.jpg') 51.5% center / cover no-repeat;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-sizing: border-box;
    padding: 90px 24px 32px;
    overflow-y: auto;
  }

  .sp_menu_drawer.is_open {
    transform: translateX(0);
  }

  .sp_menu_list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
  }

  .sp_menu_item {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .sp_menu_link--text,
  .sp_menu_link--text:link,
  .sp_menu_link--text:visited,
  .sp_menu_link--text:hover,
  .sp_menu_link--text:active {
    display: block;
    color: #fff !important;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-align: center;
    text-shadow:
      0 2px 8px rgba(0, 0, 0, 0.9),
      0 0 20px rgba(0, 0, 0, 0.7);
    transition: opacity 0.2s, transform 0.2s;
  }

  .sp_menu_link--text:hover {
    opacity: 0.8;
    transform: scale(1.05);
  }

  .sp_menu_sns {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .sp_menu_sns li a {
    display: block;
    transition: opacity 0.2s;
  }

  .sp_menu_sns li a:hover { opacity: 0.7; }

  .sp_menu_sns li img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.85);
  }

  .sp_menu_archive {
    list-style: none;
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255,255,255,0.25);
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .sp_menu_archive_link,
  .sp_menu_archive_link:link,
  .sp_menu_archive_link:visited,
  .sp_menu_archive_link:hover,
  .sp_menu_archive_link:active {
    display: block;
    color: rgba(255,255,255,0.85) !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 4px;
    transition: opacity 0.2s;
  }

  .sp_menu_archive_link:hover { opacity: 0.7; }

} /* end @media 768px */
