@charset "UTF-8";

/* --- 0. 全体の崩れ防止 --- */
* { box-sizing: border-box; }

/* --- 基本設定 --- */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0; padding: 0; background-color: #fdfdfd; color: #333; line-height: 1.6;
    display: flex; flex-direction: column; min-height: 100vh;
}

/* =========================================
   【ヘッダーエリア】
========================================= */
.pc-header-wrap { display: none; }
.sp-header-wrap { display: block; }
@media (min-width: 768px) {
    .sp-header-wrap { display: none; }
    .pc-header-wrap { display: block; }
}

header { background-color: #fff; padding: 15px; text-align: center; }
.site-title {
    font-size: 28px; font-weight: bold; color: #0052cc;
    margin: 0; letter-spacing: 1px; text-decoration: none; display: block;
}

/* --- スマホ用ナビゲーション --- */
/* 1段目（組織：青） - 4等分設定 */
.nav-global { background-color: #0052cc; color: #fff; width: 100%; }
.nav-global ul {
    display: flex; width: 100%; margin: 0; padding: 0; list-style: none;
    flex-wrap: nowrap; /* 1行に収める */
}
.nav-global li {
    width: 25%; /* 4等分 */
    flex-shrink: 0; border-right: 1px solid rgba(255,255,255,0.2);
}
.nav-global li:last-child { border-right: none; }
.nav-global a {
    display: block; width: 100%; color: #fff; text-decoration: none; text-align: center;
    transition: background 0.3s;
    font-size: 10px; padding: 10px 0; /* 文字を小さく、余白を詰める */
    white-space: nowrap; overflow: hidden;
}
.nav-global a:hover { background-color: #003380; }

/* 2段目（今年度：黄色） - 3等分設定 */
.nav-year { background-color: #ffcc00; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.nav-year ul { display: flex; justify-content: center; margin: 0; padding: 0; list-style: none; flex-wrap: nowrap; }
.nav-year li { width: 33.33%; /* 3等分 */ }
.nav-year a {
    display: block; width: 100%; padding: 12px 0; text-align: center;
    color: #333; text-decoration: none; font-weight: bold; font-size: 13px; transition: background 0.3s;
}
.nav-year a:hover { background-color: #ffdb4d; }


/* --- PC用ヘッダー --- */
@media (min-width: 768px) {
    /* 上段（組織：白背景に青文字） */
    .pc-header-top {
        display: flex; justify-content: space-between; align-items: center;
        background-color: #fff; border-bottom: 1px solid #eee;
        padding: 15px max(20px, calc(50% - 500px));
    }
    .pc-logo a { font-size: 24px; font-weight: bold; color: #0052cc; text-decoration: none; }
    .pc-nav-global ul { display: flex; margin: 0; padding: 0; list-style: none; }
    .pc-nav-global a {
        display: block; padding: 5px 15px; color: #333; text-decoration: none;
        font-size: 14px; transition: color 0.3s;
    }
    .pc-nav-global a:hover { color: #0052cc; }

    /* 下段（今年度：黄色背景に黒文字） */
    .pc-header-bottom {
        display: flex; justify-content: space-between; align-items: center;
        background-color: #ffcc00; color: #333;
        position: sticky; top: 0; z-index: 1000;
        padding: 10px max(20px, calc(50% - 500px));
    }
    .pc-edition-title { font-size: 18px; font-weight: bold; }
    .pc-nav-year ul { display: flex; margin: 0; padding: 0; list-style: none; align-items: center; }
    .pc-nav-year a {
        display: block; padding: 8px 20px; color: #333; text-decoration: none;
        font-size: 14px; transition: opacity 0.3s; font-weight: bold;
    }
    .pc-nav-year a:hover { opacity: 0.7; }
    
    /* 参加申込ボタン */
    .pc-entry-btn {
        background-color: #fff; color: #333 !important;
        border-radius: 20px; padding: 8px 25px !important; margin-left: 10px;
    }
    .pc-entry-btn:hover { background-color: #0052cc; color: #fff !important; }
}

/* --- パンくずリスト --- */
.breadcrumb {
    background-color: #f0f0f0; padding: 8px 20px; font-size: 12px;
    color: #666; border-bottom: 1px solid #ddd; overflow-x: auto; white-space: nowrap;
}
.breadcrumb-inner { max-width: 1000px; margin: 0 auto; }
.breadcrumb a { text-decoration: none; color: #0052cc; }
.breadcrumb span::after { content: ">"; margin: 0 8px; color: #999; }
.breadcrumb span:last-child::after { content: ""; }
.breadcrumb span:last-child { font-weight: bold; color: #333; }

/* --- メインコンテンツ共通 --- */
.main-content { width: 100%; flex: 1; }
.container { max-width: 1000px; margin: 30px auto; padding: 0 20px; }

/* =========================================
   【メインビジュアル（ボックス化・光る文字）】
========================================= */
.hero-section {
    position: relative; width: 100%; height: 400px; background-color: #aed581;
    overflow: hidden; margin-bottom: 0; z-index: 1;
}
@media (min-width: 768px) {
    .hero-section {
        width: 70%; max-width: 1200px; height: 500px; margin: 30px auto 0;
        border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }
}
.hero-slideshow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; animation: fadeSlide 15s infinite; 
}
@keyframes fadeSlide { 0% { opacity: 0; } 10% { opacity: 1; } 40% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }

/* 光る文字の設定 */
.hero-title {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 90%; text-align: center; font-size: 32px; font-weight: bold;
    color: white; margin: 0; line-height: 1.4;
    text-shadow: 0 0 10px rgba(255,255,255, 0.8), 0 0 20px rgba(255,255,255, 0.6), 0 2px 5px rgba(0,0,0, 0.5);
}
@media (min-width: 768px) { .hero-title { font-size: 56px; } }

/* --- 情報バー --- */
.info-bar {
    background-color: #fffae6; padding: 30px 20px; text-align: center;
    border-bottom: 1px solid #eee; margin-bottom: 40px;
}
@media (min-width: 768px) {
    .info-bar { width: 70%; max-width: 1200px; margin: 0 auto 40px; border-radius: 0 0 12px 12px; }
}
.info-bar-inner { max-width: 1000px; margin: 0 auto; }
.info-date-place {
    font-size: 16px; margin-bottom: 15px; color: #333; font-weight: bold;
    border: 2px solid #ffcc00; display: inline-block; padding: 10px 20px;
    background: #fff; border-radius: 8px;
}
.info-date-place strong { color: #0052cc; font-size: 1.2em; margin: 0 5px; }
.info-message { margin: 15px 0 25px; font-size: 15px; color: #555; }


/* =========================================
   【⑥ ニュース・2列レイアウト（修正版）】
========================================= */
.news-container {
    max-width: 1000px; margin: 40px auto; padding: 0 20px;
    display: flex;
    flex-direction: column; /* スマホは縦並び */
    gap: 30px;
}

/* サイドバーの基本スタイル（スマホ・PC共通） */
.news-sidebar {
    background-color: #f9f9f9; padding: 20px; border-radius: 8px;
    border: 1px solid #ddd; font-size: 14px;
    /* width: 100% を削除 */
}

/* PC画面（幅768px以上）でのレイアウト設定 */
@media (min-width: 768px) {
    .news-container {
        flex-direction: row; /* 横並びにする */
        align-items: flex-start; /* 上揃え */
    }
    .news-main {
        flex: 1; /* メインエリアは残りの幅を全て使う */
        min-width: 0; /* 文字数が多い場合の崩れ防止 */
    }
    .news-sidebar {
        /* 幅を全体の約1/3（30%）に設定します */
        flex: 0 0 30%;
        width: 30%;
        margin-left: 40px; /* メインエリアとの間に隙間を空ける */
    }
}

.news-sidebar h3 { font-size: 16px; border-bottom: 2px solid #ffcc00; padding-bottom: 5px; margin: 0 0 15px 0; }
.news-sidebar ul { list-style: none; padding: 0; margin: 0; }
.news-sidebar li { border-bottom: 1px solid #eee; }
.news-sidebar a { display: block; padding: 10px 5px; text-decoration: none; color: #333; }
.news-sidebar a:hover { color: #0052cc; background-color: #eee; }


/* --- ⑦ お知らせリスト --- */
.news-list dl { display: flex; flex-direction: column; border-bottom: 1px dotted #ccc; padding: 15px 0; margin: 0; }
.news-list dt { font-weight: bold; color: #666; margin-bottom: 5px; font-size: 14px; }
.news-list dd { margin: 0; }
@media (min-width: 600px) { .news-list dl { flexDirection: row; align-items: baseline; } .news-list dt { width: 120px; flex-shrink: 0; margin-bottom: 0; } .news-list dd { flex-grow: 1; } }

/* --- ⑧ その他 --- */
h2 { border-left: 7px solid #ffcc00; border-bottom: 1px solid #ddd; padding: 5px 0 5px 15px; margin-bottom: 20px; font-size: 22px; }
.btn-orange { display: inline-block; background-color: #ffcc00; color: #333; padding: 15px 30px; text-decoration: none; border-radius: 30px; font-weight: bold; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.2s, opacity 0.2s; }
.btn-orange:hover { opacity: 0.9; transform: translateY(-2px); background-color: #ffdb4d; }
footer { background-color: #333; color: #ccc; padding-top: 40px; margin-top: auto; }
.footer-inner { max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap; padding: 0 20px 40px; gap: 20px; }
.footer-col { width: 100%; }
@media (min-width: 600px) { .footer-col { width: 45%; } }
@media (min-width: 900px) { .footer-col { width: 30%; } }
.footer-col h3 { color: white; border-bottom: 1px solid #555; padding-bottom: 10px; margin-bottom: 15px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #ccc; text-decoration: none; }
.copyright { background-color: #222; text-align: center; padding: 15px; font-size: 12px; }
.google-form-wrapper { position: relative; padding-bottom: 100%; height: 0; overflow: hidden; max-width: 100%; }
.google-form-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
/* ============================================================
   【スマホ専用の改行設定】
   PCでは改行せず、スマホ画面でのみ改行するための設定です。
   ※これを style.css の一番下に追加してください。
============================================================ */

/* 1. スマホ専用の改行タグ（普段は隠しておく） */
.sp-br {
    display: none;
}

/* 2. PC専用の表示（スマホでは隠す：スラッシュ「／」などを消すため） */
.pc-only {
    display: inline;
}

/* 3. スマホ（画面幅767px以下）の時のルール */
@media (max-width: 767px) {
    /* 改行を作動させる */
    .sp-br {
        display: block;
    }
    
    /* PC用の記号（／など）を消す */
    .pc-only {
        display: none;
    }
}