/*
Theme Name: み・らいずパーソナルキッズ
Description: み・らいず パーソナルキッズ 公式サイト用オリジナルテーマ（ブロックテーマ）
Author:
Version: 1.0.8
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: mirise-personal-kids
*/

/* ===== 全体 ===== */
html {
	scroll-behavior: smooth;
}

body {
	background-color: #FAF6F0;
	color: #4A4443;
}

/* メニューからのスクロール時、固定ヘッダーに隠れないようにする */
#news, #feature, #skills, #program, #flow, #trial, #overview, #contact {
	scroll-margin-top: 90px;
}

a {
	color: #E8896B;
}

a:hover {
	color: #c96a4d;
}

/* ===== ヘッダー ===== */
/* 固定ヘッダー: sticky はラッパーの <header> 側に付与する。
   .site-header 自身に付けると、直接の親要素（<header>）の高さが
   中身とぴったり同じになり、スクロール時にすぐ固定が外れてしまうため。 */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header {
	background-color: #FAF6F0;
	border-bottom: 1px solid #F0E6DA;
}

.site-header .wp-block-navigation-link a {
	font-size: 0.95rem;
	font-weight: 600;
}

/* メニューの文字色（グローバルスタイルの影響で黒っぽくなってしまうのを防ぐため詳細度を上げて指定） */
.site-header .wp-block-navigation-link a,
.site-header .wp-block-navigation-item__content {
	color: #E8896B !important;
}

.site-header .wp-block-navigation-link a:hover,
.site-header .wp-block-navigation-item__content:hover {
	color: #c96a4d !important;
}

/* ヘッダー内のボタン（お問い合わせ・無料体験）は少し薄めに */
.header-cta-buttons .wp-block-button__link {
	padding: 0.55em 1.4em !important;
	font-size: 0.9rem !important;
}

/* ヘッダーボタンの配色をデザイン案に合わせる（グローバルスタイルの上書き対策で詳細度を上げている） */
.site-header .btn-header-contact a.wp-block-button__link {
	background-color: #ffffff !important;
	color: #E8896B !important;
	border-color: #F0977E !important;
}

.site-header .btn-header-trial a.wp-block-button__link {
	background-color: #F0977E !important;
	color: #ffffff !important;
}

.wp-block-site-logo img {
	height: auto;
	display: block;
}

.site-footer .wp-block-site-logo {
	margin-bottom: 0.8rem;
}

/* ===== ボタン共通 ===== */
.wp-block-button__link {
	border-radius: 999px !important;
	font-weight: 700 !important;
	padding: 0.9em 1.8em !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 2px !important;
}

/* ===== ボタン共通：マウスオーバー時のアクション ===== */
.wp-block-button__link {
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, opacity 0.15s ease, color 0.15s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(74, 68, 67, 0.18);
	opacity: 0.92;
}

/* 枠線タイプ（お問い合わせボタンなど）はホバーで塗りつぶす */
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: #F0977E !important;
	color: #ffffff !important;
	opacity: 1;
}

/* ===== バッジ ===== */
.badge-pill {
	display: inline-block;
	background-color: #F0977E;
	color: #fff;
	border-radius: 999px;
	padding: 0.3em 1.4em;
	font-weight: 700;
	font-size: 0.95rem;
}

.badge-yellow {
	display: inline-block;
	background-color: #F7D98A;
	color: #4A4443;
	border-radius: 999px;
	padding: 0.15em 1em;
	font-weight: 700;
}

/* ===== 円アイコン（特徴4つ）===== */
.feature-circle {
	border: 3px solid #F0977E;
	border-radius: 999px;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0.3em;
	font-weight: 700;
	line-height: 1.3;
	font-size: 1.02rem;
	color: #4A4443;
	background: #fff;
}

/* ===== 番号丸（申し込みの流れ）===== */
.step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.4em;
	height: 2.4em;
	border-radius: 999px;
	background-color: #F0977E;
	color: #fff;
	font-weight: 700;
	font-size: 1.3rem;
	margin: 0 auto 0.5em;
}

