/*
Theme Name: eXs Junior
Theme URI: https://exsjunior.jp/
Author: EdTechX
Description: 個別英語教室エックス・ジュニアのオリジナルWordPressテーマです。
Version: 1.13.30
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: exsjunior-theme
*/

/* Shared CTA/text-link chevrons use a real glyph so no page-specific icon font is required. */
.home-cta-block__arrow,
.home-text-link__arrow { flex: 0 0 auto; margin-left: .3em; font-family: inherit; font-size: 1.7em; font-weight: 400; line-height: .8; }

/*
 * Theme styles will be added here.
 */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	margin: 0;
	clip: auto;
	background: #fff;
	color: #000;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: #222; font-family: "新ゴ R", "Shin Go Regular", "A-OTF 新ゴ Pro R", "A-OTF Shin Go Pro R", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; line-break: strict; }
.site-header__contact-arrow { font-family: "Material Symbols Outlined"; font-size: 20px; font-weight: 500; line-height: 1; }
img { max-width: 100%; height: auto; }
a, button { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid rgba(251,116,54,.55); outline-offset: 3px; }
.home-container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,244,216,.5); border-bottom: 0; backdrop-filter: blur(8px); }
.site-header__inner { width: min(1280px, calc(100% - 80px)); height: 100px; min-height: 100px; margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.site-header__logo { display: block; width: 180px; }
.site-header__logo img { display: block; width: 100%; height: auto; }
.global-navigation { align-self: stretch; display: flex; align-items: center; margin-left: auto; }
.global-navigation__scroll { display: flex; align-items: center; height: 100%; }
.global-navigation__home { flex: 0 0 auto; }
.global-navigation__list, .footer-navigation__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.global-navigation__list { height: 100%; flex-wrap: nowrap; }
.global-navigation a { display: block; padding: 4px 12px; color: rgb(34, 34, 34); font-family: "Noto Sans JP", sans-serif; font-size: 15px; font-weight: 400; line-height: 26px; text-decoration: none; white-space: nowrap; }
.global-navigation a:hover, .global-navigation a:focus { color: #fb7436; }
.global-navigation li { position: relative; }
.global-navigation__list > li { display: flex; align-items: center; height: 100%; }
.global-navigation .menu-item-has-children > a { display: flex; align-items: center; gap: 4px; }
.global-navigation .menu-item-has-children > a::after { width: 7px; height: 7px; border-right: 2px solid #ff7434; border-bottom: 2px solid #ff7434; content: ""; transform: rotate(45deg) translateY(-2px); }
.global-navigation .sub-menu { position: absolute; top: calc(100% + 6px); left: 50%; z-index: 10; width: max-content; min-width: 220px; margin: 0; padding: 20px; visibility: hidden; opacity: 0; list-style: none; border-radius: 12px; background: #fff4d8; box-shadow: 0 12px 28px rgba(62,53,47,.16); transform: translate(-50%, 8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.global-navigation .sub-menu::before { display: block; padding: 0 10px 12px; border-bottom: 1px solid rgba(34,34,34,.18); color: #222; content: "教室一覧"; font-size: 1rem; font-weight: 700; }
.global-navigation .sub-menu::after { position: absolute; right: 0; bottom: 100%; left: 0; height: 6px; content: ""; }
.global-navigation .sub-menu li + li { border-top: 1px solid rgba(34,34,34,.18); }
.global-navigation .sub-menu a { padding: 12px 10px; border-radius: 0; color: #222; font-size: .9375rem; }
.global-navigation .sub-menu a:hover, .global-navigation .sub-menu a:focus { background: transparent; color: #fb7436; }
.global-navigation .menu-item-has-children:hover > .sub-menu, .global-navigation .menu-item-has-children:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.site-header__contact { display: flex; flex-shrink: 0; width: 188.5px; min-width: 188.5px; align-items: center; justify-content: center; gap: 3px; padding: 12px 32px; border-radius: 999px; background: #fb7436; box-shadow: 0 0 2px rgba(143,120,61,.4); color: #fff; text-align: center; text-decoration: none; font-size: .9375rem; font-weight: 600; }
.global-navigation .global-navigation__contact { display: none; }
.site-header__menu-toggle { display: none; }
.site-footer { padding: 64px 40px 24px; background: #bf9d79; color: #fff; }
.site-footer__inner { width: min(1280px, 100%); margin-inline: auto; }
.site-footer__logo { display: block; width: 360px; max-width: 100%; margin-inline: auto; }
.site-footer__logo img { display: block; width: 100%; height: auto; }
.site-footer__copyright { margin: 64px 0 0; padding-top: 24px; border-top: 1px solid #e6e6e6; font-size: .75rem; text-align: center; }
@media (max-width: 1199px) {
	.site-header__inner { width: min(1280px, calc(100% - 40px)); height: 100px; min-height: 100px; }
	.site-header__logo { width: 150px; }
	.site-header__branding { order: 1; }
	.site-header__contact { order: 2; display: flex; margin-left: auto; }
	.site-header__menu-toggle { order: 3; display: grid; flex: 0 0 48px; width: 48px; height: 48px; margin-left: 0; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #fb7436; box-shadow: 0 2px 8px rgba(62,53,47,.12); }
	.site-header.is-contact-collapsed .site-header__contact { display: none; }
	.site-header.is-contact-collapsed .site-header__menu-toggle { margin-left: auto; }
	.site-header__menu-icon, .site-header__menu-icon::before, .site-header__menu-icon::after { display: block; width: 24px; height: 2px; background: #fff; content: ""; transition: .2s ease; }
	.site-header__menu-icon { position: relative; }
	.site-header__menu-icon::before { position: absolute; top: -8px; }
	.site-header__menu-icon::after { position: absolute; top: 8px; }
	.is-menu-open .site-header__menu-icon { background: transparent; }
	.is-menu-open .site-header__menu-icon::before { top: 0; transform: rotate(45deg); }
	.is-menu-open .site-header__menu-icon::after { top: 0; transform: rotate(-45deg); }
	.global-navigation { position: absolute; top: 100%; left: 0; display: flex; width: 100%; max-height: 0; overflow: hidden; flex-direction: column; align-items: stretch; background: #fff4d8; transition: max-height .3s ease; }
	.global-navigation__scroll { display: block; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
	.global-navigation__home { display: block; margin: 16px 20px 0; padding: 14px 4px; border-bottom: 1px solid rgba(34,34,34,.14); }
	.is-menu-open .global-navigation { max-height: calc(100dvh - 100px); border-top: 1px solid #eee; box-shadow: 0 12px 24px rgba(62,53,47,.12); }
	.global-navigation__list { display: block; height: auto; padding: 16px 20px 28px; }
	.global-navigation li { border-bottom: 1px solid rgba(34,34,34,.14); }
	.global-navigation__list > li { display: block; height: auto; }
	.global-navigation a { display: block; padding: 14px 4px; color: #222; font-family: "Noto Sans JP", sans-serif; font-size: 18px; font-weight: 700; line-height: 28px; }
	.global-navigation .menu-item-has-children > a { display: flex; align-items: center; justify-content: space-between; }
	.global-navigation .menu-item-has-children > a::after { flex: 0 0 auto; margin-right: 5px; transition: transform .2s ease; }
	.global-navigation .menu-item-has-children.is-submenu-open > a::after { transform: rotate(225deg) translate(-2px, -2px); }
	.global-navigation .sub-menu { position: static; top: auto; right: auto; bottom: auto; left: auto; display: none; width: 100%; min-width: 0; margin: 0; padding: 0 0 8px 16px; visibility: visible; opacity: 1; border-radius: 0; background: transparent; box-shadow: none; transform: none; transition: none; }
	.global-navigation .menu-item-has-children.is-submenu-open > .sub-menu { display: block; }
	.global-navigation .menu-item-has-children:hover > .sub-menu,
	.global-navigation .menu-item-has-children:focus-within > .sub-menu,
	.global-navigation .menu-item-has-children.is-submenu-open > .sub-menu { transform: none; }
	.global-navigation .sub-menu::before, .global-navigation .sub-menu::after { display: none; }
	.global-navigation .sub-menu li { border-bottom: 0; }
	.global-navigation .sub-menu li + li { border-top: 0; }
	.global-navigation .sub-menu a { padding: 8px 4px; color: #222; font-size: 16px; font-weight: 500; line-height: 25.6px; }
	.global-navigation .global-navigation__contact { display: none; }
	.site-header.is-contact-collapsed .global-navigation .global-navigation__contact { display: flex; flex: 0 0 auto; width: calc(100% - 40px); align-items: center; justify-content: center; gap: 6px; margin: 12px 20px max(20px, env(safe-area-inset-bottom)); padding: 14px 24px; border-radius: 999px; background: #fb7436; box-shadow: 0 -10px 22px rgba(255,244,216,.96); color: #fff; font-weight: 600; }
	.global-navigation .global-navigation__contact:hover, .global-navigation .global-navigation__contact:focus { color: #fff; }
}

@media (max-width: 767px) {
	.site-footer { padding: 48px 20px 20px; }
	.site-footer__logo { width: min(250px, 78vw); }
	.site-footer__copyright { margin-top: 48px; padding-top: 20px; }
}

/* Shared "EN label above a JP heading" marker (FAQ / CONTACT / STAFF / BLOG / School).
   Removed from the TOP page per LIVE-PARITY-TASKS T16, but production still shows
   it on every other page, so it lives here rather than in front-page.css. */
.home-section__label { margin: 0 0 8px; color: rgb(248, 196, 105); font-family: "Rubik Mono One", sans-serif; font-size: 64px; font-weight: 400; letter-spacing: 0; line-height: 90px; text-align: center; text-transform: uppercase; }

.floating-cta { display: none; }

body.is-trial-modal-open { position: fixed; right: 0; left: 0; width: 100%; overflow: hidden; }
.trial-school-modal[hidden] { display: none; }
.trial-school-modal { position: fixed; z-index: 3000; inset: 0; display: grid; padding: 24px; place-items: center; }
.trial-school-modal__backdrop { position: absolute; inset: 0; background: rgba(34, 34, 34, .38); }
.trial-school-modal__panel { position: relative; width: min(760px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 88px 80px 72px; border-radius: 28px; background: #fff; box-shadow: 0 18px 36px rgba(34, 34, 34, .24); color: #333; font-family: sans-serif; font-weight: 400; }
.trial-school-modal__view[hidden] { display: none !important; }
.trial-school-modal__panel h2 { margin: 0 0 48px; color: #26a69a; font-family: sans-serif; font-size: 1.875rem; font-weight: 400; line-height: 1.4; text-align: center; }
.trial-school-modal__close { position: absolute; top: 30px; right: 38px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #f46618; cursor: pointer; font-size: 44px; font-weight: 300; line-height: 1; }
.trial-school-modal__schools { display: grid; gap: 28px; }
.trial-school-modal__schools a { display: flex; min-height: 112px; align-items: center; justify-content: center; padding: 18px 24px; border-radius: 22px; background: #f7f7f7; color: #333; font-family: "Noto Sans JP", sans-serif; font-size: 20px; font-weight: 600; line-height: 28px; text-align: center; text-decoration: none; transition: background .2s ease, color .2s ease; }
.trial-school-modal__schools a:hover { background: #edf8f7; color: #168f86; }
.trial-school-modal__booking { width: 100%; }
.trial-school-modal__booking iframe { display: block; width: 100%; height: min(900px, calc(100dvh - 120px)); border: 0; border-radius: 18px; background: #fff; }
.trial-school-modal.is-booking .trial-school-modal__panel { width: min(840px, 100%); padding: 80px 16px 16px; border-radius: 0; background: #fff0d2; }
.trial-school-modal.is-booking .trial-school-modal__close { top: 24px; right: 26px; }

@media (min-width: 901px) and (max-width: 1399px) {
	.site-header__inner { width: min(1280px, calc(100% - 48px)); height: 100px; min-height: 100px; gap: 16px; }
	.site-header__logo { width: 180px; }
	.global-navigation a { padding-inline: 9px; font-size: .82rem; }
}

@media (min-width: 901px) {
	.site-footer { padding: 54px 40px 18px; }
	.site-footer__logo { width: 260px; }
	.site-footer__copyright { margin-top: 42px; padding-top: 18px; }
}

@media (max-width: 767px) {
	.trial-school-modal { padding: 18px; }
	.trial-school-modal__panel { width: 100%; max-height: calc(100dvh - 36px); padding: 68px 30px 30px; border-radius: 18px; }
	.trial-school-modal__panel h2 { margin-bottom: 28px; font-size: 19px; line-height: 1.35; }
	.trial-school-modal__close { top: 22px; right: 24px; width: 30px; height: 30px; font-size: 34px; }
	.trial-school-modal__schools { gap: 16px; }
	.trial-school-modal__schools a { min-height: 60px; padding: 12px 16px; border-radius: 12px; font-size: 18px; line-height: 26px; }
	.trial-school-modal.is-booking { padding: 18px; }
	.trial-school-modal.is-booking .trial-school-modal__panel { height: calc(100dvh - 36px); max-height: calc(100dvh - 36px); overflow-y: hidden; padding: 58px 10px 10px; }
	.trial-school-modal.is-booking .trial-school-modal__close { top: 16px; right: 18px; }
	.trial-school-modal__booking { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
	.trial-school-modal__booking iframe { height: max(900px, calc(100dvh - 104px)); border-radius: 12px; }
	.home-section__label { font-size: 46px; line-height: 64px; }
	body { padding-bottom: 98px; }
	.floating-cta { position: fixed; right: 0; bottom: 0; left: 0; z-index: 200; display: flex; gap: 16px; padding: 16px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: transparent; box-shadow: none; }
	.floating-cta__contact, .floating-cta__trial { display: flex; min-width: 0; min-height: 64px; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 999px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 800; line-height: 1.35; text-align: center; }
	.floating-cta__contact { flex-direction: row; gap: 8px; background: #fb7436; }
	.floating-cta__trial { background: #26a69a; }
	.floating-cta__icon { font-family: "Material Symbols Outlined"; font-size: 24px; font-weight: 400; line-height: 1; }
	.floating-cta__note { display: block; margin-bottom: 1px; font-size: 11px; font-weight: 700; line-height: 1.2; }
}
