/* style.css */

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f1de;
    min-height: 100vh;
    position: relative;
}

.page-top-color {
    background-color: #90DA23; /* 緑に変更 */
    height: 10px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

.page-bottom-color {
    background-color: #00A7EC; /* 青に変更 */
    height: 10px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10;
}

#a-header .c-body.c-center {
    display: none;
}

nav {
    text-align: center;
    padding: 15px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* メニュー項目を中央に配置 */
}

nav ul li {
    margin: 0 15px;
}

nav ul li:last-child {
    margin-left: auto; /* 最後の要素（言語切り替えボタン）を右端に寄せる */
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

nav ul li a i {
    margin-right: 5px;
}

nav ul li .share-button {
    cursor: pointer;
    font-size: 1.2em;
    display: inline-flex;
    align-items: center;
}

nav ul li .share-button i {
    margin-right: 5px;
    color: white; /* シェアアイコンを白に */
}

nav ul li .share-button .share-text {
    color: white; /* シェアボタンの文字を白に */
}

nav ul li .language-button {
    background-color: #007bff; /* 青系の背景色に */
    color: white; /* 白文字に */
    border: none; /* 枠線をなくす */
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease; /* ホバー時のアニメーション */
}

nav ul li .language-button:hover {
    background-color: #0056b3; /* ホバー時の濃い青 */
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    /*aspect-ratio: 3 / 4; /* または 4 / 3 */
    /* ポートレートに合わせて固定幅になっている可能性があるので調整 */
    width: auto; /* または flex: 0 0 auto; など */
    margin-right: 50px; /* 必要に応じて */
    margin-bottom: 100px; /* 必要に応じて */
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: auto;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    border-radius: inherit;
    object-fit: contain; /* 比率を保ちつつ要素内に収める */
    user-select: none; /* テキスト選択を禁止 */
    -webkit-user-drag: none; /* ドラッグを禁止 (一部ブラウザ) */
}

.content-wrapper {
    max-width: 960px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding-bottom: 70px;
}

.gallery-title {
    font-size: 2.8em;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.gallery-description {
    color: #555;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

.gallery-info {
    text-align: center;
    color: #777;
    margin-top: 30px;
    line-height: 1.7;
}

.gallery-row {
    display: flex; /* 子要素を横並びにする */
    flex-wrap: wrap; /* 必要に応じて折り返す */
    justify-content: flex-start; /* 左寄せ */
}

.contact-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

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

.caution {
    font-size: 0.95em;
    color: #dc3545;
    margin-top: 15px;
}

footer#a-footer {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 10px 0;
    z-index: 20;
}

footer#a-footer .site_frame {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

footer#a-footer .g-column {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer#a-footer .column {
    flex: 1;
}

footer#a-footer .c-right {
    text-align: right;
}



/* レスポンシブ対応 */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li:last-child {
        margin-left: 0; /* モバイル表示では左端に戻す */
    }

    .gallery-item {
        margin-right: 20px; /* 必要に応じて */
        margin-bottom: 40px; /* 必要に応じて */
    }

    footer#a-footer .g-column {
        flex-direction: column;
        text-align: center;
    }

    footer#a-footer .c-right {
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .gallery-item {
        margin-right: 15px; /* 必要に応じて */
        margin-bottom: 30px; /* 必要に応じて */
    }

}