/* スキマ診断用のスタイル */

body {
    background-image: url("/wp/wp-content/themes/fantomsemi//images/dx_background_img.webp");
    background-size: cover;
    background-attachment: fixed;
}
body .site {
    max-width: 600px;
    margin: 50px auto;
    box-sizing: border-box;
}
body .site #main {
    background: #fff;
    padding: 20px;
}
.site-header,
.footer-area {
    display: none;
}
.site-content {
    margin: 0;
}
.dx_wrap {
    max-width: 600px;
    margin: 0 auto 50px;
    padding: 30px 0;
    color: #002060;
}
.dx_wrap .entry-header {
    margin-bottom: 30px;
}
.dx_content {
    padding: 10px;
}
.dx_title {
    border-bottom : 5px solid #d9d9d9;
    padding: 0 0 20px 0;
    font-size: 26px;
}
.dx_subtitle {
    margin-bottom: 40px;
    font-size: 20px;
    color: #7f7f7f;
    text-align: center;
}
.dx_subtitle.phase3 {
    background: #ed7d31;
    color: #fff;
    line-height: 2.2;
}
.dx_text {
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: bold;
}
.dx_btn_wrap {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 50px;
}
.dx_btn_wrap.phase_1-2 {
    grid-template-columns: 1fr 1fr;
}
.dx_select_btn {
    display: flex;
    background: #fff;
    border: 3px solid #d9d9d9;
    border-radius: 15px;
    width: 100%;
    height: 70px;
    font-size: 20px;
    color: #002060;
    font-weight: bold;
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}
.dx_select_btn:hover,
.dx_select_btn.active {
    background: #fff;
    border: 3px solid #002060;
    color: #002060;
    font-weight: bold;
}
.dx_select_btn > .fas {
    display: none;
    margin-right: 1rem;
    font-size: 1.7rem;
    color: #4472c4;
}
.dx_select_btn.active > .fas {
    display: flex;
    align-items: center;
    transition-property: display, opacity, height, padding-top;
    transition-behavior: allow-discrete;
    transition-duration: 0.3s;

    @starting-style {
        height: 0px;
        opacity: 0;
    }
}
.main_btn {
    width: 100%;
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}
.dx_select_btn.sub_btn {
    font-size: 18px;
}
.dx_button {
    background: #bfbfbf;
    border: none;
    border-radius: 50px;
    width: 100%;
    margin-bottom: 10px;
    font-size: 20px;
    color: #fff;
    line-height: 2;
    transition: all 0.3s;
}
.dx_button:hover {
    background: #bfbfbf;
    color: #fff;
}
.dx_button.active {
    background: #ed7d31;
    cursor: pointer;
}
.dx_button.copy {
    background: #fff;
    border: 1px solid #2d344b;
    margin: 5px 0 30px;
    color: #2d344b;
}
.phase_1-2 > .dx_select_btn {
    position: relative;
    display: block;
    border-radius: 30px;
    height: auto;
    padding: 10px;
    font-size: clamp(16px, 1.714px + 3.81vw, 20px);
}
.phase_1-2 > .dx_select_btn.active > .fas {
    position: absolute;
    display: block;
    top: 20px;
    left: 20px;
    font-size: 26px;
}
.phase_1-2 > .dx_select_btn > img {
    display: block;
    width: 35%;
    margin: 0 auto 20px;
}
.dx_breadcrumbs {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}
.dx_breadcrumbs > .txt_wrap {
    background: #e7e6e6;
    border-radius: 50px;
    padding: 10px 28px;
    font-size: clamp(16px, 9.333px + 1.778vw, 18px);
}
.dx_breadcrumbs .current {
    background: #dae3f3;
}
.dx_submit_btn_wrap {
    display: flex;
}
.dx_back {
    background: inherit;
    border: none;
    width: 150px;
    font-size: 20px;
    line-height: 2;
    text-align: left;
}
.dx_back:hover {
    background: inherit;
}
.dx_qa_wrap {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.dx_qa_wrap.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.dx_qa_wrap.exit-right {
    opacity: 0;
    transform: translateX(20px);
}
.dx_qa_wrap.exit-left {
    opacity: 0;
    transform: translateX(-20px);
}
.dx_question {
    margin-bottom: 50px;
    font-size: 22px;
    font-weight: bold;
}
.dx_question_num {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
}
.dx_answer_wrap {
    margin-bottom: 50px;
}
.dx_answer_button {
    width: 100%;
    border: none;
    border-radius: 60px;
    margin-bottom: 20px;
    padding: 10px 50px;
    font-size: clamp(18px, 3.714px + 3.81vw, 22px);
    text-align: left;
    color: #fff;
}
.dx_answer_button:hover {
    border: none;
    color: #fff;
    opacity: .7;
}
.dx_answer_button > span {
    display: flex;
    align-items: center;
}
.dx_answer_button > span::before {
    margin-right: 20px;
    font-size: 24px;
}
.dx_answer_button.yes {
    background: #00b050;
}
.dx_answer_button.yes > span::before{
    content: '〇';
}
.dx_answer_button.neither {
    background: #ffc000;
}
.dx_answer_button.neither > span::before{
    content: '△';
}
.dx_answer_button.no {
    background: #ff0000;
}
.dx_answer_button.no > span::before{
    content: '✕';
}

.dx_result {
    font-size: 18px;
}
.dx_step_result {
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}
.dx_step_result img {
    max-width: 250px;
}
.dx_step_result p {
    margin-bottom: 10px;
}
.dx_step_wrap {
    position: relative;
    font-size: 40px;
}
.dx_step_wrap .fas {
    position: absolute;
    top: 50%;
    margin-left: 20px;
    font-size: 30px;
    transform: translateY(-50%);
}
.dx_explanation_wrap  {
    margin-bottom: 50px;
    padding: 20px;
}
.dx_guide {
    position: relative;
    margin-bottom: 80px;
}
.dx_guide img {
    position: absolute;
    max-width: clamp(120px, 12.857px + 28.571vw, 150px);
    top: -15px;
    right: clamp(0px, -35.714px + 9.524vw, 10px);
}
.dx_arrow {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}
.dx_arrow span {
    margin-bottom: 10px;
    width: 0;
    height: 0;
    border-left: clamp(30px, -41.429px + 19.048vw, 50px) solid transparent;
    border-right: clamp(30px, -41.429px + 19.048vw, 50px) solid transparent;
    border-top: clamp(20px, -15.714px + 9.524vw, 30px) solid #002060;
}
.dx_balloon {
    position: relative;
    border: 1px solid #000;
    text-align: justify;
}
.dx_balloon::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 11%;
    border: 20px solid transparent;
    border-top: 20px solid #000;
    z-index: 2;
}
.dx_balloon::before {
    content: "";
    position: absolute;
    top: 100%;
    right: calc(11% + 1px);
    border: 19px solid transparent;
    border-top: 19px solid #fff;
    z-index: 3;
}
.dx_section_title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}
.dx_section_title span {
    background: #fff;
    padding: 10px 20px;
    z-index: 2;
}
.dx_section_title::before {
    position: absolute;
    content: "";
    background-color: #002060;
    height: 1px;
    width: 90%;
    z-index: 1;
}
.dx_section_title.next,
.dx_section_title.next::before {
    color: #595959;
}
.dx_recommend_wrap {
    display: flex;
    gap: 20px;
    flex-direction: column;
    margin-bottom: 100px;
}
.dx_box {
    border: 1px solid #dae3f3;
    width: 80%;
    margin: 0 auto;
    padding: 15px;
}
.dx_box_title_wrap {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-direction: column;
}
.dx_box_title_wrap img {
    width: 170px;
}
.dx_box_title {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 20px;
    font-weight: bold;
}
.dx_box_text {
    padding: 10px;
    color: #2d344b;
}
.dx_link_btn_wrap {
    text-align: right;
    line-height: 2;
}
.dx_link_btn_wrap .fa {
    margin-right: 10px;
    color: #ff1d1d;
}
.dx_link_btn {
    border: 1px solid #2d344b;
    border-radius: 5px;
    padding: 5px 10px 7px;
    font-size: 16px;
    color: #2d344b;
    text-decoration: none;
}
.dx_link_btn:hover {
    opacity: 0.7;
}
.dx_message {
    margin-bottom: 100px;
    text-align: center;
}
.dx_once_again {
    text-align: right;
}
.dx_once_again a {
    font-size: 16px;
    text-decoration: none;
    color: #2d344b;
}
.txt_center {
    text-align: center;
}
.txt_22 {
    font-size: 22px;
}
.sp_none {
    display: none;
}
@media screen and ( max-width: 479px ) {
    body .site {
        margin: 0;
    }
}
@media screen and ( min-width: 480px ) {
    body .site {
        border-radius: 30px;
    }
    .dx_breadcrumbs {
        flex-direction: row;
    }
    .dx_btn_wrap {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .dx_btn_wrap.phase_1-2 {
        padding: 0 10px;
    }
    .main_btn {
        grid-column: 1 / 4;
    }
    .phase_1-2 > .dx_select_btn {
        padding: 20px;
    }
    .phase_1-2 > .dx_select_btn.active > .fas {
        top: 30px;
        left: 30px;
        font-size: 32px;
    }
    .dx_box_title_wrap {
        flex-direction: row;
    }
    .dx_box_title {
        width: calc( 100% - 190px );
    }
    .sp_none {
        display: block;
    }
}

/* ローディングアニメーション */
.spinner-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    background: #fff;
    gap: 28px;
    border-radius: 12px;
    font-family: 'Helvetica Neue', 'Noto Sans JP', sans-serif;
}

