@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/*common*/

* {
    box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	font-family: "Noto Sans JP", sans-serif;
}

body {
    background-color: transparent;
}

img {
    vertical-align: bottom;
    display: block;
    margin: 0 auto;
    height: auto;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
}

section {
	margin: 80px auto 100px;
}

p {
	line-height: 1.6;
}

a {
	color: inherit; /* 通常は継承に任せる場合 */
    text-decoration: none;
}

a img {
    transition: transform 0.6s ease, opacity 0.6s ease;
    display: block; /* インラインの隙間対策 */
}

a:hover {
	color:#734a36;
}

a:hover img {
    transform: scale(1.1);
    opacity: 0.6;
}

a div {
    overflow: hidden;
}

h2, h3 {
  scroll-margin-top: 150px;
}

.main {
    padding: 0;
	border: none;
}

.content {
    margin: 0 auto;
}

.wrap {
	width: 100%;
}

.header-container, .main, .sidebar, .footer {
     background-color: transparent;	
}

.max1200{
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
	margin: auto;
}

.max780{
    width: 100%;
    max-width: 780px;
    padding: 0 20px;
	margin: auto;
}

.flex2 {
	display: flex;
	gap: 20px;
}

.flex2 div {
	width: 50%;
}

/* 下からフェードアップ */
.scroll-fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-up.active {
  opacity: 1;
  transform: translateY(0);
}


.span-text {display: inline-block;}
.normal{font-weight: normal;}
.bold{font-weight: 600;}
.tac {text-align: center;}
.tal {text-align: left;}
.tar {text-align: right;}
.mb0 {margin-bottom: 0;}
.mb10 {margin-bottom: 10px;}
.mb20 {margin-bottom: 20px;}
.mb30 {margin-bottom: 30px;}
.mb40 {margin-bottom: 40px;}
.mb50 {margin-bottom: 50px;}
.mb60 {margin-bottom: 60px;}
.mb70 {margin-bottom: 70px;}
.mb80 {margin-bottom: 80px;}
.mt0{margin-top: 0px;}
.mt10{margin-top: 10px;}
.mt20{margin-top: 20px;}
.mt30{margin-top: 30px;}
.mt40{margin-top: 40px;}
.mt50{margin-top: 50px;}
.mt60{margin-top: 60px;}
.mt70{margin-top: 70px;}
.mt80{margin-top: 80px;}
.pt60{padding-top: 60px;}
.hidden{overflow: hidden;}

/*header*/


.logo-image a:hover img {
	transform:scale(1,1);
}

.fixed-header {
    box-shadow: none;
}

.header-container-in.hlt-top-menu {
	background: #fff
}

.header-container-in.hlt-top-menu .logo-header img {
	max-width: 157px;
	width: auto;
}

/*navi*/

#menu-btn-check {
    display: none;
}

.navi-in > ul {
	width: 80%;
	margin: 0 10px 0 auto;
}

.navi-in > ul li{
	width: 20%;
	height: 72px;
	line-height: 72px;
}

.navi-in ul li a:hover {
	color:#5054AE!important;
	background: #fff;
}
.item-label {
    font-size: 18px;
    font-weight: 600;
}

.navi-in #menu-item-27 a {
    background: #FFC62F;
    border-radius: 40px;
    height: 60px;
    line-height: 60px;
	margin: 6px 0 0;
}

.navi-in #menu-item-27 a:hover {
    background: #222;
    color: #fff!important;
}


/*footer*/

.footer {
	padding: 0;
}

#contact h2.h2_base {
	color: #222;
}

#contact h2.h2_base span {
	color: #fff;
	text-shadow: 0 0 10px #666;
}

.contact-flex {
	display: flex;
	justify-content: space-between;
	max-width: 780px;
	margin: 0 auto;
}

.contact-flex a {
	width: 48%;
	background: #fff;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 0;
  position: relative;
  z-index: 10;
}

.contact-flex p {
	color: #222;
	text-align: center;
	font-weight: 600;
}

.contact-flex p.mail-text1 {
	font-size: 18px;
	padding-bottom: 10px;
}

.contact-flex p.mail-text2 {
	font-size: 16px;
	color: #fff;
	background: #2A2D74;
    padding: 11px 18px;
}

.contact-flex a:hover p.mail-text2 {
	color: #2A2D74;
	background: #FFC62F;
}

.contact-flex p.tel-text1 {
	font-size: 18px;
	padding-bottom: 5px;
}

.contact-flex p.tel-text2 {
	font-size: 28px;
	padding: 1px 0 5px;
}

.contact-flex p.tel-text3 {
	font-size: 14px;
	font-weight: 400;
}

.contact-flex p.mail-text2,
.contact-flex p.tel-text2 {
  display: flex;
  align-items: center;   /* 縦中央にそろえる */
  justify-content: center; /* 全体を中央寄せ */
  gap: 8px;              /* アイコンと文字の間隔 */
}

.contact-flex p.mail-text2 .icon svg,
.contact-flex p.tel-text2 .icon svg {
  width: 22px;   /* 文字サイズに合わせて調整 */
  height: 22px;
}

.footer-bottom {
	background: #2A2D74;
    margin-top: 0;
}

