:root {
    --space_extraSmall: 16px; /* 16px */
    --space_small: 32px; /* 32px */
    --space_medium: 48px; /* 48px */
    --space_large: 64px; /* 64px */
    --space_extraLarge: 96px; /* 96px */

    --color_white: #FFFFFF;
    --color_gray: #E5E5E5;
    --color_black: #1F1F1F;
    --color_blue: #103DC5;
    --color_yellow: #FFE100;
    --color_red: #DA2C12;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(1rem, 1.083rem + -0.17vw, 0.875rem);
    color: var(--color_black);
}

img {
    display: block;
    max-width: 100%;
    width: 100%;
}

section {
    padding-block: 96px;
}

.wrapper {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 30px;
}

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

.title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--color_blue);
    font-weight: 900;
}

/* ヒーローセクション
-------------------------- */
.hero {
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.hero h1 {
    flex: 1;
}

.hero-img {
    display: block;
    min-width: 1200px;
}

/* CTA
---------------------------- */
.cta-btn {
    display: block;
    margin-inline: auto;
    width: clamp(610px, 51.04vw, 980px);
}

/* こんなお悩みセクション
---------------------------- */
.problem {
    background-color: var(--color_gray);
    padding-bottom: 0;
}

.problem-title {
    color: var(--color_black);
}

.problem-list {
    list-style: none;
    gap: var(--space_extraSmall);
    margin-top: var(--space_extraLarge);
    display: grid;
    grid-template-columns: repeat(4, 281px);
}

@media(max-width: 1300px) {
    .problem-list {
        grid-template-columns: repeat(2, 281px);
    }
}

.problem-list-item {
    background-color: var(--color_white);
    background-image: url(../img/problem_check.svg);
    background-position: left 54.5% top 16%;
    background-size: 23.84%;
    padding: 5em 0 1.75em;
    border: 0.175em solid #3E3D3D;
    border-radius: 1.5em;
    white-space: nowrap;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
}

.problem-solution {
    padding-top: 317px;
    padding-bottom: var(--space_extraLarge);
    background-color: var(--color_yellow);
    margin-top: 40px;
    position: relative;
}

.problem-solution::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 210px;
    background-color: var(--color_gray);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.problem-solution::after {
    content: "";
    background-image: url(../img/problem_woman.webp);
    background-position: center top 10px;
    background-size: 100%;
    display: block;
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 270px;
    aspect-ratio: 79/90;
}

.problem-solution-inner {
    background-color: var(--color_white);
    text-align: center;
    border-radius: 16px;
    padding: 48px 25px 48px;
    font-size: 1.25rem;
}

.problem-solution-title span {
    white-space: nowrap;
}

.problem-solution-text {
    margin-top: 20px;
    line-height: 2;
    word-break: keep-all;
}

/* 3つの理由セクション
---------------------------------- */
.reason {
    background-color: #C4ECFC;
    background-image: url(../img/reason_cloud.svg), url(../img/reason_cloud.svg), url(../img/reason_cloud.svg);
    background-position: left 15% top 50px, right 10% top -35px, right 20% top 160px;
    background-size: max(200px, 14.27vw), max(190px, 13.23vw), max(150px, 9.38vw);
}

.reason .title {
    position: relative;
    width: fit-content;
    margin-inline: auto;
}

.reason-sub-title {
    font-size: 1.875rem;
    font-weight: bold;
}

.reason-sub-title span {
    position: relative;
}

.reason-sub-title span::before {
    content: "";
    background-image: url(../img/reason_subtitle_L.svg);
    background-size: 100%;
    display: block;
    width: 54px;
    aspect-ratio: 6/5;
    position: absolute;
    left: -62px;
    top: 0;
}

.reason-sub-title span::after {
    content: "";
    background-image: url(../img/reason_subtitle_R.svg);
    background-size: 100%;
    display: block;
    width: 54px;
    aspect-ratio: 6/5;
    position: absolute;
    right: -62px;
    top: 0;
}

.reason-title {
    margin-top: -1.125rem;
}

.reason-title-large {
    font-size: 6.625rem;
}

.reason-title-medium {
    font-size: 3.313rem;
}

.reason .flex {
    gap: var(--space_small);
    margin-top: 22px;
}

.reason-point-box {
    width: 27.4%;
    max-width: 384px;
    padding: 0 min(32px, var(--space_small)) min(32px, var(--space_small));
    background-color: var(--color_white);
    border-radius: 8px;
    border: 3px solid var(--color_blue);
    position: relative;
}

.reason-point-box:last-of-type::before {
    content: "";
    display: block;
    width: clamp(175px, 15vw, 249px);
    aspect-ratio: 83/77;
    background-image: url(../img/reason_woman.webp);
    background-size: 100%;
    position: absolute;
    left: 0;
    top: -3px;
    transform: translateY(-100%);
}

.reason-point {
    background-color: var(--color_blue);
    color: var(--color_white);
    text-align: center;
    padding: 0 16.67% 2.5px;
    width: fit-content;
    margin-inline: auto;
    border-radius: 0 0 24px 24px;
    font-size: 0.938rem;
    font-weight: bold;
}

.reason-point span {
    font-size: 1.5rem;
}

.reason-point-box img {
    width: auto;
    height: 80px;
    width: fit-content;
    margin: 20px auto;
}

.reason-point-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.375rem;
    color: var(--color_blue);
}

