/* =============================================
   大富豪8 LP — style.css
   Color System from AppColors.swift
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0A0E1A;
    --surface: #141929;
    --surface-light: #1E2640;
    --border: #2A3350;
    --text-primary: #EAEDF5;
    --text-secondary: #8B95B0;
    --text-tertiary: #5A6480;
    --gold: #F0C040;
    --gold-dark: #E0A020;
    --cyan: #00E5FF;
    --cyan-dark: #0080FF;
    --purple: #B060FF;
    --purple-dark: #6030C0;
    --red: #FF4060;
    --green: #00E676;
    --orange: #FF8C00;
    --font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--cyan);
    text-decoration: none;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Utility --- */
.text-gold { color: var(--gold); }
.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }

.inline-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin: 0 2px;
}

/* --- Button --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn--gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    box-shadow: 0 4px 24px rgba(240, 192, 64, 0.3);
}
.btn--gold:hover {
    box-shadow: 0 8px 32px rgba(240, 192, 64, 0.5);
}
.btn--lg {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 16px;
}
.btn__icon {
    flex-shrink: 0;
}

/* =============================================
   HERO (MV full-bleed)
   ============================================= */
.hero {
    position: relative;
    overflow: hidden;
}
.hero__bg {
    position: relative;
    width: 100%;
}
.hero__bg img {
    width: 100%;
    height: auto;
    display: block;
}
.hero__bottom {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.hero__cta {
    margin-bottom: 0;
}
.hero__badge {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    background: rgba(42, 51, 80, 0.6);
    padding: 4px 16px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

/* Scroll hint */
.hero__scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.hero__scroll-hint span {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-tertiary);
    border-bottom: 2px solid var(--text-tertiary);
    transform: rotate(45deg);
    animation: scroll-hint 2s infinite;
}
@keyframes scroll-hint {
    0% { opacity: 0; transform: rotate(45deg) translate(-8px, -8px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(8px, 8px); }
}


/* =============================================
   SECTIONS
   ============================================= */
.section {
    padding: 80px 0;
    position: relative;
}
.section--alt {
    background: var(--surface);
}
.section--has-bg {
    position: relative;
    overflow: hidden;
}
.section__bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
}
.section__bg-img--chara {
    opacity: 0.12;
}
.section__title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.3;
    position: relative;
}
.section__desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
    position: relative;
}
.section__heading-img {
    display: block;
    max-width: 280px;
    margin: 0 auto 16px;
}

/* --- Fade-in animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   SECTION 2: Intro
   ============================================= */
.intro__visual {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}
.intro__screenshot {
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

/* Highlights */
.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}
.highlight-card {
    background: rgba(20, 25, 41, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.1);
}
.highlight-card__icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.highlight-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gold);
}
.highlight-card__text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   SECTION 3: Game Modes
   ============================================= */
.mode-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.mode-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}
.mode-card--cyan::before { background: linear-gradient(90deg, var(--cyan), var(--cyan-dark)); }
.mode-card--purple::before { background: linear-gradient(90deg, var(--purple), var(--purple-dark)); }
.mode-card--gold::before { background: linear-gradient(90deg, var(--gold), var(--gold-dark)); }

.mode-card:hover {
    transform: translateY(-6px);
}
.mode-card--cyan:hover { box-shadow: 0 8px 32px rgba(0, 229, 255, 0.15); }
.mode-card--purple:hover { box-shadow: 0 8px 32px rgba(176, 96, 255, 0.15); }
.mode-card--gold:hover { box-shadow: 0 8px 32px rgba(240, 192, 64, 0.15); }

.mode-card__img-wrap {
    width: 100px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mode-card__img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.mode-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.mode-card__subtitle {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}
.mode-card__text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}
.mode-card__badge {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    background: var(--surface-light);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Player count icons */
.player-count {
    text-align: center;
    margin-top: 32px;
}
.player-count__label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}
.player-count__icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.player-count__icons img {
    width: 80px;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.player-count__icons img:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(240, 192, 64, 0.2);
}

/* =============================================
   SECTION 4: Rules
   ============================================= */
.rules__settings-img {
    max-width: 160px;
    margin: 0 auto;
    filter: drop-shadow(0 4px 20px rgba(240, 192, 64, 0.3));
}
.rules-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto 24px;
    position: relative;
}
.rule-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(20, 25, 41, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.rule-card:hover {
    transform: translateX(4px);
    border-color: var(--accent, var(--border));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.rule-card__icon {
    font-size: 1.6rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}
.rule-card__body {
    flex: 1;
}
.rule-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent, var(--gold));
    margin-bottom: 2px;
}
.rule-card__desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.rule-card__tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-tertiary);
    background: var(--surface-light);
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}
.rules-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
}

/* =============================================
   SECTION 5: Classes
   ============================================= */
