@charset "UTF-8";

/* ==========================================================================
   Twinz_Re theme styles
   ※ テーマ情報はテーマ直下の style.css に記載（WordPress の仕様で移動不可）
   ========================================================================== */

:root{
   --main: #194F84;
   --orange: #FF8900;
}

.pc{
   display: none;
}
.sp{
   display: block;
}

body{
   font-family: "Noto Sans JP", sans-serif;
   font-size: 4vw;
   overflow-x: hidden;
}
img{
   box-sizing: border-box;
    vertical-align: middle;
    width: 100%;
    height: auto;
}
/* SP画像の出し分け用 picture はレイアウト上存在しないものとして扱い、img を親要素の直下にあるのと同じ状態にする */
picture{
   display: contents;
}

p{
   line-height: 1.6;
   color: #333;
}
.tit_a{
    color: var(--main);
    font-weight: 600;
    border-bottom: solid .3rem;
    padding-bottom: .5rem;
    margin-bottom: .5rem;
    font-size: 1.2rem;
    width: 12rem;
}
.tit_b{
    display: flex;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--main);
    font-size: 1.2rem;  
}
.tit_b::before,.tit_b::after{
    content: "";
    width: 100%;
    height: 1px;
    background: var(--main);
    display: block;
}
/* .anime 付きは .active で線が中央（文字側）から外側へ伸びる */
.tit_b.anime::before,
.tit_b.anime::after{
    transform: scaleX(0);
    transition: transform .8s ease .2s;
}
.tit_b.anime::before{
    transform-origin: right center;
}
.tit_b.anime::after{
    transform-origin: left center;
}
.tit_b.anime.active::before,
.tit_b.anime.active::after{
    transform: scaleX(1);
}

.serif{
   font-family: "Noto Serif JP";
   color: var(--main);
}
.inner{
   padding: 0 1rem;
}

header{
   position: fixed;
   top: 0;
   left: 0;
   z-index: 100;
   background: #fff;
   width: 100%;
   transition-duration: .3s;
}
/* ログイン中（管理バー表示時）は管理バーの下に固定（高さは WP が --wp-admin--admin-bar--height で 32px / 46px を設定） */
.admin-bar header{
   top: var(--wp-admin--admin-bar--height, 32px);
}
/* 600px以下は管理バーがスクロールで流れるため、ヘッダーと揃うよう固定表示にする */
@media screen and (max-width: 600px){
   .admin-bar #wpadminbar{
      position: fixed;
   }
}
header.active{
   background: #ffffff99;
}
/* backdrop-filter を header 自体に付けると fixed のメニュー（.header__nav）の基準がヘッダーになり全画面表示が崩れるため、擬似要素に付ける */
header.active::before{
   content: "";
   position: absolute;
   inset: 0;
   z-index: -1;
   -webkit-backdrop-filter: blur(10px);
   backdrop-filter: blur(10px);
}
.header__inner{
   display: flex;
   align-items: center;
   height: 60px;
   justify-content: space-between;
   padding: 0 1rem;
}
.header__inner .header__logo{
   display: block;
   width: 8rem;
}
.header__inner button{
   border: none;
   background: none;
}
.header__menu-btn{
   position: relative;
   z-index: 2;
   width: 44px;
   height: 44px;
   padding: 0;
   cursor: pointer;
}
.header__menu-btn span{
   position: absolute;
   left: 50%;
   width: 39px;
   height: 2px;
   margin-left: -19.5px;
   background: var(--main);
   transition: transform .3s ease, top .3s ease;
}
.header__menu-btn span:nth-child(1){
   top: 15px;
}
.header__menu-btn span:nth-child(2){
   top: 27px;
}
.header__menu-btn[aria-expanded="true"] span:nth-child(1){
   top: 21px;
   transform: rotate(25deg);
}
.header__menu-btn[aria-expanded="true"] span:nth-child(2){
   top: 21px;
   transform: rotate(-25deg);
}
/* メニュー：背景はフェードイン、リストは右からスライドイン */
.header__nav{
   position: fixed;
   inset: 0;
   z-index: 1;
   background: rgba(0, 0, 0, .8);
   opacity: 0;
   visibility: hidden;
   transition: opacity .4s ease, visibility .4s ease;
}
.header__nav > ul{
   position: absolute;
   top: 0;
   right: 0;
   width: 280px;
   max-width: 100%;
   height: 100%;
   overflow-y: auto;
   box-sizing: border-box;
   padding: 4rem 16px 40px 79px;
   background: #fff;
   transform: translateX(100%);
   transition: transform .4s ease;
}
.header.is-open .header__nav{
   opacity: 1;
   visibility: visible;
}
.header.is-open .header__nav > ul{
   transform: translateX(0);
}
.header__nav > ul > li{
   padding: 18px 0;
   border-bottom: 1px solid var(--main);
   margin-right: -1rem;
}
.header__nav a{
   display: block;
   color: var(--main);
   font-size: 1rem;
   font-weight: 700;
   text-decoration: none;
}
.header__sub{
   margin-top: 16px;
}
.header__sub li + li{
   margin-top: 19px;
}
.header__sub a{
   display: inline-block;
   font-weight: 500;
   text-decoration: underline;
   text-underline-offset: 3px;
}
.header__sub--service{
   padding-left: 36px;
}
.header__sub--recruit{
   padding-left: 20px;
}
body.is-menu-open{
   overflow: hidden;
}
footer .inner{
   padding-bottom: .5rem;
   padding-top: 2rem;
}

