/*
Theme Name: Lightning Child
Theme URI:
Template: lightning
Description:
Author:
Tags:
Version: 0.6.1
*/

/* コンタクトフォームの設定 */
.cf7-submit {
	display: inline-block;
	position: relative;
}


.cf7-submit input[type="submit"] {
	padding-top: calc(.6em + 2px);
	padding-bottom: calc(.6em + 2px);
	padding-left: 3em;
	padding-right: 1.5em;
}


.cf7-submit::before {
	font-family: "Font Awesome 6 Free";
	color: #FFF;
	content: "\f1d8";
	position: absolute;
	left: 1.5em;
	top: 50%;
	transform: translateY(-50%);
}

.relative {
	position: relative;
}

/* ツールチップ */
.tooltip {
	position: fixed;
	top: -40px;
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--vk-color-text-link);
	color: white;
	padding: 5px 10px;
	border-radius: 5px;
	z-index: 99999;
	transition: opacity 0.3s ease-in-out;
	text-align: center;
	font-family: inherit;
	font-size: 1rem;
}

/* ツールチップ */
.tooltip::before {
	position: absolute;
	left: calc(50% - 5px);
	bottom: -6px;
	width: 10px;
	height: 6px;
	background-color: inherit;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	content: '';
}

/* スライドのテキスト */
.slide-text {
	color: #FFF;
	overflow: hidden;
	display: -webkit-box;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	max-height: 3em;
}

/* ページトップボタン */
.page_top_btn {
	right: 0.5em;
	bottom: 0.5em;
	width: 3em;
	height: 3em;
	background-color: var(--vk-color-primary);
	box-shadow: none;
}

/* ページトップボタン */
.page_top_btn:hover {
	background-color: var(--vk-color-primary-dark) !important;
}

/* トロフィーの設定 */
.trophy {
	position: absolute;
	left: 0;
	top: 0;
	font-size: 1.3em;
	padding-top: 0.1em;
	padding-left: 0.2em;
	z-index: 100;
}

