@charset "utf-8";

/* =========================================================
     診断チャート
========================================================= */
#fragrance_chart_aria {
    width: 100%;
    text-align: center;
    /*min-height: 100vh;*/
    height: 0;
    padding-top: 200%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff url(../img/chart_bg_2.png) no-repeat center center / 100%;
    position: relative; 
    overflow: hidden; /* オーバーレイがはみ出さないように */
}
#fragrance_chart_box {
    width: 100%;
}

/* 診断スタート画面
--------------------------------------------------------- */
#fragrance_chart_aria .catch_text {
    color: #793e41;
    font-size: 24px;
}

#fragrance_chart_aria #chart_start h2 {
    margin-bottom: 30px;
}

#fragrance_chart_aria #chart_start h2 img {
    width: 75%;
}

#fragrance_chart_aria .button_box {
}

#fragrance_chart_aria .chart_text_box {
    font-weight: normal;
}

/* 茶色いスタートボタン */
#fragrance_chart_aria .chart_start_button {
    border: none;
    background: #793e41;
    color: #fff;
    text-align: center;
    width: 280px;
    height: 60px;
    font-weight: bold;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0.02em;
    margin: 10px auto 20px;
    cursor: pointer;
}

#fragrance_chart_aria .chart_start_button:hover {
    opacity: 0.7;
    transition: 0.5s;
}
#fragrance_chart_aria .chart_start_button.end_button {
    margin: 20px auto 0px;
}

.button_inner {
    position: relative;
    z-index: 1;
}
.chart_end_shop {
    font-weight: normal;
    margin-top: 11px;
    display: inline-block;
    color: #793e41;
    text-decoration: underline;
    text-underline-offset: 10px;
    padding-bottom: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}
/* 診断設問
--------------------------------------------------------- */
#fragrance_chart_aria .chart_qa_box {
    padding: 0 40px;
}
#fragrance_chart_aria .chart_qa_box .qa_text p {
    font-size: 22px;
    color: #793e41;
    font-weight: normal;
    line-height: 1.5;
}
/* ボタン */
#fragrance_chart_aria .qa_button_box {
    margin-top: 30px;
}
#fragrance_chart_aria .chart_button {
    width: 280px;
    height: 60px;
    font-weight: normal;
    letter-spacing: 0.12em;
    font-size: 22px;
    border: none;
    background: #793e41;
    color: #fff;
    border-radius: 100px;
    cursor: pointer;
}
#fragrance_chart_aria .chart_button.yes_button {
    background: #cc0d45;
    margin-bottom: 15px;
}
#fragrance_chart_aria .chart_button.no_button {
    background: #0f4277;
}
#fragrance_chart_aria .chart_button.yes_button:hover {
    opacity: 0.7;
    transition: 0.5s;
}
#fragrance_chart_aria .chart_button.no_button:hover {
    opacity: 0.7;
    transition: 0.5s;
}

/* フェードイン・フェードアウト用CSS */
#fragrance_chart_aria .chart_item {
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out; /* visibilityも加えた */
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 2; /* オーバーレイより手前に表示 */
}

#fragrance_chart_aria .chart_item.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#fragrance_chart_aria .chart_item.no_active {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ホワイトアウトオーバーレイのスタイル */
#whiteout_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* 白い背景 */
    z-index: 5; /* chart_itemよりも手前に表示 */
    opacity: 0; /* 初期は非表示 */
    visibility: hidden; /* 初期は非表示 */
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s; /* フェードイン0.3s、その後visibility hidden */
}

#whiteout_overlay.active {
    opacity: 1; /* フェードイン */
    visibility: visible;
    transition: opacity 0.3s ease-in-out; /* フェードアウト時はvisibility即時 */
}

/* ========================================
     768px
======================================== */
@media screen and (max-width:480px){
    #fragrance_chart_aria {
        background-size: 110%;
    }
}