/* 01-base.css — 色と土台、読み込み中の仮置き、旧ページの一覧や表
 *
 * style.css を分けたもの。元は1本の7,600行だった。
 * ⚠️ 読み込む順番を変えないこと。番号の順に重ねることで、
 *    分ける前とまったく同じ見た目になる。あとの番号が勝つ。
 * ⚠️ 新しい指定をここの先頭に足さないこと。
 *    打ち消し合っている指定があるので、置き場所で結果が変わる。
 */
html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #0b0c10;
    --text-color: #f0f4f8;
    --card-bg: rgba(26, 28, 35, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --main-accent: #00e5ff;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(12px);

    /* メンバーのテーマカラー */
    --wen: #FF8C9B;
    --rito: #FAC31E;
    --ittetsu: #8C4664;
    --mana: #64C8F0;
    --inami: #DCFF50;
    --row: #5A5FAA;
    --shou: #A58CDC;
    --kagetsu: #6EB487;

    /* 文字・アクセント用のメンバー色。
       元の --xxx は明るい色を基準にしているため、
       そのまま文字に使うと背景とのコントラストが足りない
       （ライトモードの伊波ライは 1.03 でほぼ読めなかった）。
       ここではテーマごとに明度だけを調整し、色相は保っている。 */
    --wen-text: #FF8C9B;
    --rito-text: #FAC31E;
    --ittetsu-text: #B16385;
    --mana-text: #64C8F0;
    --inami-text: #DCFF50;
    --row-text: #7276B6;
    --shou-text: #A58CDC;
    --kagetsu-text: #6EB487;

    /* メンバー色でベタ塗りしたとき（バッジなど）に読める文字色 */
    --wen-on: #111;
    --rito-on: #111;
    --ittetsu-on: #fff;
    --mana-on: #111;
    --inami-on: #111;
    --row-on: #fff;
    --shou-on: #111;
    --kagetsu-on: #111;

    font-family: 'Noto Sans JP', sans-serif;
}

[data-theme="light"] {
    --bg-color: #f0f4f8;
    --text-color: #1a1c23;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);

    /* 文字用のメンバー色（明るい背景に載るので暗くする） */
    --wen-text: #DE001D;
    --rito-text: #8B6903;
    --ittetsu-text: #8C4664;
    --mana-text: #1078A1;
    --inami-text: #5D7400;
    --row-text: #5A5FAA;
    --shou-text: #7D59CD;
    --kagetsu-text: #3E7953;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 229, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(255, 92, 168, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    width: 100%;
    /* ← 【追加】画面幅を超えないようにする */
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
}

h1,
h2,
h3 {
    margin-bottom: 20px;
    font-weight: 700;
}

.title-glow {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: none;
    animation: none;
}

#member-name-display {
    background: none;
    -webkit-text-fill-color: var(--main-accent);
    color: var(--main-accent);
    animation: none;
}

/* メンバー名を「塗り」で見せる（app.js が member-name-fill を付ける）。
   ⚠️ 明るいメンバー色は文字色にするとライトモードで読めない
      （伊波ライの #DCFF50 は背景とのコントラスト比が 1.03）。
      塗りに使えば本来の色をそのまま見せられる。バッジと同じ考え方。
   ⚠️ この指定は #member-name-display と同じ強さで書くこと。
      クラスだけだと上の background:none と text-fill-color に負ける。 */
