html,
body {
  margin: 0;
  padding: 0;
  background: black;
  color: #222;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* SOD-top-f1: header/footer 移植時の限定上書き */
/* .container_general-_menu は一時無効（共通 header-footer.css で背景透過を管理・必要なら復帰） */
body.sod-top-f1 .navbar-logo-left-container,
body.sod-top-f1 .navbar-logo-left-container.shadow-three {
  background: #fff;
}

/* SOD-top-f1: ヘッダー座布団をウィンドウ幅いっぱいにする */
body.sod-top-f1 .navbar-logo-left-container,
body.sod-top-f1 .navbar-logo-left-container.shadow-three,
body.sod-top-f1 .w-nav {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
  background: #fff;
}

/* 中身のメニュー本体は中央寄せを維持 — 一時無効（header-footer.css と重複回避・あとで戻す）
body.sod-top-f1 .container_general-_menu {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}
*/

/* 旧 pageId=3 用: ヘッダーを低め + 黒基調に変更 */
/* SOD-top-ML2: 初期は alpha 0.7。ホバー・モバイル展開時は下記ブロックで白（sod-top-f1 #fff より詳細度で上書き） */
/* .container_general-_menu は一時無効（共通 header-footer.css で透過管理） */
body.sod-top-f1.sod-top-ml2 .navbar-logo-left-container,
body.sod-top-f1.sod-top-ml2 .navbar-logo-left-container.shadow-three,
body.sod-top-f1.sod-top-ml2 .w-nav {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

body.sod-top-f1 .navbar-wrapper {
  padding: 7px 0;
}

body.sod-top-f1 .sod-hero-brand {
  top: auto;
  bottom: 120px;
  left: 20px;
  right: auto;
  align-items: flex-start;
  text-align: left;
  max-width: calc(100vw - 56px);
  transform: none;
  transition: none;
  /* ロゴ高（.sod-hero-logo）と曲名の S 左揃え用マージンで共有 */
  --sod-hero-logo-h: clamp(50px, 7.24vw, 64px);
}

body.sod-top-f1 .sod-hero-logo {
  /* clamp(最小, vw, 最大)。下限 50px。旧 30.4px 下限時の伸び率に合わせ vw を 4.4→約 7.24 に上げる */
  opacity: 0;
  animation: sod-hero-fade-in 1.1s ease-out 2s forwards;
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5))
    drop-shadow(0 4px 18px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 28px rgba(0, 0, 0, 0.22))
    drop-shadow(3px 0 14px rgba(0, 0, 0, 0.2))
    drop-shadow(-3px 0 14px rgba(0, 0, 0, 0.2));
}

body.sod-top-f1 .sod-hero-title {
  color: #fff;
  /* clamp(最小, vw, 最大)。下限 14px。旧 12.2px 下限時の伸び率に合わせ vw を 1.79→2.05 に上げる */
  font-size: clamp(14px, 2.05vw, 25.6px);
  letter-spacing: 1px;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(0, 0, 0, 0.4),
    0 2px 5px rgba(0, 0, 0, 0.75),
    2px 0 8px rgba(0, 0, 0, 0.55),
    -2px 0 8px rgba(0, 0, 0, 0.55);
  opacity: 0;
  animation: sod-hero-fade-in 1.1s ease-out 2.55s forwards;
}

body.sod-top-f1 .sod-hero-title::after {
  content: none;
}

body.sod-top-f1 .sod-hero-title:hover {
  color: rgba(255, 255, 255, 0.92);
  text-shadow:
    0 0 16px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.72),
    3px 0 12px rgba(0, 0, 0, 0.48),
    -3px 0 12px rgba(0, 0, 0, 0.48);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

@keyframes sod-hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.sod-top-f1 .navbar-brand img {
  width: 120px;
  height: auto;
}

body.sod-top-f1 .nav-link {
  color: #1a1b1f;
  padding: 10px 12px;
}

body.sod-top-f1 .nav-dropdown-toggle {
  color: #222;
  padding: 10px 22px 10px 12px;
}

body.sod-top-f1 .nav-doprdown-toptext,
body.sod-top-f1 .navbar-brand {
  color: #222;
}

body.sod-top-f1 .nav-dropdown-icon,
body.sod-top-f1 .w-icon-dropdown-toggle {
  border-right-color: #999;
  border-bottom-color: #999;
}

body.sod-top-f1 .icon_search {
  width: 24px;
  height: 24px;
  filter: none;
}

body.sod-top-f1 .menu-button,
body.sod-top-f1 .w-nav-button {
  color: #333;
  padding: 10px 14px;
}

body.sod-top-f1 .nav-link:hover,
body.sod-top-f1 .nav-dropdown-toggle:hover {
  color: rgba(26, 27, 31, 0.75);
}

body.sod-top-f1 .nav-dropdown-list,
body.sod-top-f1 .w-dropdown-list {
  background: #fff;
  border-color: var(--menu-bg-label);
}

body.sod-top-f1 .nav-dropdown-link,
body.sod-top-f1 .w-dropdown-link {
  color: #222;
}

