/* --- 基本設定と共通デザイン --- */
:root {
    --primary-pink: #ff99cc;
    --primary-blue: #a2d2ff;
    --accent-pink: #ffdaeb;
    --bg-light: #fffafb;
    --text-main: #5a4a4d;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth; /* スムーズスクロール有効化 */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', 'M PLUS Rounded 1c', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.8;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 各セクションの共通設定 */
section {
    padding: 100px 10%;
    min-height: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-pink);
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

/* アニメーション用クラス */
.fade-in {
    animation: fadeIn 1.2s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* --- ヘッダー --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(255, 153, 204, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-pink);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    color: var(--primary-pink);
}

.nav-links a:hover { opacity: 0.7; }

/* --- ヒーローセクション（背景画像設定） --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)), url('miyui mowa.jpg');
    background-position: center;
    background-repeat: no-repeat;
    
    /* 🔴 問題だった cover を消して、サイズ指定に変更しました！ */
    /* 80% の部分を 70% や 60% に変えると、画像がそのまま小さくなります */
    /* もしパソコン画面で小さくならない場合は 800px auto などに変えてみてください */
    background-size: 80% auto; 
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary-pink);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 0px white;
}

/* --- コンテンツ（Platforms） --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid var(--accent-pink);
    transition: var(--transition);
}

.card:hover { transform: translateY(-5px); border-color: var(--primary-pink); }

/* --- スケジュールセクション --- */
.schedule-box {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    border: 2px solid var(--primary-blue);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(162, 210, 255, 0.2);
}

/* --- ニュースセクション --- */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid var(--accent-pink);
    transition: 0.3s;
}

.news-item:hover { background: #fff; transform: translateX(10px); }

.news-date {
    font-weight: 700;
    color: var(--primary-pink);
    min-width: 100px;
}

/* --- フッター --- */
footer {
    background: #4a3a3d;
    color: white;
    padding: 60px 10% 30px;
    text-align: center;
}

.copyright { margin-top: 40px; font-size: 0.8rem; opacity: 0.6; }

/* レスポンシブ（スマホ対応） */
@media (max-width: 768px) {
    header { flex-direction: column; padding: 10px; }
    .nav-links { gap: 1rem; margin-top: 10px; }
    .news-item { flex-direction: column; align-items: flex-start; gap: 5px; }
    
    /* スマホ画面の時は画像を少し大きめ（横幅100%）に表示させる設定 */
    .hero {
        background-size: 100% auto;
    }
}