@charset "UTF-8";
/* CSS Document */
html{
	scroll-behavior: smooth;
}
body{
	color: #1D211E;
	font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
	background-color: #FDFFFE;
	margin: 0;
	padding: 0;
}
h1{
	position: absolute;
	bottom: 100px;
	left: 70px;
	color: #FFFFFF;
	font-size: 230%;
	text-shadow: 1px 2px 3px #303030;
	z-index: 10;
}
h2{
	text-align: center;
	margin: 50px;
	clear: both;
}
nav{
	position: absolute;
	right: 30px;
	top: 40px;
	font-size: 130%;
}
nav ul{
	list-style-type: none;
	overflow: hidden;
}
nav ul li{
	float: left;
	padding: 20px;
}
nav ul li a:hover{
	opacity: 0.5;
}
a{
	text-decoration: none;
	color: #231710;
}
article{
	overflow: hidden;
	margin: 0 auto;
}
p{
	text-align: center;
	max-width: 870px;
	font-size: 105%;
	margin: 0 auto;
	padding-top:20px;
	line-height: 2.5em;
}
footer{
	clear: both;
	color: #FFFFFF;
	background-color: rgba(57,88,60,0.5);
	text-align: center;
	padding-top: 30px;
	margin-top: 30px;
	padding-bottom: 30px;
}
address{
	font-style: normal;
}
span{
	background: linear-gradient(transparent 60%,#a4cdb2);
	padding-bottom: 5px;
}
.wh{
	height: 700px;
	object-fit: cover;
}
.box {
 	margin: auto;
 	width:100%;
 	height: 150px;
 	background: rgba(255, 255, 255, 0.7);
	position: absolute;
}
.green{
	color: #005C2C;
}
.re{
	position: relative;
}
.logo{
	padding: 10px;
	left: 20px;
	position: absolute;
}
.adr{
	position: absolute;
	right: 50px;
	top: 0;
	color: #1A8123;
	font-size: 30px;
}
.gotop{
	color: #26372B;
	text-decoration: underline;
	position: absolute;
	right: 50px;
	z-index: 50;
}
.aad{
	padding: 30px;
}

/*　トップページここから↓　*/
.udd{
	margin-top: 70px;
}
.info{
	color:rgba(245,254,250,1.00);
	font-size: 120%;
	background-color:rgba(75,127,85,0.94);
	padding: 25px 80px;
	margin-top: 30px;
}
.info:hover{
	opacity: 0.5;
}

.syoukai{
	display: flex;
	padding: 50px 0px;
	max-width: 900px;
	margin: auto;
}
.syoukai {
    display: flex;
    align-items: center; /* 縦方向の中央揃え */
    gap: 20px; /* 画像とテキストの間隔 */
}

.syoukai__image img {
    width: 100%; /* 画像サイズ（調整可） */
    height: auto;
    display: block;
    max-width: 350px; /* 画像の最大幅を指定（調整可能） */
}

.syoukai__text {
    flex: 1; /* 画像の横に適切な幅を持たせる */
}
.syoukai {
    display: flex;
    align-items: center; /* 画像と文章の高さを揃える */
    gap: 20px; /* 画像と文章の間に余白を追加 */
}

.syoukai__text {
    flex: 1; /* 文章エリアが余白いっぱいに広がるようにする */
    display: flex;
    flex-direction: column; /* 縦並びにする */
    align-items: center; /* ボタンを中央寄せにする */
    text-align: center; /* 文章も中央寄せにする */
}
.margin{
	margin-bottom: 20px;
	text-align: left;
}

.btn--yellow {
    display: block;
    width: fit-content; /* ボタンの幅をテキストに合わせる */
}

.btn {
    border-radius: 5px;
    font-weight: bold;
}

a.btn--yellow {
	padding: 25px 60px;
	color: #fff;
	background-color:rgba(75,127,85,0.94);
	border-bottom: 5px solid #00662d;
}

a.btn--yellow:hover {
  margin-top: 3px;
  color: #fff;
  background: rgba(75,127,85,0.94);
  border-bottom: 2px solid #00662d;
}
.area{
	display: flex;
	padding: 30px;
}
.scrollClass{
	opacity: 0; 
	transform: translateY(100px); 
	transition: opacity 0.5s, transform 0.5s; 
}

/*　施工内容ページ　ここから↓　*/

.leef{
	float: right;
	z-index: -1;
	position: relative;
}
.sub{
	margin-top: 0;
	padding-top: 0;
}
.img-item2{
	width: 370px;
	height: 200px;
	object-fit: cover;
}
.gallery-box{
	display: inline-block;
	padding: 50px;
}
.main{
	text-align: center;
}
/*　取扱製品ページ　ここから↓　*/

.ploduct{
	padding: 30px;
	text-align: center;
}
.img-item{
	width: 300px;
	height: 150px;
	object-fit: cover;
	padding: 30px;
}

/*　会社概要ページ　ここから↓　*/

table{
	width: 50%;
	border: 1px solid #333333;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 30px;
	border-collapse: collapse;
	padding: 30px;
}
th{
	background-color: #CAE6D6;
	border: 1px solid #333333;
	padding: 40px;
	width: 20%;
}
td{
	border: 1px solid #333333;
	padding: 40px;
}
caption{
	caption-side: bottom;
}
iframe{
	width: 50%;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 30px;
}

@media(max-width:959px){
	.wh{
		height: 500px;
	}
	.syoukai,.area{
		display: block;
		text-align: center;
	}
	.left{
		width: 400px;
	}
	.left1{
		width: 300px;
	}
	nav{
		font-size: 95%;
		left: 5px;
		top: 85px;
	}
	.logo{
		width: 200px;
	}
	.adr{
		font-size: 20px;
		top: 70px;
		right: 20px;
	}
	h1{
		font-size: 25px;
		left: 100px;
		bottom: 50px;
}
}
@media(max-width:600px){
	.logo{
		width: 150px;
	}
	h1{
		font-size: 20px;
		left: 30px;
		bottom: 30px;
	}
	.wh{
	height: 400px;
	object-position: -50px;
}


	/*　レスポンシブ　施工内容ページ　ここから↓　*/
	.gallery-box{
		padding: 30px 0 30px 0;
	}
	.img-item2{
	width: 300px;
	height: 200px;
	object-fit: cover;
}
	.syoukai{
		padding: 20px;
	}
}
@media(max-width:505px){
	body{
		font-size: 16px;
	}
	nav{
		padding-top:25px;
	}
	nav ul li{
		padding: 2px;
	}
	h2{
		font-size: 120%;
		padding-bottom: 0;
		margin-bottom: 0;
	}
	p{
		font-size: 16px;
	}
	
	a.btn--yellow {
	padding: 20px 30px;
	}
	
	table{
		width: 90%;
	}
	th{
		padding: 5px
	}
	td{
		padding: 20px;
	}
		iframe{
	width: 90%;
	}
	.adr{
		font-size: 20px;
	}
	.logo{
		width: 150px;
		padding: 3px;
	}
	.info{
		padding: 20px 20px;
	}
	.left{
		width: 90%;
	}
	.img-item{
	width: 200px;
	height: 90px;
	object-fit: cover;
	padding: 30px;
}
}

/* ========== ハンバーガー基本 ========= */
.nav-toggle {      /* チェックボックスは非表示 */
  display: none;
}

/* 3 本線アイコン */
.hamburger {
  display: none;           /* 大画面では非表示 */
  width: 30px;
  height: 22px;
  position: absolute;
  right: 30px;
  top: 20px;
  cursor: pointer;
  z-index: 1000;            /* ロゴの上に来るよう調整 */
}
.hamburger span {
  display: block;
  width: 30px;         /* 横幅（必要に応じて調整） */
  height: 1px;         /* ← 細さを調整 */
  margin: 3px 0;
  background: #1A8123;
  border-radius: 5px;  /* ← 角丸 */
  transition: transform 0.3s, opacity 0.3s;
}

/* ─ 開いたとき X に変形 ─ */
.nav-toggle:checked + .hamburger span:nth-child(1){
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle:checked + .hamburger span:nth-child(2){
  opacity: 0;
}
.nav-toggle:checked + .hamburger span:nth-child(3){
  transform: translateY(-9px) rotate(-45deg);
}

/* ========== ブレークポイント以下（959px） ========= */
@media (max-width: 959px){
  /* ボタンを表示 */
  .hamburger{display:block;}

  /* 画面右からスライドインするメニュー */
  nav.menu-content{
    position: fixed;       /* 画面全体にかぶせる */
    top: 0;
    right: 0;
    width: 100%;            /* 好みに合わせて */
    height: 100vh;
    background: #FDFFFE;
    padding-top: 120px;    /* ロゴ・電話番号の高さ分 */
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  /* チェックが付いたら表示 */
  .nav-toggle:checked ~ nav.menu-content{
    transform: translateX(0);
  }

  /* メニューの並びを縦方向に */
  nav ul{
    display:flex;
    flex-direction: column;
    margin: 0; padding: 0;
  }
  nav ul li{
    float:none;            /* 既存 float を打ち消し */
    padding: 20px;
    text-align: center;
  }

	.hamburger {
  z-index: 999; /* h1 より上に */
}

nav.menu-content {
  z-index: 998; /* 背景とh1より上、ボタンより下 */
}
}