body.sod-top-f1 .nav-dropdown-link:hover,
body.sod-top-f1 .w-dropdown-link:hover {
  color: #0050bd;
}

/* SOD-top-ML2 (2026-03-20):
   - ヘッダーは初期非表示、3秒後に表示する。
   - transform を使うと fixed な検索ポップアップの基準が壊れるため、
     top + opacity でアニメーションする。
   - ヘッダー白背景 alpha 0.8（不透明度80%）。body.sod-top-ml2 のみで他ページに影響しない。 */
body.sod-top-ml2 {
  --sod-ml2-nav-bg-white: rgba(255, 255, 255, 0.8);
}

body.sod-top-ml2 .navbar-logo-left-container,
body.sod-top-ml2 .navbar-logo-left-container.shadow-three,
body.sod-top-ml2 .w-nav {
  position: fixed;
  top: -120px;
  left: 0;
  right: 0;
  z-index: 5000;
  opacity: 0;
  transition: top 1.5s ease, opacity 1.5s ease;
  background: rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: visible;
}

/* ML2: 内側 .container_general-_menu — 一時無効（共通 header-footer.css で透過・角丸を管理・あとで戻す）
body.sod-top-ml2 .container_general-_menu {
  background: transparent !important;
  border-radius: 0 !important;
}
*/

/* ML2 (2026-03-20): ヘッダー内部ラッパーも透過し、全幅で同一トーンに統一 */
body.sod-top-ml2 .navbar-wrapper,
body.sod-top-ml2 .w-nav-menu {
  background: transparent;
}

/* ML2 (2026-04-06): ヘッダー操作時は白を alpha 0.8（--sod-ml2-nav-bg-white）に。
   PC: ホバー / スマホ: sod-top-ml2.js の ml2-nav-open で同トーンに。 */
