@charset "utf-8";
/*トップ*/
/*
 * Base
 */
/*
	ページ全体の文字の基本フォントを指定
    文字サイズを16px
    行の高さを1.5倍に
*/
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;
}
/*-------下層のｃｓｓ----------*/
/* 横幅を1000pxに固定して中央寄せ */
.content-wrapper {
  width: 1000px;
  margin: 0 auto; /* ブラウザの中央に配置 */
  padding: 10px 20px; /* 余白 */
  background: #fff; /* 背景を白などに */
}
/* 画面全体を埋めるファーストビュー */
.first-view {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('images/opening_2.jpg');
  background-size: cover; /* 画面いっぱい、余白なし */
  background-repeat: no-repeat;
  background-position: 50% center;
  animation: bg-pan 20s ease-in-out infinite alternate;
}
@keyframes bg-pan {
  from {
    background-position: 0% center; /* 左端寄り */
  }
  to {
    background-position: 100% center; /* 右端寄り */
  }
}
/* =============================
   ロゴ（左上に固定）
   ============================= */
.logo {
  position: relative;
  top: 20px; /* 上から20px */
  left: 80px; /* 左から20px */
  max-width: 150px; /* ロゴの最大幅（PC時） */
  height: auto;
  z-index: 10; /* 上に重なるように */
}
.first-view p {
  position: relative;
  top: 20px;
  left: 80px;
  font-size: 30px;
  color: #000000;
}
/* コンテンツ（文字や画像） */
.first-view .content {
  position: relative;
  z-index: 2; /* overlay の上に表示 */
  color: #000000;
  /*	text-align: center;*/
  top: 40%;
  transform: translateY(-40%);
  padding: 0 1rem; /* スマホで左右に余白 */
}
.first-view h1 {
  position: relative;
  font-size: 40px;
  margin-bottom: 5rem;
  font-family: "Kaisei Opti", serif;
  margin-right: 305px;
  margin-top: -140px;
  text-indent: -90px; /*    margin-right: 60px;*/
  text-align: right;
  margin-left: 706px;
}
.first-view h1 span {
  font-size: 64px;
}
.first-view .content .family_1-img {
  margin-left: 140px;
  margin-bottom: 0px;
  margin-top: 119px;
}
.first-view .content .child-img {
  margin-left: 264px;
  margin-top: 197px;
}
.first-view .content .family_2-img {
  margin-left: 624px;
  margin-top: 27px;
}

.first-view .sample-img {
  max-width: 300px;
  width: 80%;
  height: auto;
}


/*--------------------------------*/
/*ナビゲーション*/
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: 13px; /* 少し小さめにして収めやすく */
  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; 指マークを強制 */
}

/*----------------------------------*/
/*星舞町の魅力_セクション1*/
#about {
  width: 1000px;
  height: auto;
  display: flex;
}
#about .about_12 {
  width: 225px;
  height: 189px;
}
#about .about_12 h2 {
  display: flex;
  align-items: center;
  width: 150px;
  height: 196px;
  font-size: 30px;
  text-align: center;
  background-color: rgba(152, 170, 255, 0.40);
  padding-right: 38px;
  padding-left: 38px;
  line-height: 1.5;
  letter-spacing: 0;
}
#about {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  align-items: center;
}
.street_3-img {
  grid-column: 1/2;
  grid-row: 2/4;
}
.farm_1-img {}
.street_2-img {}
.street_4-img {
  grid-column: 2/3;
  grid-row: 2/4;
}
.street_6-img {}
.farm_3-img {
  grid-column: 3/4;
  grid-row: 1/3;
}
#about p {
  width: 225px;
  height: 196px;
  font-size: 19px;
}
.farm_2-img {}
.street_5-img {
  grid-column: 4/5;
  grid-row: 1/3;
}
.street_1-img {}
.street_7-img {}

/*---------------------*/

