.for-mb {
    display: none;
}

.from-tb {
    display: block;
}

.row-from-tb {
    display: flex;
    flex-direction: row;
}

.column-from-tb {
    display: flex;
    flex-direction: column;
}

.house-symbol {
    font-size: 28px;
    width: 420px;
    height: 140px;
    clip-path: polygon(0 48px, 50% 0, 100% 48px, 100% 100%, 0 100%);

    span {
        &:nth-of-type(2) {
            span {
                font-size: 40px;
                -webkit-text-stroke-width: 8px;
            }
        }

        &.img-container {
            bottom: -6px;
            width: 85px;
        }
    }

    &.only-one {
        width: 420px;
        height: 120px;
        padding-bottom: 30px;
        margin-top: 140px;
        margin-left: auto;
        clip-path: polygon(0 36px, 50% 0, 100% 36px, 100% 100%, 0 100%);

        >span {
            &:nth-of-type(1) {
                top: 5px;
                left: 5px;
                width: calc(100% - 10px);
                height: calc(100% - 10px);

                span {
                    top: 5px;
                    left: 5px;
                    width: calc(100% - 10px);
                    height: calc(100% - 10px);
                }
            }

            &:nth-of-type(2) {
                span {
                    font-size: 40px;
                }
            }

            &.img-container {
                right: 60px;
                bottom: 0;
                width: 87px;
                height: 100px;
            }
        }
    }
}