.footer-bottom-content {
	max-width: 1200px;
    margin: 0 auto;
	padding: 80px 20px 10px;
	float: none;
	display: flex;
    flex-wrap: wrap;
}

.navi-footer {
	order: 2;
}

.navi-footer-in > ul.menu-footer {
	flex-direction: column;
	height: 110px;
    text-align: left;
	margin-left: 30px;
	list-style-type: circle;
	justify-content: start!important;
}

.navi-footer-in > .menu-footer li {
    border-left: none;
}

.navi-footer-in > .menu-footer li:last-child {
    border-right: none;
}

#footer .navi-footer-in a:hover {
	color: #FFC62F!important;
	background: #2A2D74;
}

.footer-bottom.fnm-text-width .menu-footer li {
    line-height: 2.6;
}

.navi-footer {
    order: 2;
	width: 60%;
	padding-left: 100px;
}

.footer-content-left {
    order: 1;
	text-align: left;
	width: 33%;
	margin-left: 40px;
}

.footer-bottom-logo {
    float: none;
    position: static;
}

.footer-bottom-logo .logo-image {
    text-align: left;
}

.footer-info {
	line-height: 1.6;
}

.footer-logo-ttl {
    margin-top: 25px;
    font-size: 18px;
    font-weight: 600;
}

.footer-info-name {
    font-weight: 500;
}

.footer-info-address {
	margin-top: 10px;
}

.footer-sns {
	order: 3;
	width: 100%;
	display: flex;
	justify-content: left;
	align-items: center;
	margin-top: 15px;
}

.footer-sns div {
    width: 34px;
}

.footer-sns a{
	padding: 10px;
}

.footer-sns a:hover img {
	transform:scale(1,1);
}


.copyright {
	width: 100%;
	order: 4;
	margin-top: 30px;
	text-align: center;
}

.go-to-top {
    z-index: 50;
}
/*TOP*/
section.top_main {
	margin: 0 auto 80px;
	position: relative;
}

.top_main_inner {
	position: absolute;
	top: 12%;
	left: 5%;
	margin:0;
	padding:0;
	text-shadow: 0 0 12px rgba(0, 0, 0, .25);
}
.top_main_txt1 {
	color: #fff;
    font-size: 5vw;
    font-weight: bold;
    line-height: 1.5;
}
.top_main_txt2 {
	color: #fff;
    font-size: 2vw;
    font-weight: bold;
    margin-top: 30px;
}

.h2_base {
	font-size: 28px;
    font-weight: bold;
	color: #222;
	text-align: center;
	margin-bottom: 30px;
}

.h2_base span {
	display: block;
	font-size: 60px;
    font-weight: bold;
	color: #BDBDBD;
	line-height: 1.2;
}

.Button-text {
    align-items: center;
    display: flex;
    gap: 25px;
	margin-top: 40px;
	color: #2A2D74;
	padding-bottom: 16px;
}
.Button-text .text {
    flex: 0 0 auto;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1;
    position: relative;
    z-index: 1;
}
.Button-text .text:before {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: calc(100% + 30px);
    height: 1px;
    background: currentColor;
    pointer-events: none;

    /* アニメーション用設定 */
    transform: scaleX(0);       /* 初期状態：幅ゼロ */
    transform-origin: left;     /* 左から伸びる */
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.Button-text:hover .text:before {
    transform: scaleX(1);       /* ホバー時：フル表示 */
}
.Button-text .icon {
    display: flex;
    flex: 0 0 auto;
    line-height: 1;
    position: relative;
    width: 12px;
    z-index: 0;
}
.Button-text .icon:before {
    aspect-ratio: 1;
    background: #FFC62F;
    border-radius: 100vw;
    content: "";
    display: block;
    height: auto;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    translate: -50% -50%;
    width: 45px;
    z-index: -1;
	 transition: width 0.3s ease;
}

.Button-text:hover .icon:before {
    width: 35px;
}


.bg-img {
  position: relative;
  background-image: url('https://hide-gumi.co.jp/wp-content/themes/cocoon-child-master/images/top/top-main.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  overflow: hidden;
	padding: 0 20px;
}

/* 背景フェード用のオーバーレイ */
.bg-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5); /* 白いオーバーレイで「たまに見える」効果 */
  pointer-events: none;
  transition: background 0.6s ease;
}

/* スクロール時に背景が少し見える */
.scroll-fade-up.active .bg-img::before {
  background: rgba(255, 255, 255, 0.3);
}

.bg_about {
	position: relative;
}

.bg_about::after {
    content: "ABOUT";
    position: absolute;
    right: 0;
    bottom: -330px;
    font-size: 10vw;
    font-weight: 900;
    color: #f2f2f2;
    z-index: -1;
    white-space: nowrap;
    line-height: 0;
    letter-spacing: 12px;
    transform: translate(0, 0);
}

#top_about {
	max-width: 1200px;
    width: 100%;
    padding: 0 20px;
	display: flex;
	position: relative;
	justify-content: space-between;
	align-items :flex-start;
}

#top_about .h2_base {
	order: 2;
	writing-mode: vertical-rl;
    text-orientation: upright;
	background: #f2f2f2;
	letter-spacing: 3px;
	padding: 30px 0;
}

