*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 21px;
    width: 100%;
}


body {
    font-size: var(--text-md);
    line-height: 1.7;
    font-family: "Segoe UI", 'Orbitron', sans-serif;
    background: linear-gradient(135deg, var(--color-bg-base), var(--color-bg-sub));
    color: var(--color-text-base);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 120px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

:root {

    /* 余白 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* 文字サイズ */
    --text-xs: 0.8rem;
    --text-sm: 0.9rem;
    --text-md: 1rem;
    --text-lg: 1.2rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 3rem;
    --text-display-xl: 2.5rem;

    /* ベースカラー */
    --color-base-black: #000000;
    --color-base-white-soft: rgba(255, 255, 255, 0.1);

    /* テキストカラー */
    --color-text-weak: #94a3b8;
    --color-text-base: #e2e8f0;
    --color-text-strong: #ffffff;
    --color-text-warning: #fbbf24;

    /* 背景カラー */
    --color-bg-base: #0f172a;
    --color-bg-sub: #1e293b;
    --color-bg-hero-1: #0f172a;
    --color-bg-hero-2: #1e293b;

    /* サーフェス */
    --color-surface-base: rgba(30, 41, 59, 0.55);
    --color-surface-heavy: rgba(30, 45, 70, 0.68);
    --color-surface-overlay: rgba(0, 0, 0, 0.6);
    --color-surface-overlay-light: rgba(0, 0, 0, 0.25);
    --color-surface-overlay-heavy: rgba(15, 23, 42, 0.95);
    --color-surface-hover: rgba(255, 255, 255, 0.06);

    /* ボーダー */
    --color-border-base: rgba(56, 189, 248, 0.13);
    --color-border-strong: rgba(56, 189, 248, 0.35);
    --color-border-muted: rgba(56, 189, 248, 0.08);
    --color-border-accent: var(--color-brand-primary);
    --color-border-soft: var(--color-border-muted);

    /* ブランドカラー */
    --color-brand-primary: #38bdf8;
    --color-brand-secondary: #7c3aed;
    --color-brand-danger: #ff4d6d;
    --color-brand-youtube-base: #ff0000;
    --color-brand-youtube-strong: #c20000;

    /* アイコンステータス */
    --color-state-info: var(--color-brand-primary);
    --color-state-success: #22c55e;
    --color-state-accent: #ff4dc4;

    /* 角丸 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-round: 999px;

    /* 影 */
    --shadow-elev-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-elev-md: 0 6px 20px rgba(0, 0, 0, 0.25);
    --shadow-elev-lg: 0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-glow-primary: 0 0 20px rgba(56, 189, 248, 0.5);
    --shadow-glow-primary-strong: 0 0 32px rgba(56, 189, 248, 0.8);
    --shadow-glow-danger: 0 10px 40px rgba(255, 77, 109, 0.5);
    --shadow-glass:
        0 8px 32px rgba(56, 189, 248, 0.10),
        0 2px 8px rgba(0, 0, 0, 0.18);

    --shadow-state-info: 0 0 6px var(--color-state-info);
    --shadow-state-success: 0 0 6px var(--color-state-success);
    --shadow-state-accent: 0 0 6px var(--color-state-accent);

    /* ボーダー定義 */
    --border-base: 1px solid var(--color-border-base);
    --border-strong: 2px solid var(--color-border-strong);
    --border-muted: 1px solid var(--color-border-muted);
    --border-accent: 2px solid var(--color-border-accent);

    /* グラデーション */
    --gradient-brand-primary: linear-gradient(135deg,
            var(--color-brand-primary),
            var(--color-brand-secondary));
}

/* Animations - ヒーローテキストの登場演出 */
@keyframes hero-text-in {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        filter: blur(6px);
    }

    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.05);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



/* HERO UI - ステータス・装飾系アニメーション */