.spinner {
    position: relative;
    width: 72px;
    height: 72px;
}

.spinner span {
    position: absolute;
    width: 10px;
    height: 22px;
    background: #0077b6;
    border-radius: 5px;
    left: 50%;
    top: 50%;
    transform-origin: center;
    animation: spinnerFade 1s linear infinite;
}

.spinner span:nth-child(1)  { transform: translate(-50%, -50%) rotate(0deg)   translateY(-26px); animation-delay: -0.875s; }
.spinner span:nth-child(2)  { transform: translate(-50%, -50%) rotate(45deg)  translateY(-26px); animation-delay: -0.75s; }
.spinner span:nth-child(3)  { transform: translate(-50%, -50%) rotate(90deg)  translateY(-26px); animation-delay: -0.625s; }
.spinner span:nth-child(4)  { transform: translate(-50%, -50%) rotate(135deg) translateY(-26px); animation-delay: -0.5s; }
.spinner span:nth-child(5)  { transform: translate(-50%, -50%) rotate(180deg) translateY(-26px); animation-delay: -0.375s; }
.spinner span:nth-child(6)  { transform: translate(-50%, -50%) rotate(225deg) translateY(-26px); animation-delay: -0.25s; }
.spinner span:nth-child(7)  { transform: translate(-50%, -50%) rotate(270deg) translateY(-26px); animation-delay: -0.125s; }
.spinner span:nth-child(8)  { transform: translate(-50%, -50%) rotate(315deg) translateY(-26px); animation-delay: 0s; }

@keyframes spinnerFade {
    0%   { opacity: 1; }
    100% { opacity: 0.1; }
}

.spinner-text {
    font-size: 18px;
    font-weight: 500;
    color: #0077b6;
    letter-spacing: 0.2em;
}