.top_about_box {
	order: 3;
	width: 45%;
}

.top_about_box h3 {
	color: #2A2D74;
	margin-top: 15px;
}

.top_about_box p {
	margin-top: 20px;
}

.top_about_img {
	order: 1;
	width: 40%;
}

.bg-bottom35 {
	background: -webkit-linear-gradient(transparent 35%, #f2f2f2 35%);
	background: -o-linear-gradient(transparent 35%, #f2f2f2 35%);
	background: linear-gradient(transparent 35%, #f2f2f2 35%);
}

#top_service {
	max-width: 780px;
    width: 100%;
    padding: 0 20px 80px;
}

.top_service-flex {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: space-between;
}

.top_service-box {
    flex: 1 1 calc(33.333% - 30px); /* 3列配置 */
    text-decoration: none;
    color: #2A2D74;
    transition: color 0.3s ease;
}

.top_service-box:hover {
    color: #734a36;
}

.top_service-box div {
    overflow: hidden; /* 画像拡大時にはみ出さない */
    border-radius: 8px;
}

.top_service-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.top_service-box:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

.top_service-box p {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    font-weight: bold;
    font-size: 18px;
    gap: 8px; /* 矢印との間隔 */
}

.top_service-box .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background-color: #FFC62F; /* 黄色 */
    border-radius: 50%; /* 丸 */
    transition: all 0.3s ease;
}

.top_service-box:hover .icon {
    transform: scale(1.1); /* ホバーで少し拡大 */
}

.top_service-box .icon svg {
    width: 12px;   /* 矢印サイズ */
    height: auto;
    fill: #000;    /* 矢印色 */
}

.bg_works {
	position: relative;
}

.bg_works::after {
	content: "WORKS";
	position: absolute;
    top: 50px;
    z-index: -1;
    color: #f2f2f2;
    left: 0;
    font-size: 10vw;
    font-weight: 900;
    line-height: 0;
    letter-spacing: 12px;
}

#top_works {
	max-width: 1200px;
	width: 100%;
	padding: 0 20px;
	position: relative
}

#top_works h2 span{
	display: none;
}

.top_works-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.top_works-box {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
}

.top_works-text1 {
  font-size: 0.9rem;
  color: #666;
  margin: 12px 0 0;
}

.top_works-text2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 5px 0 0;
  color: #333;
}

.top_works-text3 {
  font-size: 0.9rem;
  color: #999;
  margin: 3px 0 15px;
}

#top_works .Button-text {
	justify-content: center;
}

#top_news {
	max-width: 780px;
	width: 100%;
	padding: 30px 20px;
	background: #fff;
	display: flex;
	justify-content: space-between;
	position: relative;
}

#top_news .h2_base {
	writing-mode: vertical-rl;
    text-orientation: upright;
	letter-spacing: 3px;
	padding: 30px 0;
	position: absolute;
	width: 15%;
    gap: 30px;
}

#top_news .h2_base span{
	position: absolute;
    top: 78px;
    z-index: -1;
    writing-mode: horizontal-tb;
    text-orientation: upright;
    color: #f2f2f2;
    left: 81%;
	transform: translate(-50%, -50%);
    line-height: 0;
}

/* ニュースリスト全体 */
.top_home_news_list {
  list-style: none;       /* デフォルトのリストマーカーを消す */
  width: 75%;
	margin: 0 0 0 auto;
}

/* 各ニュース項目 */
.top_home_news_list li {
  border-bottom: 1px solid #ccc;  /* 下線で区切る */
  padding: 15px 20px;             /* 内側の余白 */
}

/* 最後の項目の下線を消す場合 */
.top_home_news_list li:last-child {
  border-bottom: none;
}

/* ニュースリンク全体 */
.top_home_news_list li a:hover p {
    color: #2A2D74;
}

/* 日付 */
.top_home_news_date {
  font-size: 0.9em;
  color: #666;
  margin: 0 0 5px 0;
}

/* タイトル */
.top_home_news_ttl {
  font-size: 1.1em;
  font-weight: bold;
  margin: 0 0 5px 0;
}

/* 抜粋 */
.top_home_news_excerpt {
  font-size: 0.95em;
  color: #333;
  margin: 0;
}


#top_recruit {
	position: relative;
	margin: 110px auto 100px;
	padding: 80px 20px;
	width: 100%;
}

/* 採用情報専用 4枚背景 */
.bg-img4 {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2列 */
  grid-template-rows: 1fr 1fr;    /* 2行 */
  gap: 5px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* 文字の背面に表示 */
}

/* 各写真 */
.bg-img4 div {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  transition: opacity 0.6s ease;
}

/* 写真ごとに設定 */
.bg-img4 div:nth-child(1) { background-image: url('https://hide-gumi.co.jp/wp-content/themes/cocoon-child-master/images/top/top-recruit1.jpg'); }
.bg-img4 div:nth-child(2) { background-image: url('https://hide-gumi.co.jp/wp-content/themes/cocoon-child-master/images/top/top-recruit2.jpg'); }
.bg-img4 div:nth-child(3) { background-image: url('https://hide-gumi.co.jp/wp-content/themes/cocoon-child-master/images/top/top-recruit3.jpg'); }
.bg-img4 div:nth-child(4) { background-image: url('https://hide-gumi.co.jp/wp-content/themes/cocoon-child-master/images/top/top-recruit4.jpg'); }

