@charset "UTF-8";

:root {
    /* Color */
    --color-black: #2f2f2f;
    --color-blue: #0747AB;
    --color-orange: #FF7B2C;

    /* Font */
    --font-base: "Noto Sans JP", sans-serif;
    --font-accent: "LINE Seed JP", sans-serif;

    /* fonts追加 */
    --font-message-title: "Noto Serif JP", serif;

    /* Layout */
    --content-width: 1240px;
    --sec-pad: 5rem;
    --radius: 20px;
    --transition: .3s ease;
}

@media (min-width: 768px) {
    :root {
        --sec-pad: 7.5rem;
    }
}

/* ===============================
    Base
================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

.sp-only {
    @media(min-width:768px) {
        display: none;
    }

}

html {
    font-size: 100%;
}

body {
    margin: 0;
    color: var(--color-black);
    font-family: var(--font-base);
    line-height: 1.8;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* ===============================
    Common
================================ */

.inner {
    padding: 0 28px;
    margin-inline: auto;
}

.section__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-blue);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 0.25em;

    &::before {
        content: "";
        display: block;
        width: 30px;
        height: 1px;
        background-color: var(--color-blue);
    }
}

.section__heading {
    margin-bottom: 35px;
}

@media (min-width: 1200px) {

    .section__title {
        gap: 10px;
        font-size: 1.25rem;
        letter-spacing: 0.25em;

        &::before {
            width: 50px;
        }
    }

    .section__heading {
        margin-bottom: 45px;
    }

}


/* ===============================
    Header
================================ */

.header {
    position: relative;
    z-index: 20;
    height: 85px;
    background-color: #fff;

    .header__inner {
        width: min(100% - 40px, var(--content-width));
        height: 100%;
        margin-inline: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        z-index: 11;
    }

    .header__logo {
        display: flex;
        align-items: center;
        gap: 7px;

        img {
            width: 175px;
            height: auto;
        }

        &:hover {
            opacity: .7;
        }
    }

    .header__nav {
        display: none;
    }

    .header__hamburger {
        position: relative;
        z-index: 11;
        width: 50px;
        height: 50px;
        border: 0;
        border-radius: 50%;
        background-color: var(--color-orange);

        span {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 2px;
            background-color: #fff;
            transition: var(--transition);

            &:nth-child(1) {
                transform: translate(-50%, -50%) translateY(-7px);
            }

            &:nth-child(2) {
                transform: translate(-50%, -50%);
            }

            &:nth-child(3) {
                transform: translate(-50%, -50%) translateY(7px);
            }
        }

        .is-open & {
            span {
                &:nth-child(1) {
                    transform: translate(-50%, -50%) rotate(45deg);
                }

                &:nth-child(2) {
                    opacity: 0;
                }

                &:nth-child(3) {
                    transform: translate(-50%, -50%) rotate(-45deg);
                }
            }
        }
    }

    .header__menu {
        position: fixed;
        inset: 0;
        z-index: 10;
        visibility: hidden;
        opacity: 0;
        padding: 100px 16px 40px;
        background-color: #fff;
        transition: opacity .3s ease, visibility .3s ease;

        .header__menu-nav {
            a {
                display: flex;
                align-items: center;
                justify-content: space-between;
                height: 71px;
                padding: 0 26px;
                border-bottom: 1px solid #C9C9C9;
                font-size: .875rem;
                letter-spacing: 0.05em;
                opacity: 0;
                transform: translateY(10px);
                transition: opacity .3s ease, transform .3s ease;

                .header__menu-arrow {
                    position: relative;
                    display: block;
                    width: 32px;
                    height: 32px;
                    border: 2px solid var(--color-blue);
                    border-radius: 50%;

                    &::before,
                    &::after {
                        content: "";
                        position: absolute;
                        top: 50%;
                        left: 50%;
                        width: 10px;
                        height: 2px;
                        border-radius: 999px;
                        background-color: var(--color-blue);
                    }

                    &::before {
                        transform: translate(-50%, -50%) rotate(45deg);
                        transform-origin: right center;
                    }

                    &::after {
                        transform: translate(-50%, -50%) rotate(-45deg);
                        transform-origin: right center;
                    }
                }

                &:hover {
                    color: #2A99DF;
                }
            }
        }

        .header__menu-contact {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 220px;
            height: 46px;
            margin: 70px auto 0;
            border-radius: 999px;
            background-color: var(--color-orange);
            color: #fff;
            font-size: .875rem;
        }
    }

    &.is-open {
        .header__menu {
            visibility: visible;
            opacity: 1;

            .header__menu-nav {
                a {
                    opacity: 1;
                    transform: translateY(0);

                    &:nth-child(1) {
                        transition-delay: .05s;
                    }

                    &:nth-child(2) {
                        transition-delay: .1s;
                    }

                    &:nth-child(3) {
                        transition-delay: .15s;
                    }

                    &:nth-child(4) {
                        transition-delay: .2s;
                    }

                    &:nth-child(5) {
                        transition-delay: .25s;
                    }
                }
            }
        }
    }
}

