@import url("cssreset.css");
@import url("base.css");
@import url("header.css");
@import url("footer.css");

/* top.css */
/*--------------------------------------*/

section {
    /* kv */
    &#kv {
        width: 100%;
        height: 850px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        background-image: url("../images/kv_bg_pc.jpg");
        padding-top: 120px;
        & figure {
            width: 654px;
            margin-left: auto;
            margin-right: auto;
        }
        @media only screen and (max-width: 767px) {
            height: 0;
            background-image: url("../images/kv_bg_sp.jpg");
            padding-top: 152%;
            & figure {
                position: absolute;
                top: 32.8vw;
                left: 0;
                right: 0;
                width: 78.666vw;
                margin: auto;
            }
        }
    }
    /* H2 */
    & h2 {
        position: absolute;
        top: 2.75em;
        right: 1.3em;
        margin-top: 2.5em;
        line-height: 2.4;
        font-size: 32px;
        letter-spacing: 0.25em;
        writing-mode: vertical-rl;
        z-index: 2;
        & span {
            position: absolute;
            top: -1.35em;
            right: -0.65em;
            font-size: 64px;
            color: #ffffff;
            z-index: 1;
        }
        &:before {
            display: block;
            position: absolute;
            top: -5.25em;
            right: -1.35em;
            width: 160px;
            height: 157px;
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
            background-image: url("../images/circle_h2.png");
            content: "";
        }
        @media only screen and (max-width: 757px) {
            right: 1.25em;
            line-height: 1.6;
            font-size: 4.266vw;
            & span {
                right: -0.35em;
                font-size: 8.533vw;
            }
            &:before {
                right: -1.35em;
                width: 21.333vw;
                height: 20.933vw;
            }
        }
    }
    /* about */
    &#about {
        padding: 104px 0;
        &:before {
            display: block;
            position: absolute;
            top: 104px;
            right: 50%;
            width: 1134px;
            height: 1108px;
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
            background-image: url("../images/circle_bg.png");
            transform: translateX(53px);
            content: "";
        }
        .inner-a {
            padding-top: 243px;
            @media only screen and (max-width: 1100px) {
                padding-top: 32em;
            }
        }
        .block {
            position: relative;
            margin-bottom: 50px;
            padding-top: 153px;
            & figure {
                position: absolute;
                top: 0;
                left: 0;
                width: 49%;
            }
            .text {
                width: 74.3%;
                background-color: #F8FBF0;
                margin-left: auto;
                padding: 70px 6% 70px 35%;
                & p {
                    line-height: 1.4;
                    font-size: 20px;
                }
            }
            &.img-right {
                & figure {
                    left: inherit;
                    right: 0;
                }
                .text {
                    margin-left: 0;
                    padding: 70px 35% 70px 6%;
                }
            }
            @media only screen and (max-width: 1100px) {
                padding-top: 15%;
                & figure {
                    width: 54%;
                }
            }
        }
        @media only screen and (max-width: 767px) {
            padding: 4.9vw 0;
            &:before {
                top: 4.9vw;
                width: 90.266vw;
                height: 88.133vw;
                transform: translateX(15.6vw);
            }
            h2 {
                margin-right: 5%;
            }
            .inner-a {
                width: 100%;
                padding-top: 44vw;
            }
            .block {
                margin-bottom: 5.333vw;
                padding-top: 27.066vw;
                & figure {
                    width: 63.733%;
                    left: 5%;
                }
                .text {
                    width: 100%;
                    padding: 16vw 5% 4vw;
                    & p {
                        font-size: 4.266vw;
                    }
                }
                &.img-right {
                    & figure {
                        right: 5%;
                    }
                    .text {
                        padding: 16vw 5% 4vw;
                    }
                }
            }
        }
    }
    /* service */
    &#service {
        padding-bottom: 104px;
        &:before {
            display: block;
            position: absolute;
            top: -404px;
            left: 50%;
            width: 1134px;
            height: 1108px;
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
            background-image: url("../images/circle_bg.png");
            transform: translateX(53px);
            content: "";
        }
        .inner-a {
            height: 400px;
            z-index: 2;
        }
        .inner-b {
            margin-top: -90px;
        }
        .detail {
            position: relative;
            background-repeat: no-repeat;
            background-size: cover;
            margin-bottom: 100px;
            padding-top: 60px;
            padding-bottom: 60px;
            & dl {
                font-size: 24px;
                &.price {
                    display: flex;
                    justify-content: flex-start;
                    width: 560px;
                    margin-bottom: 1em;
                    & dt {
                        width: 9em;
                    }
                    & dd {
                        &:first-of-type {
                            width: 7em;
                        }
                    }
                }
                &.insole-price {
                    margin-bottom: 4em;
                    & div {
                        display: flex;
                    }
                    & dt {
                        width: 10em;
                    }

                }
            }
            & p {
                width: 560px;
                font-size: 20px;
                &:has(+ dl) {
                    margin-bottom: 2em;
                }
                &:has(+ p) {
                    margin-bottom: 1em;
                }
            }
        }
        .detail01 {
            background-position: right top;
            background-image: url("../images/service_bg01_pc.png");
        }
        .detail02 {
            background-position: left top;
            background-image: url("../images/service_bg02_pc.jpg");
        }
        .detail03 {
            background-position: right top;
            background-image: url("../images/service_bg03_pc.jpg");
        }
        .detail04 {
            background-position: left top;
            background-image: url("../images/service_bg04_pc.jpg");
        }
        .detail05 {
            background-position: right top;
            background-image: url("../images/service_bg05_pc.jpg");
            margin-bottom: 0;
        }
        .detail01,
        .detail03,
        .detail05 {
            padding-left: 11.8%;
        }
        .detail02,
        .detail04 {
            padding-right: 11.8%;
            & dl,
            & p {
                margin-left: auto;
            }
        }
        .insole {
            display: flex;
            justify-content: flex-start;
            width: 650px;
            margin-left: auto;
            & h3 {
                width: 280px;
                font-size: 24px;
            }
        }
        @media only screen and (max-width: 767px) {
            padding-bottom: 10.666vw;
            &:before {
                display: none;
            }
            .inner-a {
                height: 50vw;
            }
            .inner-b {
                margin-top: -20vw;
            }
            .detail {
                background-image: none !important;
                margin-bottom: 10.666vw;
                padding-top: 0;
                padding-left: 0;
                padding-right: 0;
                padding-bottom: 0;
                & figure {
                    margin-bottom: 5.3vw;
                }
                & dl {
                    font-size: 4.78vw;
                    font-weight: 500;
                    &.price {
                        width: 94%;
                        margin-left: auto;
                        margin-right: auto;
                        margin-bottom: 0.5em;
                        & dt {
                            width: auto;
                        }
                        & dd {
                            &:first-of-type {
                                width: auto;
                            }
                        }
                    }
                    &.insole-price {
                        margin-left: 8%;
                        margin-bottom: 1em;
                        font-weight: 400;
                        & div {
                            display: flex;
                        }
                        & dt {
                            width: 10em;
                        }
                    }
                }
                & p {
                    width: 94%;
                    margin-left: auto;
                    margin-right: auto;
                    font-size: 4.266vw;
                }
            }
            .insole {
                display: block;
                justify-content: flex-start;
                width: 90%;
                margin-right: auto;
                & h3 {
                    width: auto;
                    margin-bottom: 0.5em;
                    font-size: 4.78vw;
                    font-weight: 500;
                }
            }
        }
    }
    /* message */
    &#message {
        padding-bottom: 160px;
        &:after {
            position: absolute;
            top: 255px;
            left: 0;
            width: 100%;
            height: 975px;
            background-color: #D5E7FD;
            content: "";
        }
        & h2 {
            z-index: 3;
        }
        & figure {
            position: relative;
            width: 49%;
            padding-top: 170px;
            z-index: 3;
        }
        .text-white {
            position: relative;
            width: 83%;
            background-color: #ffffff;
            margin-top: -20px;
            margin-left: 8%;
            padding: 8%;
            z-index: 2;
            & p {
                font-size: 24px;
                &.name {
                    margin-top: 0.5em;
                    text-align: right;
                    font-size: 30px;
                }
            }
        }
        & input {
            display: none;
        }
        .carrer {
            position: relative;
            width: 83%;
            background-color: #F8FBF0;
            margin-top: -30px;
            margin-left: 16.8%;
            padding: 6% 8% 4%;
            & h3 {
                font-size: 20px;
            }
            & dl {
                margin-bottom: 0.5em;
                font-size: 20px;
                div {
                    display: flex;
                }
                dt {
                    width: 4em;
                }
            }
            & p {
                font-size: 16px;
            }
        }
        @media only screen and (max-width: 767px) {
            overflow-y: hidden;
            padding-bottom: 10.666vw;
            &:after {
                top: 77vw;
                height: 100%;
            }
            & figure {
                width: 74.5%;
                margin-bottom: 4.266vw;
                padding-top: 30vw;
            }
            .text-white {
                width: 100%;
                margin-top: 0;
                margin-left: 0;
                margin-bottom: 5.333vw;
                padding: 4%;
                & p {
                    font-size: 4.266vw;
                    &.name {
                        font-size: 4.8vw;
                        font-weight: 500;
                    }
                }
            }
            .carrer {
                visibility: hidden;
                height: 0;
                opacity: 0;
                width: 100%;
                background-color: #D5E7FD;
                margin-top: 0;
                margin-left: 0;
                padding: 0 8% 4%;
                transition: all .3s ease;
                & h3 {
                    font-size: 5.333vw;
                }
                & dl {
                    font-size: 3.2vw;
                }
                & p {
                    font-size: 3.2vw;
                }
            }
            & label {
                display: block;
                position: relative;
                width: 100%;
                background-color: #ffffff;
                border: 1px solid #003C86;
                text-align: center;
                line-height: 2.0;
                font-size: 4.266vw;
                cursor: pointer;
                transition: all .3s ease;
                & span {
                    position: relative;
                    padding-right: 6.666vw;
                    &:after {
                        position: absolute;
                        top: 0.5vw;
                        right: 0;
                        width: 5.333vw;
                        height: 4.266vw;
                        background-color: #003C86;
                        clip-path: polygon(0 0, 100% 0%, 50% 100%);
                        transition: all .3s ease;
                        content: "";
                    }
                }
            }
            & input {
                &:checked ~ label {
                    background-color: #F8FBF0;
                    border: 1px solid #F8FBF0;
                    & span {
                        &::after {
                            clip-path: polygon(0 100%, 50% 0, 100% 100%);
                        }
                    }
                }
                &:checked ~ .carrer {
                    visibility: visible;
                    height: auto;
                    opacity: 1;
                }
            }
        }
    }
    /* reservation */
    &#reservation {
        & h2 {
            left: 1.3em;
            right: inherit;
        }
        .inner-a {
            padding-top: 125px;
        }
        .text {
            width: 74.5%;
            background-color: #F8FBF0;
            margin-left: auto;
            padding: 8% 16% 20%;
            & figure {
                margin-bottom: 10px;
            }
            & p {
                margin-bottom: 1.5em;
                line-height: 2.0;
                font-size: 15px;
                &.date {
                    margin-bottom: 0;
                    font-size: 20px;
                }
            }
            & ul {
                display: flex;
                justify-content: space-between;
                & li {
                    &:first-child {
                        margin-right: 2%;
                    }
                }
            }
        }
        & figure {
            &.exterior {
                width: 74.5%;
                margin-top: -160px;
            }
        }
        @media only screen and (max-width: 1100px) {
            .text {
                padding: 8% 10vw 20%;
            }
            & figure {
                &.exterior {
                    margin-top: -12vw;
                }
            }
        }
        @media only screen and (max-width: 767px) {
            padding-top: 10.666vw;
            .inner-a {
                width: 100%;
                padding-top: 48.666vw;
            }
            & h2 {
                left: inherit;
                right: 1.25em;
                margin-right: 10.5%;
            }
            .text {
                width: 100%;
                padding: 8.6vw 8vw 5.8vw;
                & p {
                    text-align: center;
                    font-size: 4vw;
                    &.date {
                        font-size: 4.266vw;
                        font-weight: 500;
                    }
                }
                & ul {
                    display: block;
                    width: 47%;
                    margin-left: auto;
                    margin-right: auto;
                    & li {
                        &:first-child {
                            margin-right: 0;
                            margin-bottom: 3.333vw;
                        }
                    }
                }
            }
            & figure {
                &.exterior {
                    position: absolute;
                    top: 24.533vw;
                    left: 10.5%;
                    width: 54%;
                    margin-top: 0;
                }
            }
        }
    }
}