/* ゴールド */
.gold {
	background-image: linear-gradient(140deg, #FFD700 0%, #FACA15 37%, #FFDF00 42%, #F8D362 63%, #EAB20B 100%);
	color: transparent;
	-webkit-background-clip: text;
}

/* シルバー */
.silver {
	background-image: linear-gradient(140deg, #C0C0C0 0%, #E0E0E0 37%, #D3D3D3 42%, #B0B0B0 63%, #A9A9A9 100%);
	color: transparent;
	-webkit-background-clip: text;
}

/* ブロンズ */
.bronze {
	background-image: linear-gradient(140deg, #CD7F32 0%, #D8916A 37%, #DAA520 42%, #CD853F 63%, #8B4513 100%);
	color: transparent;
	-webkit-background-clip: text;
}

/* トグルボタン */
.toggle-button {
	display: inline-block;
	position: relative;
	cursor: pointer;
	user-select: none;
	padding: 5px 15px;
	margin: 0 0.8rem 0 0.5rem!important;
	border: 1px solid #ccc;
	border-radius: 20px;
	background-color: var(--vk-color-border);
}

/* チェックボックスの非表示 */
.toggle-button input[type="checkbox"] {
	display: none;
}

/* スライダー（トグルボタンのスライダー部分） */
.slider {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 12px;
	width: 30px;
	height: 30px;
	background-color: var(--vk-color-border-form);
	border-radius: 50%;
	transition: 0.3s;
}

/* チェックボックスがチェックされている場合のスライダー位置 */
.toggle-button input[type="checkbox"]:checked + .slider {
	left: calc(100% - 42px);
}

/* チェックボックスがチェックされている場合のスライダーの背景色 */
.toggle-button input[type="checkbox"]:checked + .slider {
	background-color: #89cca5;
}

/* デフォルトセパレータの設定 */
.default-separator {
	border-color: rgba(0,0,0,0.2)!important;
}

/* フェードイン */
.fadein {
	opacity: 0;
	transition: all 0.3s ease-in-out;
}

/* フェードアウト */
.fadeout {
	opacity: 1;
	transition: all 0.3s ease-in-out;
}

/* 処理中アニメーション */
.spinner {
	opacity: 1;
	position: absolute;
	width: 70px;
	text-align: center;
	display: none;
}

.spinner > div {
	width: 18px;
	height: 18px;
	background-color: var(--vk-color-primary);
	filter: brightness(1.2);
	border-radius: 100%;
	display: inline-block;
	-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
	animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
	-webkit-animation-delay: -0.32s;
	animation-delay: -0.32s;
}

.spinner .bounce2 {
	-webkit-animation-delay: -0.16s;
	animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
	0%, 80%, 100% { -webkit-transform: scale(0) }
	40% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
	0%, 80%, 100% { 
		-webkit-transform: scale(0);
		transform: scale(0);
	} 40% { 
		-webkit-transform: scale(1.0);
		transform: scale(1.0);
	}
}

@keyframes fadeOut {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

.fadeout-spinner {
	animation : fadeOut 1s;
	animation-fill-mode: both;
}

/* ページヘッダの調整 */
.page-header {
	background-position: center;
	background-size: cover;
}

.page-header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	background-color: #000000;
	opacity: 0.7;
	width: 100%;
	height: 100%;
}

.page-header .container {
	position: relative;
	max-width; 100%;
	height:auto;
}

.page-header-title-excerpt {
	float: left;
	text-align: left;
	width: 70%;
	padding: 0 2.5% 0 0;
}

.page-header-featured-image {
	position: relative;
	width: 27.5%;
	max-width: 305.25px;
	margin-bottom: 20px;
	overflow: hidden;
	float: right;
	margin: 0 0 0 2.5%;
}

.page-header-featured-image .vk_post_imgOuter {
	aspect-ratio: 3 / 2;
	border-bottom: inherit;
	transition: all 0.3s ease-in-out;
}

.page-header-featured-image .vk_post_imgOuter:hover {
	transform: scale(1.3);
	transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
	.page-header-title-excerpt p {
		display: none;
	}

	.page-header-featured-image {
	}
}

/* 右寄せ */
.wp-block-buttons .alignright {
	margin-left: auto;
	text-align: right;
}

/* レイアウトのベース */
.layout-base {
	position: relative;
	height: auto;
	margin-bottom: 1em;
}

.layout-base .alignright {
	margin-left: auto;
	text-align: right;
}

.layout-base .inline-block {
	display: inline-block;
}

.layout-base.underline-double {
	padding-bottom: 0.5em;
	border-bottom: double 4px var(--vk-color-border-hr);
}

.hide-element {
	opacity: 0;
	height: 0;
	overflow: hidden;
	margin: 0;
	-webkit-margin-after: 0 !important;
	margin-block-end: 0 !important;
	transition: all 0.3s ease-in-out !important;
}

.accordion,
.accordion-title {
	position: relative;
}

.accordion-title:hover {
	cursor: pointer;
}

.accordion input[type=checkbox] {
	display: none;
}

.accordion-contents {
	margin: 0 1em 1em 1em;
}

/* 検索ボタン */
.search-button {
	border: 1px solid var(--vk-color-primary-dark);
	border-radius: var(--vk-size-radius);
	background-color: var(--vk-color-primary);
	font-size: 1rem;
	color: #fff;
	padding: .5em 2em;
}

.search-button:hover {
	background-color: var(--vk-color-primary-dark);
	cursor: pointer;
}

.searchform .search-button {
	border: 1px solid var(--vk-color-border-form);
	border-left: none;
	padding-left: .5em;
	padding-right: .5em;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	letter-spacing: 1px;
	width: 30%;
}

/* アクションボタン・リンク */
.action-button {
	background-color: var(--vk-color-primary)!important;
	color: #fff;
}

.action-button:hover {
	background-color: var(--vk-color-primary-dark)!important;
	filter: initial;
	cursor: pointer;
}
.action-icon,
.field-action-icon {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 0.5em;
}

.field-action-icon {
	top: calc(50% - 0.25em);
}

.action-link,
.action-icon,
.field-action-icon {
	color: var(--vk-color-primary);
}

.action-icon .rotated,
.field-action-icon .rotated {
	animation: rotate-180 0.3s forwards;
}

/* リスクのあるボタン・リンク */
.risky-button {
	background-color: #9b2a35 !important;
	color: #fff;
}

.risky-button:hover {
	background-color: #7C222A !important;
	filter: initial;
	cursor: pointer;
}

.risky-link,
.risky-icon {
	color: #9b2a35;
}

.action-link,
.action-icon,
.field-action-icon,
.risky-link,
.risky-icon {
	z-index: 100;
	border-radius: 50%;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.action-link i,
.action-icon i,
.field-action-icon i,
.risky-link i,
.risky-icon i {
	margin: 0.4em;
}

.action-link:hover,
.action-icon:hover,
.field-action-icon:hover,
.risky-link:hover,
.risky-icon:hover {
	box-shadow: 1.5px 1.5px 3px rgba(0, 0, 0, 0.2);
	cursor: pointer;
}

.h1 {
	font-size: 2rem;
}

.h2 {
	font-size: 1.75rem;
}

.h3 {
	font-size: 1.5rem;
	top: calc(50% - 0.3em);
}

.h4 {
	font-size: 1.33rem;
}

.h5 {
	font-size: 1.2rem;
	top: calc(50% - 0.3em);
}

.h6 {
	font-size: 1.125rem;
}

.h1 i {
	text-align: center;
	min-width: 2rem;
}

.h2 i {
	text-align: center;
	min-width: 1.75rem;
}

.h3 i {
	text-align: center;
	min-width: 1.5rem;
}

.h4 i {
	text-align: center;
	min-width: 1.33rem;
}

.h5 i {
	text-align: center;
	min-width: 1.2rem;
}

.h6 i {
	text-align: center;
	min-width: 1.125rem;
}

/* SELECT要素のギミック */
select {
	position: relative;
	background-size: 1em;
	background-repeat: no-repeat;
	background-position: right 0.5em center;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="%23335c5f" d="M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/></svg>');
}

select:hover{
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="%23294a4c" d="M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/></svg>');
	cursor: pointer;
}

select.rotated {
	animation: rotate-bg 0.3s forwards;
}

select.rotated-reverse {
	animation: rotate-bg-reverse 0.3s forwards;
}

@keyframes rotate-bg {
	from {
		background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="%23335c5f" d="M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/></svg>');
	}
	to {
		background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="%23294a4c" transform="rotate(180 256 256)" d="M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/></svg>');
	}
}

@keyframes rotate-bg-reverse {
	from {
		background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="%23294a4c" transform="rotate(180 256 256)" d="M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/></svg>');
	}
	to {
		background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="%23335c5f" d="M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/></svg>');
	}
}

@keyframes rotate-180 {
	from {
		transform:rotate(0);
	}
	to {
		transform:rotate(180deg);
	}
}

@keyframes rotate-360 {
	from {
		transform:rotate(0);
	}
	to {
		transform:rotate(360deg);
	}
}

/* 波紋エフェクト */
.ripple {
	position: relative;
	overflow: hidden;
}

.ripple:after{
	content: "";
	position: absolute;
	top: 50%;
	left: 50%; 
	transform: translate(-50%, -50%);
	width: 200%;
	height: 200%;
	border-radius: 50%;
	opacity: 0;
	background-color: rgba(153, 153, 153, 0.7);
	transition: opacity 0.75s, width 0.75s, height 0.75s;
}

.ripple:active:after {
	content: "";
	width: 0;
	height: 0;
	opacity: 1;
	transition: opacity 0s, width 0s, height 0s;
}

.ripple:hover {
	cursor: pointer;
}

/* プログレスバー */
.layout-base progress {
	position: relative;
	top: -0.5rem;
}

progress {
	-webkit-appearance: none;
	-moz-appearance: none;
	height: 0.2rem;
	border-radius: 0.1rem;
	background-color: var(--vk-color-border-hr);
}
::-webkit-progress-bar {
	background-color: var(--vk-color-border-hr);
	border-radius: 0.1rem;
}
::-webkit-progress-value {
	border-radius: 0.1rem;
}
::-moz-progress-bar {
	background-color: var(--vk-color-border-hr);
	border-radius: 0.1rem;
}
::-moz-progress-value {
	border-radius: 0.1rem;
}

progress[data-step="0"]::-webkit-progress-value {
	background-color: #4682b4;
}
::-moz-progress-value {
	background-color: #4682b4;
}

progress[data-step="70"]::-webkit-progress-value {
	background-color: #daa520;
}
::-moz-progress-value {
	background-color: #daa520;
}

progress[data-step="90"]::-webkit-progress-value {
	background-color: #cd5c5c;
}
::-moz-progress-value {
	background-color: #cd5c5c;
}
