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

/* トップページを読みやすく整える */
.ccct-home{--ccct-ink:#35443d;--ccct-green:#587763;--ccct-yellow:#f6d96b;color:var(--ccct-ink)}
.ccct-home .image-container{min-height:0;height:clamp(430px,58vw,700px);background:#fff5c9}
.ccct-home .image-container picture,.ccct-home .image-container picture img{display:block;width:100%;height:100%}
.ccct-home .image-container picture img{object-fit:cover;object-position:center}
.ccct-home .center-content{top:50%;left:50%;width:min(90%,900px);padding:clamp(24px,5vw,64px);border-radius:24px;background:rgba(255,253,231,.82);box-shadow:0 16px 50px rgba(53,68,61,.12);backdrop-filter:blur(5px)}
.hero-eyebrow,.section-eyebrow{margin:0 0 12px;color:var(--ccct-green);font-size:13px;font-weight:800;letter-spacing:.18em}
.ccct-home .center-image{width:100%;min-width:0;margin:0;color:var(--ccct-ink);font-size:clamp(25px,5vw,56px);line-height:1.15;overflow-wrap:anywhere}
.ccct-home .center-image span{color:#dfad27}
.ccct-home .caption-text{margin:16px 0 0;color:var(--ccct-ink);font-size:clamp(17px,2vw,23px)}
.hero-link{display:inline-flex;gap:10px;align-items:center;margin-top:24px;padding:12px 22px;border-radius:999px;background:var(--ccct-green);color:#fff;font-weight:700;text-decoration:none}
.hero-link:hover,.hero-link:focus-visible{background:#405b49;color:#fff}
.ccct-home .about-us{padding:clamp(64px,9vw,112px) 24px;background:#fff9d9}
.ccct-home .about-title{color:var(--ccct-ink);font-size:clamp(25px,3.5vw,38px);line-height:1.55}
.ccct-home .about-text{max-width:760px;margin:24px auto;line-height:2}
.about-message{display:inline-block;margin-top:14px;padding:20px 30px;border-left:4px solid var(--ccct-yellow);background:rgba(255,255,255,.7);text-align:left}
.about-message p{margin:0 0 8px;font-size:20px;font-weight:800}.about-message span{line-height:1.8}
.ccct-home .cards-section{padding:clamp(58px,8vw,96px) 24px}.section-heading{margin:0 auto 32px;text-align:center}
.section-heading h2{margin:0 0 10px;color:var(--ccct-ink);font-size:clamp(26px,3vw,34px)}
.section-heading>p:last-child{margin:0;color:#657169}.ccct-home .cards-wrapper{max-width:1120px;margin:0 auto;gap:24px}
.ccct-home .card{width:min(100%,250px);border-radius:18px;box-shadow:0 8px 26px rgba(53,68,61,.10)}
.ccct-home .card a{display:block;height:100%;color:inherit;text-decoration:none}.ccct-home .card-image img{height:175px}
.ccct-home .card-content{padding:18px}.ccct-home .card-title{color:var(--ccct-ink);line-height:1.5}
.card-more{display:flex;justify-content:space-between;margin-top:18px;color:var(--ccct-green);font-size:14px;font-weight:700}
.ccct-home .recent-posts{max-width:900px;padding:64px 24px 80px}.ccct-home .recent-posts li{gap:18px;padding:18px 4px;border-color:#e8e4d3}
.ccct-home .recent-posts li a{flex:1;color:var(--ccct-ink)}.ccct-home .post-date{flex:0 0 auto;color:#77827a}
.news-arrow{color:var(--ccct-green)}.instagram-section{padding:0 20px 64px}
@media(max-width:600px){.ccct-home .image-container{height:460px}.ccct-home .center-content{width:calc(100% - 32px);padding:28px 18px;border-radius:18px}.ccct-home .center-image{font-size:clamp(23px,7vw,34px)}.ccct-home .about-text br{display:none}.ccct-home .recent-posts li{flex-wrap:wrap;gap:6px 12px}.ccct-home .recent-posts li a{flex-basis:calc(100% - 28px)}}

/* ヘッダーをトップページのレモン色とグリーンに合わせる */
.header{background:#fffdf1;border-bottom:1px solid #eee4b7;box-shadow:0 4px 18px rgba(53,68,61,.06)}
.header-container-in{max-width:1280px;margin-inline:auto;padding-inline:clamp(16px,3vw,36px)}
.header .logo-header{color:#35443d;font-weight:700}
.header .navi-in>ul>li>a{margin:8px 4px;padding:12px 18px;border-radius:999px;color:#405b49;font-weight:700;transition:background-color .2s ease,color .2s ease}
.header .navi-in>ul>li>a:hover,.header .navi-in>ul>li.current-menu-item>a,.header .navi-in>ul>li.current_page_item>a{background:#f5e9b5;color:#35443d}
.header .navi-in{background:transparent}
@media(max-width:768px){.header-container-in.hlt-top-menu{padding-block:8px}.header .logo-header{color:#35443d}.mobile-menu-buttons .menu-button{color:#405b49}}

.header-container-in .navi-in>ul>li>a{color:#405b49!important}
.header-container-in .navi-in>ul>li>a:hover,.header-container-in .navi-in>ul>li.current-menu-item>a,.header-container-in .navi-in>ul>li.current_page_item>a{background:#f5e9b5!important;color:#35443d!important}

.header-container-in .logo-header{display:flex;align-items:center;gap:12px;line-height:1.3}
.header-container-in .logo-header img{display:block;width:auto;height:3em;max-height:3.2em;margin:0;object-fit:contain;vertical-align:middle}


/* フッターをヘッダーと同じ配色でまとめる */
.footer{background:#fff9d9;border-top:1px solid #eee4b7;color:#526057}
.footer-bottom{padding:24px clamp(16px,4vw,48px);background:transparent}
.footer-bottom-content{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1200px;margin:0 auto}
.footer a{color:#405b49}
.footer-bottom-logo img{width:48px;height:48px;margin-right:10px;object-fit:contain;vertical-align:middle}
.footer-bottom-logo,.footer-bottom-copy,.footer-bottom-copyright{color:#526057;line-height:1.6}
.go-to-top-button,#go-to-top{border:1px solid #eadb9d;border-radius:50%;background:#f5e9b5;color:#405b49;box-shadow:0 4px 14px rgba(53,68,61,.12)}
@media(max-width:600px){.footer-bottom-content{flex-direction:column;justify-content:center;gap:12px;text-align:center}}

.footer-bottom-content{justify-content:center;gap:28px}
.footer-bottom-logo img{width:auto;height:52px;max-height:52px;max-width:180px}

.footer-bottom{display:flex;align-items:center;justify-content:center;gap:28px;min-height:110px;text-align:center}
.footer-bottom img{width:auto!important;height:auto!important;max-width:180px;max-height:52px}

#footer-bottom{padding:28px 16px;text-align:center}
#footer-bottom .footer-bottom-content{display:flex;align-items:center;justify-content:center!important;gap:28px;flex-wrap:wrap}
#footer-bottom img{width:auto!important;height:auto!important;max-width:180px!important;max-height:52px!important}

.footer img,#footer img,#footer-bottom img{width:180px!important;height:auto!important;max-width:38vw!important;max-height:64px!important}

.footer-bottom-content,#footer-bottom .footer-bottom-content{flex-direction:column!important;align-items:center!important;gap:20px!important}
.footer-bottom-logo{display:block;margin:0!important;line-height:1.4}
.footer-bottom-copyright,.footer-bottom-copy{display:block;margin:0!important;line-height:1.6}

.footer-bottom-content,#footer-bottom .footer-bottom-content{display:grid!important;grid-auto-flow:row!important;justify-items:center!important;align-content:center!important;row-gap:24px!important}
.footer-bottom-content>*,#footer-bottom .footer-bottom-content>*{position:static!important;float:none!important;transform:none!important;margin:0!important}
.footer-bottom-logo img{display:block!important;margin:0 auto!important}

.footer-bottom-logo img{transform:translateY(22px)!important}

/* Privacy Policy: hide the post date and author */
#post-162 .date-tags, #post-162 .author-info { display:none!important; }
