@charset "UTF-8";

/* 全ページ共通項目 */

:root {
    --baseblack: #292929;
    --basewhite: #ddd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Noto Sans JP", sans-serif;
}

h1,
h2,
h3 {
    font-family: "Shin Go Bold", "Noto Sans JP", sans-serif;
}

html,
body {
    overflow-x: hidden;
    scroll-padding-top: 200px;
    color: var(--baseblack);
}

.wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

p {
    text-align: justify;
}

a {
    text-decoration: none;
    color: #433d3a;
}

img {
    display: block;
}

table {
    border-collapse: collapse;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    height: 200px;
    width: 100vw;
    background: #130142;
    transition: top .3s;

    * {
        color: var(--basewhite);
    }
}

.unset {
    top: -200px;
}

header>div {
    height: 144px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header>div h1 {
    font-size: 48px;
}

main,
footer {
    position: relative;
}

main {
    margin-top: 200px;
}

#menubtn {
    width: 60px;
    aspect-ratio: 1;
    border: 2px solid var(--basewhite);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

#menubtn div {
    width: 60%;
    height: 2px;
    background-color: var(--basewhite);
    position: absolute;
    left: 20%;
    top: 50%;
}

#btnt {
    transform: translateY(calc(-50% - 10px));
}

#btnm {
    transform: translateY(-50%);
}

#btnb {
    transform: translateY(calc(-50% + 10px));
}

header nav {
    height: 56px;
    background: #20026b;
}

header nav>ul {
    height: 100%;
    list-style-type: none;
    display: flex;
    justify-content: end;
    align-items: center;
    background: inherit;
}

header nav>ul>li {
    background: inherit;
    font-weight: bold;
    font-size: 24px;
    width: 180px;
    height: 100%;
    position: relative;

    &:first-child::before {
        display: block;
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 1px;
        height: 50%;
        background-color: var(--basewhite);
    }

    &::after {
        display: block;
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 1px;
        height: 50%;
        background-color: var(--basewhite);
    }

    & a {
        background: inherit;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: filter .3s;
    }

    & ul {
        background: inherit;
        position: absolute;
        top: 100%;
        left: 0;
        height: auto;
        width: 100%;
        list-style-type: none;
        overflow: hidden;
        transition: height .3s;

        & li {
            height: 56px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-top: 1px solid var(--basewhite);
            position: relative;

            & a {
                background: inherit;
                transition: filter .3s;
            }
        }
    }
}

header nav>ul>li a:hover {
    filter: brightness(1.1);
}


aside {
    padding-top: 50px;
    background-color: #433d3a;
    color: var(--basewhite);
    position: fixed;
    width: 35vw;
    height: 100vh;
    left: -35vw;
    top: 0;
    z-index: 10000;
    transition: left .3s;
}

.side_open {
    left: 0;
}

aside a {
    color: inherit;
}

aside h1 {
    font-family: "Kiwi Maru", serif;
    text-align: center;
    margin-bottom: 50px;
}

aside nav {
    font-weight: bold;
}

aside nav ul li {
    padding: 30px 0;
}

aside nav>ul>li {
    border-bottom: 3px solid var(--basewhite);
}

aside nav ul li:has(details) {
    padding: 0;
}

aside nav ul li details ul {
    font-weight: normal;
    overflow: hidden;
    height: 0;
    transition: height .3s;
}

aside nav ul li details ul li {
    border-top: 1px solid var(--basewhite);
}

aside nav ul li details summary {
    padding: 30px 0;
    list-style: none;
    position: relative;
}

aside nav ul li a {
    margin-left: 60px;
}

aside nav ul li details summary>div {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 1em;
    height: 1em;
    border: 1px solid var(--basewhite);
    cursor: pointer;

    & .horizontal {
        width: 100%;
        height: 1px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: var(--basewhite);
    }

    & .vertical {
        height: 100%;
        width: 1px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--basewhite);
        transition: all .3s;
    }
}

.rotate90 {
    rotate: 90deg;
}

footer {
    height: 300px;
    background: #b9b9b9;

    * {
        color: var(--baseblack);
    }
}

footer h1 a {
    font-family: "Helvetica", sans-serif;
}

