/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本スタイル */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #e94560;
    --accent-color: #f5f5f5;
    --text-dark: #16213e;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

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

/* ヘッダー */
.site-header {
    background: #fff;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.site-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

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

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #0f3460);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 70px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* セクション共通 */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* 最新情報 */
.news-section {
    background-color: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.news-title {
    font-size: 1.3rem;
    margin: 0.5rem 0;
    color: var(--primary-color);
}

.news-content {
    color: var(--text-light);
    margin-bottom: 1rem;
}


/* GIFギャラリー */
.season-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-button {
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button.active,
.tab-button:hover {
    background: var(--primary-color);
    color: white;
}

.gif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.gif-item {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.gif-item:hover {
    transform: scale(1.05);
}

.gif-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.load-more-container {
    text-align: center;
}

.load-more-btn {
    padding: 1rem 3rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
}

.load-more-btn:hover {
    opacity: 0.9;
}

/* 素材ダウンロード */
.materials-section {
    background: var(--bg-light);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.material-item {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.material-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.material-preview {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.material-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.material-desc {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.download-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    transition: opacity 0.3s;
}

.download-btn:hover {
    opacity: 0.9;
}

/* 広報用素材セクション */
.kouhou-section {
    background-color: #fafafa;
}

.kouhou-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.kouhou-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.kouhou-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.kouhou-preview {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.kouhou-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.kouhou-item:hover .kouhou-preview img {
    transform: scale(1.05);
}

.kouhou-info {
    padding: 15px;
}

.kouhou-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    word-break: break-word;
}

.kouhou-download {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.kouhou-download:hover {
    background: var(--secondary-color);
}

/* ぬりえダウンロード */
.coloring-section {
    background: white;
}

.coloring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.coloring-item {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.coloring-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.coloring-preview {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    height: 200px;
    width: 200px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.coloring-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.coloring-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ファンアート */
.fanart-swiper {
    position: relative;
    padding: 0 50px;
}

.fanart-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.fanart-item {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 550px;
    margin: 0 auto;
}

.fanart-swiper .swiper-button-next,
.fanart-swiper .swiper-button-prev {
    color: var(--secondary-color);
}

.fanart-swiper .swiper-pagination-bullet {
    background: var(--primary-color);
}

.fanart-swiper .swiper-pagination-bullet-active {
    background: var(--secondary-color);
}

/* 二次創作ガイドライン */
.guidelines-section {
    background: var(--bg-light);
}

.guidelines-full {
    max-width: 900px;
    margin: 0 auto;
}

.guideline-section {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.guideline-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.guideline-section p {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

.guideline-section li {
    padding: 0.7rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.8;
}

.guideline-section li:before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.guideline-section .note {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* フッター */
.site-footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .news-grid,
    .materials-grid,
    .guidelines-content {
        grid-template-columns: 1fr;
    }
    
    .season-tabs {
        flex-wrap: wrap;
    }
    
    .gif-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: 5% auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--secondary-color);
}