/* Sakura Dragon Cup 2025 - Optimized CSS */

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #fff8f0, #ffebee);
    color: #333;
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.7;
}

/* ヘッダー */
header {
    background: rgba(255, 105, 135, 0.95);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 65px;
    line-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* ナビゲーション */
nav {
    position: fixed;
    top: 65px;
    width: 100%;
    background: rgba(255, 105, 135, 0.9);
    text-align: center;
    padding: 10px 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease-out;
    visibility: hidden;
}
nav.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* ハンバーガーメニュー */
.hamburger {
    position: fixed;
    top: 15px;
    right: 20px;
    background: #c2185b;
    border: none;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}
.hamburger:hover {
    background: #b71c5a;
}

/* ヒーローセクション */
.hero {
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, #ffebee, #ffcdd2);
}

/* トップページの .hero */
body.home .hero {
    min-height: 500px;
    justify-content: center;
}

/* その他のページの .hero */
body.page .hero {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}
.hero h1 {
    margin-top: 10px;
}

/* ボタン */
.back-button {
    display: block;
    text-align: center;
    margin: 20px auto;
    padding: 10px 15px;
    background: #c2185b;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    width: fit-content;
    transition: background 0.3s ease;
}
.back-button:hover {
    background: #b71c5a;
}

/* 見出しのサイズ調整 */
h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem; /* 2.5rem → 2rem に縮小 */
    color: #c2185b;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

/* コンテンツエリア */
.content {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.12);
}

/* フッター */
.footer {
    margin-top: 0px;
    background-color: #222;
    color: white;
    text-align: center;
    padding: 25px;
    letter-spacing: 1px;
    line-height: 1.8;
}

/* レスポンシブ調整 */
@media screen and (max-width: 768px) {
    .hero {
        padding: 30px 15px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem; /* スマホ向けにさらに縮小 */
    }
    .content {
        max-width: 90%;
        padding: 20px;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    .content {
        max-width: 1000px;
    }
}
