/*
Theme Name: enpekoubou
Theme URI: 
Author: 
Author URI: 
Description: えんぺ工房（公式サイト）
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enpekoubou
Tags: 
*/

* {
  word-break: break-all;
}

/* 緑の影を付ける */
.is-style-lpshadow {
  text-shadow: 0 0 10px rgba(0,0,0,1);
  text-shadow: 0 0 10px #27dd3a;
}

/* 黒の影を付ける */
.is-style-blackShadow {
  text-shadow: 1px 1px 0 black, 
    -1px 1px 0 black, 
    1px -1px 0 black, 
    -1px -1px 0 black;
}

/* カテゴリーのリストマークなし */
.wp-block-categories.is-style-no-listmark {
  list-style: none;
  padding-left: 0;
}

.wrap-link {
  word-wrap: break-word; /* 旧仕様 */
  overflow-wrap: break-word; /* 新仕様 */
  word-break: break-all; /* 単語の途中でも改行（必要なら使用） */
  white-space: normal; /* 改行を許可 */
}



/* ーーーーーーーーーーーーーーーーーーー */
/* ほのかに光りながら出現 */
.glowAnime {
  color: #fff;
  background-color: #000;
  }
  
  .glowAnime span{
    opacity: 0;
  }
  
  /*「glow_anime_on」をアニメーションで透過を0から1に変化させtext-shadowをつける*/
  .glowAnime.glow span{ 
    animation:glow_anime_on 1s ease-out forwards; }
  
  @keyframes glow_anime_on{
    0% { opacity:0; text-shadow: 0 0 0 #fff,0 0 0 #fff;}
    50% { opacity:1;text-shadow: 0 0 10px #fff,0 0 15px #fff; }
    100% { opacity:1; text-shadow: 0 0 0 #fff,0 0 0 #fff;}
  }

/* 6 splide */
.splide__slide {
  display: flex;
  flex-direction: column;
  width: 30%;
  align-items: center; /* 水平方向の中央揃え */
  text-align: center; /* テキストを中央揃え */
}
.splide__slide img {
	width: 100%;
  height: auto;
  /* border-radius: 8px; */
  object-fit: cover;
}
.splide__slide p {
  margin-block-start: 8px;
}
.usage-splide {
  margin-block-start: 0;
}


/* 
１．ホバーフローオーバーレイ 
*/

.toukouTemplate * {
  margin: 0!important;
}

#hoverFlowOverray .toukouTemplate {
  width: 400px;
}
@media(max-width:415px) {
  #hoverFlowOverray .toukouTemplate {
    width: 100%;
  }
}

/* クリック可能な親要素としてaタグを設定 */
/* <li>タグの部分 */
.toukouTemplate .wp-block-post {
  display: block!important;
  position: relative!important;
  margin-bottom: 24px!important;
  overflow: hidden!important;
}

/* <img>タグの部分 */
.toukouTemplate .wp-block-post-featured-image img {
  display: block!important;
}


/* オーバーレイをh2に変更 */
/* <h2><a>タイトル</a></h2>の構造 */
/* .wp-block-post-titleは<h2>の部分 */
.toukouTemplate .wp-block-post-title {
  position: absolute!important;
  bottom: 0!important;
  left: 0!important;
  width: 100%!important;
  height: 100%!important;
  background-color: rgba(0, 0, 0, 0.7)!important;
  color: white!important;
  transition: all 0.3s ease!important;
  transform: translateY(100%)!important;
}
.toukouTemplate .wp-block-post-title a {
  display: flex!important;
  justify-content: center!important;
  align-items: center!important;
  text-align: center!important;
  width: 100%!important;
  height: 100%!important;
  color: #fff!important;
  text-decoration: none!important;
}


/* click時に表示 
hoverflowEffect → clickflowEffect時、
以下のコードとJSを追加、それ以外は触っていない
*/
/* 【hoverflowEffect】…　.wp-block-post:hover .wp-block-post-title */
.toukouTemplate .postTitle_h2.overlay
{
  transform: translateY(0)!important;
}

/* hover時に表示 */
.toukouTemplate .wp-block-post:hover .postTitle_h2
{
  transform: translateY(0)!important;
}

