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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
@font-face {
  font-family: 'BlackoutTwoAM';
  src: url('https://ccc-toyama.com/wp-content/themes/cocoon-child-master/webfonts/Blackout_Midnight.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.header {
  height: auto;
}

.header-container-in.hlt-top-menu {
  height: 5em;
}

.header-container-in.hlt-top-menu.hlt-tm-small .logo-header {
  max-height: 5em;
}

.header-container-in.hlt-top-menu.hlt-tm-small .logo-header img {
  height: 3em;
  max-height: 5em;
}

.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);
}

.recent-posts {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.recent-posts h2 {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
}

.recent-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts li {
  padding: 12px 0;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recent-posts li a {
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.recent-posts li a:hover {
  text-decoration: underline;
}

.post-date {
  color: #999;
  font-size: 14px;
}


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


#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; */
}

.content {
  margin-top: 0;
}

.image-container {
  position: relative;
  width: 100%;
  min-height: max-content; /* 波の高さに合わせてさらに広め */
  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;
}

.image-container picture {
  width: 100%;
}

.image-container picture img {
  width: 100%;
  height: auto;
}

/* 中央のキャッチコピーとテキスト */
.center-content {
  position: absolute;
  top: 40%;
  left: 30%;
  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;
  font-family: 'BlackoutTwoAM', sans-serif;
}

.center-image span {
  color: #efefef;
}

.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%; }

.about-us {
  background-color: #fff9c4; /* 柔らかいレモンイエロー */
  padding: 80px 20px;
  text-align: center;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
}

.about-title {
  font-size: 2em;
  color: #444;
  margin-bottom: 20px;
  font-weight: bold;
}

.about-text {
  font-size: 1em;
  line-height: 1.8;
  color: #555;
  margin: 1em 0;
}

.cards-section {
  padding: 60px 20px;
  background-color: #fffde7;
}

.cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  width: 250px;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card-content {
  padding: 15px;
}

.card-title {
  font-size: 18px;
  margin: 0 0 8px;
}

.card-excerpt {
  font-size: 14px;
  color: #666;
}


/* お問い合わせページ全体 */
.contact-page {
  background-color: #fffbea;
  padding: 60px 20px;
  text-align: center;
}

/* タイトル */
.contact-title {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 0.5em;
}

/* サブタイトル */
.contact-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2em;
}

/* フォームエリア */
.contact-form-section {
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* inputやtextareaの見た目 */
.contact-form-section input,
.contact-form-section textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

/* 送信ボタン */
.contact-form-section input[type="submit"] {
  background-color: #ffdc58;
  color: #333;
  font-weight: bold;
  border: none;
  padding: 12px 40px;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form-section input[type="submit"]:hover {
  background-color: #ffd633;
}

.contact-form-section .require::after {
  content:'*';
  color: #dc3232;
}



/* アニメーション */
@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) {

  .header-container-in.hlt-top-menu {
    height: auto;
  }

  .mobile-menu-buttons .menu-button {
    justify-content : left;
  }

  .center-image {
    width: 90vw;
  }

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

  .floating-image {
    width: 100px;
  }

  .center-content {
    left: 50%;
  }
}


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

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

  .center-content {
    left: 50%;
  }
}

/*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;
	}
}

@media (max-width: 480px) {
  .header-container-in.hlt-top-menu {
    height: auto;
  }

  .image-container {
    height: 350px;
  }

  .image-container picture img {
    height: 350px;
    object-fit: cover;
  }

  .center-content {
    left: 50%;
  }

  .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%; }
}