/* 
Theme Name: 現役不動産エージェント もりした
Description: とある現役不動産エージェントのテーマ
Author: 小野村隼人
Author URI: https://tsubasa-ho.com/
*/

@charset "UTF-8";

:root {
    --baseblack: #333;
    --basewhite: #f5f5f5;
    --basecolor: #f09329;
    font-family: "Noto Sans JP", sans-serif;
    scroll-padding: 100px;
}

* {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    letter-spacing: 0.2em;
    color: var(--baseblack);
}

html,
body {
    overflow-x: hidden;
}

.wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.cta_button {
    color: var(--basewhite);
    display: block;
    padding: 1em 1.5em;
    font-size: 1em;
    font-weight: bold;
    border-radius: 9999px;
    transition: all .3s;

    &:hover {
        filter: brightness(1.3);
    }

}

.showmore {
    font-size: .8em;
    margin-top: .5em;
    color: var(--basecolor);

    * {
        color: inherit;
    }
}

header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    z-index: 100;
    transition: transform .3s;

    &>div {
        background: linear-gradient(var(--basecolor) 0 50%, #de7e11 50% 100%);

        &>div {
            padding: 1em 0;
            display: flex;
            justify-content: space-between;
            align-items: center;

            &>div {
                display: flex;
                align-items: center;
                gap: 2em;

                h1 {
                    height: 1em;
                    display: flex;
                    justify-content: center;
                    flex-direction: column;
                    flex-wrap: wrap;
                    text-shadow: 0 .1em .1em var(--baseblack);
                    letter-spacing: .1em;

                    * {
                        color: var(--basewhite);
                    }

                    &>span {
                        display: inline-flex;
                        line-height: 100%;

                        &:not(:last-child) {
                            font-size: .4em;
                            height: 50%;
                            align-items: center;

                            &:first-child {
                                justify-content: space-between;
                            }
                        }

                        &:last-child {
                            letter-spacing: 0;
                            height: 100%;
                            transform: translateY(-.05em);
                        }
                    }
                }

                form {
                    p {
                        display: flex;
                        justify-content: center;
                        align-items: center;

                        &>* {
                            background-color: var(--basewhite);
                            height: 2em;
                        }

                        button {
                            border-top-left-radius: 9999px;
                            border-bottom-left-radius: 9999px;
                            display: inline-flex;
                            align-items: center;
                            padding-left: .5em;

                            img {
                                height: 80%;
                            }
                        }

                        input {
                            border-top-right-radius: 9999px;
                            border-bottom-right-radius: 9999px;
                            color: var(--basecolor);
                            padding: 0 .5em;

                            &::placeholder {
                                color: var(--basecolor);
                                font-weight: bold;
                            }
                        }
                    }
                }
            }

            .header_icons {
                &>p {
                    display: flex;
                    width: fit-content;
                    margin: 0;
                    line-height: 1;
                    background-color: #489ae1;
                    padding: .5em 1em;
                    border-radius: .5em;

                    a {
                        display: flex;
                        align-items: center;
                        width: 100%;
                        height: 100%;
                        color: var(--basewhite);
                        font-weight: bold;
                        gap: .5em;

                        span {
                            color: inherit;
                        }

                        img {
                            height: 60%;
                        }
                    }
                }

                .hbg_menu {
                    display: none;
                }
            }

        }
    }

    nav {
        background-color: #eee;

        ul {
            background-color: inherit;
            list-style-type: none;
            display: flex;
            justify-content: end;
            font-weight: bold;

            li {
                background-color: inherit;
                position: relative;
                transition: all .3s;

                &:hover {
                    background-color: var(--baseblack);
                }

                a {
                    padding: .5em 1.3em;
                    display: block;
                    height: 100%;
                    width: 100%;
                    transition: all .3s;

                    &:hover {
                        color: var(--basewhite);
                    }
                }


                ::before,
                &:last-child::after {
                    display: block;
                    content: "";
                    width: 1px;
                    height: 60%;
                    background-color: #d9d9d9;
                    position: absolute;
                    top: 50%;
                }

                ::before {
                    transform: translate(-50%, -50%);
                    left: 0;
                }

                &:last-child::after {
                    transform: translate(50%, -50%);
                    right: 0;
                }
            }
        }
    }
}