/* セクション全体の透けオーバーレイ */
#top_recruit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  pointer-events: none;
  z-index: 0;
  transition: background 0.6s ease;
}

.scroll-fade-up.active #top_recruit::before {
  background: rgba(255,255,255,0.3);
}

/* セクション内文字が背景より前に出るよう調整 */
#top_recruit h2,
#top_recruit .top_recruit-box {
  position: relative;
  z-index: 1;
}

#top_recruit h2 {
    position: absolute;
	writing-mode: vertical-rl;
    text-orientation: upright;
    background: #f2f2f2;
    letter-spacing: 3px;
    padding: 30px 0;
	top: -54px;
    right: 15%;
}

.top_recruit-box {
	text-align: center;
	background: #fff;
	padding: 45px 0 60px;
    width: 320px;
    margin: auto;
    border-radius: 20px;
}

.top_recruit-box h3 {
	color: #2A2D74;
}

.top_recruit_box p {
    margin-top: 20px;
}

#top_recruit .Button-text {
    justify-content: center;
}

#top_instagram {
	max-width: 1200px;
	width: 100%;
	padding: 0 20px;
}
.instagram_link {
  text-align: center; /* 中央寄せ */
}

.instagram_link a {
  display: inline-flex;        /* ボタン風に中央揃え */
  align-items: center;         /* アイコンと文字を縦中央 */
  justify-content: center;     /* 中央寄せ */
  gap: 6px;                    /* アイコンと文字の間隔 */
}

/*固定ページ全体*/

.page .entry-header {
	position: relative;
}
.page .entry-title {
	position: absolute;
    background: #fff;
    bottom: 0;
    left: 0;
    z-index: 1;
	text-align: center;
	margin: 0;
	padding: 20px 145px 10px 90px;
	font-size: 30px;
    letter-spacing: 1.5px;
	clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 100%, 0% 100%);
}

.page .entry-title span {
    display: block;
	font-size: 20px;
    margin-top: 10px;
    color: #2A2D74;
}

.page .eye-catch {
	width: 100%;
}
.page .eye-catch-wrap img {
    height: 400px;   /* 任意の高さに変更 */
    object-fit: cover; /* 縦横比を保ちながらトリミング */
    width: 100%;      /* 幅いっぱいに */
}

.page .entry-content h2 {
	text-align: left;
    background: none;
    color: #222;
    font-size: 28px;
    letter-spacing: 1.5px;
	padding: 0;
}

.page .entry-content h2 span {
	display: inline-block;
    color: #2A2D74;
    font-size: 16px;
    margin-bottom: 17px;
    border-bottom: 1.5px solid;
    padding-bottom: 7px;
    letter-spacing: 1.1px;
}

/*会社概要 about*/

section#about-greeting,
section#about-company-info,
section#about-history,
section#about-access,
section#about-csr,
section#about-contact {
    max-width: 1200px;
    padding: 0 20px;
}

.greeting-sign {
    text-align: right;
    font-weight: bold;
}

.company-table tr, .company-table th, .company-table td,.company-table table tr:nth-of-type(2n+1) {
	background: #fff;
	border: none;
}

.company-table th {
	border-bottom: 2px solid #2A2D74;
	width: 18%;
}

.company-table td {
	border-bottom: 2px solid #bbb;
	padding: 0.4em 2em;
	width: 82%;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.timeline {
  position: relative;
  margin-left: 2rem;
  border-left: 2px solid #ccc;
  padding-left: 1rem;
}

.timeline-item {
  position: relative;
  margin-left: 20px;
	padding-left: 5px;
}

.timeline-date {
  font-weight: bold;
  color: #555;
	font-size: 14px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.2rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  background: #2A2D74;
  border: 2px solid #2A2D74;
  border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -0.7rem;
    top: 0;
    width: 12px;
    height: 100px;
    border-left: 1px solid #666;
	z-index: -1;
}


/*事業内容 service*/

section#service-overview,
section#service-exteriorworks {
    max-width: 1200px;
    padding: 0 20px;
}

.service-flex {
	display: flex;
	flex-wrap: wrap;
    gap: 20px;
	margin-bottom: 50px;
}

.service-flex-img {
	width: 38%;
}

.service-flex-text {
	width: 60%;
}

.service-list_flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bg-service {
	background: #f2f2f2;
	padding:50px 20px;
	max-width: 1200px;
	margin: auto auto 50px;
}

