/* =========================
   基本設定
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans JP",
        sans-serif;

    background: #101014;
    color: #ffffff;
    line-height: 1.7;
}


/* =========================
   HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(16, 16, 20, 0.92);
    border-bottom: 1px solid #333;
    backdrop-filter: blur(10px);
}

.header-inner {
    position: relative;
   
    max-width: 1100px;
    margin: auto;
    padding: 16px 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

/* =========================
   NAVIGATION
========================= */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu a {
    color: #cccccc;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: white;
}

/* =========================
   HAMBURGER
========================= */

.menu-button {
    display: none;

    background: none;
    border: none;

    color: white;
    font-size: 28px;

    cursor: pointer;

    padding: 5px;
}

nav a {
    color: #cccccc;
    text-decoration: none;
}

nav a:hover {
    color: white;
}

.menu-button {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}


/* スマホ */

@media (max-width: 768px) {

    header nav {
        position: relative;
        justify-content: space-between;
    }

    .menu-button {
        display: block;
    }

    .nav-menu {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;

        padding: 20px;

        background: #111;
        border-top: 1px solid #444;
        border-bottom: 1px solid #444;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu a {
        display: block;
        padding: 15px;
        text-align: center;
        white-space: nowrap;
    }

    .nav-menu .music-button {
        margin: 10px auto;
    }

}

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

.hero {
    min-height: 650px;

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

    text-align: center;

    padding: 80px 20px;

    background:
        radial-gradient(
            circle at center,
            #383844 0%,
            #101014 60%
        );
}

.hero-small {
    color: #aaa;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 90px);
    line-height: 1.1;
    margin: 0;

    letter-spacing: 2px;
}

.hero-description {
    font-size: 20px;
    color: #cccccc;
    margin: 25px 0 35px;
}


/* =========================
   BUTTON
========================= */

.button {
    display: inline-block;

    padding: 13px 28px;

    background: white;
    color: #111;

    text-decoration: none;
    font-weight: bold;

    border-radius: 8px;

    transition:
        transform 0.2s,
        opacity 0.2s;
}

.button:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

.button.small {
    padding: 9px 18px;
    font-size: 14px;
}

.music-button {
    position: relative;

    background: none;
    border: none;

    color: #fff;
    font-size: 24px;
    cursor: pointer;

    width: 40px;
    height: 40px;

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

/* ミュート時の斜線 */
.music-button.muted::after {
    content: "";

    position: absolute;

    width: 28px;
    height: 2px;

    background: currentColor;

    transform: rotate(-45deg);
}

/* =========================
   SECTION
========================= */

.section {
    max-width: 1100px;
    margin: auto;
    padding: 100px 24px;
}

.dark-section {
    max-width: none;
    padding-left: max(24px, calc((100% - 1100px) / 2));
    padding-right: max(24px, calc((100% - 1100px) / 2));

    background: #17171d;
}

.section-title {
    margin-bottom: 45px;
}

.section-title p {
    margin: 0;
    color: #999;
    font-size: 13px;
    letter-spacing: 4px;
}

.section-title h2 {
    margin: 5px 0 0;
    font-size: 38px;
}


/* =========================
   GAME CARDS
========================= */

.game-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 25px;
}

.game-card {
    overflow: hidden;

    background: #1c1c23;

    border: 1px solid #333;
    border-radius: 14px;

    transition:
        transform 0.2s,
        border-color 0.2s;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: #777;
}

.game-card.featured {
    border-color: #ffffff;
}

.game-image {
    height: 200px;

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

    background:
        linear-gradient(
            135deg,
            #33333d,
            #1a1a20
        );

    color: #aaa;
    font-size: 20px;
    font-weight: bold;
}

.game-image img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.game-image.unreleased {
    opacity: 0.5;
}

.game-content {
    padding: 25px;
}

.game-number {
    margin: 0 0 5px;

    color: #999;
    font-size: 12px;
    letter-spacing: 3px;
}

.game-content h3 {
    margin: 0 0 10px;
    font-size: 23px;
}

.game-content p {
    color: #bbb;
}

.status {
    display: inline-block;

    padding: 5px 10px;

    border: 1px solid #555;
    border-radius: 5px;

    color: #aaa;
    font-size: 13px;
}


/* =========================
   SPIN OFF
========================= */

.wide-card {
    display: flex;

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

    gap: 30px;

    padding: 35px;

    background: #202027;

    border: 1px solid #333;
    border-radius: 15px;
}

.wide-card h3 {
    margin: 5px 0;
    font-size: 30px;
}

