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

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

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* 投稿ヘッダー内でアイキャッチ画像をタイトルより上に表示する */
.entry-header {
    display: flex; /* 子要素をフレックスボックスで並べる */
    flex-direction: column; /* 上から下に縦並びにする */
}

.entry-header .eye-catch-wrap {
    order: -1; /* 表示順を最上位にする（先頭に表示） */
}
/* === ▼ 右下フラッシュ付き長方形フローティングボタン START === */
.floating-cta-rect {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.floating-cta-rect .btn {
  position: relative;
  display: inline-block;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: #ff3366;
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.4);
  animation: glow 2s infinite;
}

/* ✨ 点滅アニメーション */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 51, 102, 0.4); }
  50%      { box-shadow: 0 0 20px rgba(255, 51, 102, 1); }
}

/* ✨ 横に流れるフラッシュ */
.floating-cta-rect .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
  animation: slide-flash 2.5s infinite;
}

@keyframes slide-flash {
  0%   { left: -75%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}
/* === ▲ 右下フラッシュ付き長方形フローティングボタン END === */
/* ▼▼▼ モバイル表示用（768px以下） ▼▼▼ */
@media (max-width: 768px) {
  .floating-cta-rect {　　
    display: block;
  }
}
/* ▲▲▲ モバイル表示用ここまで ▲▲▲ */

/* ▼▼▼ PC表示では非表示（769px以上） ▼▼▼ */
@media (min-width: 769px) {
  .floating-cta-rect {
    display: none;
  }
}
/* ▲▲▲ PC用の非表示ここまで ▲▲▲ */
img[alt$="のサンプル画像"][width="600"][height="338"] {
  display: none !important;
}