#member-name-display.member-name-fill {
    display: inline-block;
    padding: 6px 24px;
    background: var(--fill, var(--main-accent));
    color: var(--fill-on, #111);
    -webkit-text-fill-color: var(--fill-on, #111);
    border-radius: 999px;
    line-height: 1.3;
}



.subtitle {
    text-align: center;
    color: #cbd5e1;
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.stats-note {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--main-accent, #00e5ff);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 6px;
    display: inline-block;
    padding: 4px 14px;
    letter-spacing: 0.5px;
}

header:has(.stats-note) {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-left: 4px solid var(--main-accent);
    padding-left: 10px;
    margin: 50px 0 20px;
}

.cyber-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cyber-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    /* モバイルでの不要なtransformを抑制（PCのみに限定済みだが念のため） */
    transform: translateY(-2px);
}

@media (max-width: 768px) {

    .cyber-card,
    .table-wrapper {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(26, 28, 35, 0.95) !important;
        box-shadow: none !important;
    }

    [data-theme="light"] .cyber-card,
    [data-theme="light"] .table-wrapper {
        background: rgba(255, 255, 255, 0.95) !important;
    }

    .fab-container {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .cyber-card:hover {
        transform: none !important;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* JS (app.js) の display: none 制御を受け付けるため inline-style は不使用 */
}

@keyframes gaming-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes gaming-glow {

    0%,
    100% {
        text-shadow: 0 0 10px var(--wen), 0 0 20px var(--wen);
    }

    12.5% {
        text-shadow: 0 0 10px var(--rito), 0 0 20px var(--rito);
    }

    25% {
        text-shadow: 0 0 10px var(--ittetsu), 0 0 20px var(--ittetsu);
    }

    37.5% {
        text-shadow: 0 0 10px var(--mana), 0 0 20px var(--mana);
    }

    50% {
        text-shadow: 0 0 10px var(--inami), 0 0 20px var(--inami);
    }

    62.5% {
        text-shadow: 0 0 10px var(--row), 0 0 20px var(--row);
    }

    75% {
        text-shadow: 0 0 10px var(--shou), 0 0 20px var(--shou);
    }

    87.5% {
        text-shadow: 0 0 10px var(--kagetsu), 0 0 20px var(--kagetsu);
    }
}

@keyframes scan-color {

    0%,
    100% {
        background: var(--wen);
        box-shadow: 0 0 8px var(--wen);
    }

    12.5% {
        background: var(--rito);
        box-shadow: 0 0 8px var(--rito);
    }

    25% {
        background: var(--ittetsu);
        box-shadow: 0 0 8px var(--ittetsu);
    }

    37.5% {
        background: var(--mana);
        box-shadow: 0 0 8px var(--mana);
    }

    50% {
        background: var(--inami);
        box-shadow: 0 0 8px var(--inami);
    }

    62.5% {
        background: var(--row);
        box-shadow: 0 0 8px var(--row);
    }

    75% {
        background: var(--shou);
        box-shadow: 0 0 8px var(--shou);
    }

    87.5% {
        background: var(--kagetsu);
        box-shadow: 0 0 8px var(--kagetsu);
    }
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 8px;
    background: linear-gradient(90deg,
            var(--wen),
            var(--rito),
            var(--ittetsu),
            var(--mana),
            var(--inami),
            var(--row),
            var(--shou),
            var(--kagetsu),
            var(--wen));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation:
        gaming-gradient 3s linear infinite,
        gaming-glow 6s linear infinite;
    display: flex;
    align-items: center;
    gap: 15px;
}

.loading-text::after {
    content: '';
    width: 30px;
    height: 3px;
    border-radius: 2px;
    animation:
        scan 1.5s ease-in-out infinite,
        scan-color 6s linear infinite;
}

@keyframes scan {

    0%,
    100% {
        width: 0;
        opacity: 0;
    }

    50% {
        width: 50px;
        opacity: 1;
    }
}

.recommend-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.recommend-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 1;
}

.song-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
}

.song-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    color: #a0aabf;
    font-size: 0.95rem;
}

.song-details span {
    color: var(--main-accent);
    font-weight: 600;
}

/* ========== 新着楽曲カルーセル ========== */
.new-songs-carousel {
    overflow: hidden;
    position: relative;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 4px;
}

.new-song-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.new-song-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.new-song-card > * {
    position: relative;
    z-index: 1;
}

.new-song-date {
    font-size: 0.8rem;
    color: var(--main-accent);
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.new-song-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 12px;
}

[data-theme="light"] .new-song-title {
    color: var(--text-color);
}

.new-song-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    color: #a0aabf;
    font-size: 0.9rem;
}

[data-theme="light"] .new-song-meta {
    color: #6b7280;
}

.new-song-meta .meta-label {
    color: var(--main-accent);
    font-weight: 600;
}

.new-song-play {
    font-size: 0.85rem;
    padding: 8px 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--main-accent);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
    background: var(--main-accent);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(0, 229, 255, 0.4);
}

