/*--------------------
　買い手向けページ　
--------------------*/
/*---------- 買い手/売り手向けページ MV ----------*/
.forBuySellMv {
    padding-block-start: 110px;
    padding-block-end: 40px;

    @media screen and (max-width: 999px) {
        padding-block-start: 100px;
        overflow: hidden;
    }
}

.forBuySellMv__textImageWrapper {
    @media screen and (max-width: 999px) {
        padding-block-end: 60px;
    }
}

.forBuySellMv__text {
    width: 52%;
    position: absolute;
    left: 8%;
    top: 60px;
    z-index: 100;

    @media screen and (max-width: 999px) {
        width: 100%;
        max-width: 100%;
        padding-inline-start: 30px;
        position: inherit;
        left: inherit;
        top: inherit;
    }
}

.forBuySellMv__target {
    display: inline;
    position: relative;

    &::after {
        content: "";
        position: absolute;
        top: -11px;
        right: -20px;
        width: 100vw;
        height: 40px;
        border-radius: 20px;
    }

    &.forBuy {
        &::after {
            border: 1px solid var(--wp--preset--color--orange);
        }
    }

    &.forSell {
        &::after {
            border: 1px solid var(--wp--preset--color--navy);
        }
    }
}

.forBuySellMv__subTitle {
    margin-block-start: 50px;

    @media screen and (max-width: 999px) {
        margin-block-start: 30px;
    }
}

.forBuySellMv__title {
    font-size: 4.5vw;
    line-height: 1.2;
    margin-block-start: 10px;

    @media screen and (max-width: 999px) {
        font-size: 14vw;
    }

    &.forBuy {
        text-shadow: 0 0 10px var(--wp--preset--color--gray-white);

        .fontColor {
            color: var(--wp--preset--color--orange);
        }
    }

    &.forSell {
        text-shadow: none;

        .fontColor {
            color: var(--wp--preset--color--navy);
            position: relative;
            z-index: 0;

            &::before {
                content: "“えらべる”";
                position: absolute;
                z-index: -1;
                color: var(--wp--preset--color--navy);
                -webkit-text-stroke: 6px var(--wp--preset--color--gray-white);

                @media screen and (max-width: 999px) {
                    top: inherit;
                }
            }
        }
    }


}

.forBuySellMv__lead {
    font-size: clamp(15px, 1vw, 20px);
    margin-block-start: 40px;

    @media screen and (max-width: 999px) {
        line-height: var(--wp--custom--typography--line-height--loose);
        padding-block-start: 0;
        margin: 0;
    }
}

.forBuySellMv__img {
    display: flex;
    justify-content: flex-end;
    min-width: 100vw;
    margin: 0;
    position: relative;
    box-sizing: border-box;
    z-index: 0;

    @media screen and (max-width: 999px) {
        padding-inline-start: 20px;
        transform: translateY(-20px);
    }

    img {
        width: 56%;

        @media screen and (max-width: 999px) {
            width: 100%;
        }
    }
}

.forBuySellMv__ctaWrapper {
    color: var(--wp--preset--color--white);
    position: absolute;
    right: 8%;
    bottom: -100px;
    width: 240px;
    height: 240px;
    margin: 0;
    border-radius: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    @media screen and (max-width: 999px) {
        right: 0;
        bottom: 20px;
        transform: translateX(8%);
        width: 190px;
        height: 190px;
    }

    &.forBuy {
        background-color: var(--wp--preset--color--green);
        box-shadow: 0px 4px 12px rgba(74, 100, 73, 0.5);
    }

    &.forSell {
        background-color: var(--wp--preset--color--orange);
        box-shadow: 0px 4px 12px rgba(34, 23, 57, 0.3);
    }
}

.forBuySellMv__ctaFree {
    padding-block: 4px;
    padding-inline: 12px;
    border: 1px solid var(--wp--preset--color--white);
    border-radius: 4px;

    @media screen and (max-width: 999px) {
        padding-block: 3px;
        padding-inline: 10px;
    }
}