@keyframes heroCharWave {
    0% {
        opacity: 0;
        transform: translate(40px, -20px) scale(1.3);
        filter: blur(6px);
    }

    60% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
        filter: blur(0);
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* live statusの鼓動 */
@keyframes pulseGlow {
    0% {
        transform: scale(1);
        text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
    }

    50% {
        transform: scale(1.05);
        text-shadow: 0 0 22px rgba(251, 191, 36, 0.9);
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
    }
}


/* UIインタラクション - クリック・数値・CTA系アニメーション */

/* クリック波紋 */
@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(12);
        opacity: 0;
    }
}

/* 数字カウント系 */
@keyframes ui-pulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 8px #38bdf8aa;
    }

    50% {
        transform: scale(1.15);
        text-shadow: 0 0 20px #38bdf8ff;
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 8px #38bdf8aa;
    }
}

/* クリック強調 */
@keyframes ui-click-pop {
    0% {
        transform: scale(1);
        text-shadow: 0 0 8px #38bdf8aa;
    }

    50% {
        transform: scale(1.4);
        text-shadow: 0 0 25px #38bdf8;
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 8px #38bdf8aa;
    }
}

/* CTA浮遊 */
@keyframes floatCTA {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-6px);
    }
}

/* フェードイン */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* モーダル・画像ズームなどの表示演出 */
@keyframes popup-zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* クリック時の波紋エフェクト（タップフィードバック） */
.ripple {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: var(--radius-round);
    background: var(--color-brand-primary);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

.join-row {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.join-cta {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(124, 58, 237, 0.12));
    border: var(--border-base);
    box-shadow: var(--shadow-glow-primary);
}

.youtube-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(90deg,
            var(--color-brand-youtube-base) 60%,
            var(--color-brand-youtube-strong) 100%);
    color: var(--color-text-strong);
    border-radius: var(--radius-sm);
    font-weight: bold;
    font-size: 1.13rem;
    text-decoration: none;
    box-shadow: var(--shadow-elev-sm);
    border: none;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    margin-top: 8px;
}

.youtube-btn:hover {
    background: linear-gradient(90deg,
            var(--color-brand-youtube-base) 60%,
            var(--color-brand-youtube-strong) 100%);
    color: var(--color-text-strong);
    box-shadow: var(--shadow-elev-md);
    transform: translateY(-2px) scale(1.03);
}

.youtube-icon {
    width: 28px;
    height: 28px;
    display: inline-block;
    vertical-align: middle;
}

.hero-anim-text {
    font-size: var(--text-3xl);
    text-align: center;
    font-weight: 800;
    color: var(--color-text-strong);
    letter-spacing: 2px;
    margin-top: var(--space-sm);

    animation: hero-text-in 0.9s ease-out both;

    text-shadow:
        0 0 20px var(--color-brand-primary),
        0 0 40px var(--color-brand-secondary);
}

.hero-anim-text span {
    display: inline-block;
    opacity: 0;
    transform: translate(40px, -20px) scale(1.1);
    filter: blur(6px);
    position: relative;
    z-index: 10;
    white-space: nowrap;
    transform-origin: center;


    animation: heroCharWave 0.8s forwards;
}


.hero-main {
    font-size: 2.8rem;
    text-align: center;
    font-weight: 800;
    color: var(--color-text-strong);
    margin-bottom: 10px;
}

.hero-features {
    text-align: center;
    line-height: 1.8;
    color: var(--color-text-base);
    margin-bottom: var(--space-lg);
}

.hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);

    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 1px;

    color: var(--color-bg-base);

    background: linear-gradient(90deg,
            var(--color-brand-primary),
            var(--color-brand-secondary));

    border-radius: var(--radius-round);

    box-shadow: var(--shadow-glow-primary);

    margin-bottom: var(--space-sm);
}

.hero-main-point {
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--color-text-base);

    line-height: 1.4;

    margin-bottom: var(--space-sm);

    letter-spacing: 1px;

    text-shadow:
        0 0 10px rgba(56, 189, 248, 0.5),
        0 0 20px rgba(124, 58, 237, 0.3);
}