.class-tiers {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.class-tier {
    text-align: center;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    min-width: 100px;
    transition: transform 0.2s;
}
.class-tier:hover {
    transform: scale(1.05);
}
.class-tier__rank {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}
.class-tier__name {
    font-size: 1.1rem;
    font-weight: 700;
}
.class-tier--gold .class-tier__name { color: var(--gold); }
.class-tier--silver .class-tier__name { color: #C0C0C0; }
.class-tier--normal .class-tier__name { color: var(--text-primary); }
.class-tier--bronze .class-tier__name { color: #CD7F32; }
.class-tier--dark .class-tier__name { color: var(--text-tertiary); }

.class-tier--gold { border-color: rgba(240, 192, 64, 0.3); box-shadow: 0 0 20px rgba(240, 192, 64, 0.1); }

/* =============================================
   SECTION 6: Characters & Gacha
   ============================================= */

/* Horizontal scroll rows */
.scroll-row {
    overflow: hidden;
    margin-bottom: 16px;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.scroll-row__track {
    display: flex;
    gap: 14px;
    width: max-content;
    will-change: transform;
}
.scroll-row--left .scroll-row__track {
    animation: scroll-left 45s linear infinite;
}
.scroll-row--right .scroll-row__track {
    animation: scroll-right 50s linear infinite;
}
.scroll-row:hover .scroll-row__track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* SSR Video Modal */
.ssr-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ssr-modal[hidden] {
    display: none;
}
.ssr-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
}
.ssr-modal__content {
    position: relative;
    max-width: 500px;
    width: 90%;
}
.ssr-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}
.ssr-modal__video {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(240, 192, 64, 0.3);
}

/* Chara cards inside scroll rows */
.chara-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    width: 150px;
    height: 200px;
    flex-shrink: 0;
    transition: transform 0.3s, box-shadow 0.3s;
}
.chara-card:hover {
    transform: scale(1.08);
}
.chara-card__name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 2;
}
.chara-card__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    mix-blend-mode: screen;
}
.chara-card--ssr:hover .chara-card__video {
    opacity: 1;
}
.chara-card--ssr {
    border-color: rgba(240, 192, 64, 0.4);
    cursor: pointer;
}
.chara-card--ssr:hover {
    box-shadow: 0 0 24px rgba(240, 192, 64, 0.25);
}
.chara-card--sr {
    border-color: rgba(176, 96, 255, 0.4);
}
.chara-card--sr:hover {
    box-shadow: 0 0 24px rgba(176, 96, 255, 0.25);
}
.chara-card--r {
    border-color: rgba(0, 128, 255, 0.3);
}
.chara-card--r:hover {
    box-shadow: 0 0 24px rgba(0, 128, 255, 0.2);
}
.chara-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chara-card__rarity {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 8px;
    z-index: 1;
}
.chara-card__rarity--ssr {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
}
.chara-card__rarity--sr {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: #fff;
}
.chara-card__rarity--r {
    background: rgba(0, 128, 255, 0.8);
    color: #fff;
}
.chara-card--n {
    border-color: rgba(90, 100, 128, 0.3);
}
.chara-card__rarity--n {
    background: var(--surface-light);
    color: var(--text-tertiary);
}

/* Gacha buttons */
.gacha-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
}
.gacha-btn-img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 16px rgba(240, 192, 64, 0.3));
    transition: transform 0.2s;
}
.gacha-btn-img:hover {
    transform: scale(1.05);
}

/* Gacha info */
.gacha-info {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    position: relative;
}
.gacha-info__item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.gacha-info__rarity {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.75rem;
}
.gacha-info__rarity--n { background: var(--surface-light); color: var(--text-tertiary); }
.gacha-info__rarity--r { background: rgba(0, 128, 255, 0.15); color: #4090FF; }
.gacha-info__rarity--sr { background: rgba(176, 96, 255, 0.15); color: var(--purple); }
.gacha-info__rarity--ssr { background: rgba(240, 192, 64, 0.15); color: var(--gold); }

.gacha-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
}

/* =============================================
   SECTION 7: Rank & Features
   ============================================= */

/* Rank stones with actual images */
.rank-stones {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.rank-stone {
    text-align: center;
    transition: transform 0.2s;
}
.rank-stone:hover {
    transform: scale(1.1);
}
.rank-stone img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
.rank-stone__tier {
    display: block;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--text-tertiary);
    margin-top: 4px;
}
.rank-stone--ss .rank-stone__tier {
    color: var(--gold);
    text-shadow: 0 0 16px rgba(240, 192, 64, 0.5);
}
.rank-stone--ss {
    filter: drop-shadow(0 0 12px rgba(240, 192, 64, 0.3));
}
.rank-stone__tier--ss {
    font-size: 1rem;
}
.rank-stone__arrow {
    color: var(--text-tertiary);
    font-size: 1.2rem;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
}
.feature-card__game-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 16px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
.feature-card__icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.feature-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}
.feature-card__text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   SECTION 8: Gallery
   ============================================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.gallery__item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery__item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
}
.gallery__item--wide {
    grid-column: span 1;
}
.gallery__item--wide img {
    aspect-ratio: 16/9;
}

/* =============================================
   CTA Section
   ============================================= */