.forBuySellMv__ctaTitle {
    margin-block-start: 10px;

    @media screen and (max-width: 999px) {
        margin-block-start: 4px;
    }
}

.forBuySellMv__ctaButton {
    margin-block-start: 12px;

    @media screen and (max-width: 999px) {
        margin-block-start: 8px;
    }

    .wp-block-button__link {
        padding-block: 12px;
        padding-inline: 28px;

        @media screen and (max-width: 999px) {
            padding-block: 8px;
            padding-inline: 24px;
        }
    }
}

.forBuySellMv__ctaArrow {
    display: flex;
    align-items: center;
    column-gap: 8px;
    margin-block-start: 12px;

    @media screen and (max-width: 999px) {
        margin-block-start: 8px;
    }

    img {
        width: 21px;
        height: 24px;
        object-fit: contain;

        @media screen and (max-width: 999px) {
            width: 20px;
            height: 20px;
        }
    }
}

/*メニュー*/
.forBuySellMv__menuWrapper {
    margin-block-start: 50px;
    column-gap: 40px;

    @media screen and (max-width: 999px) {
        max-width: 300px;
        margin-block-start: 80px;
        flex-wrap: wrap;
        column-gap: 10px;
        row-gap: 20px;
    }
}

.forBuySellMv__menu {
    position: relative;

    @media screen and (max-width: 999px) {
        width: 130px;
    }

    .wp-block-button {
        width: 100%;

        .wp-block-button__link {
            padding-block-start: 0;
            padding-block-end: 16px;
            padding-inline: 0;

            &::after {
                content: "";
                position: absolute;
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
                width: 44px;
                height: 10px;
                background-image: url(/wp-content/themes/eraberu-renovation/assets/images/for-buy-sell-mv-menu-arrow.png);
                background-size: contain;
                background-repeat: no-repeat;
            }
        }
    }
}

/*---------- 買い手/売り手向けページ Issue ----------*/
.forBuySellIssue__mainImg {
    margin-block-start: 40px;
}

.forBuySellIssue__merit {
    margin-block-start: 100px;

    @media screen and (max-width: 999px) {
        margin-block-start: 80px;
    }

    .has-heading-2-font-size {
        background: linear-gradient(180deg, transparent 0%, transparent 70%, rgba(215, 123, 0, 0.25) 70%, rgba(215, 123, 0, 0.25)100%);
    }

    &.forSell {
        .has-heading-2-font-size {
            background: linear-gradient(180deg, transparent 0%, transparent 70%, rgba(0, 68, 124, 0.25) 70%, rgba(0, 68, 124, 0.25)100%);
        }
    }
}

.forBuySellIssue__meritContents {
    margin-block-start: 60px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 30px;
    row-gap: 30px;

    @media screen and (max-width: 999px) {
        column-gap: inherit;
        margin-block-start: 40px;
        row-gap: 40px;
    }
}

.forBuySellIssue__meritContent {
    width: calc((100% - 30px) / 2);
    margin: 0;

    @media screen and (max-width: 999px) {
        width: 100%;
        padding-inline: 24px;
        flex-direction: column;
        column-gap: 24px;
    }
}

.forBuySellIssue__meritImg {
    width: 200px;
    min-width: 200px;

    @media screen and (max-width: 999px) {
        width: 100%;
        min-width: inherit;
    }

    img {
        width: 100%;
    }
}

.forBuySellIssue__meritTitleImg {
    width: 22px;
    object-fit: contain;
}

.forBuySellIssue__meritDescription {
    margin-block-start: 8px;
}

