/* 全体の設定 */
body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    line-height: 1.6;
}

/* ヘッダーの設定 */
.navbar {
    background-color: #4285f4; /* 画像に近い青色 */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
}

.nav-logo a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 30px;
    margin-right: 10px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.95rem;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* フッターの設定 */
.main-footer {
    background-color: #1a202c; /* 濃いグレー・黒系 */
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px; /* コンテンツとの間隔 */
    font-size: 0.9em;
}

/* モーダル背景（最初は隠しておく） */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8); /* 黒背景（透過） */
    overflow: auto;
}

/* モーダルの中の画像 */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    margin-top: 50px;
    animation: zoom 0.3s; /* ふわっと出すアニメーション */
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

/* 閉じるボタン */
.close-btn {
    position: absolute;
    top: 20px; right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#modal-caption {
    text-align: center;
    color: #ccc;
    padding: 10px;
}

/* メインコンテンツのレイアウト */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.map-area {
    flex: 1;
}

.info-area {
    flex: 1;
}

.responsive-img {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
}

.caption {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

.alert-text {
    color: #d93025;
    font-weight: bold;
}

.recruitment-box {
    margin-top: 30px;
    padding: 15px;
    border-top: 1px solid #eee;
}

/* スマホ対応：画面が狭いときは縦並びにする */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
    }
    .navbar {
        flex-direction: column;
        padding: 15px;
    }
    .nav-links {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links a {
        margin: 5px 10px;
    }
}

/* お知らせ全体の枠 */
.news-container {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden; /* 角丸からはみ出さないように */
}

/* 「お知らせ」の見出し */
.news-title {
    background-color: #333;
    color: #fff;
    margin: 0;
    padding: 8px 15px;
    font-size: 1rem;
}

/* スクロールする中身の箱 */
.news-scroll-box {
    height: 150px; /* ここで枠の「高さ」を固定します */
    overflow-y: scroll; /* 縦方向にスクロールバーを出す */
    padding: 10px 15px;
}

/* リストの見た目調整 */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start; /* 文章が長くなっても日付は上に固定 */
}

.news-list li:last-child {
    border-bottom: none;
}

/* 日付のデザイン */
.news-date {
    /* ✨ 日付の幅を固定して、文章の開始位置を揃える */
    flex: 0 0 90px; /* 90px分は必ず日付用に確保する */
    color: #888;
    font-weight: bold;
    font-size: 0.85rem;
    margin-right: 10px;
}

.rules-section {
    margin-top: 20px;
    padding: 10px 0;
    border-top: 1px solid #eee; /* 上に軽い仕切り線 */
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
}

.pdf-link:hover {
    text-decoration: underline;
}

.pdf-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.rules-link-text {
    font-size: 0.95rem;
}

/* スマホ（画面幅768px以下）の設定 */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column; /* 縦に並べる */
        align-items: center;    /* 中央に寄せる */
        padding: 10px;
    }

    .nav-links {
        flex-direction: column; /* メニュー項目も縦に並べる */
        width: 100%;            /* 横幅いっぱいにする */
        gap: 10px;              /* 項目ごとの隙間 */
        margin-top: 10px;       /* ロゴとの間の隙間 */
        text-align: center;
    }

    .nav-links a {
        display: block;         /* 1項目で1行使うようにする */
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 軽い仕切り線 */
    }
    
    .nav-links a:last-child {
        border-bottom: none;    /* 最後だけ線なし */
    }
}

/* style.css に追加 */
.version-info {
    font-size: 0.7rem;
    color: #999;
    text-align: right;
    margin-right: 10px;
}