body.sod-top-ml2 .navbar-logo-left-container:hover,
body.sod-top-ml2 .navbar-logo-left-container.shadow-three:hover,
body.sod-top-ml2 .w-nav:hover,
body.sod-top-ml2.ml2-nav-open .navbar-logo-left-container,
body.sod-top-ml2.ml2-nav-open .navbar-logo-left-container.shadow-three,
body.sod-top-ml2.ml2-nav-open .w-nav {
  background: var(--sod-ml2-nav-bg-white) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* 旧 pageId=3 用: メニュー帯にホバーしたら白（既存クラス組み合わせで限定） */
body.sod-top-f1.sod-top-ml2 .navbar-logo-left-container:hover,
body.sod-top-f1.sod-top-ml2 .navbar-logo-left-container.shadow-three:hover,
body.sod-top-f1.sod-top-ml2 .w-nav:hover {
  background: #fff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* 旧 pageId=3 用: モバイルメニュー展開時もヘッダー帯を白 */
body.sod-top-f1.sod-top-ml2.ml2-nav-open .navbar-logo-left-container,
body.sod-top-f1.sod-top-ml2.ml2-nav-open .navbar-logo-left-container.shadow-three,
body.sod-top-f1.sod-top-ml2.ml2-nav-open .w-nav {
  background: #fff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* ML2 (2026-04-06): モバイルメニュー展開エリアも同じ白（alpha 0.8） */
body.sod-top-ml2.ml2-nav-open .nav-menu-wrapper,
body.sod-top-ml2.ml2-nav-open .w-nav-menu {
  background: var(--sod-ml2-nav-bg-white) !important;
}

/* 旧 pageId=3 用: モバイル用メニューパネルは不透明白 */
body.sod-top-f1.sod-top-ml2.ml2-nav-open .nav-menu-wrapper,
body.sod-top-f1.sod-top-ml2.ml2-nav-open .w-nav-menu {
  background: #fff !important;
}

/* ML2 (2026-03-20): 検索ポップアップを動画/スライドより前面に固定 */
body.sod-top-ml2 .modal-search-popup {
  position: fixed;
  inset: 0;
  z-index: 9000;
}

/*
 * ML-pop リンクパネル（SOD-top-ML-pop.html #linkpanel）
 * ---------------------------------------------------------------------------
 * 目的:
 *   - 動画2ループ目以降に右からスライドインする Song / Photo 導線を、
 *     モックに近い「薄い黒の座布団＋左白ライン＋白文字」で表示する。
 *   - ホバー時は行全体を座布団の内側の左右端まで薄い白でハイライト（モック準拠）。
 * 方法:
 *   - 座布団は .linkpanel-cushion。リンクは負マージンで cushion の padding と相殺し、
 *     ホバー背景が視覚的に端から端まで届くようにしている。
 *   - 先頭の「»」は a::before（HTML 側は Song / Photo のみ）。
 *   - pageId=3: sod-top-ml2.js が --sod-linkpanel-left / --sod-linkpanel-cushion-pl /
 *     --sod-linkpanel-max-w を設定（♪中央＝左ボーダー、STILL の「S」と Song/Photo、はみ出し防止）。
 * スコープ: body.sod-top-ml-pop のみ（他ページの .linkpanel には影響しない）。
 */
body.sod-top-ml-pop.sod-top-ml-pop2 .linkpanel {
  position: absolute;
  right: var(--sod-hero-right, 0);
  top: 50%;
  transform: translate(120%, -50%);
  opacity: 0;
  z-index: 3500;
  transition: transform 0.45s ease, opacity 0.45s ease;
  pointer-events: none;
}

body.sod-top-ml-pop.sod-top-ml-pop2 .linkpanel {
  right: auto;
  /* sod-top-ml2.js: 「♪」中央に左ボーダーを合わせる */
  left: var(--sod-linkpanel-left, 26px);
  /* bottom アンカーで .sod-hero-brand と同じ基準点にし、
     モバイルの 100dvh 変化時にスクロール速度を一致させる。
     translateY(100%) で自身の高さ分ずらし、top edge を bottom 位置に合わせる。 */
  top: auto;
  bottom: var(--sod-linkpanel-bottom, 106px);
  transform: translate(-120%, 100%);
  transition: transform 0.9s ease, opacity 0.9s ease;
  box-sizing: border-box;
  /* .main-inner 右端ではみ出さない（JS が幅を設定、未設定時は親幅に近い値） */
  max-width: var(--sod-linkpanel-max-w, calc(100% - var(--sod-linkpanel-left, 26px) - 8px));
  /* 矢印付きラベルが収まるよう内容幅は確保（狭いビューは JS 側で下限幅も付与） */
  min-width: min-content;
}

body.sod-top-ml-pop.sod-top-ml-pop2 .linkpanel.showlinkp {
  transform: translate(0, -50%);
  opacity: 1;
  pointer-events: auto;
}

body.sod-top-ml-pop.sod-top-ml-pop2 .linkpanel.showlinkp {
  transform: translate(0, 100%);
}

/* 旧 pageId=3 用: 座布団を左アクセント＋左揃えに変更。
   左余白はリンクの padding-left、右余白は座布団側で多めに確保する。 */
body.sod-top-ml-pop.sod-top-ml-pop2 .linkpanel-cushion {
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 2px 0 0 2px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(0, 0, 0, 0.38) 52%,
    rgba(0, 0, 0, 0) 100%
  );
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  min-width: min-content;
  padding: 6px calc((var(--sod-linkpanel-cushion-pl, 12px) * 2) + 5px) 6px 0;
}

body.sod-top-ml-pop.sod-top-ml-pop2 .linkpanel a {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  padding-left: var(--sod-linkpanel-cushion-pl, 12px);
  padding-right: calc(var(--sod-linkpanel-cushion-pl, 12px) + 5px);
  box-sizing: border-box;
  white-space: nowrap;
}

body.sod-top-ml-pop.sod-top-ml-pop2 .linkpanel ul,
body.sod-top-ml-pop.sod-top-ml-pop2 .linkpanel li {
  width: 100%;
}

body.sod-top-ml-pop.sod-top-ml-pop2 .linkpanel li {
  transition: background 0.18s ease;
}

/* 座布団: 半透明黒＋右アクセント。数値はホバー帯の負マージンと揃える。 */
body.sod-top-ml-pop .linkpanel-cushion {
  background: rgba(0, 0, 0, 0.38);
  border-right: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 0 2px 2px 0;
  padding: 6px 10px 6px 12px;
  box-shadow: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: right;
  width: fit-content;
  margin-left: auto;
}

body.sod-top-ml-pop .linkpanel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.sod-top-ml-pop .linkpanel li {
  margin: 0 0 5px 0;
}

body.sod-top-ml-pop .linkpanel li:last-child {
  margin-bottom: 0;
}

body.sod-top-ml-pop .linkpanel a {
  display: block;
  min-width: 0;
  text-align: right;
  /* 座布団の左右パディングと相殺し、ホバー帯を端から端まで広げる */
  margin-left: -12px;
  margin-right: -10px;
  padding: 4px 10px 4px 12px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: background-color 0.18s ease;
}

body.sod-top-ml-pop .linkpanel a::before {
  content: none;
}

body.sod-top-ml-pop .linkpanel a::after {
  content: " ›";
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.15em;
  animation: sod-hint-right 1.8s ease-in-out infinite;
}

/* sod-top-ml2.js: --sod-link-btn-row-w で両行同幅。flex でラベルと › を両端に配置 */
body.sod-top-ml-pop #btn_open_song,
body.sod-top-ml-pop #btn_open_photo {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: var(--sod-link-btn-row-w, auto);
  max-width: 100%;
  box-sizing: border-box;
}

body.sod-top-ml-pop #btn_open_song {
  letter-spacing: 2px;
}

body.sod-top-ml-pop #btn_open_photo {
  letter-spacing: 1px;
}

body.sod-top-ml-pop #btn_open_song::after,
body.sod-top-ml-pop #btn_open_photo::after {
  margin-left: 0;
}

/* ロールオーバー: 行の横幅いっぱい（cushion 内）。キーボードは :focus-visible も同様 */
body.sod-top-ml-pop .linkpanel a:hover,
body.sod-top-ml-pop .linkpanel a:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