/*---------- 売り手向けページ Method ----------*/
.forSellMethod {
    padding-block-end: 0 !important;

    .forSellMethod__connect {
        position: relative;

        &::after {
            content: "";
            position: absolute;
            bottom: -60px;
            left: 50%;
            width: 2px;
            height: 80px;
            background-color: var(--wp--preset--color--gray-2);

            @media screen and (max-width: 999px) {
                bottom: -50px;
                height: 60px;
            }
        }
    }

    .forSellMethod__connectSell {
        position: relative;
        transform: translateX(38px);

        @media screen and (max-width: 999px) {
            transform: translateX(27px);
        }

        .circle {
            width: 300px;
            aspect-ratio: 1;
            border-radius: 50%;
            background: conic-gradient(from 130deg, var(--wp--preset--color--blue) 0deg 350deg, transparent 350deg 360deg);
            /* 線の太さ */
            mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));

            @media screen and (max-width: 999px) {
                width: 190px;
                mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
            }
        }

        .text {
            line-height: var(--wp--custom--typography--line-height--tight);
            position: absolute;
            left: 50%;
            bottom: 50%;
            transform: translate(-50%, 50%);
        }
    }

    .forSellMethod__connectBuy {
        position: relative;
        transform: translateX(-38px);

        @media screen and (max-width: 999px) {
            transform: translateX(-27px);
        }

        .circle {
            width: 300px;
            aspect-ratio: 1;
            border-radius: 50%;
            background: conic-gradient(from -50deg, var(--wp--preset--color--orange) 0deg 350deg, transparent 350deg 360deg);
            /* 線の太さ */
            mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));

            @media screen and (max-width: 999px) {
                width: 190px;
                mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
            }
        }

        .text {
            line-height: var(--wp--custom--typography--line-height--tight);
            position: absolute;
            right: 50%;
            bottom: 50%;
            transform: translate(50%, 50%);
        }
    }

    .forSellMethod__message {
        padding-block-start: 60px;

        @media screen and (max-width: 999px) {
            padding-block-start: 40px;
        }
    }

    .forSellMethod__messageDescription {
        @media screen and (max-width: 999px) {
            text-align-last: left;
        }
    }
}

/*--- 売り手向けページ Reason ---*/
.forSellReason {
    padding-block: 40px;
    padding-inline: 80px;
    border: 3px solid var(--wp--preset--color--light-gray);
    border-radius: 12px;

    @media screen and (max-width: 999px) {
        padding-block: 28px;
        padding-inline: 20px;
    }

    .forSellReason__Title {
        margin-block-start: 4px;
    }

    .forSellReason__inner {
        column-gap: 48px;
        margin-block-start: 40px;

        @media screen and (max-width: 999px) {
            flex-direction: column;
            row-gap: 40px;
        }
    }

    .forSellReason__contents {
        flex: 1.1fr;
        row-gap: 24px;
    }

    .forSellReason__content {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon title"
            "icon description";
        column-gap: 16px;

        @media screen and (max-width: 999px) {
            grid-template-areas:
                "icon title"
                "description description";
            row-gap: 4px;
        }
    }

    .forSellReason__contentImg {
        grid-area: icon;
        width: 60px;
        min-width: 60px;
        display: flex;
        align-items: center;

        @media screen and (max-width: 999px) {
            width: 50px;
            min-width: 50px;
        }

        img {
            width: 100%;
        }
    }

    .forSellReason__contentTitle {
        grid-area: title;
        width: 100%;
        margin-block-start: 0;
    }

    .forSellReason__contentDescription {
        grid-area: description;
        margin-block-start: 4px;
    }

    .forSellReason__contentTextWrapper {
        row-gap: 4px;
    }

    /*販売方法の違い*/
    .forSellReason__exampleInner {
        align-items: stretch;
        column-gap: 20px;

        @media screen and (max-width: 999px) {
            flex-direction: column;
        }
    }

    .forSellReason__example {
        padding-block: 20px;
        padding-inline: 16px;
        border-radius: 12px;
        flex: 1;
        row-gap: 8px;

        &.comparison {
            border: 1px solid var(--wp--preset--color--gray);
        }

        &.service {
            border: 2px solid var(--wp--preset--color--navy);
        }
    }

    .forSellReason__exampleLogo {
        width: 140px;
    }

    .forSellReason__exampleText {
        padding-inline-start: 16px;

        li {
            line-height: var(--wp--custom--typography--line-height--tight);
            margin-block-start: 6px;

            &:first-child {
                margin-block-start: 12px;
            }
        }
    }
}



