/*
Theme Name: sampleSite1
Theme URI: 
Author: 
Author URI: 
Description: えんぺ工房のサンプルサイトです。ホームページ作成ご依頼時の参考にしてください。
Requires at least: 6.6
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: samplesite1
Tags: 
*/

/* functions.php自体がないし、functions.phpにstyle.cssを適用するって書かないと */
/* 縦書き */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
}

/* flex-reverse */
.rowReverse{
  flex-direction: row-reverse;
}

@media(min-width:600px) {
  .blogTitle {
    height: 50px;
  }
}


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

.toukouTemplate * {
  margin: 0!important;
}

/* クリック可能な親要素として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.5s 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;
}





/* ーーーーーーーーーーーーーーーーーーーーーー */
/* ほのかに光りながら出現 */
/* .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;}
}

/* .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: 4px;
  object-fit: cover;
}
.splide__slide p {
  margin-block-start: 8px;
}

/* ーーーーーーーーーーーーーーーーーーーーーー */


