:root {
	--color-pink: #e5336a;
	--color-teal: #26b3b5;
	--color-text: #333;
	--color-bg: #fff;
	--content-width: min(94vw, 100rem);
	--box-width: min(90vw, 90rem);
	--inner-width: min(80vw, 75rem);
	--color-teal-light: #55c9d1;
	--color-teal-dark: #00aebf;
	--color-blue: #2a93b8;
	--color-gray: #ececec;
	--font-base: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
	--font-round: "Zen Maru Gothic", var(--font-base);
	--font-hand: "Caveat", cursive;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: clamp(16px, 0.55vw + 8px, 26px); }

body {
	margin: 0;
	color: var(--color-text);
	background: var(--color-bg);
	font-family: var(--font-base);
	font-size: 1rem;
	line-height: 1.8;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; }

.container {
	max-width: calc(var(--inner-width) + 2.5rem);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* ヘッダー */
.site-header {
	position: relative;
	border-bottom: 1.125rem solid var(--color-teal);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2.5rem;
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 1rem 1.25rem;
}
.site-logo { margin: 0; line-height: 1; }
.site-logo img { width: 220px; height: auto; }
.site-description {
	margin: 0.5rem 0 0;
	font-size: 0.75rem;
	line-height: 1.5;
}
.site-header .site-description { margin: 0 0 0.5rem; }

.global-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.global-nav__list a {
	color: var(--color-pink);
	font-weight: bold;
	font-size: 1rem;
	text-decoration: none;
}
.global-nav__list a:hover { text-decoration: underline; }

.menu-toggle { display: none; }

/* ヘッダー: 教室の電話番号 */
.header-info {
	display: flex;
	align-items: center;
	gap: 2rem;
	margin-left: auto;
}
.header-ig { display: block; line-height: 0; }
.header-tel__name { margin: 0; font-size: 0.75rem; font-weight: 700; line-height: 1.6; }
.header-tel__num {
	display: block;
	color: var(--color-pink);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	letter-spacing: 0.03em;
}
.header-tel__num small { font-size: 0.55em; }
.header-tel__addr { margin: 0; color: #545454; font-size: 0.6875rem; line-height: 1.6; }

/* ヘッダー下のメニュー（日本語 + 英語の小ラベル） */
.global-nav {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0.5rem 1.25rem 1.25rem;
}
.global-nav__list { justify-content: center; gap: 0.5rem 3rem; }
.global-nav__list a {
	display: block;
	color: #333;
	font-size: 1.125rem;
	text-align: center;
	letter-spacing: 0.1em;
	line-height: 1.5;
}
.global-nav__list .gnav__en {
	display: block;
	color: var(--color-teal);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.15em;
}
.global-nav__list a:hover { color: var(--color-pink); text-decoration: none; }

/* 固定ページ */
.page-article {
	max-width: calc(var(--inner-width) + 2.5rem);
	margin: 0 auto;
	padding: 3rem 1.25rem;
}
.page__title {
	margin: 0 0 2rem;
	color: var(--color-pink);
	font-size: 1.75rem;
}

.page__date { display: block; margin: 0 0 0.5rem; color: #666; font-size: 0.875rem; }
.page__thumb { margin: 0 0 2rem; }
.page__thumb img { width: 100%; height: auto; border-radius: 0.625rem; }
.page__content { line-height: 1.9; }
.page__content > * + * { margin-top: 1.25em; }

/* 記事一覧 */
.post-list {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
	border-top: 1px solid #ccc;
}
.post-list__item {
	display: flex;
	gap: 1.5rem;
	padding: 0.875rem 0.25rem;
	border-bottom: 1px solid #ccc;
}
.post-list__item time { flex-shrink: 0; color: #666; }
.post-list__item a { color: var(--color-pink); text-decoration: none; }
.post-list__item a:hover { text-decoration: underline; }

.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
.pagination .page-numbers {
	min-width: 2.5rem;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--color-teal);
	border-radius: 0.25rem;
	color: var(--color-teal);
	text-align: center;
	text-decoration: none;
}
.pagination .page-numbers.current { background: var(--color-teal); color: #fff; }

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid #ccc;
	font-size: 0.875rem;
}
.post-nav a { color: var(--color-blue); text-decoration: none; }

/* フッター */
.site-footer {
	border-top: 0.2rem solid var(--color-teal-dark);
}
.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 1.25rem;
}
.site-footer__brand .site-description { margin: 0 0 0.5rem; }
.site-footer__brand img { width: 220px; height: auto; }
.footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1rem;
}
.footer-nav__list a { color: var(--color-pink); font-weight: bold; font-size: 0.9375rem; text-decoration: none; }
.footer-nav__list a:hover { text-decoration: underline; }
.footer-sub {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0.75rem 1.25rem 1.25rem;
	list-style: none;
	font-size: 0.875rem;
}
.footer-sub a { color: #545454; text-decoration: none; }
.footer-sub a:hover { text-decoration: underline; }
.copyright {
	margin: 0;
	padding: 0.75rem 1.25rem;
	background: var(--color-teal-dark);
	color: #fff;
	font-size: 0.75rem;
	text-align: center;
}

/* SP */
@media (max-width: 767px) {
	.container { max-width: none; }
	.page-article { max-width: none; }
	.post-list__item { flex-direction: column; gap: 0.25rem; }
	.site-header { border-bottom-width: 8px; }
	.site-header__inner { gap: 16px; padding: 0.7rem 1rem; }
	.site-logo img { width: 150px; height: auto; }

	.site-header .menu-toggle {
		display: block;
		position: relative;
		flex-shrink: 0;
		width: 44px; height: 44px;
		padding: 0;
		border: 0;
		border-radius: 8px;
		background: var(--color-pink);
		cursor: pointer;
	}
	.menu-toggle__bar,
	.menu-toggle__bar::before,
	.menu-toggle__bar::after {
		position: absolute;
		left: 11px;
		width: 22px; height: 3px;
		border-radius: 2px;
		background: #fff;
		content: "";
	}
	.menu-toggle__bar { top: 20px; }
	.menu-toggle__bar::before { top: -8px; left: 0; }
	.menu-toggle__bar::after { top: 8px; left: 0; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar { background: transparent; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before { top: 0; transform: rotate(45deg); }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after { top: 0; transform: rotate(-45deg); }

	.global-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		z-index: 100;
		background: #fff;
		box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
	}
	.global-nav.is-open { display: block; }
	.global-nav__list { flex-direction: column; gap: 0; }
	.site-footer__inner { flex-direction: column; text-align: center; }
	.site-footer__brand img { width: 150px; }
	.footer-nav__list { justify-content: center; }
	.site-header__inner { flex-wrap: wrap; }
	.header-info {
		order: 3;
		width: 100%;
		margin: 0;
		gap: 0.5rem;
		align-items: stretch;
	}
	.header-ig { display: none; }
	.header-tel {
		flex: 1 1 0;
		min-width: 0;
		padding: 0.375rem 0.5rem;
		background: #fff3f6;
		border-radius: 0.5rem;
		text-align: center;
	}
	.header-tel__name { font-size: 0.625rem; }
	.header-tel__num { font-size: min(1.0625rem, 4.2vw); letter-spacing: 0; white-space: nowrap; }
	.header-tel__addr { font-size: 0.5625rem; }
	.site-header .site-description { font-size: 2.5vw; white-space: nowrap; }
	.site-branding { min-width: 0; }
	.global-nav { padding: 0; }
	.global-nav__list a {
		display: block;
		padding: 14px 20px;
		border-top: 1px solid #eee;
	}
}

/* ===== ヘッダー固定・現在地の表示・ページ先頭へ ===== */
html { scroll-behavior: smooth; scroll-padding-top: 9rem; }
.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.site-header .site-description,
.site-header .site-logo img,
.header-info,
.global-nav { transition: all .25s ease; }
.is-scrolled .site-header .site-description,
.is-scrolled .header-info { display: none; }
.is-scrolled .site-logo img { width: 130px; }
.is-scrolled .site-header__inner { padding-top: 0.375rem; padding-bottom: 0; }
.is-scrolled .global-nav { padding-top: 0.125rem; padding-bottom: 0.5rem; }
.is-scrolled .global-nav__list .gnav__en { display: none; }
.is-scrolled .global-nav__list a { font-size: 1rem; }
.is-scrolled { --header-h: 6rem; }
.is-scrolled { scroll-padding-top: 6.5rem; }

/* 教室名・住所のリンク */
.header-tel__name, .header-tel__addr { display: block; text-decoration: none; }
.header-tel__name { color: #333; }
.header-tel__addr { color: #545454; }
.header-tel__name:hover, .header-tel__addr:hover { color: var(--color-pink); text-decoration: underline; }

/* 現在表示しているページのメニューを強調 */
.global-nav__list .current-menu-item > a,
.global-nav__list .current-menu-ancestor > a,
.global-nav__list a[aria-current="page"] { color: var(--color-pink); box-shadow: inset 0 -3px 0 var(--color-pink); }

/* パンくず */
.breadcrumb { margin-top: 0.5rem; font-size: 0.8125rem; color: rgba(255, 255, 255, .9); }
.breadcrumb a { color: #fff; text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 0.375rem; }

/* ページの先頭へ戻るボタン */
.page-top {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 150;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	background: var(--color-pink);
	border-radius: 50%;
	color: #fff;
	font-size: 1rem;
	text-decoration: none;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s;
}
.page-top.is-show { opacity: .9; pointer-events: auto; }

@media (max-width: 767px) {
	html { scroll-padding-top: 5.5rem; }
	.is-scrolled .site-logo img { width: 90px; }
	.is-scrolled .site-header .menu-toggle { width: 40px; height: 40px; }
	.is-scrolled .menu-toggle__bar { top: 18px; left: 9px; }
	.is-scrolled .menu-toggle__bar::before, .is-scrolled .menu-toggle__bar::after { left: 0; }
	.global-nav { max-height: 70vh; overflow-y: auto; }
}

/* 電話番号: マウス操作のPCではリンクとして見せない（スマホ・タブレットなどタッチ端末のみタップで発信） */
@media (hover: hover) and (pointer: fine) {
	a[href^="tel:"] {
		pointer-events: none;
		cursor: default;
		text-decoration: none;
	}
}

/* フッター: 各教室の案内 */
.footer-rooms {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 1.25rem;
}
.footer-room {
	flex: 1 1 0;
	max-width: 26rem;
	padding: 0.875rem 1.25rem;
	background: #fff3f6;
	border-radius: 0.625rem;
	text-align: center;
}
.footer-room__name { display: block; color: #333; font-size: 0.9375rem; font-weight: 700; text-decoration: none; }
.footer-room__name:hover { color: var(--color-pink); text-decoration: underline; }
.footer-room__addr { margin: 0.125rem 0; color: #545454; font-size: 0.75rem; line-height: 1.6; }
.footer-room__tel { display: block; color: var(--color-pink); font-size: 1.5rem; font-weight: 700; line-height: 1.4; text-decoration: none; }
.footer-room__tel small { font-size: 0.55em; }
@media (max-width: 767px) {
	.footer-rooms { flex-direction: column; align-items: stretch; gap: 0.5rem; }
	.footer-room { max-width: none; }
	.footer-room__tel { font-size: 1.375rem; }
}

@media (max-width: 767px) {
	.is-scrolled .site-header__inner { padding-top: 0.7rem; padding-bottom: 0.7rem; }
}

/* ===== ドロップダウンメニュー（PC） ===== */
.global-nav__list > li { position: relative; }
.global-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 300;
	min-width: 14rem;
	margin: 0;
	padding: 0.5rem 0;
	background: #fff;
	border-radius: 0.5rem;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.global-nav__list > li:hover > .sub-menu,
.global-nav__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.global-nav__list .sub-menu a {
	display: block;
	padding: 0.5rem 1.25rem;
	font-size: 0.9375rem;
	text-align: left;
	letter-spacing: 0.05em;
	white-space: nowrap;
}
.global-nav__list .sub-menu a:hover { background: #fff3f6; }
.global-nav__list > .menu-item-has-children > a { position: relative; padding-right: 1.1em; }
.global-nav__list > .menu-item-has-children > a::after {
	content: "";
	position: absolute;
	top: 0.7em;
	right: 0.1em;
	width: 0.4em; height: 0.4em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

/* お問い合わせ（目立たせる） */
.global-nav__list .menu-cta > a {
	padding: 0.5rem 1.75rem;
	background: var(--color-pink);
	border-radius: 2rem;
	color: #fff;
	box-shadow: none;
}
.global-nav__list .menu-cta > a .gnav__en { color: rgba(255, 255, 255, .85); }
.global-nav__list .menu-cta > a:hover { color: #fff; opacity: .85; }
.is-scrolled .global-nav__list .menu-cta > a { padding: 0.25rem 1.25rem; }

/* スマホ: サブメニューは常に展開して字下げ表示 */
@media (max-width: 767px) {
	.global-nav__list .sub-menu {
		position: static;
		min-width: 0;
		padding: 0;
		background: #f7f7f7;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.global-nav__list .sub-menu a { padding: 12px 20px 12px 36px; font-size: 0.9375rem; }
	.global-nav__list > .menu-item-has-children > a::after { display: none; }
	.global-nav__list .menu-cta > a { margin: 12px 20px; border-radius: 2rem; text-align: center; }
	.global-nav__list a { text-align: left; }
	.global-nav__list .gnav__en { display: inline; margin-left: 0.5rem; }
}

/* メニューのピンクの下線は表示しない（ホバー時・現在ページとも。色の変化だけで示す） */
.global-nav__list a,
.global-nav__list a:hover,
.global-nav__list a:focus,
.global-nav__list .current-menu-item > a,
.global-nav__list .current-menu-ancestor > a,
.global-nav__list a[aria-current="page"] {
	text-decoration: none;
	box-shadow: none;
}

/* スマホ: スクロール後のロゴは、ハンバーガーボタン(40px)と同じ高さに */
@media (max-width: 767px) {
	.is-scrolled .site-logo img { width: auto; height: 40px; }
}

/* チャットボットのバナーを、ページ先頭へ戻るボタンの上にずらして重ならないようにする */
#lampchat-launcher { bottom: 4.75rem !important; }
@media (max-width: 767px) {
	#lampchat-launcher { bottom: 4.5rem !important; }
}
