:root {
    --gold: #ffd700;
    --gold2: #ffa500;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --platinum: #e5e4e2;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card2: #1a1a28;
    --accent: #ff2d55;
    --accent2: #00e5ff;
    --accent3: #7b2fbe;
    --text: #f0f0f8;
    --text-muted: #8888aa;
    --border: rgba(255, 255, 255, 0.08);
    --glow-gold: 0 0 30px rgba(255, 215, 0, 0.4);
    --glow-accent: 0 0 30px rgba(255, 45, 85, 0.4);
}

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

body {
    font-family: "Noto Sans JP", sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-crown {
    font-size: 28px;
    animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-4px) rotate(5deg); }
}

.logo-text {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(135deg, var(--gold), var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
    letter-spacing: 0.5px;
    margin-top: -2px;
}

nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-family: "Noto Sans JP", sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: var(--glow-accent);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 60px 20px 40px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(123, 47, 190, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 45, 85, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 229, 255, 0.08) 0%, transparent 50%);
    animation: heroBg 8s ease-in-out infinite alternate;
}

@keyframes heroBg {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(5deg) scale(1.1); }
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent3), var(--accent));
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 16px;
    position: relative;
}

.hero h1 {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 900;
    font-size: clamp(24px, 6vw, 52px);
    line-height: 1.2;
    position: relative;
    margin-bottom: 12px;
}

.hero h1 span.highlight {
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: var(--text-muted);
    font-size: 15px;
    position: relative;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    color: white;
    border: none;
    border-radius: 30px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 45, 85, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 45, 85, 0.5);
}

.btn-secondary {
    padding: 14px 28px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--accent2);
    color: var(--accent2);
}

/* ===== MAIN LAYOUT ===== */
.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* ===== RANKING THEME HEADER ===== */
.ranking-header {
    text-align: center;
    padding: 30px 0 20px;
}

.ranking-theme-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 18px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.ranking-theme-label .dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.ranking-title {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 900;
    font-size: clamp(20px, 5vw, 36px);
    margin-bottom: 8px;
    line-height: 1.3;
}

.ranking-title .rank-emoji {
    margin-right: 8px;
}

.ranking-meta {
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== TOP3 PODIUM ===== */
.podium-section {
    margin: 30px 0;
}

.podium-label {
    text-align: center;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.podium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
    align-items: end;
}

/* ===== MEDALIST LABEL ===== */
.medalist-label {
    text-align: center;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 1px;
    padding: 8px 0 6px;
    border-bottom: 1px solid var(--border);
}

.medalist-label.gold {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.05);
}

.medalist-label.silver {
    color: var(--silver);
    background: rgba(192, 192, 192, 0.05);
}

.medalist-label.bronze {
    color: var(--bronze);
    background: rgba(205, 127, 50, 0.05);
}

/* ===== VIDEO CARD ===== */
.video-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.video-card.rank-1 {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: var(--glow-gold), 0 4px 20px rgba(0, 0, 0, 0.5);
    order: 2;
}

.video-card.rank-2 {
    border-color: rgba(192, 192, 192, 0.4);
    order: 1;
    transform: scale(0.95);
}

.video-card.rank-3 {
    border-color: rgba(205, 127, 50, 0.4);
    order: 3;
    transform: scale(0.92);
}

.video-card.rank-1:hover { transform: translateY(-6px) scale(1.02); }
.video-card.rank-2:hover { transform: scale(0.97) translateY(-4px); }
.video-card.rank-3:hover { transform: scale(0.94) translateY(-4px); }

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 900;
    font-size: 16px;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    width: 42px;
    height: 42px;
    font-size: 20px;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #e8e8e8, #a0a0a0);
    color: #000;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    color: #fff;
}

.rank-badge.normal {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 14px;
    width: 30px;
    height: 30px;
}

.video-wrapper {
    width: 100%;
    background: #000;
    overflow: hidden;
}

