/* 
PC表示はwidth 1200px以上
それ未満をSP表示とする
タブレット表示などの中間はないものとする
*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
    color: #513F12;
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    overflow-x: hidden;
}

.pcnone {
    @media (min-width: 1200px) {
        display: none;
    }
}

.spnone {
    @media (max-width: 1199px) {
        display: none;
    }
}

.sponly {
    @media (min-width: 540px) {
        display: none;
    }
}

.circle {
    position: absolute;
    border-radius: 50%;
}

.color-orange {
    color: #FF8C00;
}

.button-blue {
    text-decoration: none;
    background-color: #1878CC;
    color: #fff !important;
    padding: 12px 36px;
    border-radius: 999px;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    &:not(:disabled):hover {
        transform: translateY(-3px);
    }
    &.main {
        display: block;
        padding: 1em 3em;
        margin: 0 auto;
        width: fit-content;
        min-width: 240px;
        border: 2px solid #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        &::after {
            content: "▶";
            margin-left: 0.5em;
        }
        &:not(:disabled):hover {
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
        }
    }
}

#mv {
    position: relative;
    z-index: 0;
    width: 100%;
    padding: 1rem 1rem 4rem;
    text-align: center;
    background-color: #FFF8E6;
    @media (max-width: 1199px) {
        padding: 0 0 40px 0;
    }

    .site-header {
        position: relative;
        margin: 0 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: #fff;
        border-radius: 999px;
        padding: 0 3rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        z-index: 3;
        @media (max-width: 1199px) {
            margin: 0;
            padding: 0.75rem 1rem;
            border-radius: 0;
            box-shadow: none;
        }

        .site-header__logo {
            max-height: 50px;
            width: auto;
            max-width: 50%;
        }

        .site-header__nav {
            display: flex;
            align-items: center;
            gap: 2.5rem;
            margin: 0.75rem 0;
            @media (max-width: 1199px) {
                gap: 0.75rem;
            }
            a {
                position: relative;
                color: #513F12;
                text-decoration: none;
                font-size: 16px;
                letter-spacing: 0.04em;
                font-weight: bold;
                white-space: nowrap;

                &::after {
                    content: "";
                    position: absolute;
                    left: 0;
                    bottom: -4px;
                    width: 100%;
                    height: 2px;
                    background: #513F12;
                    transform: scaleX(0);
                    transform-origin: left;
                    transition: transform 0.25s ease;
                    @media (max-width: 1199px) {
                        bottom: -1px;
                    }
                }

                &:hover::after {
                    transform: scaleX(1);
                }

                &.button-blue {
                    @media (max-width: 1199px) {
                        padding: 0.6rem 1.5rem;
                        font-size: 14px;
                    }
                    &::after {
                        content: none;
                    }
                }

                @media (max-width: 1199px) {
                    padding: 1rem 1.5rem;
                    text-align: left;
                    border-bottom: 1px solid #f0e6cc;
                }
            }

            .site-header__links {
                display: flex;
                align-items: center;
                gap: 2.5rem;
                @media (max-width: 1199px) {
                    position: absolute;
                    top: 100%;
                    left: 0;
                    width: 100%;
                    flex-direction: column;
                    align-items: stretch;
                    gap: 0;
                    background-color: #fff;
                    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
                    max-height: 0;
                    overflow: hidden;
                    opacity: 0;
                    transition: max-height 0.3s ease, opacity 0.3s ease;
                }
            }

            .hamburger {
                display: none;
                @media (max-width: 1199px) {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    gap: 5px;
                    width: 28px;
                    height: 28px;
                    padding: 0;
                    border: none;
                    background: none;
                    cursor: pointer;
                    flex-shrink: 0;

                    span {
                        display: block;
                        width: 22px;
                        height: 2px;
                        background-color: #513F12;
                        transition: transform 0.25s ease, opacity 0.25s ease;
                    }
                }
            }

            @media (max-width: 1199px) {
                &.is-open .site-header__links {
                    max-height: 400px;
                    opacity: 1;
                }

                &.is-open .hamburger span:nth-child(1) {
                    transform: translateY(7px) rotate(45deg);
                }

                &.is-open .hamburger span:nth-child(2) {
                    opacity: 0;
                }

                &.is-open .hamburger span:nth-child(3) {
                    transform: translateY(-7px) rotate(-45deg);
                }
            }
        }
    }

    > .circle {
        top: -230px;
        left: 66%;
        width: 841px;
        height: 841px;
        background-color: #FDC63C;
        z-index: -2;
        @media (max-width: 1199px) {
            top: unset;
            bottom: 100px;
            left: 66%;
            width: 400px;
            height: 400px;
        }
    }

    .kv {
        position: absolute;
        top: 130px;
        left: 53%;
        z-index: -1;
        @media (max-width: 1199px) {
            position: static;
            display: block;
            width: 70%;
            max-width: 320px;
            height: auto;
            margin: 0 auto 20px;
        }
    }

    .mv-overview {
        width: 100%;
        padding-right: 35%;
        @media (max-width: 1199px) {
            padding-right: 0;
        }
        > div {
            width: fit-content;
            margin: 5rem auto 0;
            position: relative;
            letter-spacing: 0.04em;
            @media (max-width: 1199px) {
                width: 100%;
            }
            > .mv-overview__badges {
                font-weight: 500;
                > img {
                    vertical-align: text-bottom;
                    margin-right: 4px;
                }
                > span.strong {
                    font-size: 32px;
                }
                > span.and {
                    font-size: 24px;
                }
            }

            > .mv-overview__lens {
                position: absolute;
                transform: translate(-20px, -30px);
                @media (max-width: 1199px) {
                    left: 50%;
                    transform: translate(-300px, -80px);
                }
                @media (max-width: 639px) {
                    display: none;
                }
                > img {
                    position: absolute;
                }
                > div {
                    font-weight: 500;
                    font-size: 20px;
                    position: absolute;
                    width: 98px;
                    height: 98px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    text-align: center;
                }
            }

            > .mv-overview__heading {
                font-size: 64px;
                font-weight: bold;
                .to {
                    font-size: 44px;
                }
            }

            > .mv-overview__lead {
                font-size: 20px;
                margin: 0.5em 1em 2em;
                @media (max-width: 1199px) {
                    margin-bottom: 20px;
                }
            }
        }
        > .button-blue {
            margin-bottom: 140px;
            @media (max-width: 1199px) {
                margin-bottom: 80px;
            }
        }
    }

    > #thanks {
        width: 80%;
        margin: 40px auto;
        padding: 40px 20px;
        background-color: #fff;
        border-radius: 40px;
        @media (max-width: 1199px) {
            width: 90%;
        }
        > div {
            align-items: center;
            margin-bottom: 30px;
        }
        > .thanks__title {
            color: #fdc63c;
            font-weight: bold;
            font-size: 64px;
        }
    }
}

#problem {
    width: 100%;
    margin-top: -50px;
    padding: 50px 0 250px;
    background-color: #DEEBF1;
    border-radius: 50px 50px 0 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;

    > .problem__label {
        color: #1878CC;
        font-size: 40px;
        font-weight: bold;
        margin-top: 50px;
        text-decoration: underline;
        text-decoration-thickness: 3px;
        text-underline-offset: 8px;
    }

    > .problem__heading {
        text-align: center;
        font-size: 24px;
        font-weight: 500;

        > .underline {
            font-size: 40px;
            font-weight: bold;
            position: relative;
            z-index: 0;
            display: inline-block;

            &::after {
                content: "";
                position: absolute;
                left: 0;
                bottom: -8px;
                width: 84%;
                margin: 0 8%;
                aspect-ratio: 277 / 23;
                background-image: url("/images/underline1.svg");
                background-repeat: no-repeat;
                background-size: 100% 100%;
                z-index: -1;
            }
        }
    }

    > .problem__list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 84%;
        margin: 50px auto 0;
        gap: 30px;
        @media (max-width: 1199px) {
            grid-template-columns: 1fr;
            gap: 80px;
        }

        > .problem__card {
            background-color: #fff;
            border-radius: 12px;
            display: grid;
            grid-template-rows: subgrid;
            grid-row: span 3;
            justify-items: center;
            text-align: center;
            padding: 30px;
            position: relative;
            gap: 12px;

            > .problem__card-badge {
                position: absolute;
                top: 0;
                left: 50%;
                transform: translate(-50%, -65%);
            }

            > .problem__card-image {
                margin: 30px 0;
            }

            > .problem__card-title {
                font-size: 20px;
                font-weight: bold;
                color: #1878CC;
                align-self: center;
                white-space: nowrap;
            }

            > .problem__card-text {
                text-align: left;
                font-size: 18px;
            }
        }
    }
}

.curve {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
}

#feature {
    position: relative;
    width: 100%;
    margin-top: -1px;
    background-color: #FFF8E6;

    > .feature__head {
        position: relative;
        z-index: 1;
        text-align: center;

        > .feature__head-label {
            color: #FF8C00;
            font-size: 40px;
            font-weight: bold;
            text-decoration: underline;
            text-decoration-thickness: 3px;
            text-underline-offset: 8px;
        }

        > .feature__head-body {
            > div {
                font-size: 24px;
                font-weight: 500;
                margin: 30px 0;
            }

            > .feature__head-title .underline {
                font-size: 40px;
                font-weight: bold;
                position: relative;
                z-index: 0;
                display: inline-block;

                &::after {
                    content: "";
                    position: absolute;
                    left: 0;
                    bottom: -8px;
                    width: 100%;
                    aspect-ratio: 186 / 24;
                    background-image: url("/images/underline2.svg");
                    background-repeat: no-repeat;
                    background-size: 100% 100%;
                    z-index: -1;
                }
            }

            > .feature__head-lead span {
                color: #FF8C00;
            }
        }
    }

    > .feature__points {
        display: flex;
        flex-direction: column;
        gap: 100px;
        margin-top: 100px;
        padding-bottom: 300px;

        > .feature__point {
            position: relative;
            width: 100%;
            display: flex;
            flex-direction: column;

            > .circle {
                top: auto;
                left: auto;
                bottom: 0;
                width: 500px;
                height: 500px;
                z-index: 0;
                background-color: #FDC63C;
                @media (max-width: 1199px) {
                    width: 400px;
                    height: 400px;
                }
            }

            > .feature__point-card {
                position: relative;
                z-index: 1;
                background-color: #fff;
                text-align: left;
                padding: 0 40px 40px;
                width: 90%;
                @media (max-width: 539px) {
                    padding: 0 20px 40px;
                }

                > div {
                    margin-bottom: 16px;
                }

                > .feature__point-number {
                    font-family: "Montserrat", sans-serif;
                    font-size: 64px;
                    font-weight: bold;
                    color: #FDC63C;
                }
                > .feature__point-title {
                    font-weight: bold;
                    font-size: 24px;

                    span {
                        color: #FF8C00;
                    }
                }
                > .feature__point-text {
                    font-size: 18px;
                    @media (min-width: 1200px) {
                        white-space: nowrap;
                    }
                }

                > img {
                    position: absolute;
                    bottom: 0;
                }
            }

            &:nth-child(1) {
                > .circle {
                    right: 0;
                    transform: translate(50%, -10%);
                }

                > .feature__point-card {
                    align-self: flex-start;
                    border-radius: 0 36px 36px 0;

                    > img {
                        right: 0;
                        transform: translate(50%, 50%);
                        @media (max-width: 1199px) {
                            transform: translate(25%, 75%);
                        }
                    }
                }
            }

            &:nth-child(2) {
                > .circle {
                    left: 0;
                    transform: translate(-50%, 0%);
                }

                > .feature__point-card {
                    align-self: flex-end;
                    border-radius: 36px 0 0 36px;

                    > img {
                        left: 0;
                        transform: translate(-50%, 50%);
                        @media (max-width: 1199px) {
                            transform: translate(-25%, 75%);
                        }
                    }
                }
            }

            &:nth-child(3) {
                > .circle {
                    right: 0;
                    transform: translate(50%, 0%);
                }

                > .feature__point-card {
                    align-self: flex-start;
                    border-radius: 0 36px 36px 0;

                    > img {
                        right: 0;
                        transform: translate(50%, 50%);
                    }
                }
            }
        }
    }
}

#cost {
    position: relative;
    width: 100%;
    margin-top: -1px;
    background-color: #FDC63C;
    text-align: center;

    > .cost__head {
        font-size: 24px;
        font-weight: 500;
        position: relative;
        z-index: 1;
        padding: 0 5%;

        > .cost__head-label {
            font-size: 40px;
            font-weight: bold;
            text-decoration: underline;
            text-decoration-thickness: 3px;
            text-underline-offset: 8px;
        }
        > .cost__head-title {
            margin: 40px 0;
            .underline {
                font-size: 40px;
                font-weight: bold;
                position: relative;
                z-index: 0;
                display: inline-block;

                &::after {
                    content: "";
                    position: absolute;
                    left: 0;
                    bottom: -8px;
                    width: 100%;
                    aspect-ratio: 206 / 25;
                    background-image: url("/images/underline3.svg");
                    background-repeat: no-repeat;
                    background-size: 100% 100%;
                    z-index: -1;
                }
            }
        }
    }

    > .cost__list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 84%;
        margin: 50px auto 0;
        padding-bottom: 200px;
        gap: 30px;
        position: relative;
        z-index: 1;
        @media (max-width: 1199px) {
            gap: 0;
            grid-template-columns: 1fr;
        }
        @media (max-width: 539px) {
            width: 100%;
        }

        > .cost__item {
            display: grid;
            grid-template-rows: subgrid;
            grid-row: span 3;
            position: relative;
            @media (max-width: 1199px) {
                gap: 30px;
            }

            > .cost__item-number {
                font-family: "Montserrat", sans-serif;
                background-color: #fff;
                border-radius: 999px 999px 0 0;
                color: #FF8C00;
                width: fit-content;
                margin: 0 auto;
                font-weight: bold;
                padding: 5px 30px 0;
                transform: translateY(85%);
                font-size: 28px;
            }
            > .cost__item-body {
                background-color: #fff;
                border-radius: 12px;
                padding: 45px;
                display: grid;
                grid-template-rows: subgrid;
                grid-row: span 2;
                gap: 12px;
                > .cost__item-title {
                    color: #FF8C00;
                    font-size: 20px;
                    font-weight: 500;
                    white-space: nowrap;
                }
                > .cost__item-text {
                    text-align: left;
                    font-size: 18px;
                }
            }
            &:first-child {
                > .cost__item-illustration {
                    position: absolute;
                    @media (min-width: 540px) {
                        transform: translate(-40%, 0%);
                    }
                }
            }
            &:last-child {
                > .cost__item-illustration {
                    position: absolute;
                    right: 0;
                    bottom: 0;
                    transform: translate(30%, 70%);
                    @media (max-width: 539px) {
                        transform: translate(0, 50%);
                    }
                }
            }
        }
    }

    .circle {
        background-color: #FFE299;
        z-index: 0;
        width: 300px;
        height: 300px;
        &:not(:last-child) {
            top: 25%;
            left: 68%;
        }
        &:last-child {
            top: 50%;
            left: 25%;
            @media (max-width: 1199px) {
                left: -25%;
            }
        }
    }
}

#faq-contact {
    width: 100%;
    margin-top: -50px;
    background-color: #FFF8E6;
    border-radius: 50px 50px 0 0;
    position: relative;
    padding-bottom: 80px;
}

.section-lead {
    color: #FF8C00;
    font-size: 24px;
    position: relative;
    display: inline-block;
    max-width: 80%;

    &::before,
    &::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 20px;
        aspect-ratio: 20 / 37;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        transform: translateY(-50%);
    }

    &::before {
        left: -32px;
        background-image: url("/images/decorationleft.svg");
    }

    &::after {
        right: -32px;
        background-image: url("/images/decorationright.svg");
    }
}

.faq {
    > .faq__head {
        text-align: center;
        padding: 80px 0 60px;
        > .faq__head-title {
            font-size: 32px;
            font-weight: bold;
        }
    }

    > .faq__list {
        width: 55%;
        margin: 0 auto;
        @media (max-width: 1199px) {
            width: 90%;
        }
        .faq-item {
            margin-bottom: 20px;
        }

        .faq-item__question,
        .faq-item__answer {
            position: relative;

            > img {
                position: absolute;
                top: 16px;
                left: 20px;
            }
        }

        .faq-item__question {
            padding: 20px 20px 20px 70px;
            background-color: #fff;
            border-radius: 10px;
            padding-right: 50px;
            cursor: default;
        }

        .faq-item__toggle {
            position: absolute;
            top: 50%;
            right: 20px;
            width: 20px;
            height: 20px;
            transform: translateY(-50%);

            &::before,
            &::after {
                content: "";
                position: absolute;
                top: 50%;
                left: 50%;
                background-color: #FF8C00;
                transform: translate(-50%, -50%);
                transition: transform 0.3s ease;
            }
            &::before {
                width: 100%;
                height: 2px;
            }
            &::after {
                width: 2px;
                height: 100%;
            }
        }

        .faq-item__answer {
            padding-left: 70px;
            padding-right: 20px;
            overflow: hidden;
            max-height: 0;
            padding-top: 0;
            padding-bottom: 0;
            opacity: 0;
            transition: max-height 0.3s ease, opacity 0.3s ease, padding-top 0.3s ease;
        }

        .faq-item.is-open {
            margin-bottom: 0;
            .faq-item__answer {
                max-height: 500px;
                padding-top: 20px;
                padding-bottom: 20px;
                opacity: 1;
            }
            .faq-item__toggle::after {
                transform: translate(-50%, -50%) scaleY(0);
            }
        }
    }
}

#contact {
    max-width: 60%;
    margin: 100px auto;
    padding: 100px 120px;
    background-color: #fff;
    border-radius: 20px;
    @media (max-width: 1199px) {
        max-width: 90%;
        padding: 80px 5%;
    }

    > .contact__head {
        text-align: center;
        margin-bottom: 80px;
        > .contact__head-title {
            font-size: 32px;
            font-weight: bold;
        }
    }

    > form {
        display: flex;
        flex-direction: column;
        gap: 24px;
        .form-row {
            > label {
                display: inline-flex;
                align-items: center;
                margin-bottom: 4px;
                .required {
                    color: #FF8C00;
                    font-size: 10px;
                    margin-right: 0.4em;
                    border-radius: 999px;
                    border: 1px solid #FF8C00;
                    padding: 0 8px;
                }
            }
        }

        input[type="text"],
        input[type="email"],
        input[type="tel"],
        select,
        textarea {
            width: 100%;
            padding: 0.6rem;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 1rem;
            background-color: #fff;
        }

        .error {
            color: #d00;
            font-size: 0.875rem;
            margin-top: 0.3rem;

            &:empty {
                display: none;
            }
        }

        .form-row--checkbox {
            text-align: center;

            p {
                font-size: 0.875rem;
                margin: 0 0 0.5rem;
            }

            label {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 0.5rem;
                font-size: 0.875rem;
                font-weight: normal;
                width: fit-content;
                margin: 0 auto;
            }

            input[type="checkbox"] {
                width: auto;
                flex-shrink: 0;
            }
        }

        button[type="submit"] {
            display: block;
            margin: 0 auto;
            padding: 0.75rem 2rem;
            background: #0b5fff;
            color: #fff;
            border: none;
            font-size: 1rem;
            cursor: pointer;

            &:disabled {
                background: #aaa;
                cursor: not-allowed;
            }
        }
    }
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #888;
    font-size: 0.875rem;
}

.footer-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logos img {
    max-width: 200px;
    height: auto;
}

.thanks {
    text-align: center;
    padding: 4rem 1rem;
}
