@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --themecolor: #8EC31E;
    --subcolor: #fff;
    --textcolor: #132847;
}

body {
    width: 100%;
    font-family: "Jost", "Zen Kaku Gothic New", sans-serif;
    font-optical-sizing: auto;
    color: var(--textcolor);
    font-size: 16px;
}

/* ローディングアニメーション */
#loading {
    width: 100vw;
    height: 100vh;
    background: var(--subcolor);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: bottom center;
    transform: rotateX(0deg);
    transition: transform 1s ease-in-out, opacity 0.6s ease 1s;
    perspective: 1000px;
}

#loading.loaded {
    transform: rotateX(90deg);
    opacity: 0;
    pointer-events: none;
}

.load-animation {
    width: 80px;
    height: 80px;
    background-color: var(--themecolor);
    border-radius: 50%;
    animation: load-animation 1s infinite ease-in-out;
}

@keyframes load-animation {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* フェードインアニメーション */
.fadein {
    opacity: 0;
}

.scrollin {
    opacity: 1;
}

.fadein_up.scrollin {
    transform: translate(0,-10px);
    transition: all 1.2s ease;
}

/* コンテンツ幅 */
#content-size {
    max-width: 1280px;
    margin: 0 auto;
}

/* header */
.header {
    position: absolute;
}

.logo-menu {
    margin: 25px;
}

.logo-link {
    position: relative;
    z-index: 999;
    cursor: pointer;
}

.logo-img {
    width: 100%;
    max-width: 228px;
}

.wrapper {
    width: 95%;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
}

.fixed-container {
    position: fixed;
    top: 16px;
    left: 0;
    width: 100%;
    z-index: 100;
}

/* ハンバーガーメニュー */
/* チェックボックスを非表示 */
.drawer_hidden {
    display: none;
}

/* ハンバーガーアイコンの設置スペース */
.drawer_open {
    display: flex;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    background-color: var(--themecolor);
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: pointer;
    margin-left: auto;
}

.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background: var(--subcolor);
    transition: 0.5s;
    position: absolute;
}

/* 三本線の一番上の棒の位置調整 */
.drawer_open span:before {
    bottom: 8px;
}

/* 三本線の一番下の棒の位置調整 */
.drawer_open span:after {
    top: 8px;
}

/* アイコンがクリックされたら真ん中の線を透明にする */
#drawer_input:checked ~ .drawer_open span {
    background: rgba(255, 255, 255, 0);
}

  /* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
#drawer_input:checked ~ .drawer_open span::before {
    bottom: 0;
    transform: rotate(45deg);
}

#drawer_input:checked ~ .drawer_open span::after {
    top: 0;
    transform: rotate(-45deg);
}
    
/* メニューのデザイン*/
.nav-content {
    width: 100%;
    height: 100%;
    position: fixed;
    bottom: 100%;
    left: 0%; /* メニューを画面の外に飛ばす */
    background: #fff;
    transition: .5s;
    text-align: center;
    font-size: 36px;
    z-index: 99;
}

/* メニュー黒ポチを消す */
.nav-list {
    list-style: none;
    text-decoration: none;
}

.nav-item {
    margin: 40px;
}

.nav-item > a {
    text-decoration: none;
    color: var(--textcolor);
}

/* アイコンがクリックされたらメニューを表示 */
#drawer_input:checked ~ .nav-content {
    bottom: 0;/* メニューを画面に入れる */
}

/* kv */
.kv {
    height: 700px;
    overflow: hidden;
    position: relative;
}

.kv-img {
    z-index: 10;
    opacity: 0;
    width: 100%;
    height: 700px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    -webkit-animation: anime 18s 0s infinite;
    animation: anime 18s 0s infinite;
}

.kv-img:nth-of-type(2) {
    -webkit-animation-delay: 6s;
    animation-delay: 6s;
}

.kv-img:nth-of-type(3) {
    -webkit-animation-delay:  12s;
    animation-delay: 12s;
}

.kv-img:nth-of-type(4) {
    -webkit-animation-delay: 18s;
    animation-delay: 18s;
}

@keyframes anime {
    0% {
        opacity: 0;
    }
    33% {
        opacity: 1;
    }
    66% {
        opacity: 0;
        transform: scale(1.2);
        z-index: 9;
    }
    100% {
        opacity: 0;
    }
}

/* メニューnav */
#nav {
    margin: 37px auto;
    max-width: 584px;
}

#nav ul li {
    list-style-type: none;
}

#nav ul {
    display: flex;
    justify-content: space-around;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--textcolor);
}

.nav-link::after {
    position: absolute;
    left: 0;
    content: "";
    width: 100%;
    height: 1px;
    background: var(--themecolor);
    bottom: -1px;
    transform: scale(0,1);
    transform-origin: left top;
    transition: transform 0.3s;
}

.nav-link:hover::after {
    transform: scale(1,1);
}

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

/* main共通 */
.section-ttl {
    font-size: 80px;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 2px;
    text-align: center;
    margin: 120px 0;
    position: relative;
}