.type-1 {
    max-width: 1170px;
    padding: 0 23px;
    margin: auto;

    &::scroll-marker-group {
        display: none;
    }

    &::scroll-button(*) {
        content: none;
    }

    .slide {
        display: inline-block;
        width: 300px;
        margin: 0 27px;

        &::scroll-marker {
            display: none;
        }

        dl {
            width: 100%;
            margin: 0;

            dt {
                font-size: 22px;
                height: 50px;

                span {
                    font-size: 22px;

                    .img-container {
                        width: 1.6em;

                        img {
                            vertical-align: bottom;
                        }
                    }
                }
            }

            dd {
                &.img-container {
                    height: 225px;
                }

                &:not(.img-container) {
                    font-size: 24px;
                    height: 275px;

                    span {
                        &.deco {
                            font-size: 18px;
                            width: 90px;
                        }

                        &:not(.deco) {
                            font-size: 36px;

                            span {
                                font-size: 64px;

                                span {
                                    font-size: 84px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

#price-swiper-pagi {
    display: none;
}

#main-header {
    justify-content: flex-start;
    height: 80px;
    margin-top: -80px;

    h1 {
        margin-left: 53px;

        a {
            font-size: 8px;

            .logo {
                width: 40px;
            }

            >span {
                &:not(.logo) {
                    font-size: 3px;
                }
            }
        }
    }

    .contents {
        .call {
            font-size: 36px;

            .img-container {
                width: 41px;
                margin-top: 7px;
            }

            a {
                margin-left: 42px;
            }

            a,
            .from-pc {
                gap: 13px;
            }
        }

        #ham-menu {
            .sleeping-dog {
                .bubble-group {
                    right: 172px;

                    .bubble {
                        width: 37px;

                        &:nth-of-type(1) {
                            top: -30px;
                            right: 60px;
                        }

                        &:nth-of-type(2) {
                            top: -16px;
                        }

                        &:nth-of-type(3) {
                            top: -12px;
                            right: -25px;
                        }
                    }
                }

                .snore {
                    width: 170px;

                    span {
                        &:not(.caption) {
                            font-size: 20px;

                            span {
                                font-size: calc(100% + 2px);
                            }
                        }
                    }
                }

                .img-container {
                    width: 177px;
                    height: 262px;

                    img {
                        object-fit: cover;
                    }
                }
            }

            a {
                font-size: 28px;
            }
        }
    }

    #ham-button {
        width: 80px;
        height: 80px;
        margin-left: auto;

        >span {
            &:not(.side) {
                width: 50px;
                height: 3px;
            }

            &:nth-of-type(3) {
                margin-top: 33px;
            }

            &:nth-of-type(2) {
                clip-path: polygon(calc(50% - 35px) calc(50% - 1.5px), calc(50% + 35px) calc(50% - 1.5px), calc(50% + 35px) calc(50% + 1.5px), calc(50% - 35px) calc(50% + 1.5px));
            }

            &.side {
                gap: 33px;

                span {
                    width: 50px;
                    height: 3px;
                }
            }
        }
    }
}

footer {
    .row-from-pc {
        .logo-container {
            font-size: 30px;

            .logo {
                width: 120px;
            }

            >span {
                &:not(.logo) {
                    font-size: 12px;
                }
            }
        }

        .container {
            .pagination {
                gap: 39px;
                width: 608px;

                &::before,
                &::after {
                    width: 100%;
                }

                a {
                    width: fit-content;
                }
            }

            address {
                max-width: 620px;
                padding: 0;

                .post,
                .street {
                    font-size: 18px;
                }

                .post {
                    display: inline;
                    padding-right: 1.5em;
                }

                .street {
                    font-size: 20px;
                }
            }

            .info {
                font-size: 18px;
                max-width: 620px;

                dl {
                    padding: 0;
                }

                dt {
                    width: unset;
                }

                dd {
                    font-size: 24px;
                }

                .hours {
                    margin-right: 1em;
                }
            }

            .row-from-tb {
                justify-content: center;
                align-items: flex-end;
                gap: 24px;
                margin-top: 30px;
                margin-bottom: 156px;

                .call {
                    font-size: 36px;
                    display: inline-block;
                    width: fit-content;
                    margin: 0;

                    .img-container {
                        width: 33px;
                        height: 33px;
                        margin-top: 8px;

                        img {
                            vertical-align: top;
                        }
                    }
                }
            }
        }
    }

    .sleeping-dog {
        top: unset;
        bottom: 0;

        .img-container {
            top: unset;
            bottom: 0;
            width: 300px;
            height: 200px;
        }

        .bubble-group {
            top: unset;
            right: 150px;
            bottom: 150px;

            .bubble {
                width: 24px;

                &:nth-of-type(1) {
                    right: 50px;
                }

                &:nth-of-type(2) {
                    right: 20px;
                }

                &:nth-of-type(3) {
                    top: 24px;
                }
            }
        }

        .snore {
            top: unset;
            bottom: 40px;
            width: 200px;

            span {
                &:not(.caption) {
                    font-size: 16px;

                    span {
                        font-size: calc(100% + 2px);
                    }
                }
            }
        }
    }
}

#top-eye-catch {
    height: 400px;
    padding-top: 95px;

    .swiper-wrapper {
        width: 585px;
        height: 290px;

        .slide {
            width: 585px;
            height: 290px;
        }
    }

    .top-slide-1 {

        strong,
        p,
        .moc-p {
            font-size: 28px;
        }

        strong {
            margin-top: 80px;
            margin-right: 25px;

            span {
                font-size: 32px;
            }
        }
    }

    .top-slide-2 {

        p,
        .moc-p {
            font-size: 32px;
            margin-top: 60px;
            margin-left: 50px;
        }

        strong {
            font-size: 24px;
            top: 70px;

            span {
                font-size: 32px;
            }
        }
    }

    .top-slide-3 {

        &.thumb,
        .slide-prime {
            padding-left: 50px;
            gap: 75px;
        }

        span {
            &.voice {
                font-size: 20px;
                top: 50px;

                &::after,
                &::before {
                    width: 230px;
                }

                span {
                    font-size: 26px;
                }
            }

            &.click-here {
                font-size: 26px;

                span {
                    font-size: 20px;
                }
            }
        }
    }

    .more-info {
        font-size: 18px;
        display: flex;
        align-items: center;
        width: 280px;
        height: 40px;
        padding-left: 77px;

        &::after {
            width: 1.3em;
            height: 1.5em;
            margin-left: 2em;
        }
    }
}

#sticky-sns {
    top: 80px;
    margin-bottom: 0;

    .sns-container {

        .tik-tok,
        .instagram {
            width: 70px;
        }
    }
}

#charm {
    margin-top: 0;

    .container {
        padding-top: 25px;
        margin: 0;
        border-width: 5px;

        .sleeping-dog {
            .img-container {
                width: 200px;
                height: 170px;
            }

            .bubble-group {
                right: 120px;

                .bubble {
                    width: 25px;

                    &:nth-of-type(1) {
                        right: 50px;
                    }

                    &:nth-of-type(2) {
                        right: 20px;
                    }

                    &:nth-of-type(3) {
                        top: 24px;
                    }
                }
            }

            .snore {
                top: 80px;
                right: 80px;
                width: 130px;

                span {
                    &:not(.caption) {
                        font-size: 14px;

                        span {
                            font-size: calc(100% + 2px);
                        }
                    }
                }
            }
        }

        h2 {
            font-size: 32px;

            span {
                &:nth-of-type(3) {
                    font-size: 56px;
                }
            }
        }

        ol {
            li {
                .img-container {
                    &::before {
                        animation-name: none;
                    }
                }
            }
        }
    }
}

#price {
    padding-bottom: 61px;

    .type-1 {
        display: block;
        transform: none !important;

        ~.swiper-nav {
            display: none;
        }
    }

    >.img-container {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 218px;
        height: 291px;

        p {
            font-size: 20px;
            top: unset;
            right: 50px;
            left: unset;
            bottom: 110%;
            width: 330px;
            translate: unset;

            &::before {
                width: 282px;
            }

            &::after {
                width: 325px;
            }

            span {
                font-size: 28px;
            }
        }
    }
}

#example {
    .house-symbol {
        span {
            &.img-container {
                right: 40px;
                width: 64px;
            }
        }
    }

    .type-1 {
        .slide {
            dl {
                dd {
                    &:not(.img-container) {
                        span {
                            &.deco {
                                width: 80px;
                            }
                        }
                    }
                }
            }
        }
    }

    .link-container {
        a {
            border-width: 3px;
        }
    }
}