@media (min-width: 1200px) {

    .header {

        .header__inner {
            width: calc(100% - 144px);
            max-width: 1776px;
        }

        .header__hamburger {
            display: none;
        }

        .header__logo {
            img {
                width: 220px;
                height: auto;
            }
        }

        .header__nav {
            display: block;

            .header__nav-contact {
                a {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: 5px 21px;
                    border-radius: 999px;
                    background-color: var(--color-orange);
                    color: #fff;

                    &:hover {
                        opacity: .7;
                        color: #fff;
                    }
                }
            }

            ul {
                display: flex;
                align-items: center;
                gap: 60px;

                a {
                    font-size: .875rem;

                    &:hover {
                        color: var(--color-blue);
                    }
                }
            }
        }

        .header__menu {
            display: none;
        }
    }

}


/* ===============================
    MV
================================ */

.mv {
    position: relative;
    height: 715px;
    background-color: #fff;

    .mv__inner {
        position: relative;
        z-index: 2;
    }

    .mv__text {
        padding-top: 116px;
    }

    .mv__title {
        margin-bottom: 30px;
        color: var(--color-blue);
        font-family: var(--font-base);
        font-size: 2.8125rem;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: 0.05em;
    }

    .mv__copy {
        font-size: .875rem;
        line-height: 1.8;

        .pc-only {
            display: none;
        }
    }

    .mv__img {
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: 1;
        width: 100%;

        picture {
            display: block;
        }

        img {
            display: block;
            width: 100%;
            height: auto;
        }
    }
}

@media (min-width: 600px) and (max-width: 767px) {

    .mv {
        height: 900px;

        .mv__text {
            width: 100%;
            padding-top: 170px;
            margin-inline: auto;
            text-align: center;
        }

        .mv__img {
            bottom: 0;

            img {
                width: 100%;
            }
        }
    }

}

@media (min-width: 768px) and (max-width: 1199px) {

    .mv {

        .mv__inner {
            width: 100%;
            padding-inline: 35px;
        }

        .mv__text {
            padding-top: 160px;
            text-align: center;
        }

        .mv__title {
            font-size: clamp(45px, 6vw, 64px);
        }

        .mv__copy {
            font-size: clamp(14px, 2vw, 20px);
        }

    }

}

@media (min-width: 1200px) {
    .mv {
        height: 995px;

        .mv__inner {
            width: min(var(--content-width), calc(100% - 70px));
            padding: 0;
            margin-inline: auto;
        }

        .mv__text {
            width: 100%;
            padding-top: 230px;
            margin-inline: auto;
            text-align: center;


        }

        .mv__title {
            margin-bottom: 46px;
            font-size: 4.5rem;
            letter-spacing: 0.05em;
            white-space: nowrap;
        }

        .mv__copy {
            font-size: 1.5rem;
            line-height: 1.8;

            .pc-only {
                display: block;
            }


        }

        .mv__img {
            width: 100%;
            right: 0;
            bottom: 0;
            left: auto;
            top: auto;
        }
    }
}


/* ===============================
    Greeting
================================ */

