/* ============================================================
   321 TikTok LIVER - スタイルシート
   参考: 321tiktokliver.studio.site / 321 TikTok LIVER.pdf
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700;900&family=Chakra+Petch:wght@600;700;900&display=swap');

/* ============================================================
   リセット & ベース
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #111;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
    background: #000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-left {
    display: flex;
    align-items: center;
}
.header-logo-img {
    width: 120px;
    height: 56px;
    filter: invert(1);
    object-fit: cover;
    object-position: center 50%;
}
.header-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(1.2rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    text-align: center;
    white-space: nowrap;
}
.header-menu {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    justify-self: end;
    padding: 4px 6px;
    line-height: 1;
}

/* ============================================================
   ティアセクション共通
   ============================================================ */
.tier-section {
    padding: 64px 28px 80px;
    position: relative;
    overflow: hidden;
}

/* 光沢オーバーレイ（PDF の斜めのシーン効果） */
.tier-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        118deg,
        transparent 30%,
        rgba(255,255,255,0.22) 48%,
        rgba(255,255,255,0.08) 52%,
        transparent 68%
    );
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   各ティアの背景グラデーション
   ============================================================ */
.tier-gold {
    background:
        linear-gradient(135deg,
            #9a6800 0%,
            #c89020 15%,
            #e8b030 30%,
            #f8d860 45%,
            #faeaa0 55%,
            #f0c840 68%,
            #cc9820 80%,
            #a07010 100%
        );
}
.tier-silver {
    background:
        linear-gradient(135deg,
            #505860 0%,
            #7888a0 15%,
            #a0b4c4 30%,
            #c8d8e4 45%,
            #e0ecf4 55%,
            #b8c8d8 68%,
            #8090a8 80%,
            #505860 100%
        );
}
.tier-bronze {
    background:
        linear-gradient(135deg,
            #7a3a10 0%,
            #b06030 15%,
            #d08850 30%,
            #e8a870 45%,
            #f5cca0 55%,
            #d89060 68%,
            #b06030 80%,
            #7a3a10 100%
        );
}
.tier-normal {
    background:
        linear-gradient(135deg,
            #1090b0 0%,
            #30b0d0 20%,
            #60cce8 40%,
            #a0e4f8 58%,
            #c8f0fc 68%,
            #88d8f0 80%,
            #40b0d0 100%
        );
}
.tier-new {
    background:
        linear-gradient(135deg,
            #18883a 0%,
            #2eb858 20%,
            #58d078 40%,
            #90e8a8 58%,
            #bef5cc 68%,
            #7adc98 80%,
            #38c060 100%
        );
}

/* ============================================================
   セクションタイトル
   ============================================================ */
.tier-title {
    position: relative;
    z-index: 1;
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(2.8rem, 9vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.45em;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 24px rgba(0,0,0,0.18);
    margin-bottom: 52px;
}

/* ============================================================
   メンバーグリッド
   ============================================================ */
.member-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 860px;
    margin: 0 auto;
}

/* ============================================================
   メンバーカード
   ============================================================ */
.member-card {
    position: relative;
    border-radius: 18px;
    padding: 20px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow:
        0 4px 18px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.65);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: visible;
}
.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.22);
}

/* カード背景（ティア別） */
.card-gold   { background: linear-gradient(160deg, #fffef0 0%, #fef3c0 100%); }
.card-silver { background: linear-gradient(160deg, #f4f8fc 0%, #dce8f2 100%); }
.card-bronze { background: linear-gradient(160deg, #fff8f2 0%, #f5e0c4 100%); }
.card-normal { background: linear-gradient(160deg, #f0fcff 0%, #d0f2fd 100%); }
.card-new    { background: linear-gradient(160deg, #f0fff4 0%, #ccf5dc 100%); }

/* ============================================================
   メダルバッジ（GOLD / SILVER / BRONZE）
   ============================================================ */
.card-badge {
    position: absolute;
    top: -8px;
    left: 6px;
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.28));
}

/* ============================================================
   プロフィール写真（円形）
   ============================================================ */
.card-photo-wrap {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid rgba(255,255,255,0.85);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.06);
    margin-bottom: 11px;
    flex-shrink: 0;
}
.card-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.member-card:hover .card-photo-wrap img {
    transform: scale(1.06);
}

/* ============================================================
   名前
   ============================================================ */
.card-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #222;
    text-align: center;
    line-height: 1.45;
    margin-bottom: 11px;
    flex-grow: 1;
    word-break: break-all;
}

/* ============================================================
   配信ボタン
   ============================================================ */
.card-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 7px 10px;
    border-radius: 50px;
    border: 1.5px solid rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.7);
    color: #333;
    font-size: 0.71rem;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.02em;
    transition: all 0.18s ease;
}
.card-btn:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* ============================================================
   ローディング / データなし
   ============================================================ */
.loading-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    padding: 48px;
    animation: pulse 1.5s ease-in-out infinite;
}
.no-data {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    padding: 48px;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
    background: #0d0d0d;
    padding: 44px 28px 28px;
}
.footer-cta {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    max-width: 620px;
    margin: 0 auto 28px;
}
.footer-line-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: #06c755;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.02em;
}
.footer-cta-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.5;
}
.footer-cta-desc {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
}
.footer-copy {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 20px;
    margin-top: 4px;
}

/* ============================================================
   ナビゲーション オーバーレイ（ハンバーガーメニュー）
   ============================================================ */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay .nav-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    z-index: 10;
}

.nav-menu {
    background: #0a0a0a;
    width: min(320px, 80vw);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 60px 0 40px;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-overlay.open .nav-menu {
    transform: translateX(0);
}

.nav-item {
    display: block;
    padding: 22px 48px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.25em;
    transition: letter-spacing 0.2s ease, opacity 0.2s ease;
    border-left: 4px solid transparent;
}
.nav-item:hover {
    letter-spacing: 0.35em;
    opacity: 0.85;
    border-left-color: currentColor;
}

.nav-gold   { color: #f5d060; }
.nav-silver { color: #c8d8e8; }
.nav-bronze { color: #e8a060; }
.nav-normal { color: #60d0f0; }
.nav-new    { color: #58e080; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 760px) {
    .member-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}
@media (max-width: 540px) {
    .site-header { padding: 10px 14px; }
    .header-title { font-size: 1rem; letter-spacing: 0.02em; }
    .tier-section { padding: 44px 14px 60px; }
    .tier-title { font-size: 2.2rem; letter-spacing: 0.3em; margin-bottom: 36px; }
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 11px;
    }
    .card-photo-wrap { width: 82px; height: 82px; }
    .card-name { font-size: 0.74rem; }
    .card-btn { font-size: 0.65rem; padding: 6px 8px; }
    .footer-cta { flex-direction: column; align-items: center; text-align: center; }
}
