@charset "utf-8";
/*住宅*/
html {
  font-family: "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.holtwood-one-sc-regular {
  font-family: "Holtwood One SC", serif;
  font-weight: 400;
  font-style: normal;
}
body {
  margin: 0 auto; /*上部の隙間をなくす*/
}
/*-------下層のｃｓｓ----------*/
/* 横幅を1000pxに固定して中央寄せ */
.content-wrapper {
  width: 1000px;
  margin: 0 auto;
  padding-right: 20px;
  padding-left: 20px;
  padding-bottom: 40px; /* 余白 */
  background: #fff; /* 背景を白などに */
}
/*ナビゲーション*/
img {
  vertical-align: middle;
}
button {
  outline: none;
}
.page-main {
  position: relative;
  z-index: 1000; /* content より大きな値 */
}
.page-main > aside {
  background-color: rgba(213, 124, 23, 0.80);
  width: 100px;
  height: 100%;
  top: 0;
  left: -100px; /* 初期状態は左に隠れている */
  position: fixed; /* 常に画面に固定される */
}
.page-main > aside ul {
  position: absolute; /* サイドバー内で絶対位置 */
  margin: 0;
  padding: 0;
  top: 50px;
  left: 10px;
}
.page-main > aside li {
  margin: 0 0 20px;
  list-style: none; /* リストの点を消す */
}
.page-main > aside button {
  background-color: rgba(92, 175, 53, 0.80);
  display: block;
  position: absolute;
  top: 150px;
  left: 100px;
  width: 52px;
  height: 132px;
  margin: 0;
  padding: 0;
  border: none;
}
/*----naviの中の写真img---------*/
.page-main > aside ul li img {
  width: 80px; /* 横幅を小さく */
  height: 80px; /* 高さを小さく */
  border-radius: 50%; /* 丸く切り抜き */
  object-fit: cover; /* はみ出しをトリミング */
  display: block;
}
.page-main > aside ul li .overlay-text {
  font-size: 24px; /* 小さめに */
  white-space: nowrap; /* 改行防止 */
}
/* 7番目の li だけ改行を許可する */
.page-main > aside ul li:nth-child(7) .overlay-text {
  white-space: normal; /* 自動改行許可 */
  font-size: 12px; /* 少し小さめにして収めやすく */
  text-align: center; /* 2行になった時に中央揃え */
}
.content {
  position: relative;
  z-index: 1; /* aside より低くする */
}
/* Clearfix floatプロパティを使用した要素の回り込み問題を解消*/
.clearfix:before, .clearfix:after {
  content: " ";
  display: table;
}
.clearfix:after {
  clear: both;
}
/* 画像の文字を重ねる設定 */
.img-box {
  position: relative; /* この中で絶対配置を使えるようにする */
  display: inline-block;
}
.img-box img {
  display: block; /* 余白防止 */
}
.overlay-text {
  position: absolute;
  top: 50%; /* 縦位置 */
  left: 50%; /* 横位置 */
  transform: translate(-50%, -50%); /* ちょうど中央に配置 */
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7); /* 背景に埋もれないよう影を付ける */
  pointer-events: none; /* ←これで親の<a>も反応 */
  /*	cursor: pointer; 指マークを強制 */
}
/*-------------------------------------*/
/*housingの中*/
.content-wrapper h2 {
  padding: 10px;
  margin-bottom: 30px;
  margin-bottom: 10px;
  border-left: 10px solid rgba(93, 245, 174, 1.00);
  background-color: rgba(140, 255, 201, 0.40);
  font-size: 24px;
}
#housing p {
  position: relative;
  width: 100%;
  height: 300px;
  /*    margin: 0 auto 80px;*/
}
#housing p strong {
  color: #fff;
  font-size: 20px;
}
#housing .housing_p p {
  width: 450px;
  height: auto;
  font-size: 20px;
  line-height: 1.7;
  text-indent: 1em;
  color: #FFFFFF;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  text-align: justify;
  margin-left: 20px;
  padding-top: 20px;
  margin-top: 20px;
}
#housing .housing_p {
  background-color: #145137;
  width: 490px;
  height: 300px;
  margin-top: 18px;
  border-radius: 6px;
}
/*グリッドの中*/
#housing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: flex-end;
}
#housing img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
/* .inner clearfix */
#housing p {
  overflow: hidden;
}
#housing p strong {
  position: absolute;
  display: block;
  z-index: 1;
  bottom: 0;
  width: 450px;
  height: 30px;
  background: rgba(0, 0, 0, 0.5);
  text-align: left;
  padding: 20px;
}
#housing p span {
  position: absolute;
  display: block;
  z-index: 0;
  top: 0;
  width: 490px;
  height: 300px;
  box-shadow: inset 0 0 50px rgba(50, 30, 0, 0.6), inset 0 0 100px rgba(50, 30, 0, 0.3);
  background: rgba(255, 155, 0, 0.2);
  opacity: 0;
}
#housing p:nth-child(1) strong {
  opacity: 0;
  left: -200%;
}
#housing p:nth-child(2) strong {
  opacity: 0;
  left: -200%;
}
#housing p:nth-child(3) strong {
  bottom: -80px;
  background: rgba(34, 34, 34, 1);
}
#housing p:nth-child(3) img {
  position: absolute;
  top: 0px;
}
#housing p:nth-child(4) strong {
  bottom: -80px;
  background: rgba(34, 34, 34, 1);
}
#housing p:nth-child(4) img {
  position: absolute;
  top: 0px;
}
#housing p:nth-child(5) strong {
  bottom: -80px;
  background: rgba(34, 34, 34, 1);
}
#housing p:nth-child(5) img {
  position: absolute;
  top: 0px;
}
#housing p:nth-child(6) strong {
  bottom: -80px;
  background: rgba(34, 34, 34, 1);
}
#housing p:nth-child(6) img {
  position: absolute;
  top: 0px;
}
/*----footer-----*/
#footer {
  width: 100%;
  height: auto;
  background-color: #DCDADA;
  text-align: center;
}
#footer h2 {
  color: #000000;
  font-size: 24px;
  margin-top: 0px;
  padding-top: 23px;
  padding-bottom: 23px;
}
#footer h3 {
  font-size: 20px;
  padding-bottom: 10px;
}
#footer h4 {
  font-size: 18px;
  bottom: auto;
  padding-bottom: 20px;
}
.logo-f {
  padding-bottom: 0px;
}
.copyright {}
#footer p {
  padding-bottom: 16px;
  padding-top: 5px;
  margin-bottom: 8px;
}

