@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon
Version:    1.1.2
*/

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

 /*クリックで表示*/
.et_pb_module {
  display: inline-block;
}

.secList {
  display: inline-block;
  padding: 0.3em 1em;
  text-decoration: none;
  color: #67c5ff;
  border: solid 2px #67c5ff;
  border-radius: 3px;
  transition: .4s;
}
  
.secList:hover {
  background: #67c5ff;
  color: white;
}

.et_pb_text_inner {
  background-color: #EAD9FF;
}
 /*クリックで表示*/

/*動くアニメーション*/
.sa {
opacity: 0;
transition: all .5s ease;
}
.sa.show {
opacity: 1;
transform: none;
}
.sa--lr {
transform: translate(-100px, 0);
}
.sa--rl {
transform: translate(100px, 0);
}
.sa--up {
transform: translate(0, 100px);
}
.sa--down {
transform: translate(0, -100px);
}
.sa--scaleUp {
transform: scale(.5);
}
.sa--scaleDown {
transform: scale(1.5);
}
.sa--rotateL {
transform: rotate(180deg);
}
.sa--rotateR {
transform: rotate(-180deg);
}
/*動くアニメーション*/

 /*マウスオーバーで吹き出し表示*/
.setumei {
    display: inline-block;
    position: relative;
}
.setumei > span {
    bottom: 100%;
    display: none;
    position: absolute;
	width: 400px;    /*吹き出しの幅*/
}
.setumei > span::after {
    border-color: #e79221 transparent transparent;
    border-style: solid;
    border-width: 7px 7px 0 0;
    content: "";
    display: block;
    height: 0;
    left: 0;
    position: absolute;
    top: 100%;
    width: 0;
}
.setumei:hover > span {
    background-color: #e79221;
    color: #ffffff;
    display: block;
    margin-bottom: 7px;
    padding: 3px;
}

body {
    padding: 2em 0;
}
 /*マウスオーバーで吹き出し表示*/

/*ボタンをスクロール追従で右下に固定*/
.fixed_btn
{
  position: fixed;
  bottom: 10px; 
  right: 450px;
  padding: 6px 40px;
}
/*ボタンをスクロール追従で右下に固定*/


/*モーダルウィンドウ２*/
#open-modal-fixed {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 2147483647 !important; /* 物理的な最大値 */
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    
    /* 見た目（任意） */
    padding: 15px 25px;
    background: #ff4500 !important; /* 目立つ色 */
    color: #fff !important;
    border-radius: 50px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

#demo-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.85) !important;
    z-index: 2147483647 !important;
}

/* モーダルのコンテンツ部分 */
.modal-content {
    background: #fff;
    margin: 5% auto; /* 上下の余白を少し詰める */
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;

    /* スクロールを有効にするための重要設定 */
    max-height: 80vh !important; /* 画面の高さの80%までに制限 */
    overflow-y: auto !important;  /* 中身が多い時だけスクロールバーを出す */
    
    /* スマホでスムーズにスクロールさせるための設定 */
    -webkit-overflow-scrolling: touch;
}

/* モーダル背景（親要素） */
#demo-modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85) !important;
    z-index: 2147483647 !important;
    
    /* 背景自体がスクロールしないように固定 */
    overflow: hidden !important; 
}
/*モーダルウィンドウ２*/


/* 新着記事のNEW!---------------------------------------------- */
.new-txt{
color: #ff0000;/*文字色*/
margin-right:5px;/*NEW！右側の余白*/
}
/* 点滅 */
.new-txt {
	animation: blinking 1s ease-in-out infinite alternate;
}
 
@keyframes blinking {
	0% {opacity: 0;}
	100% {opacity: 1;}
}
/* 点滅 */
/* 新着記事のNEW!---------------------------------------------- */

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

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

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