/* =========================
   Reset
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   Base
   ========================= */
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.3;
  text-align: center;
}

/* =========================
   Layout
   ========================= */
header,
main,
footer {
  max-width: 860px;
  margin: 0 auto;
}

header {
  padding: 24px 20px 0;
}

main {
  padding: 0 20px 24px;
}

/* extra bottom space for iPhone Safari gesture zone */
footer {
  padding: 12px 20px calc(32px + 56px + env(safe-area-inset-bottom));
}

section {
  padding: 24px 0;
}

section:first-of-type {
  padding-top: 0;
}

/* =========================
   Width helpers
   ========================= */
.page-narrow {
  max-width: 640px;
  margin: 0 auto;
}

.page-wide {
  max-width: 760px;
  margin: 0 auto;
}

/* =========================
   Header
   ========================= */
.logo {
  display: block;
  margin: 0 auto;
}

/* linked-logo safety */
.logo-link {
  display: inline-block;
  text-decoration: none;
}
.logo-link img {
  display: block;
}

/* Unified header rhythm (ALL pages) */
.top-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 9px;
  margin-bottom: 32px;
}

.motto {
  color: #666;
  font-weight: 500;
}

.subhead {
  font-weight: 600;
  font-size: 18px;
}

.prelead {
  font-weight: 600;
}

.prelead-sub {
  font-weight: 500;
  color: #666;
}

/* =========================
   Japanese reassurance layer
   ========================= */
.jp {
  margin: 0.35rem auto 0;
  max-width: 640px;
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.78;
}

.jp.tight {
  margin-top: 0.2rem;
}

/* =========================
   Headings
   ========================= */
h2 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

/* =========================
   Text
   ========================= */
p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

p + p {
  margin-top: 12px;
}

/* =========================
   Notes
   ========================= */
.note {
  color: #666;
  font-weight: 500;
}

/* =========================
   Bullets
   ========================= */
.bullets {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
}

.bullets li {
  margin: 6px 0;
}

.bullets li::before {
  content: "• ";
}

/* =========================
   Profile image (Landing)
   ========================= */
.profile {
  display: block;
  margin: 16px auto 0;
  border-radius: 14px;
}

/* =========================
   Buttons
   ========================= */
.button {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid #111;
  border-radius: 999px;
  text-decoration: none;
  color: #111;
  font-weight: 600;
  margin: 20px 0;
}

.button:hover {
  opacity: 0.85;
}

/* =========================
   Scheduling — Calendly shell
   ========================= */
.page-scheduling .calendly-shell {
  max-width: 760px;
  margin: 0 auto;
}

.page-scheduling .calendly-inline-widget.embed-wrap {
  width: 100%;
  min-width: 320px;
  height: 1030px; /* +10px to prevent inner widget scroll */
}

.page-scheduling .calendly-inline-widget.embed-wrap iframe {
  width: 100% !important;
  height: 1030px !important; /* +10px to match */
  min-height: 1030px !important; /* +10px to match */
  border: 0 !important;
  display: block !important;
}

.page-scheduling section:nth-of-type(2) {
  padding-bottom: 12px;
}

/* =========================
   Monthly — price + button pairs
   ========================= */
.page-continue .price-block {
  margin: 16px 0 14px;
}

.page-continue .price-block .note {
  margin-bottom: 6px;
}

.page-continue .price-block .button {
  margin-top: 0;
  margin-bottom: 6px;
}

.page-continue .note.note-plain {
  margin-top: 12px;
}

.page-continue .note.note-plain + .note.note-plain {
  margin-top: 6px;
}

.page-continue .pay-line + .pay-line {
  margin-top: 6px;
}

.page-continue .pay-line + .jp.tight {
  margin-top: 12px;
}

.page-continue .qa-block h2 {
  margin-bottom: 6px;
}

.page-continue .qa-block h2 + p.note {
  margin-top: 0;
}

.page-continue .qa-block + .qa-block {
  margin-top: 18px;
}

/* =========================
   Terms — block rhythm (EN/JP)
   ========================= */
.page-terms .tblock + .tblock {
  margin-top: 28px;
}

