:root {
    --color-bg: #ffffff;
    --color-text: #333;
    --color-text-soft: #4a4a4a;
    --color-text-muted: #666;
    --color-text-light: #888;
    --color-border: rgba(51, 51, 51, 0.1);
    --color-border-strong: rgba(51, 51, 51, 0.15);
    --color-panel: #fafafa;
    --color-panel-soft: #f6f6f6;
    --color-accent: #ff6b6b;
    --color-accent-strong: #ff5252;
    --color-blue: #4facfe;
    --color-blue-strong: #00f2fe;

    --font-base: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;

    --container-max: 1280px;

    --space-section: 72px;
    --space-section-tablet: 56px;
    --space-section-mobile: 36px;
    --space-section-small: 30px;

    --space-container: 60px;
    --space-container-tablet: 50px;
    --space-container-mobile: 30px;
    --space-container-small: 20px;

    --title-size: 40px;
    --title-size-tablet: 32px;
    --title-size-mobile: 24px;
    --title-size-small: 20px;

    --title-gap: 56px;
    --title-gap-tablet: 40px;
    --title-gap-mobile: 24px;
    --title-gap-small: 20px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;

    --shadow-nav: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.2);
    --shadow-button: 0 8px 25px rgba(255, 107, 107, 0.3);
    --shadow-button-hover: 0 12px 35px rgba(255, 107, 107, 0.5);
    --shadow-icon: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-icon-hover: 0 8px 20px rgba(0, 0, 0, 0.14);

    --transition-base: all 0.3s ease;
    --transition-fast: all 0.25s ease;
}

/* ===== リセット ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-base);
}

.pc-only-br {
    display: none;
}

@media screen and (min-width: 769px) {
    .pc-only-br {
        display: inline;
    }
}

img {
    display: block;
    max-width: 100%;
}

/* ===== 共通 ===== */
.nav-container,
.news-content,
.story-content,
.characters-content,
.gallery-content,
.footer-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    box-sizing: border-box;
}

.news-section,
.story-section,
.characters-section,
.gallery-section {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: var(--color-bg);
    overflow-x: hidden;
    padding: var(--space-section) 0;
}

.news-title,
.story-title,
.characters-title,
.gallery-title {
    color: var(--color-text);
    font-size: var(--title-size);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: var(--title-gap);
}

.news-content,
.story-content,
.characters-content,
.gallery-content {
    position: relative;
    z-index: 3;
    animation: fadeInUp 0.8s ease-out;
    padding-left: var(--space-container);
    padding-right: var(--space-container);
}

/* ===== ナビゲーション ===== */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--color-bg);
    z-index: 1000;
    box-shadow: var(--shadow-nav);
    transition: var(--transition-base);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
}

.logo-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-base);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: inline-block;
    padding: 5px 0;
    line-height: 1.2;
    text-decoration: none;
    color: var(--color-text);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--color-text);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ===== ハンバーガー ===== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 24px;
    padding: 0;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--color-text);
    border-radius: 2px;
    transform-origin: center;
    transition: var(--transition-base);
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ===== モバイルメニュー ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    padding-top: 100px;
    padding-bottom: 50px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    z-index: 999;
    transition: left 0.3s ease;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 30px;
}

.mobile-menu a {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--color-text-muted);
}

/* ===== メインビジュアル ===== */
.hero-main {
    position: relative;
    display: grid;
    grid-template-columns: 0.45fr 0.55fr;
    width: 100%;
    max-width: var(--container-max);
    min-height: 100vh;
    margin: 60px auto 0;
    background: var(--color-bg);
    overflow: hidden;
}

.hero-logo-section,
.hero-image-section {
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
}

.hero-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    z-index: 10;
}

.hero-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    width: 100%;
    max-width: 380px;
}

.game-logo,
.catchphrase-image,
.credit-image,
.release-date-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.game-logo {
    max-width: 350px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
    animation: slideInLeft 0.8s ease-out;
}

.catchphrase-image {
    max-width: 480px;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.credit-image {
    max-width: 320px;
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

.release-date-image {
    max-width: 280px;
    animation: slideInLeft 0.8s ease-out 0.35s both;
}

.logo-info {
    width: 100%;
    text-align: center;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.release-date {
    font-size: 14px;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 30px;
    animation: slideInLeft 0.8s ease-out 0.5s both;
}

.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 15px 30px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-strong) 100%);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: var(--shadow-button);
    transition: var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-button-hover);
}

.btn-primary.android {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-strong) 100%);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