#before-after {
    .collision {
        height: 754px;
    }

    .row-from-pc {
        >div {
            &:not(.img-container) {
                >p {
                    font-size: 28px;
                    width: 462px;
                    height: 99px;

                    span {
                        &.yellow {
                            font-size: 32px;
                        }

                        &:nth-of-type(2) {
                            font-size: 22px;
                        }

                        &:nth-of-type(4) {
                            font-size: 19px;
                        }
                    }
                }

                .cost {
                    width: 462px;
                    padding: 10px 15px;

                    p {
                        font-size: 20px;
                        height: 253px;

                        span {
                            &:not(.line) {
                                font-size: 28px;
                            }

                            &.line {
                                width: 300px;
                            }
                        }
                    }
                }
            }

            &.img-container {
                width: 334px;
                height: 417px;

                p {
                    font-size: 24px;
                    top: 50%;
                    left: 120%;
                    width: 250px;
                    translate: 0 -50%;

                    &::before {
                        top: -20px;
                        width: 280px;
                    }

                    &::after {
                        bottom: -20px;
                        width: 272px;
                    }

                    span {
                        font-size: 33px;
                    }
                }
            }
        }
    }
}

#flow {
    .column-from-tb {
        &:nth-of-type(1) {
            .house-symbol {
                margin-bottom: 63px;
            }

            >.img-container {
                order: -1;
                width: 266px;
                height: 257px;

                p {
                    font-size: 24px;
                    width: 440px;

                    &::before {
                        right: -10px;
                        width: 409px;
                    }

                    &::after {
                        width: 422px;
                    }

                    span {
                        font-size: 28px;
                    }
                }
            }
        }

        &:nth-last-of-type(1) {
            ol {
                display: contents;

                li {

                    &:nth-last-of-type(2),
                    &:nth-last-of-type(1) {
                        order: 2;
                    }
                }
            }

            .img-container {
                height: 432px;
                margin-top: 60px;
                margin-bottom: 50px;
                clip-path: polygon(100% 100%, 25% 100%, 5% 50%, 30% 0, 100% 0);
            }
        }
    }

    >.img-container {
        &:nth-of-type(2) {
            height: 703px;
        }
    }

    dialog {

        &::scroll-button(right),
        &::scroll-button(left) {
            top: 460px;
        }

        &::scroll-button(right) {
            right: calc(50% - 125px);
        }

        &::scroll-button(left) {
            left: calc(50% - 125px);
        }

        .slide {
            .thumb {
                height: 390px;
                margin: 51px 36px 0;
            }
        }

        .close-btn {
            right: 40px;
            bottom: 40px;
        }
    }
}

.tag-button-group-blog {
    gap: 20px 50px;

    button {
        width: 190px;
    }
}

#tag-date-container {

    #tag-container,
    #date-container {
        h3 {
            font-size: 24px;
            margin-bottom: 50px;
        }

        form {
            gap: 30px;
        }
    }
}

#blog-archive {
    .row-from-pc {
        #blogs {
            padding-top: 60px;

            article {
                justify-content: space-between;
                align-items: center;
                width: 640px;
                height: 217px;

                .thumb {
                    width: 240px;
                    height: 160px;
                }

                .texts {
                    flex: 1;

                    .blog-meta {
                        padding: 0;
                        margin-bottom: 6px;
                    }

                    p {
                        padding: 0;
                    }

                    .link-container {
                        margin-top: 10px;
                    }
                }
            }

            .pagenavi {
                width: 370px;

                a,
                span {
                    width: 55px;
                    height: 55px;
                }
            }
        }
    }

    .dog {
        padding-top: 135px;

        .img-container {
            width: 302px;
            height: 292px;

            p {
                bottom: 90%;
            }
        }
    }
}