.hero-sub-point {
    text-align: left;
    /* ←ここ重要（中央寄せやめる） */

    display: inline-block;
    margin: var(--space-xs) auto 0;

    font-size: var(--text-sm);
    color: var(--color-text-weak);
    line-height: 1.7;

    padding-left: var(--space-md);
}

.hero-sub-point li {
    list-style: none;

    display: flex;
    align-items: center;
    gap: var(--space-xs);

    margin-bottom: var(--space-xs);
}

/* ・を完全固定 */
.hero-sub-point li::before {
    content: "•";
    color: var(--color-brand-primary);

    width: 12px;
    flex-shrink: 0;
}

.hero-stats {
    position: absolute;
    right: var(--space-sm);
    bottom: var(--space-sm);

    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);

    width: fit-content;
    max-width: calc(100% - 16px);

    white-space: nowrap;
}

.hero-stats-sep {
    margin: 0 var(--space-sm);
}

.img-modal {
    position: fixed;
    inset: 0;

    display: none;

    justify-content: center;
    align-items: center;

    z-index: 9999;

    background: rgba(0,0,0,0.7);
}

.img-modal.show {
    display: flex;
}

.img-modal.active {
    display: flex;
}

.img-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.25), transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.2), transparent 45%);
    pointer-events: none;
}

.img-modal-close {
    position: fixed;
    top: var(--space-lg);
    left: var(--space-lg);

    width: 96px;
    height: 96px;

    font-size: 44px;

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
    cursor: pointer;

    background: var(--color-surface-overlay);
    border-radius: var(--radius-round);

    z-index: 10000;

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

.img-modal-close:hover {
    color: var(--color-brand-primary);
    background: rgba(56, 189, 248, 0.3);
    transform: scale(1.1);
}


/* ヘッダー（閉じるボタン用） */
.modal-header {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

#modalContent {

    width: 100%;
    max-width: 900px;

    max-height: 90vh;

    overflow-y: auto;

    padding: 0;

    display: block;
}

#modalContent iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

#modalContent .video-grid {
    grid-template-columns: 1fr;
}

/* クローンされたカード */
#modalContent .card {
    width: 100%;
    max-width: 1000px;
    flex: none;
    margin: 0 auto;
    border-radius: var(--radius-lg);
}

#modalContent img,
#modalContent iframe,
#modalContent video {
    max-width: 100%;
}

#modalContent h2 {
    font-size: var(--text-xl);
}

#modalContent p {
    font-size: var(--text-md);
}

/* Chrome, Safari */
#modalContent::-webkit-scrollbar {
    display: none;
}

#modalContent>div {
    width: 100%;
    padding: 20px 20px 20px 20px;
    box-sizing: border-box;
}

#modalContent>div::-webkit-scrollbar {
    display: none;
}

h1 {
    font-size: var(--text-3xl);
}

h2 {
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
    color: var(--color-brand-primary);
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 0 8px #38bdf8cc;
}

p {
    font-size: var(--text-md);
}

body.modal-open,
html.modal-open {
    overflow: hidden;
}

.hero {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    padding: var(--space-xl) 0 var(--space-lg);
    align-items: flex-end;


    background:
        linear-gradient(120deg,
            var(--color-bg-hero-1) 60%,
            var(--color-bg-hero-2) 100%),
        radial-gradient(ellipse at 60% 40%, #38bdf855 0%, transparent 70%),
        radial-gradient(ellipse at 30% 70%, #7c3aed55 0%, transparent 80%);

}

.hero-subtitle {
    text-align: center;
    color: var(--color-text-weak);
    font-size: 1.3rem;
    margin-bottom: 0;
    z-index: 2;
    position: relative;
}


.wave {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60px;
    z-index: 1;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: var(--space-lg) var(--space-md);
}

.container>.card {
    margin-bottom: var(--space-lg);
}



.glass {
    background: var(--color-surface-base);
    backdrop-filter: blur(16px) saturate(120%);
    border: var(--border-base);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass);
}

.glass-card {
    background: var(--color-surface-base);
    border: 1.5px solid var(--color-border-base);
}


.card {
    min-width: 0;
    padding: var(--space-md);
    margin-top: 0;
    border-radius: var(--radius-xl);
    transition: 0.25s;
    position: relative;
    cursor: pointer;
}

.card-cta {
    margin-top: 20px;

    font-size: 1.15rem;
    /* ← しっかり大きく */
    font-weight: 800;
    /* ← 強める */

    color: var(--color-brand-primary);
    text-align: right;

    padding: var(--space-sm) var(--space-md);
    /* ← タップ領域 */
    border-radius: var(--radius-sm);

    background: var(--color-surface-base);
    /* ← うっすら背景 */

    display: inline-block;
    /* ← これ重要 */
}

.card:hover .card-cta {
    color: var(--color-brand-primary);
    opacity: 1;
    transform: translateX(6px);
}

.card ul {
    padding-left: var(--space-lg);
}

.card li {
    margin-bottom: var(--space-sm);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elev-lg);
}

