/* --- ポップアップ機能のためのCSS --- */

/* h4にカーソルを合わせたときにクリックできることを示す */
.report_text_wrap h4 {
    /* Assuming this is inside #report_wrapper */
    cursor: pointer;
}

/* ポップアップの元画像はページ上では非表示にする */
.report_popup_img {
    display: none;
}

#report_image_popup {
    /* 常にflexを指定しておく */
    display: flex;

    /* アニメーションの設定 */
    opacity: 0;
    /* 初期状態は透明 */
    visibility: hidden;
    /* 操作もできなくする */
    transition:
        opacity 0.3s,
        visibility 0.3s;
    /* 0.3秒かけて変化させる */

    /* --- 以下は変更なし --- */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* 表示させるためのクラス */
#report_image_popup.is_visible {
    opacity: 1;
    /* 透明度を100%にする */
    visibility: visible;
    /* 操作可能にする */
}

/* ポップアップが表示されたときのスタイル */

/* 画像を囲むコンテナ */
.report_popup_content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.report_popup_content .report_popup_area_img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.report_popup_close {
    position: fixed;
    top: 60px;
    right: 20px;
    width: min(14vw, 40px);
    cursor: pointer;
}

.custom-popup-overlay .close-btn {
    top: 60px;
}

#report_wrapper .note_top {
    font-size: 0.5em;
    vertical-align: super;
}

#report_wrapper .flex__tabContents .flex__content {
    border-radius: 0;
}

#report_wrapper .report_head {
    text-align: center;
    font-weight: 600;
    font-size: var(--font-2xl);
}

#report_wrapper .report_info_area {
    border: 1px solid var(--theme_color);
    border-radius: 15px;
    overflow: hidden;
    margin: 5% 0;
}

#report_wrapper .report_info_area h3 {
    text-align: center;
    background-color: var(--theme_color);
    color: #fff;
    padding: 2% 0;
    font-size: var(--font-xl);
    font-weight: 500;
}

#report_wrapper .report_info_area p {
    padding: 5%;
    font-size: var(--font-l);
}

#report_wrapper .flex__tab .tab__item.active a {
    color: #fff;
    background-color: var(--theme_color);
}

#report_wrapper .flex__tab .tab__item a {
    color: var(--theme_color);
    background-color: #fff;
    border-radius: unset;
    border: 2px solid var(--theme_color);
    font-size: var(--font-l);
    display: block;
    line-height: 1.2;
}

#report_wrapper .tab__item span {
    font-size: var(--font-xl);
}

#report_wrapper .flex__tab .tab__item {
    width: 49%;
}

#report_wrapper .flex__tab {
    justify-content: space-between;
    margin: 0 -1rem;
    padding: 1rem;
    background-color: #f2f2f2;
}

#report_wrapper .flex__tab .tab__item:not(:first-child) {
    border-left: none;
}

#report_wrapper .flex__tabContents h3 {
    font-size: var(--font-xl);
    text-align: center;
    font-weight: 600;
}

#report_wrapper .colBox > .col .img {
    overflow: unset;
    border-radius: unset;
}

#report_wrapper .loupe_block img {
    background-color: unset;
    width: 5%;
    object-fit: contain;
}

#report_wrapper .loupe_block {
    display: flex;
    align-items: center;
    margin: 1% 0;
}

#report_wrapper .colBox {
    margin: 0.5rem auto 0px;
    width: 85%;
}

#report_wrapper .report_text_area_wrap {
    padding: 0 1rem;
}

#report_wrapper .flex__content.active {
    padding: 5% 0;
    margin: 0 -1rem;
}

#report_wrapper .report_text_area {
    margin: 20px auto;
}

#report_wrapper .report_text_wrap {
    display: flex;
    align-items: center;
    background-color: var(--theme_color);
    border: 2px solid var(--theme_color);
    font-size: var(--font-l);
    font-weight: bold;
}

#report_wrapper .report_num {
    color: #ffffff;
    font-weight: bold;
    padding: 0px 5%;
}

#report_wrapper .report_text_wrap h4 {
    background-color: #ffffff;
    flex-grow: 1;
    margin: 0;
    padding: 1% 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#report_wrapper .report_text_wrap h4::after {
    content: "•••";
    color: var(--theme_color);
    font-weight: bold;
    letter-spacing: 3px;
}

#report_wrapper .report_text_area p {
    margin-top: 10px;
    padding-left: 5px;
    font-size: var(--font-l);
}

#report_wrapper .report_img_wrapper {
    margin-bottom: 5%;
}

.not_necessary_report_wrapper .note_top {
    font-size: 0.5em;
    vertical-align: super;
}

/* Media Query for #report_wrapper */
@media (min-width: 768px) {
    #report_wrapper .flex__content.active {
        margin: 0 0rem;
    }

    #report_wrapper .flex__tab {
        margin: 0 0rem;
        padding: 2rem 7.5% 1rem 7.5%;
    }

    #report_wrapper .report_text_area_wrap {
        padding: 0 7.5%;
    }

    .report_popup_close {
        width: min(14vw, 60px);
    }

    #report_wrapper .flex__tab .tab__item a {
        padding: 20px 5px;
    }

    section#report_wrapper {
        padding: 0;
    }
}

.not_necessary_report_wrapper {
    background-color: #fff0dc;
    border-radius: 20px;
    padding: 3%;
    width: 90%;
    margin: auto;
    border: 2px solid var(--theme_color);
    margin-bottom: 0;
}

.not_necessary_report_wrapper .bottom_block .text_red {
    font-weight: 600;
}

.not_necessary_report_wrapper .top_block {
    position: relative;
}

.not_necessary_report_wrapper .top_block img {
    position: absolute;
    width: 44%;
    left: 89%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.not_necessary_report_wrapper .top_block .text_red {
    font-weight: bold;
    background: linear-gradient(to top, yellow 50%, transparent -70%);
    -webkit-text-stroke: initial !important;
    text-stroke: initial !important;
}

.not_necessary_report_wrapper .top_text,
.not_necessary_report_wrapper .b_text {
    font-size: var(--font-2xl);
    font-weight: 500;
}

.not_necessary_report_wrapper .bottom_block {
    font-size: var(--font-l);
}

.not_necessary_report_wrapper .caution_block {
    font-size: var(--font-m);
}

.not_necessary_report_wrapper .top_text_flex {
    position: relative;
    padding-left: 8%;
    paint-order: markers stroke fill;
    -webkit-text-stroke: 7px #fff1dc;
    text-stroke: 7px #fff1dc;
}

.not_necessary_report_wrapper .top_text_flex p::before {
    content: "◎";
    position: absolute;
    left: 0%;
    color: var(--theme_color);
}

.not_necessary_report_wrapper .b_text span {
    font-size: min(5vw, 40px);
}

.not_necessary_report_wrapper .b_text {
    text-align: center;
    color: #fff;
    background-color: var(--theme_color);
    border-radius: 5em;
    margin: 7% 0;
}

/* メディアクエリも通常のCSS形式で記述 */
@media (max-width: 767px) {
    .not_necessary_report_wrapper .b_text span {
        font-size: 8.5vw;
        font-weight: 900;
    }

    .not_necessary_report_wrapper .top_block img {
        left: 80%;
    }
}

@media (min-width: 767px) {
    .not_necessary_report_wrapper .top_block img {
        width: 15vw;
        max-width: 200px;
    }
}

.report_head span,
.text_red {
    color: var(--theme_color);
}
