.reserve-btn {
    padding: 10px 20px;
    background-color: #a8895b;
    color: white;
    border-radius: 5px;
}

img {
    max-width: 100%;
}

.top-section {
    margin-top: 100px;
}

.top-content {
    flex-direction: row-reverse;
}

.middle-section {
    background-color: #cfc1b2ff;
}


/* セクションのスタイル */
.top-section,
.middle-section {
    display: flex;
    justify-content: space-between;
    padding: 40px;
    /* padding-top: 150px; */
    flex-wrap: wrap;
}

.content-wrapper {
    display: flex;
    /* 文字と画像を上揃えに */
    width: 100%;
}


.ex-section h2 {
    font-size: 24px;
    color: #6f645c;
}

.ex-section p {
    font-size: 16px;
    color: #333;
    margin-top: 20px;
    /* 文字の上に余白を追加 */
}

.image-section {
    flex: 1;
}

.image-large {

    width: 100%;
    position: relative;
    height: auto;
}

.img-small {
    transform: translate(-50%, -50%);
    width: 60%;
    /* 小さい画像の大きさを設定 */
    top: 70%;
    /* 位置を微調整 */
    /* 位置を正確に中央に揃える */
    z-index: 2;
    /* 小さい画像を前面に表示 */
    position: absolute;
}

.img-small-top {
    left: 100%;
    /* 位置を微調整 */
}

.img-small-second {
    right: 40%;
    /* 位置を微調整 */
}


/* 横線のスタイル */
.custom-hr {
    border: none;
    margin-top: 20px;
    border-top: dashed 5px rgb(25, 6, 6);
    height: 1px;
    width: 100%;
}

/* 画像ギャラリーのスタイル */
.image-gallery {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
}

.image-item {
    width: 30%;
    background-color: #f0f0f0;
    margin-bottom: 20px;
    /* 画像の下に余白を追加 */
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ギャラリーセクション */
.gallery-section {
    background-color: #f8f5f1;
    padding: 40px;
    overflow-x: auto;
}

.scroll-gallery {
    display: flex;
    gap: 20px;
}

.gallery-item {
    width: 200px;
    height: 150px;
    background-color: #f0f0f0;
    border: 2px solid #d3ccc7;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .ex-section {
        position: relative;

        z-index: 1;
        /* 画像の下に文字が隠れないように */
        margin-left: 100px;
        /* 必要に応じて左右のマージンを調整 */
        max-width: 45%;
        /* テキストエリアの幅を画像とのバランスに合わせて調整 */
        margin-left: 50px;
        /* 必要に応じてマージンを調整 */
        margin-right: 50px;
        /* 必要に応じて右側の余白も調整 */

    }

    .ex-section h2 {
        position: relative;
        top: -10px;
        /* 見出しを上に移動 */
        margin-bottom: 10px;
    }

    .image-section {
        position: relative;
        display: flex;
        justify-content: center;
        z-index: 0;
        margin-right: 50px;
        /* 画像と端の間に余白を作る */
    }

    .img-small {
        /* 大きい画像の上に重ねる */
        transform: translate(-50%, -50%);
    }

    .content-wrapper {
        gap: 50px;
        justify-content: space-between;
        align-items: flex-start;
    }



    .second-text {
        /* margin-left: 100px; 説明文をさらに右に寄せる */
        margin-top: 100px;
        padding-right: 150px;
    }

    .top-text {
        margin-left: 100px;
        /* 説明文をさらに右に寄せる */
        margin-top: 100px;
    }

    .veiw_item h2 {
        margin-left: 100px;
        /* margin-right: 100px; 説明文を右に寄せる */
    }
    
}

/* --- レスポンシブ対応 --- */

/* スマホサイズ対応 */
@media (max-width: 991px) {

    .top-section,
    .middle-section {
        padding: 20px;
    }

    .image-large {
        max-width: 70%;
        height: auto;
        left: -50px;
    }

    .scroll-gallery {
        gap: 5px;
    }

    .gallery-item {
        width: 150px;
        height: 100px;
    }

    .ex-section {
        display: flex;
        flex-direction: column;
        /* Stack elements vertically */
        align-items: center;
        /* Center the content horizontally */
        text-align: center;
        /* Center the text */
    }

    .ex-section h2 {
        margin-bottom: 10px;
        /* Add some space between heading and paragraph */
        font-size: 20px;
        /* Optionally, adjust the font size for smaller screens */
    }

    .ex-section p {
        font-size: 14px;
        /* Adjust font size for paragraph for better readability */
    }

    /* Ensure images stack vertically as well */
    .image-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .image-large {
        width: 100%;
        /* Allow the image to take full width */
        margin-top: 20px;
        /* Add space above the image */
    }

    .content-wrapper {
        flex-direction: column;
    }

    .lage-second{
        left: 50px;
    }
}