.video-wrapper iframe {
    width: 100%;
    border: none;
    display: block;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(20, 20, 40, 0.8), rgba(10, 10, 20, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.play-btn {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.video-card:hover .play-btn {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

.video-platform {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 10px;
    border-radius: 10px;
}

.card-info {
    padding: 14px;
}

.card-account {
    font-size: 11px;
    color: var(--accent2);
    margin-bottom: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-title {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-comment {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    border-left: 2px solid var(--accent3);
    padding-left: 8px;
    margin-bottom: 12px;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-certificate {
    flex: 1;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: var(--gold);
    border-radius: 8px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-certificate:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2));
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.btn-watch {
    padding: 8px 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-watch:hover {
    background: #ff1a3d;
    transform: scale(1.05);
}

/* ===== RANK 4-10 LIST ===== */
.rank-list {
    margin: 30px 0;
}

.rank-list-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.rank-list-header h3 {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.rank-list-item {
    display: grid;
    grid-template-columns: 48px 120px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s;
    cursor: pointer;
}

.rank-list-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-card2);
    transform: translateX(4px);
}

.rank-num {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: var(--text-muted);
    text-align: center;
}

.rank-thumb {
    width: 120px;
    aspect-ratio: 9/16;
    background: linear-gradient(180deg, #1a1a2e, #0a0a14);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    flex-shrink: 0;
}

.rank-info h4 {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.rank-info .account {
    font-size: 11px;
    color: var(--accent2);
    margin-bottom: 4px;
}

.rank-info .comment {
    font-size: 12px;
    color: var(--text-muted);
}

.rank-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ===== NOMINATED SECTION ===== */
.nominated-section {
    margin: 40px 0;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.section-label h2 {
    font-size: 16px;
    font-weight: 700;
}

.section-label .tag {
    font-size: 10px;
    background: var(--accent3);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
}

.nominated-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 140px));
    gap: 8px;
}

.nominated-card {
    background: var(--bg-card2);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.nominated-card:hover {
    border-color: rgba(123, 47, 190, 0.5);
    transform: translateY(-2px);
}

.nom-thumb {
    width: 100%;
    aspect-ratio: 9/16;
    background: linear-gradient(180deg, #1a1a2e, #0a0a14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.nom-info {
    padding: 5px 6px;
}

.nom-info .account {
    font-size: 9px;
    color: var(--accent2);
}

.nom-info .title {
    font-size: 10px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== VERTICAL VIDEO MODAL (index.htmlのモーダル - 現在は未使用) ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

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

.vertical-modal {
    width: 100%;
    max-width: 430px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #000;
}

.modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-rank-badge {
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #000;
    font-weight: 900;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.modal-video-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
}

.modal-video-wrapper {
    width: 100%;
    max-height: 85vh;
    aspect-ratio: 9/16;
    background: #111;
    overflow: hidden;
}

.modal-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1a1a3a, #0a0a1a);
    gap: 16px;
}

.modal-play-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 45, 85, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-play-large:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.modal-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent);
}

.modal-account {
    font-size: 12px;
    color: var(--accent2);
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
}

.modal-actions {
    display: flex;
    gap: 8px;
}

.modal-nav {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

.modal-nav-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-nav-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.modal-swipe-hint {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    padding: 8px;
}

/* ===== CERTIFICATE MODAL ===== */
.cert-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cert-modal-overlay.active {
    display: flex;
}

.cert-modal {
    width: 100%;
    max-width: 520px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.15);
}

.cert-modal-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.cert-modal-header h3 {
    font-weight: 700;
    font-size: 16px;
}

.cert-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.certificate {
    margin: 16px;
    background: linear-gradient(135deg, #0d0d1a, #1a1028);
    border-radius: 14px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    padding: 24px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.certificate::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -20%;
    width: 140%;
    height: 140%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(123, 47, 190, 0.08) 0%, transparent 50%);
}

.cert-corner {
    position: absolute;
    font-size: 20px;
    opacity: 0.4;
}
.cert-corner.tl { top: 10px; left: 10px; }
.cert-corner.tr { top: 10px; right: 10px; }
.cert-corner.bl { bottom: 10px; left: 10px; }
.cert-corner.br { bottom: 10px; right: 10px; }

.cert-service {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 700;
    position: relative;
}

.cert-title-main {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 900;
    font-size: 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    position: relative;
}

.cert-medal-icon {
    font-size: 52px;
    margin: 8px 0;
    position: relative;
    display: block;
    animation: medalGlow 2s ease-in-out infinite;
}

@keyframes medalGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
}

.cert-rank-text {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 900;
    font-size: 42px;
    color: var(--gold);
    line-height: 1;
    position: relative;
}

.cert-rank-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    position: relative;
}

.cert-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    margin: 12px auto;
    position: relative;
}

.cert-account {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    position: relative;
}

.cert-video-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    position: relative;
}

.cert-theme {
    font-size: 11px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--gold);
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
    display: inline-block;
    position: relative;
}

.cert-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    position: relative;
}

