* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: var(--textcolor);
}

:root {
    --themecolor: #8EC31E;
    --subcolor: #fff;
    --textcolor: #132847;
    --bordercolor: #7070701A;
    --fz-top-ttl: clamp(3rem, 6vw, 6rem);
    --fz-ttl: clamp(4rem, 6vw, 8rem);
    --fz-ttl-after: clamp(1.2rem, 1.5vw, 1.4rem);
    --fz-ttl-sub: clamp(1.6rem, 4vw, 3.6rem);
    --fz-txt: clamp(1.4rem, 3vw, 1.8rem);
    --fz-nav: clamp(1.2rem, 2vw, 1.4rem);
    --fz-btn: clamp(1.2rem, 2.5vw, 1.6rem);
    --fz-footer: clamp(1.2rem, 2vw, 1.4rem);
    --m-large: clamp(7rem, 10vw, 12rem);

    /* sp */
    --fz-sp-nav: 3.6rem
}

html {
    font-family: "Zen Kaku Gothic New", "Jost", sans-serif;
    font-size: 62.5%;
    scroll-behavior: smooth;
    max-width: 2000px;
    margin: 0 auto;
}

.body {
    color: var(--textcolor);
    a {
        cursor: pointer;
    }
}

/* header */
.header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--subcolor);
    transition: transform 0.4s;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    width: 100%;
    padding: clamp(1rem, 2vw, 2.5rem) clamp(1rem, 2vw, 2rem);
    margin: 0 auto;
}

.logo-link:hover {
    opacity: 0.8;
    transition: .3s;
}

.logo-img {
    width: 100%;
    max-width: clamp(150px, 20vw, 250px);
}

.menu-toggle {
    font-size: var(--fz-nav);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: none;
}

.sp-nav-list {
    display: none;
}

.pc-nav-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.pc-nav-list .nav-item + .nav-item {
    margin-left: clamp(1rem, 2vw, 4rem);
}

.pc-nav-list .nav-link {
    display: inline-block;
    text-decoration: none;
    color: var(--textcolor);
    font-weight: bold;
    font-size: var(--fz-nav);
}

.pc-nav-list .nav-link {
    display: inline-block;
    text-decoration: none;
    color: var(--textcolor);
    font-weight: bold;
    font-size: var(--fz-nav);
}

.nav-btn {
    border: 2px solid var(--subcolor);
    background-color: var(--themecolor);
    max-width: 200px;
    border-radius: 4rem;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    transition: .3s;
}

.nav-btn-link {
    display: inline-block;
    font-size: var(--fz-nav);
    color: var(--subcolor);
    text-decoration: none;
    line-height: 1.6;
    padding: 1rem 3rem;
    width: 100%;
}

.nav-btn:hover {
    border-color: var(--themecolor);
    background-color: var(--subcolor);
}

.nav-btn:hover .nav-btn-link {
    color: var(--themecolor);
}


.nav-link.__header:hover {
    opacity: 0.8;
    transition: .3s;
}

/* kv */
.kv-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.kv-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.kv-ttl-en {
    font-family: "Jost", sans-serif;
    padding: 0 2rem;
    margin-top: 3rem;
}

.kv-ttl {
    font-size: var(--fz-top-ttl);
    min-width: 280px;
    padding: 0 2rem;
    margin-top: clamp(2rem, 4vw, 7.5rem);
    line-height: 1.2;
}

.js-textanimation span span {
    opacity: 0;
    transform: translateY(100%);
    display: inline-block;
    transition: none;
}

.js-textanimation > span {
    overflow: hidden;
    display: inline-block;
}

.js-textanimation.scrollin span span {
    opacity: 1;
    animation: showTextFromBottom 0.5s ease-out backwards;
    transform: translateY(0);
}

@keyframes showTextFromBottom {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
}

.kv-box-building {
    width: 40%;
    max-width: clamp(200px, 50vw, 600px);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
}

.kv-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
}

.img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.img-wrapper.__kv {
    opacity: 1;
}

.img-wrapper.__kv::before {
    animation: showImg 2s .8s cubic-bezier(0.4, 0 ,0.2, 1) forwards;
    background: var(--subcolor);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
    transform: translateX(0%);
}