#construction-example {
    .house-symbol {
        span {
            &.img-container {
                right: 77px;
                bottom: 25px;
                width: 50px;
                height: 55px;
            }
        }
    }

    #tag-button-group-cons {
        h3 {
            font-size: 24px;
            margin-bottom: 40px;
        }

        form {
            gap: 20px 50px;
            width: 676px;
            margin: auto;

            button {
                width: 190px;
            }
        }
    }

    #constructions {
        gap: 40px 25px;
    }
}

#about-corpo {
    .border-container {
        border-width: 5px;

        .house-symbol {
            padding-left: 100px;
        }

        .container {
            .president-container {
                position: relative;
                width: fit-content;
                margin: 60px auto;

                .img-container {
                    position: relative;
                    width: 560px;
                    height: 435px;
                    overflow: clip;
    
                    img {
                        position: absolute;
                        top: -30%;
                        left: -10%;
                        width: 140%;
                        height: 140%;
                        object-fit: cover;
                    }
                }
            }

            .name {
                color: #fff;
                right: unset;
                bottom: unset;
                top: 100%;
                left: 0;

                span {
                    font-size: 18px;
                }
            }

            #president-greeting {
                width: 688px;
                margin: 40px auto 0;
                padding: 120px 61px 40px 67px;

                h3 {
                    font-size: 32px;
                    -webkit-text-stroke-width: 8px;
                }

                strong {
                    font-size: 20px;
                    margin-bottom: 1em;
                }

                p {
                    font-size: 18px;
                }

                .img-container {
                    position: absolute;
                    right: 15px;
                    bottom: 15px;
                    display: block;
                    width: 185px;
                    height: 217px;

                    &.for-mb {
                        display: none;
                    }

                    img {
                        object-fit: cover;
                    }
                }
            }
        }
    }

    #corpo-info {
        padding: 60px 0;

        dl {
            width: 688px;
            padding: 21px 40px;

            dt,
            dd {
                display: inline;
            }

            dd {
                padding-left: .5em;

                &.full-width {
                    padding-left: 0;
                }

                span {
                    display: inline;
                    padding-left: 1.5em;
                }
            }
        }
    }
}

#blog {
    .house-symbol {
        padding-left: 100px;

        span {
            &.img-container {
                right: 75px;
                width: 60px;
            }
        }
    }

    .row-from-pc {
        #single-texts {
            article {
                .blog-meta {
                    position: relative;
                    margin: 0;

                    >span {
                        padding-left: 198px;

                        time {
                            padding-right: 2em;
                        }
                    }

                    .tag-button-group-blog {
                        button {
                            position: absolute;
                            right: 80px;
                            bottom: 10px;
                        }
                    }
                }

                .thumb {
                    width: 400px;
                    height: 254px;
                }

                .texts {
                    margin: 0 40px;
                }
            }

            .navigation {
                flex-direction: row;
                justify-content: center;
                gap: 60px;
            }
        }
    }
}

#construction {
    .house-symbol {
        padding-left: 109px;

        span {
            &.img-container {
                bottom: 30px;
                width: 47px;
                height: 47px;
            }
        }
    }

    #construction-prime {
        .row-from-pc {
            .thumb {
                width: 330px;
                height: 330px;

                p {
                    font-size: 20px;
                    width: 160px;
                    height: 38px;
                }
            }

            .measure-nav {
                #construction-swiper {
                    .swiper-wrapper {
                        height: 450px;
                    }

                    #construction-swiper-pagi {
                        gap: 25px;
                        height: 100px;
                        padding-top: 20px;

                        .swiper-pagination-bullet {
                            width: 20px;
                            height: 20px;
                        }
                    }

                    .slide {
                        &::scroll-marker {
                            width: 20px;
                            height: 20px;
                        }
                    }
                }

                .swiper-nav {
                    top: calc(50% - 80px);
                    width: 80px;
                    height: 80px;
                }
            }
        }
    }

    #construction-info {
        width: 670px;

        li {
            &:not(:first-of-type) {
                dl {
                    dd {
                        text-align: center;
                    }
                }
            }

            dl {
                dt {
                    font-size: 25px;
                }

                dd {
                    padding: 22px 45px;
                }
            }
        }
    }

    .navigation {
        display: flex;
        justify-content: space-between;
        width: 87vw;
        margin: 0 auto;

        .contents {
            display: contents;
        }

        a {
            height: 60px;
            margin: 0;

            &.prev-link,
            &.next-link {
                width: 120px;
            }

            &.next-link {
                order: 1;
            }
        }
    }
}

@position-try --to-more-top {
    right: anchor(right);
    left: unset;
    bottom: calc(anchor(top) + 10px);
}