footer {
    background-color: var(--basecolor);
    padding-top: 1em;

    * {
        color: var(--basewhite);
    }

    h1 {
        width: fit-content;
        margin: 0 auto 1rem;
        height: 1em;
        display: flex;
        justify-content: center;
        flex-direction: column;
        flex-wrap: wrap;
        text-shadow: 0 .1em .1em var(--baseblack);
        letter-spacing: .1em;

        &>span {
            display: inline-flex;
            line-height: 100%;

            &:not(:last-child) {
                font-size: .4em;
                height: 50%;
                align-items: center;

                &:first-child {
                    justify-content: space-between;
                }
            }

            &:last-child {
                letter-spacing: 0;
                height: 100%;
                transform: translateY(-.05em);
                font-size: 1em;
            }
        }
    }

    *:not(h1) {
        font-size: .8em;
    }

    ul {
        list-style-type: none;
        display: flex;
        justify-content: center;
        gap: 5em;
    }

    p {
        text-align: center;
    }
}

main {
    overflow: hidden;
    padding-bottom: 2em;

    .wrapper:is(section) {
        margin: 0 auto 2em;

        &:first-child:not(.swiper) {
            margin: 2em auto 2em;
        }

        h2 {
            margin-bottom: 1rem;
        }
    }
}

.sidemenu {
    background-color: #f4ac59;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 50vw;
    height: 100vh;
    transform: translateX(-100%);
    transition: all .3s;

    &.open {
        transform: translateX(0);
    }

    nav {
        margin-bottom: 1.5em;

        &>ul {
            list-style-type: none;

            &>li {
                padding: 1em;
                border-bottom: 1px solid var(--basewhite);

                a {
                    color: var(--basewhite);
                }

            }
        }
    }

    form {
        p {
            display: flex;
            justify-content: center;
            align-items: center;

            &>* {
                background-color: var(--basewhite);
                height: 2em;
            }

            button {
                border-top-left-radius: 9999px;
                border-bottom-left-radius: 9999px;
                display: inline-flex;
                align-items: center;
                padding-left: .5em;

                img {
                    height: 50%;
                }
            }

            input {
                border-top-right-radius: 9999px;
                border-bottom-right-radius: 9999px;
                color: var(--basecolor);
                padding: 0 .5em;
                width: 60%;

                &::placeholder {
                    color: var(--basecolor);
                    font-weight: bold;
                    font-size: 10px;
                    transform: translateY(-.3em);
                }
            }
        }
    }
}

