

/* 全体的なスタイル */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

h1 {
    margin-bottom: 10px;
}

/* ギャラリーコンテナ */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* サムネイルのサイズ調整 */
    gap: 15px; /* サムネイル間のスペース */
    padding: 20px;
    max-width: 1200px; /* 最大幅 */
    margin: 20px auto; /* 中央寄せ */
}

/* 各ギャラリーアイテム（サムネイル） */
.gallery-item {
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer; /* クリックできることを示すカーソル */
    transition: transform 0.2s ease-in-out;
}

.gallery-item:hover {
    transform: translateY(-5px); /* ホバー時のエフェクト */
}

.gallery-item img {
    width: 100%;
    height: 150px; /* サムネイルの高さ固定 */
    object-fit: cover; /* 画像がはみ出さないように調整 */
    display: block;
}

/* モーダルウィンドウのスタイル */
.modal {
    display: none; /* 初期状態では非表示 */
    position: fixed; /* 画面に固定 */
    z-index: 1; /* 手前に表示 */
    padding-top: 60px; /* 上からの余白 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* コンテンツがはみ出したらスクロール */
    background-color: rgba(0,0,0,0.9); /* 半透明の黒背景 */
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh; /* 画面の高さの80%が最大 */
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* スマートフォン向けの調整 */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}
 /* ナビゲーションボタンコンテナ */
.navigation-buttons {
    display: flex;
    z-index: 1; /* 画像より手前に配置 */
}

.nav-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: rgba(60, 100, 60, 0.8); /* 少し透明感のある森の色 */
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 20px; /* 角を丸くして自然な感じに */
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.6); /* 白い縁取り */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.nav-button:hover {
    background-color: rgba(80, 120, 80, 0.9); /* ホバーで少し濃く */
    transform: translateY(-3px); /* 少し上に浮き上がる */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);