@charset "utf-8";

body {
    margin: 0;
    padding: 0;
    background-color: #302F30;
    background-image: url(../images/hotel-wallpaper-black.png);
    color: #F5F5F5;
    box-sizing: border-box;
    font-size: 14px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    text-align: left;
    line-height: 1.3;
}

img {
    width: 100%;
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    color: #F5F5F5;
    text-decoration: none;
    transition: 0.5s;
}

a:hover {
    transition: 0.5s;
    filter: drop-shadow(0px 0px 12px #fff);
}

button {
    /* rest */
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    outline: none;
}

.strong_color {
    color: #FF7171;
}

.site_wrapper,
.site_wrapper_result {
    width: 430px;
    min-height: 100dvh;
    background: #302F30;
    margin: 0 auto;
    position: relative;
    padding-top: 85px;
    z-index: 5;
    box-shadow: inset 0px 0px 4px #4a4a4a;
    overflow: hidden;
}

.site_wrapper:before {
    content: "";
    width: auto;
    height: 160px;
    aspect-ratio: 182 / 276;
    background: url(../images/mainframe_left.png);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.site_wrapper:after {
    content: "";
    width: auto;
    height: 160px;
    aspect-ratio: 182 / 276;
    background: url(../images/mainframe_right.png);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
}

.site_wrapper_result {
    padding-top: 50px;
}

.site_wrapper_result:before {
    content: "";
    background: url(../images/frame_parts02.png);
    width: 238px;
    height: 171px;
    display: flex;
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0 auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 0;
}

.page_title {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 2rem;
}

.page_title_border {
    border-bottom: 1px solid #FFECC4;
    padding: 0 5px 5px;
}

.section_title {
    margin: 0;
    text-align: center;
    font-size: 16px;
    margin-bottom: 15px;
}

.basic_card,
.shuffle_card {
    width: 180px;
    margin: 0 auto;
}

.basic_button {
    display: flex;
    justify-content: center;
}

.basic_button a {
    background: rgba(90, 121, 142, 0.9);
    padding: 15px 25px 15px 30px;
    border-radius: 50px;
    border: 1px solid #FFECC4;
    transition: 0.5s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #FFECC4;
}

.basic_button a:after {
    content: "";
    background: url(../images/arrow-right-circle-fill_be.svg);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
}

.basic_button a:hover {
    transition: 0.5s;
    box-shadow: 0 0 12px #ffffff;
}

.input_button {
    justify-content: center;
    background: rgba(90, 121, 142, 0.9);
    color: #FFECC4;
    padding: 15px 25px 15px 30px;
    border-radius: 50px;
    border: 1px solid #FFECC4;
    transition: 0.5s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 auto;
    font-weight: normal !important;
    font-size: 14px;
}

.input_button:after {
    content: "";
    background: url(../images/arrow-right-circle-fill_be.svg);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
}

.input_button:hover {
    transition: 0.5s;
    box-shadow: 0 0 12px #ffffff;
}




@media screen and (max-width: 600px) {

    .site_wrapper,
    .site_wrapper_result {
        width: 100%;
        box-shadow: none;
    }

}



/* index */

.opening_header {
    text-align: center;
    margin-bottom: 2rem;
}

.main_title {
    width: 50%;
    margin: 0 auto;
    padding: 0;
}

.main_title:after {
    content: "";
    background: url(../images/frame_parts01.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 41px;
    height: 20px;
    display: block;
    margin: 5px auto 25px;
}

.opening_cardbox {
    margin-bottom: 2rem;
}

.opening_cardbox {
    position: relative;
    width: 400px;
    height: 280px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin: auto;
    margin-top: 0;
}

.basic_card {
    position: absolute;
    width: 135px;
    height: 216px;
    transform-origin: bottom center;
    transition: transform 0.8s ease;
    left: -15px;
    right: 0;
}

/* 1枚目のカードのフェードインアニメーション */
.first_card {
    animation: fadeIn 0.8s forwards;
}

/* カードの回転アニメーション */
.rotating_card {
    animation: rotateCard 0.8s forwards;
}

/* アニメーションの定義 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateCard {
    from {
        opacity: 1;
        transform: translateY(20px) rotate(0deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotate(var(--rotation));
    }
}




/* shuffle page */

/* カード全体を含むコンテナ */
#shuffle_cardbox {
    width: 100%;
    height: 450px;
    /* コンテナを正方形に */
    position: relative;
    margin: 0;
    perspective: 1000px;
    /* overflow: hidden; */
    /* カードがコンテナからはみ出ないようにする */
    animation: cardFade 4s linear;
}

/* カードが中心を軸に回転する親要素 */
.shuffle_card {
    width: 100px;
    height: 160px;
    position: absolute;
    transform-origin: 50% 100%;
    /* 円の中心を設定 */
    animation: rotateAround linear infinite;
    /* 回転の速度をカードごとにランダムに */
}

/* カード自体のスタイルと回転する子要素 */
.shuffle_card img {
    width: 100%;
    height: 100%;
    background-size: cover;
    animation: spin linear infinite;
}

/* カードが中心を軸に回るアニメーション */
@keyframes rotateAround {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* カード自体が回転するアニメーション */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes cardFade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}



/* select page */

.select_page_wrap {
    padding-top: 85px;
}

.select_guide_txt {
    text-align: center;
    font-size: 12px;
    margin-bottom: 1rem;
    padding-top: 5%;
}

.select_cardbox {
    width: 94%;
    margin: 0 auto 1.5rem;
    z-index: 10;
    position: relative;
}

.select_cardbox_past,
.select_cardbox_present,
.select_cardbox_future {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0px;
}

.select_cardbox_past,
.select_cardbox_present {
    border-bottom: 1px dashed #F5F5F5;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.select_card_title {
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.select_card {
    width: 75px;
}

.selected_cardbox {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
    width: 75%;
    margin: 0 auto 1rem;
}

.selected_card {
    width: 70px;
    /* height: 122px; */
    aspect-ratio: 75 / 122;
    border: 1px dashed #FFECC4;
    border-radius: 4px;
    margin: 0 auto;
    box-sizing: border-box;
}

.selected_card.filled {
    border: none;
    /* 画像が入った時に点線を消す */
}

.selected_card_past,
.selected_card_present,
.selected_card_future {
    border-radius: 4px;
    padding: 4px 10px;
    color: #302F30;
    margin: 0 auto 0.5rem;
}

.selected_card_past {
    background: #BDCECA;
}

.selected_card_present {
    background: #DCD6B5;
}

.selected_card_future {
    background: #E2B4B4;
}

.selected_section {
    width: 94%;
    margin: 0 auto;
    border: 1px solid #FFECC4;
    border-radius: 4px;
    background: #d9d9d933;
    padding: 20px 10px 15px;
    box-sizing: border-box;
}

/* select_cardの画像の初期状態 */
.select_card img {
    opacity: 0;
    /* 最初は非表示 */
    transform: translateY(-30px);
    /* 30px上から開始 */
    transition: opacity 1s ease-in-out, transform .5s ease-in-out;
    /* フェードインと同時に移動 */
}

/* フェードインして所定の位置に止まる */
.select_card img.show {
    opacity: 1;
    /* フェードイン時に表示 */
    transform: translateY(0);
    /* 元の位置に戻る */
}

.selected_card img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.selected_card img.show {
    opacity: 1;
}

.selected_cardbox .show {
    opacity: 1;
    transition: opacity 1s ease;
    /* フェードインを2秒に設定 */
}

.select_card img {
    opacity: 0;
}



/* consultation */

.consultation_page_wrap {
    padding-top: 85px;
}

.consultation_guide_txt {
    text-align: center;
    font-size: 12px;
    margin-bottom: 1rem;
    padding-top: 5%;
}

.consultation_formbox {
    width: 94%;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.consultation_databox {
    margin-bottom: 1rem;
}

.consultation_formbox textarea {
    width: 100%;
    border: 1px solid #808E94;
    border-radius: 4px;
    background: #d9d9d933;
    color: #D9D9D9;
    padding: 8px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.3;
}

::placeholder {
    color: #d9d9d9a4;
}

.textarea_notice {
    display: block;
    text-align: right;
    font-size: 12px;
}

.selected_checkbox {
    width: 80%;
    margin: 0 auto 2rem;
}

.selected_card.selected_check {
    border: none;
    width: 80px;
}

.selected_card.selected_check img {
    opacity: 1;
}

.text_list {
    margin-top: 20px;
    margin-bottom: 20px;
    height: 175px;
    overflow: hidden;
    position: relative;
}

.text_list:before {
    content: "";
    background: linear-gradient(0deg, rgb(255 255 255 / 0%), rgb(48 47 48));
    background-size: cover;
    background-position: top;
    position: absolute;
    width: 100%;
    height: 25px;
    z-index: 100;
    top: 0;
}

.text_list:after {
    content: "";
    background: linear-gradient(0deg, rgb(48 47 48), rgb(255 255 255 / 0%));
    background-size: cover;
    background-position: bottom;
    position: absolute;
    width: 100%;
    height: 25px;
    z-index: 100;
    bottom: 0;
}

.text_list ul {
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    width: 88%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.text_list li {
    padding: 8px;
    margin: 4px 0;
    cursor: pointer;
    text-align: center;
    background: #fff;
    color: #A9AFB2;
    border-radius: 50px;
}

.text_list li:hover {
    background-color: #FBDE9D;
    color: #302F30;
}

.input_button.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.input_button {
    cursor: pointer;
    opacity: 1;
}

@keyframes infinity-scroll-top {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100%);
    }
}

.scroll-infinity__list--top {
    animation: infinity-scroll-top 20s infinite linear 0.2s both;
}




/* result */

.result_wrap {
    position: relative;
    width: 94%;
    margin: 0 auto 2rem;
    z-index: 100;
}

.result_main_title {
    font-size: 22px;
    text-align: center;
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, #fff1bb00 0%, #FFF1BB 50%, #fff1bd00 100%);
    border-image-slice: 1;
    margin: 0 0 2rem;
    padding: 0 0 10px;
}

.result_databox {
    background: rgba(217, 217, 217, 0.1);
    border: 1px solid #FFECC4;
    padding: 0;
    margin: 3rem 0;
}

.result_databox:before {
    background: url(../images/frame_parts_03.svg);
    content: "";
    width: 205px;
    height: 25px;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    margin: -22px auto 0;
}

.result_databox:after {
    background: url(../images/frame_parts_03.svg);
    content: "";
    width: 205px;
    height: 25px;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    margin: 0 auto -22px;
    transform: rotateX(180deg);
}

.result_databox_inner01,
.result_databox_inner02 {
    margin: 20px 10px;
}

.your_cards_result .selected_checkbox {
    width: 100%;
    margin: 0 auto 2rem;
}

.your_cards_result .selected_cardbox {
    gap: 5px 0;
}

.result_pr_txt {
    font-size: 16px;
    text-align: center;
    margin: 0 0 1rem;
}

.onayami_box {
    margin-bottom: 2rem;
}

.recombox_wrap {
    border: 1px solid #616161;
    background: rgba(217, 217, 217, 0.1);
    padding: 10px;
    margin-bottom: 1rem;
}

.recom_ft_infobox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 18px;
    margin-bottom: 1rem;
    border-bottom: 1px solid #616161;
}

.recom_ft_name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.recom_ft_tag {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ft_tags {
    background: rgba(245, 245, 245, 0.2);
    padding: 3px 5px;
    margin: 0;
    border-radius: 4px;
    color: #FFECC4;
    display: flex;
    align-items: center;
    gap: 3px;
}

.ft_tags:before {
    content: "";
    background: url(../images/tagmark.svg);
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
}

.recom_ft_image {
    position: relative;
    display: flex;
    justify-content: center;
}

.recom_ft_image:after {
    content: "";
    background: url(../images/stars.png);
    width: 65px;
    height: 15px;
    bottom: -7px;
    left: 0;
    right: 0;
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    left: 50%;
    transform: translateX(-50%);
}

.recom_ft_image img {
    border: 1px solid;
    border-image: linear-gradient(to right, #C68D1F, #FFF8EB, #E1B97A, #C68D1F);
    border-image-slice: 1;
}

.basic_buttonbox {
    width: 80%;
    margin: 0 auto;
}

.recom_ft_title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 12px;
}

.recom_ft_descbox,
.recom_ft_reviewbox {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #616161;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recom_ft_reviewbox {
    padding-bottom: 0.5rem;
    margin-bottom: 0;
    border-bottom: 0;
}

.recom_ft_desc,
.recom_ft_review{
    color: #F5F5F5;
    margin-bottom: 1rem;
}

.recom_ft_title:before {
    background: url(../images/frame_parts_05.svg);
    content: "";
    width: 56px;
    height: 13px;
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    padding: 0 5px 0 0;
}

.recom_ft_title:after {
    background: url(../images/frame_parts_05.svg);
    content: "";
    width: 56px;
    height: 13px;
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    transform: scale(-1, 1);
    padding: 0 0 0 5px;
}


/* 共通のCSSスタイル */
#recom_ft_desc1,
#recom_ft_review1,
#recom_ft_desc2,
#recom_ft_review2,
#recom_ft_desc3,
#recom_ft_review3,
#recom_ft_desc4,
#recom_ft_review4,
#recom_ft_desc5,
#recom_ft_review5,
#recom_ft_desc6,
#recom_ft_review6,
#recom_ft_desc7,
#recom_ft_review7 {
    overflow: hidden;
    max-height: 4.5em;
    /* 初期状態: 3行分の高さ */
    line-height: 1.5em;
    /* 1行の高さ */
    transition: max-height 0.5s ease;
    /* 開閉時のアニメーション */
}

#recom_ft_desc1.expanded,
#recom_ft_review1.expanded,
#recom_ft_desc2.expanded,
#recom_ft_review2.expanded,
#recom_ft_desc3.expanded,
#recom_ft_review3.expanded,
#recom_ft_desc4.expanded,
#recom_ft_review4.expanded,
#recom_ft_desc5.expanded,
#recom_ft_review5.expanded,
#recom_ft_desc6.expanded,
#recom_ft_review6.expanded,
#recom_ft_desc7.expanded,
#recom_ft_review7.expanded {
    max-height: none;
    /* 全文表示 */
}

.toggle-btn {
    margin: 0 auto;
    cursor: pointer;
    background: rgba(245, 245, 245, 0.2);
    color: #FFECC4;
    border: none;
    padding: 5px 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
}

#toggle-btn-desc1:after,
#toggle-btn-review1:after,
#toggle-btn-desc2:after,
#toggle-btn-review2:after,
#toggle-btn-desc3:after,
#toggle-btn-review3:after,
#toggle-btn-desc4:after,
#toggle-btn-review4:after,
#toggle-btn-desc5:after,
#toggle-btn-review5:after,
#toggle-btn-desc6:after,
#toggle-btn-review6:after,
#toggle-btn-desc7:after,
#toggle-btn-review7:after {
    content: "";
    background: url(../images/plus-circle-dotted.svg);
    width: 16px;
    height: 16px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
}