/* ==============================
   スマホ向け（640px以下）
   ============================== */
@media screen and (max-width: 640px) {
  /* ページ全体 */
  html {
    font-size: 14px;  /*基本文字サイズを小さめに */
    line-height: 1.6;
  }

  /* 中央固定幅を解除して可変に */
  .content-wrapper {
    width: 100%;
	  padding: 0 10px;/* ← 左右に10px余白をつける */
    box-sizing: border-box; /* ← はみ出し防止 */
	   }
	
	/*------------------------------------------*/
  /* ナビゲーション */
  .page-main > aside {
	  margin-left: 0px;
	  width: 70px;/*  少し小さく */
  }
	
  .page-main > aside ul li img {
    width: 50px;
    height: 50px;
  }
	
  .page-main > aside ul li .overlay-text {
    font-size: 14px;
  }

	.page-main > aside button{
		left: 70px;
		width: 80px;
		height: 101px;
	}	
	
	.page-main > aside button img{
		padding-left: 20px;
		left: 100px;
		width:40px;
		height: 101px;
	}
	
/*	---------------------------*/
	/*住宅*/
	#housing{
		display: block;/*display:flex; だと余白が効かず右端に張り付きます。*/
		width: 100%;
		margin-bottom: 10px;
     justify-content: center;  /*横方向の中央揃え */
     align-items: center;     /* 縦方向の中央揃え */
     text-align: center;
		 
	}
	
	#housing .housing_p{
	width: 100%;
	margin-top: 0;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 20px;
	padding: 20px;
	box-sizing: border-box;/*paddingを加えても幅100%からはみ出さないようにするため。*/
		
	}
	
	#housing .housing_p p{
	font-size: 18px;	
		 width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	}
	
	#housing img{
	width: 100%;
	height: auto;
	display: block;  /* ← flexではなくblockに */
	 margin: 0 auto 10px; /* 下に余白を確保 */
	border-radius: 6px;
	}
	
/*------------------------------------	*/	
  /* フッター */
  #footer {
    text-align: center;
    padding: 10px;
  }
  #footer h2, 
  #footer h3, 
  #footer h4 {
    font-size: 14px;
    line-height: 1.4;
  }
  #footer .logo-f img {
    width: 80px;
    height: 80px;
  }
}