.footer__logo{
   width: 13rem;
   margin: 1rem auto;
   transform: translateX(-.5rem);
}
footer address{
   text-align: center;
   margin-bottom: 1.5rem;
   line-height: 1.6;
}

footer ul{
   display: flex;
   flex-wrap: wrap;
}

footer li{
   width: 50%;
   text-align: center;
}
footer li a{
   color: var(--main);
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

/* 子ページリンクは1024px以上のみ表示 */
.footer__sub{
   display: none;
}

.footer__copyright{
   text-align: center;
    color: #8b8b8b;
    font-size: .8rem;
    margin-bottom: 1rem;
    margin-top: 3rem;
}

.contact{
   background-image: url(../assets/img/contact_cnt_bg_sp.webp);
   background-position: center;
   background-size: cover;
   background-repeat: no-repeat;
}
@media (max-width: 767px){
   .contact{
      background-image: url(../assets/img/contact_cnt_bg_sp-sp.webp);
   }
}
.contact .inner{
   padding: 3rem 1rem 6rem;
}
.contact h2{
   margin-bottom: 1.5rem;
}

.contact .sec-title__en{
   color: #fff;
   display: block;
   text-decoration: none;
   font-weight: 900;
   font-size: 3rem;
   margin-bottom: .3rem;
}
.contact .sec-title__ja{
   color: #fff;
   font-weight: 500;
   margin-bottom: 1rem;
}
.contact__btn a,.btn a{
   display: flex;
    align-items: center;
    padding-left: 4rem;
    padding-right: .8rem;
    color: #fff;
    font-weight: 500;
    background: var(--main);
    border-radius: .6rem;
    height: 4rem;
    margin-bottom: 1rem;
    text-decoration: none;
    font-size: 1.1rem;
}

.contact__btn span, .btn span{
    align-content: center;
    height: 2.4rem;
    width: 2.4rem;
    border: solid 1px #fff;
    border-radius: 8px;
    display: block;
    margin-left: auto;
}

.contact__btn img , .btn img{
   width: 1.2rem;
    margin: 0 auto;
    display: block;
}

/* ホバーで矢印が右へ抜けて左から戻る（.job__btn は .btn に含む） */
.btn span,
.contact__btn span,
.recruit__btn span{
    overflow: hidden;
}
@media (hover: hover){
    .btn a:hover img,
    .contact__btn a:hover img,
    .recruit__btn a:hover img{
        animation: btn-arrow .6s ease;
    }
}
@keyframes btn-arrow{
    0%{
        transform: translateX(0);
    }
    40%{
        transform: translateX(1.8rem);
    }
    40.01%{
        transform: translateX(-1.8rem);
    }
    100%{
        transform: translateX(0);
    }
}

/* ホバーで押し込んだように縮小（.job__btn は .btn に含む） */
.btn a,
.contact__btn a,
.recruit__btn a{
    transition: transform .3s ease;
}
@media (hover: hover){
    .btn a:hover,
    .contact__btn a:hover,
    .recruit__btn a:hover{
        transform: scale(.95);
    }
}

.contact__box{
   background: #ffffffcf;
    margin: 0 -1rem;
    padding: 1rem;
    text-align: center;
}
.contact__box .contact__lead{
   color: var(--main);
   font-size: 1.4rem;
   font-family: "Noto Serif JP";
   text-decoration: underline;
   margin-bottom: 1rem;
   font-weight: bold;
}

.h1{
   position: relative;
   height: 14rem;
   align-content: center;
   margin-top: 60px;
   margin-bottom: 3.5rem;
}
/* 背景画像のパララックス：--parallax（0〜30px）は main.js でスクロール量から設定
   画像を30px縦長にして下へずらし、clip-path で .h1 の高さ分だけ表示する（.h1 p ははみ出し可） */
.h1::before{
   content: "";
   position: absolute;
   top: -30px;
   left: 0;
   width: 100%;
   height: calc(100% + 30px);
   background-size: cover;
   background-position: center;
   z-index: -1;
   translate: 0 var(--parallax, 0px);
   clip-path: inset(calc(30px - var(--parallax, 0px)) 0 var(--parallax, 0px) 0);
}

.h1 h1 span{
   display: block;
   color: #fff;
   background: #194f84c9;
   font-weight: bold;
   font-size: 1.2rem;
   align-content: center;
   padding: 0 2rem;
   height: 3rem;
   width: fit-content;
}

.h1 p{
   position: absolute;
   color: #A7C3DB;
   opacity: .8;
   right: 0;
   bottom: -2.3rem;
   font-size: 3.4rem;
   font-weight: bold;
}

.anime{
	opacity: 0;
	transition: .6s;
}
.anime.slide_up{
	transform: translateY(2rem);
}
.anime.slide_right{
   transform: translateX(2rem);
}
.anime.slide_left{
   transform: translateX(-2rem);
}
.anime.active{
	opacity: 1;
	transform: translate(0)!important;
}
.main{
   overflow: hidden;
}
.main::before{
   content: "";
   z-index: -5;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-image: url(../assets/img/content_bg.webp);
   background-repeat: no-repeat;
   background-size: cover;
   background-position: top right;
}

/* 求人スライダー・求人ボタン（トップ / 採用情報 共通） */
.recruit__imgs img{
   aspect-ratio: 3 / 2;
   object-fit: cover;
   border-radius: 10px;
}
/* 自動再生を等速で流し続ける */
.recruit__imgs .swiper-wrapper{
   transition-timing-function: linear !important;
}

.recruit__btns a{
   display: flex;
   align-items: center;
   padding-left: 4rem;
   padding-right: .8rem;
   color: #fff;
   font-weight: 500;
   background: #333;
   border-radius: .6rem;
   height: 4rem;
   margin-bottom: 1rem;
   text-decoration: none;
   font-size: 1.1rem;
}

.recruit__btns a span{
   align-content: center;
    height: 2.4rem;
    width: 2.4rem;
    border: solid 1px #fff;
    border-radius: 8px;
    display: block;
    margin-left: auto;
}
.recruit__btns a img{
   width: 1.2rem;
   margin: 0 auto;
   display: block;
}

.recruit__btn--maintenance a{
   background: #498DC7;
}
.recruit__btn--operator a{
   background: #009EC4;
}
.recruit__btn--craftsman a{
   background: #194F84;
}


/* ==========================================================================
   TAB（768px〜）
   ========================================================================== */
@media (min-width: 768px){
   body{
      font-size: 16px;
   }
   .inner{
      max-width: 50rem;
      margin: 0 auto;
      padding: 0 2rem;
   }

   /* 見出し */
   .tit_a{
      font-size: 1.5rem;
      width: 16rem;
   }
   .tit_b{
      font-size: 1.5rem;
      gap: 1.5rem;
      margin-bottom: 3rem;
   }

   /* ヘッダー */
   .header__inner{
      height: 5rem;
      padding: 0 2rem;
   }
   .header__inner .header__logo{
      width: 11rem;
   }
   .header__nav > ul{
      width: 24rem;
      padding: 6rem 2rem 3rem 5rem;
   }

   /* ページタイトル */
   .h1{
      height: 22rem;
      margin-top: 5rem;
      margin-bottom: 5rem;
   }
   .h1 h1 span{
      font-size: 1.6rem;
      height: 4rem;
      padding: 0 3rem;
   }
   .h1 p{
      font-size: 6rem;
      bottom: -3.8rem;
      line-height: 1.4;
   }

   /* ボタン */
   .contact__btn a,
   .btn a{
      max-width: 30rem;
      height: 4.5rem;
      margin-left: auto;
      margin-right: auto;
      padding-left: 5rem;
      padding-right: 1rem;
      font-size: 1.2rem;
   }

   /* お問い合わせ（共通パーツ） */
   .contact .inner{
      padding-top: 5rem;
      padding-bottom: 8rem;
   }
   .contact h2{
      margin-bottom: 2.5rem;
   }
   .contact .sec-title__en{
      font-size: 4.5rem;
   }
   .contact .sec-title__ja{
      font-size: 1.1rem;
   }
   .contact__box{
      margin: 0;
      padding: 3rem 2rem 2rem;
      border-radius: 1rem;
   }
   .contact__box .contact__lead{
      font-size: 1.6rem;
      margin-bottom: 2rem;
   }

   /* 求人スライダー・求人ボタン */
   .recruit__btns{
      max-width: 30rem;
      margin: 0 auto;
   }
   .recruit__btns a{
      height: 4.5rem;
      padding-left: 5rem;
      padding-right: 1rem;
      font-size: 1.2rem;
   }

   /* フッター */
   footer .inner{
      padding-top: 4rem;
   }
   .footer__logo{
      width: 16rem;
      margin-bottom: 1.5rem;
   }
   footer address{
      margin-bottom: 2.5rem;
   }
   footer ul{
      justify-content: center;
      gap: 0 2.5rem;
      max-width: 40rem;
      margin: 0 auto;
   }
   footer li{
      width: auto;
   }
   .footer__copyright{
      font-size: .85rem;
   }
}


/* ==========================================================================
   PC（1280px〜）
   ※ Figma（1440px幅・コンテンツ幅1000px）基準
   ========================================================================== */
@media (min-width: 1024px){
   /* コンテンツ幅（内側の要素は1000pxまで） */
   .inner{
      max-width: 900px;
   }
   .sp{
      display: none;
   }

   .pc{
      display: block;
   }

   /* ヘッダー：横並びナビ＋ホバーでサブメニュー */
   .header{
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 80px;
      padding: 0 calc((100% - 1000px) / 2);
   }
   .header__inner{
      height: 80px;
      padding: 0;
   }
   .header__inner .header__logo{
      width: 166px;
   }
   .header__menu-btn{
      display: none;
   }
   .header__nav{
      position: static;
      background: none;
      opacity: 1;
      visibility: visible;
      transition: none;
   }
   .header__nav > ul{
      position: static;
      display: flex;
      gap: 26px;
      width: auto;
      height: auto;
      padding: 0;
      overflow: visible;
      background: none;
      transform: none;
      transition: none;
   }
   .header__nav > ul > li{
      position: relative;
      padding: 0;
      border-bottom: none;
      margin-right: 0;
   }
   .header__nav > ul > li > a{
      padding: 32px 0;
      font-weight: 500;
      line-height: 1;
   }
   .header__nav > ul > li > a:hover{
      text-decoration: underline;
   }
   .header__nav a{
      transition: opacity .3s ease;
   }
   .header__nav a:hover{
      opacity: .7;
   }
   .header__sub,
   .header__sub--service,
   .header__sub--recruit{
      position: absolute;
      top: 100%;
      left: -12px;
      margin: 0;
      padding: 11px 12px 19px;
      background: #fff;
      box-shadow: 0 4px 4px rgba(0, 0, 0, .1);
      white-space: nowrap;
      opacity: 0;
      visibility: hidden;
      transition: opacity .3s ease, visibility .3s ease;
   }
   .header__nav li:hover > .header__sub,
   .header__nav li:focus-within > .header__sub{
      opacity: 1;
      visibility: visible;
   }
   .header__sub li + li{
      margin-top: 20px;
   }
   .header__sub a{
      line-height: 1;
   }

   /* 求人スライダー・求人ボタン（トップ / 採用情報 共通） */
   .recruit__imgs .swiper-slide{
      width: 400px;
   }
   .recruit__imgs img{
      aspect-ratio: 309 / 227;
   }
   /* ボタン：1段目 メンテナンス・職人、2段目 オペレーター */
   .recruit__btns{
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px 18px;
      max-width: 1000px;
   }
   .recruit__btn--craftsman{
      grid-column: 2;
      grid-row: 1;
   }
   .recruit__btn--operator{
      grid-column: 1;
      grid-row: 2;
   }
   .recruit__btns a{
      position: relative;
      justify-content: center;
      height: 70px;
      margin: 0;
      padding: 0;
      border-radius: 10px;
      font-size: 18px;
      font-weight: 700;
      letter-spacing: .36px;
   }
   .recruit__btns a span{
      position: absolute;
      top: 50%;
      right: 22px;
      translate: 0 -50%;
      box-sizing: border-box;
      width: 41px;
      height: 39px;
      margin: 0;
   }
   .recruit__btns a img{
      width: 17px;
   }

   /* お問い合わせ（共通パーツ） */
   .contact{
      background-image: url(../assets/img/contact_cnt_bg_pc.webp);
      background-position: center top;
   }
   .contact .inner{
      max-width: 1000px;
      padding: 6rem 0 10rem;
   }
   .contact h2{
      margin-bottom: 42px;
   }
   .contact .sec-title__en{
      font-size: 70px;
      font-weight: 700;
      line-height: 1;
      letter-spacing: 1.4px;
      margin-bottom: 16px;
   }
   .contact .sec-title__ja{
      font-size: 16px;
      font-weight: 700;
      letter-spacing: .32px;
      margin-bottom: 0;
   }
   .contact__box{
      padding: 5rem 0;
      border-radius: 0;
      background: rgba(255, 255, 255, .9);
   }
   .contact__box .contact__lead{
      margin-bottom: 2rem;
      font-size: 1.8rem;
      font-weight: 600;
      line-height: 1.6;
      letter-spacing: 2px;
   }
   .contact__btn a{
      position: relative;
      justify-content: center;
      max-width: 500px;
      height: 70px;
      margin-bottom: 0;
      padding: 0;
      border-radius: 10px;
      font-size: 18px;
      font-weight: 700;
      letter-spacing: .36px;
   }
   .contact__btn span{
      position: absolute;
      top: 50%;
      right: 16px;
      translate: 0 -50%;
      box-sizing: border-box;
      width: 39px;
      height: 39px;
      margin: 0;
   }
   .contact__btn img{
      width: 17px;
   }

   /* フッター：左にロゴ・住所、右に3列ナビ */
   footer{
      position: relative;
      background: #fff;
   }
   footer .inner{
      display: grid;
      grid-template-columns: 1fr auto;
      max-width: 1000px;
      padding: 99px 0 0;
   }
   .footer__logo{
      grid-column: 1;
      grid-row: 1;
      width: 316px;
      margin: 0 0 45px;
      transform: none;
   }
   footer address{
      grid-column: 1;
      grid-row: 2;
      margin: 0;
      text-align: left;
      color: #3e3e3e;
      font-weight: 500;
      line-height: 24px;
      letter-spacing: .32px;
   }
   .footer__nav{
      grid-column: 2;
      grid-row: 1 / 3;
   }
   .footer__nav > ul{
      display: grid;
      grid-template-columns: 193px 194px 147px;
      grid-template-rows: repeat(5, auto);
      align-items: start;
      gap: 19px 0;
      max-width: none;
      margin: 0;
   }
   footer li{
      text-align: left;
   }
   footer li a{
      margin: 0;
      font-weight: 700;
      line-height: 24px;
      letter-spacing: .32px;
      text-decoration: none;
   }
   /* 1列目：HOME / 会社概要 / 代表挨拶 / Twinzについて / お問い合わせ、2列目：サービス一覧、3列目：採用情報（子ページリンクを含めて縦に伸ばす） */
   .footer__nav > ul > li:nth-child(1){ grid-area: 1 / 1; }
   .footer__nav > ul > li:nth-child(2){ grid-area: 1 / 2 / 6; }
   .footer__nav > ul > li:nth-child(3){ grid-area: 1 / 3 / 6; }
   .footer__nav > ul > li:nth-child(4){ grid-area: 2 / 1; }
   .footer__nav > ul > li:nth-child(5){ grid-area: 4 / 1; }
   .footer__nav > ul > li:nth-child(6){ grid-area: 3 / 1; }
   .footer__nav > ul > li:nth-child(7){ grid-area: 5 / 1; }
   footer .footer__sub{
      display: grid;
      justify-content: start;
      gap: 19px 0;
      max-width: none;
      margin: 19px 0 0;
   }
   footer .footer__sub a{
      font-weight: 500;
      text-decoration: underline;
   }
   .footer__copyright{
      grid-column: 1 / -1;
      margin: 86px 0 61px;
      color: #5d5d5d;
      font-size: 14px;
      font-weight: 300;
      line-height: 24px;
      letter-spacing: .28px;
   }

   .h1{
      height: 30rem;
   }
   .h1 p{
      bottom: -4.7rem;
      font-size: 8rem;
   }
   .h1 h1 span{
      width: 22rem;
      font-size: 1.8rem;
      text-align: right;
      height: 6rem;
      padding-right: 5rem;
      display: block;
   }

   .tit_b{
      max-width: 1000px;
      margin: 0 auto 3rem;
   }
}

@media (min-width: 1280px){

   .inner{
      max-width: 1000px;
   }
   .h1{
      height: 720px;
      margin-bottom: 9rem;
   }
   .h1 p{
      bottom: -6.5rem;
      font-size: 11rem;
   }

   .h1 h1 span{
      font-size: 2rem;
      height: 6rem;
      width: 37vw;
   }

   .header{
      padding: 0 calc((100% - 1200px) / 2);
   }
   .header__nav > ul{
      gap: 32px;
   }
}

@media (min-width: 1440px){
   .header{
      padding: 0 calc((100% - 1400px) / 2);
   }
}