.cert-qr-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    position: relative;
}

.cert-qr {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #000;
    padding: 4px;
}

.cert-qr svg {
    width: 100%;
    height: 100%;
}

.cert-service-logo {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 900;
    font-size: 13px;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cert-modal-actions {
    padding: 16px 20px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border);
}

.btn-share-x {
    flex: 1;
    padding: 12px;
    background: #000;
    border: 1px solid #333;
    color: white;
    border-radius: 10px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-share-x:hover {
    background: #111;
    border-color: #555;
}

.btn-save-img {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    border: none;
    color: #000;
    border-radius: 10px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-save-img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

/* ===== RADAR CHART ===== */
.radar-section {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 20px;
    margin: 20px 0;
}

.radar-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: 1px;
}

.radar-container {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.radar-svg-wrap {
    flex-shrink: 0;
}

.radar-labels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
    min-width: 160px;
}

.radar-label-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.radar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent2);
    flex-shrink: 0;
}

.radar-score {
    font-weight: 700;
    color: var(--accent2);
    margin-left: auto;
}

/* ===== CONTACT FORM ===== */
.contact-section {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 28px;
    margin: 40px 0;
}

.contact-section h2 {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 8px;
}

.contact-section p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.contact-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.contact-tab {
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-family: "Noto Sans JP", sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-tab.active {
    background: var(--accent3);
    color: white;
    border-color: var(--accent3);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent3);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent3), var(--accent));
    color: white;
    border: none;
    border-radius: 12px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 4px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(123, 47, 190, 0.4);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    text-align: center;
}

.footer-logo {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 900;
    font-size: 24px;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    z-index: 9999;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
    .podium-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
    .video-card.rank-2 {
        order: 0;
        transform: none;
    }
    .video-card.rank-3 {
        order: 0;
        transform: none;
    }
    .video-card.rank-1 {
        order: 0;
    }

    .rank-list-item {
        grid-template-columns: 36px 90px 1fr;
    }
    .rank-actions {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    nav .nav-btn:not(.active) {
        display: none;
    }
}

/* Scroll animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TATEMODE PAGE ===== */
body.tatemode-body {
    overflow: hidden;
    background: #000;
}

.tatemode-page {
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tatemode-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-family: "Noto Sans JP", sans-serif;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: background 0.2s;
    display: inline-block;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.tatemode-rank-badge {
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #000;
    font-weight: 900;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.tatemode-rank-badge.nominated {
    background: linear-gradient(135deg, var(--accent3), var(--accent));
    color: white;
}

.tatemode-video-wrap {
    width: 100%;
    max-width: 430px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#tateModeVideoContent {
    width: 100%;
    max-height: 85vh;
    aspect-ratio: 9/16;
    background: #111;
    overflow: hidden;
    position: relative;
}

#tateModeVideoContent blockquote,
#tateModeVideoContent iframe {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    max-width: 100% !important;
    min-width: 100% !important;
    border: none !important;
}

.tatemode-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 36px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 60%, transparent);
    pointer-events: none;
}

.tatemode-info-bar > * {
    pointer-events: auto;
}

.tatemode-account {
    font-size: 12px;
    color: var(--accent2);
    font-weight: 700;
    margin-bottom: 4px;
}

.tatemode-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: white;
}

.tatemode-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tatemode-nav {
    position: absolute;
    right: calc(50% - 215px - 60px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 20;
}

@media (max-width: 550px) {
    .tatemode-nav {
        right: 12px;
    }
}

.tatemode-nav-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.tatemode-nav-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.tatemode-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    pointer-events: none;
}

/* ===== PAGE MODAL (運営チームについて等) ===== */
.page-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.page-modal-overlay.active {
    display: flex;
}

.page-modal {
    width: 100%;
    max-width: 760px;
    height: 90vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.page-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
