@charset "utf-8";

/*===========　レスポンシブ用基礎CSS　===========*/

/*ボックスモデルをborder-boxに変更*/
* {
	box-sizing: border-box;
}

/*フルードイメージ*/
img {
	max-width: 100%;
	height: auto;
}

/*回転時の文字調整封印*/
html{
  -webkit-text-size-adjust: 100%;
}

/*===========　スマホ用　通常時　===========*/


body {
	font-family: "メイリオ", Meiryo,"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;

}

#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(#fff5f7, #ffeef2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.envelope {
  width: 260px;
  height: 170px;
  background: #fff;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  overflow: hidden;
}

.flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 50% 60%);
  background: #f8cdd1;
  transform-origin: top center;
  transition: transform 1s ease;
  z-index: 2;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);

  background: linear-gradient(#f8cdd1, #f3b6bd);

}


.envelope.open .flap {
	 transform: rotateX(160deg);
}


.letter {
  position: absolute;
  bottom: -100%;
  width: 100%;
  height: 100%;
  background: #fffafc;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 2s ease 0.6s;
}

.envelope.open .letter {
  bottom: 0;
}

.letter p {
  color: #d98c9c;
  font-size: 16px;
  letter-spacing: 2px;
}

.envelope {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.envelope::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-top: 2px solid #f3d6da;
}


#Wrap{
		background-color: #fff;
		max-width: 500px;
		margin: 0 auto;
}
main{
	padding: 10px 10px 0 10px ;
}
header h1{
	padding: 20px 10px 20px;
	text-align: center;
  width: 80%;
  margin: 0 auto;
}
#head {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
#head .web{
	display: none;
}
/* ===== header 画像カルーセル ===== */

.hukei {
  position: relative; /* ←これ重要 */
}

.hukei img {
  position: absolute;
  top: 0;
  right: 0; /* 右寄せ維持 */
  width: calc(3/4*100%);
  opacity: 0;
  transition: opacity 3s;
}

/* 表示される画像 */
.hukei img.active {
  opacity: 1;
  position: relative; /* ←高さを確保するため */
}
.text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 70%; 
  z-index: 2;
  margin: 0;
}

/* スマホ用 足跡 */
.sp-foot {
  position: absolute;
  bottom: 15px;
  left: 15px;
  width: 200px;
  height: 40px;
  z-index: 2;
}

/* 足跡 */
.sp-foot span {
  position: absolute;
  width: 14px;
  height: 14px;
  background: url("../images/foot.png") no-repeat center/contain;
}
/* 初期状態（非表示） */
.sp-foot span {
  opacity: 0;
}

/* 発火 */
.sp-foot.show span {
  animation: step 0.6s forwards;
}

/* 時間差（スマホ用） */
.sp-foot.show span:nth-child(1) { animation-delay: 0s; }
.sp-foot.show span:nth-child(2) { animation-delay: 0.5s; }
.sp-foot.show span:nth-child(3) { animation-delay: 1.0s; }
.sp-foot.show span:nth-child(4) { animation-delay: 1.5s; }
.sp-foot.show span:nth-child(5) { animation-delay: 2.0s; }
.sp-foot.show span:nth-child(6) { animation-delay: 2.5s; }
.sp-foot.show span:nth-child(7) { animation-delay: 3.0s; }

