/*****************************************/
/* TOP ***********************************/
/*****************************************/
.site-header__toggle {
    display: none;
}
.top-h1 {
    font-size: clamp(2.8rem, 3.6vw, 4rem);
    font-weight: bold;
    line-height: 2;
}

.top-h2 {
    color: var(--color-text-lightgray);
    font-size: clamp(1.1rem, 3.6vw, 1.4rem);
    font-weight: bold;
    padding-bottom: 18px;
}

.main-visual {
    width: calc(100% - 180px);
    padding-top: clamp(180px, 28vw, 340px);
    position: relative;
}
.main-visual__catchcopy {
    width: min(400px, calc(100% - 40px));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: absolute;
    z-index: 2;
    top: clamp(40px, 8vw, 110px);
    left: 50%;
    transform: translateX(-50%);
}
.main-visual__contact {
    position: absolute;
    z-index: 2;
    right: clamp(-90px, 3vw, -150px);
    bottom: clamp(20px, 5vw, 130px);
    width: clamp(80px, 18vw, 240px);

    & img {
        display: block;
        width: 100%;
        height: auto;
    }
}
.main-visual__bg {
    width: 100%;
    position: relative;
    margin-top: 0;
    z-index: 1;

    & img {
        display: block;
        width: 100%;
        height: auto;
        margin-left: auto;
    }
}
/*****************************************/
/* WAVE ***********************************/
/*****************************************/
.about-wave {
    position: relative;
    color: #fff;
}

.about-wave__top,
.about-wave__bottom,
.about-wave__footer {
    line-height: 0;
    overflow: hidden;
}

.about-wave__footer {
    margin-bottom: -30px;
}

.about-wave__top img,
.about-wave__bottom img {
    display: block;
    width: calc(100% + 120px);
    max-width: none;
    height: auto;
    margin-left: -60px;
}

.about-wave__footer img {
    display: block;
    width: calc(100% + 120px);
    max-width: none;
    height: auto;
    margin-left: -60px;
    margin-bottom: -30px;
}