footer h2 {
    font-size: 20px;
    margin-bottom: 30px;
}

footer div {
    height: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer div>* {
    width: 50%;
}

footer div>ul {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    font-size: 20px;
}

footer div>ul>li ul {
    list-style-type: none;
    font-size: 14px;
}

footer div>ul>li ul li {
    margin-bottom: 10px;
}

/* ここからトップページ */

#mainvisual {
    position: relative;
    margin-bottom: 80px;

    &>ul>li {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100vw;
        aspect-ratio: 4 / 2;
        justify-content: center;
        padding: 5vw;
        text-shadow: #fff 0 0 3px, #fff 0 0 3px, #fff 0 0 3px, #fff 0 0 3px, #fff 0 0 3px, #fff 0 0 3px;

        h1 {
            margin-bottom: 3vw;
            font-family: "Noto Serif JP", serif;
            font-size: 3vw;
            color: #1584AF;
        }

        p {
            font-size: 1.8vw;
            line-height: 1.5;
            letter-spacing: .5vw;
            width: 60%;
        }

        &.swiper-slide1 {
            background-image: url(images/mainvisual1.png);
            background-position: 50% 0;
            background-size: cover;

        }

        &.swiper-slide2 {
            background-image: url(images/mainvisual2.png);
            background-position: 50% 35%;
            background-size: cover;
        }

        &.swiper-slide3 {
            background: linear-gradient(#ff9007, #ffc379);
            position: relative;
            text-shadow: none;
            font-weight: bold;
            display: block;
            letter-spacing: 0;
            overflow: hidden;

            & * {
                letter-spacing: 0;
            }

            &>* {
                position: absolute;
            }

            h1 {
                color: #fff;
                top: 3%;
                left: -5%;
                background-color: #fa3e8b;
                width: 120%;
                padding: 1% 10%;
                font-size: 3cqw;
                letter-spacing: .2em;
                rotate: -3deg;
                filter: drop-shadow(5px 5px 5px #292929);
                font-family: "Maru Folk Medium", serif;
            }

            ul {
                right: 0;
                top: 22%;
                list-style-type: none;
                width: 50%;

                li {
                    font-size: 1.3cqw;
                    background-color: #ffe72e;
                    padding: 1em 3em;
                    clip-path: polygon(0 0, 100% 0, 100% 100%, 5% 100%);

                    &:first-child {
                        margin-bottom: 1em;
                    }
                }
            }

            .left {
                height: 13cqw;
                aspect-ratio: 1;
                top: 25%;
                border-radius: 50%;
                background-color: #fff;
                display: flex;
                justify-content: center;
                align-items: center;
                animation: popup 2s linear infinite forwards;

                p {
                    text-align: center;
                    font-size: 2cqw;
                    color: #d82e2e;
                    position: relative;
                    letter-spacing: .2em;

                    span {
                        font-family: inherit;
                        font-size: 1.7em;
                    }

                }

                &::before {
                    display: block;
                    content: "";
                    position: absolute;
                    right: 0;
                    bottom: 0%;
                    width: 50%;
                    aspect-ratio: 1;
                    background-color: #fff;
                    clip-path: polygon(50% 0, 100% 100%, 0 50%);
                }

            }


            .afterservice {
                height: 13cqw;
                aspect-ratio: 2 / 1;
                background-color: #0f5e1b;
                border-radius: 1em;
                top: 25%;
                left: 20%;
                display: flex;
                justify-content: center;
                align-items: center;

                p {
                    font-family: "Noto Serif JP", serif;
                    color: #fff;
                    text-align: center;
                    font-size: .8cqw;
                    width: 100%;
                    letter-spacing: .2em;
                    display: inline-flex;
                    justify-content: center;
                    align-items: center;
                    gap: 5%;

                    span:first-child {
                        font-family: inherit;
                        font-size: 2.5em;
                    }

                    span:last-child {
                        font-family: inherit;
                        font-size: 7em;
                        letter-spacing: .1em;
                    }
                }
            }

            .free {
                bottom: 10%;
                font-size: 13cqw;
                line-height: 1em;

                span {
                    display: inline-block;
                    margin-right: .55em;
                    background-color: #fff;
                    padding: 3%;
                    color: #d82e2e;
                }
            }

            div:has(img) {
                bottom: -12%;
                right: 0;
                width: 50%;
                filter: drop-shadow(0 5px 5px);

                img {
                    width: 100%;
                }
            }

            .domain {
                bottom: 3%;
                text-align: center;
                font-size: 1cqw;
                width: 100%;
                letter-spacing: .5em;
                br {
                    display: none;
                    &:nth-of-type(2) {
                        display: inline;
                    }
                }

                &::before {
                    content: "※";
                }
            }
        }
    }

    .swiper-pagination-bullet {
        background-color: #022b43;
        border: 1px solid #fff;
    }
}

@keyframes popup {

    0%,
    12%,
    25% {
        transform: translateY(0);
    }

    6%,
    18% {
        transform: translateY(-10%);
    }
}


#introduction,
#ability {
    display: flex;
    gap: 50px;
    margin-bottom: 80px;
}

#introduction {
    justify-content: space-between;

    article p img {
        float: right;
        width: 150px;
        height: 150px;
        clip-path: circle();
        margin-left: 10px;
        margin-bottom: 10px;
    }
}

