/* =========================================================
   BaytownEnglish theme styles
   Color tokens mirror theme.json's palette (kept as literal
   hex here for simplicity; update both files together).
   ========================================================= */

:root {
	--bt-ivory: #FAF7F1;
	--bt-ink: #3B2A22;
	--bt-coral: #E2673F;
	--bt-coral-dark: #C9562F;
	--bt-green-soft: #E4ECE2;
	--bt-green-text: #3F5B47;
	--bt-line-green: #06C755;
	--bt-muted: #887870;
	--bt-border: #ECE6DC;
	--bt-white: #FFFFFF;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bt-ivory);
	font-family: 'Noto Sans JP', system-ui, sans-serif;
	color: var(--bt-ink);
}

a { color: inherit; text-decoration: none; }

p, li, h1, h2, h3, span, button, a, td, th { text-wrap: pretty; }

.bt-container {
	max-width: 640px;
	width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 0 20px;
}

.bt-section { padding: 12px 0 56px; }
.bt-section__title {
	font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
	font-size: 26px;
	font-weight: 900;
	text-align: center;
	margin: 0 0 10px;
	color: var(--bt-ink);
	word-break: keep-all;
	overflow-wrap: anywhere;
}
.bt-section__intro { font-size: 13.5px; line-height: 1.85; color: #54463F; margin: -8px 0 24px; }
.bt-section__subtitle {
	font-size: 13.5px;
	color: var(--bt-muted);
	text-align: center;
	margin: 0 0 24px;
}

.bt-eyebrow, .bt-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--bt-green-soft);
	color: var(--bt-green-text);
	font-size: 12px;
	font-weight: 600;
	padding: 7px 14px;
	border-radius: 999px;
}

.bt-card {
	background: var(--bt-white);
	border-radius: 22px;
	padding: 24px 20px;
	box-shadow: 0 8px 28px rgba(59,42,34,0.08);
	margin-bottom: 20px;
}

.bt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 700;
	font-size: 15px;
	padding: 15px 20px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	font-family: inherit;
	width: 100%;
}
.bt-btn--primary {
	background: var(--bt-coral);
	color: var(--bt-white);
	box-shadow: 0 10px 24px rgba(226,103,63,0.24);
}
.bt-btn--outline {
	background: none;
	border: 1.5px solid var(--bt-ink);
	color: var(--bt-ink);
}
.bt-btn--ghost {
	background: none;
	border: 1.5px solid var(--bt-border);
	color: var(--bt-ink);
	font-size: 13.5px;
	padding: 11px;
}

/* ---------- Header ---------- */
.bt-site-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	max-width: 640px;
	width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	position: relative;
}
.bt-menu-trigger {
	order: 1;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1.5px solid var(--bt-ink);
	background: var(--bt-ivory);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0;
	cursor: pointer;
}
.bt-nav-desktop { order: 1; display: none; gap: 26px; flex: 1; align-items: center; }
.bt-nav-desktop a { font-size: 14px; font-weight: 600; color: var(--bt-ink); }
.bt-nav-desktop a:hover { color: var(--bt-coral); }
.bt-logo {
	order: 2;
	flex: 1;
	text-align: center;
	font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--bt-ink);
}
.bt-phone-link {
	order: 3;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1.5px solid var(--bt-line-green);
	background: var(--bt-line-green);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-shrink: 0;
	color: #fff;
}
.bt-phone-text { display: none; }
.bt-mobile-menu-panel {
	position: absolute;
	top: 100%;
	left: 16px;
	right: 16px;
	background: var(--bt-white);
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(59,42,34,0.16);
	padding: 8px;
	z-index: 20;
}
.bt-mobile-menu-panel[hidden] { display: none; }
.bt-mobile-menu-panel a {
	display: block;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--bt-ink);
	border-radius: 10px;
}
.bt-mobile-menu-panel a:hover { background: var(--bt-ivory); }

@media (min-width: 860px) {
	.bt-site-header__inner { max-width: 860px; }
	.bt-menu-trigger { display: none; }
	.bt-nav-desktop { display: flex; order: 2; justify-content: center; }
	.bt-logo { order: 1; flex: 0 0 auto; text-align: left; }
	.bt-phone-link { order: 3; width: auto; padding: 10px 18px; border-radius: 999px; }
	.bt-phone-text { display: inline; font-size: 14px; font-weight: 600; color: inherit; }
	.bt-mobile-menu-panel { display: none !important; }
}

