/* HAUP Group Block Animation */
/* Animation Key */
@keyframes GroupFadeinAnime{
from {
    opacity: 0;
}
to {
    opacity: 1;
}
}

@keyframes GroupslideUpAnime{
from {
    opacity: 0;
    transform: translateY(200px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

@keyframes GroupslideDownAnime{
from {
    opacity: 0;
    transform: translateY(-200px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

@keyframes GroupslideLeftAnime{
from {
    opacity: 0;
    transform: translateX(200px);
}
to {
    opacity: 1;
    transform: translateX(0);
}
}

@keyframes GroupslideRightAnime{
from {
    opacity: 0;
    transform: translateX(-200px);
}
to {
    opacity: 1;
    transform: translateX(0);
}
}

.is-style-u-fade-type-fadein{
	opacity: 0;
}

.is-style-u-fade-type-fadein.is-active{
	animation-name: GroupFadeinAnime;
	animation-duration:2s;
	animation-fill-mode:forwards;
	opacity: 0;
}

.is-style-u-fade-type-up{
	opacity: 0;
}

.is-style-u-fade-type-up.is-active{
	animation-name: GroupslideUpAnime;
	animation-duration:1s;
	animation-fill-mode:forwards;
	opacity: 0;
}

.is-style-u-fade-type-down{
	opacity: 0;
}

.is-style-u-fade-type-down.is-active{
	animation-name: GroupslideDownAnime;
	animation-duration:1s;
	animation-fill-mode:forwards;
	opacity: 0;
}

.is-style-u-fade-type-left{
	opacity: 0;
}

.is-style-u-fade-type-left.is-active{
	animation-name: GroupslideLeftAnime;
	animation-duration:1s;
	animation-fill-mode:forwards;
	opacity: 0;
}



.is-style-u-fade-type-right{
	opacity: 0;
}

.is-style-u-fade-type-right.is-active{
	animation-name: GroupslideRightAnime;
	animation-duration:1s;
	animation-fill-mode:forwards;
	opacity: 0;
}


.is-style-u-fade-type-up-slow{
	opacity: 0;
}

.is-style-u-fade-type-up-slow.is-active{
	animation-name: GroupslideUpAnime;
	animation-duration:2s;
	animation-fill-mode:forwards;
	opacity: 0;
}

.is-style-u-fade-type-down-slow{
	opacity: 0;
}

.is-style-u-fade-type-down-slow.is-active{
	animation-name: GroupslideDownAnime;
	animation-duration:2s;
	animation-fill-mode:forwards;
	opacity: 0;
}

.is-style-u-fade-type-left-slow{
	opacity: 0;
}

.is-style-u-fade-type-left-slow.is-active{
	animation-name: GroupslideLeftAnime;
	animation-duration:2s;
	animation-fill-mode:forwards;
	opacity: 0;
}

.is-style-u-fade-type-right-slow{
	opacity: 0;
}

.is-style-u-fade-type-right-slow.is-active{
	animation-name: GroupslideRightAnime;
	animation-duration:2s;
	animation-fill-mode:forwards;
	opacity: 0;
}

.is-style-u-fade-type-fadein-slow{
	opacity: 0;
}

.is-style-u-fade-type-fadein-slow.is-active{
	animation-name: GroupFadeinAnime;
	animation-duration:4s;
	animation-fill-mode:forwards;
	opacity: 0;
}


/* クリックして表示 */
/* ベーススタイル */
.is-style-haup-click-to-reveal {
	cursor: pointer;
	position: relative;
	transition: all 0.4s ease;
	overflow: hidden;
	display: block; 
	width: 100%;
	min-height: 120px; /* 中身が少なくてもボタンが見える高さを確保 */
	max-height: 200px;/*長いコンテンツが内包されてもよいように200pxまでを表示するようにする*/
	background: rgba(0,0,0,0.02);
	border: 1px solid transparent;
}

/* --- クリック前の隠れている状態 --- */
.is-style-haup-click-to-reveal.haup-is-hidden {
	user-select: none; /* テキスト選択不可 */
}

/* 1. 背景のぼかしレイヤー (::before) */
.is-style-haup-click-to-reveal.haup-is-hidden::before {
	content: ""; /* 文字は::afterに任せるので空にする */
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
    
	background: rgba(255, 255, 255, 0.4); 
	backdrop-filter: blur(4px); /* ぼかしを少し強めて期待感を出す */
	-webkit-backdrop-filter: blur(4px);
	transition: all 0.3s ease;
}

/* 2. 中央のボタン (::after) */
.is-style-haup-click-to-reveal.haup-is-hidden::after {
	content: var(--wp--custom--text--group-before-click-message);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%); /* 完全に真ん中 */
	z-index: 11; /* ぼかしレイヤーより上に */
    
/* ボタンの装飾 */
	padding: 12px 28px;
	background: #22b147; /* テーマカラー：緑 */
	color: #ffffff;
	font-size: 16px;
	font-weight: bold;
	border-radius: 50px; /* 角丸ボタン */
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
	white-space: nowrap;
	transition: all 0.3s ease;
}

/* --- ホバー時の演出 --- */
.is-style-haup-click-to-reveal.haup-is-hidden:hover::before {
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(1px); /* ぼかしを弱めてチラ見せ */
}

.is-style-haup-click-to-reveal.haup-is-hidden:hover::after {
	background: #1a8e39; /* ホバーで色を濃く */
	transform: translate(-50%, -55%); /* わずかに浮き上がる */
	box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* --- 表示された時（JSによって .haup-is-revealed が付与された後） --- */
.is-style-haup-click-to-reveal.haup-is-revealed {
	background: transparent;
	min-height: 0;
	cursor: default;
	border: none;
	max-height:unset;
}

/* 疑似要素を非表示にして中身を見せる */
.is-style-haup-click-to-reveal.haup-is-revealed::before,
.is-style-haup-click-to-reveal.haup-is-revealed::after {
	display: none !important;
}

.is-style-haup-click-to-reveal.haup-is-revealed > * {
	filter: none;
	opacity: 1;
	pointer-events: auto;
	user-select: text;
}