@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
*/

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

.appeal-content {
  background-color: unset;
}

.navi-menu-content {
  left: auto;
  right: 0;
  transform: translateX(105%);
}

.menu-close-button {
  text-align: right;
}

.menu-close-button > span {
  padding-right: 0.5em;
}

.front-image {
  position: relative;
  background-image: url('https://ccc-toyama.com/wp-content/uploads/2025/01/front-back-color.png');
  width: 100%;
  height: 650px;
  overflow: hidden;
}

.front-image-child {
  width: 100%;
  height: 650px;
  position: absolute;
  top: 0;
  /* left: calc(50% - 500px); */
  z-index: 2;
}

.front-image-child:after {
  content: "";
  display: block;
  min-width: 1600px;
  width: 100%;
  height: 650px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-image: url('https://ccc-toyama.com/wp-content/uploads/2025/01/front-back.png');
  background-size: 100% 650px;
  background-position: 50% 0;
  z-index: 1;
}

.catchcopy {
	width: auto;
	aspect-ratio: 800 / 119;
	position: relative;
  text-align: center;
	top: 21%;
  /* left: 35%; */
  z-index: 12;
}

.catchcopy p {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 0;
    /* right: -30px; */
}

.slideinBottom {
  animation: slideinBottom 1.8s 1;
}

.fade {
	opacity: 0;
	transition: opacity 1.5s, transform 1s;
}
.fade.active {
	opacity: 1;
	transform: translateY(0px);
}

@keyframes slideinBottom {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
		.front-image {
		height: 550px;
	}
	
	.front-image-child {
		height: 550px;
	}
	
	.front-image-child:after {
		height: 550px;
		background-size: 100% 550px;
	}
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
	.front-image {
		height: 400px;
	}
	
	.front-image-child {
		height: 400px;
	}
	
	.front-image-child:after {
		height: 400px;
		background-size: 100% 400px;
	}
	
	.catchcopy {
	width: 45%;
	aspect-ratio: 522 / 119;
	position: absolute;
	top: 21%;
    left: 28%;
    z-index: 12;
}
	.catchcopy p {
		bottom: auto;
	}
}

#sb_instagram #sbi_load .sbi_follow_btn {
  display: none;
}

#sb_instagram {
  width: 70%;
}

#sbi_images {
  gap: 40px !important;
}

#sb_instagram .sbi_photo {
  height: auto !important;
}

#content .main {
  padding: 0;
}

body {
  background: #fffde7; /* 明るいレモンっぽい背景 */
  margin: 0;
  padding: 0;
  /* height: 100vh; */
  display: flex;
  justify-content: center;
  align-items: center;
  /* overflow: hidden; */
}

.image-container {
  position: relative;
  width: 100%;
  min-height: 900px; /* 波の高さに合わせてさらに広め */
  background-color: #fffbe7;
  background-image: url("data:image/svg+xml,%3Csvg%20width='800'%20height='400'%20viewBox='0%2090%20800%20210'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern%20id='dots'%20x='0'%20y='0'%20width='5'%20height='5'%20patternUnits='userSpaceOnUse'%3E%3Ccircle%20cx='2.5'%20cy='2.5'%20r='1.2'%20fill='%23f4c542'/%3E%3C/pattern%3E%3CclipPath%20id='waveClip'%3E%3Cpath%20d='M0%20100%20Q200%20180%20400%20100%20T800%20100%20L800%20300%20Q600%20380%20400%20300%20T0%20300%20Z'/%3E%3C/clipPath%3E%3C/defs%3E%3Crect%20width='800'%20height='400'%20fill='url(%23dots)'%20clip-path='url(%23waveClip)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

/* 中央のキャッチコピーとテキスト */
.center-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
}

.center-image {
  display: block;
  width: min(50vw, 600px); /* 最大600px、画面の50%に収める */
  min-width: 300px; /* ここ追加でスマホでも大きく */
  height: auto;
  opacity: 0;
  animation: fadeInZoom 1.5s ease-out forwards;
}

.caption-text {
  margin-top: 16px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 1.5s;
}

/* 散らばる画像 */
.floating-image {
  position: absolute;
  width: 180px;
  opacity: 0;
  animation: floatUp 3s ease-in-out infinite alternate,
             fadeIn 1s ease-in forwards;
  animation-delay: 2.2s, 2.2s;
  z-index: 5;
}

/* 各画像の位置（中心に近め） */
.img1 { top: 20%; left: 30%; }
.img2 { top: 25%; left: 65%; }
.img3 { top: 65%; left: 25%; }
.img4 { top: 60%; left: 65%; }
.img5 { top: 40%; left: 75%; }

/* アニメーション */
@keyframes fadeInZoom {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes floatUp {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-20px);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .center-image {
    width: 90vw;
  }

  .caption-text {
    font-size: 18px;
  }

  .floating-image {
    width: 100px;
  }
}

@media (max-width: 480px) {
  .image-container {
    height: 350px;
  }

  .center-image {
    width: 80vw;
  }

  .caption-text {
    font-size: 12px;
  }

  .floating-image {
    width: 50px;
  }

  /* 画像の位置も少し寄せる */
  .img1 { top: 22%; left: 35%; }
  .img2 { top: 26%; left: 60%; }
  .img3 { top: 75%; left: 28%; }
  .img4 { top: 72%; left: 60%; }
  .img5 { top: 42%; left: 80%; }
}