/* common.css: 全ページ共通の土台 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', 'Yu Gothic', 'Hiragino Sans', sans-serif;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
                linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
                linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    background-size: 30px 30px, 30px 30px, cover;
    color: #1a1a1a; 
    line-height: 1.7; 
    min-height: 100vh;
}

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

/* --- クイックナビゲーション --- */
.quick-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 2px solid #87CEEB;
    position: sticky;
    top: 0;
    z-index: 2000;
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 15px;
}

/* ボタンの基本設定（PC版） */
.nav-item {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: bold;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    border: 2px solid #555555 !important; /* 修正: solidと#の間にスペース追加 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-item:hover {
    border-color: #3498db;
    background-color: #f0f8ff;
    color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.15);
}

/* ホバー時のカラー設定 */
.is-beginner:hover { background: #e6f7ff; color: #0277bd; border-color: #54a0ff; }
.is-yasukore:hover { background: #fff9e6; color: #d35400; border-color: #ffd32a; }
.is-wan:hover      { background: #f0fff4; color: #2d5a27; border-color: #2ecc71; }
.is-extra:hover    { background: #f5f5f5; color: #34495e; border-color: #95a5a6; }
/* .is-home:hover は各ページのCSSで個別定義 */

/* 現在のページ */
.active { background: #fff !important; border: 3px solid #87CEEB !important; box-shadow: 0 4px 0 rgba(0,0,0,0.1); color: #0277bd; }

/* --- セクションタイトル --- */
.section-title { 
    text-align: center; 
    font-size: 2.5em; 
    font-family: "M PLUS Rounded 1c", sans-serif; 
    font-weight: 800; 
    margin-bottom: 50px; 
    position: relative; 
    padding-bottom: 20px; 
}

.section-title::after { 
    content: ''; 
    display: block; 
    width: 140px; 
    height: 10px; 
    background: linear-gradient(90deg, #ff9800, #f57f17); 
    margin: 15px auto 0; 
    border-radius: 20px; 
    box-shadow: 0 4px 0 #bf7200; 
}

/* ジオラマ装飾 */
.diorama-decorations { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1000; }
.dec-item { position: absolute; background-size: contain; background-repeat: no-repeat; filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.3)); }
.wan-peek { width: 200px; height: 200px; bottom: 20%; right: 20px; background-image: url('../images/wan-peek.png'); }

.footer { background: linear-gradient(135deg, #0277bd, #01579b); color: #e1f5fe; text-align: center; padding: 40px 20px; margin-top: 40px; }

/* --- ヘッダー共通ベース --- */
.header {
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* --- ヘッダータイトル（全ページ共通・PC） --- */
.site-title, .header h1 {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 6rem;
    font-weight: 800;
    color: #0d47a1;
    text-decoration: none;
    text-shadow: 4px 4px 8px rgba(13, 71, 161, 0.6),
                 1px 1px 0px rgba(255, 255, 255, 0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.site-title:hover, .header h1:hover {
    transform: scale(1.05) rotate(-2deg);
    color: #1565c0;
}

.site-subtitle, .header-subtitle {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 0 #0d47a1, -1px -1px 0 #0d47a1,
                 1px -1px 0 #0d47a1, -1px 1px 0 #0d47a1,
                 2px 2px 6px rgba(13, 71, 161, 0.8);
}

/* --- スマホ対応 --- */
@media (max-width: 768px) {

    .header {
        background-size: contain !important;
        background-repeat: no-repeat;
        background-position: center top;
        min-height: auto !important;
        aspect-ratio: 1028 / 338;
        padding: 0 10px !important;
        margin-bottom: 0 !important;
    }

    /* タイトル・サブタイトル（全ページ共通） */
    .site-title, .header h1 {
        font-size: 1.8rem;
        margin: 10px 0;
    }

    .site-subtitle, .header-subtitle {
        font-size: 1em;
    }

    /* ナビゲーション：高さ固定・ボタンを正円アイコンに */
    .quick-nav {
        height: 60px;
        padding: 0;
        display: flex;
        align-items: center;
    }

    .nav-container {
        justify-content: space-around;
        align-items: center;
        width: 100%;
        height: 100%;
        gap: 0;
        padding: 0;
    }

    .nav-item {
        width: 45px;
        height: 45px;
        padding: 0;
        border-radius: 50%;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
        font-size: 0; /* テキストを非表示 */
    }

    /* アイコンだけ表示 */
    .nav-item .nav-icon {
        font-size: 1.3rem;
        margin: 0;
    }

    .nav-item .nav-text {
        display: none;
    }

    .diorama-decorations { display: none; }

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