/*住宅について_セクション2*/
#house {
  position: relative; /*基準ボックス化*/
}
#house h2 {
  padding: 10px;
  margin-bottom: 30px;
  border-left: 10px solid rgba(93, 245, 174, 1.00);
  background-color: rgba(140, 255, 201, 0.40);
}
#house p {
  position: absolute;
  width: 480px;
  height: 194px;
  font-size: 20px;
}
.botan-img {
  position: absolute;
  right: 120px;
}
#house .rogu {
  /*	position: absolute;*/
  width: 130px;
  text-align: center;
}
#house .forest {
  /*	position: absolute;*/
  width: 130px;
  text-align: center;
}
.house-select {
  display: flex;
  grid-gap: 40px;
  width: 300px;
  margin-top: 86px;
  margin-left: auto;
  margin-right: 100px;
  margin-bottom: 20px;
}
.house-select .clickable {
  border-radius: 5px;
}
.house_3-img {
  margin-bottom: 20px;
}
.rogu-photo, .forest-photo {
  display: none; /* 最初は非表示 */
  text-align: center;
}
.rogu-photo img {
  border-radius: 5px;
}
.forest-photo img {
  border-radius: 5px;
}
/*---------------------*/
/* 画像がふわっと現れるアニメーション */
.fade-in {
  animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px); /* 下からふわっと */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.clickable {
  cursor: pointer;
  opacity: 0.5; /* 最初は薄い */
  transition: opacity 0.3s ease;
  transition: opacity 0.6s, transform 0.6s; /* アニメーション */
}
.clickable.active {
  opacity: 1; /* 選ばれた画像は濃く表示 */
  transform: scale(1.05); /* 少し拡大して強調 */
}

/*---------------------*/
/*移住者の声_セクション3*/
#people h2 {
  padding: 10px;
  margin-bottom: 30px;
  border-left: 10px solid #F9C762;
  background-color: rgba(255, 221, 152, 0.40);
}
#people .peple_1 p {
  width: 800px;
  margin: 0 auto;
  /*	text-align: center;*/
}
#people .peple_2 p {
  width: 800px;
  margin: 0 auto;
}
#people .img_1 .family_4-img {
  margin-left: 173px;
  margin-top: 53px;
}
#people .img_2 .hukidasi_2-img {
  margin-left: 265px;
  margin-top: -136px;
}
#people .img_2 .family_5-img {
  margin-top: -15px;
  margin-bottom: 72px;
}
#people .peple_1 {
  height: auto;
  width: 1000px;
  font-family: "Noto Sans JP";
  font-size: 24px;
}
#people .peple_1 span {
  font-family: "Holtwood One SC", serif;
}
.family_4-img {
  overflow: hidden;
  border: 4px solid white;
  border-radius: 16px;
  /*	padding: 5px;*/
  background-color: #fff;
  box-shadow: 10px 10px 5px 4px rgb(0 0 0/0.25);
  transform: rotate(-7deg);
}
.family_5-img {
  overflow: hidden;
  border: 4px solid white;
  border-radius: 16px;
  /*	padding: 5px;*/
  background-color: #fff;
  box-shadow: 10px 10px 5px 4px rgb(0 0 0/0.25);
  transform: rotate(8.4deg);
}


/*---------------------*/
/*支援制度_セクション4*/
#support {
  padding-bottom: 25px;
  margin-bottom: 0px;
  background-image: url("images/backgroudcolor.jpg");
}
#support h2 {
  padding: 10px;
  margin-bottom: 10px;
  border-left: 10px solid #9898FC;
  background-color: rgba(174, 174, 255, 0.4);
}
#support h3 {
  font-size: 24px;
  margin-top: 13px;
  font-weight: bold;
  padding-top: 20px
}
#support h4 {
  text-indent: 1em;
  font-size: 20px;
  margin-top: 11px;
  margin-bottom: 8px;
  font-weight: bolder;
}
#support p {
  text-indent: 3em;
  margin: 0;
}
#support .peace {
  width: 800px;
  margin: 0 auto;
  padding: 0;
}
#support .aid {
  width: 900px;
  margin-top: 0;
  margin-right: 0px;
  margin-left: 100px;
  margin-bottom: 0;
}
.peace {
  padding: 20px;
}