/*---------- 買い手/売り手向けページ One Stop ----------*/
.forBuySellOneStop {
    padding-block-end: 350px !important;

    @media screen and (max-width: 999px) {
        background-size: 120% !important;
        padding-block-end: 100px !important;
    }

    h2.sectionTitle__title.forBuy {
        @media screen and (max-width: 999px) {
            margin-block-start: 8px;
        }
    }
}

.forBuySellOneStop__mainImage {
    width: 50%;
    max-width: 700px;

    @media screen and (max-width: 999px) {
        width: 100%;
    }
}

/*---------- 買い手/売り手向けページ Flow ----------*/
.forBuySellFlow {
    .forBuySellFlow__contents {
        row-gap: 20px;
        align-items: center;

        @media screen and (max-width: 999px) {
            padding-inline: 8px;
        }
    }

    .forBuySellFlow__stepLink {
        flex-wrap: wrap;
        column-gap: 16px;
        row-gap: 8px;

        @media screen and (max-width: 999px) {
            column-gap: 12px;
        }

        a {
            text-decoration: underline;
        }

        .wp-block-image {
            width: 8px;
            display: flex;

            @media screen and (max-width: 999px) {
                width: 6px;
            }

            img {
                width: 100%;
                object-fit: contain;
            }
        }
    }

    .forBuySellFlow__content {
        padding-block: 28px;
        column-gap: 0;
        align-items: stretch;
        border-radius: 16px;
        border: 1px solid var(--wp--preset--color--gray);

        @media screen and (max-width: 999px) {
            flex-direction: column;
            row-gap: 16px;
            padding-block: 24px;
            padding-inline: 16px;
        }
    }

    .forBuySellFlow__step {
        width: 24%;
        min-width: 24%;
        justify-content: center;
        row-gap: 12px;
        border-inline-end: 1px solid var(--wp--preset--color--light-gray);

        @media screen and (max-width: 999px) {
            width: 100%;
            min-width: 100%;
            padding-block-end: 16px;
            row-gap: 8px;
            border-block-end: 1px solid var(--wp--preset--color--light-gray);
            border-inline-end: none;
        }
    }

    .forBuySellFlow__stepNum {
        color: var(--wp--preset--color--white);
        font-family: var(--wp--preset--font-family--outfit);
        padding-inline: 12px;
        border-radius: 15px;

        &.buy {
            background-color: var(--wp--preset--color--orange);
        }

        &.sell {
            background-color: var(--wp--preset--color--blue);
        }
    }

    .forBuySellFlow__textWrapper {
        padding-inline: 32px;
        column-gap: 24px;
        align-items: stretch;
        justify-content: space-between;

        @media screen and (max-width: 999px) {
            flex-direction: column;
            padding-block: 0;
            padding-inline: 8px;
        }
    }

    .forBuySellFlow__text {
        justify-content: center;
        row-gap: 12px;

        @media screen and (max-width: 999px) {
            row-gap: 8px;
        }
    }

    .forBuySellFlow__point {
        width: 35%;
        min-width: 35%;
        padding-block: 16px;
        padding-inline: 24px;
        justify-content: center;
        row-gap: 12px;
        border-radius: 16px;

        @media screen and (max-width: 999px) {
            width: 100%;
            padding-inline: 20px;
        }

        &.buy {
            background-color: rgba(215, 123, 0, 0.04);
            border: 1px solid var(--wp--preset--color--orange);
        }

        &.sell {
            background-color: rgba(0, 68, 124, 0.04);
            border: 1px solid var(--wp--preset--color--blue);
        }
    }

    .forBuySellFlow__pointItem {
        font-family: var(--wp--preset--font-family--outfit);
        display: flex;
        align-items: center;
        column-gap: 8px;

        img {
            width: 12px;
            object-fit: contain;
        }
    }
}