/* お申し込み手順
------------------------------ */
.flow-title {
    position: relative;
    width: fit-content;
    margin-inline: auto;
}

.flow-title::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(../img/flow_title_dec.webp);
    background-size: 100%;
    width: 150px;
    aspect-ratio: 150/73;
    transform: translate(-60%, -70%);
}

.flow .flex {
    gap: var(--space_small);
}

.flow-step-box {
    flex: 1;
    max-width: 282px;
    position: relative;
}

.flow-step-box::after {
    content: url(../img/flow_step_arrow.svg);
    position: absolute;
    top: 40%;
    right: min(-26px, -14%);
}

.flow-step-box:last-of-type:after {
    content: none;
}

.flow-step-title {
    text-align: center;
    color: var(--color_blue);
    margin-block: var(--space_extraSmall);
}

.flow-step-inner {
    padding-left: 12%;
    word-break: break-all;
}

/* よくあるご質問
----------------------------- */
/* ブラウザ標準の三角アイコンを消す */
summary {
	display: block;
}
 
summary::-webkit-details-marker {
	display: none;
}

.faq {
    background-color: #EFEFEF;
}

.flow .title,
.faq .title,
.form .title {
    margin-bottom: var(--space_medium);
}

.faq-box {
    padding: 32px 1.4% 32px max(45px, 4.5%);
    background-color: var(--color_white);
    margin-bottom: var(--space_extraSmall);
    border-radius: 8px;
}

.faq-question {
    color: var(--color_blue);
    font-size: 1.25rem;
    font-weight: bold;
    position: relative;
    cursor: pointer;
    background-image: url(../img/faq_open.svg);
    background-position: right center;
    background-size: 18px;
    padding-right: 1rem;
}

.faq-box[open] .faq-question {
    background-image: url(../img/faq_close.svg);
}

.faq-question::before,
.faq-answer::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: -0.5rem;
    transform: translate(-100%, -50%);
    background-image: url(../img/faq_question.svg);
    background-size: 100%;
    width: 25px;
    aspect-ratio: 1;
}

.faq-answer {
    margin-top: 32px;
    position: relative;
    padding-right: 1rem;
}

.faq-answer::before {
    top: 0;
    transform: translate(-100%, 10%);
    background-image: url(../img/faq_answer.svg);
}

/* 今すぐ無料相談
-------------------------------------- */
.cta-area {
    background-color: var(--color_yellow);
    text-align: center;
    font-size: 1.875rem;
    font-weight: bold;
    position: relative;
}