#introduction h1,
#ability h1 {
    font-size: 36px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

#introduction article>div,
#ability article>div {
    color: #fff;
    float: right;
    height: 30px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    font-weight: bold;
    transform: translateY(15px);
}

#introduction article>div {
    background-color: #980000;
}

#ability article>div {
    background-color: #000066;
}

#introduction h1::before,
#ability h1::before {
    display: block;
    content: "";
    width: 36px;
    height: 36px;
    margin-right: 30px;
    background-color: #99ccff;
}

#introduction p,
#ability p {
    line-height: 2;
    letter-spacing: 5px;
}

#ability article {
    flex-grow: 1;
}

#ability article table {
    letter-spacing: 5px;
    line-height: 2;
}

#ability article table th,
#ability article table td {
    padding: 10px;
}

#ability article table tr {
    height: 35px;
    border-bottom: 1px solid var(--basewhite);
}

#ability article table th {
    text-align: left;
    width: 30%;
}

#ability_detail {
    --basecolor: #fff7b3;
    background-color: var(--basecolor);
    padding: 3cqw 0;

    ul {
        list-style-type: none;
        display: flex;
        justify-content: start;
        gap: 3cqw;
        flex-wrap: wrap;

        li {
            width: calc((100% - 6cqw) / 3);
            background-color: var(--basecolor);
            border-radius: 1cqw;
            padding: 2cqw;
            filter: drop-shadow(0 0 .5em rgba(255, 195, 44, 0.5));

            &>div {
                aspect-ratio: 1 / .5;
                display: flex;
                justify-content: center;
                align-items: center;
                background-color: #fff;
                border-radius: 1cqw;
                margin-bottom: 1cqw;

                img {
                    display: block;
                    width: 50%;
                }
            }

            article {
                h2 {
                    font-size: 1.4cqw;
                    margin-bottom: .5cqw;
                    text-align: center;
                }

                p {
                    font-size: 1.2cqw;
                    text-align: justify;
                }
            }
        }
    }
}

/* ここからWorks, Contact */

.sub main {
    margin-top: 280px;
}

.works section,
#contact {
    margin-bottom: 80px;

    &>* {
        max-width: 800px;
        margin: 0 auto;
    }

    >div {
        display: flex;
        gap: 100px;
        align-items: center;
        margin-bottom: 30px;

        & h1 {
            font-size: 36px;
            display: flex;
            align-items: center;

            &::before {
                content: "";
                display: block;
                width: 36px;
                height: 36px;
                margin-right: 36px;
                background-color: #99ccff;
            }
        }

        &>div {
            height: 30px;
            display: flex;
            align-items: center;
            padding-left: 20px;
            padding-right: 20px;
            background-color: #528c47;
            color: #fff;
            font-weight: bold;
        }
    }

    >div:nth-child(2) {
        gap: 30px;
        align-items: start;

        >* {
            width: calc((100% - 30px) / 2);
            font-style: normal;
        }

        & p {
            margin-bottom: 10px;
            letter-spacing: 5px;
        }

        & img {
            width: 100%;
        }

    }

    & ul {
        list-style-type: none;
        max-width: 800px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;

        li img {
            display: block;
            width: 100%;
            aspect-ratio: 4 / 3;
            object-fit: cover;
            margin-bottom: 10px;
        }

        & li p {
            text-align: center;
        }

    }

    &#logo {
        ul li img {
            object-fit: contain;
        }
    }
}

