/* 基本リセットとフォント */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #fcf4f5; /* 非常に明るいピンク系の背景 */
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
    text-align: center;
}

/* メインカラー: 濃いピンク */
/* アクセントカラー: 明るいピンク/マゼンタ */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #c2185b; /* 濃いピンク (メインカラー) */
    border-bottom: 3px solid #ff4081; /* 明るいピンク (アクセントカラー) */
    display: inline-block;
    padding-bottom: 5px;
}

/* ヘッダー */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo a {
    display: block;
    line-height: 1.2;
    color: #c2185b; /* 濃いピンク */
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.logo-sub {
    font-size: 1rem;
    font-weight: 400;
    display: block;
}

.nav-list {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: block;
    padding: 10px 15px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ff4081; /* 明るいピンク */
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-image-placeholder {
    background-color: #f8bbd0; /* 非常に明るいピンク */
    background-image: url('placeholder-bg.jpg'); /* 実際の背景画像を指定 */
    background-size: cover;
    background-position: center;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 20px;
}

.hero-date {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.hero-theme {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.hero-catch {
    font-size: 1.2rem;
    margin-top: 15px;
}

/* カードセクション */
.info-cards-section {
    padding: 40px 0;
    background-color: #fff;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* カードボーダーの色をピンク系のバリエーションに変更 */
.announce-card { border-color: #ff4081; } /* お知らせ: マゼンタ */
.plan-card { border-color: #c2185b; } /* 企画一覧: 濃いピンク */
.pamphlet-card { border-color: #f48fb1; } /* パンフレット: 薄いピンク */

.info-card h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.info-card p {
    margin: 0;
    color: #666;
}

.info-card .arrow {
    display: block;
    margin-top: 15px;
    font-size: 1.5rem;
    text-align: right;
    font-weight: 700;
}

/* キャラクターセクション */
.character-section {
    background-color: #ffebee; /* 非常に明るい赤/ピンクの背景色 */
}

.character-layout {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 40px;
}

.character-text-content {
    flex: 1;
}

.character-image-placeholder {
    width: 250px;
    height: 250px;
    background-color: #f48fb1; /* 薄いピンク */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

/* フッター */
.footer {
    background-color: #c2185b; /* 濃いピンク (メインカラー) */
    color: white;
    padding: 40px 0 20px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    gap: 40px;
    text-align: left;
}

.sns-area, .contact-area {
    flex: 1;
}

.footer h4 {
    font-size: 1.2rem;
    border-left: 3px solid #ff4081; /* 明るいピンク */
    padding-left: 10px;
}

.sns-links a {
    display: inline-block;
    background-color: #ff4081; /* 明るいピンク */
    color: white;
    padding: 8px 15px;
    margin-right: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: 700;
    transition: background-color 0.3s;
}

.sns-links a:hover {
    background-color: #c2185b;
}

.contact-area ul {
    list-style: none;
    padding: 0;
}

.contact-area li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.85rem;
}

.copyright {
    margin-bottom: 5px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .nav-list {
        padding-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 5px 10px;
        font-size: 0.9rem;
    }

    .hero-theme {
        font-size: 3rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .character-layout {
        flex-direction: column;
        text-align: center;
    }

    .character-image-placeholder {
        order: -1; /* 画像を上に配置 */
        margin-bottom: 20px;
    }

    .footer-top {
        flex-direction: column;
    }
}

/* スライドショーのコンテナ */
.slideshow-container {
    position: absolute; /* 親要素 (.hero-image-placeholder) に対して絶対配置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* コンテナからはみ出す画像を隠す */
}

/* 個々のスライド画像 */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をトリミングしてコンテナを覆う */
    opacity: 0; /* 初期状態では非表示 */
    transition: opacity 1.5s ease-in-out; /* フェードイン/アウトのアニメーション */
}

/* テキストを最前面に固定 */
.hero-text {
    position: relative; /* スライドショーの上に重ねるため relative に変更 */
    z-index: 10; /* スライドショーよりも高い層に配置 */
    /* ...その他の hero-text スタイルは維持... */
}


/* ヒーローセクションの配置（メディアクエリ外） */
.hero-section {
    position: relative; /* 子要素の基準点とする */
    /* ...height: 500px; などの設定は維持 ... */
}

/* スライドショーを背景として配置（メディアクエリ外） */
.hero-image-placeholder {
    position: relative; /* hero-text の position: absolute の基準点とする */
    /* ...その他の設定は維持 ... */
}

/* テキストをスライドショーの上に重ねて中央に配置（メディアクエリ外） */
.hero-text {
    position: absolute; /* スライドショーの上に重ねる */
    top: 50%; /* 垂直方向の中央 */
    left: 50%; /* 水平方向の中央 */
    transform: translate(-50%, -50%); /* 要素自体のサイズに基づいて微調整し、真ん中へ */
    text-align: center;
    width: 90%; /* テキストが使える初期幅 */
    z-index: 100; /* スライドショーより前面に表示 */
    /* ...その他の hero-text スタイルは維持... */
}


/* 標準のPC/タブレットのフォントサイズ設定 */
body {
    font-size: 16px; /* PCでの基準サイズ */
}

/* 768px以下のデバイス（主にスマホ/タブレット）に適用する設定 */
@media (max-width: 768px) {
    /* bodyの基準フォントサイズを小さくする */
    body {
        font-size: 14px; /* スマホでの基準サイズ (例: 16pxから14pxへ) */
    }
    
    /* 特定の大きな見出しだけさらに小さくしたい場合 */
    .section-title {
        font-size: 1.8rem; /* PCでの 2.2rem から 1.8rem へ小さくする */
    }
    
    /* ナビゲーションリンクを小さくする */
    .nav-link {
        font-size: 0.9rem; /* PCでの 1rem から 0.9rem へ小さくする */
    }
}

@media (max-width: 768px) {
    /* ナビゲーション全体の修正 */
    .header-inner {
        flex-direction: column; /* ヘッダー要素を縦並びにする */
        padding: 10px; /* パディングを減らす */
    }

    /* リンク一覧の修正 */
    .nav-list {
        padding-top: 5px; 
        flex-wrap: wrap; /* リンクが多すぎるときに折り返す設定 */
        justify-content: center;
        width: 100%; /* 親要素幅いっぱいに使う */
    }

    /* 個々のリンクのパディングを減らし、幅に余裕を持たせる */
    .nav-link {
        padding: 5px 8px; /* 左右のパディングを減らす */
        font-size: 0.9rem; /* 必要に応じて文字サイズも小さくする */
    }
}


@media (max-width: 768px) {
    /* ... (他のヘッダーなどの修正は省略) ... */

    /* ヒーローテキストコンテナの幅と余白を最大化 */
    .hero-text {
        width: 100%; /* 幅を最大化 */
        padding: 0 5px; /* 左右の余白を最小限に抑える */
        box-sizing: border-box; /* paddingを含めてwidth 100%を維持 */
    }

    /* テーマの文字サイズをさらに aggressively (積極的に) 縮小 */
    .hero-theme {
        font-size: 1.5rem; /* 1.5remまで下げて、一行に収まるようにする */
        line-height: 1.1; 
        white-space: nowrap; /* 改行禁止は維持 */
    }
    
    /* 日付とキャッチコピーも調整 */
    .hero-date {
        font-size: 1rem;
    }
    .hero-catch {
        font-size: 0.85rem;
        /* キャッチコピーが途中で改行してしまっているため、幅を確保 */
        width: 100%;
        margin: 5px auto 0;
    }
}

/* Google Mapのレスポンシブ対応 */
.map-container {
    position: relative;
    /* 16:9 の縦横比を確保 (地図の高さが幅の56.25%になる) */
    padding-bottom: 56.25%; /* 450px / 800px = 0.5625 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important; /* 親要素の幅いっぱいに広げる */
    height: 100% !important; /* 親要素の高さいっぱいに広げる */
}