.cta-area::before,
.cta-area::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 150px;
    background-color: var(--color_white);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.cta-area::after {
    left: 0;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.cta-area-large {
    font-size: 3.875rem;
    font-weight: 900;
    color: var(--color_blue);
}

.cta-area-image {
    margin-block: 40px;
    width: 272px;
    margin-inline: auto;
}

/* 申し込みフォーム
------------------------------- */
.form {
    background-color: #EFEFEF;
}

.form input,
.form textarea,
.form select {
    background-color: var(--color_white);
    padding: 1rem;
    width: 100%;
    border-radius: 8px;
}

.form textarea {
    min-height: 10em;
    resize: vertical;
}

.form dl {
    display: grid;
    grid-template-columns: 13em 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form dl dt {
    text-align: right;
    padding-top: 1em;
    font-weight: bold;
}

.form dl dt::after {
    content: "任意";
    color: var(--color_white);
    background-color: var(--color_black);
    border-radius: 8px;
    padding: 2px 8px;
    margin-left: 8px;
    font-size: 0.875rem;
}

.form dl dd {
    min-height: 1em;
}

.form dl.req dt::after {
    content: "必須";
    background-color: var(--color_red);
}

.form .name-wrap,
.form .birthday-wrap .row,
.form .birthday-wrap .row div {
    display: flex;
    gap: 1rem;
}

.form .birthday-wrap .row {
    flex-wrap: wrap;
}

.form .name-wrap span,
.form .birthday-wrap span {
    flex: 1;
}

.form .birthday-wrap span {
    max-width: 6em;
    min-width: 6em;
    width: 6em;
}

.form .birthday-wrap .row > span:first-of-type {
    max-width: 12em;
    min-width: 12em;
    width: 12em;
}

.form .name-wrap input {
    width: calc(100% - 1.5em);
    margin-left: 0.27em;
}

.form .birthday-wrap select {
    width: calc(100% - 1.5em);
    margin-right: 0.27em;
}

.form *:has(>select) {
    position: relative;
}

.form *:has(>select)::after {
    content: "";
    display: block;
    width: 0.5rem;
    aspect-ratio: 1;
    border-bottom: 2px solid var(--color_black);
    border-right: 2px solid var(--color_black);
    position: absolute;
    top: 50%;
    right: 1rem;
    rotate: 45deg;
    transform: translate(-50%, -50%);
}

.form .birthday-wrap *:has(>select)::after {
    right: 2rem;
}

.form .check {
    width: fit-content;
    margin-inline: auto;
}

.form .chk_checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: bold;
}

.form .chk_checkbox input[type="checkbox"] {
    width: 1.875rem;
    height: 1.875rem;
    aspect-ratio: 1;
    accent-color: var(--color_blue);
}

.form-note {
    margin-top: 42px;
}

.form-note p {
    margin-bottom: 1em;
    padding-left: 1em;
    text-indent: -1em;
}

.form .caption {
    margin-top: 0.5rem;
}

.form em {
    font-style: normal;
    color: var(--color_red);
    margin-top: 0.5rem;
}

.form #your_postnum {
    width: 9em;
}

.form .err {
    background-color: var(--color_red);
    color: var(--color_white);
    font-weight: bold;
    padding: 0.5rem 1rem;
    display: block;
    width: fit-content;
    margin-top: 0.5rem;
    border-radius: 8px;
}

.form .name-wrap .err {
    margin-left: 1.5em;
}

.form .birthday-wrap .err {
    max-width: none;
    width: fit-content;
}

.send_btn {
    display: block;
    width: fit-content;
    padding: 2rem 6rem;
    border: 3px solid var(--color_blue);
    background-color: var(--color_yellow);
    color: var(--color_blue);
    text-decoration: none;
    margin-inline: auto;
    margin-top: 70px;
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--color_blue);
    font-size: 2rem;
    font-weight: 600;
}

/* フッター
-------------------------------- */
footer {
    text-align: center;
    background-color: var(--color_blue);
    color: var(--color_white);
}

footer .flex {
    gap: 1rem;
    list-style: none;
    padding-block: 64px;
}

footer a {
    color: var(--color_white);
    text-decoration: none;
}

.footer-copy {
    padding-block: 16px;
    border-top: 1px solid var(--color_white);
}

/* =======================================
お問い合わせ内容確認
======================================= */
.confirm {
    background-color: #EFEFEF;
    padding-top: 64px;
    padding-bottom: 96px;
}

.confirm .wrapper {
    width: fit-content;
    min-width: 800px;
    margin-inline: auto;
}

.confirm .form dt {
    padding-top: 0;
}

.back_btn {
    background-color: var(--color_gray);
    border-color: var(--color_black);
    color: var(--color_black);
    box-shadow: 4px 4px 0 var(--color_black);
}