/* 配置 */
.sp-foot span:nth-child(1) { left: 0px;   top: 14px; transform: rotate(-20deg); }
.sp-foot span:nth-child(2) { left: 20px;  top: 2px;  transform: rotate(20deg); }
.sp-foot span:nth-child(3) { left: 40px;  top: 14px; transform: rotate(-20deg); }
.sp-foot span:nth-child(4) { left: 60px;  top: 2px;  transform: rotate(20deg); }
.sp-foot span:nth-child(5) { left: 80px;  top: 14px; transform: rotate(-20deg); }
.sp-foot span:nth-child(6) { left: 100px; top: 2px;  transform: rotate(20deg); }
.sp-foot span:nth-child(7) { left: 120px; top: 14px; transform: rotate(-20deg); }
.hukei{
	text-align: right;
}
.hukei img{
		width: calc(3/4*100%);
}
/*-- ハンバーガーメニュー --*/
/* メニューを画面上部に固定表示しています */
.gMenu {
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 99;
}
/* メニューアイコンを画面右上に固定しています */
.gMenu .menu-icon {
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 30px;
  padding-top: 5px;
  height: 12px;
}
/* メニューアイコン（三本線）の真ん中の線です */
.gMenu .menu-icon .navicon {
  background: #765b2e; /* 色は自由に変更可能です */
  display: block;
  height: 2px; /* 太さ */
  width: 31px; /* 長さ */
  position: relative;
  transition: background .4s ease-out; /* 形が変わる時のアニメーション */
}
/* メニューアイコン（三本線）の上と下の線を疑似要素で追加 */
.gMenu .menu-icon .navicon::before,
.gMenu .menu-icon .navicon::after {
  background: #765b2e; /* 色は自由に変更可能です */
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .4s ease-out; /* 形が変わる時のアニメーション */
  width: 100%;
}
.gMenu .menu-icon .navicon::before {top: 10px;} /* 位置を上にずらしています */
.gMenu .menu-icon .navicon::after {top: -10px;} /* 位置を下にずらしています */
/* 表示されるメニューです */
.gMenu .menu {
  background-color: rgba(255,255,255,0.9);
  overflow: hidden;
  max-height: 0; /* ★最初は高さを0にして非表示状態に */
  transition: max-height .6s; /* 表示されるときのアニメーション */
  text-align: center;
}
/* メニュー部分のデザインです */
.gMenu .menu li:first-of-type {
  padding-top: 50px;
}
.gMenu .menu li a {
  display: block;
  padding: 24px 20px;
  text-decoration: none;
  text-transform: uppercase;
}
.gMenu .menu li a:hover {
opacity:1;
  background-color: #f4f4f4;
}
/* チェックボックスは常に非表示です */
.gMenu .menu-btn {
  display: none;
}
/* ▼▼▼以下はチェックボックスがONの時の状態です▼▼▼ */
.gMenu .menu-btn:checked ~ .menu {
  max-height: 395px; /* ★チェックボックスがオンの時高さを338pxにして表示させます */
  transition: max-height .6s;
}
/* メニューボタンの中央の線を非表示に */
.gMenu .menu-btn:checked ~ .menu-icon .navicon {background: transparent;}

/* メニューボタンの上下の線を45度傾けて✕印を作ります */
.gMenu .menu-btn:checked ~ .menu-icon .navicon::before {transform: rotate(-45deg);top: 0;}
.gMenu .menu-btn:checked ~ .menu-icon .navicon::after {transform: rotate(45deg);top: 0;}
/* ハンバーガーメニューの設定はここまで */
main h2{
	margin: 20px 0 30px;
}

.footprints{
  display: none;
}

@keyframes step {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.yagi {
  position: fixed;
  bottom: 90px;
  right: 10px;
  width: 80px;
}

.yagi img {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.open {
  animation: blinkOpen 5s infinite;
}

.close {
  animation: blinkClose 5s infinite;
}

@keyframes blinkOpen {
  0%, 90%, 100% {
    opacity: 1;
  }
  92%, 98% {
    opacity: 0;
  }
}

@keyframes blinkClose {
  0%, 90%, 100% {
    opacity: 0;
  }
  92%, 98% {
    opacity: 1;
  }
}
.yagi {
  animation: float 3s ease-in-out infinite;
}

.yagi:hover img {
  transform: scale(1.08);
}

.yagi:hover img {
  transform: scale(1.05) translateY(-3px);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
#letter ul{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}
#letter li{
	flex-basis: 42%;
	margin-bottom: 24px;
}

#letter a {
	display: block;
	width: 100%;
	aspect-ratio: 202 / 263;
	background-size: cover;
	background-position: center;
}


.img1 {
	background-image: url(../images/tabemono_hutou.png);
}
.img2 {
	background-image: url(../images/sanpo_hutou.png);
}
.img3 {
	background-image: url(../images/ryokan_hutou.png);
}

.img1:hover, .img1.is-open { background-image: url(../images/tabemono_open.png); }
.img2:hover, .img2.is-open { background-image: url(../images/sanpo_open.png); }
.img3:hover, .img3.is-open { background-image: url(../images/ryokan_open.png); }


#carousel {
  max-width: 100%;
  overflow: hidden;
  margin: auto;
	margin-bottom: 70px;
}

.track {
  display: flex;
  width: max-content;
  transition: transform 0.5s ease;
}

.item {
  width: 33.3%;
  height: 150px;
  object-fit: contain;
  opacity: 0.5;
  transform: scale(0.8);
  transition: all 0.6s ease;
}

.item.active {
  opacity: 1;
  transform: scale(1.2);
}




#info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#info .top{
transform: translateY(-70px);
}
#info .top:hover{
      transform: scale(1.05)translateY(-73px);
}
#info .top img {
  filter: drop-shadow(0px 1px 1px #765b2e);
}
 #info .center {
  margin-top: 50px; 
	margin-left: 50px;
}
#info .post:hover{
    transform: scale(1.05) translateY(-3px);
}

