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

:root {
    --primary-color: #ff930f;
    --dark-bg: #141414;
    --dark-secondary: #181818;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --hover-bg: #2f2f2f;

    --light-bg: #ffffff;
    --light-secondary: #f8f9fa;
    --light-text-primary: #333333;
    --light-text-secondary: #666666;
    --light-hover-bg: #e9ecef;
}

/* ライトテーマ */
body.light-theme {
    --dark-bg: var(--light-bg);
    --dark-secondary: var(--light-secondary);
    --text-primary: var(--light-text-primary);
    --text-secondary: var(--light-text-secondary);
    --hover-bg: var(--light-hover-bg);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ---- ヘッダー ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 10%, transparent);
    z-index: 1000;
    transition: background 0.3s ease;
}

.header.scrolled {
    background: var(--dark-bg);
}

.header-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 4%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

/* テーマ切り替えボタン */
.theme-toggle {
    background: none;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* リフレッシュボタン */
.refresh-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: #e6850e;
    transform: scale(1.1);
}

.refresh-btn:active {
    transform: scale(0.95);
}

.refresh-btn.refreshing {
    opacity: 0.7;
    pointer-events: none;
}

.refresh-icon {
    transition: transform 0.5s ease;
}

.refresh-btn.refreshing .refresh-icon {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---- ライトテーマ上書き ---- */
body.light-theme .refresh-btn {
    background: var(--primary-color);
    color: white;
}

body.light-theme .refresh-btn:hover {
    background: #e6850e;
}

body.light-theme .theme-toggle {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

body.light-theme .theme-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.light-theme .header {
    background: linear-gradient(to bottom, rgba(255,255,255,0.9) 10%, transparent);
}

body.light-theme .header.scrolled {
    background: var(--light-bg);
    border-bottom: 1px solid #e0e0e0;
}

body.light-theme .filter-bar {
    background: var(--light-secondary);
    border-bottom: 1px solid #e0e0e0;
}

body.light-theme .filter-chip {
    background: var(--light-bg);
    color: var(--light-text-secondary);
    border: 1px solid #e0e0e0;
}

body.light-theme .filter-chip:hover,
body.light-theme .filter-chip.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

body.light-theme .manga-card {
    background: var(--light-bg);
    border: 1px solid #e0e0e0;
}

body.light-theme .manga-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(255, 147, 15, 0.15);
}

body.light-theme .manga-thumbnail {
    background: var(--light-secondary);
}

body.light-theme .section-title {
    color: var(--light-text-primary);
    background: linear-gradient(135deg, var(--primary-color), #ff7f0f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .section-subtitle {
    color: var(--light-text-secondary);
}

body.light-theme .footer {
    background: var(--light-secondary);
    border-top: 1px solid #e0e0e0;
}

body.light-theme .footer h3 {
    color: var(--light-text-primary);
}

body.light-theme .footer a {
    color: var(--light-text-secondary);
}

body.light-theme .footer a:hover {
    color: var(--primary-color);
}

body.light-theme .hero-bg {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 25%, #dee2e6 50%, #ced4da 75%, #adb5bd 100%);
}

body.light-theme .hero-title {
    color: var(--light-text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-theme .hero-description {
    color: var(--light-text-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.light-theme .hero-badge {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 147, 15, 0.3);
}

body.light-theme .btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 147, 15, 0.3);
}

body.light-theme .btn-primary:hover {
    background: #e6850e;
    box-shadow: 0 6px 16px rgba(255, 147, 15, 0.4);
}

body.light-theme .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--light-text-primary);
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-theme .btn-secondary:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---- ヒーローセクション ---- */
.hero {
    position: relative;
    min-height: max(60vh, 400px);
    height: auto;
    margin-top: 68px;
    overflow: visible;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3) 80%, transparent 100%),
                linear-gradient(to top, var(--dark-bg) 0%, transparent 30%),
                url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkyMCIgaGVpZ2h0PSI4MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGRlZnM+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9ImdyYWQiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiPgogICAgICA8c3RvcCBvZmZzZXQ9IjAlIiBzdHlsZT0ic3RvcC1jb2xvcjojNjY3ZWVhO3N0b3Atb3BhY2l0eToxIiAvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0eWxlPSJzdG9wLWNvbG9yOiM3NjRiYTI7c3RvcC1vcGFjaXR5OjEiIC8+CiAgICA8L2xpbmVhckdyYWRpZW50PgogIDwvZGVmcz4KICA8cmVjdCB3aWR0aD0iMTkyMCIgaGVpZ2h0PSI4MDAiIGZpbGw9InVybCgjZ3JhZCkiLz4KPC9zdmc+');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 4%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-info {
    max-width: 600px;
    animation: fadeInUp 1s ease;
    flex: 1;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 12px;
    width: auto;
    max-width: fit-content;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ヒーロー残り時間スライダー */
.hero-timer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    margin: 0;
    appearance: none;
    background: transparent;
    border-radius: 999px;
    outline: none;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

.hero-timer::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.05);
}