.works section#banner {
    form {
        background-color: #ffc8d7;
        margin-bottom: 30px;
        padding: 10px;

        p {
            line-height: 2;

            &:first-child {
                margin-bottom: 10px;
                letter-spacing: .2em;
            }

            &:nth-child(2) {
                margin-bottom: 10px;

                label {
                    margin-right: 1em;

                    &:last-child {
                        margin: 0;
                    }
                }

                br {
                    display: none;
                }
            }

            &:last-child {
                text-align: center;

                input:is([type="button"], [type="reset"]) {
                    margin: 0 .5em;
                    padding: 1em 3em;
                    border-radius: 9999px;
                    border: none;
                    background-color: #fff;
                    cursor: pointer;
                    transition: all .3s;

                    &:hover {
                        background-color: var(--baseblack);
                        color: #fff;
                    }
                }
            }
        }
    }

    h2 {
        border-bottom: 5px solid #ffc8d7;
        margin-bottom: 5px;
    }

    ul {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        padding-bottom: 20px;

        li {
            display: flex;
            flex-direction: column;
            transition: all .3s;

            img {
                background-color: #ccc;
                aspect-ratio: 1;
                object-fit: contain;
                cursor: pointer;
            }
        }

        &:last-child {
            padding-bottom: 0;
        }
    }
}

.works dialog {
    --elmwidth: 40;
    position: fixed;
    padding: 2cqw;
    top: 15vh;
    left: calc(((100 - var(--elmwidth)) / 2) * 1vw);
    width: calc(var(--elmwidth) * 1vw);
    z-index: 10000;
    border: none;
    border-radius: .5rem;
    transform: scale(0);
    transition: transform linear .2s;
    background-color: rgba(255, 255, 255, .7);

    &>div:first-child {
        height: 40vh;
        margin-bottom: 1em;
        display: flex;
        justify-content: center;
        align-items: center;

        img {
            max-height: 100%;
            width: auto;
            max-width: 100%;
            margin: 0 auto;
        }
    }

    p {
        text-align: center;
        margin-bottom: 1em;
    }

    &>div:nth-of-type(2) {
        color: #fff;
        background-color: #130142;
        padding: .5em 1.2em;
        border-radius: 9999px;
        width: fit-content;
        margin: 0 auto;
        transition: filter .3s;
        cursor: pointer;

        &:hover {
            filter: brightness(1.7);
        }
    }
}


