/* ===============================
   CSS Reset & Base Styles
   class名そのまま / デザイン差し替え版
   =============================== */

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

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

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.9;
    color: #1f2937;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.05), transparent 28%),
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.04), transparent 22%),
        #f4f7fb;
    font-size: 16px;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

strong {
    font-weight: 800;
    color: #0f172a;
}

p {
    color: #334155;
}

ul, ol {
    padding-left: 1.25rem;
}

li {
    margin-bottom: 0.5rem;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 234, 242, 0.9);
    box-shadow: 0 2px 18px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo h1 {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: #2563eb;
    line-height: 1.1;
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: #334155;
    font-weight: 700;
    padding: 0.45rem 0;
    position: relative;
    letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    transition: width 0.25s ease;
}

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

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

.mobile-menu-btn:hover {
    background: rgba(37, 99, 235, 0.06);
}

.hamburger-line {
    width: 24px;
    height: 2.5px;
    background: #334155;
    margin: 3px 0;
    border-radius: 999px;
    transition: 0.25s ease;
}

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

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

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

/* Mobile Navigation */
.nav-mobile {
    display: none;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e5eaf2;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

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

/* existing HTMLに class がなくても動くように両対応 */
.nav-mobile a,
.nav-mobile-link {
    display: block;
    padding: 0.95rem 1rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 650;
}

.nav-mobile a:hover,
.nav-mobile-link:hover {
    background: #f8fbff;
    color: #2563eb;
    text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid #e5eaf2;
    padding: 0.7rem 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.92rem;
    padding-left: 0;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #94a3b8;
}

.breadcrumb-list a {
    color: #2563eb;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.22), transparent 26%),
        linear-gradient(135deg, #1d4ed8 0%, #4f46e5 55%, #7c3aed 100%);
    color: white;
    padding: 4.2rem 0;
    text-align: center;
}

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

.hero-title {
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.18;
    letter-spacing: 0.01em;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.92;
    line-height: 1.9;
}

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

/* Page Header */
.page-header {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 30%),
        linear-gradient(135deg, #2563eb 0%, #1d4ed8 60%, #0f172a 100%);
    color: white;
    padding: 3.2rem 0;
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.18;
    letter-spacing: 0.01em;
}

.page-subtitle {
    font-size: 1.05rem;
    opacity: 0.96;
    line-height: 1.9;
    max-width: 920px;
    margin: 0 auto;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 1rem 1.1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.82rem 1.35rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: white;
}

.btn-secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-secondary:hover {
    background: #cbd5e1;
    color: #0f172a;
}

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

.content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
    align-items: start;
}

.main-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Sections */
.section {
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    padding: 1.6rem 1.6rem;
}

.section:last-child {
    margin-bottom: 0;
}

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

.section-title {
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 900;
    line-height: 1.35;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0;
}

.section-title-icon {
    width: 24px;
    height: 24px;
    color: #2563eb;
    flex-shrink: 0;
}

.section-link {
    color: #2563eb;
    font-weight: 700;
}

.main-content p,
.main-content li,
.main-content summary,
.main-content td {
    font-size: 1.01rem;
}

.main-content p {
    margin-bottom: 1rem;
    color: #334155;
    line-height: 1.95;
}

.main-content ul {
    margin: 0.75rem 0 1rem;
    padding-left: 1.25rem;
}

.main-content li {
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

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

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid #e5eaf2;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

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

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.02);
}

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

.news-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
}

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

.news-content {
    padding: 1.2rem;
}

.news-title {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.45;
    color: #0f172a;
}

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

.news-excerpt {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #94a3b8;
    gap: 0.75rem;
}

.news-category {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

/* Alert */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-left: 4px solid #2563eb;
    border-radius: 16px;
    padding: 1rem;
    margin-top: 2rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.alert-icon {
    width: 22px;
    height: 22px;
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.alert-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #0f172a;
    font-weight: 800;
}

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

.quick-card {
    background: white;
    border-radius: 16px;
    padding: 1.4rem 1.2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5eaf2;
}

.quick-card:hover {
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-color: #d8e1ee;
}

.quick-icon {
    width: 44px;
    height: 44px;
    color: #2563eb;
    margin-bottom: 0.8rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.quick-card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
    font-weight: 800;
}

.quick-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
}

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

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

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

.article-rank {
    background: #2563eb;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.article-content h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: #0f172a;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.88rem;
    color: #94a3b8;
}

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