.basic_container {
    background: linear-gradient(var(--basecolor) 0 50%, #de7e11 50% 100%);
    border-radius: 1cqw;
    position: relative;
    container-type: inline-size;
    padding: 3cqw;

    * {
        color: var(--basewhite);
        position: relative;
        z-index: 1;
    }

    &::before {
        z-index: 0;
        display: block;
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        border: 1cqw solid #ffd09a;
        border-radius: 2cqw;
        width: calc(100% - 2cqw);
        height: calc(100% - 2cqw);
    }
}

/* ここからトップページ */

.swiper {
    margin-bottom: 2em;

    .swiper-slide {
        width: 100vw;
        aspect-ratio: 2.5;
        background-size: cover;

        p a.cta_button {
            font-size: 1.2cqw;
        }

        &.fee {
            background-image: url(images/fee.png);
            background-position: 50% 85%;
            background-size: 110%;
            position: relative;

            &>div {
                width: 80%;
                aspect-ratio: 5.5;
                position: absolute;
                left: 50%;
                top: 15%;
                transform: translateX(-50%);
                display: grid;
                grid-template-columns: 60% 1fr;
                grid-template-rows: 35% 1fr;
                grid-template-areas: "a c" "b c";
                row-gap: 5%;
                column-gap: 2%;

                &>div {
                    display: flex;
                    justify-content: space-between;
                    container-type: size;

                    &>span {
                        display: inline-flex;
                        justify-content: center;
                        align-items: center;
                        background-color: #f5f5f5;
                        aspect-ratio: 1;
                        font-weight: bold;
                        overflow: hidden;

                        &>span {
                            letter-spacing: 0;
                            transform: translateY(-3%);
                            font-size: 80cqh;
                        }
                    }



                    &:first-child {
                        grid-area: a;

                    }

                    &:nth-child(2) {
                        grid-area: b;

                    }

                    &:last-child {
                        grid-area: c;

                        span {
                            color: #c62727;
                        }
                    }
                }
            }

            p:first-of-type {
                font-weight: bold;
                text-align: center;
                width: 56%;
                position: absolute;
                top: 55%;
                left: 50%;
                transform: translateX(-50%) skew(-10deg);
                padding: .5em 1em;
                background: linear-gradient(to right, #f4ac59, var(--basecolor));
                color: var(--basewhite);
                font-size: 1.5cqw;
            }

            p:last-of-type {
                position: absolute;
                left: 50%;
                top: 70%;
                width: 60%;
                transform: translateX(-50%);
                display: flex;
                justify-content: space-between;

                a {
                    background-color: var(--baseblack);
                }
            }
        }

        &.wherever {
            background-image: url(images/wherever.png);
            position: relative;

            &>div {
                position: absolute;
                width: 80%;
                aspect-ratio: 5;
                top: 10%;
                left: 50%;
                transform: translateX(-50%);
                display: grid;
                grid-template-columns: 55% 3% 1fr;
                grid-template-rows: 1fr 2fr;
                grid-template-areas: "a b b" "c c d";
                container-type: size;

                &>div {
                    line-height: 1;
                    display: flex;
                    align-items: center;
                    font-weight: bold;

                    &:not(:nth-of-type(2)) {
                        color: rgb(255, 255, 255, .4);
                        text-shadow: .02em .02em .02em #ccc, 0 0 #333;
                    }

                    &:first-of-type {
                        grid-area: a;
                        font-size: 5cqw;
                        transform: translateX(4%);
                    }

                    &:nth-of-type(2) {
                        font-size: 1.5cqw;
                        grid-area: b;
                        justify-content: center;

                        p {
                            color: var(--basewhite);
                            background-color: var(--basecolor);
                            padding: .5em 1em;
                        }
                    }

                    &:nth-of-type(3) {
                        grid-area: c;
                        font-size: 12cqw;
                    }

                    &:last-of-type {
                        grid-area: d;
                        font-size: 5cqw;
                    }
                }
            }

            &>p {
                position: absolute;
                top: 60%;
                left: 50%;
                transform: translateX(-50%);

                a {
                    background-color: var(--baseblack);
                }
            }

            svg {
                position: absolute;
            }
        }
    }

    .swiper-pagination-bullet-active {
        background: var(--basecolor);
    }
}

.toppage_profile {
    display: flex;
    align-items: center;
    gap: 5em;

    img {
        border-radius: 9999px;
    }

    a {
        background-color: var(--basecolor);
    }
}

.toppage_information {
    p:not(.showmore) {
        font-size: .8em;
        border-bottom: 1px solid var(--basecolor);
        padding: 1em 0;
    }
}

.toppage_post {
    ul {
        list-style-type: none;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2vw;

        li {
            img {
                display: block;
                background-color: var(--basecolor);
                width: 100%;
                aspect-ratio: 1;
                object-fit: cover;
                margin-bottom: .5em;
            }
        }
    }
}

/* ここからアーカイブページ */

.search_article {
    margin-bottom: 2em;

    h3 {
        text-align: center;
        margin-bottom: 1em;
    }

    dl {
        display: flex;
        flex-wrap: wrap;
        row-gap: 1em;
        margin-bottom: 1.5em;

        dt {
            font-weight: bold;
            width: 30%;

            label {
                cursor: pointer;
            }
        }

        dd {
            width: 70%;

            p {
                input {
                    color: var(--baseblack);
                    background-color: var(--basewhite);

                    &[type="text"] {
                        width: 30cqw;
                    }

                    --space: 2cqw;

                    &#from {
                        margin-right: var(--space);
                    }

                    &#to {
                        margin-left: var(--space);
                    }
                }
            }
        }
    }

    form>p {
        text-align: center;

        button {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            width: 15cqw;
            height: 4cqw;
            border-radius: 9999px;
            gap: 5cqw;
            color: var(--basecolor);
            font-weight: bold;
            background-color: var(--basewhite);
            transition: all .3s;

            &:hover {
                background-color: var(--basecolor);
                color: var(--basewhite);
                border: .5cqw solid var(--basewhite);
            }

            span {
                font-size: 2cqw;
                color: inherit;
            }
        }
    }
}

