/* ======================================
   Single Soundtrack — 完全版デザイン（整理済み）
   ====================================== */

/* 全体コンテナ */
.single-soundtrack-wrapper {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 16px 60px;
}

@media (min-width: 768px) {
    .single-soundtrack-wrapper {
        padding-top: 40px;
        padding-bottom: 80px;
    }
}

/* ======================================
   ジャケット ＋ タイトル（メインビジュアル領域）
   ====================================== */

.single-soundtrack-header {
    text-align: center;
    margin-bottom: 10px;
}

/* ジャケット画像 */
.soundtrack-jacket {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 12px;
}

.soundtrack-jacket img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* PCではジャケットを大きく見せる */
@media (min-width: 768px) {
    .soundtrack-jacket {
        max-width: 460px;
        margin-bottom: 16px;
    }
}

/* アルバム名（区切り線つき） */
.soundtrack-album-name {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 700;
    text-align: center;

    padding-bottom: 14px;
    margin-bottom: 36px; /* 最終値ここに統合 */

    border-bottom: 1px solid rgba(255,255,255,0.10);

    overflow-wrap: anywhere;   /* ★ 数字のみでも強制改行 */
    word-break: break-word;    /* ★ 旧ブラウザ対策 */
    line-break: anywhere;      /* ★ 日本語＋数字の混在も安全 */

}

@media (min-width: 768px) {
    .soundtrack-album-name {
        font-size: 2.1rem;
        margin-bottom: 44px;
        padding-bottom: 16px;
        border-bottom-color: rgba(255,255,255,0.14);
    }
}

/* ======================================
   ストリーミングボタン
   ====================================== */

.single-soundtrack-streaming {
    margin: 10px 0 30px;
}

/* PC：2列 ／ スマホ：1列 */
.streaming-main-buttons,
.streaming-extra-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .streaming-main-buttons,
    .streaming-extra-buttons {
        grid-template-columns: 1fr;
    }
}

/* ボタン共通デザイン */
.stream-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 60px;
    padding: 16px 16px;
    border-radius: 8px;
    text-align: center;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    text-decoration: none;

    background: #333;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* PCでは文字とロックアップを少し大きく（視認性優先） */
@media (min-width: 769px) {
  .stream-btn {
    font-size: 17px;
    min-height: 62px;
  }

  .stream-btn.applemusic[data-apple-official="1"] .applemusic-official-badge{
    height: 34px;
    max-width: 280px;
  
    transform: translateY(2px);
}
}