.widget {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    padding: 1rem 1rem;
    border: 1px solid #e5eaf2;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.widget:hover {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-color: #d8e1ee;
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 900;
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid rgba(37, 99, 235, 0.18);
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title-icon {
    width: 20px;
    height: 20px;
    color: #2563eb;
}

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

.search-input {
    flex: 1;
    padding: 0.75rem 0.9rem;
    border: 1px solid #d8e1ee;
    border-radius: 14px;
    outline: none;
    font: inherit;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-btn {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 800;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

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

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

.category-list a {
    display: flex;
    justify-content: space-between;
    color: #334155;
    font-weight: 650;
}

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

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

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

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

.comment-time {
    display: block;
    color: #94a3b8;
    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: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    font-weight: 700;
}

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

.social-link.twitter {
    background: linear-gradient(135deg, #1da1f2, #0ea5e9);
}

.social-link.youtube {
    background: linear-gradient(135deg, #ff0000, #ef4444);
}

.social-link.discord {
    background: linear-gradient(135deg, #7289da, #5865f2);
}

/* Ad Widget */
.ad-space {
    background: #f8fbff;
    border: 2px dashed #d8e1ee;
    padding: 2rem;
    text-align: center;
    color: #94a3b8;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

/* Gacha Specific Styles */
.gacha-period {
    background: linear-gradient(135deg, #f59e0b, #fb923c);
    color: white;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
}

.gacha-banner {
    position: relative;
    margin: 1.25rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.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(15,23,42,0.86));
    color: white;
    padding: 1.2rem;
}

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

.info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.2rem;
    border: 1px solid #e5eaf2;
    border-left: 4px solid #2563eb;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.info-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
    color: #0f172a;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

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

.rank-s { color: #dc2626; font-weight: 800; }
.rank-a { color: #d97706; font-weight: 800; }
.rank-b { color: #16a34a; font-weight: 800; }

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

.player-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid #e5eaf2;
}

.player-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-color: #d8e1ee;
}

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

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

.player-rank {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.player-rank.rank-s {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.player-rank.rank-a {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.player-rank.rank-b {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.player-info {
    padding: 1.2rem;
}

.player-name {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #0f172a;
}

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

.player-position {
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

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

.stat-value {
    font-weight: 800;
    color: #0f172a;
}

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

.tip-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.2rem;
    border-left: 4px solid #2563eb;
    border: 1px solid #e5eaf2;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

.tip-card h4 {
    font-size: 1.08rem;
    margin-bottom: 0.9rem;
    color: #0f172a;
    font-weight: 800;
}

.tip-card p {
    color: #64748b;
    line-height: 1.7;
}

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

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid #e5eaf2;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-color: #d8e1ee;
}

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

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.02);
}

.article-content {
    padding: 1.2rem;
}

.article-content h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.45;
    color: #0f172a;
    font-weight: 800;
}

.article-content p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

/* Quick Info Widget */
.quick-info {
    background: #f8fbff;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid #dbeafe;
}

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

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

.info-label {
    color: #64748b;
}

.info-value {
    font-weight: 800;
    color: #0f172a;
}

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

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

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

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

/* Calculator Widget */
.calculator {
    background: #f8fbff;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid #dbeafe;
}

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

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

.calc-input input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #d8e1ee;
    border-radius: 14px;
    outline: none;
    font: inherit;
}

.calc-input input:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.calc-result span {
    color: #2563eb;
    font-weight: 800;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
    color: #e2e8f0;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
    font-weight: 900;
}

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

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

.footer-section a {
    color: #cbd5e1;
}

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

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

/* 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; }

/* Additional content styles for article pages */
.ranking-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e5eaf2;
    background: #ffffff;
    margin: 1rem 0 1.1rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.ranking-table th,
.ranking-table td {
    padding: 0.95rem 0.95rem;
    vertical-align: top;
    text-align: left;
    border-bottom: 1px solid #e5eaf2;
    line-height: 1.7;
}

.ranking-table th {
    background: #f8fbff;
    font-weight: 800;
    color: #0f172a;
}

.ranking-table tr:last-child td {
    border-bottom: none;
}

details {
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    margin-top: 0.9rem;
}

summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 1rem;
    font-weight: 800;
    color: #0f172a;
    background: #f8fbff;
}

summary::-webkit-details-marker {
    display: none;
}

details p {
    padding: 0.9rem 1rem 1rem;
    margin: 0;
    color: #334155;
}

.tip-bubble,
.note-bubble,
.warning-bubble {
    position: relative;
    margin: 1rem 0;
    padding: 1rem 1rem;
    border-radius: 18px;
    border: 1px solid;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.tip-bubble {
    background: linear-gradient(180deg, #f3f8ff, #eef5ff);
    border-color: #cfe0ff;
}

.note-bubble {
    background: linear-gradient(180deg, #effdf4, #e8fbef);
    border-color: #c7eed4;
}

.warning-bubble {
    background: linear-gradient(180deg, #fff8ea, #fff4d8);
    border-color: #f0d396;
}

.tip-bubble::before,
.note-bubble::before,
.warning-bubble::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 22px;
    width: 16px;
    height: 16px;
    transform: rotate(45deg);
    background: inherit;
    border-left: 1px solid;
    border-top: 1px solid;
}

.tip-bubble::before {
    border-color: #cfe0ff;
}

.note-bubble::before {
    border-color: #c7eed4;
}

.warning-bubble::before {
    border-color: #f0d396;
}

.bubble-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.7rem;
}

.tip-bubble .bubble-label {
    background: #dbeafe;
    color: #1d4ed8;
}

.note-bubble .bubble-label {
    background: #dcfce7;
    color: #166534;
}

.warning-bubble .bubble-label {
    background: #fef3c7;
    color: #92400e;
}

.bubble-text {
    margin: 0;
    color: #334155;
    line-height: 1.9;
}

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

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

.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid #dbeafe;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 960px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

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

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

    .news-card.featured {
        grid-row: auto;
    }
}

@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.05rem;
    }

    .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.05rem;
        line-height: 1.4;
    }

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

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

    .quick-card h3 {
        font-size: 1.05rem;
        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: 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;
    }

    .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.35;
        margin-bottom: 0.5rem;
    }

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

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

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

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

    .section {
        padding: 1.2rem 1rem;
        border-radius: 18px;
    }

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

    .header-content {
        padding: 0.8rem 0;
    }

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

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

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

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

    .hero {
        padding: 2.5rem 0;
    }

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

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

    .breadcrumb {
        padding: 0.5rem 0;
    }

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

    .widget {
        padding: 1rem;
        margin-bottom: 1rem;
    }

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

    .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;
    }

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

    .alert {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

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

    .stat-row {
        padding: 0.4rem 0;
        font-size: 0.9rem;
    }

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

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

    .gacha-banner img {
        height: 200px;
    }

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

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

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

    .social-links {
        gap: 0.75rem;
    }

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

    .main {
        padding: 1rem 0 2.5rem;
    }

    body {
        font-size: 16px;
        line-height: 1.5;
    }

    .nav-mobile-list {
        padding: 0.5rem 0;
    }

    .nav-mobile a,
    .nav-mobile-link {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}

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

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

    .page-title,
    .hero-title {
        font-size: 1.65rem;
    }

    .page-subtitle,
    .hero-subtitle {
        font-size: 0.97rem;
    }

    .section {
        padding: 1rem;
    }

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

    .sidebar-section,
    .widget {
        padding: 0.95rem;
    }

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

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

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

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

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

    .quick-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0.5rem;
    }

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

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

    .news-title {
        font-size: 1rem;
    }

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

    .article-content h3 {
        font-size: 0.95rem;
    }

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

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

    .player-name {
        font-size: 1.02rem;
    }

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

    .tip-card h4,
    .info-card h4 {
        font-size: 1rem;
    }

    .breadcrumb-list {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .gacha-period {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .ranking-table th,
    .ranking-table td {
        font-size: 0.9rem;
        padding: 0.72rem 0.65rem;
    }

    .bubble-label {
        font-size: 0.75rem;
    }

    .bubble-text {
        font-size: 0.96rem;
    }
}

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

    input, select, textarea {
        font-size: 16px;
    }

    .info-item {
        padding: 0.75rem 0;
    }

    .news-card,
    .article-card,
    .player-card,
    .tip-card,
    .info-card {
        border-radius: 16px;
    }

    .gacha-info-grid,
    .tips-grid,
    .article-grid,
    .players-grid {
        margin: 1rem 0;
    }

    .alert {
        border-radius: 16px;
        margin: 1rem 0;
    }

    .hero-buttons .btn {
        border-radius: 14px;
        font-weight: 700;
        letter-spacing: 0.025em;
    }

    .sidebar .widget:first-child {
        margin-top: 0;
    }

    .footer {
        margin-top: 2rem;
        padding: 2rem 0 1rem;
    }

    .news-image img,
    .article-image img,
    .player-image img {
        object-fit: cover;
        object-position: center;
    }

    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
        word-wrap: break-word;
    }

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

    * {
        -webkit-tap-highlight-color: rgba(0,0,0,0.08);
    }

    .mobile-menu-btn:focus,
    .search-btn:focus,
    .btn:focus {
        outline: 2px solid #2563eb;
        outline-offset: 2px;
    }
}

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

    body {
        background: white;
        color: black;
    }

    .main-content,
    .section,
    .widget,
    .news-card,
    .article-card,
    .player-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

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