.posts {
    padding-top: 1em;

    dt {
        font-weight: bold;
        font-size: 1.5em;
    }

    dd {
        padding-top: 1em;
        padding-bottom: 1em;

        &:not(:last-of-type) {
            border-bottom: 1px solid var(--basecolor);
        }

        &:last-of-type {
            border-bottom: 3px solid var(--basecolor);
        }

        ul {
            padding-top: 1em;
            padding-bottom: 1em;
            list-style-type: none;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 3%;

            li {
                img {
                    width: 100%;
                    background-color: var(--basecolor);
                    aspect-ratio: 1;
                    margin-bottom: .5em;
                }
            }
        }
    }
}

/* ここからプロフィールページ */

.profile {
    &>article {
        display: flex;
        align-items: center;
        gap: 5em;
        margin-bottom: 5em;

        img {
            border-radius: 9999px;
        }

        &>div {
            hgroup {
                margin-bottom: .6em;

                h3 {
                    font-size: 1.5em;
                    margin-bottom: .3em;
                }
            }

            p {
                font-size: .9em;
            }
        }
    }
}

.policy {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-template-areas: "a b" "c d";
    container-type: inline-size;

    article {
        padding: 2em 3em;
        display: flex;
        flex-direction: column;
        justify-content: center;

        &:first-of-type {
            grid-area: a;
        }

        &:last-of-type {
            grid-area: d;
        }

        h2 {
            font-size: 2cqw;
            margin-bottom: 1cqw;
        }

        p {
            font-size: 1.2cqw;
        }
    }

    img {
        display: block;
        width: 100%;
        object-fit: cover;
        aspect-ratio: 3 / 2;

        &:first-of-type {
            grid-area: b;
        }

        &:last-of-type {
            grid-area: c;
        }
    }
}

/* ここからお問い合わせ・仕事依頼ページ */

.contact {
    position: relative;

    .add_friend_guide {
        position: absolute;
        right: 0;
        top: 0;
        width: 40%;
        aspect-ratio: 5;
        padding: 1cqw;
        container-type: inline-size;
        display: flex;
        justify-content: center;
        align-items: center;

        p {
            padding-left: 15cqw;
            font-size: 4cqw;
            font-weight: bold;
            background-image: url(images/LINE_Brand_icon.png);
            background-size: contain;
            background-position: 2% 50%;
            background-repeat: no-repeat;
        }
    }

    &>p {
        width: 50%;
        margin-bottom: 1em;
    }

    form {
        dl {
            display: flex;
            flex-wrap: wrap;
            margin-bottom: 1em;

            dt {
                font-weight: bold;
                width: 30%;
                background-color: #f4ac59;
                border-bottom: 2px solid var(--basewhite);
                display: flex;
                align-items: center;
                padding: 1em;

                .required {
                    color: #c62727;
                }
            }

            dd {
                width: 70%;
                border-bottom: 2px solid var(--basecolor);
                padding: 1em;

                p {

                    input,
                    select,
                    textarea {
                        border: 1px solid var(--baseblack);
                    }

                    input:not([type="radio"]) {
                        width: 30%;

                        &#zipcode,
                        &#address {
                            display: inline-block;
                            margin-top: .2em;

                            &:first-of-type {
                                margin-bottom: .5em;
                            }
                        }
                    }

                    input[type="radio"] {
                        margin-left: 1em;
                        margin-right: .2em;

                        &:first-of-type {
                            margin-left: 0;
                        }
                    }

                    select {
                        appearance: auto;
                        width: 3em;
                        margin-left: 1em;
                        margin-right: .2em;

                        &:first-of-type {
                            width: 6em;
                            margin-left: 0;
                        }
                    }

                    textarea {
                        resize: none;
                        width: 50%;
                        height: 10em;
                    }
                }
            }
        }

        input[type="submit"] {
            margin: 0 auto;
            background-color: var(--basecolor);

        }
    }
}