@keyframes showImg {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

.kv-box2 {
    display: flex;
    flex-direction: column;
    margin-top: -25rem;
    gap: 2rem;
}

.scrollbar-txt {
    width: max-content;
    padding-top: 50px;
    padding-left: 2rem;
    position: relative;
    color: var(--textcolor);
    font-size: var(--fz-txt);
    font-family: "Jost", sans-serif;
    opacity: 0;
}

.scrollbar-txt.scrollin {
    animation: fadeIn 2s ease-in-out 2s forwards;
}

.scrollbar-txt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 20px;
    width: 20px;
    border-bottom: 1px solid var(--textcolor);
    border-left: 1px solid var(--textcolor);
    opacity: 0;
} 

.scrollbar-txt.scrollin::before {
    animation: scroll 2s linear 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 0;
        transform: rotate(-45deg) translate(0, 0);
    }
    40% {
        opacity: 1;
    }
    80% {
        opacity: 0;
        transform: rotate(-45deg) translate(-20px, 20px);
    }
    100% {
        opacity: 0;
    }
}

.kv-box-post {
    width: 55%;
    max-width: clamp(400px, 80vw, 700px);
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

/* main共通 */
.section-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: var(--m-large) 2rem 0;
}

.section-ttl {
    font-size: var(--fz-ttl);
    font-family: "Jost", sans-serif;
    position: relative;
    line-height: normal;
    line-height: 1.1;
}

.btn {
    cursor: pointer;
    display: block;
    border-radius: 70px;
    background-color: var(--subcolor);
    width: 100%;
    max-width: clamp(150px, 20vw, 250px);
    text-align: center;
    margin: 8rem auto 0;
    transition: .3s;
    text-decoration: none;
    padding: clamp(1.5rem, 3vw, 2rem);
    color: var(--textcolor);
    font-weight: bold;
    font-size: var(--fz-btn);
    line-height: 1.6;
    opacity: 0;
}

