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

:root {
    --pc-bg: #0f0f0f;
    --mobile-bg: #ffffff;
    --accent-main: #c5a059;
    --text-main: #111111;
    --text-sub: #555555;
    --bg-gray: #f8f9fa;
    --border-color: #eeeeee;
    --mobile-width: 480px;

    /* Card Badge Backgrounds */
    --badge-gold-start: #d4af37;
    --badge-gold-end: #b8860b;
    --badge-silver-start: #a0a0a0;
    --badge-silver-end: #7a7a7a;
    --badge-bronze-start: #8b4513;
    --badge-bronze-end: #5d2e0c;
    --badge-black: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #000000;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    color: var(--text-main);
    position: relative;
    overflow-x: hidden;
}

/* Essential Dot Grid Background */
.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 35px 35px;
}

#container {
    z-index: 10;
    width: 100%;
    max-width: var(--mobile-width);
    background-color: #ffffff;
    position: relative;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

/* Top Common Banner (Obi) */
.top-obi {
    background: #750000;
    color: #fff;
    padding: 10px 15px;
    font-size: 0.73rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--accent-main);
    flex-wrap: wrap;
    gap: 5px;
}

.top-obi a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.top-obi a:hover {
    opacity: 0.8;
}

.top-obi-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-obi .current-date {
    color: var(--accent-main);
    font-family: 'Outfit', sans-serif;
}

@media (max-width: 480px) {
    .top-obi {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 15px;
    }

    .top-obi .obi-left {
        width: 100%;
        margin-bottom: 5px;
        font-size: 0.75rem;
    }

    .top-obi-meta {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        opacity: 0.9;
    }
}

/* Hero Section Base */
.hero {
    padding: 20px 25px 50px;
    text-align: center;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

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

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-main);
}

.logo-img {
    width: 240px;
    height: auto;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 20px;
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    text-align: center;
}

.hero-desc {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.7;
    text-align: left;
    background: var(--bg-gray);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--accent-main);
}

/* Section Title */
.section-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    width: 5px;
    height: 20px;
    background: var(--accent-main);
    display: inline-block;
    border-radius: 10px;
}

/* Common UI Elements */
.chevron {
    color: #ccc;
    font-size: 1.2rem;
    font-weight: 900;
}

/* Footer Base */
.footer {
    padding: 20px 20px;
    text-align: center;
    background: #750203;
    color: #fff;
    margin-top: auto;
}

.footer-logo {
    width: 200px;
    opacity: 1;
    margin-bottom: 20px;
}

.footer-cr {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    font-family: 'Outfit', sans-serif;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.2rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: #750203;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, opacity 0.3s, left 0.3s, margin-left 0.3s;
    opacity: 0;
    visibility: hidden;
    text-decoration: none;
    color: var(--text-main);
}

@media (min-width: 481px) {
    .back-to-top {
        right: auto;
        left: 50%;
        margin-left: 170px;
    }
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.btt-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-bottom: 2px;
}

.btt-text {
    font-size: 10px;
    font-weight: 900;
    color: var(--accent-main);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
    margin-top: -4px;
}