/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    color: #333;
    text-decoration: none;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #007bff;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    background: #fff;
    border-top: 1px solid #eee;
}

.nav-mobile.active {
    display: block;
}

.nav-mobile-list {
    list-style: none;
    padding: 1rem 0;
}

.nav-mobile-link {
    display: block;
    padding: 1rem;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.nav-mobile-link:hover {
    background: #f8f9fa;
    text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
    background: #e9ecef;
    padding: 0.75rem 0;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: #6c757d;
}

.breadcrumb-list a {
    color: #007bff;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    text-decoration: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    text-decoration: none;
}

/* Main Content */
.main {
    padding: 2rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.main-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Sections */
.section {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.section:last-child {
    border-bottom: none;
}

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

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title-icon {
    width: 24px;
    height: 24px;
    color: #007bff;
}

.section-link {
    color: #007bff;
    font-weight: 500;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.news-card.featured {
    grid-row: span 2;
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card:not(.featured) .news-image img {
    height: 120px;
}

.news-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-badge-icon {
    width: 12px;
    height: 12px;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-card:not(.featured) .news-title {
    font-size: 1rem;
}

.news-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
}

.news-category {
    background: #007bff;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Alert */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #007bff;
    border-radius: 5px;
    padding: 1rem;
    margin-top: 2rem;
}

.alert-icon {
    width: 24px;
    height: 24px;
    color: #007bff;
    flex-shrink: 0;
}

.alert-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

/* Quick Access */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.quick-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e9ecef;
}

.quick-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.quick-icon {
    width: 48px;
    height: 48px;
    color: #007bff;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.quick-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.quick-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Popular Articles */
.article-list {
    list-style: none;
}

.article-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.article-item:last-child {
    border-bottom: none;
}

.article-rank {
    background: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.article-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #999;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title-icon {
    width: 20px;
    height: 20px;
    color: #007bff;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    outline: none;
}

.search-input:focus {
    border-color: #007bff;
}

.search-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.search-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Categories Widget */
.category-list {
    list-style: none;
}

.category-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: #333;
}

.count {
    color: #999;
    font-size: 0.9rem;
}

/* Comments Widget */
.comment-list {
    list-style: none;
}

.comment-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    line-height: 1.5;
}

.comment-list li:last-child {
    border-bottom: none;
}

.comment-time {
    display: block;
    color: #999;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Social Widget */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social-link {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.social-link:hover {
    opacity: 0.8;
    text-decoration: none;
    transform: translateY(-1px);
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.youtube {
    background: #ff0000;
}

.social-link.discord {
    background: #7289da;
}

/* Ad Widget */
.ad-space {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    padding: 2rem;
    text-align: center;
    color: #999;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gacha Specific Styles */
.gacha-period {
    background: #ff9500;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.gacha-banner {
    position: relative;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.gacha-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gacha-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
}

.gacha-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-left: 4px solid #007bff;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.probability-list,
.energy-list,
.bonus-list {
    list-style: none;
}

.probability-list li,
.energy-list li,
.bonus-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.probability-list li:last-child,
.energy-list li:last-child,
.bonus-list li:last-child {
    border-bottom: none;
}

.rank-s { color: #dc3545; font-weight: bold; }
.rank-a { color: #fd7e14; font-weight: bold; }
.rank-b { color: #28a745; font-weight: bold; }

/* Player Cards */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.player-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border: 1px solid #e9ecef;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.player-image {
    position: relative;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-rank {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.player-rank.rank-s {
    background: #dc3545;
}

.player-rank.rank-a {
    background: #fd7e14;
}

.player-rank.rank-b {
    background: #28a745;
}

.player-info {
    padding: 1.5rem;
}

.player-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #333;
}

.player-team {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.player-position {
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.player-stats {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.stat-value {
    font-weight: bold;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tip-icon {
    width: 32px;
    height: 32px;
    color: #007bff;
    margin-bottom: 1rem;
}

.tip-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.tip-card p {
    color: #666;
    line-height: 1.6;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border: 1px solid #e9ecef;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.article-image {
    height: 150px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.article-date {
    color: #999;
    font-size: 0.9rem;
}

/* Quick Info Widget */
.quick-info {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
}

.info-value {
    font-weight: bold;
    color: #333;
}

/* Gacha History Widget */
.gacha-history-list {
    list-style: none;
}

.gacha-history-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.gacha-history-list li:last-child {
    border-bottom: none;
}

.gacha-history-list .date {
    color: #999;
    font-size: 0.8rem;
}

/* Calculator Widget */
.calculator {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 1rem;
}

.calc-input {
    margin-bottom: 1rem;
}

.calc-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.calc-input input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    outline: none;
}

.calc-input input:focus {
    border-color: #007bff;
}

.calc-result p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.calc-result span {
    color: #007bff;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #343a40;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #fff;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #adb5bd;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 1rem;
    text-align: center;
    color: #adb5bd;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sidebar {
        order: -1;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-card {
        margin-bottom: 1rem;
    }

    .news-image img {
        height: 180px;
    }

    .news-content {
        padding: 1rem;
    }

    .news-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .quick-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .quick-card {
        padding: 1.5rem 1rem;
        min-height: 140px;
    }

    .quick-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .quick-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .quick-card p {
        font-size: 0.9rem;
    }

    .gacha-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-card {
        padding: 1rem;
    }

    .info-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .players-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .player-card {
        max-width: 100%;
    }

    .player-image {
        height: 160px;
    }

    .player-info {
        padding: 1rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tip-card {
        padding: 1rem;
    }

    .tip-icon {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .article-card {
        margin-bottom: 1rem;
    }

    .article-image {
        height: 120px;
    }

    .article-content {
        padding: 1rem;
    }

    .article-content h3 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .article-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

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

    .footer-section {
        margin-bottom: 1rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-section li {
        margin-bottom: 0.4rem;
    }

    .footer-section a {
        font-size: 0.9rem;
    }

    .section {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Header adjustments */
    .header-content {
        padding: 0.75rem 0;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    /* Page header adjustments */
    .page-header {
        padding: 2rem 0;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    /* Hero section adjustments */
    .hero {
        padding: 2.5rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    /* Breadcrumb adjustments */
    .breadcrumb {
        padding: 0.5rem 0;
    }

    .breadcrumb-list {
        font-size: 0.9rem;
        gap: 0.3rem;
    }

    /* Widget adjustments */
    .widget {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .widget-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    /* Form adjustments */
    .search-form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-input {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .search-btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Calculator adjustments */
    .calc-input input,
    .calc-input select {
        padding: 0.75rem;
        font-size: 1rem;
    }

    /* Alert adjustments */
    .alert {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .alert-icon {
        font-size: 1.3rem;
        align-self: flex-start;
    }

    /* Table-like lists adjustments */
    .probability-list li,
    .energy-list li,
    .bonus-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.75rem 0;
    }

    .probability-list li span:first-child,
    .energy-list li span:first-child,
    .bonus-list li span:first-child {
        font-weight: bold;
        color: #333;
    }

    .probability-list li span:last-child,
    .energy-list li span:last-child,
    .bonus-list li span:last-child {
        font-size: 0.9rem;
        color: #666;
    }

    /* Player stats adjustments */
    .stat-row {
        padding: 0.4rem 0;
        font-size: 0.9rem;
    }

    /* Article item adjustments */
    .article-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem 0;
    }

    .article-rank {
        align-self: flex-start;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    /* Gacha banner adjustments */
    .gacha-banner img {
        height: 200px;
    }

    .gacha-info-overlay {
        padding: 1rem;
    }

    .gacha-info-overlay h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    /* News meta adjustments */
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Category list adjustments */
    .category-list a {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    /* Social links adjustments */
    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero {
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-buttons .btn {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    .page-header {
        padding: 1.5rem 0;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .section {
        padding: 1rem;
    }

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

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

    .footer-section {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .footer-bottom {
        text-align: center;
        font-size: 0.85rem;
    }

    .footer-bottom p {
        margin-bottom: 0.5rem;
    }

    .quick-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .quick-card {
        padding: 1.25rem 1rem;
        min-height: 120px;
    }

    .quick-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .quick-card h3 {
        font-size: 1rem;
    }

    .quick-card p {
        font-size: 0.85rem;
    }

    /* Header adjustments for very small screens */
    .logo h1 {
        font-size: 1.3rem;
    }

    .mobile-menu-btn {
        padding: 0.4rem;
    }

    .hamburger-line {
        width: 22px;
        height: 2px;
    }

    /* Widget adjustments for very small screens */
    .widget {
        padding: 0.75rem;
    }

    .widget-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    /* Form adjustments for very small screens */
    .search-input,
    .calc-input input,
    .calc-input select {
        padding: 0.625rem;
        font-size: 0.95rem;
    }

    /* Alert adjustments for very small screens */
    .alert {
        padding: 0.75rem;
    }

    .alert-content strong {
        font-size: 0.95rem;
    }

    .alert-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Article content adjustments */
    .article-content h3 {
        font-size: 0.95rem;
    }

    .article-content p {
        font-size: 0.85rem;
    }

    .article-date {
        font-size: 0.8rem;
    }

    /* News content adjustments */
    .news-title {
        font-size: 1rem;
    }

    .news-excerpt {
        font-size: 0.85rem;
    }

    .news-meta {
        font-size: 0.8rem;
    }

    /* Player card adjustments */
    .player-name {
        font-size: 1.1rem;
    }

    .player-team,
    .player-position {
        font-size: 0.85rem;
    }

    .stat-row {
        font-size: 0.85rem;
    }

    /* Tip card adjustments */
    .tip-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .tip-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Info card adjustments */
    .info-card h4 {
        font-size: 1rem;
    }

    .probability-list li,
    .energy-list li,
    .bonus-list li {
        padding: 0.5rem 0;
    }

    .probability-list li span:first-child,
    .energy-list li span:first-child,
    .bonus-list li span:first-child {
        font-size: 0.9rem;
    }

    .probability-list li span:last-child,
    .energy-list li span:last-child,
    .bonus-list li span:last-child {
        font-size: 0.8rem;
    }

    /* Breadcrumb adjustments */
    .breadcrumb-list {
        font-size: 0.85rem;
    }

    /* Button adjustments */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Gacha period badge adjustments */
    .gacha-period {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Calculator result adjustments */
    .calc-result p {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    /* Category list adjustments */
    .category-list a {
        font-size: 0.85rem;
    }

    .count {
        font-size: 0.8rem;
    }

    /* Social link adjustments */
    .social-link {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }
}

/* Additional mobile-specific improvements */
@media (max-width: 768px) {
    /* Improve touch targets */
    .nav-mobile-link,
    .btn,
    .search-btn,
    .social-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Improve readability */
    body {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Better spacing for mobile */
    .main {
        padding: 1rem 0;
    }

    /* Improve mobile navigation */
    .nav-mobile-list {
        padding: 0.5rem 0;
    }

    .nav-mobile-link {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-mobile-link:last-child {
        border-bottom: none;
    }

    /* Improve mobile forms */
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Better mobile tables */
    .info-item {
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .info-item:last-child {
        border-bottom: none;
    }

    /* Improve mobile cards */
    .news-card,
    .article-card,
    .player-card,
    .tip-card,
    .info-card {
        border-radius: 6px;
        box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    }

    /* Better mobile spacing */
    .gacha-info-grid,
    .tips-grid,
    .article-grid,
    .players-grid {
        margin: 1rem 0;
    }

    /* Improve mobile alerts */
    .alert {
        border-radius: 6px;
        margin: 1rem 0;
    }

    /* Better mobile buttons */
    .hero-buttons .btn {
        border-radius: 6px;
        font-weight: 600;
        letter-spacing: 0.025em;
    }

    /* Improve mobile sidebar */
    .sidebar .widget:first-child {
        margin-top: 0;
    }

    /* Better mobile footer */
    .footer {
        margin-top: 2rem;
        padding: 2rem 0 1rem;
    }

    /* Improve mobile images */
    .news-image img,
    .article-image img,
    .player-image img {
        object-fit: cover;
        object-position: center;
    }

    /* Better mobile typography */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
        word-wrap: break-word;
    }

    p {
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Improve mobile scroll */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    /* Better mobile performance */
    * {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }

    /* Improve mobile accessibility */
    .mobile-menu-btn:focus,
    .search-btn:focus,
    .btn:focus {
        outline: 2px solid #007bff;
        outline-offset: 2px;
    }
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.ml-1 { margin-left: 1rem; }
.mr-1 { margin-right: 1rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .header,
    .nav-mobile,
    .sidebar,
    .footer {
        display: none;
    }

    .main-content {
        box-shadow: none;
        border: none;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }
}