.river-block {
  background-image: url('https://hide-gumi.co.jp/wp-content/themes/cocoon-child-master/images/service/river-main.jpg');
}
.forest-block {
  background-image: url('https://hide-gumi.co.jp/wp-content/themes/cocoon-child-master/images/service/forest-main.jpg');
}
.road-block {
  background-image: url('https://hide-gumi.co.jp/wp-content/themes/cocoon-child-master/images/service/road-main.jpg');
}
.water-block {
  background-image: url('https://hide-gumi.co.jp/wp-content/themes/cocoon-child-master/images/service/water-main.jpg');
}
.other-block {
  background-image: url('https://hide-gumi.co.jp/wp-content/themes/cocoon-child-master/images/service/other-main.jpg');
}
.service-title-block {
  background-size: cover;      /* 画像をセクションいっぱいに表示 */
  background-position: center; /* 画像の中心を表示 */
  padding: 20px;               /* 内側の余白 */
  border-radius: 6px;          /* 角丸 */
  color: #fff;                 /* 文字色（背景に合わせて調整） */
	position: relative;
    height: 300px;
	    max-width: 1000px;
    margin: auto auto 45px;
}
.service-title-block h3 {
    margin: 0 0 10px 0;
    border: none;
    font-size: 36px;
	text-shadow: 0 0 10px #666;
}
.service-h4 {
    text-align: center;
}
.service-title-block p {
	background: #fff;
    color: #222;
    padding: 10px 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
}

.service-list_box {
    width: calc(33.333% - 13.33px); /* 3列表示 */
	transition: transform 0.3s, box-shadow 0.3s;
}

.service-list_box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

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

.service-list_content {
    padding: 10px 12px;
}

.article p.service-list_text {
    font-weight: 600;
    margin: 0 0 2px 0;
}

.article p.service-list_place {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.service-list_box:hover .service-list_place {
 	color:#734a36;
}

.service-link {
  text-align: center; /* 中央寄せ */
}

.service-link a {
  display: inline-flex;        /* ボタン風に中央揃え */
  align-items: center;         /* アイコンと文字を縦中央 */
  justify-content: center;     /* 中央寄せ */
  gap: 6px;                    /* アイコンと文字の間隔 */
}


/*施工事例 work*/

section#works_section {
    max-width: 1200px;
    padding: 0 20px;
}

.works_filter_form {
	margin-bottom: 40px;
}

.works_filter_form select {
    cursor: pointer;
}

.works_list_flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.works_list_box {
    width: calc(33.333% - 13.33px); /* 3列表示 */
	transition: transform 0.3s, box-shadow 0.3s;
}

.works_list_box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.works_list_img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.works_list_content {
    padding: 10px 12px;
}

.article p.works_list_text {
    font-weight: 600;
    margin: 0 0 2px 0;
}

.article p.works_list_category {
    display: inline-block;
     margin-bottom: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background-color: #f2f2f2;
    border-radius: 100px;
    line-height: 1;
}

.article p.works_list_place {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.works_list_box:hover .works_list_place {
 	color:#734a36;
}

/*採用情報　recruit*/

.recruit_section {
    max-width: 1200px;
    padding: 0 20px;
}

#recruit_message,
#recruit_benefits {
  display: grid;
	grid-template-columns: 400px 1fr;
  gap: 40px;
}

#recruit_message .recruit_heading,
#recruit_benefits .recruit_heading {
  grid-column: 1 / -1;
}

.recruit_image {
  max-width: 420px; 
  margin: 0 auto 20px;
  display: block;
}

#recruit_message .recruit_image,
#recruit_benefits .recruit_image {
  margin-bottom: 0;
}

#recruit_voice .recruit_image {
  max-width: 125px;
}

.article .recruit_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article .recruit_list li {
  padding: 8px 16px;
  margin-bottom: 10px;
  background: #f6f8fa;
  border-left: 4px solid #2A2D74;
}

#recruit_voice {
  background: #f9fbfd;
  padding: 60px 20px;
}

  display: grid;
	grid-template-columns: 180px 1fr;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 50px;
}

.recruit_voice_item blockquote {
  position: relative;
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.recruit_voice_item blockquote::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 40px;
  border-width: 8px 14px 8px 0;
  border-style: solid;
  border-color: transparent #ffffff transparent transparent;
}

.recruit_voice_item blockquote p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.recruit_voice_item blockquote strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #2A2D74;
}

.recruit_voice_item p {
  margin: 0;
  font-size: 15px;
}

.recruit_faq_list dt {
  font-weight: 700;
  margin-top: 20px;
  font-size: 16px;
}

.recruit_faq_list dd {
  margin: 10px 0 0;
  padding: 15px;
  background: #f6f8fa;
  border-radius: 6px;
  font-size: 15px;
}

#recruit_day .recruit_list li {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-left: 5px solid #2A2D74;
}

/*お問い合わせ　contact*/
.contact_section {
    max-width: 1200px;
    padding: 0 20px;
}

#contact_form table,
#contact_form th,
#contact_form td {
  border: none !important;
  background: transparent !important;
}
#contact_form tr:nth-of-type(2n+1) {
    background-color: transparent !important;
}
#contact_form tr:nth-of-type(2n+1) {
    background-color: transparent !important;
}
#contact_form.contactTable {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
}
.article #contact_form p {
	margin-bottom: 0;
}
#contact_form tr {
    border-top: 1px solid #aaa;
}
#contact_form th {
  width: 25%;
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

#contact_form td {
  padding: 22px;
  border-bottom: 1px solid #ddd;
}

#contact_form .must {
	display: inline-block;
  color: #fff;
    font-size: 13px;
    margin-left: 6px;
    background: #d9534f;
    padding: 3px 7px;
	font-weight: 400;
}