@media(max-width: 768px) {
    .flex {
        flex-direction: column;
    }

    .wrapper {
        max-width: 500px;
    }

    section {
        padding-block: var(--space_medium)
    }

    .hero-img {
        min-width: auto;
    }

    .cta-btn {
        width: 100%;
    }

    .title {
        font-size: 1.5rem;
    }
    
    .problem-list {
        grid-template-columns: repeat(2, 1fr);
        max-width: 470px;
        margin-inline: auto;
        margin-top: var(--space_small);
    }

    .problem-list-item {
        font-size: clamp(0.6875rem, 3vw, 1rem);
        background-size: min(55px, 25%);
    }

    .problem-solution {
        padding-top: 196px;
        padding-bottom: var(--space_medium);
    }

    .problem-solution::before {
        height: 50px;
    }

    .problem-solution::after {
        top: -20px;
        width: 190px;
    }

    .problem-solution-text {
        font-size: 1rem;
    }

    .problem-solution-inner {
        padding: var(--space_small) 10px;
    }

    .reason {
        background-image: url(../img/reason_cloud.svg), url(../img/reason_cloud.svg);
        background-position: left -40% top 100px, right -26% top 155px;
        background-size: max(180px, 14.27vw), max(160px, 13.23vw);
    }

    .reason-sub-title {
        font-size: 1.5rem;
    }

    .reason-point-box {
        width: 100%;
        margin-inline: auto;
    }

    .reason-title {
        font-size: 2rem;
    }

    .reason-title-large {
        font-size: 5.5rem;
    }

    .reason-title-medium {
        font-size: 2.5rem;
    }

    .reason-point-title {
        font-size: 1.25rem;
    }

    .reason-point-box:last-of-type::before {
        content: none;
    }

    .reason-point-box:first-of-type {
        margin-top: calc(clamp(175px, 15vw, 249px) - 40px);
    }

    .reason-point-box:first-of-type::before {
        content: "";
        display: block;
        width: clamp(175px, 15vw, 249px);
        aspect-ratio: 83 / 77;
        background-image: url(../img/reason_woman.webp);
        background-size: 100%;
        position: absolute;
        left: 50%;
        top: -3px;
        transform: translate(-50%, -100%);
    }

    .flow .title {
        margin-bottom: 0;
    }

    .flow-title::before {
        width: 100px;
    }

    .flow .flex {
        margin-top: 20px;
        text-align: center;
        align-items: center;
    }

    .flow-step-box {
        max-width: 300px;
    }

    .flow-step-box::after {
        content: url(../img/flow_step_arrow.svg);
        position: absolute;
        top: auto;
        right: 50%;
        bottom: -40px;
        rotate: 90deg;
        transform: translateY(-50%);
    }

    .flow-step-title {
        margin-block: 8px
    }

    .flow-step-inner p {
        font-size: 0.875rem;
    }

    .faq-question {
        font-size: 1rem;
    }

    .cta-area {
        font-size: 1.25rem;
        word-break: keep-all;
    }

    .cta-area-large {
        font-size: 2.5rem;
    }

    .cta-area::before,
    .cta-area::after {
        height: 50px;
    }

    .form dl {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .form dl dt {
        text-align: left;
    }

    .form input,
    .form textarea,
    .form select {
        padding: 0.5rem;
    }

    .form .chk_checkbox {
        font-size: 1rem;
    }

    .send_btn {
        font-size: 1.25rem;
        margin-top: 1.5rem;
        width: 100%;
        text-align: center;
    }

    .form-note {
        margin-top: 2rem;
        font-size: 0.875rem;
    }

    .form .caption {
        font-size: 0.875rem;
    }

    .form .check .err {
        margin-left: 2rem;
    }

    footer {
        font-size: 0.875rem;
    }

    .confirm .wrapper {
        min-width: auto;
    }
}

/* モーダルウィンドウ */
.modal_bg {
    display: none;
    top: 0;
    left: 0;
    z-index: 1200;
    width: 100%;
    height: 100%;
    position: fixed;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
}

.modal_bg.active {
    display: flex;
}

.modal_cont {
    background: var(--color_white);
    padding: 2rem;
    display: none;
    width: 90vw;
    max-width: 800px;
    border-radius: 8px;
}

.modal_cont.active {
    display: block;
}

.modal_cont p,
.modal_cont ul li {
    line-height: 1.8;
    font-size: 0.86rem;
}

.modal_cont h3 {
    color: var(--color_blue);
    margin-bottom: 1rem;
    text-align: center;
}

.modal_cont .close {
    margin-top: 2rem;
    background: var(--color_blue);
    color: var(--color_white);
    display: block;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
}