@charset "UTF-8";

/*
Theme Name: jinbun-wp
Author: 株式会社Compass
Version: 20260601
*/

/*レイヤー宣言*/
@layer reset, page-base;
@import url(css/reset.css) layer(reset);

@layer page-base {

    /*色定義*/
    :root {
        --color-p: #4d4d4d;
        --color-s: #7a7a7a;
        --color-ex1: #f9f9f5;
        --color-ex2: #efefea;
        --color-ex3: #83ff83;
    }

    *:where(:not(#wpadminbar *)) {
        color: var(--color-p);
        border-color: #cccccc;
        font-family: "Zen Kaku Gothic New", sans-serif;
        font-size: clamp(16px, calc(11.652173913043478px + 1.0869565217391304vw), 20px);
        font-weight: 400;
        letter-spacing: .05em;
        line-height: 1.5;
        text-wrap: wrap;
        max-inline-size: none;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        position: relative;
        overflow-x: clip;
        container-type: inline-size;
        background-color: var(--color-ex1);
    }

    main {
        position: relative;
    }

    section {
        margin-bottom: 80px;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-weight: bold;
        font-family: "Shippori Mincho", serif;
        font-weight: 600;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: clamp(24px, calc(19.652173913043477px + 1.0869565217391304vw), 28px);
        padding-top: 30px;
        margin-bottom: 30px;
        text-align: center;
    }

    h3 {
        font-size: clamp(20px, calc(15.652173913043478px + 1.0869565217391304vw), 24px);
        margin: 1em 0 .75em;
        text-indent: -20px;

        &:first-letter {
            border-left: 5px solid var(--color-ex3);
            margin-left: 20px;
            padding-left: 10px;
        }
    }

    p {
        font-size: clamp(16px, calc(11.652173913043478px + 1.0869565217391304vw), 20px);
        line-height: 1.8;
        text-align: justify;
        margin-bottom: 1em;
    }

    sup {
        background-color: inherit;
        padding: 0;
        margin-left: 0;
        font-size: 0.75em;
        font-weight: inherit;
    }

    :where(ol, ul) {
        padding-inline-start: 1em;
    }

    ul {
        list-style-type: none;
    }

    a {
        text-decoration-line: none;
    }

    img {
        /*参考: https://coliss.com/articles/build-websites/operation/css/sensible-defaults-for-img-elements.html */
        max-width: 100%;
        height: auto;
        vertical-align: middle;
        font-style: italic;
        background-repeat: no-repeat;
        background-size: cover;
        shape-margin: 0.75rem;
        margin: auto;
    }

    table {
        width: 100%;
        margin: 40px auto;

        tr {
            border-top: 1px solid #040000;
            border-bottom: 1px solid #040000;
        }

        th,
        td {
            padding: 20px 1em;
            display: block;
        }
    }

    .container {
        padding: 0 2em;
        margin: 0 auto;
        max-width: 1100px;
        overflow: visible;
    }

    .fit-text {
        width: fit-content;
        margin: auto;
    }

    .header-nav,
    .footer-nav {
        display: flex;
        justify-content: space-between;
        padding: 30px;
    }

    .sp-none,
    .tb-none {
        display: none;
    }

    .cols {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;

        &>div {
            width: 100%;
            margin: 40px 0 0;
        }
    }

    .cols.reverse {
        flex-direction: row-reverse;
    }

    .img-box {
        p {
            margin-top: 40px;
        }
    }

    /*header*/
    header {
        position: sticky;
        top: 0;
        z-index: 10;
        padding: 0 30px;
        min-height: 70px;
        width: 100%;
        margin: auto;
        background-color: var(--color-ex1);
        /* box-shadow: 0px 2px 3px #192950;*/
        border-bottom: 1px solid var(--color-p);

        .container {
            padding: 0;
        }
    }

    .header-nav {
        align-items: center;

        h1 {
            margin: 10px 0;

            img {
                width: 200px;
                display: block;
            }
        }

        .menu-check {
            display: none;
        }

        .menu-button {
            display: flex;
            justify-content: center;
            align-items: center;
            position: absolute;
            right: 50px;
            top: 34px;
            z-index: 100;
            cursor: pointer;

            span,
            span:before,
            span:after {
                content: '';
                display: block;
                height: 3px;
                width: 25px;
                border-radius: 3px;
                background: #192950;
                transition: 0.5s;
                position: absolute;
            }

            span:before {
                bottom: 8px;
            }

            span:after {
                top: 8px;
            }
        }

        .pc-to-contact {
            & p {
                font-size: 16px;
                line-height: 1.2;
                margin-bottom: 0;
                border: 1px solid #4d4d4d;
                padding: 0 10px 5px;
            }
        }
    }

    #menu-switch:checked~.menu-button {
        span {
            background: rgb(255 255 255 / 0%);
        }

        span::before {
            bottom: 0;
            transform: rotate(45deg);
        }

        span::after {
            top: 0;
            transform: rotate(-45deg);
        }
    }

    .mobile-menu nav {
        width: 100%;
        height: 100%;
        position: fixed;
        bottom: 100%;
        left: 0%;
        z-index: 99;
        transition: .5s;
        text-align: center;
        margin-bottom: 0;

        a {
            font-size: 16px;
        }
    }

    #menu-switch:not(:checked)~nav {
        bottom: 150%;
    }

    #menu-switch:checked~nav {
        bottom: 0;
        /*bottom: 10%;*/
    }

    .mobile-menu {
        nav ul {
            padding: 0;
            display: block;
            width: 100%;
            text-align: left;
            background-color: var(--color-ex1);

            li {
                padding: 20px 4em;
                margin: 0;
                width: 100%;
                border-bottom: 1px solid rgb(51 51 51 / 5%);
            }
        }
    }

    /*footer*/
    footer {
        padding: 20px 0;
        background-color: var(--color-ex2);

        h1 {
            margin: 0;
        }

        img {
            display: block;
        }

        nav {
            margin-bottom: 20px;
        }

        .cols {
            display: block;
        }
    }

    .footer-copy {
        text-align: center;
        padding: 1em;

        small {
            color: #ffffff;
        }
    }

    /*main*/
    main {
        padding: 0;
    }

    .center {
        text-align: center;
    }

    .button-flame {
        text-align: center;
    }

    .button {
        text-align: center;
        color: #ffffff;
        background-color: #2975A7;
        padding: 10px 2em;
        transition: .5s;
        display: inline-block;

        &:hover {
            opacity: .75;
        }
    }

    .fa-solid {
        border: none;
        margin: 0;
        padding: 0;
        padding-left: .5em;
    }

    #kv {
        margin-bottom: 0;
        position: relative;
        background-image: url(img/kv-index.jpg);
        background-repeat: no-repeat;
        background-size: cover;

        .container {
            position: relative;
            height: 40vw;

            h2 {
                position: absolute;
                text-align: left;
                margin: 0;
                padding: 0;
                top: 40%;
                font-size: clamp(24px, calc(19.652173913043477px + 1.0869565217391304vw), 28px);
            }
        }
    }

    #contact {
        .cols {
            justify-content: space-around;
        }
    }

    @counter-style circle-num {
        system: fixed;
        symbols: ① ② ③ ④ ⑤ ⑥ ⑦ ⑧ ⑨ ⑩ ⑪ ⑫ ⑬ ⑭ ⑮ ⑯ ⑰ ⑱ ⑲ ⑳;
        suffix: "";
    }

    @container (width >=1140px) {
        .container {
            padding-left: 0;
            padding-right: 0;
        }
    }
}