.stream-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* 各サービスカラー（落ち着いたトーン） */
.stream-btn.spotify      { background: #155f3d; }
.stream-btn.ytmusic      { background: #7a1d1d; }
.stream-btn.applemusic   { background: #3a3a3a; }

.stream-btn.amazonmusic  { background: #2e3c46; }
.stream-btn.linemusic    { background: #0f6e55; }

/* Apple公式（ロックアップ）を他ボタンと同じ枠で表示
   - data-apple-official="1" は常に表示（フィルタ対象外）
   - ボタン枠は他サービスと統一
*/
.stream-btn.applemusic[data-apple-official="1"]{
    grid-column: 1 / -1;
    background: #3a3a3a;
    padding: 16px 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stream-btn.applemusic[data-apple-official="1"] .applemusic-official-badge{
    display: block;
    height: 32px;
    width: auto;
    flex: 0 0 auto;
    margin: 0 auto;
    max-width: 260px;

    transform: translateY(1px);
}

/* 公式素材が未配置の場合のフォールバック */
.stream-btn.applemusic[data-apple-official="1"] .applemusic-official-fallback{
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}


/* サービス選択（将来機能）の状態用クラス */
body.preferred-selected-active .streaming-main-buttons,
body.preferred-selected-active .streaming-extra-buttons {
    grid-template-columns: 1fr !important;
    justify-items: stretch;
}

body.preferred-selected-active .stream-btn {
    width: 100%;
    margin: 0;
}

@media (max-width: 768px) {
    body.preferred-selected-active .stream-btn {
        width: 100%;
    }
}

/* ======================================
   タクソノミー（背景なしで馴染ませる最終版）
====================================== */

.single-soundtrack-meta {
    margin-top: 40px;
    margin-bottom: 50px;
}

/* 全体の枠＋幅をボタンと揃える */
.soundtrack-taxonomies {
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;

    max-width: 720px;
    margin: 36px auto 50px;  /* 中央寄せ＋上下余白 */
}

/* PC: 2 カラム */
.taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
    grid-auto-flow: dense;
}

/* スマホは 1 カラム */
@media (max-width: 768px) {
    .taxonomy-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

/* 各項目のタイトル（dt） */
.taxonomy-item dt {
    font-size: 15px;
    font-weight: 600;
    color: #eaeaea;
    margin-bottom: 10px;
    text-align: left;

    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 6px;
}

/* 項目の内容（タグ群） */
.taxonomy-item dd {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

/* タグ（リンク） */
.taxonomy-item dd a {
    display: inline-block;
    padding: 7px 14px;

    background: #222;
    border: 1px solid #333;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;
    color: #f3f3f3;
    text-decoration: none;

    transition: 0.2s ease;
}

.taxonomy-item dd a:hover {
    background: #333;
    border-color: #555;
}




/* ============================================================
   サービス選択 UI（single ページ最下部・フッター直前）
============================================================ */

#footer-service-selector {
    width: 100%;
    margin: 0;                       /* フッターとの隙間を消す */

    padding: 24px 0 28px; /* 32 → 24 に少し縮めると締まる */
    background: #141414;             /* フッターに馴染む濃い背景 */
    border-top: 1px solid #242424;   /* 上に薄いラインで区切る */
    text-align: center;
}

/* ---- UI コンテナ ---- */
.service-select-ui {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-select-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.service-select-note {
    margin-top: -10px;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
}

/* ============================================================
   サービスボタン（モノトーン / チェックマーク付き）
============================================================ */

.service-button-wrap {
    display: grid;
    /* PC：2行2列（4ボタン） */
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 26px;
}

@media (max-width: 768px) {
    .service-button-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- ボタン共通 ---- */
.service-option {
    position: relative;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;

    background: #2a2a2a;
    border: 1px solid #3a3a3a;

    cursor: pointer;
    transition: 0.2s ease;
    text-align: center;
}

.service-option:hover {
    background: #353535;
}

/* ---- 選択中：モノトーンのまま強調 ---- */
.service-option.is-active {
    background: #444;
    border-color: #666;
}

/* ---- 選択中：チェックマークを右端に表示 ---- */
.service-option.is-active::after {
    content: "✔";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    font-size: 14px;
    color: #ffffff;
    opacity: 0.9;
}

/* ============================================================
   決定ボタン（モノトーン）
============================================================ */

.service-select-actions #service-save {
    padding: 12px 28px;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s ease;
}

.service-select-actions #service-save:hover {
    background: #3a3a3a;
    border-color: #666;
}

/* ============================================================
   選択済み表示（フッター直前）
============================================================ */

.service-change-link {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
    color: #e8e8e8;
    font-size: 15px;
    text-align: center;
}

.service-change-link strong {
    color: #fff;
    font-weight: 600;
}

.service-change-link a {
    color: #7fb4ff;   /* ← 変更しない（要望通り） */
    margin-left: 4px;
    text-decoration: underline;
    cursor: pointer;
}

.service-change-link a:hover {
    opacity: 0.85;
}

/* ============================================================
   ストリーミングボタン直下の誘導リンク（未選択時のみ）
============================================================ */

.service-select-notice {
    margin-top: 16px;
    margin-bottom: 6px;
    text-align: center;
}

.service-select-notice .notice-link {
    font-size: 14px;
    color: #7fb4ff; /* ← 色は変えない */
    text-decoration: underline;
}

.service-select-notice .notice-link:hover {
    opacity: 0.85;
}

/* ============================================================
   0件メッセージ（選択したサービスで配信なし）
============================================================ */

.no-service-available {
    margin-top: 14px;
    padding: 10px 0;
    text-align: center;
    color: #ccc;
    font-size: 14px;
    opacity: 0.9;
}


/* 誘導リンク（特定のサービスだけを表示する） */
.service-select-notice .notice-link {
    color: #e0e0e0 !important;   /* ← 本文色に変更 */
}

/* （変更）リンク */
.service-change-link a {
    color: #e0e0e0 !important;   /* ← 本文色に変更 */
    text-decoration: underline;
}

/* hover も控えめに */
.service-select-notice .notice-link:hover,
.service-change-link a:hover {
    opacity: 0.75;
}

.single-soundtrack .gmd-footer{margin-top:0px;}

.service-select-notice .notice-link {
    font-size: 14px;
    color: #ddd;    /* ★ 通常の本文カラーへ */
    text-decoration: none;   /* ★ 下線なし */
}

.service-select-notice .notice-link:hover {
    opacity: 0.8;
}
.service-change-link a {
    color: #ddd;           /* ★ 通常文と同じ色へ変更 */
    text-decoration: none; /* ★ 下線なし */
}

.service-change-link a:hover {
    opacity: 0.8;
}


/* ================================
   スマホ専用：利用中サービス表示の安定化
================================= */

@media (max-width: 768px) {

    .service-current-ui {
        text-align: center;
        display: block;
        line-height: 1.5;
    }

    .service-current-ui .scu-row1 {
        display: block;
        margin-bottom: 4px;
        color: #dcdcdc;
        font-size: 14px;
    }

    .service-current-ui .scu-row2 {
        display: block;
        font-size: 14px;
    }

    .service-current-ui .scu-row2 .service-names {
        display: inline;
    }

    .service-current-ui .scu-row2 .service-change {
        margin-left: 4px;
        display: inline;
    }
}
.service-change-link .current-service-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.service-change-link {
    justify-content: center;
}

.service-option.is-active {
    position: relative; /* 念のため明示 */
}

/* チェックマークの視認性改善＋完全中央配置 */
.service-option.is-active::after {
    content: "✓";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%); /* ← 垂直中央に必ず来る */

    width: 18px;
    height: 18px;
    border-radius: 50%;

    background: rgba(255,255,255,0.22);

    display: flex !important;            /* ← 強制 */
    align-items: center !important;      /* ← 強制 */
    justify-content: center !important;  /* ← 強制 */

    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1;                      /* ← フォント高さ差を吸収 */

    pointer-events: none;
}


/* ▼スマホだけ「利用中 → サービス名 → （変更）」の縦並びにする */
@media (max-width: 768px) {
    #footer-service-selector .service-change-link {
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    #footer-service-selector .service-change-link span {
        display: block;
        font-size: 14px;
        opacity: 0.85; /* 利用中ラベル */
    }

    #footer-service-selector .service-change-link strong {
        display: block;
        font-size: 14px;
        font-weight: 600;
    }

    #footer-service-selector .service-change-link a.service-reset {
        display: inline-block;
        font-size: 14px;
        text-decoration: none;
        margin-top: 4px;
    }
}

@media (max-width: 768px) {
    .service-change-link .sc-reset {
        display: inline-block;
        padding: 4px 10px;     /* ← 横幅をさらに縮小 */
        margin-top: 6px;

        background: #2a2a2a;
        border-radius: 5px;    /* ← 少しだけ角も小さく */
        
        color: #fff;
        text-decoration: none;
        font-size: 13px;       /* ← ボタンに合わせ少し小さめ */

        opacity: 0.9;
        transition: background 0.2s ease, opacity 0.2s ease;
    }

    .service-change-link .sc-reset:hover {
        background: #3a3a3a;
        opacity: 1;
    }
}


/* ================================
   PC ＆ スマホ共通：変更ボタン（控えめデザイン）
================================ */
.service-change-link .sc-reset {
    display: inline-block;
    padding: 4px 10px;         /* ← PC でも控えめなボタンサイズ */
    margin-left: 6px;

    background: #2a2a2a;       /* かなり控えめな暗グレー */
    border-radius: 5px;
    color: #fff;

    font-size: 13px;
    text-decoration: none;

    opacity: 0.85;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.service-change-link .sc-reset:hover {
    background: #3a3a3a;
    opacity: 1;
}

/* ================================
   スマホは中央寄せ・縦レイアウト
================================ */
@media (max-width: 768px) {
    .service-change-link.mobile-layout .sc-reset {
        margin-left: 0;      /* PC 用余白を解除 */
        margin-top: 6px;
        padding: 4px 10px;   /* 小ぶりでスマホ向け */
    }
}


/* PC/スマホ 共通：変更ボタンの縦位置を完全に中央揃えにする */
.service-change-link .service-reset {
    display: inline-flex;         /* ← これで縦中央揃えが安定 */
    align-items: center;          /* ← テキストを中央へ */
    justify-content: center;

    padding: 4px 10px;
    font-size: 13px;

    background: #333;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;

    transform: translateY(-1px);  /* ← ズレを微調整（自然に見える） */
}

.service-change-link .service-reset:hover {
    background: #444;
}




/* =====================================================
   関連アルバム CSS（完全版）
   - PC：ジャケットのみ + hoverでカード風タイトル
   - SP：横スクロール + 下に2行タイトル（背景なし）
===================================================== */

/* --- セクション全体 --- */
.related-albums {
  margin: 48px 0;
}

/* 見出し：左寄せ */
.related-albums .section-title {
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: rgba(255,255,255,0.9);
}

/* =====================================================
   PC：4枚グリッド
===================================================== */
.related-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* サムネイルリンク */
.related-thumb {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

/* 画像 */
.related-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   PC：ホバーでカード風タイトル表示（数字だけでも改行）
   ※ hover可能デバイスのみ
===================================================== */
@media (hover: hover) and (pointer: fine) {
  .related-thumb::after {
    content: attr(aria-label);
    position: absolute;
    inset: auto 6px 6px 6px;

    background: rgba(20,20,20,0.92);
    color: #fff;

    font-size: 12px;
    line-height: 1.4;
    padding: 8px 10px;

    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.6);

    /* 表示制御 */
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;

    pointer-events: none;

    /* ▼ 数字だけの長文でも折り返す */
    white-space: normal;
    overflow-wrap: anywhere;   /* 最優先：どこでも折る */
    word-break: break-word;    /* 保険 */
  }

  .related-thumb:hover::after {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   スマホ：横スクロール（Netflix風）+ 下に2行タイトル（背景なし）
   ※ hoverなしデバイス想定
===================================================== */
@media (hover: none) and (pointer: coarse) {

  /* 横スクロール */
  .related-thumb-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 0 8px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* 1枚の幅（必要なら調整） */
  .related-thumb {
    flex: 0 0 140px;
    scroll-snap-align: start;
    background: transparent; /* 画像があるのでOK */
    overflow: visible;       /* 下にタイトルを出すため */
  }

  /* 画像は角丸維持 */
  .related-thumb img {
    border-radius: 6px;
  }

  /* タイトル：ジャケット下に常時表示（黒背景なし） */
  .related-thumb::after {
    content: attr(aria-label);
    position: static;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;    /* 2行まで */
    overflow: hidden;

    margin-top: 6px;

    font-size: 12px;
    line-height: 1.35;
    color: rgba(255,255,255,0.85);

    /* 背景なし */
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;

    /* ▼ 数字だけでも必ず折り返す */
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;

    /* PC用の表示制御を打ち消し */
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: none;
  }
}

/* =====================================================
   追加：横スクロールのスクロールバーを控えめに（任意）
===================================================== */
@media (hover: none) and (pointer: coarse) {
  .related-thumb-grid::-webkit-scrollbar {
    height: 6px;
  }
  .related-thumb-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
  }
  .related-thumb-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
  }
}



/* タクソノミー：縦ボタンリスト */
.taxonomy-button-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ボタン本体 */
.taxonomy-button {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 6px 10px;
  border-radius: 6px;

  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 13px;

  transition: background 0.15s ease, transform 0.15s ease;
}

/* hover */
.taxonomy-button:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(2px);
}

/* 名前 */
.taxonomy-button .tax-name {
  font-weight: 500;
  word-break: break-word;   /* 数字だけ・長文対策 */
}

/* 件数 */
.taxonomy-button .tax-count {
  font-size: 12px;
  opacity: 0.7;
  flex-shrink: 0;
  margin-left: 8px;
}

/* ===============================
   single soundtrack : taxonomy
   トップページ準拠・縦並び
================================ */

/* リスト全体 */
.single-soundtrack-meta .taxonomy-button-list {
  display: flex;
  flex-direction: column;
  gap: 10px; /* トップより少し詰める */
}

/* 1行1カード */
.single-soundtrack-meta .taxonomy-card--single {
  width: 100%;
  text-decoration: none;
}

/* ホバー時：横に流れないように */
.single-soundtrack-meta .taxonomy-card--single:hover {
  transform: none;            /* 上に浮かせない */
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}

/* モバイル微調整 */
@media (max-width: 768px) {
  .single-soundtrack-meta .taxonomy-card--single {
    padding: 14px 14px;
  }

  .single-soundtrack-meta .taxonomy-name {
    font-size: 14px;
  }
}

/* =====================================================
   タクソノミー名：数字のみでも必ず改行させる
   ===================================================== */

/* 共通（念のため） */
.taxonomy-name {
  overflow-wrap: anywhere;   /* ★ 最重要：数字でも強制改行 */
  word-break: break-word;
}

/* シングルページ用（ボタン1行1個レイアウト想定） */
.single-soundtrack .taxonomy-name {
  white-space: normal;       /* nowrap を完全解除 */
  line-height: 1.4;
}



/* 見出し下の「一覧を見る」リンク */
.related-term-link{
  margin: 6px 0 10px;
  text-align: left;
  font-size: 13px;
}

.related-term-link a{
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.related-term-link a:hover{
  text-decoration: underline;
}


/* ============================================================
   サービス選択ボタン：stream-btn と見た目・色を統一
   （#footer-service-selector 内だけに限定）
============================================================ */

/* 1) ベースを stream-btn 相当に統一 */
#footer-service-selector .service-option {
  display: block;
  width: 100%;

  padding: 16px 16px;
  border-radius: 8px;
  text-align: center;

  font-size: 16px;
  font-weight: 600;
  color: #fff;

  background: #333;          /* デフォルト */
  border: none;              /* button のデフォルト枠を消す */
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);

  transition: opacity 0.2s ease, transform 0.15s ease;
}

#footer-service-selector .service-option:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* 2) 選択中の強調（モノトーンではなく“選択状態”として統一） */
#footer-service-selector .service-option.is-active {
  outline: 2px solid rgba(255,255,255,0.28);
  outline-offset: 0;
  opacity: 1;
}

