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

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

/*見出しh1のフォントを大きくする*/


.entry-title, .archive-title{
    font-size:4vw;
	color:#8dc21f;
	font-family: 'Montserrat',sans-serif;
}

.article h2{
	font-family:roboto,sans-serif;
	font-size:10vw;
}


/*固定ページの日付を消すコード  */
.post-7 .date-tags{
	display: none;
}
.post-82 .date-tags,
.post-99 .date-tags,
.post-86 .date-tags,
.post-89 .date-tags {
	display: none;
}

/* ------------ 宝石：sticky & translate & clip-path ------------ */
.sectionPin {
  width: 100%;
  height: 200vh; /* スクロール長め */
}

.pin_text {
  width: calc(50vw - 100px);
}

.pin_sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-x: clip;
  background-image: linear-gradient(#83a2cb, #D4E7F4);
  view-timeline: --sticky-timeline; /* 画像マスクアニメーション用のタイムラインを定義 */
}

.pin_wrapper {
  display: flex;
  gap: 100px;
  flex-direction: row;
  align-items: center;
  width: 300vmax;
  height: 100%;

  animation: slide-image linear both;
  animation-timeline: view();
  animation-range: contain; /* = contain 0% contain 100% */
}

@keyframes slide-image {
  from {
    translate: 5vw 0;
  }
  to {
    translate: -1200px 0;
  }
}

.image {
  width: 300px;
  height: 300px;
  animation: reveal-gem linear both;
  animation-timeline: --sticky-timeline; /* .pin_stickyに定義したタイムラインを指定 */
  animation-range: contain 55% contain 70%; /* sticky中の「縦」のスクロール量で判定 */
}


/* ------------ 空：sticky & clip-path ------------ */
.sectionSky {
  position: relative;
  width: 100%;
  height: 110vh;
  background-color: #D4E7F4;
}

@keyframes reveal-sky {
  from {
    clip-path: ellipse(0px 0px);
  }
  to {
    clip-path: ellipse(60% 130%);
  }
}

.sky_image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  position: sticky;
  top: 0;
  animation: reveal-sky linear both;
  animation-timeline: view();
  animation-range: contain 0% contain 360%;
  /* ↑ https://scroll-driven-animations.style/tools/view-timeline/ranges/#range-start-name=contain&range-start-percentage=0&range-end-name=contain&range-end-percentage=70&view-timeline-axis=block&view-timeline-inset=0&subject-size=taller&subject-animation=scale-up&interactivity=clicktodrag&show-areas=yes&show-fromto=yes&show-labels=yes */
}

@media  (max-width:768px) {
  .sky_text{
    width: 380px;
  }
}


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

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

	