.card::before {
    content: "";
    position: absolute;
    top: -60px;
    left: -60px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #38bdf822 0%, transparent 80%);
    z-index: 0;
}

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

.card a {
    color: var(--color-brand-primary);
    text-decoration: none;
    font-weight: bold;
}

.card a:hover {
    text-decoration: underline;
    color: #7dd3fc;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-sm);
    gap: var(--space-sm);
}

.card-body {
    position: relative;
    margin-top: var(--space-md);
    color: var(--color-text-base);
    line-height: 1.8;
    font-size: var(--text-md);

    max-height: none;
    overflow: visible;

    background: var(--color-surface-heavy);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.card-body.collapsed {
    max-height: 240px;
    overflow: hidden;
}

.card-footer {
    position: static;
    margin-top: 12px;
    text-align: right;

    font-size: 1rem;
    color: var(--color-text-weak);
    opacity: 0.75;

    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);

    transition: all 0.2s ease;
}

.card:hover .card-footer {
    color: var(--color-brand-primary);
    background: rgba(56, 189, 248, 0.12);
    opacity: 1;

    transform: translateY(-2px);
}


.card-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: var(--radius-lg);

    background: linear-gradient(135deg, #38bdf8 60%, #6366f1 100%);
    box-shadow: var(--shadow-elev-sm);

    font-size: 2rem;
    color: white;

    transition: transform 0.25s, box-shadow 0.25s;
}

.card-title {
    margin: 0;
    font-size: var(--text-lg);

    font-family: 'Orbitron', 'Segoe UI', sans-serif;
    letter-spacing: 2px;

    text-shadow: 0 0 8px var(--color-brand-primary);
}

.card-title,
h2 {
    color: var(--color-brand-primary);
}

.card:hover .card-icon {
    transform: rotate(-8deg) scale(1.1);
    box-shadow: var(--shadow-glow-primary-strong);
}

.card-body.expanded {
    max-height: 2000px;
}

.card-body.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #0f172a);
}

/* 開いたときちょい演出 */
.card-body.expanding {
    transition: height 0.4s ease;
}

.card-body.collapsed .channel-link {
    color: #fff !important;
}

.expand-btn {
    display: block;
    width: 100%;
    /* ← 横いっぱいにする */
    min-height: 52px;
    padding: 14px 16px;
    /* ← タップ領域拡大 */
    font-size: 16px;
    font-weight: bold;

    border: none;
    border-radius: var(--radius-md);

    background: var(--color-brand-primary);
    color: white;

    margin-top: 16px;
    /* ← 上との余白 */

    box-shadow: var(--shadow-elev-sm);
}

/* 押したときの感覚 */
.expand-btn:active {
    transform: scale(0.96);
}

.expand-btn:hover {
    transform: scale(1.05);
}