@media (max-width: 768px) {
    .new-song-title {
        font-size: 1.15rem;
    }

    .new-song-meta {
        flex-direction: column;
        gap: 4px;
        font-size: 0.85rem;
    }

    .new-song-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(26, 28, 35, 0.95) !important;
        box-shadow: none !important;
    }

    [data-theme="light"] .new-song-card {
        background: rgba(255, 255, 255, 0.95) !important;
    }

    .new-song-card:hover {
        transform: none !important;
    }
}

.cyber-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--main-accent);
    border: 1px solid var(--main-accent);
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cyber-button svg {
    pointer-events: none;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.2);
}

.cyber-button:hover {
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
    background: rgba(0, 229, 255, 0.1);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cyber-button:active {
    transform: translateY(0);
}

.cyber-button.small {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 15px;
    /* 見出しとの間隔を少し調整 */
}

/* ユニットごとのグループ化用スタイル */
.unit-group {
    margin-top: 30px;
    margin-bottom: 40px;
}

.unit-label {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-align: left;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.unit-label::after {
    content: '';
    flex: 1;
    height: 1px;
    margin-left: 15px;
    background: rgba(255, 255, 255, 0.1);
}

/* 暖色系発光 (Oriens) - よりオレンジ寄りに */
.oriens-label {
    color: #ff9d5c;
    text-shadow: 0 0 10px rgba(255, 120, 50, 0.7);
}

.unit-label.oriens-label::after {
    background: linear-gradient(to right, rgba(255, 120, 50, 0.4), transparent);
}

/* 冷色系発光 (Dytica) - より青寄りに */
.dytica-label {
    color: #8c9eff;
    text-shadow: 0 0 10px rgba(50, 150, 255, 0.7);
}

.unit-label.dytica-label::after {
    background: linear-gradient(to right, rgba(50, 150, 255, 0.4), transparent);
}

/* --- Member Cards --- */
.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 3px solid var(--member-color);
}

.member-card-name {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.member-card-count {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 4px;
    font-family: 'Montserrat', sans-serif;
}

.member-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--member-color), transparent);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

/* 強調表示 */
.text-highlight {
    color: var(--main-accent) !important;
    font-size: 1.1em;
    font-weight: 800;
}

[data-theme="light"] .member-card {
    color: #1e293b;
}

/* PC向けのホバーのみに限定 */
@media (hover: hover) {
    .member-card:hover {
        border-color: var(--member-color);
        background: color-mix(in srgb, var(--member-color) 10%, var(--card-bg));
        transform: translateY(-2px);
        box-shadow: 0 4px 20px color-mix(in srgb, var(--member-color) 25%, transparent),
                    0 0 40px color-mix(in srgb, var(--member-color) 10%, transparent);
    }

    .member-card:hover::after {
        opacity: 1;
    }
}

/* スマホ等でタップ中の状態 */
.member-card.is-tapping,
.member-card:active {
    background: color-mix(in srgb, var(--member-color) 12%, var(--card-bg)) !important;
    border-color: var(--member-color) !important;
}

.sns-links-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* 検索ヒーローセクション */
.search-hero-section {
    margin-bottom: 40px;
    text-align: center;
}

.search-hero-container {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 20px auto 40px;
}

.hero-search-box {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    flex: 1;
    width: 100%;
}

.search-input-wrapper .search-box {
    width: 100%;
    padding-right: 40px;
}

#search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--main-accent);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#search-clear-btn:hover {
    text-shadow: 0 0 10px var(--main-accent), 0 0 20px var(--main-accent);
}

.hero-search-btn {
    padding: 10px 30px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .search-hero-container {
        flex-direction: column;
    }

    .hero-search-btn {
        width: 100%;
    }
}

.sns-link-btn {
    padding: 6px 16px;
    font-size: 0.85rem;
    border-color: var(--border-color);
    color: #e0e6ed;
}