#contact_form .any {
 	display: inline-block;
 color: #fff;
    font-size: 13px;
    margin-left: 6px;
    background: #666;
    padding: 3px 7px;
	font-weight: 400;
}
#contact_form input[type="text"],
#contact_form input[type="email"],
#contact_form input[type="tel"],
#contact_form textarea {
  width: 100%;
  max-width: 100%;
    background: #eee;
    border: none;
    padding: 14px !important;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
}

#contact_form textarea {
  min-height: 120px;
  resize: vertical;
}

.acceptance p {
	text-align: center;
    padding-top: 15px;
}
#contact_form th a {
	color: #5054AE;
  text-decoration: underline;
}
#contact_form th a:hover {
	color: #2A2D74;
  text-decoration: none;
}
#contact_form .note {
  font-size: 12px;
  color: #666; 
  display: inline-block;
  margin-top: 5px;
}

.contactSubmit input[type="submit"] {
  display: inline-block;
  background: #2A2D74;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
    font-weight: 600;
    letter-spacing: 1.25px;
}

.contactSubmit input[type="submit"]:hover {
  background: #fff;
	border: #2A2D74 solid 1px;
	color:  #2A2D74;
}

#contact_form.confirmTable {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
}

#contact_form.confirmTable tr:last-child {
 	border-bottom: 1px solid #aaa;
}

.confirmSubmit {
  display: flex;
  gap: 15px;          /* ボタンの間隔 */
  justify-content: center; /* 中央寄せ */
  margin-top: 40px;   /* 上に余白（必要なら調整） */
}

.confirmSubmit input[type="submit"] {
  display: inline-block;
  background: #2A2D74;
  color: #fff;
  border: none;
  padding: 12px 62px;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: 600;
  letter-spacing: 1.25px;
}

.confirmSubmit input[type="submit"]:hover {
  background: #fff;
  border: #2A2D74 solid 1px;
  color: #2A2D74;
}