#offer {
    .add_friend_cta_button {
        display: flex;
        aspect-ratio: 5;
        margin-bottom: 3em;

        * {
            font-weight: bold;
        }

        &>* {
            width: 50%;
        }

        &>p {
            display: flex;
            align-items: center;
            font-size: 2.6cqw;
        }

        &>div {
            background-color: #06c755;
            display: flex;
            border-radius: 1cqw;
            padding: 1.3cqw;

            &>div {
                height: 100%;

                &:first-child {
                    margin-right: 1.3cqw;
                    border-radius: 9999px;
                    aspect-ratio: 1;
                    background-color: var(--basewhite);
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }

                img {
                    height: 60%;
                }

                &:last-child {
                    flex-grow: 1;
                    padding-right: 1.3cqw;

                    p {
                        display: flex;
                        justify-content: space-between;

                        &:first-child {
                            height: 80%;
                        }

                        &:last-child {
                            height: 20%;
                            transform: scale(87%);
                        }

                        &>span {
                            height: 100%;
                            aspect-ratio: 3 / 4;
                            container-type: size;
                            display: inline-flex;
                            justify-content: center;
                            align-items: center;


                            span {
                                letter-spacing: 0;
                                font-size: 100cqh;
                            }
                        }
                    }
                }
            }
        }
    }

    ul {
        display: flex;
        justify-content: space-between;
        list-style-type: none;

        li {
            transform: translateY(30%);
            opacity: 0;
            width: 28%;
            aspect-ratio: 1;
            border-radius: 9999px;
            position: relative;
            container-type: inline-size;
            background-size: cover;

            &:first-child {
                background-image: url(images/rent.png);
            }

            &:nth-child(2) {
                background-image: url(images/buy.png);
            }

            &:last-child {
                background-image: url(images/sell.png);
            }

            p {
                position: absolute;
                top: 10%;
                right: -10%;
                font-size: 15cqw;
                font-weight: bold;
                color: var(--basecolor);
                text-shadow: 0 0 .3em var(--basewhite), 0 0 .3em var(--basewhite), 0 0 .3em var(--basewhite), 0 0 .3em var(--basewhite), 0 0 .3em var(--basewhite), 0 0 .3em var(--basewhite), 0 0 .3em var(--basewhite), 0 0 .3em var(--basewhite), 0 0 .3em var(--basewhite);
            }
        }
    }

    .leaveItToMe {
        max-width: 1200px;
        width: 80vw;
        opacity: 0;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        font-size: 7vw;
        padding: 6vw 0;
        font-weight: bold;
        color: var(--basecolor);
        transform: translateY(30%) rotate(-10deg);
        text-shadow: .1em .1em .1em #999;
    }
}

/* ここからError 404ページ */