.subtitle {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.subtitle,
.live-status {
    color: var(--color-text-weak);
}

.video-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-title {
    font-weight: bold;
    color: var(--color-brand-primary);
    margin-bottom: 6px;
}


iframe {
    width: 100%;
    border-radius: var(--radius-sm);
}

.channel-link {
    color: var(--color-text-strong);
    text-decoration: none;
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.active-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-brand-primary);
    text-shadow: 0 0 12px #38bdf8cc, 0 0 24px #0ea5e9aa;
    padding: 0 6px;
    animation: ui-pulse 1.8s infinite;
}

.active-number.pulse {
    animation: ui-click-pop 0.6s ease;
}

.active-number.pulse.animation-end {
    animation: none;
}

#live-status.pulse .active-number {
    animation: ui-pulse 1.8s infinite;
}

.mh-gallery {
    padding: var(--space-sm);
}

.mh-gallery-inner {
    display: flex;
    gap: var(--space-md);
    align-items: stretch;
}

/* サムネ列 */
.mh-thumbs {
    display: flex;
    flex-shrink: 1;
    flex-direction: column;
    gap: var(--space-sm);
    min-width: 0;
    max-height: 520px;
    padding-right: 6px;
    overflow-y: auto;
    overflow-x: hidden;
    /* 横スクロール禁止 */
    scrollbar-width: none;
    /* Firefox */

}

/* Chrome / Safari */
.mh-thumbs::-webkit-scrollbar {
    display: none;
}

.mh-thumbs img {
    width: clamp(72px, 18vw, 100px);
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    display: block;
    flex-shrink: 0;

    border: 2px solid var(--color-border-muted);
    cursor: pointer;
    transition: 0.2s;
    filter: brightness(0.8);
}

.mh-thumbs img:hover {
    transform: translateY(-3px) scale(1.08);
    border-color: var(--color-brand-primary);
    filter: brightness(1.1);

    box-shadow: var(--shadow-glow-primary);
}

/* 選択中 */
.mh-thumbs img.active {
    border-color: var(--color-brand-primary);
    box-shadow: var(--shadow-glow-primary);
    filter: brightness(1.2);
}

/* タイトルHUD風 */
.mh-title {
    position: absolute;

    top: 12px;
    left: 12px;

    background: rgba(0, 0, 0, 0.7);
    padding: 6px 12px;

    border-left: var(--border-strong) var(--color-brand-primary);

    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    color: var(--color-brand-primary);

    letter-spacing: 1px;
    z-index: 5;

    box-shadow: var(--shadow-elev-md);
}

.live-status {
    text-align: center;
    color: #fbbf24;
    font-weight: 800;
    margin-top: 10px;
    font-size: var(--text-lg);

    text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
    animation: pulseGlow 1.8s infinite;
    position: relative;
}

.yt-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-glow-primary);
}

.yt-wrapper iframe {
    width: 100%;
    height: 100%;
}

.trust-box {
    text-align: left;
    margin: 14px 0;
    padding: 10px 14px;

    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;

    color: #bbf7d0;
    font-size: 0.95rem;

    border-radius: var(--radius-sm);
}

.modal-inner {
    width: 100%;

    padding: var(--space-xl);

    background: rgba(30, 41, 59, 0.95);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-elev-lg);
}

.modal-inner img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.floating-join {
    text-align: center;
    position: fixed;
    width: calc(100% - 24px);
    max-width: 1000px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;

    padding: 16px 28px;
    font-size: 1.2rem;
    font-weight: 900;

    background: linear-gradient(90deg, var(--color-danger), #ff0080);
    color: white;

    border-radius: var(--radius-round);
    box-shadow: var(--shadow-glow-danger);

    animation: floatCTA 2s ease-in-out infinite;
}

/* =========================
   ■ 各ブロックをカード化
========================= */

.circle-block,
.circle-hero,
.circle-cta {
    background: var(--color-surface-base);
    border: var(--border-base);
    border-radius: var(--radius-lg);

    padding: var(--space-md);

    box-shadow: var(--shadow-glass);

    transition: 0.25s;
}

.circle-block:hover,
.circle-cta:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elev-lg);
}


/* =========================
   ■ HERO強化（最重要）
========================= */