.spin-off-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spin-off-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
}


/* =========================
   SPECIAL
========================= */

.special-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));

    gap: 20px;
}

.special-card {
    padding: 30px;

    background: #1c1c23;

    border: 1px solid #333;
    border-radius: 12px;

    color: white;
    text-decoration: none;

    transition: transform 0.2s;
   overflow: hidden;
}

.special-card:hover {
    transform: translateY(-5px);
}

.special-card span {
    color: #999;
    font-size: 12px;
    letter-spacing: 2px;
}

.special-card h3 {
    margin: 8px 0;
}

.special-card img {
    width: 100%;
    max-width: 100%;
    height: 160px;
    object-fit: contain;
    display: block;
    box-sizing: border-box;
    margin-bottom: 20px;
}


/* =========================
   NEWS
========================= */

.news-list {
    border-top: 1px solid #333;
}

.news-item {
    display: flex;

    gap: 30px;

    padding: 20px 0;

    border-bottom: 1px solid #333;
}

.news-item time {
    color: #888;
    white-space: nowrap;
}


/* =========================
   ABOUT
========================= */

.about-card {
    max-width: 800px;

    padding: 35px;

    background: #1c1c23;

    border: 1px solid #333;
    border-radius: 14px;
}

.about-card h3 {
    font-size: 25px;
}


/* =========================
   LINKS
========================= */

.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.link-list a {
    padding: 12px 20px;

    background: #222229;

    border: 1px solid #444;
    border-radius: 8px;

    color: white;
    text-decoration: none;
}

.link-list a:hover {
    background: #33333b;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 40px 20px;

    text-align: center;

    background: #0b0b0e;

    color: #888;
}

.footer-note {
    font-size: 12px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {

    .header-inner {
        flex-direction: row;
        gap: 10px;
    }

    .menu-button {
        display: block;
    }

    .nav-menu {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 15px 20px;

        background: #111;

        border-top: 1px solid #444;
        border-bottom: 1px solid #444;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu a {
        display: block;

        padding: 13px;

        text-align: center;

        white-space: nowrap;
    }

    .nav-menu .music-button {
        margin: 10px auto;
    }

    .hero {
        min-height: 550px;
    }

    .section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .wide-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-item {
        flex-direction: column;
        gap: 3px;
    }
}

/* =========================
WORLD
==========================*/

.spoiler-content {
    display: none;

    margin-top: 30px;
    padding: 30px;

    border: 1px solid #555;
    background: #111;
}

.spoiler-content.show {
    display: block;
}

.warning {
    font-weight: bold;
}

.spoiler-box {
    margin-top: 50px;
    padding: 30px;

    border: 1px solid #555;
}

.character-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 30px;
}

.character-card {
    overflow: hidden;
}

.character-image {
    height: 220px;

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

.character-image img {
    width: 90%;
    height: 90%;

    object-fit: contain;
}

.character-content {
    padding: 20px;
}

.character-role {
    font-size: 13px;
    opacity: 0.7;
}

.timeline {
    max-width: 800px;
    margin: 50px auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #555;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 60px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #888;
}

.timeline-label {
    font-size: 13px;
    opacity: 0.7;
    letter-spacing: 2px;
}

.timeline-item h2 {
    margin: 8px 0 15px;
}

.timeline-item p {
    line-height: 1.8;
}

.timeline-item.spin-off {
    margin-top: 80px;
}

.page-hero {
    text-align: center;
    padding: 100px 20px 60px;
}

.page-label {
    font-size: 14px;
    letter-spacing: 5px;
    opacity: 0.6;
}

.page-hero h1 {
    font-size: 42px;
    margin: 15px 0;
}

.terms-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 100px;
}

.term-card {
    padding: 35px;
    margin-bottom: 25px;
    background: #111;
    border: 1px solid #444;
    transition: 0.2s;
}

.term-card:hover {
    transform: translateY(-3px);
    border-color: #777;
}

.term-category {
    font-size: 12px;
    letter-spacing: 3px;
    opacity: 0.5;
}

.term-card h2 {
    font-size: 28px;
    margin: 10px 0 0;
}

.term-en {
    font-size: 13px;
    letter-spacing: 2px;
    opacity: 0.5;
    margin-top: 5px;
}

.gallery-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
}

.gallery-section h2 {
    font-size: 30px;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.gallery-item {
    margin: 0;
    background: #111;
    border: 1px solid #444;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: contain;
    background: #18181d;
}

.gallery-item figcaption {
    padding: 15px;
    font-size: 14px;
    text-align: center;
}