.confirmSubmit input.wpcf7-previous {
  display: inline-block;
  background: #e0e0e0;   /* グレー系で控えめ */
  color: #333;
  border: none;
  padding: 13px 30px;     /* 小さめ */
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.confirmSubmit input.wpcf7-previous:hover {
  background: #ccc;
  color: #000;
}


/* 投稿ページ */

.single .content-in {
  max-width: 1200px;
  margin: 0 auto;
	padding: 0 20px;
}

.single .entry-title {
  text-align: center;
  margin: 40px 0 30px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.entry-title span {
    display: block;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 400;
}

.single .entry-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #2A2D74;
  margin: 18px auto 0;
}

.single .eye-catch-wrap {
  justify-content: center;
  margin-bottom: 40px;
}

.single .eye-catch img {
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.single .entry-content {
  max-width: 960px;
  margin: 0 auto;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.single .entry-content img {
  width: 100%;
  height: auto;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.works-detail-text {
	background: #f3f3f3;
	padding: 15px 20px;
}

.before_after {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 20px;
  margin: 60px 0;
}

.before p:first-child,
.after p:first-child {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.before p:first-child {
  color: #666;
}

.after p:first-child {
  color: #2A2D74;
}

.before_after_arrow {
  position: relative;
  width: 60px;
  height: 2px;
  background: #999;
}

.before_after_arrow::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -6px;
  width: 0;
  height: 0;
  border-left: 10px solid #999;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.work_other {
  background: #f3f3f3;
  padding: 40px 30px;
  margin: 80px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work_other > div {
  position: relative;
}

.work_other > div > p:first-child {
	text-align: center;
	margin-bottom: 5px;
}

.work_other_img img {
  display: block;
  width: 100%;
  height: auto;
}

/* お知らせ投稿ページ */
.single-news .content-in {
	max-width: 780px!important;
}

.single-news .entry-title {
	margin: 60px 0 50px!important;
}

.single-news .entry-content {
  margin: 0 auto 100px!important;
}

.single-news .news-date {
  display: block;
  margin: 8px 0;
  font-size: 14px;
  color: #666;
	text-align: right;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

/*1023px以下*/
@media screen and (max-width: 1023px){
/*header*/
.logo-header {
	position: fixed;
	z-index: 1000;
	top: 6px;
    left: 0;
}
/*navi*/
	.navi-in > ul {
		width: 74%;
	}
	#navi .navi-in > .menu-mobile li{
		width: 19%;
		height: 74px;
		line-height: 74px;
	}
	.navi-in > li#menu-item-27 {
    	width: 23%;
	}
	.navi-in #menu-item-27 a {
		border-radius: 8px;
	}

}

/*1000px以下*/
@media screen and (max-width: 1000px){
  /*必要ならばここにコードを書く*/
	/*footer*/
	.footer-content-left {
		width: 28%;
	}
	.navi-footer {
	    width: 61%;
		padding-left: 50px;
	}
}
/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
	main.main, div.sidebar {
		padding: 0;
	}
	table th, table td {
	    font-size: 16px;
	}
}
@media screen and (max-width: 768px){
  /*必要ならばここにコードを書く*/
	/*common*/
	main.main, div.sidebar {
		padding: 0;
	}
	.breadcrumb {
	    margin: 6em 0.4em .5em;
	}
	/*header*/
	#header {
		background: #fff;
		height: 72px;
		position: fixed;
		width: 100%;
		z-index: 100;
	}
	/*navi*/
	.menu-btn {
		position: fixed;
		top: 15px;
		display: flex;
		height: 50px;
    	width: 50px;
		right: 15px;
		justify-content: center;
		align-items: center;
		z-index: 1000;
	}
	.menu-btn span,
	.menu-btn span:before,
	.menu-btn span:after {
		content: '';
		display: block;
		height: 3px;
		width: 35px;
		border-radius: 3px;
		background-color: #2A2D74;
		position: absolute;
	}
	.menu-btn span:before {
		bottom: 12px;
	}
	.menu-btn span:after {
		top: 12px;
	}
	#menu-btn-check:checked ~ .menu-btn span {
		background-color: rgba(255, 255, 255, 0);
	}
	#menu-btn-check:checked ~ .menu-btn span::before {
		bottom: 0;
		transform: rotate(45deg);
	}
	#menu-btn-check:checked ~ .menu-btn span::after {
		top: 0;
		transform: rotate(-45deg);
	}
	body #menu-btn-check:checked {
		overflow: hidden;
	}
	.navi-in {
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 100%;
		z-index: 80;
		background-color: #fff;
		transition: all 0.5s;
		opacity: 0.95;
		overflow: scroll;
	}
	#menu-btn-check:checked ~ .navi-in {
		left: 0;
	}

	.header-container-in.hlt-top-menu .wrap {
		width: 100%;
	}

	.navi-in > ul.menu-top {
		width: 100%;
		flex-direction: column;
		align-items: center;
		margin: 80px 0 0 0;
	}
	
	#navi .navi-in > .menu-mobile li {
        width: 90%;
	}

	/*footer*/
	.contact-flex {
		flex-direction: column;
	}
	.contact-flex a {
	    width: 100%;
	}
	.contact-flex a.mail {
		margin-bottom: 20px;
	}
	.contact-flex a.tel:hover {
		background: #2A2D74;
	}
	.contact-flex a.tel:hover p {
		color: #fff;
	}
	.footer-bottom {
		padding: 8px 10px;
	}
	.footer-bottom-content {
		flex-direction: column;
	}
	.navi-footer {
		order: 1;
		width: 100%;
		padding-left: 0;
	}
	.navi-footer-in > ul.menu-footer {
		height: auto;
		text-align: center;
		margin-left: 0;
		list-style-type: none;
	}
	.navi-footer-in > .menu-footer li.menu-item {
    	width: 100%;
	}
	.footer-content-left {
		order: 2;
		text-align: center;
		width: 100%;
		margin: 50px 0 0;
	}
	.footer-sns {
		justify-content: center;
	}
	.footer-bottom-logo .logo-image {
		text-align: center;
	}
	
	/*top*/
	.bg-img {
		background-attachment: scroll;
	}
	section.top_main {
  	  margin: 72px auto 80px;
	}
	.top_main-img {
		height: 500px;
		object-fit: cover;
	}
	.top_main_inner {
		top: 17%;
	}
	.top_main_txt1 {
		font-size: min(11vw, 40px);
	}
	.top_main_txt2 {
		font-size: min(4.5vw, 18px);
		margin-top: 20px;
	}
	.h2_base {
		font-size: 24px;
	}
	.h2_base span {
		font-size: 14px;
	}
	.bg_about::after {
	    top: 0;
        left: 0;
		letter-spacing: 3px;
	}
	#top_about {
		display: block;
	}
	#top_about .h2_base {
		position: absolute;
		top:0;
		right: 30px;
		padding: 40px 8px;
	}	
	.top_about_box {
		width: 87%;
		margin-bottom: 35px;
		padding-top: 0;
	}
	.top_about_img {
		width: 100%;
	}
	.bg-bottom35 {
		background: -webkit-linear-gradient(transparent 30%, #f2f2f2 30%);
		background: -o-linear-gradient(transparent 30%, #f2f2f2 30%);
		background: linear-gradient(transparent 30%, #f2f2f2 30%);
	}
	.bg_works::after{
		display: none;
	}
	#top_works h2 span{
		display: block;
	}
	.top_works-box {
	  flex: 1 1 calc(50% - 20px);
	}
	#top_news {
		margin: 150px auto 80px;
	}
	#top_news .h2_base {
		top: -118px;
        left: 0;
		text-shadow: 0 0 10px #fff;		
	}
	#top_news .h2_base span{
		font-size: 70px;
		left: 20px;
    	transform: translate(0, 0);
		text-shadow: none;		
	}
	.top_home_news_list {
		width: 100%;
		padding-left: 0;
	}
	
/*固定ページ全体*/
	.page .entry-title {
		font-size: 26px;
	}
	.page .entry-title span {
		font-size: 18px;
	}
/*会社概要　about*/
	section#about-greeting {
		margin: 20px auto 100px;
	}
 /*事業内容 service*/
	.service-flex-text {
		width: 59%;
	}
	.service-title-block h3 {
	    font-size: 33px;
	}
	.service-list_img img {
	    height: 150px;
	}