/*---------- 買い手/売り手向けページ Price ----------*/
.forBuySellPrice {
    .forBuySellPrice__contents {
        max-width: 800px;

        .wp-block-tab-list {
            column-gap: 0;

            button {
                font-size: var(--wp--preset--font-size--xl);
                width: 50%;
                padding-block-end: 12px;
                display: flex;
                justify-content: center;
                align-items: center;
                flex-wrap: wrap;

                strong {
                    color: var(--wp--preset--color--white);
                    font-size: var(--wp--preset--font-size--xxl);
                    padding-block: 4px;
                    padding-inline: 16px;
                    margin-inline-end: 4px;
                    border-radius: 25px;
                }

                &:first-child {
                    &::before {
                        border-color: var(--wp--preset--color--orange);
                    }

                    strong {
                        background-color: var(--wp--preset--color--orange);
                    }
                }

                &:nth-child(2) {
                    &::before {
                        border-color: var(--wp--preset--color--green);
                    }

                    strong {
                        background-color: var(--wp--preset--color--green);
                    }
                }

                &:where(.wp-site-blocks :focus) {
                    outline: none;
                }
            }
        }
    }

    .forBuySellPrice__content {
        padding-block: 36px;
        padding-inline: 24px;
        margin-block-start: 32px;
        background: var(--wp--preset--color--white);
        box-shadow: 0 0 10px var(--wp--preset--color--light-gray);
    }

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

    .forBuySellPrice__step {
        font-weight: 600;
        display: inline-block;
        padding-block: 20px;
        padding-inline-end: 28px;

        li {
            margin-block-start: 12px;

            &:first-child {
                margin-block-start: 0;
            }
        }
    }

    /*内容例*/

    .forBuySellPrice__example {
        max-width: 600px;
        padding-block: 24px;
        padding-inline: 20px;
        margin-block-start: 24px;
        margin-inline: auto;
        border: 1px solid var(--wp--preset--color--gray);
    }

    .forBuySellPrice__exampleTitleWrapper {
        row-gap: 4px;
    }

    /*内容例（予算）*/
    .forBuySellPrice__budgetItems {
        padding-block-start: 12px;

        @media screen and (max-width: 999px) {
            flex-direction: column;
        }
    }

    .forBuySellPrice__budgetItem {
        padding-block: 12px;
        padding-inline: 16px;
        background-color: var(--wp--preset--color--light-orange);
        border-radius: 8px;
    }


    .forBuySellPrice__budgetNum {
        padding-block-end: 4px;
        border-block-end: 2px solid var(--wp--preset--color--orange);
    }

    .forBuySellPrice__budgetTheme {
        &.borderTop {
            padding-block-start: 12px;
            border-block-start: 1px dashed var(--wp--preset--color--gray-2);
        }
    }


    .forBuySellPrice__budgetThemeSub {
        margin-block-start: 0;
    }

    .forBuySellPrice__budgetText {
        padding-inline-start: 8px;
        margin-block-start: 8px;
        border-inline-start: 2px solid var(--wp--preset--color--gray);

        ul {
            padding-inline-start: 16px;
        }
    }

    /*内容例（予算）*/
    .forBuySellPrice__idealItems {
        row-gap: 4px;
    }

    .forBuySellPrice__idealItem {
        width: 60%;
        padding-block: 16px;
        background-color: var(--wp--preset--color--light-green);
        border-radius: 8px;

        @media screen and (max-width: 999px) {
            width: 100%;
        }
    }
}

/*---------- 買い手/売り手向けページ FAQ ----------*/
.faqList {
    .wp-block-accordion {
        max-width: 800px;
    }
}