.about-wave__inner {
    width: 100%;
    margin-inline: auto;
    background: linear-gradient(180deg, #2d8bd3 0%, #025ca3 100%);
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

.about-wave__block {
    width: min(100% - 40px, var(--container));
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    margin-inline: auto;
    margin-bottom: 80px;
    flex-wrap: nowrap;
}
.about-wave__block_list {
    width: min(100% - 40px, var(--container));
    gap: 48px;
    margin-inline: auto;
}
.about-wave__heading {
    width: fit-content;
    width: -moz-fit-content;
    flex: 0 0 auto;

    & p {
        font-size: 1.4rem;
        font-weight: bold;
        text-align: right;
    }
    & h2 {
        font-size: 7.2rem;
        font-weight: bold;
        line-height: 1;
        white-space: nowrap;
    }
}
.about-wave__heading_list {
    width: fit-content;
    width: -moz-fit-content;
    flex: 0 0 auto;

    & p {
        font-size: 1.4rem;
        text-align: right;
        font-weight: bold;
    }
    & h2 {
        font-size: 6.2rem;
        font-weight: bold;
        line-height: 1;
        white-space: nowrap;
    }
}
.about-wave__text {
    flex: 1 1 auto;
    min-width: 0;
    padding: 20px;
    & p {
        font-size: 2.4rem;
    }
    & li {
        font-size: 1.8rem;
    }
}
.about-wave__block + .about-wave__block {
    margin-top: 100px;
}
/*****************************************/
/* WORK **********************************/
/*****************************************/
.work {
    margin-top: -150px;
}
.work__heading {
    width: fit-content;
    width: -moz-fit-content;
    color: var(--color-text-blue);
    flex: 0 0 auto;
    padding: 0 240px;
    text-align: right;

    & p {
        font-size: 1.6rem;
        text-align: right;
    }
    & h2 {
        font-size: 6.2rem;
        font-weight: bold;
        line-height: 1;
        white-space: nowrap;
        text-align: right;
    }
}
.work__inner {
    width: min(100% - 40px, var(--container));
    height: 500px;
}
/*****************************************/
/* WORK TOGETHER *************************/
/*****************************************/
.work-together {
    width: 100%;
    aspect-ratio: 1427 / 852;
    overflow: hidden;
    background-image: url(../img/work-together.svg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-bottom: 80px;
}
.work-together__inner {
    width: min(100% - 40px, var(--container));
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 120px;
    position: relative;
    margin-inline: auto;
    padding: 270px 0;
}
.work-together__heading {
    width: fit-content;
    width: -moz-fit-content;
    color: var(--color-text-white);
    flex: 0 0 auto;
    text-align: right;

    & p {
        font-size: 1.6rem;
        text-align: right;
    }
    & h2 {
        font-size: 6.2rem;
        font-weight: bold;
        line-height: 1;
        white-space: nowrap;
        text-align: right;
    }
}
.work-together__content {
    flex: 1;
    color: var(--color-text-white);
    & h3 {
        font-size: 1.8rem;
        font-weight: bold;
        margin-bottom: 40px;
    }

    & p {
        font-size: 1.4rem;
        line-height: 1.8;
    }
}

.work-together__content > * {
    flex: 1 1 0;
    min-width: 0;
}
.work-together__img1,
.work-together__img2,
.work-together__img3 {
    position: absolute;
}
.work-together__img1 {
    bottom: 330px;
    left: 400px;
}
.work-together__img2 {
    bottom: 200px;
    left: 310px;
}
.work-together__img3 {
    bottom: 70px;
    left: 460px;
}
/*****************************************/
/* PAGE **********************************/
/*****************************************/
.page-single {
    margin-bottom: 80px;
    padding-top: 130px;
}

/*****************************************/
/* ABOUT TABLE ***************************/
/*****************************************/
.about_table {
    width: 100%;
    border-collapse: collapse;
}

.about_table tr {
    border-top: 1px solid #ddd;
}

.about_table td {
    border: none;
    padding-top: 12px;
    padding-bottom: 12px;
}

.about_table td:first-child {
    width: 280px;
}

.about_table td:last-child {
    padding-left: 20px;
}
/*****************************************/
/* SP ************************************/
/*****************************************/
@media (max-width: 768px) {
    /*****************************************/
    /* HEADER / NAV *************************/
    /*****************************************/

    .global-nav {
        display: block;
    }

    .site-header__nav {
        position: fixed;
        top: 20px;
        right: 0;
        width: min(320px, 84vw);
        height: calc(100vh - 20px);
        background: #fff;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
        padding: 100px 24px 24px;
        overflow-y: auto;
    }

    body.is-menu-open .site-header__nav {
        transform: translateX(0);
    }

    .site-header__nav .global-nav {
        display: block;
    }

    .site-header__nav .global-nav ul {
        display: block;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .site-header__nav .global-nav li {
        border-bottom: 1px solid #ddd;
    }

    .site-header__nav .global-nav li:first-child {
        border-top: 1px solid #ddd;
    }

    .site-header__nav .global-nav li a {
        display: block;
        padding: 16px 0;
    }

    .site-header__toggle {
        width: 44px;
        height: 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        position: fixed;
        top: 32px;
        right: 12px;
        z-index: 1100;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .site-header__toggle-line {
        display: block;
        width: 30px;
        height: 2px;
        margin-left: auto;
        background: #000;
        transition:
            transform 0.3s ease,
            opacity 0.3s ease;
    }

    body.is-menu-open .site-header__toggle-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    body.is-menu-open .site-header__toggle-line:nth-child(2) {
        opacity: 0;
    }

    body.is-menu-open .site-header__toggle-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .site-header__overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.3s ease,
            visibility 0.3s ease;
    }

    body.is-menu-open .site-header__overlay {
        opacity: 1;
        visibility: visible;
    }

    body.is-menu-open {
        overflow: hidden;
    }
    /*****************************************/
    /* TOP ***********************************/
    /*****************************************/
    .top-h1 {
        font-size: clamp(2.6rem, 3.6vw, 4rem);
        font-weight: bold;
        line-height: 1.2;
    }

    .top-h2 {
        font-size: clamp(1rem, 1.2vw, 1.4rem);
        line-height: 1.2;
        padding-bottom: 0;
    }

    .main-visual {
        width: 100%;
        padding-top: clamp(130px, 28vw, 340px);
        position: relative;
    }
    .main-visual__catchcopy {
        width: fit-content;
        display: block;
        z-index: 2;
        position: absolute;
        top: 10px;
        right: 10px;
        left: auto;
        transform: none;
    }
    .main-visual__contact {
        width: 80px;
        right: 10px;
        bottom: 10px;
        & img {
            width: 100%;
        }
    }
    /*****************************************/
    /* about *********************************/
    /*****************************************/
    .about-wave__top img,
    .about-wave__bottom img {
        width: calc(100% + 60px);
        margin-left: -30px;
    }

    .about-wave__footer img {
        width: calc(100% + 60px);
        margin-left: -30px;
        margin-bottom: -30px;
    }

    .about-wave__inner {
        padding: 20px 0;
    }

    .about-wave__block {
        width: 100%;
        display: block;
        gap: 24px;
        margin-bottom: 40px;
        padding: 0 20px;
    }
    .about-wave__block_list {
        width: 100%;
        gap: 24px;
        padding: 0 20px;
    }
    .about-wave__heading {
        width: 100%;
        flex: initial;
        margin-bottom: 20px;

        & p {
            font-size: 1.2rem;
            text-align: left;
        }
        & h2 {
            font-size: 3rem;
        }
    }
    .about-wave__heading_list {
        width: 100%;
        flex: initial;
        margin-bottom: 20px;

        & p {
            font-size: 1.2rem;
            text-align: left;
        }
        & h2 {
            font-size: 3rem;
        }
    }
    .about-wave__text {
        flex: initial;
        padding: 0;
        & p {
            font-size: 1.6rem;
        }
        & li {
            font-size: 1.6rem;
        }
    }
    .about-wave__block + .about-wave__block {
        margin-top: 50px;
    }
    /*****************************************/
    /* WORK **********************************/
    /*****************************************/
    .work {
        margin-top: 40px;
    }
    .work__heading {
        width: 100%;
        padding: 0;
        text-align: left;
        padding: 0 20px;

        & p {
            font-size: 1.2rem;
            text-align: left;
        }
        & h2 {
            font-size: 3rem;
            text-align: left;
        }
    }
    .work__inner {
        width: 100%;
        height: auto;
        padding: 0 20px;
    }
}