.sns-link-btn:hover {
    background: var(--main-accent);
    color: #000;
    border-color: var(--main-accent);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.notes-section {
    margin-top: 60px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #555;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #8b92a5;
}

.notes-section p {
    margin-bottom: 8px;
}

.thanks-text {
    margin-top: 15px;
    color: #d0d6e0;
    font-weight: 600;
}

.controls-container {
    position: sticky;
    top: 0;
    margin: 0 -20px;
    padding: 15px 20px;
    background-color: var(--bg-color);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
}

.no-sticky {
    position: relative !important;
    top: auto !important;
    box-shadow: none !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding: 15px 0 !important;
    background: transparent !important;
    z-index: auto !important;
    display: block !important;
}

.controls-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.search-box {
    flex: 1;
    min-width: 250px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-box:focus {
    border-color: var(--main-accent);
}

.sort-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.sort-btn:hover {
    border-color: var(--main-accent);
    color: var(--main-accent);
}

.year-filter-select {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: border-color 0.3s;
    appearance: auto;
}

.year-filter-select:hover,
.year-filter-select:focus {
    border-color: var(--main-accent);
    outline: none;
}

.fav-manage-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.table-wrapper {
    width: 100%;
    /* ← 【追加】テーブルが親要素を突き破らないようにする */
    overflow-x: auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: var(--glass-blur);
    -webkit-overflow-scrolling: touch;
    position: relative;
    /* スクロールヒント用 */
}

/* スクロールヒント用のアニメーションとスタイル */
.scroll-hint {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(11, 12, 16, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10;
}

.scroll-hint.visible {
    opacity: 1;
}

.scroll-hint span {
    color: var(--main-accent);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    animation: scroll-pulse 1.5s infinite;
}

@keyframes scroll-pulse {

    0%,
    100% {
        opacity: 0.5;
        text-shadow: none;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 10px var(--main-accent);
    }
}

.cyber-table {
    width: 100%;
    border-collapse: collapse;
    /* 大きな最小幅を削除し、スマホ画面でも無理なく縮むようにする */
}

.cyber-table th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--main-accent);
    font-size: 1.3rem;
    /* 項目名を大きく調整 */
    font-weight: 700;
    /* 太字に設定 */
    letter-spacing: 1px;
    white-space: nowrap;
    text-align: left;
    /* 項目名を左寄せに変更 */
    padding: 16px 12px;
}

.cyber-table td {
    padding: 16px 12px;
    font-size: 1.1rem;
    text-align: left;
    /* データは左寄せ */
    border-bottom: 1px solid var(--border-color);
}

/* 偶数行の背景を薄くして視認性アップ（ゼブラストライプ） */
.cyber-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .cyber-table tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.03);
}

