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

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

/* h1～h6のデザインリセット */
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
background: none;
border: none;
padding: 0;
margin: 0;
border-radius: initial;
box-shadow: none;
font-size: initial;
line-height: initial;
color: initial;
}
/************************************
** H2見出し
************************************/
.article h2 {
  padding: .5em .7em;
  border: 2px solid #2589d0;
  box-shadow: 5px 5px #2589d0;
  color: #2589d0;
  font-size: 1.5em;
  border-radius: 10px;
  /* ここから追加 */
  margin-top: 1em;     /* 見出しの上に余白を追加 */
  margin-bottom: 1em;  /* 見出しの下に余白を追加 */
}

/************************************
** H3見出し
************************************/
.article h3 {
  position: relative;/*相対位置*/
  padding-left: 2em;/*アイコン分のスペース*/
  line-height: 2.5;/*行高*/
  color: #2589d0;/*文字色*/
  font-size: 1.5em;/*サイズ*/
}

.article h3:before {
  font-family: "Font Awesome 5 Free";
  content: "\f1b0";/*アイコンのユニコード*/
  font-weight: 900;
  position: absolute;/*絶対位置*/
  font-size: 1.5em;/*サイズ*/
  left: 0;/*アイコンの位置*/
  top: 0;/*アイコンの位置*/
  color: #2589d0; /*アイコン色*/
  line-height: 1.4;/*行高*/
}


/*スクロールダウン　はじまり*/
/* スクロールダウンの位置 */
.scroll {
  padding-top: 60px;
  position: relative;
  text-align: center;
}
/* 矢印のアニメーション部分 */
.scroll::before {
  animation: scroll 2s infinite;
  border-bottom: 1px solid #000;
  border-left: 1px solid #000;
  content: "";
  height: 20px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
}
/* 矢印のアニメーション */
@keyframes scroll {
  0% {
    opacity: 0;
    transform: rotate(-45deg) translate(0, 0);
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: rotate(-45deg) translate(-20px, 20px);
  }
  100% {
    opacity: 0;
  }
}
/*スクロールダウン　おわり*/

/*サイドバー見出し*/
.sidebar h3 {
border-bottom:2px dotted #4592ff;/*下線の太さ、種類、色*/
background:transparent;/*背景を透明に*/
padding:10px 0 5px 3px;
}

/*投稿本文中カテゴリーのカスタマイズ*/
.entry-categories a {
  border-radius: 0px; /*角の丸み*/
  background-color: #4592ff; /*背景の色*/
  color: #ffffff; /*アイコンと文字の色*/
}

/*投稿本文中カテゴリー：ホバー時のカスタマイズ*/
.entry-categories a:hover {
  color: #ffffff; /*アイコンと文字の色*/
}

/*カテゴリーラベル*/
.entry-card-thumb .cat-label {
top: -6px;
left: 3%;
padding: 5px 10px 5px 10px;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
border-radius: 4px;
color: #fff;
box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
	font-size: 13px;
    transform: rotate(-5deg);
}
a:hover {
    opacity: .8;
}
a:hover {
    transform: translate(0,-3px);
}

/*エントリーカードアイキャッチ画像（サムネイル）の角を丸める*/
.card-thumb img{
  border-radius: 10px; /*サムネイルの角を丸める*/
}
.appeal-content {
    background-color: rgba(255, 255, 255, 0.0);
}
:where(.editor-styles-wrapper) .sbs-line.sbp-r {
--cocoon-custom-background-color: #caed3e !important;
--cocoon-custom-border-color: #caed3e !important;
}