.front-page {
    #about {
        h3 {
            margin-top: 0;
        }

        p:last-of-type {
            margin-bottom: 0;
        }

        img {
            display: block;
            width: 100%;
            max-width: 400px;
        }
    }

    #logo {
        background-image: url(img/logo-bg.png);
        background-repeat: no-repeat;
        /*background-size: cover;
        background-position: left;*/
        background-size: contain;
        background-position: right;

        .fit-text {
            margin-left: 0;
        }
    }

    #service {
        background-color: var(--color-ex2);
        padding-top: 50px;
        padding-bottom: 80px;

        img {
            display: block;
            max-width: 400px;
            width: 100%;
        }

        .cols {
            margin-bottom: 80px;
        }

        .service-sub {
            background-color: var(--color-ex1);
            padding: 30px;
            /*padding-left: 50px;*/

            h3:first-of-type {
                margin-top: 0;
            }

            h3:last-of-type {
                margin-bottom: 0;
            }
        }
    }

    #contact {
        h3 {
            margin-top: 0;
            text-indent: 0px;

            &:first-letter {
                border-left: none;
                margin-left: 0;
                padding-left: 0;
            }
        }

        p {
            margin-bottom: 0;
            color: var(--color-s);
        }

        iframe {
            height: 300px;
        }

        .cols {
            align-items: center;
        }

        .contact-tel {
            font-size: clamp(24px, calc(19.652173913043477px + 1.0869565217391304vw), 28px);
            font-weight: 500;
            letter-spacing: .4em;
            color: inherit;
        }
    }
}