.cyber-table tr:hover td {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .cyber-table tr:hover td {
    background: rgba(0, 0, 0, 0.05);
}

.cyber-table tr.is-favorite-row td {
    background: rgba(250, 195, 30, 0.05);
    /* ゴールド(rito)の薄い背景色 */
}

.col-fav {
    width: 60px;
    min-width: 60px;
    text-align: left;
    /* お気に入り列では左寄せ */
}

/* お気に入りボタン */
.fav-btn {
    background: transparent;
    border: none;
    color: #8b92a5;
    cursor: pointer;
    padding: 8px;
    /* タップしやすく */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.fav-btn:hover {
    transform: scale(1.2);
    color: #a0aabf;
}

.fav-btn.is-favorite {
    color: #FAC31E;
    /* ゴールド */
    filter: drop-shadow(0 0 5px #FAC31E);
}

.fav-btn.is-favorite svg {
    fill: #FAC31E;
}

/* マイクロインタラクション用アニメーション */
@keyframes star-pop {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px #FAC31E);
    }

    50% {
        transform: scale(1.6);
        filter: drop-shadow(0 0 15px #FAC31E);
    }

    100% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 5px #FAC31E);
    }
}

.fav-btn.pop-animation {
    animation: star-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fav-fab-glow {
    0% {
        box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
        border-color: var(--main-accent);
    }

    20% {
        box-shadow: 0 0 30px #FAC31E, 0 0 10px #FAC31E inset;
        border-color: #FAC31E;
        color: #FAC31E;
    }

    80% {
        box-shadow: 0 0 30px #FAC31E, 0 0 10px #FAC31E inset;
        border-color: #FAC31E;
        color: #FAC31E;
    }

    100% {
        box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
        border-color: var(--main-accent);
    }
}

.fab-btn.fav-fab.glow-animation {
    animation: fav-fab-glow 0.8s ease-out;
}

.col-date {
    width: 120px;
    min-width: 120px;
    font-size: 0.9rem;
    white-space: nowrap;
}

td.col-date {
    color: #a0aabf;
}

.col-title {
    width: 300px;
    min-width: 300px;
    word-break: break-word;
}

td.col-title {
    font-weight: 600;
    color: #fff;
}

.title-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    transition: color 0.2s, text-shadow 0.2s, text-decoration-color 0.2s;
    display: inline-block;
}

.title-link:hover {
    color: var(--main-accent);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    text-decoration-color: var(--main-accent);
}

.col-artist {
    width: 200px;
    min-width: 200px;
    word-break: break-word;
}

td.col-artist {
    color: #e2e8f0;
}

.col-singer {
    width: 200px;
    min-width: 200px;
    word-break: break-word;
}

td.col-singer {
    color: #e2e8f0;
}

.col-video-title {
    width: 300px;
    min-width: 300px;
    word-break: break-word;
}

td.col-video-title {
    color: #e2e8f0;
    font-size: 0.85rem;
}

.col-action {
    width: 80px;
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
}

/* PC向け データーベーステーブル表示の最適化 */
@media (min-width: 1025px) {
    .table-wrapper {
        overflow-x: hidden;
    }

    .cyber-table {
        table-layout: fixed;
    }

    .cyber-table td,
    .cyber-table th {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .col-fav {
        width: 5%;
        min-width: 45px;
    }

    .col-date {
        width: 10%;
        min-width: 100px;
    }

    .col-title {
        width: 30%;
        min-width: 0;
    }

    .col-singer {
        width: 15%;
        min-width: 0;
    }

    .col-artist {
        width: 15%;
        min-width: 0;
    }

    .col-video-title {
        width: 25%;
        min-width: 0;
    }
}

.table-link-btn {
    display: inline-block;
    padding: 6px 16px;
    background: transparent;
    border: 1px solid var(--main-accent);
    color: var(--main-accent);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 1rem;
    /* ← 【変更】ボタンの文字を大きく */
    padding: 10px 24px;
    /* ← 【変更】縮小されても指で押しやすいサイズに拡大 */
}

.table-link-btn:hover {
    background: var(--main-accent);
    color: #000;
}

.page-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-inquiry {
    margin-bottom: 20px;
    color: #a0aabf;
    font-size: 0.95rem;
}

.footer-link {
    color: var(--main-accent);
    text-decoration: none;
    margin-left: 10px;
}

.footer-link:hover {
    text-decoration: underline;
}



.song-count {
    text-align: right;
    margin-top: 5px;
    color: #8b92a5;
    font-size: 0.9rem;
    font-weight: 600;
}

.song-count span {
    color: var(--main-accent);
    font-size: 1.1rem;
    margin: 0 4px;
}

/* ▼ About / Attention / Special Thanks のフォントサイズ調整 ▼ */

/* About（サイト説明）のテキスト */
.subtitle {
    font-size: 0.85rem;
}

/* About内のさらに小さい注記（※個人で制作〜 の部分） */
.subtitle small {
    font-size: 0.75rem;
}

/* Attention と Special Thanks, About のテキストを 0.85rem に統一 */
section p,
.cyber-card p {
    font-size: 0.85rem;
    color: #e2e8f0;
    /* メインコンテンツより少しだけ暗い色にしてメリハリをつける */
    margin-bottom: 8px;
    /* 行同士の隙間を少し詰めてまとまりを出す */
    text-align: justify;
    /* 文章の端を綺麗に揃える */
}

/* ※おすすめ楽曲カード内のテキストが小さくならないように保護 */
.recommend-card p {
    font-size: 0.95rem;
    color: #e0e6ed;
}

@media (max-width: 768px) {

    html,
    body {
        overflow-x: clip;
        width: 100%;
    }

    .container {
        padding: 24px 12px;
        /* サイド余白を縮小して画面を有効活用 */
        padding-bottom: 90px;
        /* FAB領域を確保 */
    }

    .title-glow {
        font-size: 2.6rem;
        line-height: 1.1;
        word-break: break-word;
        white-space: normal;
        letter-spacing: 1px;
    }

    .song-title {
        font-size: 1.4rem;
        line-height: 1.4;
        word-break: break-word;
        white-space: normal;
        margin-bottom: 10px;
    }

    .song-details {
        flex-direction: column;
        gap: 5px;
    }

    .members-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .member-card {
        padding: 16px 10px 12px;
        min-height: 70px;
    }

    /* ==== 検索・フィルタ エリアのモバイル最適化 ==== */

    /* 検索ボックスを大きく、タップしやすく */
    .search-hero-container {
        margin: 12px auto 20px;
    }

    .search-box {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
        padding: 12px 40px 12px 14px;
        border-radius: 10px;
    }

    /* コントロールバーをstickyにして常にアクセス可能 */
    /* モバイルではフィルターをstickyにして常にアクセス可能 */
    .controls-container {
        position: sticky !important;
        top: 0 !important;
        margin: 0 -12px !important;
        padding: 8px 12px !important;
        z-index: 1000 !important;
        background-color: var(--bg-color) !important;
        border-bottom: 1px solid var(--border-color) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        display: block !important;
    }

    .controls-inner {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
    }

    /* フィルターのセレクトをコンパクトに横並び */
    .year-filter-select {
        min-height: 40px;
        font-size: 0.85rem;
        padding: 6px 10px;
        flex: 1;
        min-width: 0;
        border-radius: 8px;
    }

    .sort-btn {
        width: auto;
        min-height: 40px;
        font-size: 0.8rem;
        padding: 6px 12px;
        white-space: nowrap;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .song-count {
        margin-top: 8px;
        font-size: 0.8rem;
    }

    /* ==== テーブルのモバイル対応 ==== */
    .cyber-table {
        table-layout: auto;
        width: 100%;
    }

    .cyber-table th,
    .cyber-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
        white-space: normal;
    }

    .col-date {
        width: 80px;
        min-width: 80px;
    }

    .col-title {
        width: 150px;
        min-width: 150px;
    }

    .col-singer {
        width: 120px;
        min-width: 120px;
    }

    .col-artist {
        width: 180px;
        min-width: 180px;
    }

    /* ==== FAV ★ ボタンのタップエリア拡大 ==== */
    .col-fav {
        width: 48px;
        min-width: 48px;
    }

    .fav-btn {
        padding: 10px;
        /* タッチターゲット44px以上を確保 */
    }

    .fav-btn svg {
        width: 22px;
        height: 22px;
    }

    .mobile-break {
        display: block;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
}

/* 浮遊ナビゲーションボタン (FAB) */
.fab-container {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* モバイルではFABバーを常時表示 */
@media (max-width: 768px) {
    .fab-container {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--main-accent);
    color: var(--main-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.fab-btn svg {
    margin-bottom: 2px;
}

.fab-btn:hover {
    background: var(--main-accent);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    /* FABを画面下部の横並びバーに変更 - 片手操作に最適化 */
    .fab-container {
        right: 0;
        left: 0;
        bottom: 0;
        flex-direction: row;
        justify-content: center;
        gap: 0;
        background: var(--bg-color);
        border-top: 1px solid var(--border-color);
        padding: 6px 8px;
        padding-bottom: max(6px, env(safe-area-inset-bottom));
        /* iPhone SafeArea対応 */
    }

    .fab-btn {
        width: auto;
        height: auto;
        min-width: 56px;
        min-height: 44px;
        border-radius: 10px;
        font-size: 0.6rem;
        padding: 4px 12px;
        border: none;
        box-shadow: none;
        background: transparent;
        flex: 1;
        max-width: 80px;
        gap: 2px;
    }

    .fab-btn svg {
        width: 20px;
        height: 20px;
    }

    .fab-btn:hover {
        background: rgba(0, 229, 255, 0.1);
        box-shadow: none;
        transform: none;
    }

    .fab-btn:active {
        background: rgba(0, 229, 255, 0.2);
    }

    [data-theme="light"] .fab-btn {
        background: transparent;
    }

    [data-theme="light"] .fab-btn:hover,
    [data-theme="light"] .fab-btn:active {
        background: rgba(0, 118, 163, 0.1);
    }
}