.circle-hero {
    text-align: center;
    padding: var(--space-lg);

    background:
        radial-gradient(circle at 50% 0%, rgba(56,189,248,0.25), transparent 70%),
        var(--color-surface-base);

    border: var(--border-strong);
    box-shadow: var(--shadow-glow-primary);
}

.circle-hero h2 {
    font-size: var(--text-2xl);
    font-weight: 900;
    color: var(--color-text-strong);

    text-shadow:
        0 0 12px var(--color-brand-primary),
        0 0 24px var(--color-brand-secondary);
}

.circle-tagline {
    margin-top: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-weak);
}


/* =========================
   ■ STAT強化（数字を主役に）
========================= */

.circle-stats {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    gap: var(--space-md);
}

.stat {
    padding: var(--space-md);
    border-radius: var(--radius-md);

    background: var(--color-surface-hover);
    border: var(--border-base);

    transition: 0.2s;
}

.stat:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow-primary);
}

.stat .num {
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--color-brand-primary);

    text-shadow: 0 0 12px #38bdf8aa;
}

.stat .label {
    margin-top: 4px;
    font-size: var(--text-xs);
}


/* =========================
   ■ セクションタイトル
========================= */

.circle-block h3 {
    margin-bottom: var(--space-sm);
    font-size: var(--text-lg);
    color: var(--color-brand-primary);

    position: relative;
}

/* 左ラインで視線誘導 */
.circle-block h3::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 4px;

    width: 4px;
    height: 70%;

    background: var(--color-brand-primary);
    border-radius: var(--radius-sm);
}


/* =========================
   ■ リスト強化（読みやすさUP）
========================= */

.circle-block ul,
.circle-block ol {
    padding-left: var(--space-md);
}

.circle-block li {
    margin-bottom: var(--space-sm);
    color: var(--color-text-base);

    position: relative;
}

/* ドット強化 */
.circle-block ul li::marker {
    color: var(--color-brand-primary);
}


/* =========================
   ■ CTA（最重要）
========================= */

.circle-cta {
    text-align: center;

    border: var(--border-strong);
    box-shadow: var(--shadow-glow-primary-strong);

    position: relative;
    overflow: hidden;
}

/* 背景にうっすら光 */
.circle-cta::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at 30% 20%, rgba(56,189,248,0.2), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(124,58,237,0.2), transparent 50%);

    pointer-events: none;
}

.circle-cta h3 {
    font-size: var(--text-lg);
    font-weight: 900;
    color: var(--color-text-strong);
}

.circle-cta p {
    color: var(--color-text-weak);
}


/* =========================
   ■ 折りたたみログ
========================= */

.circle-log {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
}

.circle-log.open {
    max-height: 500px;
    margin-top: var(--space-sm);
}

/* ユーティリティ */
.center-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-text {
    text-align: center;
}

.center-block {
    margin: 0 auto;
}

.flex-row {
    display: flex;
    gap: var(--space-md);
}

.flex-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.full-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* BUTTON */

.btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: bold;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-brand-primary);
    color: var(--color-text-strong);
}

.btn-youtube {
    background: linear-gradient(90deg,
            var(--color-brand-youtube-base),
            var(--color-brand-youtube-strong));
    color: var(--color-text-strong);
}

.btn.block {
    display: block;
    width: 100%;
}

.btn:active {
    transform: scale(0.96);
}

.btn:hover {
    transform: scale(1.05);
}

.btn-danger {
    background: linear-gradient(90deg, #ff4d6d, #ff0080);
    color: var(--color-text-strong);
}

.card-body h1 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    color: var(--color-text-base);
}

.card-body h2 {
    margin-top: 0;
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
    color: var(--color-brand-primary);
}

.card-body p {
    font-size: var(--text-md);
    color: var(--color-text-weak);
    margin-bottom: var(--space-sm);
}

.card-body ul {
    padding-left: var(--space-md);
    margin-bottom: var(--space-md);
}

.card-body li {
    margin-bottom: var(--space-sm);
}

