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

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

/* style.css */
#splash-screen {
  position: fixed;
  inset: 0;
  background: #000; /* ロゴの背景色と合わせる */
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.splash-logo {
  max-width: 280px; /* サイズは適宜調整 */
  width: 60%;
  height: auto;
  opacity: 0;
  transform: scale(0.96); /* 少し小さい状態から開始 */
  filter: brightness(1.2); /* 少し明るく浮かび上がらせる */
  animation: logoReveal 2.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: scale(0.96);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1); /* 等倍に戻る */
    filter: blur(0);
  }
}

/* 終了時のアニメーション：背景が奥に引いていくような効果 */
#splash-screen.fade-out {
  pointer-events: none;
  transition: opacity 1.2s ease, transform 1.2s ease;
  opacity: 0;
  transform: scale(1.1); /* サイトが手前に来るような視覚効果 */
}@keyframes charWrite {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* フェード＋ズームアウト */
#splash-screen.fade-out {
  animation: splashOut 1.6s ease forwards;
}

@keyframes splashOut {
  to {
    opacity: 0;
    transform: scale(1.05);
    visibility: hidden;
  }
}



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

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

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