.btn-primary.android:hover {
    box-shadow: 0 12px 35px rgba(79, 172, 254, 0.5);
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slideInRight 0.8s ease-out;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ===== スクロールインジケーター ===== */
.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 20;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 30px;
    margin: 0 auto;
    background-color: var(--color-accent);
    opacity: 0.7;
    animation: scroll 1.5s infinite;
}

/* ===== NEWS ===== */
.news-content {
    padding-top: 0;
    padding-bottom: 0;
}

.news-list {
    border-top: 1px solid var(--color-border-strong);
}

.news-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid rgba(51, 51, 51, 0.12);
}

.news-date {
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.news-text {
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.04em;
}

/* ===== STORY ===== */
.story-section {
    min-height: 80vh;
    overflow: hidden;
}

.story-background,
.story-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: var(--container-max);
    height: 100%;
    transform: translateX(-50%);
}

.story-background {
    object-fit: cover;
    z-index: 1;
}

.story-overlay {
    background: transparent;
    z-index: 2;
}

.story-content {
    text-align: center;
    color: var(--color-text);
    padding-top: 0;
    padding-bottom: 0;
}

.story-text {
    margin-bottom: 40px;
    color: var(--color-text);
    font-size: 20px;
    line-height: 2.2;
    letter-spacing: 1.5px;
    font-weight: 300;
    word-break: keep-all;
    word-break: normal;
    overflow-wrap: anywhere;
    white-space: normal;
}

.story-text-section {
    margin-bottom: 60px;
}

.story-text-section:last-child {
    margin-bottom: 0;
}

.story-description {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid rgba(51, 51, 51, 0.3);
    color: var(--color-text);
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: 1px;
    font-weight: 400;
}

/* ===== CHARACTER ===== */
.characters-section {
    min-height: 120vh;
}

.characters-content {
    padding-top: 0;
    padding-bottom: 0;
}

.character-tabs {
    display: grid;
    grid-template-columns: repeat(6, 88px);
    justify-content: center;
    gap: 16px 18px;
    margin-bottom: 42px;
}

.character-tab {
    width: 88px;
    min-width: 88px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: #f3f3f3;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-icon);
    flex: 0 0 auto;
}

.character-tab img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.character-tab:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(51, 51, 51, 0.25);
    box-shadow: var(--shadow-icon-hover);
}

.character-tab.is-active {
    border-color: var(--color-text);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.character-panels {
    position: relative;
}

.character-panel {
    display: none;
}

.character-panel.is-active {
    display: block;
}

.character-panel-inner {
    padding: 24px;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-panel) 100%);
    border: 1px solid rgba(51, 51, 51, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.character-main-visual {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-panel-soft);
}

.character-main-visual a {
    display: block;
}

.character-main-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.character-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.character-message-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    padding: 13px 30px;
    border: 1px solid #8f8f8f;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    color: var(--color-text-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 6px rgba(0, 0, 0, 0.08);
    transition: var(--transition-fast);
}