.greeting {
    padding: 100px 0 66px;
    background-color: #fff;

    .inner {
        padding: 0 35px;
    }

    .greeting__title {
        color: var(--color-black);
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        margin-bottom: 24px;

        span {
            color: var(--color-orange);
        }
    }

    .greeting__body {
        font-size: .875rem;
        line-height: 1.3;
    }

    .greeting__text {
        margin-bottom: 14px;

        &:last-child {
            margin-bottom: 0;
        }
    }

    .pc-only {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {

    .greeting {

        .inner {
            padding-inline: 35px;
        }

        .greeting__title {
            text-align: center;
            font-size: clamp(22px, 3vw, 30px);
        }

        .greeting__body {
            width: 100%;
            margin-inline: auto;
            font-size: clamp(16px, 2vw, 22px);
        }

    }

}

@media (min-width: 1200px) {

    .greeting {
        padding-block: 156px;

        .inner {
            width: min(var(--content-width), calc(100% - 70px));
            padding: 0;
        }

        .section__heading {
            margin-bottom: 40px;
        }

        .greeting__title {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 45px;
        }

        .greeting__body {
            width: 1000px;
            margin-inline: auto;
            text-align: left;
            font-size: 1.5rem;
            line-height: 1.4;
        }
    }

}


/* ===============================
    Menu
================================ */

.menu {
    padding-bottom: 100px;
    background-color: #fff;

    .inner {
        padding: 0 35px;
    }

    .menu__list {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .menu__item {
        position: relative;
        display: flex;
        align-items: flex-end;
        width: 100%;
        height: 160px;
        padding: 16px 25px;
        border-radius: var(--radius);
        overflow: hidden;
        background-position: center;
        background-size: 120%;
        color: #fff;

        &::before {
            content: "";
            position: absolute;
            inset: 0;
            background-color: rgba(9, 129, 180, 0.55);
        }

        &:hover {
            opacity: .8;
        }
    }

    .menu__item--works {
        background-image: url("../img/works.webp");
    }

    .menu__item--company {
        background-image: url("../img/company.webp");
    }

    .menu__text {
        position: relative;
        z-index: 1;

        h3 {
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 1.8;
        }

        p {
            font-size: .8125rem;
            line-height: 1.5;
            font-weight: 300;
            line-height: 1.8;
        }
    }
}

@media (min-width: 768px) and (max-width: 1199px) {

    .menu {

        .inner {
            padding-inline: 35px;
        }

        .menu__list {
            flex-direction: row;
            gap: 30px;
        }

        .menu__item {
            width: calc((100% - 30px) / 2);
            height: 220px;
            padding: 25px 30px;
        }

        .menu__text {

            h3 {
                font-size: clamp(26px, 3vw, 34px);
            }

            p {
                font-size: clamp(14px, 1.6vw, 18px);
            }

        }

    }

}

@media (min-width: 1200px) {

    .menu {
        padding-bottom: 170px;

        .inner {
            width: min(var(--content-width), calc(100% - 70px));
            padding: 0;
        }

        .menu__list {
            display: flex;
            flex-direction: row;
            gap: clamp(40px, 5vw, 84px);
            justify-content: center;
        }

        .menu__item {
            width: min(550px, calc((100% - 40px) / 2));
            height: 250px;
            padding: 30px 45px;
            border-radius: 30px;
        }

        .menu__text {

            h3 {
                margin-bottom: 5px;
                font-size: 2.25rem;
                line-height: 1.8;
            }

            p {
                font-size: 1.25rem;
            }
        }
    }

}


/* ===============================
    News
================================ */

.news {
    padding-bottom: 100px;
    background-color: #fff;

    .inner {
        padding: 0 35px;
    }

    .news__list {
        padding: 25px 12px;
        border-radius: 30px;
        background-color: #f1f1f1;
    }

    .news__item {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px 20px;
        padding-bottom: 20px;

        &:not(:last-child) {
            margin-bottom: 20px;
            border-bottom: 1px solid var(--color-black);
        }

        &:last-child {
            padding-bottom: 0;
        }
    }

    .news__date {
        grid-column: 1;
        font-size: .875rem;
        font-weight: 700;
    }

    .news__title {
        grid-column: 1;
        font-size: .75rem;
        line-height: 1.5;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }

    .news__link {
        grid-column: 2;
        grid-row: 1 / 3;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 107px;
        height: 37px;
        border-radius: 999px;
        background-color: var(--color-orange);
        color: #fff;
        font-size: .6875rem;
        line-height: 1;

        &:hover {
            opacity: .7;
        }
    }
}

@media (min-width: 600px) and (max-width: 767px) {

    .news {

        .news__list {
            padding: 25px 30px;
        }

        .news__item {
            grid-template-columns: 100px 1fr 110px;
            align-items: center;
            column-gap: 20px;
            padding-bottom: 20px;

            &:not(:last-child) {
                margin-bottom: 20px;
            }
        }

        .news__date {
            grid-column: 1;
            grid-row: 1;
        }

        .news__title {
            grid-column: 2;
            grid-row: 1;
        }

        .news__link {
            grid-column: 3;
            grid-row: 1;
            width: 110px;
            height: 40px;
        }
    }

}

@media (min-width: 768px) and (max-width: 1199px) {

    .news {

        .inner {
            padding-inline: 35px;
        }

        .news__list {
            width: 100%;
            padding: 35px 50px;
            border-radius: 30px;
        }

        .news__item {
            grid-template-columns: 130px 1fr auto;
            align-items: center;
            gap: 30px;
            padding-bottom: 30px;

            &:not(:last-child) {
                margin-bottom: 30px;
            }
        }

        .news__date {
            grid-column: 1;
            font-size: 1.125rem;
            line-height: 1;
        }

        .news__title {
            grid-column: 2;
            font-size: 1.125rem;
            line-height: 1.5;
            white-space: nowrap;
        }

        .news__link {
            grid-column: 3;
            grid-row: 1;
            width: 160px;
            height: 40px;
            font-size: .8125rem;
        }
    }

}

@media (min-width: 1200px) {

    .news {
        padding-bottom: 200px;

        .inner {
            width: min(var(--content-width), calc(100% - 70px));
            padding: 0;
        }

        .section__heading {
            margin-bottom: 40px;
        }

        .news__list {
            width: 100%;
            padding: 45px 78px;
            border-radius: 30px;
            margin-inline: auto;
        }

        .news__item {
            grid-template-columns: 150px 1fr auto;
            align-items: center;
            gap: 50px;
            padding-bottom: 45px;

            &:not(:last-child) {
                margin-bottom: 45px;
            }
        }

        .news__date {
            grid-column: 1;
            font-size: 1.5rem;
            line-height: 1;
        }

        .news__title {
            grid-column: 2;
            font-size: 1.5rem;
            line-height: 1;
        }

        .news__link {
            grid-column: 3;
            grid-row: 1;
            width: 218px;
            height: 42px;
            font-size: .875rem;
        }
    }

}

/* ===============================
    Footer
================================ */

.footer {
    padding: 100px 0 30px;
    background-color: #c8f1ff;
    border-top-left-radius: 100% 10%;
    border-top-right-radius: 100% 10%;

    .footer__inner {
        padding: 0 35px;
    }

    .footer__info {
        text-align: center;
    }

    .footer__logo {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 7px;
        margin-bottom: 30px;

        img {
            width: 285px;
            height: auto;
        }
    }

    .footer__address {
        font-size: .9375rem;
        font-style: normal;
        line-height: 1;

        .footer__address-post {
            margin-bottom: 20px;
        }

        .footer__address-address {
            margin-bottom: 20px;
        }

        .footer__address-tel {
            margin-bottom: 5px;
        }
    }

    .footer__nav {
        margin: 30px 30px 45px;
    }

    .footer__nav-group {
        margin-bottom: 45px;

        h2 {
            margin-bottom: 20px;
            font-size: .875rem;
            font-weight: 700;

            a {
                font-size: inherit;
                font-weight: inherit;
            }
        }

        ul {
            display: grid;
            gap: 20px 60px;

            a {
                display: flex;
                align-items: center;
                gap: 8px;
                font-size: .75rem;
                font-weight: normal;
            }
        }

        &:nth-child(1),
        &:nth-child(2) {
            ul {
                a::before {
                    content: "›";
                    color: var(--color-blue);
                    font-size: 1.5rem;
                    line-height: 1;
                    transform: translateY(-3px);
                }
            }
        }

        &:nth-child(2) {
            ul {
                grid-template-columns: 1fr 1fr;
            }
        }

        &:nth-child(3) {
            ul {
                a {
                    font-weight: 700;
                    font-size: .875rem;
                }
            }
        }
    }

    .footer__copyright {
        text-align: center;
        font-size: .5rem;
        font-weight: bold;
        letter-spacing: 0.05em;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {

    .footer {

        .footer__inner {
            width: 100%;
            padding-inline: 36px;
        }

        .footer__content {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 50px;
            margin-bottom: 112px;
        }

        .footer__info {
            flex-shrink: 0;
            text-align: left;
        }

        .footer__logo {
            justify-content: flex-start;

            img {
                width: 260px;
            }
        }

        .footer__nav {
            display: flex;
            gap: 50px;
            margin: 0;
        }

        .footer__nav-group {
            margin-bottom: 0;

            &:nth-child(2) {
                ul {
                    grid-template-columns: 1fr;
                }
            }
        }

    }

}

@media (min-width: 1200px) {
    .footer {
        padding: 250px 0 30px;
        border-top-left-radius: 65% 50%;
        border-top-right-radius: 65% 50%;

        .footer__inner {
            width: min(var(--content-width), calc(100% - 70px));
            padding: 0;
            margin-inline: auto;
        }

        .footer__content {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 112px;
        }

        .footer__info {
            text-align: left;
        }

        .footer__logo {
            justify-content: flex-start;
            margin-bottom: 62px;

            img {
                width: 291px;
                height: auto;
            }
        }

        .footer__address {

            .footer__address-tel,
            .footer__address-fax {
                display: inline-block;
                margin-bottom: 0;
            }

            .footer__address-fax {
                margin-left: 20px;
            }
        }

        .footer__nav {
            display: flex;
            gap: 107px;
            margin: 0;
        }

        .footer__nav-group {
            margin-bottom: 0;

            &:nth-child(2) {
                ul {
                    grid-template-columns: 1fr;
                }
            }
        }

        .footer__copyright {
            font-size: .6875rem;
        }
    }
}


/* ===============================
    message
================================ */


.title_image {
    display: none;
}

.message_title {
    color: var(--color-blue);
    margin-bottom: 2.5rem;

    h1 {
        font-size: 2.8125rem;
        text-align: center;
        margin-top: 3rem;
    }

    span {
        font-size: .875rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .1875rem;


        &::before,
        &::after {
            content: "";
            display: block;
            width: 1.5625rem;
            height: .0625rem;
            background-color: #0747AB;
        }
    }
}

.message_text_1 {
    position: relative;

    &::after {
        content: "";
        display: block;
        width: 9.375rem;
        height: .125rem;
        background-color: #0da0f7;
        margin: 14.5rem 0 5.375rem 2.5rem;

    }

    .message_img_1 {
        width: 10rem;
        margin-left: 1.25rem;
        opacity: 0.4;
    }

    .message_text_title {
        color: var(--color-blue);
        font-family: var(--font-message-title);
        font-size: 1.5rem;
        position: absolute;
        z-index: 1;
        margin: -8.5rem 0 0 2.25rem;
        letter-spacing: 0.19em;
        line-height: 1.4;
    }

    .message_text {
        font-family: var(--font-base);
        color: var(--color-black);
        font-size: .75rem;
        line-height: 2;
        letter-spacing: 0.23em;
        position: absolute;
        z-index: 1;
        margin: -3rem .875rem 1.875rem 2.25rem;

        p+p {
            margin-top: 1.125rem;
        }
    }
}

.message_text_2 {
    position: relative;

    &::after {
        content: "";
        display: block;
        width: 9.375rem;
        height: .125rem;
        background-color: #0da0f7;
        margin: 14.5rem 2.25rem 5.375rem auto;

    }

    .message_img_2 {
        width: 10rem;
        margin-left: auto;
        margin-right: .875rem;
        opacity: 0.4;
        transform: scaleX(-1);
    }

    .message_text_title {
        color: var(--color-blue);
        font-family: var(--font-message-title);
        font-size: 1.5rem;
        position: absolute;
        z-index: 1;
        margin: -8.5rem 0 0 2.25rem;
        letter-spacing: 0.19em;
        line-height: 1.4;
    }

    .message_text {
        font-family: var(--font-base);
        color: var(--color-black);
        font-size: .75rem;
        line-height: 2;
        letter-spacing: 0.23em;
        position: absolute;
        z-index: 1;
        margin: -3rem .875rem 1.875rem 2.25rem;

        p+p {
            margin-top: 1.125rem;
        }
    }
}

.message_text_3 {
    position: relative;

    &::after {
        content: "";
        display: block;
        width: 9.375rem;
        height: .125rem;
        background-color: #0da0f7;
        margin: 14.5rem 0 5.375rem 2.5rem;

    }

    .message_img_3 {
        width: 10rem;
        margin-left: 1.25rem;
        opacity: 0.4;
    }

    .message_text_title {
        color: var(--color-blue);
        font-family: var(--font-message-title);
        font-size: 1.5rem;
        position: absolute;
        z-index: 1;
        margin: -8.5rem 0 0 2.25rem;
        letter-spacing: 0.19em;
        line-height: 1.4;
    }

    .message_text {
        font-family: var(--font-base);
        color: var(--color-black);
        font-size: .75rem;
        line-height: 2;
        letter-spacing: 0.23em;
        position: absolute;
        z-index: 1;
        margin: -3rem .875rem 1.875rem 2.25rem;

        p+p {
            margin-top: 1.125rem;
        }
    }
}

.message_text_4 {
    position: relative;

    .message_signature {
        color: var(--color-black);
        margin: 13rem 2.25rem 5.375rem auto;
        text-align: right;

        .message_signature_positon {
            font-size: .5625rem;
        }

        .message_signatuer_name {
            font-size: .875rem;
            font-family: var(--font-message-title);
        }

        span+span {
            margin: .1875rem;
        }

    }

    .message_img_4 {
        width: 10rem;
        margin-left: auto;
        margin-right: .875rem;
        opacity: 0.4;
        transform: scaleX(-1);
    }

    .message_text_title {
        color: var(--color-blue);
        font-family: var(--font-message-title);
        font-size: 1.5rem;
        position: absolute;
        z-index: 1;
        margin: -8.5rem 0 0 2.25rem;
        letter-spacing: 0.19em;
        line-height: 1.4;
    }

    .message_text {
        font-family: var(--font-base);
        color: var(--color-black);
        font-size: .75rem;
        line-height: 2;
        letter-spacing: 0.23em;
        position: absolute;
        z-index: 1;
        margin: -3rem .875rem 1.875rem 2.25rem;

        p+p {
            margin-top: 1.125rem;
        }
    }
}

@media (min-width: 600px) and (max-width: 767px) {

    .message_title {

        h1 {
            font-size: 2.5rem;
            margin-top: 4rem;
        }

        span {
            font-size: 1rem;

            &::before,
            &::after {
                width: 2.5rem;
            }
        }
    }


    .message_text_1,
    .message_text_2,
    .message_text_3 {

        .message_img_1,
        .message_img_2,
        .message_img_3 {
            width: 12rem;
        }

        .message_text_title {
            font-size: 1.75rem;
            margin-top: -10rem;
        }

        .message_text {
            font-size: .875rem;
            line-height: 1.8;
            letter-spacing: 0.15em;
        }
    }


    .message_text_4 {

        .message_img_4 {
            width: 12rem;
        }

        .message_text_title {
            font-size: 1.75rem;
            margin-top: -10rem;
        }

        .message_text {
            font-size: .875rem;
            line-height: 1.8;
            letter-spacing: 0.15em;
        }

        .message_signature {
            margin-top: 11rem;
        }
    }

}

@media (min-width: 768px) and (max-width: 1199px) {
    .title_image {
        display: none;
    }

    .message_title {
        h1 {
            font-size: 2.75rem;
        }

        span {
            font-size: 1rem;

            &::before,
            &::after {
                width: 2.5rem;
            }
        }
    }

    .message_text_1,
    .message_text_2,
    .message_text_3,
    .message_text_4 {
        width: 100%;
    }

    .message_text_1,
    .message_text_3 {

        .message_img_1,
        .message_img_3 {
            width: 14rem;
        }

        .message_text_title {
            font-size: 1.75rem;
        }

        .message_text {
            width: calc(100% - 5rem);
            font-size: .875rem;
            line-height: 1.8;
            letter-spacing: .15em;
        }
    }

    .message_text_2 {
        .message_img_2 {
            width: 14rem;
        }

        .message_text_title {
            font-size: 1.75rem;
        }

        .message_text {
            width: calc(100% - 5rem);
            font-size: .875rem;
            line-height: 1.8;
            letter-spacing: .15em;
        }
    }

    .message_text_4 {
        .message_img_4 {
            width: 14rem;
        }

        .message_text_title {
            font-size: 1.75rem;
        }

        .message_text {
            width: calc(100% - 5rem);
            font-size: .875rem;
            line-height: 1.8;
            letter-spacing: .15em;
        }

        .message_signature {
            .message_signature_positon {
                font-size: .6875rem;
            }

            .message_signatuer_name {
                font-size: 1rem;
            }
        }
    }
}

@media (min-width: 1200px) {
    .title_image {
        display: block;
        margin-top: -1rem;
    }

    .message_title {

        margin-bottom: 0;
        width: fit-content;
        margin-left: 16.25rem;

        h1 {
            font-size: 4.5rem;
            text-align: left;
            margin-top: 10.625rem;
            letter-spacing: 0.05em;
        }

        span {
            font-size: 1.25rem;
            gap: .5rem;


            &::before,
            &::after {
                width: 3.125rem;
            }
        }
    }

    .message_text_1 {
        display: block;
        height: 31.25rem;

        .message_img_1 {
            width: 21.875rem;
            margin-left: 3.5rem;
            margin-top: 8rem;
        }

        .message_text_title {
            font-size: 2rem;
            margin: -17rem 0 1.25rem 6.125rem;

            br {
                display: none;
            }
        }

        .message_text {
            font-size: 1.125rem;
            width: 58.125rem;
            margin: -12rem 0 4.0625rem 6.125rem;
            line-height: 1.5;

            p+p {
                margin-top: 2.25rem;
            }

        }

        &::after {
            margin-left: 3.5rem;
            width: 31.25rem;
            position: absolute;
            margin-top: 3.125rem;
        }

    }

    .message_text_2 {
        display: block;
        height: 31.25rem;
        margin: 0 1.25rem 0 auto;
        width: 65rem;


        .message_img_2 {
            width: 21.875rem;
        }

        .message_text_title {
            font-size: 2rem;
            margin: -17rem 3.5rem 0 auto;


            br {
                display: none;
            }
        }

        .message_text {
            font-size: 1.125rem;
            width: 58.125rem;
            margin: -12rem 0 4.0625rem auto;
            line-height: 1.5;

            p+p {
                margin-top: 2.25rem;
            }

        }



        &::after {
            width: 31.25rem;
            margin-top: 3.125rem;

        }


    }

    .message_text_3 {
        display: block;
        height: 31.25rem;

        .message_img_3 {
            width: 21.875rem;
            margin-left: 3.5rem;
        }

        .message_text_title {
            font-size: 2rem;
            margin: -17rem 0 1.25rem 6.125rem;

            br {
                display: none;
            }
        }

        .message_text {
            font-size: 1.125rem;
            width: 58.125rem;
            margin: -12rem 0 4.0625rem 6.125rem;
            line-height: 1.5;

            p+p {
                margin-top: 2.25rem;
            }

        }

        &::after {
            margin-left: 3.5rem;
            width: 31.25rem;
            margin-top: 3.125rem;
        }


    }

    .message_text_4 {
        display: block;
        height: 43.75rem;
        margin: 0 1.25rem 0 auto;
        width: 65rem;


        .message_img_4 {
            width: 21.875rem;
        }

        .message_text_title {
            font-size: 2rem;
            margin: -17rem 3.5rem 0 auto;


            br {
                display: none;
            }
        }

        .message_text {
            font-size: 1.125rem;
            width: 58.125rem;
            margin: -12rem 0 4.0625rem auto;

            p+p {
                margin-top: 2.25rem;
            }

        }

        .message_signature {
            margin-right: 3.5rem;

            .message_signature_positon {
                font-size: .75rem;
            }

            .message_signatuer_name {
                font-size: 1.25rem;
            }

            span+span {
                margin: 1.25rem;
            }
        }
    }
}

/* ===============================
    Recruit
================================ */
.recruit .title_image {
    display: none;
}

.recruit_title {
    color: var(--color-blue);
    margin-bottom: 2.5rem;

    h1 {
        font-size: 2.8125rem;
        text-align: center;
        margin-top: 3rem;
    }

    span {
        font-size: .875rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .1875rem;


        &::before,
        &::after {
            content: "";
            display: block;
            width: 1.5625rem;
            height: .0625rem;
            background-color: #0747AB;
        }
    }
}

main {
    margin-bottom: 84px;
}


.recruit {
    margin-bottom: 30px;
}

.recruit_inner {
    padding: 48px 35px 0px 35px;

    h1 {
        font-size: 45px;
        text-align: center;
        color: #0747AB;
    }

    p {
        font-size: 14px;
        text-align: center;
        color: #0747AB;

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;


        &::before {
            content: "";
            flex-grow: 1;
            max-width: 30px;
            height: 2px;
            background-color: #0747AB;
        }


        &::after {
            content: "";
            flex-grow: 1;
            max-width: 30px;
            height: 2px;
            background-color: #0747AB;
        }
    }
}

.career_inner {
    padding: 0 35px;

    h2 {
        font-size: 16px;
        margin-bottom: 27px;
        border-left: 4px solid #0747AB;
        padding-left: 8px;
        line-height: 1.2;
    }

    tr {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
        margin-bottom: 15px;

        box-sizing: border-box;
        border-bottom: 2px solid #EBEBEB;
        padding-bottom: 15px;

        &:last-child {
            border-bottom: none;
            padding-bottom: 0;
            margin-bottom: 0;
        }
    }

    th,
    td {
        font-size: 14px;
        display: block;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: left;

        word-break: break-word;
        overflow-wrap: anywhere;
    }

    td {
        span {
            color: #FF7B2C;
        }
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .title_image {
        display: none;
    }

    .recruit_title {
        h1 {
            font-size: 2.75rem;
        }

        span {
            font-size: 1rem;

            &::before,
            &::after {
                width: 2.5rem;
            }
        }
    }

    .career_inner {
        width: calc(100% - 70px);
        padding: 0;
        margin-inline: auto;

        h2 {
            margin-bottom: 25px;
            padding-left: 20px;
            border-left: 3px solid var(--color-blue);
            font-size: 1.75rem;
            line-height: 1.4;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            border-top: 2px solid #EBEBEB;
            border-bottom: 2px solid #EBEBEB;
        }

        tr {
            display: grid;
            grid-template-columns: 250px 1fr;
            width: 100%;
            margin: 0;
            padding: 0;
            border-bottom: 2px solid #EBEBEB;
        }

        th,
        td {
            min-height: 80px;
            padding: 18px 25px;
            font-size: 1rem;
            text-align: left;
        }

        th {
            font-weight: 700;
        }

        td {
            border-left: 1px solid #EBEBEB;
            line-height: 1.8;

            span {
                color: var(--color-orange);
            }
        }
    }
}

@media (min-width: 1200px) {

    .recruit {
        margin-bottom: 128px;

        .recruit_title {
            margin-bottom: 0;
            width: fit-content;
            margin-left: 16.25rem;
        }

        h1 {
            font-size: 4.5rem;
            text-align: left;
            margin-top: 10.625rem;
            letter-spacing: 0.05em;
        }

        span {
            font-size: 1.25rem;
            gap: .5rem;


            &::before,
            &::after {
                width: 3.125rem;
            }
        }

        .title_image {
            display: block;
            margin-top: -1rem;
        }
    }


    .career_inner {
        width: min(1200px, calc(100% - 70px));
        padding: 0;
        margin-inline: auto;
        margin-bottom: 168px;

        h2 {
            margin-bottom: 25px;
            padding-left: 24px;
            border-left: 3px solid var(--color-blue);
            font-size: 2rem;
            line-height: 1.4;
            letter-spacing: 0.05em;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            border-top: 2px solid #EBEBEB;
            border-bottom: 2px solid #EBEBEB;
        }

        tr {
            display: grid;
            grid-template-columns: 340px 1fr;
            width: 100%;
            margin: 0;
            padding: 0;
            border-bottom: 2px solid #EBEBEB;
        }

        th,
        td {
            min-height: 92px;
            padding: 20px 30px;
            font-size: 1.5rem;
            text-align: left;
        }

        th {
            font-weight: 700;
        }

        td {
            border-left: 1px solid #EBEBEB;
            line-height: 1.8;
        }

        td {
            span {
                color: var(--color-orange);
            }
        }
    }

}

/* ===============================
    Service
================================ */

.service-inner {
    margin-inline: 37px;
}

.service .title_image {
    display: none;
}

.service_title {
    color: var(--color-blue);
    margin-bottom: 2.5rem;

    h1 {
        font-size: 2.8125rem;
        text-align: center;
        margin-top: 3rem;
    }

    span {
        font-size: .875rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .1875rem;


        &::before,
        &::after {
            content: "";
            display: block;
            width: 1.5625rem;
            height: .0625rem;
            background-color: #0747AB;
        }
    }
}


/* ===============================
    Service title
================================ */

@media (min-width: 768px) and (max-width: 1199px) {

    .service_title {
        margin-bottom: 2.5rem;

        h1 {
            font-size: 4rem;
            text-align: center;
            margin-top: 6rem;
            letter-spacing: 0.05em;
        }

        span {
            font-size: 1rem;
            gap: .5rem;

            &::before,
            &::after {
                width: 3.125rem;
            }
        }
    }

    .service .title_image {
        display: block;
        width: 100%;
        height: auto;
        margin-top: -1rem;
    }
}


@media (min-width: 1200px) {

    .service_title {
        margin-bottom: 0;
        width: fit-content;
        margin-left: 16.25rem;

        h1 {
            font-size: 4.5rem;
            text-align: left;
            margin-top: 10.625rem;
            letter-spacing: 0.05em;
        }

        span {
            font-size: 1.25rem;
            gap: .5rem;

            &::before,
            &::after {
                width: 3.125rem;
            }
        }
    }

    .service .title_image {
        display: block;
        width: 100%;
        height: auto;
        margin-top: -1rem;
    }
}

/* サービス　トップページ */

.service-sec {
    margin-inline: auto;
    max-width: 301px;

    @media(min-width:480px) {
        margin-inline: auto;
        max-width: 690px;
        padding: 2em;

    }
}

.service-h {
    color: var(--color-blue);
    font-size: 1rem;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
}

.service_group {
    border: solid 2px #378EB8;
    border-radius: 7px;
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1em;
}

.service_group-number {
    color: #378EB8;
    font-size: 2rem;
    letter-spacing: 0.23em;
    font-weight: 400;
    /* margin-top: -21px; */
    line-height: 40px;
}

.service_group-eng {
    color: #378EB8;
    font-size: 0.75rem;
    letter-spacing: 0.5em;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 5px;
    margin-left: 5px;
    line-height: .875rem;

}

.service_group-title {
    color: #378EB8;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    font-weight: 400;
    line-height: 38px;
    letter-spacing: 0.01em;
}

.service_group-text {
    color: #2f2f2f;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    font-weight: 400;
    line-height: 24px;
    margin: 0 7px 6px;
    letter-spacing: 0.07em;

}

.service_group-img {
    position: absolute;
    width: 100px;
    top: 1em;
    right: 1em;
    z-index: -1;
}


@media (min-width: 1019px) {

    .service-sec {
        max-width: 1241px;
    }

    .service-h {
        font-size: 2rem;
        letter-spacing: 0.23em;
        margin-bottom: 2rem;
        margin-top: 128px;
    }

    .service_group {
        border-radius: 19px;
        margin-bottom: 5rem;
        max-width: 37.5rem;
        margin-inline: auto;
    }

    .service_group-number {
        font-size: 4rem;
        line-height: 4rem;
        margin-top: 1rem;
        margin-left: 1rem;
    }

    .service_group-eng {
        font-size: 1.25rem;
        margin-top: 0;
        margin-left: 2.25rem;
        line-height: 1.5rem;
        margin-top: 1rem;

    }

    .service_group-title {
        font-size: 3rem;
        line-height: 3rem;
        letter-spacing: 0.05em;
        margin-left: 1.75rem;
        margin-top: 3px;
    }

    .service_group-text {
        font-size: 1.5rem;
        line-height: 1.5rem;
        margin: 39px 2.25rem 35px;
        letter-spacing: 0.05em;

    }

    .service_group-img {
        width: 200px;
        top: 20px;
        right: 20px;
    }

    .service-top-flex {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }



}


@media (min-width: 1882px) {

    .service-top-flex {
        flex-direction: row;
        justify-content: space-between;
    }

}


/* サービス　下層ページ */

.service-lower-kouzinaiyou {
    font-size: .875rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.0625rem;
}

.service-lower-select-button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    a {
        font-size: .875rem;
        font-weight: 700;
        letter-spacing: 0.23em;
        line-height: 1.0625rem;
        color: #fff;
        background-color: #378EB8;
        border-radius: 7px;
        padding: 1px 25px;
        margin-bottom: 1rem;
    }
}

.service-lower-sec {
    margin-bottom: 5rem;

    .service-h {
        margin-bottom: 1.5rem;
    }
}

.service-lower-h-line {
    display: inline-block;
    width: 100%;
    height: 1px;
    background-color: #378EB8;
    margin-bottom: 1.5rem;
}


.service-lower-p {
    font-size: .875rem;
    line-height: 1.5rem;
    letter-spacing: 0.05em;
}

.service-lower-img-normal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;

    img {
        width: 200px;
        margin-inline: auto;
    }
}

.service-lower-reverse-button {
    display: block;
    color: #979997;
    font-size: .875rem;
    font-weight: 700;
    line-height: .875rem;
    letter-spacing: 0.23em;
    text-align: right;
    margin: 2.5rem auto;
}

.service-lower-reverse-button:hover {
    color: #378EB8;

}

.service-lower-img-ttl {
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 1rem;
}


.service-lower-img-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
}


.service-lower-img-text_img {
    display: flex;
    flex-direction: column;

    img {
        width: 200px;
        margin-inline: auto;
    }

    p {
        font-size: .875rem;
        letter-spacing: 0.05em;
        line-height: 2.25rem;
        text-align: center;
    }
}


.service-lower-img-yazirushi-down {
    width: 20px;
    margin-inline: auto;
}

.service-lower-img-yazirushi-right {
    display: none;
}


@media (min-width: 768px) {

    .service-lower-kouzinaiyou {
        font-size: 1.5rem;
        margin-top: 128px;
        margin-bottom: 25px;
    }

    .service-lower-select-button {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        margin-left: 105px;
        gap: 2rem;

        a {
            font-size: 1.5rem;
            line-height: 1.5rem;

            border-radius: 10px;
            padding: 5px 50px;
        }
    }

    .service-lower-sec {
        margin-bottom: 5rem;
    }


    .service-lower-p {
        font-size: 1.5rem;
        line-height: 2.25rem;
    }

    .service-lower-img-normal {
        flex-direction: row;
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .service-lower-reverse-button {
        font-size: 1.5rem;
        line-height: 1.5rem;
        margin: 10rem auto;
    }

    .service-lower-img-ttl {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        margin-top: 2.5rem;
    }


    .service-lower-img-right {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        margin-top: 2rem;
        margin-bottom: 2rem;
        margin-inline: auto;
        max-width: 1040px;
    }


    .service-lower-img-text_img {
        display: flex;
        flex-direction: column;

        img {
            width: 200px;
            margin-inline: auto;
            padding-top: 30px;
        }

        p {
            font-size: 1.5rem;
        }
    }


    .service-lower-img-yazirushi-down {
        display: none;
    }

    .service-lower-img-yazirushi-right {
        display: block;
        max-width: 40px;
        max-width: 30px;
    }



}


/* サービス　下層　メンテナンスページ */

.service-ttl-mainte {
    color: var(--color-blue);
    font-size: 2.8125rem;
    letter-spacing: 0;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    margin-top: 3rem;
    max-width: 375px;
    margin-inline: auto
}


@media (min-width: 768px) {


    .service-ttl-mainte {
        font-size: 4.5rem;
        margin-top: 105px;
        max-width: none;
    }

}


/* ===============================
    Service inner
================================ */

@media (min-width: 768px) and (max-width: 1199px) {

    .service-inner {
        width: 100%;
        margin-inline: auto;
        max-width: 700px;
    }

}


@media (min-width: 1200px) {

    .service-inner {
        width: min(var(--content-width), calc(100% - 70px));
        margin-inline: auto;
    }

}