/* イベント情報 */
.event-rail {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* 横スクロール領域 */
.event-track {
    display: flex;
    gap: var(--space-md);

    overflow-x: auto;
    overflow-y: hidden;

    flex: 1;
    min-width: 0;

    padding: var(--space-sm) 0;
}

/* カード */
.event-item {
    flex: 0 0 auto;
    min-width: 220px;

    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);

    background: var(--color-surface-hover);
    border: var(--border-base);
}

/* ボタン */
.event-nav {
    flex: 0 0 36px;
    height: 36px;

    border-radius: var(--radius-round);
    background: rgba(56, 189, 248, 0.15);
    border: var(--border-base);
    color: white;

    cursor: pointer;
}

/* =================================================
   HERO
================================================= */

.circle-hero h2 {
    font-size: var(--text-2xl);
    margin: 0;
    color: var(--color-text-base);
}

.circle-tagline {
    margin-top: var(--space-xs);
    color: var(--color-text-weak);
}

/* =================================================
   STATS
================================================= */

.circle-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.stat {
    text-align: center;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
}

.stat .num {
    display: block;
    font-size: var(--text-lg);
    font-weight: bold;
    color: var(--color-text-base);
}

.stat .label {
    font-size: var(--text-xs);
    color: var(--color-text-weak);
}

/* =================================================
   PROFILE
================================================= */

.member-info {
    flex: 1;
    min-width: 0;
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: var(--color-surface-base);
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    border: var(--border-accent);
}

.member-name {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: var(--color-brand-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-joined {
    opacity: 0.7;
    font-weight: bold;
    color: #ffffff;
    white-space: nowrap;
    margin-left: auto;
}

.member-desc {
    font-size: 12px;
    color: #94a3b8;
}

/* =================================================
   ANIMATION
================================================= */

@keyframes popIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.players {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    width: 44px;
    min-height: calc(40px + 14px + 4px);

    gap: 4px;
    border-radius: var(--radius-sm);
}

.player-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    border: 3px solid transparent;
    /* ←ここ重要 */
}

.state-online {
    border-color: var(--color-state-info);
    box-shadow: var(--shadow-state-info);
}

.state-mc {
    border-color: var(--color-state-success);
    box-shadow: var(--shadow-state-success);
}

.state-vc {
    border-color: var(--color-state-accent);
    box-shadow: var(--shadow-state-accent);
}

.vc-time {
    min-height: 14px;
    line-height: 14px;
    text-align: center;

    font-size: clamp(10px, 1.5vw, 13px);
    color: var(--color-brand-primary);

    font-variant-numeric: tabular-nums;
}

.player-icon.vc-ring {
    border: var(--border-accent);
    box-shadow: var(--shadow-glow-primary);

    animation: vcRingPulse 1.8s infinite ease-in-out;
}

@keyframes vcRingPulse {
    0% {
        box-shadow: var(--shadow-glow-primary);
    }

    50% {
        box-shadow: var(--shadow-glow-primary-strong);
    }

    100% {
        box-shadow: var(--shadow-glow-primary);
    }
}

.media-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-base-black);
    position: relative;
}

/* 中身は全部共通 */
.media-box img,
.media-box iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* YouTube再生アイコン */
.media-box.yt-video {
    position: relative;
    cursor: pointer;
}

/* 黒オーバーレイ（うっすら） */
.media-box.yt-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    transition: 0.2s;
}

/* ▶ボタン本体 */
.media-box.yt-video::before {
    content: "";
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);

    width: 70px;
    height: 70px;

    border-radius: var(--radius-round);
    background: var(--color-surface-overlay);

    z-index: 2;

    transition: 0.2s;
}

/* ▶三角 */
.media-box.yt-video .yt-thumb {
    position: relative;
    z-index: 1;
}

.media-box.yt-video::before {
    clip-path: polygon(35% 25%, 35% 75%, 75% 50%);
    background: var(--color-surface-overlay);
}

