@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){
  /*必要ならばここにコードを書く*/
}
/*---------------------------------------------
* スマホ用 LINE追従（固定）ボタン
*--------------------------------------------*/
.floating-line-btn {
  position: fixed;
  bottom: 20px;               /* 画面下部からの浮き具合 */
  left: 50%;
  transform: translateX(-50%); /* 画面の真ん中に配置 */
  width: 90%;                 /* ボタンの横幅（スマホ画面の9割） */
  max-width: 400px;           /* ボタンの最大横幅 */
  background-color: #06C755;  /* LINEの公式グリーン */
  color: #ffffff !important;  /* 文字色は白 */
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  padding: 15px 0;
  border-radius: 30px;        /* 角丸にして柔らかい印象に */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* しっかり目立つ影 */
  z-index: 9999;              /* 他の要素より手前に表示 */
  transition: all 0.3s ease;  /* なめらかな動き */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ボタンの中のアイコン */
.line-icon {
  font-size: 20px;
  margin-right: 8px;
}

/* 2秒周期でふわふわ動くアニメーション */
@keyframes pulse-green {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.04); } /* ほんの少し大きく */
  100% { transform: translateX(-50%) scale(1); }
}

.floating-line-btn {
  animation: pulse-green 2s infinite ease-in-out;
}

/* パソコンで見るときは右下にスッキリ配置 */
@media (min-width: 768px) {
  .floating-line-btn {
    left: auto;
    right: 25px;
    transform: none;
    width: 320px;
  }
  @keyframes pulse-green {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
  }
}

/* Cocoonの「トップへ戻るボタン」と被らないように少し左に寄せる（PCのみ） */
@media (min-width: 1024px) {
  .floating-line-btn {
    right: 90px; 
  }
}