#toggle-btn-desc1.close:after,
#toggle-btn-review1.close:after,
#toggle-btn-desc2.close:after,
#toggle-btn-review2.close:after,
#toggle-btn-desc3.close:after,
#toggle-btn-review3.close:after,
#toggle-btn-desc4.close:after,
#toggle-btn-review4.close:after,
#toggle-btn-desc5.close:after,
#toggle-btn-review5.close:after,
#toggle-btn-desc6.close:after,
#toggle-btn-review6.close:after,
#toggle-btn-desc7.close:after,
#toggle-btn-review7.close:after, {
    content: "";
    background: url(../images/dash-circle-dotted.svg);
    width: 16px;
    height: 16px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
}

.result_databox_frame {
    position: relative;
}

/* 角の画像共通のスタイル */
.result_databox_frame .corner {
    position: absolute;
    width: 50px;
    /* 画像のサイズを調整 */
    height: 50px;
}

/* 左上 */
.result_databox_frame .top-left {
    top: -40px;
    left: -17px;
    transform: rotate(0deg);
}

/* 右上 */
.result_databox_frame .top-right {
    top: -40px;
    right: -17px;
    transform: rotate(90deg);
}

/* 左下 */
.result_databox_frame .bottom-left {
    bottom: -52px;
    left: -17px;
    transform: rotate(-90deg);
}

/* 右下 */
.result_databox_frame .bottom-right {
    bottom: -52px;
    right: -17px;
    transform: rotate(180deg);
}










.selected_card img {
    width: 180px;
    /* カードの幅 */
    /* カードの高さ */
    transition: transform 0.5s ease-in-out;
    /* 回転アニメーションのトランジション */
    backface-visibility: hidden;
    /* 裏面が見えないようにする */
}

.selected_card {
    position: relative;
    /* カードを重ねるための相対位置 */
    display: inline-block;
    /* インラインブロックで表示 */
}

.rotate {
    transform: rotateY(180deg);
    /* Y軸を中心に回転する */
    transition: transform 0.25s;
    /* 回転のアニメーション */
}

.rotate-180 {
    rotate: 180deg;
    /* X軸を中心に180度回転する */
    transition: none;
    /* アニメーションなし */
    /* backface-visibility: visible !important; */
}