.btn.scrollin {
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.btn:hover {
    background-color: var(--themecolor);
    color: var(--subcolor);
}

/* about */
.about {
    position: relative;
}

.section-ttl.__about::after {
    content: "私たちについて";
    position: absolute;
    top: 100%;
    left: 0;
    font-size: var(--fz-ttl-after);
    font-weight: normal;
}

.about-wrap {
    display: flex;
    justify-content: center;
    padding-bottom: 12rem;
    margin-top: 8rem;
    line-height: 2;
}

.about-inner {
    padding: 0 clamp(2rem, 3vw, 4rem);
    max-width: 1000px;
    margin-right: auto;
}

@keyframes fadeUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.about-ttl-sub {
    font-size: var(--fz-ttl-sub);
    color: var(--themecolor);
    line-height: normal;
    padding-top: clamp(0rem, 6vw, 8rem);
    opacity: 0;
}

.about-ttl-sub.__fadeUp.scrollin {
    opacity: 1;
    animation: fadeUp 1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.about-txt {
    margin-top: 4rem;
    font-size: var(--fz-txt);
    opacity: 0;
}

.about-txt.__fadeUp.scrollin {
    opacity: 1;
    animation: fadeUp 1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.about-topimg-box {
    max-width: clamp(350px, 30vw, 600px);
    max-height: clamp(300px, 80vw, 700px);
    aspect-ratio: 3 /4;
    margin-right: auto;
}

.about-topimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 10px 10px 0;
}

.about-img-box {
    max-width: clamp(200px, 30vw, 600px);
    aspect-ratio: 4 / 3;
    margin-left: auto;
    margin-bottom: -15rem;
    overflow: hidden;
    position: absolute;
    right: 0;
    bottom: 10rem;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.about-inner .btn.__topContact {
    margin: clamp(3rem, 5vw, 10rem) auto 0;
    border: 2px solid var(--bordercolor);
}

/* service */
.section-ttl.__service::after {
    content: "事業内容";
    position: absolute;
    top: 100%;
    left: 0;
    font-size: var(--fz-ttl-after);
    font-weight: normal;
}

.service-wrap {
    margin-top: 8rem;
}

.service-border {
    border: 1px solid var(--bordercolor);
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.service-box {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: clamp(20rem, 25vw, 30rem);
    position: relative;
    z-index: 0;
    opacity: 0;
}

.service-box.__fadeUp.scrollin {
    opacity: 1;
    animation: fadeUp 1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.service-ttl-sub {
    font-size: var(--fz-ttl-sub);
    color: var(--themecolor);
}

.service-txt {
    font-size: var(--fz-txt);
}

/* works */
.works {
    position: relative;
}

.section-ttl.__works::after {
    content: "実績";
    position: absolute;
    top: 100%;
    left: 0;
    font-size: var(--fz-ttl-after);
    font-weight: normal;
}

.works-wrap {
    background-color: #F0F0F0;
    margin-top: clamp(15rem, 20vw, 25rem);
    margin-left: clamp(5rem, 7vw, 20rem);
    padding-bottom: 4rem;
}

.works-inner {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
}

.works-content {
    margin-top: clamp(-6rem, 10vw, -10rem);
    max-width: 500px;
    padding-left: 5rem;
    opacity: 0;
}

.works-content.__fadeUp.scrollin {
    opacity: 1;
    animation: fadeUp 1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.works-content.__fadeUp.scrollin:nth-of-type(2) {
    opacity: 0;
}

.works-content.__fadeUp.scrollin:nth-of-type(2) {
    animation-delay: 0.3s;
}

.works-content:last-child {
    margin-right: 5rem;
}

.works-img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.works-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #7070704D;
}

.works-ttl {
    font-size: var(--fz-ttl-sub);
    font-weight: bold;
    margin-top: 4rem;
}

.works-txt {
    font-size: var(--fz-txt);
    margin-top: clamp(3rem, 5vw, 8rem);
}

.works-inner .works-txt {
    margin-top: 2rem;
}

/* recruit */
.recruit {
    padding-top: clamp(7rem, 15vw, 20rem);
}

.section-ttl.__recruit {
    text-align: center;
}

.section-ttl.__recruit::after {
    content: "採用情報";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--fz-ttl-after);
    font-weight: normal;
}

.recruit-wrap {
    background-color: #8EC31E4D;
    border-radius: 3rem;
}

.recruit-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: var(--m-large);
    margin-top: 8rem;
    text-align: center;
}

.recruit-ttl-sub {
    font-size: var(--fz-ttl-sub);
    color: var(--themecolor);
}

.recruit-txt {
    font-size: var(--fz-txt);
    margin-top: clamp(4rem, 7vw, 8rem);
}

.recruit-position-sub {
    font-size: var(--fz-txt);
    margin-top: 2rem;
}

.btn.__recruit {
    margin: clamp(4rem, 7vw, 8rem) auto 0;
}

/* company */
.section-ttl.__company::after {
    content: "会社概要";
    position: absolute;
    top: 100%;
    left: 0;
    font-size: var(--fz-ttl-after);
    font-weight: normal;
}

.table {
    margin: var(--m-large) auto 0;
    width: clamp(90%, 80vw, 80%);
    border-collapse: collapse;
}

.table tr {
    border-top: 1px solid var(--bordercolor);
}

.table td {
    width: 70%;
    font-size: var(--fz-txt);
}

.table th, .table td {
    padding: clamp(2rem, 5vw, 6rem);
    text-align: left;
}

.table th {
    font-size: var(--fz-txt);
    font-weight: bold;
    padding-left: 4rem;
}

.table tr:last-of-type {
    border-bottom: 1px solid var(--bordercolor);
}

/* access */
.section-ttl.__access::after {
    content: "アクセス";
    position: absolute;
    top: 100%;
    left: 0;
    font-size: var(--fz-ttl-after);
    font-weight: normal;
}

.access-wrap {
    margin-top: var(--m-large);
    position: relative;
    width: 100%;
    height: auto;
    padding-top: 56.25%;
}

.access-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* contact */
.contact {
    position: relative;
    width: 100%;
    margin-top: var(--m-large);
    overflow: hidden;
}

.contact-layer-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("images/top.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(5px);
    z-index: 0;
}

.contact-layer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(70, 70, 70, 0.6);
    z-index: 1;
}

.section-inner.__contact {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: var(--m-large) 2rem;
}

.contact-wrap {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 2rem;
}

.section-ttl.__contact {
    color: var(--subcolor);
}

.contact-txt {
    color: var(--subcolor);
    font-size: var(--fz-txt);
    text-align: center;
}

.btn.__contact {
    border: 2px solid var(--textcolor);
    margin: 0 auto;
    opacity: 1;
}

.btn.__contact:hover {
    border-color: var(--subcolor);
    background-color: var(--textcolor);
}

/* footer */
.footer {
    background-color: #8EC31ECC;
}

.footer-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(4rem, 10vw, 8rem) 2rem;
}

.footer-nav {
    display: flex;
    align-items: start;
    justify-content: space-between;
    padding: 8rem 0;
    border-top: 1px solid var(--subcolor);
}

.nav-link.__footer {
    color: var(--subcolor);
    font-weight: normal;
}

.nav-link.__footer:hover {
    opacity: 0.8;
    transition: .3s;
}

.footer-txt {
    margin-top: 1rem;
    font-size: var(--fz-nav);
    color: var(--subcolor);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    color: var(--subcolor);
}

.footer-cr {
    color: var(--subcolor);
    font-size: var(--fz-footer);
}

.policy-link {
    color: var(--subcolor);
    text-decoration: none;
    font-size: var(--fz-footer);
}

.policy-link:hover {
    opacity: 0.8;
    transition: .3s;
}

.policy-link + .policy-link {
    margin-left: clamp(1rem, 2vw, 4rem);
}

/* page-top */
.fixed-pagetop {
    position: fixed;
    bottom: 16px;
    left: 0;
    width: 100%;
    z-index: 1;
    padding-right: clamp(1rem, 2vw, 2rem);
    pointer-events: none;
}

.pagetop {
    height: 50px;
    width: 50px;
    background: var(--themecolor);
    border: 2px solid var(--subcolor);
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2;
    cursor: pointer;
    margin-left: auto;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.pagetop.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.pagetop:hover {
    opacity: 0.8;
    transition: 0.3s;
}

.pagetop-arrow {
    display: block;
    height: 10px;
    width: 10px;
    border-top: solid 3px var(--subcolor);
    border-right: solid 3px var(--subcolor);
    transform: translateY(20%) rotate(-45deg);
}

@media (max-width: 768px) {
    .logo-link {
        position: relative;
    }

    /* ハンバーガーメニュー */
    .menu-toggle {
        display: block;
    }

    .drawer_open {
        display: flex;
        width: 25px;
        height: 25px;
        border-radius: 3px;
        background-color: var(--themecolor);
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 100;
        cursor: pointer;
    }
    
    .drawer_open span,
    .drawer_open span::before,
    .drawer_open span::after {
        content: '';
        display: block;
        height: 2px;
        width: 13px;
        border-radius: 3px;
        background: var(--subcolor);
        transition: 0.5s;
        position: absolute;
    }
    
    .drawer_open span::before {
        bottom: 5px;
    }
    
    .drawer_open span::after {
        top: 5px;
    }
    
    .drawer_open.open span {
        background: rgba(255, 255, 255, 0);
    }
    
    .drawer_open.open span::before {
        bottom: 0;
        transform: rotate(45deg);
    }
    
    .drawer_open.open span::after {
        top: 0;
        transform: rotate(-45deg);
    }
    
    /* メニュー */
    .nav-content {
        width: 100%;
        height: 100%;
        position: fixed;
        bottom: 100%;
        left: 0;
        background: #fff;
        transition: 0.5s;
        text-align: center;
        z-index: 99;
    }
    
    .nav-content.active {
        bottom: 0;
    }

    .sp-nav-list {
        display: block;
        font-family: "Jost", sans-serif;
    }

    .sp-nav-list .nav-item {
        margin-top: 3rem;
    }

    .sp-nav-list .nav-link {
        font-size: var(--fz-sp-nav);
        text-decoration: none;
    }

    .pc-nav-list {
        display: none;
    }

    .kv-box {
        flex-direction: column;
        gap: 1rem;
    }

    .kv-box-building {
        width: 100%;
        margin-left: auto;
    }

    .kv-box2 {
        margin-top: -8rem;
    }

    .kv-box-post {
        width: 80%;
    }

    .about-wrap {
        flex-wrap: wrap;
        padding-bottom: 0;
        margin-top: 0;
    }

    .about-inner {
        margin: 3rem 0;
        max-width: 600px;
    }

    .about-topimg-box {
        display: none;
    }

    .about-img-box {
        aspect-ratio: 4 / 3;
    }

    .about-inner .btn.__topContact {
        margin: clamp(3rem, 5vw, 10rem) auto 0;
    }

    .service-box {
        flex-direction: column;
        justify-content: space-evenly;
    }

    .works-inner {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
    }

    .works-content {
        margin-right: 5rem;
    }

    .works-content.__fadeUp.scrollin:nth-of-type(2) {
        opacity: 1;
    }
    
    .works-content.__fadeUp.scrollin:nth-of-type(2) {
        animation-delay: 0s;
    }

    .works-content:nth-child(n + 2) {
        margin-top: 5rem;
    }

    tr {
        display: flex;
        flex-direction: column;
    }

    .table th, 
    .table td {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .table td {
        padding-top: 0;
    }

    .footer-content {
        flex-direction: column;
    }
}