.error404 {
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    container-type: inline-size;
    text-align: center;

    * {
        color: var(--basecolor);
    }

    h2 {
        display: flex;
        justify-content: space-between;

        span {
            letter-spacing: 0;
            display: inline-block;
            font-size: 16cqw;
        }
    }

    p:first-of-type {
        display: flex;
        justify-content: space-between;

        span {
            letter-spacing: 0;
            display: inline-block;
            font-size: 8cqw;
            font-weight: bold;
        }
    }

    p .cta_button {
        margin-top: 2em;
        display: inline-block;
        width: fit-content;
        background-color: var(--basecolor);
        color: var(--basewhite);
    }
}

/* ここからプライバシーポリシーのページ */

.privacy_policy {
    text-align: justify;

    dl {
        dt {
            font-size: 1.2em;
            font-weight: bold;
        }

        dd {
            margin-bottom: 0.5em;

            ul {
                margin-left: 3em;
            }
        }
    }
}

/* ここから宅地建物取引業者免許番号の表示のページ */

.license {
    section {
        width: 80%;
        margin: 0 auto;

        h3 {
            margin-bottom: .5em;
        }

        dl {
            margin-bottom: 5em;
            width: 100%;
            border: 1px solid var(--basecolor);
            display: flex;
            flex-wrap: wrap;

            dt {
                width: 30%;
                padding: 1em;
                background-color: var(--basecolor);
                color: var(--basewhite);
                font-weight: bold;
                border-bottom: 1px solid var(--basewhite);
                display: flex;
                align-items: center;
            }

            dd {
                width: 70%;
                padding: 1em;
                border-bottom: 1px solid var(--basecolor);
            }

            :is(dt, dd):last-of-type {
                border-bottom: none;
            }
        }
    }
}

/* ここからお知らせ一覧ページ */

.information_archive {
    ul {
        list-style-type: none;

        li {
            border-bottom: 1px solid var(--basecolor);
            padding: 1em 0;
            margin-bottom: 1em;

            h3 {
                font-size: 1rem;
                margin-bottom: 1rem;
            }

            p {
                font-size: .8em;
            }
        }
    }

    &>p {
        text-align: center;

        .cta_button {
            display: inline-block;
            background-color: var(--basecolor);
        }
    }
}

/* ここからお知らせ、投稿ページ */
main .information:is(section) h2,
main .posts:is(section) h2 {
    margin-bottom: 0;
}

.posts,
.information {
    p:first-of-type {
        font-size: .8em;
        padding-bottom: 3em;
        margin-bottom: 3em;
        border-bottom: 1px solid var(--basecolor);
    }

    p:nth-of-type(2) {
        min-height: 60vh;
    }

    p:has(.cta_button) {
        text-align: center;

        .cta_button {
            display: inline-block;
            background-color: var(--basecolor);
        }
    }
}

/* ここから検索結果ページ */

.search {
    min-height: 70vh;

    .result_index {
        display: flex;
        justify-content: space-between;
        margin-bottom: 2em;
        font-size: .8em;

        ol {
            list-style-type: none;
            display: flex;
            gap: .3em;
        }
    }

    article {
        margin-bottom: 1em;

        p:has(time) {
            font-size: .8em;
            margin-bottom: 1em;

            &+p {
                padding-bottom: 1em;
                border-bottom: 1px solid var(--basecolor);
            }
        }
    }

    form {
        display: none;
        p {
            text-align: center;

            .cta_button {
                display: inline-block;
                background-color: var(--basecolor);

                &::after {
                    display: inline-block;
                    content: "";
                    width: 1em;
                    aspect-ratio: 1;
                    background-color: var(--basewhite);
                    clip-path: polygon(80% 0, 100% 0, 100% 100%, 0 100%, 0 80%, 80% 80%);
                    transform: rotate(45deg) translateY(-15%);
                    margin-left: .5em;
                }
            }
        }
    }
}