/*---------------------*/
/*写真　セクション5*/
#photo h2 {
  color: #fff;
  padding: 20px 0;
  margin-bottom: 0px;
  text-align: center;
  font-family: "Holtwood One SC", serif;
  font-size: xx-large;
  /*	border-left: 10px solid #9898FC;*/
  background-color: rgba(23, 17, 193, 0.8);
  font-weight: bold; /*	margin-bottom: -24px;*/
}
/*==================================================
スライダーのためのcss
===================================*/
.slider { /*横幅94%で左右に余白を持たせて中央寄せ*/
  width: 100%;
  /* [disabled]margin-top: 0; */
  margin-right: auto;
  margin-left: auto;
 }
.slider img {
  width: 60vw; /*スライダー内の画像を60vwにしてレスポンシブ化*/
  height: auto;
}
.slider .slick-slide {
  transform: scale(0.5); /*左右の画像のサイズを80%に*/
  transition: all .5s; /*拡大や透過のアニメーションを0.5秒で行う*/
  opacity: 0.5; /*透過50%*/
}
.slider .slick-slide.slick-center {
  transform: scale(0.8); /*中央の画像のサイズだけ等倍に*/
  opacity: 1; /*透過なし*/
}
/*矢印の設定*/
/*戻る、次へ矢印の位置*/
.slick-prev, .slick-next {
  z-index: 1000; /* 前面に出す */
  position: absolute; /*絶対配置にする*/
  top: 42%;
  cursor: pointer; /*マウスカーソルを指マークに*/
  outline: none; /*クリックをしたら出てくる枠線を消す*/
  border-top: 2px solid #666; /*矢印の色*/
  border-right: 2px solid #666; /*矢印の色*/
  height: 15px;
  width: 15px;
}
.slick-prev { /*戻る矢印の位置と形状*/
  left: 17.5%;
  transform: rotate(-135deg);
}
.slick-next { /*次へ矢印の位置と形状*/
  right: 17.5%;
  transform: rotate(45deg);
}
/*ドットナビゲーションの設定*/
.slick-dots {
  text-align: center;
  margin: 0px 0 0 0;
}
.slick-dots li {
  display: inline-block;
  margin: 0 5px;
}
.slick-dots button {
  color: transparent;
  outline: none;
  width: 10px; /*ドットボタンのサイズ*/
  height: 15px; /*ドットボタンのサイズ*/
  display: block;
  border-radius: 50%;
  background: #ccc; /*ドットボタンの色*/
}
.slick-dots .slick-active button {
  background: #333; /*ドットボタンの現在地表示の色*/
}
/*-----------------------*/
/*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: 0px;
  margin-bottom: 8px;
}
/*
 * Helpers
 */
/* 各セクションのデザイン */
.content-section {
  margin-bottom: 50px; /* セクションごとの間隔 */
}
.content-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
}
.content-section p {
  font-size: 16px;
  line-height: 1.8;
}

/* ==============================
   スマホ向け（640px以下）
   ============================== */
@media screen and (max-width: 640px) {
  /* ページ全体 */
  html {
    font-size: 14px; /* 基本文字サイズを小さめに */
    line-height: 1.6;
  }

  /* 中央固定幅を解除して可変に */
  .content-wrapper {
    width: 100%;
    padding: 0 10px;   /* ← 左右に15px余白をつける */
    box-sizing: border-box; /* ← はみ出し防止 */
  }
		
  /* ファーストビュー */
  .first-view {
	display: flex;
    flex-direction: column;   /* 縦に並べる */
    align-items: center;      /* 横方向の中央揃え */
    justify-content: flex-start; /* 上寄せのまま */  
  }
	
  .first-view .logo {
	 position: static;   /* relative解除 */
    margin: 20px auto;  /* 中央寄せ */
    max-width: 120px;   /* 少し小さめに */ 
	  }
	
  .first-view p {
	 position: static;   /* relative解除 */
    margin: 0 auto 20px;
    font-size: 24px;
    text-align: center;  
  }
	
  .first-view h1 {
	  color: #fff;
    font-size: 22px;
    margin: 20px auto;
    margin-left: 0;
    margin-right: 0;
    text-align: center; /* 中央寄せ */
    text-indent: 0;
  }
	
  .first-view h1 span {
    font-size: 28px;
  }
	
  .first-view .content img {
    display: none; /* スマホでは余分な画像を隠す（必要なら調整） */
  }
/*------------------------------------------*/
  /* ナビゲーション */
  .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;
	}
	