/* ===== 申し込みの流れ・サポートのイラスト ===== */
.flow-icon {
	margin: 0 auto 0.8em !important;
}
.flow-icon img {
	display: block;
	margin: 0 auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

/* ===== サービスの特徴アイコン ===== */
.feature-icon img {
	width: 100%;
	height: auto;
	display: block;
}

/* スマホでは画像そのものの解像度（300px）に近いサイズで表示し、
   引き伸ばしによる画質の粗さを目立たなくする */
@media (max-width: 600px) {
	.feature-icon {
		max-width: 200px;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

/* ===== セクション見出し丸括弧番号 ===== */
.section-number-badge {
	display: inline-block;
	background-color: #F0977E;
	color: #fff;
	border-radius: 999px;
	padding: 0.2em 1.2em;
	font-weight: 700;
	margin-bottom: 0.6em;
}

/* ===== 点線区切り ===== */
.dotted-divider {
	border: none;
	border-top: 3px dotted #F0977E;
	margin: 0;
}

/* ===== お知らせ ===== */
.news-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.news-list .news-item {
	border-bottom: 1px dashed #E4D9CB;
	padding: 0.6em 0;
	margin: 0 !important;
	gap: 1em;
	align-items: baseline;
}
.news-list .wp-block-post-date time {
	color: #E8896B;
	font-weight: 600;
	white-space: nowrap;
}
.news-list .wp-block-post-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 400;
}
.news-list .wp-block-post-title a {
	color: #4A4443;
	text-decoration: none;
}
.news-list .wp-block-post-title a:hover {
	color: #E8896B;
}
/* お知らせ一覧ページ：ページ送り */
.wp-block-query-pagination {
	margin-top: 1.5em;
	font-size: 0.9rem;
}

/* ===== 教室概要テーブル ===== */
.overview-table {
	width: 100%;
	border-collapse: collapse;
}

.overview-table table {
	border: none !important;
	border-collapse: collapse;
}

.overview-table th,
.overview-table td {
	text-align: left;
	padding: 0.9em 0.5em;
	border: none !important;
	border-bottom: 1px solid #E4D9CB !important;
	vertical-align: top;
}

.overview-table th {
	width: 8em;
	white-space: nowrap;
	color: #E8896B;
	font-weight: 700;
}

.overview-table {
	display: block;
	overflow-x: auto;
}

@media (max-width: 600px) {
	.overview-table th {
		width: 6em;
		white-space: normal;
	}
}

/* ===== 下部CTA：背景装飾 ===== */
.cta-decor {
	position: relative;
	overflow: hidden;
}

.cta-decor .cta-inner {
	position: relative;
	z-index: 1;
}

.cta-shape {
	position: absolute;
	z-index: 0;
	pointer-events: none;
}

.cta-shape-1 {
	top: -40px;
	left: -30px;
	width: 130px;
	height: 130px;
	background: #A9C299;
	border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%;
	opacity: 0.85;
}

.cta-shape-2 {
	top: -30px;
	right: 12%;
	width: 170px;
	height: 100px;
	background: #F7D98A;
	border-radius: 0 0 60% 60% / 0 0 90% 90%;
	opacity: 0.85;
}

.cta-shape-3 {
	left: -40px;
	bottom: 12%;
	width: 140px;
	height: 140px;
	background: #EEAFC4;
	border-radius: 50% 50% 50% 0 / 50% 50% 0 50%;
	opacity: 0.85;
}

.cta-shape-4 {
	right: -30px;
	bottom: -30px;
	width: 130px;
	height: 170px;
	background: #A9C9DA;
	border-radius: 50% 0 50% 50%;
	opacity: 0.75;
}

@media (max-width: 600px) {
	.cta-shape { transform: scale(0.7); }
	.cta-shape-1 { top: -20px; left: -20px; }
	.cta-shape-2 { top: -15px; right: -10px; }
	/* スマホではボタンが横幅いっぱいになり、下側の丸型装飾と重なってしまうため非表示にする */
	.cta-shape-3,
	.cta-shape-4 {
		display: none;
	}
}

/* ===== フッター ===== */
.site-footer {
	background-color: #FBEFE3;
	color: #4A4443;
}

.site-footer a {
	color: #4A4443;
}

/* ===== 本文エリアの左右余白（すべての画面幅で確保） ===== */
.entry-content > *:not(hr) {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	box-sizing: border-box;
}

@media (max-width: 480px) {
	.entry-content > *:not(hr) {
		padding-left: 1.2rem;
		padding-right: 1.2rem;
	}
}

/* ===== モバイル調整 ===== */
@media (max-width: 782px) {
	.feature-circle {
		aspect-ratio: auto;
		padding: 1em 0.5em;
	}
}

/* ===== 一時的に非表示にしているセクション ===== */
.is-hidden-section {
	display: none;
}

/* ===== ヘッダー：スマホ表示 ===== */
@media (max-width: 600px) {
	/* ロゴ → お問い合わせボタン → ハンバーガーボタン の順で1列に収める */
	.site-header-inner {
		flex-wrap: nowrap !important;
		align-items: center;
		gap: 0.5rem;
	}

	.site-header-inner .wp-block-site-logo {
		order: 1;
		flex-shrink: 0;
	}

	.site-header-inner .header-cta-buttons {
		order: 2;
		margin-left: auto;
	}

	/* 「無料体験」ボタンはスマホでは非表示、お問い合わせのみ残す */
	.site-header-inner .btn-header-trial {
		display: none;
	}

	.site-header-inner .wp-block-navigation {
		order: 3;
		flex-shrink: 0;
		margin-right: 0.6rem;
	}
}

/* スマホでハンバーガーボタンを開いた時のメニュー：
   右端に寄って押しにくいので、左寄せにして中央寄りに配置する */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container.items-justified-right {
	align-items: flex-start !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container.items-justified-right .wp-block-navigation-item {
	margin-left: 0 !important;
}