@media screen and (max-width: 767px) {
    .wrapper {
        max-width: 90%;
    }

    header {
        div div {
            div {
                form {
                    display: none;
                }

            }

            .header_icons {
                justify-content: end;
                gap: 5cqw;

                p {
                    border-radius: 9999px;
                    aspect-ratio: 1;
                    transform: translateX(3vw);
                    padding: .3em;
                    height: 6cqh;
                    container-type: inline-size;

                    img {
                        transform: translateX(28%);
                    }

                    a span {
                        display: none;
                    }
                }

                .hbg_menu {
                    display: block;
                    height: 5cqh;
                    aspect-ratio: 1;
                    position: relative;
                    cursor: pointer;

                    div {
                        width: 100%;
                        height: 5%;
                        border-radius: 9999px;
                        background-color: var(--baseblack);
                        position: absolute;
                        left: 0;
                        transform: translateY(-50%);
                        transition: all .3s;

                        &:first-child {
                            top: 25%;

                            &.open {
                                top: 50%;
                                transform: translateY(-50%) rotate(45deg);
                            }
                        }

                        &:nth-child(2) {
                            top: 50%;

                            &.open {
                                opacity: 0;
                            }
                        }

                        &:last-child {
                            top: 75%;

                            &.open {
                                top: 50%;
                                transform: translateY(-50%) rotate(-45deg);
                            }
                        }
                    }
                }
            }
        }

        nav {
            display: none;
        }
    }

    /* ここからトップページ */

    .swiper {
        .swiper-slide {
            aspect-ratio: 1;

            p a.cta_button {
                font-size: 2cqw;
            }

            &.fee {
                &>div {
                    top: 8%;
                    width: 70%;
                    aspect-ratio: 1.25;
                    grid-template-columns: 1fr;
                    grid-template-rows: 10% 21% 1fr;
                    grid-template-areas: "a" "b" "c";
                }

                p:first-of-type {
                    top: 67%;
                    width: 65%;
                    font-size: 2cqw;
                }

                p:last-of-type {
                    top: 78%;
                    width: 70%;
                }
            }

            &.wherever {
                background-size: 180%;
                background-position: 50% 0;

                &>div {
                    width: 95%;
                }

                &>p {
                    top: 40%;
                }
            }
        }
    }

    .toppage_profile {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3em;
    }

    .toppage_post {
        ul {
            grid-template-columns: repeat(2, 1fr);
            row-gap: 1em;
        }

        h3 {
            font-size: 1em;
        }

        p {
            font-size: .8em;
        }
    }

    /* ここから記事(月別アーカイブ) */

    .search_article {
        dl dd p {
            input#to {
                margin-left: 0;
                display: inline-block;
                margin-top: 5px;
            }
        }

        form>p {
            margin-bottom: 2cqw;

            button {
                width: 25cqw;
                height: 8cqw;

                span {
                    font-size: 3cqw;
                }
            }
        }
    }

    .posts {
        dd {
            ul {
                grid-template-columns: repeat(2, 1fr);
            }
        }
    }

    /* ここからプロフィールページ */

    .policy {
        display: block;

        article {
            h2 {
                font-size: 18px;
                margin-bottom: .5em;
            }

            p {
                font-size: .8rem;
            }
        }
    }

    /* ここからお問い合わせ・仕事依頼ページ */
    .contact {
        .add_friend_guide {
            position: relative;
            width: 100%;
            margin-bottom: 1em;
        }

        &>p {
            width: 100%;
        }

        form {
            dl {
                dt {
                    width: 100%;
                    background-color: transparent;
                    border-bottom: none;
                    padding: 1em 1em 0;
                }

                dd {
                    width: 100%;
                    padding: .5em 1em 1em;

                    p {

                        input:not([type="radio"]),
                        textarea {
                            width: 100%;
                        }
                    }
                }
            }

        }
    }

    /* ここから宅地建物取引業者免許番号の表示のページ */

    .license {
        section {
            dl {
                font-size: .8em;

                dt {
                    width: 40%;
                }

                dd {
                    width: 60%;
                }
            }
        }
    }

    /* ここから検索結果ページ */
    .search {
        .result_index {
                display: none;
        }
        form {
            display: block;
        }
    }
}