.character-message-btn:hover {
    background: linear-gradient(180deg, #fafafa 0%, #ececec 100%);
    border-color: #6f6f6f;
    color: #222;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 4px 10px rgba(0, 0, 0, 0.12);
}

.character-message-btn:active {
    transform: translateY(0);
    background: linear-gradient(180deg, #efefef 0%, #f8f8f8 100%);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ===== GALLERY ===== */
.gallery-section {
    min-height: 120vh;
}

.gallery-content {
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: var(--transition-base);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.gallery-item-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-item-image img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* ===== フッター ===== */
.footer {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    overflow-x: hidden;
    background: #f8f8f8;
    border-top: 1px solid var(--color-border);
    color: var(--color-text);
}

.footer-container {
    padding: 72px var(--space-container) 50px;
}

.footer-social {
    text-align: center;
    margin-bottom: 60px;
}

.footer-social-title {
    margin-bottom: 25px;
    color: var(--color-text);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: var(--color-text);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-link {
    color: #999;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-text);
}

.footer-copyright {
    color: #999;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-align: right;
}

.footer-copyright p {
    margin: 0;
}

/* ===== アニメーション ===== */
@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== タブレット版（769px～1279px） ===== */
@media (max-width: 1279px) and (min-width: 769px) {
    .navbar {
        padding: 12px 0;
    }

    .nav-container {
        padding: 12px 30px;
        max-width: 100%;
    }

    .nav-logo {
        height: 45px;
    }

    .nav-menu {
        gap: 35px;
    }

    .nav-menu a {
        font-size: 16px;
        letter-spacing: 1.5px;
    }

    .hamburger-btn,
    .mobile-menu {
        display: none !important;
    }

    .hero-main {
        grid-template-columns: 0.65fr 0.35fr;
        min-height: 80vh;
        max-width: 100%;
    }

    .hero-logo-section {
        padding: 40px 30px;
    }

    .logo-container {
        gap: 30px;
        max-width: 400px;
    }

    .game-logo {
        max-width: 400px;
    }

    .catchphrase-image {
        max-width: 360px;
    }

    .credit-image {
        max-width: 280px;
    }

    .release-date-image {
        max-width: 310px;
    }

    .release-date {
        font-size: 12px;
    }

    .news-section,
    .story-section,
    .characters-section,
    .gallery-section {
        min-height: 110vh;
        padding: var(--space-section-tablet) 20px;
    }

    .news-content,
    .story-content,
    .characters-content,
    .gallery-content {
        padding-left: var(--space-container-tablet);
        padding-right: var(--space-container-tablet);
    }

    .news-title,
    .story-title,
    .characters-title,
    .gallery-title {
        font-size: var(--title-size-tablet);
        margin-bottom: var(--title-gap-tablet);
    }

    .news-item {
        grid-template-columns: 140px 1fr;
        gap: 20px;
        padding: 20px 0;
    }

    .news-date {
        font-size: 13px;
    }

    .news-text {
        font-size: 15px;
    }

    .story-text {
        font-size: 18px;
        line-height: 2.1;
    }

    .story-text-section {
        margin-bottom: 45px;
    }

    .story-description {
        font-size: 16px;
        margin-top: 45px;
        padding-top: 40px;
    }

    .character-tabs {
        grid-template-columns: repeat(6, 76px);
        gap: 14px 16px;
        margin-bottom: 34px;
    }

    .character-tab {
        width: 76px;
        min-width: 76px;
    }

    .character-panel-inner {
        padding: 20px;
        border-radius: 16px;
    }

    .character-message-btn {
        min-width: 220px;
        padding: 12px 24px;
        font-size: 12px;
        letter-spacing: 0.16em;
        border-radius: 13px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .footer-container {
        padding: 56px var(--space-container-tablet) 40px;
    }

    .footer-social {
        margin-bottom: 45px;
    }

    .footer-social-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 42px;
        height: 42px;
    }

    .social-link svg {
        width: 19px;
        height: 19px;
    }

    .footer-bottom {
        gap: 25px;
        padding-top: 30px;
    }

    .footer-links {
        gap: 25px;
    }

    .footer-link {
        font-size: 11px;
    }

    .footer-copyright {
        width: 100%;
        font-size: 11px;
        text-align: center;
    }
}

/* ===== スマホ版（768px以下） ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        padding: 12px 0;
        max-width: 100%;
    }

    .logo-wrapper {
        order: 1;
        flex: 1;
        flex-shrink: 0;
        padding-left: 10px;
    }

    .nav-logo {
        height: 40px;
        max-width: 70%;
    }

    .nav-menu {
        display: none;
    }

    .hamburger-btn {
        display: flex;
        order: 2;
        margin-right: 10px;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-menu ul {
        gap: 25px;
        padding: 0 30px;
    }

    .mobile-menu a {
        font-size: 16px;
        letter-spacing: 1.5px;
    }

    .hero-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: auto;
        max-width: 100%;
        margin-top: 130px;
    }

    .hero-image-section {
        order: -1;
        width: 100%;
        min-height: 500px;
    }

    .hero-logo-section {
        order: 1;
        padding: 50px 30px;
    }

    .logo-container {
        gap: 25px;
        max-width: 100%;
    }

    .game-logo {
        max-width: 320px;
    }

    .catchphrase-image {
        max-width: 360px;
    }

    .credit-image {
        max-width: 300px;
    }

    .release-date-image {
        max-width: 340px;
    }

    .release-date {
        margin-top: 15px;
        font-size: 12px;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .image-overlay {
        background: none;
    }

    .news-section,
    .story-section,
    .characters-section,
    .gallery-section {
        min-height: auto;
        padding: var(--space-section-mobile) 0;
    }

    .news-content,
    .story-content,
    .characters-content,
    .gallery-content {
        padding-left: var(--space-container-mobile);
        padding-right: var(--space-container-mobile);
        max-width: 100%;
    }

    .news-title,
    .story-title,
    .characters-title,
    .gallery-title {
        font-size: var(--title-size-mobile);
        margin-bottom: var(--title-gap-mobile);
        letter-spacing: 1.5px;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 18px 0;
    }

    .news-date {
        font-size: 12px;
    }

    .news-text {
        font-size: 14px;
        line-height: 1.8;
    }

    .story-background,
    .story-overlay {
        left: 0;
        max-width: none;
        transform: none;
    }

    .story-text {
        font-size: 15px;
        line-height: 1.9;
        letter-spacing: 1px;
    }

    .story-text-section {
        margin-bottom: 30px;
    }

    .story-description {
        margin-top: 35px;
        padding-top: 30px;
        font-size: 14px;
        line-height: 1.7;
    }

    .character-tabs {
        grid-template-columns: repeat(4, 64px);
        gap: 10px 12px;
        margin-bottom: 24px;
    }

    .character-tab {
        width: 64px;
        min-width: 64px;
        border-width: 2px;
    }

    .character-panel-inner {
        padding: 14px;
        border-radius: 14px;
    }

    .character-main-visual {
        border-radius: 10px;
    }

    .character-message-btn {
        min-width: 190px;
        padding: 11px 20px;
        font-size: 12px;
        letter-spacing: 0.14em;
        border-radius: 12px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-item {
        aspect-ratio: 4 / 5;
    }

    .gallery-item-overlay {
        background: rgba(0, 0, 0, 0.2);
        opacity: 1;
    }

    .footer-container {
        padding: 36px var(--space-container-mobile) 30px;
    }

    .footer-social {
        margin-bottom: 40px;
    }

    .footer-social-title {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        padding-top: 25px;
    }

    .footer-links {
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .footer-link {
        font-size: 11px;
    }

    .footer-copyright {
        width: 100%;
        font-size: 11px;
        text-align: center;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* ===== 小型スマホ版（480px以下） ===== */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 0;
    }

    .nav-container {
        padding: 10px 0;
    }

    .logo-wrapper {
        padding-left: 15px;
    }

    .nav-logo {
        height: 35px;
        max-width: 60%;
    }

    .hamburger-btn {
        width: 28px;
        height: 22px;
        margin-right: 15px;
    }

    .hamburger-btn span {
        height: 2px;
    }

    .mobile-menu {
        padding-top: 90px;
    }

    .mobile-menu ul {
        gap: 20px;
        padding: 0 20px;
    }

    .mobile-menu a {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .hero-main {
        margin-top: 80px;
    }

    .hero-image-section {
        min-height: 400px;
    }

    .hero-logo-section {
        padding: 40px 20px;
    }

    .logo-container {
        gap: 20px;
    }

    .game-logo {
        max-width: 280px;
    }

    .catchphrase-image {
        max-width: 340px;
    }

    .credit-image {
        max-width: 280px;
    }

    .release-date-image {
        max-width: 320px;
    }

    .release-date {
        font-size: 11px;
    }

    .news-section,
    .story-section,
    .characters-section,
    .gallery-section {
        padding: var(--space-section-small) 0;
    }

    .news-content,
    .story-content,
    .characters-content,
    .gallery-content {
        padding-left: var(--space-container-small);
        padding-right: var(--space-container-small);
    }

    .news-title,
    .story-title,
    .characters-title,
    .gallery-title {
        font-size: var(--title-size-small);
        margin-bottom: var(--title-gap-small);
        letter-spacing: 1px;
    }

    .news-item {
        padding: 16px 0;
    }

    .news-date {
        font-size: 11px;
    }

    .news-text {
        font-size: 13px;
        line-height: 1.7;
    }

    .story-text {
        font-size: 13px;
        line-height: 1.8;
        letter-spacing: 0.8px;
    }

    .story-text-section {
        margin-bottom: 25px;
    }

    .story-description {
        margin-top: 30px;
        padding-top: 25px;
        font-size: 12px;
        line-height: 1.6;
    }

    .character-tabs {
        grid-template-columns: repeat(4, 64px);
        gap: 15px 12px;
        margin-bottom: 20px;
    }

    .character-tab {
        width: 64px;
        min-width: 64px;
    }

    .character-panel-inner {
        padding: 10px;
        border-radius: 12px;
    }

    .character-message-btn {
        min-width: 170px;
        padding: 10px 16px;
        font-size: 11px;
        letter-spacing: 0.12em;
        border-radius: 11px;
    }

    .gallery-grid {
        gap: 25px;
    }

    .footer-container {
        padding: 30px var(--space-container-small) 25px;
    }

    .footer-social {
        margin-bottom: 35px;
    }

    .footer-social-title {
        font-size: 12px;
        margin-bottom: 15px;
        letter-spacing: 1px;
    }

    .social-links {
        gap: 12px;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    .footer-bottom {
        gap: 15px;
        padding-top: 20px;
    }

    .footer-links {
        gap: 12px;
        font-size: 10px;
    }

    .footer-link,
    .footer-copyright {
        font-size: 10px;
    }

    .footer-copyright p {
        line-height: 1.4;
    }
}