/*	---------------------------*/
	
	  /* 魅力セクション1（#about） */
  #about {
    display: block; /* グリッドを解除して縦並び */
    width: 100%;
  }

	#about .about_12{
	 display: flex;
     justify-content: center;  /*横方向の中央揃え */
     align-items: center;      /*縦方向の中央揃え */
     text-align: center;
	background-color: rgba(152, 170, 255, 0.40);
		width: 100%;	
		 margin-bottom: 10px;
	}	
	
  #about .about_12 h2 {
	background-color: rgba(152, 170, 255, 0);
    font-size:30px;
	 margin: 0 auto;
     padding: 20px;
     width: auto; /* 固定幅を解除 */  
	   }

  #about p {
    display: block;
    margin: 10px auto;
  }
		
  #about img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
	
/*------------------------------------	*/
  /* 住宅セクション2（#house） */
  #house p {
	  position: static;
	 height: auto;
	font-size: 20px;
	margin: 0 auto 15px auto;
	text-align: left;
	white-space: normal; /* 折り返し有効 */
	word-wrap: break-word;
	width: 300px; 
  }
	
  .botan-img {
    position: static;
    display: block;
    margin: 10px auto;
  }
	
  .house-select {
    align-items: center;
    margin: 20px auto;
  }
	
  .house_3-img {
    width: 100%;
    height: auto;
  }
	
	.rogu-photo img {
  border-radius: 5px;
		margin-bottom: 5px;
}
	
.forest-photo img {
  border-radius: 5px;
	margin-bottom: 5px;
}
/*------------------------------------	*/
  /* 移住者の声 3*/
	#people .peple_1{
		width: 300px;
		margin: 0 auto 15px auto;
	}
	
	#people .peple_1 p{
	position: static;
	 height: auto;
	font-size: 20px;
/*	margin: 0 auto 15px auto;*/
	text-align: left;
	white-space: normal; /* 折り返し有効 */
	word-wrap: break-word;
	width: 300px; 
	}
	
	
  #people .peple_2 p {
		  position: static;
	 height: auto;
	font-size: 20px;
	margin: 0 auto 15px auto;
	text-align: left;
	white-space: normal; /* 折り返し有効 */
	word-wrap: break-word;
	width: 300px; 
  }
	
	#people .img_1 .family_4-img{
		margin-left: 10px;
	}
	
	#people .img_1 .hukidasi_1-img{
		margin-left: 90px;
	}
	
	#people .img_2 .hukidasi_2-img{
		padding-top: 200px;
		margin-left: 0;
	}
		
  #people .img_2 {
	  display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* 画像の間隔 */
    margin-bottom: 20px;
	  }
	
	
  #people img {
  
    max-width: 90%;
    height: auto;
    margin: 10px auto;
  }

/*------------------------------------	*/
  /* 支援制度 */
  #support .peace,
  #support .aid {
	width: 100%;
	margin-top: 0;
	margin-right: 9px;
	margin-left: 0;
	margin-bottom: 0;
	padding: 10px;
  }
#support h2 {
    font-size: 24px;
    line-height: 1.4;
    text-align: center;
    padding: 10px;
    word-break: keep-all; /* 単語内での強制改行を防ぐ */
  }

  /* ⑧ support p のインデント修正 */
  #support p {
    width: 80%;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0px 15px 35px;
    padding-left: 2px;     /* 余計なインデント解除 */
	text-indent: 0;      /* 行頭インデント解除 */
    text-align: justify;
    white-space: normal;
    word-wrap: break-word;
  }
	
/*------------------------------------	*/	
  /* 写真セクション */
  .slider img {
    width: 90vw;
  }

	.slick-prev { /*戻る矢印の位置と形状*/
  left: 7.5%;
  transform: rotate(-135deg);
}
.slick-next { /*次へ矢印の位置と形状*/
  right: 7.5%;
  transform: rotate(45deg);
}
/*------------------------------------	*/	
  /* フッター */
  #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;
  }
}
