@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){
  /*必要ならばここにコードを書く*/
}
/* iOSのSafari対策：htmlとbodyの両方に適用する */
html, body {
  overflow-x: hidden !important;
  position: relative;
  width: 100%;
}

/* Cocoonの全体表示エリアに対してもはみ出しをカット */
#container, #content, .article {
  overflow-x: hidden !important;
  max-width: 100% !important;
}
/* コメントボタン周辺のはみ出しを強制リセット */
.comment-btn,
.comment-btn-wrap,
#reply-title {
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* Cocoonの水色ボタン：白い光が流れる */
.btn-cyan {
  position: relative;
  overflow: hidden;
}

.btn-cyan::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  animation: btn-shine 3s infinite;
}

@keyframes btn-shine {
  0% {
    left: -100%;
  }
  35% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}