/*記事内画像にカスタムCSSクラスfade-in-on-scrollを付与すると左からフェードインする*/
/* 左からフェードインアニメーション */
.wp-block-image.fade-in-on-scroll {
    /* 通常時の初期状態（アニメーション前） */
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.wp-block-image.fade-in-on-scroll.is-visible {
    /* スクロールして表示された時（アニメーション後） */
    opacity: 1;
    transform: translateX(0);
}
/* 投稿記事の作成画面（エディター）での表示調整 */
body.wp-admin .wp-block-image.fade-in-on-scroll {
    opacity: 1 !important; /* エディターでは常に表示 */
    transform: translateX(0) !important; /* エディターでは位置のずれをなくす */
    transition: none !important; /* エディターではアニメーションを無効化 */
}


/* Cocoonカスタムテキスト1にスクロールマーカーを適用 */
.cocoon-custom-text-1 {
  background: linear-gradient(transparent 60%, #fffb00 60%); /* 黄色のマーカー */
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 2s ease-in-out; /* アニメーション */
  font-weight: normal; /* 初期状態では通常通り（必要に応じて調整） */
}
/* 画面に表示されたらマーカーを引く＆太字にする */
.cocoon-custom-text-1.is-visible {
  background-size: 100% 100%;
  font-weight: bold; /* ここで太字に設定 */
}
/* エディター内で表示されるカスタムテキスト1のスタイル */
.editor-styles-wrapper .cocoon-custom-text-1 {
  background: linear-gradient(transparent 60%, #fffb00 60%); /* 黄色のマーカー */
  background-size: 100% 100%; /* エディターでは常にマーカーを引いた状態 */
  background-repeat: no-repeat;
  font-weight: bold; /* エディターでも太字に設定 */
  /* transitionは不要（アニメーションしないため） */
}

/*新着記事一覧がスクロール時に画面に表示された際に下からフェードイン*/
/* 新着記事リストの初期状態（非表示） */
.widget_recent_entries li {
    opacity: 0;
    transform: translateY(20px); /* 下から20pxの位置に配置 */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* アニメーションの時間とイージング */
    transition-delay: var(--animation-delay, 0s); /* JavaScriptで設定する遅延時間 */
}
/* スクロールで表示された時の状態 */
.widget_recent_entries li.fade-in-active {
    opacity: 1;
    transform: translateY(0); /* 元の位置に戻す */
}

/*新着記事一覧がスクロール時に画面に表示された際にアニメーション*/
.list {
  overflow: hidden;
}

.list-animation {
  animation: list-animation 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes list-animation {
  from {
    opacity: 0;
    transform: scale(1.1) translateY(24px);
  }

  32% {
    opacity: 0;
    transform: scale(1.1) translateY(24px);
  }
}




/*カルーセル人気ランキング*/
.carousel-entry-card-wrap {
  position: relative;
}

.carousel-entry-card-index {
  background: rgba(94, 185, 77, 0.9);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  padding: 4px 8px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}
/*カルーセルカテゴリーラベル非表示*/
.carousel-entry-card-thumb .cat-label {
    display: none;
}

#navi .navi-in > .menu-header .item-label｛
font-family: "Kaisei Tokumin", serif;
font-weight: 400;
font-style: normal;
｝






.cocoon-block-balloon.not-nested-style.sbp-l > .speech-balloon{
height: 100%;
position: relative;
padding: 10px;
background-color: var(--cocoon-custom-background-color);
border-width: 2px;
border-style: solid;
border-color: var(--cocoon-custom-border-color);
color: var(--cocoon-custom-text-color);
border-radius: 20px;
max-width: 86%;
border-top-left-radius: 0 !important; 
}

.sbp-l > .speech-balloon::after,.sbp-l > .speech-balloon::before{
content: none ;
}




.cocoon-block-balloon.not-nested-style.sbp-r > .speech-balloon{
height: 100%;
position: relative;
padding: 10px;
background-color: var(--cocoon-custom-background-color);
border-width: 2px;
border-style: solid;
border-color: var(--cocoon-custom-border-color);
color: var(--cocoon-custom-text-color);
border-radius: 20px;
max-width: 86%;
border-top-right-radius: 0 !important; 
}


:where(.editor-styles-wrapper) div.speech-balloon
 {
height: 100%;
position: relative;
padding: 10px;
background-color: var(--cocoon-custom-background-color);
border-width: 2px;
border-style: solid;
border-color: var(--cocoon-custom-border-color);
color: var(--cocoon-custom-text-color);
border-radius: 6px;
max-width: 86%;
border-radius: 20px; 
border-top-right-radius: 0 !important; 
}



.sbp-r > .speech-balloon::after,.sbp-r > .speech-balloon::before{
content: none ;
}

/* 吹き出しとアイコンの横並び解除 */
.sbp-r.speech-wrap {
display:block;
}
.sbp-l.speech-wrap {
display:block;
}



/* 右の人を右寄せ */
.sbp-r * {
margin-left:auto;
}


/* 右の人を右寄せ */
.sbp-l * {
margin-right:auto;
}

/********************************
ボックスメニューのカスタマイズ
********************************/

.box-menu{
	padding: 0;
	min-height: 0;
}

.box-menu:hover{
	box-shadow:none;
	opacity: 0.8;
} 

.box-menu-label,
.box-menu-description{
	display: none;
}

.box-menu-icon *{
	margin: 0;
	max-width: 100%;
	max-height: 300px;}

/* 4カテゴリーの幅に変更 */
@media screen and (min-width: 600px){
.wwa .box-menu {
	width: 20%;
}
}

/* 枠線を消す */
.box-menu{
box-shadow:none;
}

/************************************
** アピールエリア　イメージを回転させる
************************************/

.appeal-message {
  /* アニメーション時間を 8秒 から 12秒 に変更 */
  animation: rotation 12s linear infinite;
}

/* アニメーションの定義 (変更なし) */
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

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

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