@media screen and (max-width: 767px) {

    /* 全ページ共通項目 */

    html,
    body {
        font-size: 14px;
        scroll-padding-top: 150px;
    }

    .wrapper {
        max-width: 80%;
    }

    header {
        height: 150px;

        &>div {
            height: 100px;
        }
    }

    header>div h1 {
        font-size: 24px;
    }

    #menubtn {
        width: 45px;
    }

    header nav {
        height: 50px;

        &>ul {
            justify-content: center;

            &>li {
                font-size: 12px;
                width: calc(100% / 3);

                & ul>li {
                    height: 40px;
                    font-size: 12px;
                }
            }
        }
    }

    main {
        margin-top: 150px;
    }

    aside {
        padding-top: 25px;
    }

    aside h1 {
        font-size: 16px;
        margin-bottom: 25px;
    }

    aside nav ul li {
        padding: 15px 0;
    }

    aside nav ul li details summary {
        padding: 15px 0;
    }

    aside nav ul li a {
        margin-left: 15px;
    }

    aside nav ul li details summary>div {
        right: 15px;
    }

    footer {
        height: auto;
        padding-bottom: 20px;
    }

    footer h1 {
        margin: 20px 0;
    }

    footer div {
        flex-wrap: wrap;
    }

    footer div>* {
        width: 100%;
    }

    footer h2 {
        margin-bottom: 15px;
    }

    /* ここからトップページ */

    #mainvisual {
        &>ul>li {
            aspect-ratio: 1;

            h1 {
                font-size: 18px;
            }

            p {
                width: 100%;
                font-size: 14px;
            }

            &.swiper-slide3 {
                h1 {
                    font-size: 5cqw;
                }

                ul {
                    right: auto;
                    left: 0;
                    top: 22%;
                    width: 40%;

                    li {
                        clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
                        font-size: 2cqw;
                    }
                }

                .left {
                    top: 40%;
                    width: 35%;
                    height: auto;
                    padding: .2em 0;
                    aspect-ratio: unset;
                    border-radius: 9999px;

                    p {
                        font-size: 3cqw;
                    }

                    &::before {
                        bottom: 50%;
                        right: auto;
                        left: 95%;
                        width: 10%;
                        aspect-ratio: 2;
                        clip-path: polygon(0 30%, 100% 0, 0 100%);
                    }
                }

                .afterservice {
                    top: auto;
                    bottom: 10%;
                    left: auto;
                    right: 5%;
                    height: 20%;

                    p {
                        font-size: .8cqw;

                        span:first-child {
                            font-size: 3em;
                        }

                        span:last-child {
                            font-size: 10em;
                        }
                    }
                }

                .free {
                    top: 22%;
                    bottom: auto;
                    text-align: right;
                    font-size: 20cqw;
                    transform: translateX(-5%);

                    span {
                        margin-right: 0.1em;
                    }
                }

                div:has(img) {
                    bottom: -2%;
                    right: auto;
                    left: 5%;
                }

                .domain {
                    width: 80%;
                    margin: 0 auto;
                    bottom: 34%;
                    left: 50%;
                    font-size: 2.5vw;
                    transform: translateX(-50%);
                    text-align: start;

                    br {
                        display: inline;
                    }
                }
            }
        }
    }

    #introduction {
        flex-direction: column;

        article p img {
            height: 120px;
            width: 120px;
        }
    }

    #ability {
        flex-direction: column-reverse;

        article table tr th {
            width: 33%;
        }
    }

    #introduction h1,
    #ability h1 {
        font-size: 24px;
    }

    #introduction article>div,
    #ability article>div {
        height: 20px;
        padding-left: 15px;
        padding-right: 15px;
        transform: translateY(10px);
    }

    #introduction h1::before,
    #ability h1::before {
        width: 25px;
        height: 25px;
        margin-right: 15px;
    }

    #ability_detail {
        padding: 10cqw 0;

        ul {
            flex-direction: column;
            gap: 5cqw;

            li {
                width: 100%;
                padding: 5cqw;
                border-radius: 3cqw;

                &>div {
                    margin-bottom: 5cqw;
                    border-radius: 3cqw;
                }

                article {

                    h2 {
                        font-size: 5cqw;
                        margin-bottom: 5cqw;
                    }

                    p {
                        font-size: 3cqw;
                    }
                }
            }
        }
    }

    /* ここからWorks, Contact */

    .sub main {
        margin-top: 200px;
    }

    .works section,
    #contact {
        justify-content: space-between;
        flex-wrap: wrap;
        column-gap: 0;
        row-gap: 10px;


        &>div {
            justify-content: space-between;
            gap: 0;

            & h1 {
                font-size: 24px;

                &::before {
                    width: 25px;
                    height: 25px;
                    margin-right: 15px;
                }
            }
        }
    }

    .works section#banner {
        form {
            p:nth-child(2) {
                br:nth-of-type(2) {
                    display: inline;
                }
            }

            p:last-child {
                input:is([type="button"], [type="reset"]) {
                    padding: .5em 2em;
                }
            }
        }
    }

    #contact>div:nth-child(2) {
        flex-direction: column-reverse;

        &>* {
            width: 100%;
        }

        & address {
            display: flex;
            justify-content: center;
            gap: 30px;

            &>* {
                width: calc((100% - 30px) / 2);
            }
        }
    }

    & iframe {
        height: 300px;
    }

    .works dialog {
        top: 50vh;
        translate: 0 -50%;
        --elmwidth: 85;

        &>div:first-child {
            height: auto;
        }
    }
}