/* チェックの視認性（色付き背景でも沈まないように） */
#footer-service-selector .service-option.is-active::after {
  background: rgba(0,0,0,0.22);
}

/* 3) サービス別カラー：data-service で指定（JS側のclass変更不要） */
#footer-service-selector .service-option[data-service="spotify"]      { background: #155f3d; }
#footer-service-selector .service-option[data-service="ytmusic"]      { background: #7a1d1d; }
#footer-service-selector .service-option[data-service="applemusic"]   { background: #3a3a3a; }
#footer-service-selector .service-option[data-service="amazonmusic"]  { background: #2e3c46; }
#footer-service-selector .service-option[data-service="linemusic"]    { background: #0f6e55; }

/* 4) 予備：もし data-service が無く class 付与型ならこちらでも効く */
#footer-service-selector .service-option.spotify      { background: #155f3d; }
#footer-service-selector .service-option.ytmusic      { background: #7a1d1d; }
#footer-service-selector .service-option.applemusic   { background: #3a3a3a; }
#footer-service-selector .service-option.amazonmusic  { background: #2e3c46; }
#footer-service-selector .service-option.linemusic    { background: #0f6e55; }

/* 5) 「決定」ボタンも stream-btn と同じトーンに揃える（任意） */
#footer-service-selector .service-select-actions #service-save {
  padding: 10px 34px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;

  color: #fff;
  background: #333;
  border: none;

  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  transition: opacity 0.2s ease, transform 0.15s ease;
}
#footer-service-selector .service-select-actions #service-save:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}


