@charset "UTF-8";

/* 共通　ほとんどの場合で入れたいタグ指示 */

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Shippori Mincho", serif;
    color: #333;
    position: relative;
    z-index: 0;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("../img/onsen_zentaihaikei_pc.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.3;
    /* ←ここで薄くする */

    z-index: -100;
    pointer-events: none;
    /* ←クリック邪魔しない */
}

body p {
    line-height: 1.5rem;
    margin-bottom: 50px;
    box-sizing: border-box;

}

img {
    max-width: 100%;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    display: inline-block;
}

button {
    display: block;
    margin: 80px auto 80px;
    background-color: #FFD19A;
    padding: 10px 50px;
    font-size: 1.5rem;
    border-radius: 5px;
}

.room-fv {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

.fs16 {
    font-size: 1rem;
}

.fs32 {
    font-size: 2rem;
}

.fs48 {
    font-size: 3rem;
}


.room-wrapper {
    max-width: 1040px;
    margin: auto;
}

.room-ahombus {
    width: 7%;
    display: block;
    margin: 50px auto 0 auto;
}

.section-title-r,
.section-title-l {
    text-align: center;
    margin-bottom: 10px;
}

.section-title-r-2,
.section-title-l-2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 10px;
    margin-top: 150px;
}

.room-h3 {
    background-color: #628646;
    padding: 10px 50px;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}

.room-h4 {
    margin-bottom: 20px;
    text-align: center;
}





/* ===== アニメーション発火 ===== */
.js-animate.show .title {
    opacity: 1;
    transform: translateY(0);
}

.js-animate.show .room-line {
    transform: scaleX(1);
}

.js-animate.show .room-line-w {
    transform: scaleX(1);
}

.js-animate.show {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}





/* ===== 左パターン ===== */
.room-title-l .room-line {
    margin-right: auto;
    margin-right: calc(50% - 50vw);
    transform-origin: left;
}

/* ===== 右パターン ===== */
.room-title-r .room-line {
    margin-left: auto;
    margin-right: calc(50% - 50vw);
    transform-origin: right;
}


.room-line {
    height: 1px;
    width: 70vw;
    margin-left: calc(50% - 50vw);
    background: #696969;

    transform: scaleX(0);
    transition: transform 1s ease;
    margin-bottom: 20px;
}

.room-line-w {
    height: 1px;
    width: 70vw;
    margin-left: calc(50% - 50vw);
    background: #e7f6e9;

    transform: scaleX(0);
    transform-origin: left;
    /* ←これ追加 */
    transition: transform 1s ease;

    margin-bottom: 20px;
}









/* ウェルカムスイーツ
------------------------------- */
.room-hero {
    background-image: url(../img/room_bg_1.png);
    background-size: cover;
    background-position: center bottom;
    padding: 50px 0 150px;
    /* 高さ調整 */
}

.room-hero p {
    margin-top: 30px;
}

/* 中央寄せ */
.room-inner2 {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
    color: #fff;
}

.room-sweet {
    width: 100vw;
    margin-top: 40px;
    box-shadow: #333 0 0 10px;

}

.room-sweet ul {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.room-sweet li {
    width: 100%;
    flex: 1;
}

.room-sweet-text {
    margin-bottom: 240px;
}




/* 客室タイプ
------------------------------- */
.room-type {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.room-type img {
    margin-bottom: 300px;
}

.room-bgcolor {
    background-color: rgba(98, 134, 70, 0.15);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 50px 0;
}

.room-inner {
    max-width: 1040px;
    margin: 0 auto;
}


.room-zoom {
    display: flex;
    width: 70%;
    gap: 10px;
    margin: auto;
    /* 余白 */
}

.room-zoom img {
    flex: 1;
    /* ←これが超重要 */
    width: 15%;
    /* 念のため */
    display: block;
    margin-bottom: 80px;
    margin-top: 10px;
}







/* 基本情報
------------------------------ */

.room-detail {
    display: flex;
    gap: 40px;
}

.room-basic {
    width: 50%;
    border-right: 1px solid #ccc;
    padding-right: 40px;
}

.room-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.room-detail .room-basic,
.room-detail .room-right {
    flex: 1;
    box-sizing: border-box;
}

.room-table th {
    padding: 10px 150px 10px 0;
    text-align: left;
}

.room-table th,
.room-table td {
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
}


.room-equipment ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 2列 */
    gap: 12px;
    padding: 0;
}

.room-equipment li {
    list-style: none;
    border: 1px solid #333;
    /* ←線だけ */
    padding: 10px;
    text-align: center;
}






/* java　ふんわり出現させる
------------------------------- */
.fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s, transform 1s;
}

.fade.active {
    opacity: 1;
    transform: translateY(0px);
}










/* java　自動スクロール
------------------------------- */
.marqueer,
.marqueer2 {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    /* 中央基準から全幅に広げる */
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.marqueer ul {
    display: flex;
    margin: 0;
    padding: 0;
    width: max-content;
}

.marqueer ul li {
    /* padding: 0 5px; */
    /* 余白 */
    width: calc(100vw / 3 - 10px);
    /* 3 写真の枚数にあわせる */
}

.marqueer img {
    display: block;
    width: 100%;
}




.marqueer2 ul {
    display: flex;
    margin: 0;
    padding: 0;
    width: max-content;
    white-space: nowrap;
}

.marqueer2 ul li {
    /* 余白 */
    width: calc(100vw / 3 - 10px);
    /* 3 写真の枚数にあわせる */
    flex-shrink: 0;
}

.marqueer2 img {
    display: block;
    width: 100%;
}




/* 画像のポップアップ
----------------------------- */

#modal-container {
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, .6);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;

    /* フェード用 */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 表示状態 */
#modal-container.active {
    display: block;
    opacity: 1;
}

/* ===== 画像のアニメーション ===== */
#modal-container img {
    max-width: 50vw;
    max-height: 50vh;
    width: auto;
    height: auto;

    /* 初期状態（ちょい小さい＋透明） */
    transform: scale(0.9);
    opacity: 0;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

#modal-container>div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* 表示時 */
#modal-container.active img {
    transform: scale(1);
    opacity: 1;
}




.event-font {
    font-size: 2.5rem;
    margin-top: 280px;
    color: #fff;
    display: inline-block;
    justify-content: center;
    text-shadow: 0 0 7px #f2a936;
}


.bamboo {
    background-color: #295d30;
    width: 574px;
    text-align: center;
}







@media (max-width:800px) {

    .section-title-r,
    .section-title-l,
    .section-title-l-2,
    .section-title-r-2,
    .room-h3 {
        font-size: 2.5rem;
    }

    .room-h4 {
        font-size: 1.5rem;
    }

    .room-wrapper p {
        padding: 0 20px;
    }

    .room-ahombus {
        width: 10%;
    }

    .room-type {
        flex-direction: column;
        padding: 0 20px;
        align-items: center;
    }

    .room-type img {
        margin-bottom: 10px;
        display: block;
    }

    .room-bgcolor {
        margin-top: 100px;
    }

    .room-detail {
        flex-direction: column;
    }

    .room-basic,
    .room-right {
        width: 100%;
        margin: auto;
        padding: 0 20px;
    }

    .room-basic {
        border-right: none;
        margin: 0 auto;
        /* ←中央寄せ */
    }

    .room-table {
        width: 100%;
        /* ←横いっぱい */
        max-width: 500px;
        /* ←広がりすぎ防止（調整OK） */
        margin: 0 auto;
    }

}


/* フッター */

footer {
    background-image: url(../img/footerbg.webp);

}