.privacy {

    ul,
    ol {
        margin-bottom: 1em;
    }

    ul {
        list-style-type: disc;
    }

    ol {
        list-style-type: decimal;
    }

    a {
        color: #e50012;
    }

    #policy-text {
        margin-top: 70px;
    }
}

.junbi {
    section {
        margin-bottom: 70vh;
    }
}

@media screen and (min-width: 768px) {
    @layer page-base {
        section {
            margin-bottom: 100px;
        }

        table {

            th,
            td {
                display: table-cell;
            }
        }

        footer {
            .cols {
                display: block;
            }
        }

        .container {
            width: 100%;
        }

        .sp-none {
            display: block;
        }
    }

    .front-page {
        #about {
            h2 {
                margin-bottom: 60px;
            }

            .about-1 {
                margin-bottom: 70px;
            }

            .about-2 {}
        }

        #logo {
            h2 {
                margin-bottom: 100px;
            }
        }

        #service {
            padding-top: 70px;
            padding-bottom: 100px;

            h2 {
                margin-bottom: 60px;
            }

            img {
                max-width: none;
            }

            .cols {
                justify-content: space-between;
                align-items: stretch;

                .img-box {
                    width: 45%;
                }
            }
        }

        #contact {
            h2 {
                margin-bottom: 60px;
            }

            .cols {
                margin-bottom: 60px;
            }
        }
    }
}

@media screen and (min-width: 1100px) {
    @layer page-base {
        .header-nav {

            .menu-button {
                display: none;
            }

            .mobile-menu {
                min-width: 60%;
            }

            h1 {
                margin: 20px 0;
            }

            nav ul {
                padding: 0;
                display: flex;
                justify-content: space-around;
                background-color: transparent;
            }

            nav a {
                display: block;
            }
        }

        #menu-switch:not(:checked)~nav {
            bottom: 0;
        }

        .mobile-menu nav {
            padding: 0;
            position: relative;

            ul li {
                padding: 0;
                margin: 0;
                border-bottom: none;
                width: fit-content;
            }
        }

        footer {
            .cols {
                align-items: center;
                justify-content: space-between;
                display: flex;
            }

            nav {
                margin-bottom: 0;
            }

            img {
                display: block;
                width: 200px;
            }

            ul {
                display: flex;
                gap: 1em;
            }
        }

        .tb-none {
            display: block;
        }

        .pc-none {
            display: none;
        }

        .cols {
            justify-content: space-around;
            align-items: stretch;

            .left,
            .right,
            .inner {
                width: 45%;
            }
        }
    }

    .front-page {
        #about {
            img {
                max-width: none;
            }

            .about-1 {
                gap: 30px;

                .left {
                    width: 49%;
                }

                .right {
                    width: 50vw;
                    margin-right: calc(50% - 52vw);
                }
            }

            .about-2 {
                gap: 30px;

                .right {
                    width: 49%;
                }

                .left {
                    width: 50vw;
                    margin-left: calc(50% - 52vw);
                }
            }
        }
    }
}