.section-ttl.__service::after {
    content: "事業紹介";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 20px;
    font-style: normal;
}

.section-ttl.__works::after {
    content: "実績";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 20px;
    font-style: normal;
}

.section-ttl.__recruit::after {
    content: "採用情報";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 20px;
    font-style: normal;
}

.section-ttl.__campany::after {
    content: "会社情報";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 20px;
    font-style: normal;
}

/* top-message */
.message {
    width: 100%;
    display: flex;
    margin-top: 120px;
    padding: 0 40px;
    justify-content: space-evenly;
}

.top-message {
    width: 50%;
    min-width: 0;
    flex-shrink: 1;
}

.top-message-ttl {
    font-size: 80px;
    font-weight: 500;
    color: var(--themecolor);
}

.top-message-sub {
    font-size: 20px;
    font-weight: 500;
    margin-top: 40px;
    color: var(--themecolor);
}

.top-message-txt {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    margin: 20px 0 0 40px;
}

/* service */
.service-li {
    display: flex;
}

.service-li img {
    height: 362px;
    width: 100%;
    object-fit: cover;
}

.img-container {
    background-color: var(--subcolor);
    width: 100%;
    position: relative;

}

.img-container img {
    opacity: 0.2;
    display: block;
}

.service-item{
    position: relative;
    width: 50%;
}

.service-ttl, .service-txt{
    position: absolute;
} 

.service-ttl {
    top: 30%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 24px;
    word-break: keep-all;
}

.service-txt{
    font-family: "Zen Kaku Gothic New", sans-serif;
    top:60%;
    left: 50%;
    text-align: center;
    transform: translate(-50%,-50%);
    word-break: keep-all;
}

/* works */
.works-content {
    margin-top: 120px;
    padding: 0 20px;
}

.works-flex {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 90px;
}

.works-li {
    width: 100%;
    display: flex;
    padding: 0 10px;
}

.box {
    width: 50%;
    position: relative;
    border: solid 3px var(--themecolor);
}

.works-ttl {
    font-weight: 300;
    position: absolute;
    top:40%;
    left:50%;
    transform: translateX(-50%) translateY(-50%);
    white-space: nowrap;
}

.works-txt {
    position: absolute;
    top:60%;
    left:50%;
    transform: translateX(-50%) translateY(-50%);
}
.box-img {
    width: 50%;
    display: flex;
}

.box-img img {
    width: 100%;
    object-fit: cover;
}

/* recruit */
#recruit {
    background-image:url(images/DSC03736.JPG);
    background-size: cover;
    background-color: rgba(255,255,255,0.7);
    background-blend-mode: lighten;
    background-position: center;
    width: 100%;
    height: 750px;
}

.recruit-li  {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    margin-bottom: 50px;
}

.recruit-txt {
    width: 45%;
    max-width: 450px;
    border-radius: 40px;
    background: var(--subcolor);
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 1px 1px 10px #cdcdcd;
}

.position {
    display: block;
    margin-top: 10px;
    font-style: italic;
    font-size: 20px;
}

.lang {
    display: block;
    margin-top: 10px;
    font-style: italic;
    font-weight: bold;
}

.entry {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background: var(--subcolor);
    border-radius: 40px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 1px 1px 10px #cdcdcd;
}

.entry-txt {
    padding: 20px;
    font-size: 16px;
    line-height: 1.6;
}

/* company */
#company {
    padding: 0 40px;
}

.profile, .access {
    display: flex;
    align-items: flex-start;
}

.company-ttl {
    font-size: 48px;
    font-weight: 400;
}

.profile-table {
    margin: 0 auto;
}

.profile-table td {
    font-family: "Zen Kaku Gothic New", sans-serif;;
}

.profile-table th,
.profile-table td {
    padding: 24px 24px;
    border: none;
    border-bottom: 1px dashed var(--themecolor);
    word-break: keep-all;
}

.profile-table th {
    width: 30%;
}

.map {
    margin: 0 auto;
    aspect-ratio: 4/3;
    width: 100%;
    height: 100%;
    max-width: 700px;
}

.access {
    margin-top: 80px;
    gap: 20px;
}

/* btn共通 */
.btn {
    text-align: center;
}
/*矢印が右に移動する*/
.btn-link {
	position: relative;
    display: inline-block;
	padding: 0 20px;
    text-decoration: none;
    outline: none;
    color: var(--textcolor);
}

/*矢印と下線の形状*/
.btn-link::before {
    content: '';
	position: absolute;
    bottom:-8px;
    left:15%;
    width: 85%;
    height: 1px;
	background: var(--themecolor);
    transition: all .3s;
}

.btn-link::after{
    content: '';
	position: absolute;
    bottom:-3px;
    right:0;
    width: 15px;
    height:1px;
	background: var(--themecolor);
    transform: rotate(35deg);
    transition: all .3s;
}

/*hoverした際の移動*/
.btn-link:hover::before{
    left:20%;
}

.btn-link:hover::after{
    right:-5%;
}

.btn-link:hover {
    color: var(--themecolor);
    font-weight: 500;
}

