/* === グローバル設定 === */
/* === 全セクション共通の配置調整 === */
section {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    padding: 50px 0;
}

/* === 画像の中央配置 === */
.image-container {
    text-align: center;
    margin-top: 20px;
}

.image-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

/* === ヒーローセクション（全幅）=== */
.hero {
    width: 100%;
    padding: 40px 0;
    background-color: #3a2a1f;
    text-align: center;
}

.hero_header {
    font-size: 24px;
    color: #ffdd99;
    font-weight: bold;
}

/* === クリック可能な画像設定 === */
#clickableImage {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
    cursor: pointer;
}


/* === About, 縁起, 歴史セクション（余白をつける）=== */
.about,
.history,
.about-temple {
    width: 80%;
    max-width: 900px;
    margin: auto;
    text-align: justify;
}

/* === Parallax セクション（全幅） === */
.banner {
    width: 100%;
    background-color: #154AAE;
    background-image: url("../images/parallax.png");
    height: 400px;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.parallax {
    color: #FFFFFF;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.parallax_description {
    color: #FFFFFF;
    font-size: 18px;
    max-width: 600px;
    text-align: center;
    line-height: 1.5;
}

/* === 入会セクション（全幅）=== */
.footer_banner {
    width: 100%;
    background-color: #b3b3b3;
    padding: 40px 0;
    text-align: center;
    background-image: url("../images/pattern.png");
    background-repeat: repeat;
}

.footer_banner .hero_header {
    font-size: 24px;
    color: #222;
    font-weight: bold;
}

.disabled-button {
    background-color: #444;
    color: #aaa;
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    cursor: not-allowed;
    border-radius: 5px;
    margin-top: 20px;
}

/* === ギャラリーセクション（PC横並び、スマホ縦並び） === */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-bottom: 35px;
}

.gallery .thumbnail {
    width: 22%;
    min-width: 250px;
    text-align: center;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.gallery .thumbnail h1 {
    font-size: 20px;
    color: #ff4500;
}

.gallery .thumbnail h4 {
    font-size: 16px;
    color: #666;
}

.gallery .thumbnail p {
    font-size: 14px;
    color: #999;
}

/* === スマホ対応（レスポンシブ修正）=== */
@media (max-width: 768px) {

    /* ヒーロー、パララックス、入会セクションを全幅に */
    .hero,
    .banner,
    .footer_banner {
        width: 100%;
    }

    .hero_header {
        font-size: 22px;
    }

    .parallax {
        font-size: 22px;
    }

    .parallax_description {
        font-size: 16px;
        max-width: 90%;
    }

    .footer_banner {
        padding: 30px 15px;
    }

    .disabled-button {
        font-size: 16px;
        padding: 10px 20px;
    }

    /* About, 縁起, 歴史セクションの余白 */
    .about,
    .history,
    .about-temple {
        width: 90%;
    }

    /* ギャラリーを縦並びに */
    .gallery {
        flex-direction: column;
        align-items: center;
    }

    .gallery .thumbnail {
        width: 100%;
    }
}

/* === Contact セクションのレイアウト調整 === */
.contact-container {
    width: 80%;
    max-width: 800px;
    margin: auto;
    padding: 50px 0;
    text-align: left;
}

/* フォーム全体の調整 */
.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* フォームの各入力フィールド */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* 送信ボタンのスタイル */
.contact-form button {
    width: 100%;
    padding: 10px;
    background: #154AAE;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #0d3a82;
}

/* === スマホ対応（小さい画面でもバランスよく） === */
@media (max-width: 768px) {
    .contact-container {
        width: 90%;
        padding: 30px 0;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 8px;
    }

    .contact-form button {
        font-size: 14px;
        padding: 8px;
    }
}