.hero-timer::after {
    content: "";
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    width: var(--hero-timer-percent, 100%);
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 147, 15, 0.45), rgba(255, 147, 15, 0.20));
    box-shadow: 0 0 4px rgba(255, 147, 15, 0.12);
    transition: width 0.18s linear;
    will-change: width;
}

.hero-timer::-webkit-slider-thumb { appearance: none; width: 0; height: 0; }
.hero-timer::-moz-range-thumb     { width: 0; height: 0; border: 0; }
.hero-timer::-ms-thumb            { width: 0; height: 0; border: 0; }

body.light-theme .hero-timer { opacity: 0.34; }
body.light-theme .hero-timer::before { background: rgba(0, 0, 0, 0.04); }
body.light-theme .hero-timer::after {
    background: linear-gradient(90deg, rgba(255, 147, 15, 0.40), rgba(255, 147, 15, 0.18));
    box-shadow: 0 0 4px rgba(255, 147, 15, 0.10);
}

.hero-thumbnail {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1.2s ease;
}

.hero-manga-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-manga-image:hover {
    transform: scale(1.05);
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ---- ボタン ---- */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.8);
}

.btn-secondary {
    background: rgba(109, 109, 110, 0.7);
    color: white;
}

.btn-secondary:hover {
    background: rgba(109, 109, 110, 0.5);
}

/* ---- 漫画セクション ---- */
.manga-section {
    position: relative;
    margin-bottom: 80px;
    padding: 0 4%;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}

.manga-section.featured {
    margin-bottom: 120px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-color), #ff7f0f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.manga-section.featured .section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

.manga-section.featured .section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
}

.see-all {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.see-all:hover {
    color: var(--text-primary);
}

/* ---- グリッド ---- */
.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
}