.cta-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}
.cta-section__bg {
    position: absolute;
    inset: 0;
}
.cta-section__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(0.3);
}
.cta-section__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 26, 0.8);
}
.cta-section__content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.cta-section__logo {
    margin: 0 auto 24px;
    filter: drop-shadow(0 0 30px rgba(240, 192, 64, 0.4));
}
.cta-section__title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 40px rgba(240, 192, 64, 0.4);
    margin-bottom: 8px;
}
.cta-section__sub {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1rem;
}
.cta-section__note {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}
.footer__logo {
    margin: 0 auto 16px;
    opacity: 0.6;
}
.footer__links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}
.footer__links a {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    transition: color 0.2s;
}
.footer__links a:hover {
    color: var(--text-primary);
}
.footer__copy {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

/* =============================================
   Responsive — Tablet (769px以下)
   ============================================= */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 56px 0;
    }

    .section__title {
        font-size: 1.4rem;
    }
    .section__desc {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }

    /* Hero MV — mobile: buttons below image */
    .hero__bottom {
        position: static;
        padding: 24px 16px;
        background: var(--bg);
    }
    .hero__cta.btn {
        padding: 14px 28px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
        max-width: 320px;
    }
    .hero__scroll-hint {
        display: none;
    }

    /* Grids → 1 column */
    .highlights,
    .mode-cards,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .highlight-card {
        padding: 20px 16px;
    }

    .mode-card {
        padding: 24px 20px;
    }

    /* Scroll rows — slightly smaller cards on tablet */
    .chara-card {
        width: 130px;
        height: 173px;
    }

    /* Gallery → 1 column */
    .gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .gallery__item--wide {
        grid-column: span 1;
    }
    .gallery__item--wide img {
        aspect-ratio: 16/9;
    }

    /* Rules */
    .rules-grid {
        gap: 10px;
    }
    .rule-card {
        padding: 12px 14px;
        gap: 10px;
    }
    .rule-card__icon {
        font-size: 1.3rem;
        width: 32px;
    }
    .rule-card__name {
        font-size: 0.9rem;
    }
    .rule-card__desc {
        font-size: 0.78rem;
    }

    /* Classes */
    .class-tiers {
        gap: 8px;
    }
    .class-tier {
        min-width: 60px;
        padding: 12px 12px;
    }
    .class-tier__name {
        font-size: 0.95rem;
    }

    /* Rank stones */
    .rank-stones {
        gap: 4px;
        margin-bottom: 32px;
    }
    .rank-stone img {
        width: 50px;
        height: 50px;
    }
    .rank-stone__tier {
        font-size: 0.7rem;
    }
    .rank-stone__arrow {
        font-size: 0.85rem;
    }

    /* Player count */
    .player-count__icons img {
        width: 60px;
    }

    /* Gacha */
    .gacha-info {
        gap: 16px;
    }
    .gacha-info__rarity {
        width: 36px;
        height: 36px;
    }
    .gacha-buttons {
        gap: 12px;
    }
    .gacha-btn-img {
        max-width: 140px;
    }

    /* CTA */
    .cta-section {
        padding: 60px 0;
    }
    .cta-section__logo {
        max-width: 180px;
    }
    .cta-section__title {
        font-size: 1.3rem;
    }

    /* Footer */
    .footer {
        padding: 32px 0;
    }
    .footer__links {
        flex-direction: column;
        gap: 12px;
    }
}

/* =============================================
   Responsive — Small phone (480px以下)
   ============================================= */
@media (max-width: 480px) {
    .section {
        padding: 44px 0;
    }

    .section__title {
        font-size: 1.2rem;
    }
    .section__desc {
        font-size: 0.85rem;
    }

    /* Hero */
    .hero__bottom {
        bottom: 16px;
    }
    .hero__cta.btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        border-radius: 12px;
    }
    .hero__badge {
        font-size: 0.7rem;
        padding: 3px 12px;
    }

    /* Scroll rows — smaller cards on phone */
    .chara-card {
        width: 110px;
        height: 147px;
    }

    /* Rank stones — compact */
    .rank-stones {
        gap: 2px;
    }
    .rank-stone img {
        width: 38px;
        height: 38px;
    }
    .rank-stone__tier {
        font-size: 0.6rem;
    }
    .rank-stone__arrow {
        font-size: 0.7rem;
    }

    /* Classes */
    .class-tiers {
        gap: 6px;
        justify-content: center;
    }
    .class-tier {
        min-width: 56px;
        padding: 10px 8px;
    }
    .class-tier__rank {
        font-size: 0.65rem;
    }
    .class-tier__name {
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn--lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    /* Player count */
    .player-count__icons img {
        width: 50px;
    }

    /* Gacha buttons */
    .gacha-btn-img {
        max-width: 120px;
    }

    /* CTA */
    .cta-section {
        padding: 48px 0;
    }
    .cta-section__logo {
        max-width: 150px;
    }

    /* Feature cards */
    .feature-card__game-icon {
        width: 60px;
        height: 60px;
    }
}