/* ホバー */
.media-box.yt-video:hover::before {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(255, 0, 0, 0.85);
}

.media-box.yt-video:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

.media-box.yt-video.playing::before,
.media-box.yt-video.playing::after {
    opacity: 0;
    pointer-events: none;
}

.floating-rescue {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
}

@media (max-width: 768px) {

    :root {
        --space-xs: 4px;
        --space-sm: 8px;
        --space-md: 12px;
        --space-lg: 16px;
    }

    /* =========================
       ベース
    ========================= */
    html {
        font-size: 15px;
    }

    body {
        font-size: 13px;
        padding-bottom: 60px;
    }

    .container {
        padding: 4px;
    }

    h1 {
        font-size: 18px;
        line-height: 1.3;
    }

    h2 {
        font-size: 16px;
        line-height: 1.3;
    }

    ul,
    ol {
        padding-left: 14px;
        margin: 4px 0;
    }

    li {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 3px;
    }

    /* =========================
       HERO
    ========================= */
    .hero {
        align-items: flex-end;
        padding: 16px 8px 20px;
    }

    .hero-title-stack {
        margin-bottom: 8px;
    }

    .hero-features {
        gap: 6px;
    }

    .hero-anim-text {
        font-size: 18px;
        line-height: 1.3;
    }

    .hero-main-point {
        font-size: 14px;
    }

    .hero-sub-point li {
        font-size: 12px;
    }

    .hero::before,
    .hero::after {
        z-index: 1;
    }

    .status-text {
        display: inline-block;
        font-size: clamp(10px, 2.8vw, 14px);
        /* ←全体が縮む */
        white-space: nowrap;
    }

    .active-number {
        font-weight: bold;
    }


    /* =========================
       カード
    ========================= */
    .card {
        padding: 8px 8px 12px;
        margin-bottom: 4px;
        border-radius: var(--radius-md);
    }

    .container>.card {
        margin-bottom: 6px;
    }

    .card-header {
        gap: 6px;
        align-items: center;
        margin-bottom: 8px;
    }

    .card-icon {
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        border-radius: var(--radius-sm);
    }

    .card-title {
        font-size: 15px;
        font-weight: 600;
    }

    .card-body {
        font-size: 13px;
        padding: 10px;
    }

    /* =========================
       モーダル
    ========================= */
    .img-modal-close {
        width: 44px;
        height: 44px;
        font-size: 22px;
        top: var(--space-component-lg);
        left: var(--space-component-lg);
        opacity: 0.75;
    }

    .modal-inner {
        padding: 16px 8px;
    }

    #modalContent {
        padding-top: 0;
    }

    #modalContent>div {
        padding: 0 !important;
    }

    /* =========================
       ギャラリー
    ========================= */
    .mh-gallery-inner {
        overflow: hidden;
        flex-direction: column;
    }

    .mh-thumbs {
        flex-direction: row;
        /* 横スクロールにする */
        overflow-x: auto;
        overflow-y: hidden;

        max-height: none;
        padding-right: 0;
    }

    .mh-thumbs img {
        width: 100px;
        /* 少し大きくしてタップしやすく */
        flex-shrink: 0;
    }

    /* =========================
       参加ボタン
    ========================= */
    .floating-join {
        width: calc(100% - 16px);
        left: 50%;
        transform: translateX(-50%);
        padding: 12px;
        font-size: 14px;
        border-radius: var(--radius-round);
    }
}

        #rescueList {
            display: grid;
            gap: 16px;
        }

        .rescue-card {
            background: rgba(30, 41, 59, 0.8);
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 16px;
            padding: 16px;
            transition: 0.2s;
        }

        .rescue-card:hover {
            transform: translateY(-2px);
            border-color: #38bdf8;
        }

        .room-id {
            font-size: 20px;
            font-weight: bold;
            color: #38bdf8;
        }

        .comment {
            margin-top: 8px;
            color: #cbd5f5;
        }

        .time {
            margin-top: 10px;
            font-size: 12px;
            color: #94a3b8;
        }