/* ============================================================
   サービス選択ボタン：文字（フォント）も stream-btn と統一
============================================================ */
#footer-service-selector .service-option{
  /* ボタンリセット系 */
  appearance: none;
  -webkit-appearance: none;
  border: none;

  /* stream-btn と同等 */
  display: block;
  width: 100%;
  padding: 16px 16px;


  border-radius: 8px;
  text-align: center;

  font-family: inherit;
  font-size: 16px;      /* ← stream-btn と同じ */
  font-weight: 600;     /* ← stream-btn と同じ */
  line-height: 1.2;     /* ← 表示の安定 */
  color: #fff;

  text-shadow: 0 1px 2px rgba(0,0,0,0.6); /* ← stream-btn と同じ */

  background: #333; /* デフォルト */
  cursor: pointer;

  transition: opacity 0.2s ease, transform 0.15s ease;
}

#footer-service-selector .service-option:hover{
  opacity: 0.88;
  transform: translateY(-1px);
}

/* 選択中：状態表現だけ追加（文字はそのまま） */
#footer-service-selector .service-option.is-active{
  outline: 2px solid rgba(255,255,255,0.28);
  outline-offset: 0;
  opacity: 1;
}

/* チェックマークも文字のトーンに合わせて調整 */
#footer-service-selector .service-option.is-active::after{
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}



/* ============================================================
   関連アルバム（カード統一版）
   - PC/SPで同一デザイン（一覧カード準拠）
   ============================================================ */

.related-albums .related-grid{
  /* SP: 1行スライド（初期表示 2.5列） */
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-top: 16px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.related-albums .related-grid > .album-card{
  /* 2.5列見せ（gap 14px ×2 を想定） */
  flex: 0 0 calc((100% - 28px) / 2.5);
  scroll-snap-align: start;
}

@media (min-width: 768px){
  /* PC: 1行4列（スライドなし） */
  .related-albums .related-grid{
    display: grid;
    overflow: visible;
    padding-bottom: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
  .related-albums .related-grid > .album-card{
    flex: initial;
  }
}

.related-albums .album-card{
  display: block;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.related-albums .album-card:hover{
  background: #222;
  transform: translateY(-2px);
}

.related-albums .album-card-thumb{
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
}

.related-albums .album-card-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-albums .album-card-body{
  padding: 10px 10px 8px;
}

.related-albums .album-card-title{
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  word-break: break-word;
}