.btn-ttl {
    font-size: 24px;
}

/* contact */
.btn-ttl.__detail {
    font-size: 80px;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    margin: 120px 0 20px 0;
}

.btn-ttl.__detail::after {
    content: "お問い合わせ";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 20px;
    font-style: normal;
    white-space: nowrap;
}

/* footer */
#footer {
    margin-top: 120px;
    padding-top: 70px;
    height: 100px;
    background: var(--themecolor);
}

.footer-copy {
    position: relative;
    text-align: center;
    white-space: normal;
    font-weight: 300;
}

.footer-back {
    position: absolute;
    height: 100px;
    background: var(--themecolor);
}

/* ページトップへ戻るボタン */
.fixed-pagetop {
    position: fixed;
    bottom: 16px;
    left: 0;
    width: 100%;
    z-index: 1;
}

.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;
    /* position: fixed;
    right: 30px;
    bottom: 30px; */
}

.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 screen and (max-width: 768px) {
    body {
        max-width: 768px;
        margin: 0 auto;
        font-size: 13px
    }
    
    /* header */
    .nav-content {
        top: 0%;
        left: 100%; /* メニューを画面の外に飛ばす */
        padding-top: 20px;
    }

    .drawer_open {
        top: 0;
        right: 0;
    }

    #drawer_input:checked ~ .nav-content {
        left: 0;
    }

    #nav {
        display: none;
    }

    .logo-menu {
        margin: 20px 0 0 10px;
    }

    .logo-link img {
        max-width: 130px;
    }

    /* kv */
    .kv {
        height: 350px;
    }

    .kv-img  {
        height: 350px;
    }

    /* main共通 */
    .section-ttl {
        margin: 40px 0;
        font-size: 36px;
        font-style: italic;
    }

    .section-ttl.__service::after {
        font-size: 11px;
    }
    
    .section-ttl.__works::after {
        font-size: 11px;
    }
    
    .section-ttl.__recruit::after {
        font-size: 11px;
    }
    
    .section-ttl.__campany::after {
        font-size: 11px;
    }

    /* message */
    .message {
        flex-direction: column;
        align-items: center;
        margin-top: 40px;
        padding: 0 20px;
    }

    .top-message {
        width: 90%;
    }

    .top-message-ttl {
        font-size: 36px;
    }

    .top-message-sub {
        font-size: 16px;
        margin-top: 0;
    }

    .top-message-txt {
        font-size: 14px;
        line-height: 1.4;
        margin: 30px 0 0 0;
    }

    /* service */
    .service-ttl {
        font-size: 13px;
        top: 30%;
        left: 50%;
        transform: translate(-50%,-50%);
        font-family: "Zen Kaku Gothic New", sans-serif;
        font-weight: 500;
    }

    .service-txt {
        font-size: 11px;
        top:60%;
        left: 50%;
        text-align: center;
        transform: translate(-50%,-50%);
    }

    .img-container img {
        height: 200px;
    }

    /* works */
    .works-content {
        margin: 0;
    }

    .works-flex {
        margin: 0;
        flex-wrap: wrap;
    }

    .works-li {
        justify-content: center;
        margin-bottom: 40px;
    }

    .box-img {
        height: 150px;
    }

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

    /* recruit */
    .section-ttl.__recruit {
        padding-top: 50px;
    }

    .recruit-txt  {
        width: 90%;
        font-size: 13px;
    }

    .position {
        font-size: 16px;
    }

    .entry {
        width: 90%;
    }

    .entry-txt {
        font-size: 13px;
    }

    /* company */
    #company {
        padding: 0 20px;
    }

    .company-ttl {
        font-size: 32px;
    }

    .profile, .access {
        display: block;
    }

    .profile-table {
        white-space: normal;
    }

    .profile-table th {
        width: 100%;
        text-align: left;
    }

    .profile-table th,td {
        display: block;
    }

    .detail-btn {
        width: 300px;
        height: 150px;
        margin-top: 90px;
    }

    /* btn共通 */
    .btn {
        display: grid;
        width: 100px;
        height: 40px;
        background: var(--subcolor);
        border: 2px solid var(--themecolor);
        margin: 0 auto;
    }

    .btn-link {
        color: var(--themecolor);
        transition: .3s;
        display: flex;
        align-items: center;
        margin: 0 auto;
        padding: 0;
    }

    .btn-link::after,
    .btn-link:before {
        display: none;
    }

    /* contact */
    .detail-btn {
        display: grid;
        width: 300px;
        height: 150px;
        background: var(--subcolor);
        border: 2px solid var(--themecolor);
        margin: 80px auto;
    }

    .btn-ttl {
        font-size: 16px;
        margin: 0;
    }

    .btn-ttl.__detail {
        font-size: 36px;
        margin: 0;
    }
    
    .btn-ttl.__detail::after {
        font-size: 11px;
    }

    /* thanks */
    .thanks-btn {
        display: grid;
        width: 150px;
        height: 40px;
        background: var(--subcolor);
        border: 2px solid var(--themecolor);
        margin: 80px auto;
    }
}