/* ---------- Hero ---------- */
.bt-hero { padding-top: 8px; }
.bt-hero .bt-eyebrow { display: flex; width: fit-content; margin: 0 auto 12px; }
.bt-hero__title .bt-eyebrow { font-family: 'Noto Sans JP', system-ui, sans-serif; line-height: normal; }
.bt-hero__title {
	font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
	font-size: 34px;
	line-height: 1.35;
	font-weight: 900;
	text-align: center;
	word-break: keep-all;
	margin: 0 0 14px;
	color: var(--bt-ink);
}
.bt-hero__lead { font-size: 15px; line-height: 1.8; color: #54463F; text-align: center; margin: 0 0 22px; }
.bt-hero__photo-wrap { position: relative; margin-bottom: 24px; }
.bt-hero__photo { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; object-position: center 35%; border-radius: 22px; display: block; }
.bt-hero__badge {
	position: absolute;
	left: 14px;
	bottom: -14px;
	background: var(--bt-white);
	border-radius: 14px;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 6px 20px rgba(59,42,34,0.12);
	font-size: 12px;
	font-weight: 600;
}
.bt-hero__cta { margin-top: 22px; }
.bt-hero__note { text-align: center; font-size: 12.5px; color: var(--bt-muted); margin: 12px 0 0; }

/* ---------- Pricing ---------- */
.bt-pricing-card .bt-pill { display: flex; width: fit-content; margin: 0 auto 12px; font-size: 14px; padding: 8px 18px; }
.bt-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.bt-price__amount { font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; font-size: 16px; font-weight: 400; }
.bt-price__unit { font-size: 15px; font-weight: 600; color: var(--bt-muted); }
.bt-price__detail { margin: 0 0 20px; font-size: 13px; font-weight: 700; color: var(--bt-muted); }
.bt-hr { border: none; height: 1px; background: var(--bt-border); margin: 0 0 18px; }
.bt-check-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bt-check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.bt-check-list svg { flex-shrink: 0; margin-top: 1px; }
.bt-fineprint { margin: 0 0 22px; font-size: 12px; line-height: 1.7; color: #9C8E86; }
.bt-location-card__heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.bt-location-card p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.8; color: #54463F; }

/* ---------- Curriculum ---------- */
.bt-curriculum__heading { font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; font-size: 20px; font-weight: 900; text-align: center; color: var(--bt-ink); margin: 32px 0 14px; }
.bt-curriculum__photo { width: 100%; height: auto; aspect-ratio: 4/3; object-position: center 40%; object-fit: cover; border-radius: 16px; display: block; margin-bottom: 20px; }
.bt-icon-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.bt-icon-list li { display: flex; align-items: flex-start; gap: 12px; }
.bt-icon-list__icon {
	width: 30px; height: 30px; border-radius: 999px; background: var(--bt-green-soft);
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bt-icon-list p { margin: 0; font-size: 13.5px; line-height: 1.8; color: #54463F; }

/* ---------- Curriculum: why custom lessons ---------- */
.bt-why { margin: 4px 0 24px; }
.bt-why__lead {
	font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
	font-weight: 900; font-size: 20px; line-height: 1.5;
	text-align: center; margin: 0 0 10px; color: var(--bt-ink);
}
.bt-why__lead em { font-style: normal; color: var(--bt-coral); }
.bt-why__sub { font-size: 13.5px; line-height: 1.85; color: #54463F; text-align: center; margin: 0 0 18px; }
.bt-why__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.bt-why__list li {
	background: var(--bt-white); border-radius: 18px; padding: 14px 16px;
	display: flex; gap: 12px; align-items: flex-start;
	box-shadow: 0 6px 20px rgba(59,42,34,0.06);
}
.bt-why__tag {
	flex-shrink: 0; background: var(--bt-green-soft); color: var(--bt-green-text);
	font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; margin-top: 1px;
	min-width: 6.2em; text-align: center;
}
.bt-why__list p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #54463F; }
.bt-why__close { font-size: 14px; font-weight: 700; text-align: center; line-height: 1.7; margin: 0; }

/* ---------- Voices ---------- */
.bt-voices-track {
	display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
	padding: 4px 20px 10px; -webkit-overflow-scrolling: touch;
}
.bt-voice-card {
	scroll-snap-align: start; flex: 0 0 82%; max-width: 320px;
	background: var(--bt-white); border-radius: 20px; padding: 22px;
	box-shadow: 0 8px 28px rgba(59,42,34,0.08); box-sizing: border-box;
}
.bt-voice-card p { margin: 0; font-size: 13.5px; line-height: 1.85; color: #54463F; }
.bt-voice-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bt-voice-card__photo { width: 52px; height: 52px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.bt-voice-card__name { font-size: 14.5px; font-weight: 700; }
.bt-voice-card__meta { font-size: 12px; color: var(--bt-muted); margin-top: 2px; }
@media (min-width: 640px) { .bt-voice-card { flex-basis: 340px; } }

/* ---------- Bio ---------- */
.bt-bio__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.bt-bio__photo { width: 74px; height: 74px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.bt-bio__name { font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; font-size: 17px; font-weight: 700; }
.bt-bio__origin { font-size: 12.5px; color: var(--bt-muted); margin-top: 2px; }
.bt-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.bt-badge { display: inline-flex; align-items: center; gap: 5px; background: #F3EEE3; color: #6B5A50; font-size: 11.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.bt-card p { font-size: 13.5px; line-height: 1.85; color: #54463F; margin: 0 0 14px; }

/* ---------- FAQ ---------- */
.bt-faq { padding: 6px 16px; }
.bt-faq__item { border-bottom: 1px solid var(--bt-border); }
.bt-faq__item:last-child { border-bottom: none; }
.bt-faq__q {
	width: 100%; text-align: left; background: none; border: none; padding: 16px 4px;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	font-size: 14px; font-weight: 600; color: var(--bt-ink); font-family: inherit; cursor: pointer;
}
.bt-faq__q svg { flex-shrink: 0; transition: transform 0.15s; }
.bt-faq__q.is-open svg { transform: rotate(180deg); }
.bt-faq__a { padding: 0 4px 16px; font-size: 13.5px; line-height: 1.8; color: #54463F; }
.bt-faq__a[hidden] { display: none; }

/* ---------- Footer ---------- */
.bt-footer { background: var(--bt-ink); padding: 40px 20px 100px; }
.bt-footer__inner { max-width: 640px; width: 100%; box-sizing: border-box; margin: 0 auto; text-align: center; }
.bt-footer__logo { font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; font-size: 16px; font-weight: 700; color: var(--bt-white); margin-bottom: 6px; }
.bt-footer__area { margin: 0 0 24px; font-size: 12.5px; color: #B8A99F; }
.bt-footer__links { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-bottom: 28px; }
.bt-footer__links { font-style: normal; text-align: center; }
.bt-footer__links a, .bt-footer__links span { font-size: 13px; color: #DDD2C9; }
.bt-footer__divider { height: 1px; background: #54423A; margin: 0 0 20px; }
.bt-footer__legal { display: flex; justify-content: center; gap: 20px; margin-bottom: 18px; }
.bt-footer__legal a { font-size: 12px; color: #B8A99F; text-decoration: underline; }
.bt-footer__copyright { margin: 0; font-size: 11.5px; color: #8C7B71; }

/* ---------- Persistent contact bar (site-wide, injected via wp_footer) ---------- */
.bt-contact-bar {
	position: fixed; left: 0; right: 0; bottom: 0; background: var(--bt-white);
	border-top: 1px solid var(--bt-border); box-shadow: 0 -4px 20px rgba(59,42,34,0.06);
	padding: 10px 0 max(10px, env(safe-area-inset-bottom));
	z-index: 100;
}
.bt-contact-bar__inner { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.bt-contact-bar__item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; font-size: 11px; font-weight: 600; }
.bt-contact-bar__item--line { color: var(--bt-line-green); }
.bt-contact-bar__item--book { color: var(--bt-coral); border-left: 1px solid var(--bt-border); font-weight: 700; }
.bt-contact-bar__item--phone { color: var(--bt-ink); }

/* Keep page content from hiding behind the fixed contact bar. */
.bt-main { padding-bottom: 0; }
.bt-footer { padding-bottom: 100px; }

/* ---------- Book (trial lesson contact) ---------- */
.bt-book__actions { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto; }
.bt-book__actions .bt-btn { width: 100%; white-space: nowrap; }
@media (min-width: 640px) {
	.bt-book__actions { flex-direction: row; justify-content: center; max-width: none; }
	.bt-book__actions .bt-btn { width: auto; padding-left: 28px; padding-right: 28px; }
}

/* ---------- Legal page (tokushoho) ---------- */
.bt-legal { padding: 8px 0 56px; }
.bt-legal__table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.bt-legal__table th, .bt-legal__table td {
	text-align: left; padding: 14px 4px; font-size: 13.5px; line-height: 1.8;
	border-bottom: 1px solid var(--bt-border); vertical-align: top;
}
.bt-legal__table th { width: 34%; font-weight: 700; color: var(--bt-ink); word-break: keep-all; }
.bt-legal__table td { color: #54463F; overflow-wrap: anywhere; }
.bt-legal__back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--bt-ink); margin-bottom: 18px; }

/* Line breaks that only apply on wider screens */
.bt-br-wide { display: none; }
@media (min-width: 640px) { .bt-br-wide { display: inline; } }

/* Curriculum list: let lines run full width on larger screens */
@media (min-width: 640px) { .bt-icon-list p { text-wrap: wrap; } }

/* Japanese text that wraps only between phrases (break points marked with <wbr>) */
.bt-phrase { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- Testimonial "read full" + popup ---------- */
.bt-voice-card { display: flex; flex-direction: column; }
.bt-voice-card__more {
	margin-top: auto; align-self: flex-start;
	display: inline-flex; align-items: center; gap: 6px;
	background: none; border: none; padding: 14px 0 0; cursor: pointer;
	font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--bt-coral);
}
.bt-voice-card__more:hover { text-decoration: underline; }
.bt-voice-dialog {
	width: min(560px, calc(100vw - 32px)); max-height: 85vh; box-sizing: border-box;
	border: none; border-radius: 20px; padding: 26px 22px 22px;
	background: var(--bt-white); color: var(--bt-ink);
	box-shadow: 0 20px 60px rgba(59,42,34,0.25);
}
.bt-voice-dialog::backdrop { background: rgba(59,42,34,0.55); }
.bt-voice-dialog__close {
	position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	background: var(--bt-ivory); border: none; border-radius: 999px; cursor: pointer; color: var(--bt-ink);
}
.bt-voice-dialog .bt-voice-card__head { padding-right: 40px; }
.bt-voice-dialog__body p { margin: 0 0 14px; font-size: 14px; line-height: 1.9; color: #54463F; }
.bt-voice-dialog__body p:last-child { margin-bottom: 0; }
.bt-voice-dialog__update {
	background: var(--bt-green-soft); color: var(--bt-green-text) !important;
	font-weight: 700; border-radius: 12px; padding: 10px 14px;
}
html.bt-dialog-open { overflow: hidden; }

/* ---------- Spacing balance (audit 2026-10-16) ---------- */
/* Even gaps between sections: the last card in a section adds no extra space. */
.bt-section > .bt-container > .bt-card:last-child { margin-bottom: 0; }
/* Breathing room when a card follows a section title directly. */
.bt-section__title + .bt-card { margin-top: 22px; }
/* Even spacing between icon-list items and inside the card bottom. */
.bt-card .bt-icon-list p { margin: 0; }

/* Intro paragraph under クラスと料金: centered to match the title and subtitle. */
.bt-section__intro { text-align: center; text-wrap: balance; max-width: 600px; margin-left: auto; margin-right: auto; }
/* Booking buttons: equal width on desktop. */
@media (min-width: 640px) { .bt-book__actions .bt-btn { width: 240px; } }

/* Curriculum heading group: a little more air between title, lead and paragraph; even paragraph lines. */
.bt-why { margin-top: 16px; }
.bt-why__lead { margin-bottom: 14px; }
.bt-why__sub { text-wrap: balance; }

/* Quiet note at the bottom of a card (e.g. adult card: non-business learners welcome). */
.bt-card .bt-card-note { margin: 22px 0 0; padding-top: 16px; border-top: 1px dashed var(--bt-border); text-align: center; font-size: 12.5px; line-height: 1.8; color: var(--bt-muted); }

/* Profile closing line: gently emphasized selling point. */
.bt-card .bt-bio__closing { margin: 22px 0 0; text-align: center; font-size: 15px; font-weight: 600; line-height: 1.8; color: var(--bt-ink); }

/* Title divider "｜": hidden on phones, where the title breaks onto two lines instead. */
@media (max-width: 639px) { .bt-title-sep { display: none; } }

/* Slightly tighter gap between the hero and the first section. */
.bt-section.bt-hero { padding-bottom: 36px; }

/* =========================================================
   DESIGN REVIEW 2026-10-18 (Apple HIG / accessibility pass)
   Everything below is an override block. To undo all of it,
   delete from this comment to the end of the file, or restore
   Backups/style.backup-2026-10-18-review.css.
   ========================================================= */

/* 1. Contrast: muted gray now passes 4.5:1 (5.65:1 on ivory, 6.04:1 on white). */
:root { --bt-muted: #6E6058; }

/* 2. Contrast: fee fine print 3.17:1 -> 6.04:1, and a little larger. */
.bt-fineprint { color: #6E6058; font-size: 13px; }

/* 3. Contrast: LINE label in the bottom bar 2.26:1 -> ink 12.8:1; icon darker green 3.38:1. */
.bt-contact-bar__item--line { color: var(--bt-ink); }
.bt-contact-bar__item--line svg { color: #06A14A; }
.bt-phone-link { background: #06A14A; border-color: #06A14A; }

/* 4. Footer copyright 3.37:1 -> 4.96:1. */
.bt-footer__copyright { color: #A9998F; }

/* 5. Readable body text: 13.5px -> 15px; small labels up a step. */
.bt-card p, .bt-icon-list p, .bt-why__list p, .bt-why__sub, .bt-faq__a,
.bt-voice-card p, .bt-section__intro, .bt-location-card p { font-size: 15px; }
.bt-faq__q { font-size: 15px; }
.bt-section__subtitle { font-size: 14px; }
.bt-hero__note { font-size: 13px; }
.bt-card .bt-card-note { font-size: 13.5px; }
.bt-voice-card__meta, .bt-bio__origin { font-size: 12.5px; }
.bt-badge { font-size: 12px; }
.bt-legal__table th, .bt-legal__table td { font-size: 14.5px; }
.bt-contact-bar__item { font-size: 12px; }

/* 6. Price hierarchy: the amount reads slightly stronger than its unit and details (22px bold). */
.bt-price__amount { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--bt-ink); }

/* 7. Accent restraint: coral only for primary actions and emphasis; icons go green. */
.bt-check-list svg, .bt-faq__q svg, .bt-hero__badge svg { stroke: var(--bt-green-text); }

/* 8. Tap targets toward 44pt. */
.bt-menu-trigger, .bt-phone-link { width: 44px; height: 44px; }
.bt-voice-card__more { padding: 14px 0 6px; min-height: 44px; }
.bt-voice-dialog__close { width: 44px; height: 44px; top: 8px; right: 8px; }
.bt-footer__links a, .bt-footer__legal a { display: inline-block; padding: 12px 8px; margin: -12px 0; }

/* 9. Desktop: testimonials as a 2x2 grid inside the column; no swipe hint;
      the header already has LINE, so the fixed bottom bar is phone/tablet only. */
@media (min-width: 860px) {
	.bt-phone-link { width: auto; height: auto; min-height: 44px; }
	.bt-voices-track {
		display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
		overflow: visible; max-width: 640px; margin: 0 auto; padding: 4px 20px 10px;
	}
	.bt-voice-card { max-width: none; }
	#voices .bt-section__subtitle { display: none; }
	.bt-contact-bar { display: none; }
	.bt-footer { padding-bottom: 40px; }
}