/*施工事例　work*/
	  .works_list_box {
        width: calc(50% - 10px);
    }
/*採用情報　recruit*/
.recruit_image {
    max-width: 100%;
    width: 100%;
    height: auto;
  }
  #recruit_message,
  #recruit_benefits {
    display: block;
  }
	#recruit_message .recruit_image, #recruit_benefits .recruit_image {
    margin: 0 auto 20px;

}
  .recruit_list li {
    padding: 12px 14px;
  }
  #recruit_voice {
    padding: 40px 16px;
  }
  .recruit_voice_item {
    display: block;
    margin-bottom: 40px;
    text-align: center;
	}
	#recruit_voice .recruit_image {
    max-width: 200px;
    margin-bottom: 14px;
  }
  .recruit_voice_item blockquote {
    padding: 10px;
    border-radius: 14px;
    text-align: left;
  }
  .recruit_voice_item blockquote::before {
    display: none;
  }
  .recruit_voice_item blockquote strong {
    font-size: 14px;
  }
/*お問い合わせ　contact*/
	input[type="date"] {
    width: 100%;
    max-width: 100%;
    -webkit-appearance: none;
    appearance: none;
  }
  #contact_form td {
    display: block;
    width: 100%;
  }
  #contact_form th {
 width: 100%;
        display: block;
	  border-bottom: none;
    padding: 10px 0 5px;
    background: none;
    font-weight: bold;
  }
  #contact_form td {
    padding: 0 0 15px;
  }
/*投稿ページ*/
	.single .content-in {
		padding: 0 20px;
	}
	.single .entry-content {
		max-width: 100%;
	}
	.single .breadcrumb.sbp-main-before {
		margin: 6em auto 0;
	}
	.before_after {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.before_after_arrow {
		width: 40px;
		margin: 0 auto 30px;
		transform: rotate(90deg);
	}
	.work_other {
		grid-template-columns: repeat(2, 1fr);
		padding: 30px 20px;
	}
/* お知らせ投稿ページ */
	.single-news .content{
		margin-top: 6em!important;
	}
}
/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
	.flex2 {
		flex-direction: column;
	}
	.flex2 div {
		width: 100%;
	}	
	.sp-none {
		display: none;
	}
	.heading_number::before {
	    display: block;
	}
	/*navi*/
	#navi .navi-in > .menu-mobile li {
		line-height: 40px;
	}
	.navi-in > ul {
		margin: 20px 20px 0;
	}

	/*top*/
	.bg_about::after {
	    top: 0;
        right: 0;
        font-size: 54px;
	}
	#top_about .h2_base {
		right: 15px;
		padding: 40px 5px;
	}
	.top_about_box {
		width: 85%;
	}
	.bg-bottom35 {
		background: -webkit-linear-gradient(transparent 20%, #f2f2f2 20%);
		background: -o-linear-gradient(transparent 20%, #f2f2f2 20%);
		background: linear-gradient(transparent 20%, #f2f2f2 20%);
	}
	.top_service-flex {
		flex-direction: row;
		gap: 20px;
	}
	.top_service-box {
		flex: 1 1 calc(50% - 20px); /* 2列表示 */
	}
	.top_works-flex {
		gap: 20px;
	}
	#top_news .h2_base {
        left: 45px;
	}
	#top_news .h2_base span{
        left: 0;
        transform: translate(-20%, 0);
	}
	#top_recruit h2 {
		right: 15px;
		z-index: 100;
	}
	#instagram-gallery-feed-0 {
		--qligg-columns: 2 !important;
		--qligg-spacing: 6px !important;
	}
/*固定ページ全体*/
	.page .eye-catch-wrap img {
    	height: 310px;
	}
	.page .entry-title {
		padding: 18px 90px 8px 40px;
		font-size: 24px;
	}
	.page .entry-title span {
		font-size: 18px;
		margin-top: 6px;
	}
/*会社概要　about*/
	section#about-greeting {
		margin: 0 auto 100px;
	}
/*事業内容 service*/
	.service-flex-img, .service-flex-text {
		width: 100%;
	}
	.service-title-block h3 {
		padding: 0
	}
	.service-title-block h3 {
	    font-size: 30px;
	}
	.service-list_box {
		width: 100%;
	}
	.service-list_img img {
	    height: 200px;
	}
/*施工事例　work*/
 	section#works_section {
		margin: 60px auto 100px;
	}
	.works_list_box {
        width: 100%; /* スマホ1列 */
    }
/*採用情報　recruit*/
	#recruit_voice .recruit_image {
        max-width: 100px;
    }
}
/*投稿ページ*/
	.single .entry-title {
		font-size: 1.4rem;
		margin: 30px 0 20px;
	}
	.entry-title span {
		font-size: 0.95rem;
	}
	.single .eye-catch-wrap {
		margin-bottom: 30px;
	}
	.before_after {
		margin: 40px 0;
	 }
	.before p:first-child,.after p:first-child {
		font-size: 1rem;
	}
	.work_other {
		grid-template-columns: 1fr;
		margin: 60px 0;
	}
	.work_other > div > p:first-child {
		font-size: 0.9rem;
	}
}
