/* 
    Theme Name:山口板金工業
*/
@font-face {
  font-family: 'NotoSansJP';
  src: url('fonts/NotoSansJP-VariableFont_wght.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
}

@font-face {
  font-family: "InstrumentSans";
  src: url('fonts/InstrumentSans-VariableFont_wdth,wght.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
}
:root{
  --c-text: #303030;
  --c-main: #1B2937;
  --c-accent: #25bbc8;
  --t-accent: 'InstrumentSans';
}
html {
  font-size: 100%;
}

body{
  color: var(--c-text);
  letter-spacing: 2px;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.6;
  font-family: "NotoSansJP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

img{
  max-width: 100%;
}

.sp{
  display: none;
}

section{
  padding: 2rem 0;
  margin: 5rem 0;
}
.bk_navy{
  background-color: var(--c-main);
  color: #fff;
  padding: 10rem 0;
}

.contents_in{
  width: 1200px;
  padding: 0 1rem;
  margin: 0 auto;
}

.btn{
  border: 1px solid var(--c-main);
  width: fit-content;
  margin: 2rem auto;
  transition: 0.4s;
}
.btn:hover{
  background-color: var(--c-main);
  color: #fff;
}
.btn a{
  display: block;
  padding: 1rem 2rem;
}

/*  =========== ヘッダー =========== */

.hd-container{
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  background-color: var(--c-main);
  color: #fff;
}
#hd-logo{
  max-width: 500px;
  font-size: 1.6rem;
  padding: 1.4rem 1rem;
}

.menu-list{
  display: flex;
  height: 100%;
  justify-content: space-around;
  align-items: center;
}
.menu-item{
  height: 100%;
  display: flex;
  align-items: center;
  padding: 1.4rem 1rem;
}

.menu-link{
  padding: 0.4rem;
  transition: ease-in-out 0.2s;
  position: relative;
}
.menu-item:not(.menu-cta) .menu-link::before{
  position: absolute;
  content: "";
  width: 0;
  height: 1px;
  background-color: #fff;
  left: 0;
  bottom: 0;
  transition: 0.4s;
}
.menu-link:hover,
.menu-link.is-active{
  position: relative;
}
.menu-item:not(.menu-cta) .menu-link:hover::before{
  width: 100%;
}

.menu-cta .menu-link{
  background-color: var(--c-accent);
  padding: 0.6rem 1rem;
  border-radius: 3rem;
  transition: 0.4s;
}
.menu-cta .menu-link:hover{
  background-color: #ff701d;
}

/* PC（1024px以上）ではハンバーガー非表示 */
.hamburger-button {
  display: none;
}

.nav-menu {
  display: block;
}

/* ハンバーガー回転アニメ */
.openbtn-active .line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.openbtn-active .line:nth-child(2) {
  opacity: 0;
}
.openbtn-active .line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/*  =========== トップページ =========== */

/* スライド */
.card01 {
  width: 100%;
  padding: 80px 0;
  overflow: hidden;
}

.card01 .swiper-area {
  position: relative;
  width: 100%;
  padding: 0 80px;
  box-sizing: border-box;
}

.card01 .swiper {
  width: 100%;
  overflow: visible;
}

.card01 .swiper-slide {
  width: auto;
}

.swiper-backface-hidden .swiper-slide {
  aspect-ratio: 5 / 3;
}

.card01 .slide-box {
  width: 100%;
  height: 100%;
  background: #ddd;
}
.card01 .slide-box img{
  width: 100%;
}


/* 矢印 */
.card01 .swiper-button-prev,
.card01 .swiper-button-next {
  width: 50px;
  height: 50px;
  color: var(--c-accent);
}


.card01 .swiper-button-prev {
  left: 10px;
}

.card01 .swiper-button-next {
  right: 10px;
}


/* ページネーション */
.card01 .swiper-pagination {
  position: relative;
  margin-top: 30px;
}

.card01 .swiper-pagination-bullet {
  width: 30px;
  height: 3px;
  border-radius: 0;
}
.card01 .swiper-pagination-bullet-active{
  background: var(--c-accent);
}

/* トップコンテンツ */
h2.title{
  font-size: 1rem;
  letter-spacing: 4px;
  margin-bottom: 2rem;
}
h2.title span{
  display: block;
  font-size: 6rem;
  letter-spacing: 1px;
  font-family: var(--t-accent);
  color: var(--c-accent);
  font-weight: 600;
  line-height: 1;
}
.post-item a{
  border-bottom: 1px solid var(--c-text);
  display: flex;
  padding: 1rem;
  transition: 0.4s;
}
.post-item a:hover{
  opacity: 0.6;
}
.post-item .date{
  display: flex;
}
.post-item p{
  font-size: 1.2rem;
  margin-left: 1rem;
}
.post-item .post_new{
  margin-right: 0.6rem;
  background-color: var(--c-accent);
  color: #fff;
  line-height: 1.8;
  padding: 0 0.4rem;
  margin-left: 0.6rem;
}
.top_service{
  margin-bottom: 0;
}
.top_service h2.title{
  margin-bottom: 1rem;
}
.top_service .service_item{
  margin-top: 3rem;
  margin-bottom: 4rem;
  display: flex;
  justify-content: space-between;
}
.top_service .img_box{
  width: 50%;
}
.top_service .text_box{
  width: 42%;
}
.top_service .cate{
  font-size: 1.4rem;
  border-bottom: 1px solid #fff;
  width: fit-content;
  margin-bottom: 2rem;
}
.top_service p{
  line-height: 2;
}
.top_works{
  background-image: url(img/top/works-bk.png);
  background-size: cover;
  background-repeat: no-repeat;
  padding: 8rem 0;
  margin: 0;
}
.top_works .works_box{
  display: flex;
  justify-content: space-between;
  margin: 4rem 0;
}
.top_works h2.title{
  color: #fff;
}
.top_works .works_item{
  padding: 2rem 1rem;
  background-color: #fff;
  width: 30%;
  border-radius: 10px;
}
.top_works .works_item p{
  margin: 0.4rem 0;
  font-weight: 500;
}
.top_works .btn{
  border: 1px solid #fff;
}
.top_works .btn a{
  color: #fff;
  transition: 0.4s;
}
.top_works .btn a:hover{
  background-color: #fff;
  color: var(--c-main);
}
/*  =========== 共通パーツ =========== */
.lower_head{
  padding: 5rem 0;
  background-size: cover;
  background-position: center;
}
.lower_head h2{
  color: #fff;
  text-align: center;
  letter-spacing: 4px;
}
.lower_head h2 span{
  display: block;
  font-size: 3rem;
  font-weight: bold;
}
.company .lower_head{
  background-image: url(img/head/company.png);
}
.works .lower_head{
  background-image: url(img/head/works.png);
}
.recruit .lower_head{
  background-image: url(img/head/recruit.png);
}
.contact .lower_head{
  background-image: url(img/head/contact.png);
}
.privacy-policy .lower_head{
  background-image: url(img/head/policy.png);
}

/*  =========== 会社情報 =========== */
.company_text{
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 12rem 0;
  background-color: var(--c-main);
}
.company_text .text{
  width: 52%;
}
.company_text .text p{
  color: #fff;
  margin-bottom: 2rem;
  line-height: 2;
  font-size: 18px;
}
.company_text .img_box{
  position: absolute;
  top: 0;
  left: 60%;
  width: 40%;
}
.company_text .img_box img{
  width: 100%;
  height: 100%;
}
.company_table li{
  display: flex;
  border-bottom: 1px solid #ccc;
}
.company_table li .cate{
  width: 200px;
  padding: 1.4rem 2rem;
  font-weight: bold;
  border-bottom: 1px solid var(--c-main);
  text-align: center;
  align-content: center;
}
.company_table li .text{
  padding: 1.4rem 3rem;
}
.company_table li .text p{
  margin-bottom: 0.6rem;
}
.company_table li .text p .acc{
  font-weight: 600;
}
.machine_box{
  display: flex;
  justify-content: space-between;
}
.machine_item{
  width: 32%;
  position: relative;
}
.machine_item p{
  font-size: 1.2rem;
  position: absolute;
  bottom: 0;
  background-color: #1b2937d4;
  color: #fff;
  padding: 0.4rem 1rem;
}

/*  =========== 施工実績 =========== */

.lower_works .works_box{
  display: flex;
  flex-wrap: wrap;
  margin: 4rem 0;
}
.lower_works .works_item{
  width: 30%;
  border: 1px solid var(--c-main);
  margin-right: 5%;
  margin-bottom: 2rem;
  border-radius: 10px;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}
.lower_works .works_item:hover{
  transform: translateY(-20px) scale(1.02);
}
.lower_works .works_item:nth-child(3n){
  margin-right: 0;
}
.lower_works .works_item p{
  font-weight: 500;
  position: absolute;
  bottom: 0;
  padding: 0.4rem 0.6rem;
  background-color: #fff;
}
.work_single h3{
  font-size: 1.6rem;
  border-bottom: 1px solid var(--c-main);
  margin-bottom: 2rem;
}
.work_content{
  margin-bottom: 6rem;
}
.work_content p{
  display: flex;
  flex-wrap: wrap;
}
.work_content img{
  margin: 0.4rem;
  width: 24%;
}
.work_content img:nth-child(4n){
  margin-right: 0;
}

/*  =========== 採用情報 =========== */
.recruit_not{
  font-size: 2rem;
  display: block;
  margin: 3rem auto;
  text-align: center;
}
.recruit_table li{
  display: flex;
}
.recruit_table span{
  display: block;
  background-color: var(--c-main);
  width: 280px;
  color: #fff;
  text-align: center;
  padding: 2rem;
  border-bottom: 1px solid;
}
.recruit_table .recruit_list{
  width: calc(100% - 300px);
  padding: 1rem 2rem;
  align-content: center;
  border-bottom: 1px solid var(--c-main);
}
.recruit_text{
  margin-top: 4rem;
  text-align: center;
}
/*  =========== お問い合わせ =========== */
#contact-form .wpforms-field-label {
  color: var(--c-main);
}
#contact-form button{
  display: block;
  margin: 0 auto;
  padding: 1rem 3rem;
  height: auto;
  letter-spacing: 4px;
  background-color: var(--c-accent);
}
.wpforms-field-description{
  line-height: 1.6;
}

/*  =========== プライバシーポリシー =========== */
.pp_box{
  margin: 6rem 0;
}
.pp_item{
  margin-top: 1rem;
}
.pp_item .title{
  font-size: 1.4rem;
  color: var(--c-accent);
  font-weight: bold;
}
.pp_check{
  color: var(--c-accent);
  font-weight: bold;
  padding: 0 0.4rem;
}

/*  =========== ニュース =========== */
.news-title{
  font-size: 1.8rem;
  font-weight: 500;
  border-bottom: 1px solid;
  padding: 0.4rem;
  margin-bottom: 1.4rem;
}
.news-single-day{
  margin: 0 0.6rem;
  color: var(--c-accent);
}
.news-single__content{
  line-height: 1.8;
}
.news-single .btn{
  margin: 4rem auto 2rem;
}

/*  =========== フッター =========== */

.foot-box,
footer{
  background-color: var(--c-main);
  color: #fff;
}
.foot-box{
  padding: 3rem 0 2rem;
}
.foot-box a{
  font-size: 1.6rem;
  font-weight: 500;
}
.foot-box p{
  margin-top: 0.4rem;
}
footer{
  text-align: center;
  padding: 1rem 0;
}