.manga-section.featured .manga-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* ---- 漫画カード ---- */
.manga-card {
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: var(--dark-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.manga-section.featured .manga-card {
    border-radius: 15px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.manga-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.manga-thumbnail {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    background: var(--dark-secondary);
}

.manga-section.featured .manga-thumbnail {
    aspect-ratio: 2/3;
}

.manga-info {
    position: static;
    background: var(--dark-secondary);
    padding: 15px;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.manga-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.manga-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.manga-match {
    color: #46d369;
    font-weight: 600;
}

.manga-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(42, 42, 42, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.action-btn.play {
    background: white;
    color: black;
    border-color: white;
}

/* ---- フッター ---- */
.footer {
    margin-top: 100px;
    padding: 40px 4%;
    background: var(--dark-secondary);
}

.footer-content {
    max-width: 1920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 2;
    transition: color 0.3s ease;
}

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

/* ---- フィルターバー ---- */
.filter-bar {
    position: sticky;
    top: 68px;
    background: var(--dark-bg);
    padding: 15px 4%;
    margin-bottom: 30px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-content {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-chip {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ---- iPhone 15 Pro ---- */
@media (max-width: 430px) and (min-width: 390px) {
    .hero {
        min-height: max(75vh, 550px);
        height: auto;
    }

    .hero-content {
        padding: 15px 12px 25px 12px;
        gap: 15px;
        justify-content: space-between;
    }

    .hero-thumbnail {
        flex: 0 0 auto;
    }

    .hero-manga-image {
        max-width: 240px;
        height: auto;
        max-height: 40vh;
        object-fit: contain;
    }

    .hero-info {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-badge {
        font-size: 0.6rem;
        padding: 2px 8px;
        margin-bottom: 8px;
        display: inline-block;
        width: auto;
        max-width: fit-content;
    }

    .hero-title {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 6px;
    }

    .hero-description {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .hero-buttons {
        margin-top: 12px;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .manga-section.featured .section-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .manga-section.featured .section-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
}

/* ---- タブレット・スマホ ---- */
@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
        gap: 10px;
    }

    .nav-menu {
        display: none;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero {
        min-height: max(75vh, 500px);
        height: auto;
        margin-top: 68px;
        display: flex;
        align-items: center;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px 15px 30px 15px;
        justify-content: space-between;
        height: 100%;
        min-height: 0;
    }

    .hero-thumbnail {
        order: 1;
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 10px;
    }

    .hero-manga-image {
        max-width: 300px;
        height: auto;
        max-height: 45vh;
        object-fit: contain;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .hero-info {
        order: 2;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 2;
    }

    .hero-title {
        font-size: 1.7rem;
        line-height: 1.3;
        margin-bottom: 12px;
        color: var(--text-primary);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
        margin-bottom: 10px;
        display: inline-block;
        width: auto;
        max-width: fit-content;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.5;
        color: var(--text-secondary);
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    }

    .hero-buttons {
        flex: 0 0 auto;
        order: 3;
        margin-top: auto;
        padding-bottom: 10px;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-timer {
        height: 1px;
        opacity: 0.32;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 1rem;
    }

    .manga-section {
        padding: 0 15px;
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .manga-section.featured .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .manga-section.featured .section-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .filter-bar {
        padding: 10px 15px;
    }

    .filter-content {
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .filter-chip {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .manga-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .manga-section.featured .manga-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 18px;
    }

    .manga-thumbnail {
        aspect-ratio: 2/3;
    }

    .manga-section.featured .manga-thumbnail {
        aspect-ratio: 2/3;
    }

    .manga-info {
        padding: 15px;
    }

    .manga-title {
        font-size: 0.9rem;
    }

    .manga-meta {
        font-size: 0.75rem;
    }

    .footer {
        margin-top: 60px;
        padding: 30px 15px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* ---- 小型スマホ ---- */
@media (max-width: 480px) {
    .header-content {
        padding: 0 10px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero {
        min-height: max(80vh, 550px);
        height: auto;
        display: flex;
        align-items: center;
    }

    .hero-content {
        padding: 15px 10px 25px 10px;
        gap: 15px;
        justify-content: space-between;
        height: 100%;
        min-height: 0;
    }

    .hero-thumbnail {
        order: 1;
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 15px;
    }

    .hero-manga-image {
        max-width: 250px;
        height: auto;
        max-height: 40vh;
        object-fit: contain;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    }

    .hero-info {
        order: 2;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.4rem;
        line-height: 1.25;
        margin-bottom: 10px;
        color: var(--text-primary);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    .hero-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
        margin-bottom: 8px;
        display: inline-block;
        width: auto;
        max-width: fit-content;
    }

    .hero-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 15px;
        color: var(--text-secondary);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }

    .hero-buttons {
        flex: 0 0 auto;
        order: 3;
        margin-top: auto;
        padding-bottom: 15px;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .manga-section.featured .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
    }

    .manga-section.featured .section-subtitle {
        font-size: 0.9rem;
    }

    .manga-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .manga-section.featured .manga-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .manga-thumbnail {
        aspect-ratio: 2/3;
    }

    .manga-section.featured .manga-thumbnail {
        aspect-ratio: 2/3;
    }

    .manga-info {
        padding: 12px;
    }

    .manga-title {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .filter-content {
        gap: 6px;
    }

    .filter-chip {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ---- タッチデバイス ---- */
@media (hover: none) and (pointer: coarse) {
    .manga-card:hover {
        transform: none;
    }

    .manga-card:active {
        transform: scale(0.98);
    }

    .manga-info {
        opacity: 1;
        visibility: visible;
        position: static;
        background: var(--dark-secondary);
        box-shadow: none;
        backdrop-filter: none;
        margin-top: 0;
        padding: 15px;
    }

    .manga-thumbnail {
        border-radius: 0;
    }

    .action-btn:hover {
        background: rgba(42, 42, 42, 0.8);
    }

    .btn:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
    }
}