footer p{
	border-top: 2px dashed #765b2e;
	padding: 45px 20px 0;
	margin: 0 20px;
	text-align: center;

}
#ori{
	text-align: right;
}
#ori img{
	width: calc(1/5*100%);
}



@media screen and (min-width: 768px){
	body{
		background-color: #feeeed;
	}
	#Wrap, #ori{
		max-width: 500px;
		background-color: #fff;
		margin: 0 auto;
	}
  .gMenu .menu-icon {
  right: 70px;
  }
  .yagi {
  position: fixed;
  bottom: 120px;
  right: 30px;
  width: 100px;
}
}

@media screen and (min-width: 960px){
	#Wrap, #ori{
		max-width: 960px;
	}
    .gMenu .menu-icon {
  right: 30px;
  }
header h1{
    width: 100%;
}

  .sp-foot {
  display: none;
}
  /* ===== 足跡アニメーション ===== */

.foot-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footprints {
  display: inline;
  position: relative;
  width: 700px; /* お好みで調整 */
  height: 30px;
  margin-left: 100px; 
}

.footprints span {
  position: absolute;
  width: 18px;
  height: 18px;
  background: url("../images/foot.png") no-repeat center/contain;
  opacity: 0;
}
.footprints.show span {
  animation: step 0.6s forwards;
}

/* 左右の足＆位置ズラし */
/* 足跡の配置（ここが今回のメイン） */
.footprints span:nth-child(1) {
  left: 0px;
  top: 12px;
  transform: rotate(-20deg);
}

.footprints span:nth-child(2) {
  left: 30px;
  top: 0px;
  transform: rotate(20deg);
}

.footprints span:nth-child(3) {
  left: 60px;
  top: 12px;
  transform: rotate(-20deg);
}

.footprints span:nth-child(4) {
  left: 90px;
  top: 0px;
  transform: rotate(20deg);
}

.footprints span:nth-child(5) {
  left: 120px;
  top: 12px;
  transform: rotate(-20deg);
}
.footprints span:nth-child(6) { left: 150px; top: 0px;  transform: rotate(20deg); }
.footprints span:nth-child(7) { left: 180px; top: 12px; transform: rotate(-20deg); }
.footprints span:nth-child(8) { left: 210px; top: 0px;  transform: rotate(20deg); }
.footprints span:nth-child(9) { left: 240px; top: 12px; transform: rotate(-20deg); }
.footprints span:nth-child(10) { left: 270px; top: 0px;  transform: rotate(20deg); }
.footprints span:nth-child(11) { left: 300px; top: 12px; transform: rotate(-20deg); }

.foot-title {
  gap: 10px;
}

/* 時間差（ゆっくりに） */
.footprints span:nth-child(1) { animation-delay: 0s; }
.footprints span:nth-child(2) { animation-delay: 0.5s; }
.footprints span:nth-child(3) { animation-delay: 1.0s; }
.footprints span:nth-child(4) { animation-delay: 1.5s; }
.footprints span:nth-child(5) { animation-delay: 2.0s; }
.footprints span:nth-child(6) { animation-delay: 2.5s; }
.footprints span:nth-child(7) { animation-delay: 3.0s; }
.footprints span:nth-child(8) { animation-delay: 3.5s; }
.footprints span:nth-child(9) { animation-delay: 4.0s; }
.footprints span:nth-child(10) { animation-delay: 4.5s; }
.footprints span:nth-child(11) { animation-delay: 5.0s; }

    .yagi {
  position: fixed;
  bottom: 130px;
  right: 30px;
  width: 110px;
}
	#head .text, h1{
		display: none;
	}
	#head .web{
		display: inline;
	}
	#head{
		display: flex;
	}
	.web{
		flex-basis: calc(1/2*960);
	}
	@media screen and (min-width: 960px){

  .hukei {
    position: relative;
  }

  .hukei img {
    width: 510px;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
  }

  .hukei img.active {
    opacity: 1;
    position: relative;
  }
}
	main ul li:nth-child(1){
		display: none;
	}
	#letter ul li a {
		width: 202px;
	}
	
		#letter ul{
		flex-wrap: nowrap;
		justify-content: space-around;
		margin-left: 80px;
	}

.item {
    width: 200px; /* ←ここ好きなサイズでOK（250〜350くらい） */
    flex-shrink: 0;
  }
#info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#info p{
	margin-left: 20px;
}
 #info .center {
  margin-top: 60px; 
	margin-left: 280px;
}
#info .post{
	margin-right: 20px;
}

	#ori img{
		max-width: 110px;
	}
}