body.sod-top-ml-pop.sod-top-ml-pop2 .linkpanel li:hover,
body.sod-top-ml-pop.sod-top-ml-pop2 .linkpanel li:focus-within {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.2) 52%,
    rgba(255, 255, 255, 0) 100%
  );
}

body.sod-top-ml-pop.sod-top-ml-pop2 .linkpanel a:hover,
body.sod-top-ml-pop.sod-top-ml-pop2 .linkpanel a:focus-visible {
  background: transparent;
}

@media (hover: hover) {
  body.sod-top-ml-pop .linkpanel a:active {
    background: rgba(255, 255, 255, 0.26);
  }
}

/* ML-pop: photo popup must be above SOD overlays/buttons */
body.sod-top-ml-pop .koda_modal_popup {
  z-index: 12000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.66);
  overflow: hidden;
}

/* ML-pop: popup UI を score guide 準拠で安定表示 */
body.sod-top-ml-pop .modal-score1-popup .modal {
  width: 80% !important;
  max-width: none !important;
  height: 90dvh !important;
  max-height: 90dvh !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background-color: black !important;
  /* closeボタンを枠外へ出すため modal は visible。
     画像/UIの切り抜きは内側 .wrapper_item 側で保持する。 */
  overflow: visible !important;
}

body.sod-top-ml-pop .modal-score1-popup .modal_content_fit-_fit {
  height: 100% !important;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: black !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

body.sod-top-ml-pop .modal-score1-popup .wrapper_item {
  border: 1px solid var(--_koda---line_title) !important;
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: black !important;
  /* koda-mock-up.css の grid-row-gap:16px がタイトル↔写真間に効く。
     上下均等にしたいので 8px に縮め、同じ 8px を下にも付ける */
  gap: 8px !important;
  padding-bottom: 8px !important;
}

body.sod-top-ml-pop .modal-score1-popup .wrapper_item_title {
  margin-top: 0;
  flex: 0 0 auto;
  background-color: black !important;
}

body.sod-top-ml-pop .modal-score1-popup .icon_item_title {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 8px auto 2px;
  font-size: 28px;
  color: #111;
}

/* 黒帯の固定ラベル（HTML: "Photos of the Day"）。その下の可変タイトルは .text_item_popup_content_name */
body.sod-top-ml-pop .modal-score1-popup .text_item_title {
  background: transparent;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 14px;
  margin-top: 10px;
  border-left: none !important;
  border-right: none !important;
}

body.sod-top-ml-pop .modal-score1-popup .text_item_title::after {
  content: "";
  display: block;
  width: min(510px, 100%);
  height: 15px;
  margin: 0px auto;
  background: url("/images/sod/pod_line.png") center / contain no-repeat;
}

body.sod-top-ml-pop .modal-score1-popup .text_item_popup_content_name {
  background: transparent;
  color: #fff;
  border-left: 0 !important;
  border-right: 0 !important;
  /* 「Photos of the Day」行より約2pt大きい見出しサイズ（タイトル） */
  font-size: 16px !important;
  /* タイトルは長い場合に2行まで許可（3行目以降は省略） */
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.25;
  max-width: 100% !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
}

/* タイトル文字数が多いときは段階的に縮小（JSでクラス付与） */
body.sod-top-ml-pop .modal-score1-popup .text_item_popup_content_name.is-long {
  font-size: 17px !important;
}

body.sod-top-ml-pop .modal-score1-popup .text_item_popup_content_name.is-very-long {
  font-size: 15px !important;
}

body.sod-top-ml-pop .modal-score1-popup .wrapper_popup_common {
  margin-top: 0;
  width: 100%;
  background-color: black !important;
  /* flex-basis:auto だと子の height:100% 解決が不十分でモーダル底辺まで伸びない場合がある。
     0 起点にして flex-grow で残り全てを埋める。 */
  flex: 1 1 0 !important;
  min-height: 0;
  /* koda-mock-up.css の padding:40px を打ち消し、UIの基準面を端まで広げる */
  padding: 0 !important;
  overflow: hidden !important;
}

body.sod-top-ml-pop .modal-score1-popup .pv-inner {
  /* popup_viewer.css が後読み込みで width:calc(100vw - 200px) を当てるため、
     ML-pop では必ず全面基準に固定する */
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

/* koda-mock-up.css の flex + width:auto が absolute子要素だけの時に 0px 化するため、
   ML-pop のポップアップ内だけ block/100% を強制して幅崩れを防ぐ */
body.sod-top-ml-pop .modal-score1-popup .modal_content_fit-_fit,
body.sod-top-ml-pop .modal-score1-popup .koda_paragraph_lyrics,
body.sod-top-ml-pop .modal-score1-popup .koda_score_main {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  background-color: black !important;
}

body.sod-top-ml-pop .modal-score1-popup .koda_paragraph_lyrics {
  display: block !important;
  max-width: none !important;
  margin: 0 !important;
}

body.sod-top-ml-pop .modal-score1-popup .koda_score_main {
  padding-top: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
}

body.sod-top-ml-pop .modal-score1-popup .pv-stage {
  z-index: 1;
  pointer-events: auto;
  background-color: black !important;
}

body.sod-top-ml-pop .modal-score1-popup .pv-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

body.sod-top-ml-pop .modal-score1-popup .pv-bottom-bar {
  z-index: 6;
  pointer-events: none;
  /* 下部パレットはより下へ（モバイル安全域も考慮） */
  top: auto !important;
  bottom: calc(2px + env(safe-area-inset-bottom)) !important;
  height: auto !important;
  min-height: 0 !important;
}

body.sod-top-ml-pop .modal-score1-popup .pv-bottom-left {
  display: flex !important;
  top: auto !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 10px !important;
}

/* popup_viewer.css を org に戻しても SOD 側の新しい角丸設定を維持する */
body.sod-top-ml-pop .modal-score1-popup .pv-top-left,
body.sod-top-ml-pop .modal-score1-popup .pv-bottom-right,
body.sod-top-ml-pop .modal-score1-popup .pv-counter {
  border-radius: 10px !important;
}

body.sod-top-ml-pop .modal-score1-popup .pv-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
}

body.sod-top-ml-pop .modal-score1-popup .pv-bottom-bar > * {
  pointer-events: auto;
}

body.sod-top-ml-pop .modal-score1-popup .pv-nav,
body.sod-top-ml-pop .modal-score1-popup .pv-counter {
  z-index: 7;
  pointer-events: auto;
}

body.sod-top-ml-pop .modal-score1-popup .pv-nav {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  font-size: 30px !important;
  font-weight: 100;
  line-height: 1 !important;
  border-radius: 0 !important;
}

/* ページカウンタは写真表示エリア（.pv-inner）の右上に固定（ML-pop）
   タイトル領域の直下 = 画像エリアの上端 */
body.sod-top-ml-pop .modal-score1-popup .pv-counter {
  position: absolute !important;
  right: 8px !important;
  top: 8px !important;
  z-index: 8 !important;
}

/* 左右ボタンは端ギリに寄せる（押下領域は維持） */
body.sod-top-ml-pop .modal-score1-popup .pv-prev {
  left: 2px !important;
}

body.sod-top-ml-pop .modal-score1-popup .pv-next {
  right: 2px !important;
}

body.sod-top-ml-pop .modal-score1-popup .btn_pop_close {
  z-index: 8;
  position: absolute;
  /* PC/スマホ共通: 閉じるボタンは常に枠内右上へ固定 */
  top: 6px;
  right: 6px;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  color: #fff !important;
}

/* ML-pop専用: 外側右上の閉じるボタンを使うため、内側の×は非表示 */
body.sod-top-ml-pop .modal-score1-popup .pv-close {
  display: none !important;
}

body.sod-top-ml-pop .modal-score1-popup .pv-place,
body.sod-top-ml-pop .modal-score1-popup .pv-date {
  color: #fff;
}

body.sod-top-ml-pop .modal-score1-popup .pv-bottom-right {
  /* 場所が長い場合、右下パネルはポップアップ幅の半分以内 */
  max-width: 50%;
  /* 場所テキストが2行に増えて高さが変わった際、flex-end だけでは
     底辺が浮くケースがある（テキスト後入れで再計算が不完全）。
     margin-top:auto で上方向の空きを吸収し、確実に下揃えにする */
  align-self: flex-end !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  top: auto !important;
  height: auto !important;
  min-height: 0 !important;
}

body.sod-top-ml-pop .modal-score1-popup .pv-place {
  /* 場所は必要時のみ2行化（3行目は省略） */
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.25;
}

/* iPhone 横向き崩れ対策（タッチ端末のみ。狭いPCウィンドウは hover:hover のため除外し、
   下部パレットがデスクトップ用レイアウトを維持する） */
@media (orientation: landscape) and (max-height: 520px) and (hover: none) {
  body.sod-top-ml-pop .modal-score1-popup .modal {
    width: 80% !important;
    height: calc(100dvh - 8px) !important;
    max-height: calc(100dvh - 8px) !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .icon_item_title {
    margin: 3px auto 0 !important;
    width: 24px;
    height: 24px;
    font-size: 18px;
  }

  body.sod-top-ml-pop .modal-score1-popup .text_item_title {
    font-size: 14px;
    line-height: 1.1;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  body.sod-top-ml-pop .modal-score1-popup .text_item_popup_content_name {
    font-size: 15px !important;
    line-height: 1.15;
    min-height: 34px;
    max-height: 34px;
    padding: 2px 8px;
    /* 横向きスマホでは2行固定で溢れを抑止 */
    -webkit-line-clamp: 2;
  }

  body.sod-top-ml-pop .modal-score1-popup .wrapper_item_title {
    max-height: 74px;
    overflow: hidden;
  }

  /* 横向きスマホUI: 4隅固定レイアウト */
  body.sod-top-ml-pop .modal-score1-popup .pv-bottom-bar {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
  }

  body.sod-top-ml-pop .modal-score1-popup .pv-bottom-left {
    position: absolute;
    left: 0;
    bottom: 0 !important;
    margin: 0;
    max-width: 58%;
    border-radius: 10px;
  }

  body.sod-top-ml-pop .modal-score1-popup .pv-bottom-right {
    position: absolute;
    right: 0;
    bottom: 0 !important;
    margin: 0;
    max-width: 46%;
    font-size: 11px;
    border-radius: 10px;
    transform: none !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .pv-prev {
    left: 0 !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .pv-next {
    right: 0 !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .pv-nav {
    width: 44px;
    height: 44px;
    border-radius: 0;
  }

  body.sod-top-ml-pop .modal-score1-popup .pv-counter {
    right: 8px !important;
    top: 8px !important;
    z-index: 9;
  }

  /* 横向きでもステージは全面固定（ドラッグ時に表示エリアが動いて見える問題を抑止） */
  body.sod-top-ml-pop .modal-score1-popup .pv-stage {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .btn_pop_close {
    /* 共通方針どおり枠内右上 */
    top: 6px;
    right: 6px;
    z-index: 10;
  }
}

/* スマホ共通（縦横）:
   UIは角固定を最優先。popup_viewer.css 後読み込みの影響を避けるため !important を併用 */
@media (max-width: 900px) {
  body.sod-top-ml-pop .modal-score1-popup .modal {
    width: 80% !important;
    height: calc(100dvh - 10px) !important;
    max-height: calc(100dvh - 10px) !important;
  }

  /* popup_viewer.css の max-height: calc(90dvh-140px) を打ち消し、
     wrapper をモーダル底辺まで伸ばす（ボトムパネルが底に来るために必須） */
  body.sod-top-ml-pop .modal-score1-popup .wrapper_popup_common {
    max-height: none !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .pv-bottom-bar {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    inset: auto 0 0 0 !important;
    z-index: 9 !important;
    pointer-events: none !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .pv-bottom-left {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    max-width: 58% !important;
    border-radius: 10px !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .pv-bottom-right {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    max-width: 46% !important;
    border-radius: 10px !important;
    transform: none !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .pv-prev {
    left: 0 !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .pv-next {
    right: 0 !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .pv-nav {
    width: 44px !important;
    height: 44px !important;
    border-radius: 0 !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .btn_pop_close {
    top: 6px !important;
    right: 6px !important;
    z-index: 11 !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .text_item_popup_content_name {
    font-size: 16px !important;
    line-height: 1.15 !important;
    padding: 2px 8px !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .text_item_popup_content_name.is-long {
    font-size: 14px !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .text_item_popup_content_name.is-very-long {
    font-size: 12px !important;
  }
}

@media (max-width: 479px) {
  body.sod-top-ml-pop .modal-score1-popup .modal {
    width: 90% !important;
  }
}

/* 狭いPCブラウザ（幅≦900px かつマウス操作）:
   max-width:900px 単体だとスマホ用「左右下端に角固定」と同じになり、ズームパレット／場所日付の位置が変わる。
   popup_viewer と同様、フレックス＋左右余白で本番PCと揃える。 */
@media (max-width: 900px) and (hover: hover) and (pointer: fine) {
  /* スマホ用 100dvh-10px を上書き。狭いPCは 90dvh でデスクトップ相当の高さに */
  body.sod-top-ml-pop .modal-score1-popup .modal {
    height: 90dvh !important;
    max-height: 90dvh !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .pv-bottom-bar {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    top: auto !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    gap: 8px !important;
    z-index: 9 !important;
    pointer-events: none !important;
  }

  /* popup_viewer.css @media(max-width:640px) の order/column を打ち消し、
     zoom=左、place/date=右 を狭いPCでも維持する */
  body.sod-top-ml-pop .modal-score1-popup .pv-bottom-left {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    margin-right: auto !important;
    max-width: 58% !important;
    border-radius: 10px !important;
    order: 0 !important;
    flex-shrink: 0 !important;
    align-self: flex-end !important;
  }

  body.sod-top-ml-pop .modal-score1-popup .pv-bottom-right {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    margin-left: auto !important;
    max-width: 46% !important;
    border-radius: 10px !important;
    transform: none !important;
    align-self: flex-end !important;
    order: 1 !important;
  }
}

body.sod-top-ml2.ml2-header-in .navbar-logo-left-container,
body.sod-top-ml2.ml2-header-in .navbar-logo-left-container.shadow-three,
body.sod-top-ml2.ml2-header-in .w-nav {
  top: 0;
  opacity: 1;
}

/* --- Hero brand overlay (logo + song title) --- */
.sod-hero-brand {
  position: absolute;
  top: 110px;
  left: var(--sod-hero-left, 5px);
  right: auto;
  z-index: 4500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: calc(100vw - var(--sod-hero-left, 5px) - 16px);
  opacity: 1;
  transform: translateY(-80px);
  transition: transform 1.5s ease;
  pointer-events: none;
  /* 曲名行の「♪」をロゴの「S」左に揃えるため .sod-hero-logo 高さと共有（pageId=3 で上書き） */
  --sod-hero-logo-h: clamp(76px, 11vw, 160px);
}
body.sod-top-ml2.ml2-header-in .sod-hero-brand {
  transform: translateY(0);
}
.sod-hero-logo {
  height: var(--sod-hero-logo-h);
  width: auto;
  max-width: 100%;
  display: block;
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55))
    drop-shadow(1px 0 1px rgba(0, 0, 0, 0.55))
    drop-shadow(-1px 0 1px rgba(0, 0, 0, 0.55));
  flex-shrink: 0;
}
.sod-hero-title {
  font-family: 'Noto Serif JP', serif;
  /* song-of-the-day.svg: S 字形の左端はパス始点 x=87 より左。S 用 radialGradient の左端 cx−r≈30.7 を基準に表示高へ換算 */
  margin-left: calc(var(--sod-hero-logo-h) * 31 / 157.14);
  font-size: clamp(19px, 2.8vw, 40px);
  font-weight: 600;
  line-height: 1;
  color: #F1D4AF;
  white-space: nowrap;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.7),
    1px 0 2px rgba(0, 0, 0, 0.7),
    -1px 0 2px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.04em;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}
.sod-hero-title::before {
  content: "♪ ";
}
.sod-hero-title::after {
  content: " ›";
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.15em;
  animation: sod-hint-right 1.8s ease-in-out infinite;
}
@keyframes sod-hint-right {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(5px); opacity: 1; }
}
.sod-hero-title:hover {
  color: #ffe8c4;
  text-shadow:
    0 0 12px rgba(241, 212, 175, 0.9),
    0 0 24px rgba(241, 212, 175, 0.5),
    0 0 40px rgba(241, 212, 175, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.9);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* --- Fullscreen: keep top-buttons visible --- */
.main-wrapper:fullscreen .top-buttons,
.main-wrapper:-webkit-full-screen .top-buttons {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 2147483647;
}
.main-wrapper:fullscreen .info-display,
.main-wrapper:-webkit-full-screen .info-display {
  z-index: 2147483646;
}
/* Fullscreen: logo top-left, title top-right */
.main-wrapper:fullscreen .sod-hero-brand,
.main-wrapper:-webkit-full-screen .sod-hero-brand {
  top: 16px;
  left: 16px;
  right: 16px;
  opacity: 1;
  transform: translateY(0);
}
.main-wrapper:fullscreen .sod-hero-title,
.main-wrapper:-webkit-full-screen .sod-hero-title {
  pointer-events: none;
  cursor: default;
}

.main-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: black;
}

@supports (height: 100dvh) {
  .main-wrapper {
    height: 100dvh;
  }
}

.main-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* video */
.video-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
}

.video-container.active {
  display: block;
}

.video-container .video-js {
  position: relative;
  width: 100%;
  height: 100%;
  background: black;
  overflow: hidden;
}

.video-container .video-js .vjs-tech {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-position: center center;
}

/* video.jsコントロール表示/非表示をクラスで制御 + スタイル付与 */
.video-container .video-js .vjs-control-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 10;
  background: rgba(0, 0, 0, 0.65);
}

.controls-hidden .vjs-control-bar {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.controls-visible .vjs-control-bar {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.15s ease;
}

/* slides */
.slides-container {
  position: absolute;
  inset: 0;
  /* フェード(.fade-overlay)より下。デバッグ用 .focus-marker は fixed + z-index:10000 */
  z-index: 150;
  display: none;
}

.slides-container.active {
  display: block;
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* クロスフェード時は表示中スライドを手前に（下のスライドと重ねてフェード） */
.slide-image.active {
  opacity: 1;
  z-index: 2;
}

.slide-image img {
  position: absolute;
  max-width: none;
  max-height: none;
}

/* overlays */
.fade-overlay {
  position: absolute;
  inset: 0;
  background: black;
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
  /* .slides-container(150) より手前。動画→写真の黒が写真の下に回らないようにする */
  z-index: 200;
}

.fade-overlay.is-fading {
  opacity: 1;
}

.dim-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
  z-index: 50;
}

.main-wrapper.is-dim .dim-overlay {
  opacity: 1;
}

/* scroll indicator */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  z-index: 4000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.scroll-indicator .scroll-text {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.scroll-indicator .material-symbols-outlined {
  font-size: 28px;
  line-height: 1;
}

.scroll-indicator.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-indicator .arrow-bounce {
  animation: arrowBounce 1.4s ease-in-out infinite;
}

.scroll-indicator:hover {
  transform: translateX(-50%) translateY(-2px);
}

@keyframes arrowBounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(4px); }
  100% { transform: translateY(0); }
}

/* BGM / フルスクリーン — .info-display 内の右下（旧: 右上 absolute） */
.top-buttons {
  position: static;
  z-index: 2000;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  pointer-events: auto;
}

.circle-button {
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* BGM / フルスクリーン: 24px・Filled（Material Symbols リガチャ） */
#bgm_icon.material-symbols-outlined,
#fullscreen_icon.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-size: 24px;
  line-height: 1;
  font-weight: normal;
  font-style: normal;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
  -webkit-font-smoothing: antialiased;
}

/* play button */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3000;
  width: 80px;
  height: 80px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, background 0.12s ease;
}

.play-button.is-visible {
  display: flex;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(0, 0, 0, 0.85);
}

.play-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

/* info — 左: L/R/T/B（上）+ ステータス行（下）、右: BGM / フルスクリーン */
.info-display-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  pointer-events: none;
}

.info-display {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1800;
  font-family: "SF Mono", "Monaco", "Menlo", "Consolas", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  padding: 0;
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 12px;
}
.info-display.sod-info-active {
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 10px;
  justify-content: space-between;
}

/* continue dialog
   fixed + 高 z-index: Song of the Day / linkpanel より前面。viewport 中央に重ねる。 */
.continue-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 11000;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.continue-dialog-backdrop.is-open {
  display: flex;
}

.continue-dialog-backdrop.is-backdrop-only .continue-dialog {
  display: none;
}

.continue-dialog {
  width: min(92vw, 420px);
  max-width: 100%;
  margin: auto;
  background: #111;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  padding: 18px 16px 14px;
  flex-shrink: 0;
}

.continue-dialog h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.continue-dialog p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.continue-dialog .actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.continue-dialog button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
}

.continue-dialog button.yes {
  background: #2f7cf6;
  color: #fff;
}

.continue-dialog button.no {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* 狭幅でも中央（旧: 左下オフセットは Song of the Day 前面化に伴い廃止） */
@media (max-width: 768px) {
  body.sod-top-ml-pop .continue-dialog-backdrop {
    align-items: center;
    justify-content: center;
  }

  body.sod-top-ml-pop .continue-dialog {
    position: relative;
    left: auto;
    top: auto;
    width: min(88vw, 360px);
  }
}

/* dummy content */
main.site-content {
  background-color: #f5f5f5;
  padding: 32px 16px 64px;
}

.content-section {
  max-width: 960px;
  margin: 0 auto 40px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 24px 20px 28px;
}

.content-section h2 {
  margin: 0 0 16px;
  font-size: 20px;
  border-left: 4px solid #333;
  padding-left: 8px;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 12px;
  color: #888;
  margin-right: 8px;
}

.news-title {
  font-size: 14px;
}

/* new info blocks */
.infowrap {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.infoheading {
  font-size: 20px;
  margin: 0 0 8px;
  padding-left: 8px;
  border-left: 4px solid #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.infoheading span {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0));
  padding: 4px 8px;
  border-radius: 6px;
}

.infoheading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d7d7d7;
  margin-top: 2px;
}

.infocontainer {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 18px 16px;
}

.recomcont,
.newscont,
.snscont {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

.infocontainer-sns {
  padding: 0;
}

.recomcont li a,
.newscont li a,
.snscont li a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.recomttl {
  font-weight: 700;
  margin-bottom: 10px;
}

.recomdetail {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: start;
}

.recomtext {
  line-height: 1.6;
  font-size: 14px;
}

.altextr {
  margin-top: 6px;
  color: #777;
  font-size: 13px;
}

.infoimg {
  width: 120px;
  height: 90px;
  background: #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.infoimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newscont li,
.snscont li {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 12px 12px 10px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto auto;
  gap: 8px 10px;
}

.newscont .newssum,
.newscont .plusinfo {
  grid-column: 1 / -1;
}

.newscont .infoimg {
  width: 160px;
  height: 100px;
}

.postday {
  font-size: 12px;
  color: #666;
}

.genre {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #efefef;
  color: #333;
  display: inline-block;
}

.gbook { background: #ffe7c7; }
.gtv { background: #cfe7ff; }
.gcd { background: #e7d3ff; }

.newssum {
  font-weight: 700;
}

.plusinfo {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.addbtnrow {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.addlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2f7cf6;
  text-decoration: none;
  font-weight: 600;
}

.snscont .snslogo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #ddd;
}

.snscont .xlogo { background: #111; }
.snscont .faceblogo { background: #3b5998; }
.snscont .ytubelogo { background: #e21d24; }

.snscont li {
  display: grid;
.snscont li a {
  width: 100%;
  display: block;
}

.snsitem {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.infocontainer-sns .snscont {
  gap: 0;
}

.infocontainer-sns .snscont li + li .snsitem {
  border-top: none;
}

.infocontainer-sns .snscont li:first-child .snsitem {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.infocontainer-sns .snscont li:last-child .snsitem {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.snsicon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}

.snsicon.xlogo { background: #111; }
.snsicon.faceblogo { background: #1877f2; font-family: "Helvetica", "Arial", sans-serif; }
.snsicon.ytubelogo { background: #e62117; font-size: 18px; padding-left: 2px; }

.snsmeta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.snssum {
  font-size: 14px;
}

.snsarrow {
  color: #9a9a9a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ginfo { background: #6b5653; color: #fff; }

/* footer */
.footer {
  margin-top: 24px;
}

.footerdiv {
  background: #111;
  color: #fff;
}

.footer-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.footer-brand img {
  display: block;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.footer-bottom {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.alright {
  text-align: right;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* splash */
.splash {
  padding: 32px 16px 48px;
  background: #000;
  color: #fff;
  text-align: center;
}

.mainmess .splitettl {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: 0.08em;
}

.notemv video {
  max-width: 640px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* focus debug */
.focus-marker {
  position: fixed;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  background: rgba(255, 0, 0, 0.9);
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  opacity: 0.95;
}