.page-terms .tblock .jp,
.page-terms .qa .jp {
  margin-top: 0;
}

.page-terms .tblock p + p,
.page-terms .tblock p + .note,
.page-terms .tblock .note + .note,
.page-terms .tblock ul + p,
.page-terms .tblock p + ul {
  margin-top: 6px;
}

.page-terms .block-title {
  margin-top: 18px;
}

.page-terms .block-title + ul {
  margin-top: 6px;
}

.page-terms p.jp.block-title {
  margin-top: 12px;
}

.page-terms .jp-head {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
}

/* =========================
   Footer (nav ABOVE name)
   ========================= */
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 9px; /* desktop spacing */
}

.footer-nav .sep {
  margin: 0 8px;
  color: #666;
}

.footer-nav a {
  display: inline-block;       /* tap target */
  padding: 10px 6px;           /* tap target */
  color: #111;
  text-decoration: none;       /* remove underline */
  border-bottom: none;         /* remove gray line */
}

.footer-nav a:hover {
  opacity: 0.8;
}

.footer-name {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-motto {
  margin: 6px 0 16px;
  color: #666;
}

/* Mobile-only: increase space between nav links and THREEENGLISH */
@media (max-width: 600px) {
  .footer-nav {
    margin-bottom: 9px;
  }
}

/* =========================================================
   Flyer page (QR landing)
   ========================================================= */
.page-flyer .top-stack {
  margin-bottom: 22px;
}

/* Title + subtitle (flyer style) */
.page-flyer .flyer-top {
  padding-top: 0;
}

.page-flyer .flyer-main-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-flyer .flyer-subtitle {
  color: #333;
  font-weight: 500;
  margin-bottom: 22px;
  font-size: 1.08rem;
}

/* Teacher block */
.page-flyer .flyer-teacher-block {
  margin: 18px 0 16px;
}

.page-flyer .flyer-teacher-label {
  font-weight: 600;
  font-size: 1.08rem;
}

.page-flyer .flyer-teacher-exp {
  color: #666;
  font-weight: 500;
  margin-top: 8px;
  font-size: 1.05rem;
}

/* Photo sizing similar to flyer */
.page-flyer .flyer-profile {
  margin-top: 18px;
  max-width: 520px;
  width: 100%;
}

/* Pricing */
.page-flyer .flyer-pricing-block {
  margin: 22px 0 12px;
}

.page-flyer .flyer-pricing-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-flyer .flyer-refund {
  color: #333;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Steps */
.page-flyer .flyer-steps-block {
  margin: 22px 0 10px;
}

.page-flyer .flyer-steps-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.page-flyer .flyer-step {
  font-weight: 500;
  margin-top: 8px;
  font-size: 1.08rem;
}

/* Notes (※ lines) */
.page-flyer .flyer-notes-block {
  margin: 18px 0 0;
}

.page-flyer .flyer-note {
  color: #666;
  font-size: 1.02rem;
  margin-top: 8px;
}

/* Link block */
.page-flyer .flyer-link-block {
  margin: 22px 0 10px;
}

.page-flyer .flyer-button {
  font-weight: 700;
  padding: 14px 22px;
}

.page-flyer .flyer-link-note {
  color: #111;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 10px;
}

.page-flyer .flyer-terms-link {
  margin-top: 16px;
  color: #666;
  font-size: 0.95rem;
}

/* =========================================================
   Landing — Hero spacing (tight “stacked line” rhythm)
   ========================================================= */
.page-landing .hero-stack{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  /* IMPORTANT: no flex "gap" so the three “You’ll know…” lines
     stack with natural line-height spacing (like <br> lines). */
  gap: 0;
  line-height: 1.35;

  /* small separation from the line above the hero block */
  margin-top: 12px;
}

.page-landing .hero-kicker{
  margin-top: 10px;
  font-weight: 600;
  color: #111;
}

.page-landing .hero-line{
  font-weight: 500;
  color: #111;
}

.page-landing .hero-mechanism{
  margin-top: 10px;
  font-weight: 500;
  color: #444;
}