body {
    background-color: #e6f7e6; /* やさしい薄緑 */
    font-family: "Yu Gothic", sans-serif;
    line-height: 1.8;
    margin: 10px 40px;
}

h1 {
    font-size: 1.8em;
    color: #2e4d2e; /* 濃い緑で文字をやさしく */
    margin-bottom: 0.2em;
}

h2 {
    font-size: 1.3em;
    color: #3a6b3a; /* 見出しを少し濃い緑に */
    margin-top: 10px;
    border-left: 6px solid #8fd18f; /* 薄めのアクセント緑 */
    padding-left: 10px;
}

.nav-link {
    font-size: 1em;
    font-weight: bold;
    color: #2a8f2a; /* リンクをやさしい緑に */
    text-decoration: none;
    margin-left: 10px;
}

.nav-link:hover {
    text-decoration: underline;
}

.content {
    font-size: 1.1em;
    margin-top: 20px;
    color: #3b533b; /* 文章を読みやすい濃い緑 */
}

img {
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* ギャラリー全体 */
.gallery {
    display: flex;
    flex-wrap: wrap;           /* 複数行に折り返す */
    gap: 10px;                 /* 画像間の余白 */
    justify-content: center;   /* 中央寄せ */
    margin-top: 20px;
}

/* ギャラリー内の画像（基本は300px） */
.gallery img {
    width: 100%;              /* 幅は親に合わせる */
    max-width: 300px;         /* 最大幅300pxで揃える */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* レスポンシブ対応：中サイズ以上の画面 */
@media (min-width: 600px) {
    .gallery img {
        flex: 1 1 calc(50% - 10px); /* 2列表示（gap分を引く） */
        /*max-width: 950px;*/
        max-width: none;             /* 制限解除 */
    }
}

/* 大きい画面 */
@media (min-width: 900px) {
    .gallery img {
        flex: 1 1 calc(33.33% - 10px); /* 3列表示 */
    }
}

/* 戻る */
.back-link:hover {
    text-decoration: underline;
}

.back-link {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    color: #3a6b3a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-decoration: none;
    z-index: 1000;
}