  /* Brand fonts: Futura (English) and Zen Kaku Gothic (Japanese). Jost stands in for Futura,
     which is licensed for print/desktop only; swap the family name here if a web license is bought. */
  :root {
    color-scheme: light; /* light only: the brand look is a white base (owner request) */
    /* miXx brand: BLUE #004BD1 / YELLOW #FFD133 / GREEN #009244, on a white base */
    --bg: #FFFFFF;
    --bg-alt: #F3F6FD;
    --surface: #FFFFFF;
    --border: rgba(28,49,84,0.12);
    --border-strong: rgba(28,49,84,0.20);
    --text: #231F20;
    --text-soft: #6B6B6B;
    --blue: #004BD1;
    --blue-deep: #0039A0;
    --band-blue: #004BD1;
    --blue-soft: rgba(0,75,209,0.07);
    --yellow: #FFD133;
    --yellow-text: #8A6D00;
    --green: #009244;
    --green-soft: rgba(0,146,68,0.09);
    --shadow: 0 1px 2px rgba(35,31,32,0.05), 0 10px 28px rgba(35,31,32,0.06);
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
    font-size: 17px;
    line-height: 1.75;
  }
  h1, h2, h3 { font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; margin: 0; text-wrap: balance; color: var(--text); }
  .latin { font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; }
  a { color: inherit; }
  a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

  .eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 600;
    font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-soft);
    padding: 4px 12px;
    border-radius: 999px;
  }

  /* ---------- Hero ---------- */
  .hero-visual { width: 100%; line-height: 0; background: var(--bg); }
  .hero-visual img { width: 100%; height: auto; display: block; }

  .hero { padding: 0 0 60px; text-align: center; }
  .hero .sub {
    margin: 0 auto;
    max-width: 48ch;
    font-size: 1.1rem;
    color: var(--text-soft);
  }
  .hero .cta-row { margin-top: 26px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700;
    font-size: 1rem;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid transparent;
  }
  .btn.primary { background: var(--green); color: #FFFFFF; box-shadow: var(--shadow); }
  .btn.ghost { background: var(--blue-soft); color: var(--blue-deep); border-color: transparent; }
  .btn.on-blue { background: #FFFFFF; color: var(--blue-deep); box-shadow: var(--shadow); }

  /* ---------- Top nav (mobile: logo + hamburger only) ---------- */
  .topnav { padding: 16px 0; }
  .topnav-inner { display: flex; align-items: center; justify-content: space-between; }
  .topnav-logo { font-weight: 700; font-size: 1.15rem; color: var(--blue); }
  .hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px;
    background: var(--blue-soft);
    border: none; border-radius: 10px;
    cursor: pointer;
  }
  .hamburger span { display: block; width: 18px; height: 2px; background: var(--blue-deep); margin: 0 auto; border-radius: 2px; }

  /* ---------- Sticky CTA ---------- */
  .sticky-cta {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 40;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green);
    color: #FFFFFF;
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; font-size: 0.92rem;
    padding: 13px 20px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,146,68,0.30);
  }
  .sticky-cta .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0.85; }
  @media (max-width: 480px) {
    .sticky-cta { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 0.86rem; }
  }

  /* ---------- Sidebar ---------- */
  /* Mobile: fixed slide-in drawer, toggled by hamburger. Desktop: always-on fixed column. */
  .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    max-width: 82vw;
    background: var(--surface);
    color: var(--text);
    border-right: 1px solid var(--border);
    padding: 26px 24px;
    z-index: 100;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close {
    align-self: flex-end;
    width: 32px; height: 32px;
    background: var(--blue-soft);
    border: none; border-radius: 8px;
    color: var(--blue-deep); font-size: 1rem;
    cursor: pointer;
    margin-bottom: 6px;
  }
  .sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(35,31,32,0.35);
    z-index: 90;
  }
  .sidebar-backdrop.open { display: block; }

  @media (min-width: 960px) {
    .sidebar { transform: none; width: 248px; padding: 30px 26px 26px; }
    .sidebar-close, .sidebar-backdrop { display: none !important; }
    .page-content { margin-left: 248px; }
    .topnav, .sticky-cta { display: none; }
  }
  .sidebar .side-brand { display: flex; align-items: center; gap: 10px; }
  .sidebar .side-logo { width: auto; height: 30px; flex-shrink: 0; }
  .sidebar nav { margin-top: 30px; display: flex; flex-direction: column; }
  .sidebar nav .side-link {
    position: relative;
    padding: 13px 2px;
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; font-size: 0.94rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
  }
  .sidebar nav .side-link::after {
    content: ""; position: absolute; left: 2px; bottom: -1px;
    width: 0; height: 2px; background: var(--yellow);
    transition: width 0.2s ease;
  }
  .sidebar nav .side-link:hover { color: var(--blue); }
  .sidebar nav .side-link:hover::after { width: 32px; }
  .sidebar nav .side-link.current { color: var(--blue); }
  .sidebar .side-cta {
    margin-top: auto;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--green);
    color: #fff;
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; font-size: 0.92rem;
    padding: 13px 18px;
    border-radius: 999px;
    text-decoration: none;
    margin-top: 24px;
  }

  /* ---------- Language toggle ---------- */
  .lang-toggle {
    cursor: pointer;
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; font-size: 0.78rem;
    border: none; border-radius: 999px;
    padding: 6px 15px;
  }
  .topnav .lang-toggle { background: var(--blue-soft); color: var(--blue-deep); }
  .sidebar .lang-toggle { background: var(--blue-soft); color: var(--blue-deep); margin-top: 16px; align-self: flex-start; }

  /* ---------- Trust band ---------- */
  .about-section { padding: 56px 0 32px; text-align: center; }
  .about-section .section-head { max-width: 640px; margin: 0 auto; }
  .about-section h2 { font-size: clamp(1.5rem, 3.2vw, 1.9rem); }
  .about-section .section-head p { margin-top: 14px; color: var(--text-soft); font-size: 1.02rem; line-height: 1.85; }

  .about-more, .trial-details { margin-top: 32px; text-align: center; }
  .about-more summary, .trial-details summary {
    display: inline-block;
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; font-size: 0.98rem;
    color: var(--blue-deep);
    cursor: pointer;
    list-style: none;
    padding: 10px 20px;
    background: var(--blue-soft);
    border-radius: 999px;
  }
  .about-more summary::-webkit-details-marker, .trial-details summary::-webkit-details-marker { display: none; }
  .about-more[open] summary, .trial-details[open] summary { margin-bottom: 28px; }

  .mix-meaning {
    max-width: 620px;
    margin: 36px auto 0;
    padding: 22px 26px;
    background: var(--blue-soft);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
  }
  .mix-meaning .mix-word { font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--blue-deep); flex-shrink: 0; }
  .mix-meaning p { margin: 0; font-size: 0.92rem; color: var(--text); line-height: 1.75; }

  .feature-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    text-align: left;
  }
  .feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
  }
  .feature-card .num { font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; font-size: 0.76rem; color: var(--blue); letter-spacing: 0.05em; }
  .feature-card h4 { margin-top: 8px; font-size: 1rem; font-weight: 700; }
  .feature-card p { margin-top: 8px; font-size: 0.87rem; color: var(--text-soft); line-height: 1.7; }

  @media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) {
    .feature-grid { grid-template-columns: 1fr; }
    .mix-meaning { flex-direction: column; align-items: flex-start; }
  }

  .about-section .trust-text {
    margin-top: 40px; max-width: 640px; margin-left: auto; margin-right: auto;
    font-size: 1.02rem; line-height: 1.9; color: var(--text);
  }
  .about-section .trust-text strong { color: var(--blue-deep); }

  /* ---------- Section shell ---------- */
  section { padding: 60px 0; }
  section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
  .section-head h2 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); font-weight: 900; }
  .section-head p { margin-top: 12px; color: var(--text-soft); font-size: 1rem; }

  /* ---------- Program card ---------- */
  .program {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 28px;
  }
  .program .band {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 18px 28px;
    background: var(--band-blue);
    color: #FFFFFF;
    cursor: pointer;
    list-style: none;
  }
  .program .band::-webkit-details-marker { display: none; }
  .band-left, .band-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .band-chevron { opacity: 0.85; transition: transform 0.2s ease; }
  .program[open] .band-chevron { transform: rotate(180deg); }
  .program .band .place {
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; font-size: 1.15rem;
  }
  .program .band .day {
    font-size: 0.82rem; opacity: 0.85;
    padding: 2px 10px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 999px;
  }
  .program .badge {
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 600; font-size: 0.76rem;
    letter-spacing: 0.04em; text-transform: uppercase;
    background: var(--yellow); color: #5C4200;
    padding: 4px 12px; border-radius: 999px;
  }
  .program .body { padding: 28px; }
  .program.skeleton .body { padding: 26px 28px; }

  .region-label {
    margin: 40px 0 16px;
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 600; font-size: 0.8rem;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-soft);
    display: flex; align-items: center; gap: 10px;
  }
  .region-label::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
  .region-label:first-child { margin-top: 0; }

  .program h3 { font-size: 1.3rem; font-weight: 900; }
  .program .desc { margin-top: 10px; color: var(--text-soft); font-size: 0.98rem; max-width: 62ch; }

  .class-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .class-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
  }
  .class-card .tag {
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 600; font-size: 0.72rem;
    letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue);
  }
  .class-card .time {
    margin-top: 6px;
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
  }
  .class-card .who { margin-top: 4px; font-size: 0.86rem; color: var(--text-soft); }

  @media (max-width: 560px) { .class-grid { grid-template-columns: 1fr; } }

  .address {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-soft);
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  }
  .address .pin { color: var(--blue); margin-right: 4px; }
  .address a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--border-strong); }
  .address a:hover { color: var(--blue-deep); text-decoration-color: var(--blue); }

  .reassure-note {
    max-width: 700px;
    margin: 0 auto 36px;
    padding: 18px 22px;
    background: var(--green-soft);
    border-radius: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
  }
  .reassure-note .icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; font-size: 0.9rem;
    flex-shrink: 0;
  }
  .reassure-note p { margin: 0; font-size: 0.92rem; color: var(--text); line-height: 1.75; }
  .reassure-note strong { color: var(--blue-deep); }

  .flow-steps {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    text-align: left;
  }
  .flow-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
  }
  .flow-step .flow-num {
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; font-size: 0.72rem;
    color: var(--blue); letter-spacing: 0.05em;
  }
  .flow-step .flow-time {
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 600; font-size: 0.76rem;
    color: var(--text-soft); margin-top: 4px;
  }
  .flow-step h4 { margin-top: 6px; font-size: 0.92rem; font-weight: 700; }
  .flow-step p { margin-top: 6px; font-size: 0.82rem; color: var(--text-soft); line-height: 1.6; }

  @media (max-width: 900px) { .flow-steps { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .flow-steps { grid-template-columns: 1fr; } }
  .flow-cta { text-align: center; margin-top: 36px; }

  .curriculum-row {
    margin-top: 22px;
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 20px;
    background: var(--green-soft);
    border-radius: 12px;
  }
  .curriculum-row .icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; flex-shrink: 0;
  }
  .curriculum-row h4 { font-size: 1.02rem; font-weight: 700; margin: 0; }
  .curriculum-row p { margin: 6px 0 0; font-size: 0.92rem; color: var(--text-soft); }
  .theme-chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
  .theme-chip {
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text-soft);
    padding: 3px 11px;
    border-radius: 999px;
  }

  .foot-row {
    margin-top: 24px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-strong);
  }
  .price {
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--text);
    font-variant-numeric: tabular-nums;
  }
  .price .unit { font-size: 0.85rem; font-weight: 500; color: var(--text-soft); margin-left: 4px; }
  .price.tbd { color: var(--text-soft); font-size: 1rem; font-weight: 500; font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; }

  .btn.small { padding: 10px 22px; font-size: 0.92rem; }

  .skeleton-body p { color: var(--text-soft); font-size: 0.96rem; max-width: 56ch; }

  /* ---------- Facilities (B2B) ---------- */
  .fac-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    text-align: left;
  }
  .fac-grid .feature-card { min-width: 0; }
  .fac-price {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-strong);
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
    color: var(--text);
  }
  .fac-price .unit { font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-size: 0.82rem; font-weight: 500; color: var(--text-soft); margin-left: 4px; }
  .fac-sub {
    margin: 30px 0 12px;
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; font-size: 1rem;
    text-align: left;
    color: var(--text);
  }
  .fac-details .feature-grid { margin-top: 0; }
  .fac-note { margin: 14px 0 0; font-size: 0.87rem; color: var(--text-soft); text-align: left; }
  .fac-record { margin: 28px auto 0; max-width: 640px; text-align: center; font-size: 0.98rem; color: var(--text); }
  .fac-editor-note { display: block; margin: 18px auto 0; max-width: 640px; text-align: center; }
  .cta-pair { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
  .btn.contact {
    flex: 1 1 240px; max-width: 320px;
    flex-direction: column; justify-content: center; gap: 2px;
    padding: 12px 24px; line-height: 1.35; text-align: center;
  }
  .btn.contact .sub { font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 500; font-size: 0.8rem; opacity: 0.9; }
  .line-cta .cta-pair { margin-top: 22px; }
  .line-cta .cta-pair .btn.primary { margin-top: 0; }
  footer .foot-mail { margin-top: 4px; }
  footer .foot-sns { margin-top: 14px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
  footer .foot-sns a {
    font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 600; font-size: 0.8rem;
    color: var(--blue-deep); background: var(--blue-soft);
    padding: 5px 14px; border-radius: 999px; text-decoration: none;
  }
  footer .foot-sns a:hover { text-decoration: underline; text-underline-offset: 3px; }
  footer .foot-mail a { color: var(--text-soft); text-underline-offset: 3px; }
  @media (max-width: 560px) { .fac-grid { grid-template-columns: 1fr; } }

  /* ---------- LINE section ---------- */
  .line-cta {
    text-align: center;
    padding: 56px 24px;
    background: var(--blue);
    color: #fff;
    border-radius: 24px;
  }
  .line-cta h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.8rem); }
  .line-cta p { margin-top: 12px; color: rgba(255,255,255,0.85); max-width: 44ch; margin-left: auto; margin-right: auto; }
  .line-cta .btn.primary { margin-top: 22px; }

  footer { padding: 40px 0 56px; text-align: center; font-size: 0.8rem; color: var(--text-soft); }
  footer img { width: auto; height: 36px; margin-bottom: 10px; }

  /* ---------- Sub pages ---------- */
  .page-hero { padding: 40px 0 52px; text-align: center; }
  .page-hero h1 { margin-top: 14px; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; }
  .page-hero .page-lead { margin: 14px auto 0; max-width: 40em; color: var(--text-soft); font-size: 1.02rem; }
  .target-chips { margin-top: 18px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
  .page-hero .cta-row { margin-top: 26px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
  .section-head h2 { margin-top: 14px; }
  .flow-steps.four { grid-template-columns: repeat(4, 1fr); }
  @media (max-width: 900px) { .flow-steps.four { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .flow-steps.four { grid-template-columns: 1fr; } }
  .topnav-logo { text-decoration: none; }
  .nw { white-space: nowrap; }
  .sidebar nav .side-link.current::after { width: 32px; }

  /* ---------- Partner logos ---------- */
  .partners { margin-top: 40px; text-align: center; }
  .partners-head { font-size: 1.15rem; font-weight: 900; }
  .partners-lead { margin: 8px auto 0; max-width: 40em; font-size: 0.95rem; color: var(--text-soft); }
  .logo-grid { margin: 22px auto 0; max-width: 780px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .logo-tile {
    min-width: 0; aspect-ratio: 16 / 10; max-width: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #FFFFFF; /* logos are supplied on white; keep a white tile in both themes */
    border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px;
  }
  .logo-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
  @media (max-width: 560px) { .logo-grid { gap: 8px; } .logo-tile { padding: 10px 12px; border-radius: 10px; } }
  .card-logos { margin: 16px 0 0; max-width: 520px; }

  /* Japanese line breaks: break between phrases instead of mid-word (Chrome/Edge; others fall back to normal) */
  :lang(ja) body { word-break: auto-phrase; }
  p { text-wrap: pretty; }

  /* ---------- Contact form ---------- */
  .contact-form { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 20px; }
  .field { display: grid; gap: 8px; min-width: 0; }
  .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  @media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } .contact-form { padding: 20px 16px; } }
  .contact-form .label { font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--text); }
  .req { display: inline-block; margin-left: 4px; font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-size: 0.68rem; font-weight: 700; color: #FFFFFF; background: var(--blue); border-radius: 4px; padding: 1px 6px; vertical-align: 2px; }
  .contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form select, .contact-form textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
    border: 1px solid var(--border-strong); border-radius: 10px; padding: 11px 14px;
  }
  .contact-form textarea { resize: vertical; min-height: 140px; }
  .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
  .choice-row { display: flex; flex-wrap: wrap; gap: 8px; border-radius: 10px; }
  .choice { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer; font-size: 0.92rem; background: var(--bg); }
  .choice:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-deep); font-weight: 700; }
  .choice input { accent-color: var(--blue); margin: 0; }
  .hint { margin: 0; font-size: 0.84rem; color: var(--text-soft); }
  .agree { display: flex; align-items: center; gap: 10px; font-size: 0.94rem; cursor: pointer; padding: 6px 4px; border-radius: 8px; }
  .agree input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
  .agree a { color: var(--blue-deep); }
  .invalid { outline: 2px solid #D93025; outline-offset: 3px; }
  .contact-form input.invalid, .contact-form textarea.invalid { outline-offset: 0; }
  .form-status { margin: 0; font-size: 0.92rem; min-height: 1.4em; }
  .form-status.success { color: var(--green); font-weight: 700; }
  .form-status.error { color: #C5221F; }
  .form-actions { display: flex; justify-content: center; }
  .form-actions .btn { border: none; cursor: pointer; font-size: 1.02rem; padding: 14px 44px; }
  .form-actions .btn:disabled { opacity: 0.6; cursor: progress; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .form-alt { margin: 22px auto 0; max-width: 720px; text-align: center; font-size: 0.9rem; color: var(--text-soft); }
  .form-alt a { color: var(--blue-deep); }

  /* ---------- Policy page ---------- */
  .policy { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px; }
  .policy h2 { font-size: 1.08rem; font-weight: 900; margin: 28px 0 10px; }
  .policy h2:first-child { margin-top: 0; }
  .policy p, .policy li { font-size: 0.95rem; color: var(--text); }
  .policy p { margin: 8px 0 0; }
  .policy ul { margin: 8px 0 0; padding-left: 1.3em; }
  .policy-dl { display: grid; grid-template-columns: 7em 1fr; gap: 6px 14px; margin: 0; font-size: 0.95rem; }
  .policy-dl dt { color: var(--text-soft); }
  .policy-dl dd { margin: 0; }
  .policy-date { margin-top: 28px !important; color: var(--text-soft) !important; font-size: 0.88rem !important; }
  @media (max-width: 600px) { .policy { padding: 22px 18px; } }
  footer .foot-links { margin-top: 10px; font-size: 0.8rem; }
  footer .foot-links a { color: var(--text-soft); text-underline-offset: 3px; }

  [hidden] { display: none !important; }

  /* White text on brand green (#009244, 4.0:1) needs large text (>=18.7px bold) to meet WCAG AA */
  .btn, .btn.small, .sticky-cta, .sidebar .side-cta { font-size: 1.1rem; }
  @media (max-width: 480px) { .sticky-cta { font-size: 1.1rem; } }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

  /* ---------- Owner feedback round 1 ---------- */
  .section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
  .about-section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
  .program .band .place { font-size: 1.3rem; }
  .program h3 { font-size: 1.5rem; }
  .place-area { font-size: 0.85rem; font-weight: 600; opacity: 0.9; white-space: nowrap; }
  .booking { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--border-strong); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
  .booking p { margin: 0; flex: 1 1 280px; font-size: 0.92rem; color: var(--text-soft); }
  .booking a:not(.btn), .trial-book a:not(.btn) { color: var(--blue-deep); font-weight: 700; }
  .keyword-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: -8px 0 32px; }
  .kw { font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; font-size: 1rem; color: var(--blue-deep); background: var(--blue-soft); padding: 8px 18px; border-radius: 999px; }
  .trial-book { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 820px; margin: 0 auto; }
  .trial-book-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: grid; gap: 10px; justify-items: start; }
  .trial-book-item h3 { font-size: 1.1rem; }
  .trial-book-item p { margin: 0; font-size: 0.92rem; color: var(--text-soft); }
  @media (max-width: 640px) { .trial-book { grid-template-columns: 1fr; } }
  .card-logos.two { grid-template-columns: repeat(2, 1fr); max-width: 360px; }
  .card-logos.one { grid-template-columns: 1fr; max-width: 180px; }
  footer .copyright { margin: 12px 0 0; font-size: 0.75rem; color: var(--text-soft); }
  a.cta-box { display: block; color: inherit; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
  a.cta-box:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,75,209,0.25); }
  a.cta-box:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
  .cta-box .btn { margin-top: 22px; pointer-events: none; }
  .flow-steps.five { grid-template-columns: repeat(5, 1fr); }
  @media (max-width: 900px) { .flow-steps.five { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .flow-steps.five { grid-template-columns: 1fr; } }

  /* ---------- Brand logo (SVG from the brand kit) ---------- */
  .sidebar .side-brand { display: block; line-height: 0; }
  .sidebar .side-logo { width: 168px; height: auto; }
  .topnav-logo { display: block; line-height: 0; }
  .topnav-logo img { height: 40px; width: auto; }
  footer img.foot-logo { height: 64px; width: auto; margin-bottom: 8px; filter: none; }

  /* ---------- Owner feedback round 1, part 2 ---------- */
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  .booking { flex-direction: column; align-items: center; text-align: center; }
  .booking p { flex: none; max-width: 36em; }
  .booking-btn { font-size: 1.15rem; padding: 15px 40px; }
  .logo-hint { margin-top: 10px; font-size: 0.88rem; color: var(--text-soft); }
  a.logo-tile { transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
  a.logo-tile:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: var(--shadow); }
  details.program > summary, details.about-more > summary { cursor: pointer; }

  /* ---------- Mobile review fixes ---------- */
  /* Logos sit directly on the page: no frames, one shared height */
  .logo-grid, .logo-grid.card-logos, .logo-grid.card-logos.two, .logo-grid.card-logos.one {
    display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
    grid-template-columns: none; max-width: none;
  }
  .partners .logo-grid { justify-content: center; }
  .logo-tile, a.logo-tile {
    background: transparent; border: none; padding: 0; border-radius: 0;
    aspect-ratio: auto; height: 52px; width: auto; display: flex; align-items: center;
  }
  .logo-tile img { height: 100%; width: auto; max-width: none; }
  a.logo-tile:hover { transform: translateY(-2px); box-shadow: none; opacity: 0.85; }
  @media (min-width: 700px) { .logo-tile, a.logo-tile { height: 60px; } }
  /* Calendar link as a clear button under the timetable */
  .cal-row { margin-top: 14px; }
  .cal-btn { gap: 6px; }
  /* A booking block with no text above the button still centres */
  .booking:has(> .btn:only-child) { padding-top: 20px; }
  /* Balance wide and tall logos: cap both height and width */
  .logo-tile, a.logo-tile { height: 44px; }
  .logo-tile img { max-width: 120px; object-fit: contain; }
  @media (min-width: 700px) { .logo-tile, a.logo-tile { height: 52px; } .logo-tile img { max-width: 140px; } }
  /* Fill lines fully in body text and left-aligned card headings. text-wrap: pretty/balance
     made Safari end Japanese lines early, leaving the right side of boxes empty. Balance is
     kept only for centred section headings, where even lines look intentional. */
  p, li, dd { text-wrap: wrap; }
  .program h3, .program .band .place, .trial-book-item h3, .feature-card h4, .flow-step h4 { text-wrap: wrap; }
  /* The note under the program cards sits between centred blocks, so centre it too */
  .fac-note { text-align: center; max-width: 40em; margin-left: auto; margin-right: auto; margin-top: 20px; }

  /* ---------- Brand guideline (Ver. 1.1) ---------- */
  /* Spelling rule: always "miXx", never MIXX/MiXx, even inside uppercase labels */
  .brand-name { text-transform: none; }
  /* Isolation rule: keep clear space of at least 1/4 of the circle symbol's height around the logo */
  footer img.foot-logo { margin-bottom: 14px; }

  /* ---------- Hero: lesson photo + slogan logo (brand guideline: slogan's left edge meets the page edge) ---------- */
  .hero-visual { position: relative; line-height: 0; background: var(--bg); padding-bottom: 72px; }
  .hero-photo { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%; max-height: 78vh; }
  .hero-slogan { position: absolute; left: 0; bottom: 0; width: min(62vw, 520px); height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.12)); }
  @media (min-width: 960px) { .hero-slogan { width: min(42vw, 560px); } .hero-visual { padding-bottom: 96px; } }
  @media (max-width: 560px) { .hero-photo { aspect-ratio: 4 / 3; object-position: 48% 35%; } .hero-visual { padding-bottom: 56px; } .hero-slogan { width: 78vw; } }
  /* Specific enough to beat the older ".hero-visual img { width: 100% }" rule */
  .hero-visual .hero-slogan { width: 78vw; max-width: 480px; }
  .hero-visual { padding-bottom: calc(min(78vw, 480px) * 0.397 * 0.72); }
  @media (min-width: 960px) {
    .hero-visual .hero-slogan { width: 34vw; max-width: 480px; }
    .hero-visual { padding-bottom: calc(min(34vw, 480px) * 0.397 * 0.72); }
  }

  /* Dance photo: keep the three children's faces in frame; slogan overlaps the photo only slightly */
  .hero-photo { aspect-ratio: 2000 / 1256; object-position: 50% 40%; }
  @media (max-width: 560px) { .hero-photo { aspect-ratio: 4 / 3; object-position: 50% 45%; } }
  .hero-visual { padding-bottom: calc(min(78vw, 480px) * 0.397 * 0.82); }
  @media (min-width: 960px) { .hero-visual { padding-bottom: calc(min(34vw, 480px) * 0.397 * 0.82); } }

  /* ---------- Owner feedback round 2 ---------- */
  /* Section labels (eyebrows) larger, as in the owner's example */
  .eyebrow { font-size: 1.05rem; padding: 7px 20px; letter-spacing: 0.05em; }
  @media (max-width: 560px) { .eyebrow { font-size: 0.92rem; padding: 6px 16px; } }
  /* One button height site-wide (matches the hero "公式LINEで相談する" button) */
  .btn, .btn.small, .booking-btn { font-size: 1.1rem; padding: 14px 32px; min-height: 56px; justify-content: center; }
  .btn.contact { min-height: 56px; }
  /* Day of week: white pill, blue text */
  .program .band .day { background: #FFFFFF; color: var(--blue); opacity: 1; border: none; font-weight: 700; padding: 3px 12px; }
  /* Logo centred in the menu column */
  .sidebar .side-brand { align-self: center; }
  .sidebar .lang-toggle { align-self: center; }
  /* Partner logos: uniform rounded gray tiles again (owner preference) */
  .logo-grid, .logo-grid.card-logos, .logo-grid.card-logos.two, .logo-grid.card-logos.one { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
  .logo-grid.card-logos.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 360px; }
  .logo-grid.card-logos.one { grid-template-columns: minmax(0, 1fr); max-width: 180px; }
  .partners .logo-grid { margin-left: auto; margin-right: auto; }
  .logo-tile, a.logo-tile { height: auto; aspect-ratio: 16 / 10; background: #FFFFFF; border: 1px solid var(--border-strong); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; justify-content: center; }
  .logo-tile img { height: auto; width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
  a.logo-tile:hover { border-color: var(--blue); box-shadow: var(--shadow); opacity: 1; }
  /* Buttons centred in the trial booking boxes */
  .trial-book-item { justify-items: center; text-align: center; }
  /* Countries for Group 1 */
  .group-title { margin: 12px 0 6px; font-weight: 700; font-size: 0.92rem; color: var(--text); }
  .country-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
  .country-list li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
  .country-list .letter { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #FFFFFF; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; }
  .group-note { margin: 8px 0 0; font-size: 0.85rem; color: var(--text-soft); }
  @media (max-width: 420px) { .country-list { grid-template-columns: minmax(0, 1fr); } }
  /* Hero: slogan in the top-left corner of the photo, between the menu and the children */
  .hero-visual { padding-bottom: 0; }
  .hero-visual .hero-slogan { top: 0; bottom: auto; left: 0; width: 30vw; max-width: 420px; }
  @media (max-width: 959px) { .hero-visual .hero-slogan { width: 44vw; } }
  .sidebar .side-cta, .sticky-cta { min-height: 56px; }
  /* Eyebrow labels at roughly the owner's example ratio (about 60% of the section heading) */
  .eyebrow { font-size: 1.4rem; padding: 8px 24px; }
  @media (max-width: 560px) { .eyebrow { font-size: 1.05rem; padding: 6px 18px; } }

  /* ---------- Collapsible menu on every screen size ---------- */
  @media (min-width: 960px) {
    .sidebar { transform: translateX(-100%); width: 280px; padding: 26px 24px; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close { display: block !important; }
    .sidebar-backdrop.open { display: block !important; }
    .page-content { margin-left: 0; }
    .topnav, .sticky-cta { display: flex; }
    .topnav { display: block; }
  }
  .topnav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); padding: 10px 0; }
  .topnav-inner { max-width: none; }
  .topnav-logo img { height: 46px; }
  @media (min-width: 960px) { .topnav-logo img { height: 56px; } .topnav { padding: 12px 0; } }
  .hamburger { width: auto; height: auto; padding: 6px 12px 8px; gap: 4px; align-items: center; }
  .hamburger .menu-label { font-family: "Jost", sans-serif; font-weight: 700; font-size: 0.66rem; letter-spacing: 0.12em; color: var(--blue-deep); line-height: 1; }
  .hamburger .bars { display: flex; flex-direction: column; gap: 5px; }
  .hamburger .bars span { display: block; width: 22px; height: 2px; background: var(--blue-deep); border-radius: 2px; }

  /* ---------- Brand shapes (from the brand kit), gently floating ---------- */
  .about-section, #programs, #trial, #facilities, .page-hero { position: relative; overflow: hidden; overflow: clip; }
  .about-section > .wrap, #programs > .wrap, #trial > .wrap, #facilities > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }
  .deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
  .shape { position: absolute; width: var(--s, 56px); height: var(--s, 56px); animation: float var(--d, 7s) ease-in-out infinite alternate; }
  .shape.c-blue { fill: var(--blue); } .shape.c-yellow { fill: var(--yellow); } .shape.c-green { fill: var(--green); }
  @keyframes float { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-14px) rotate(6deg); } }
  .shape.p1 { --s: 54px; --d: 6s; top: 40px; left: 6%; }
  .shape.p2 { --s: 70px; --d: 8s; top: 70px; right: 5%; }
  .shape.p3 { --s: 44px; --d: 7s; bottom: 40px; left: 12%; }
  .shape.p4 { --s: 64px; --d: 8s; top: 36px; right: 7%; }
  .shape.p5 { --s: 40px; --d: 6s; top: 120px; left: 5%; }
  .shape.p6 { --s: 60px; --d: 7s; top: 30px; left: 6%; }
  .shape.p7 { --s: 70px; --d: 9s; bottom: 30px; right: 6%; }
  .shape.p8 { --s: 52px; --d: 7s; top: 30px; right: 8%; }
  .shape.p9 { --s: 40px; --d: 6s; bottom: 26px; left: 8%; }
  .shape.q1 { --s: 50px; --d: 6s; top: 24px; left: 6%; }
  .shape.q2 { --s: 64px; --d: 8s; bottom: 20px; right: 6%; }
  @media (max-width: 700px) {
    .shape { --s: 32px !important; opacity: 0.9; }
    .shape.p1, .shape.p6, .shape.q1 { top: 14px; left: 4%; }
    .shape.p2, .shape.p4, .shape.p8 { top: 14px; right: 4%; }
    .shape.p3, .shape.p5, .shape.p9 { display: none; }
  }
  @media (prefers-reduced-motion: reduce) { .shape { animation: none; } }
  /* The old ".hamburger span" bar style must not apply to the label and bar wrapper */
  .hamburger .menu-label, .hamburger .bars { width: auto; height: auto; background: none; margin: 0; border-radius: 0; }
  .hamburger { flex-direction: column; justify-content: center; min-width: 52px; }

  /* ---------- Class photos inside lesson cards ---------- */
  .card-photo { margin: 0 0 18px; }
  .card-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; }
  .card-photo figcaption { margin-top: 6px; font-size: 0.75rem; color: var(--text-soft); text-align: right; }
  @media (min-width: 760px) {
    .card-photo { float: right; width: 300px; margin: 0 0 16px 28px; }
    .program .body .class-grid, .program .body .curriculum-row, .program .body .booking, .program .body .logo-grid, .program .body .cal-row { clear: both; }
  }

  /* Partner logos on the dispatch page: 4 across on wide screens, 2 across on phones, a short last row centred */
  .partners .logo-grid { display: flex; flex-wrap: wrap; justify-content: center; max-width: 680px; }
  .partners .logo-grid .logo-tile { flex: 0 0 calc((100% - 36px) / 4); }
  @media (max-width: 560px) {
    .partners .logo-grid { max-width: 360px; }
    .partners .logo-grid .logo-tile { flex-basis: calc((100% - 12px) / 2); }
  }
  /* Four logos in a lesson card: one row on wide screens, 2x2 on phones */
  .logo-grid.card-logos.five { display: flex; flex-wrap: wrap; justify-content: center; max-width: 520px; }
  .logo-grid.card-logos.five .logo-tile { flex: 0 0 calc((100% - 24px) / 3); }
  @media (max-width: 560px) { .logo-grid.card-logos.five { max-width: 360px; } .logo-grid.card-logos.five .logo-tile { flex-basis: calc((100% - 12px) / 2); } }

  /* ---------- Owner feedback round 3 ---------- */
  /* Features are always shown (no longer behind a toggle) */
  .about-features { margin-top: 32px; }
  /* Group 1 sounds: numbered in teaching order, read down each column */
  .country-list { grid-auto-flow: column; grid-template-rows: repeat(3, auto); }
  .country-list .order { flex: none; width: 1.1em; text-align: right; font-weight: 700; font-size: 0.85rem; color: var(--text-soft); }
  @media (max-width: 420px) { .country-list { grid-auto-flow: row; grid-template-rows: none; } }
  /* Calendar button belongs to the whole class, not the first time slot */
  .cal-row { display: flex; justify-content: center; }
  /* Two audiences, two buttons side by side */
  .booking.booking-split { flex-direction: row; justify-content: center; align-items: flex-end; gap: 16px 28px; }
  .booking-option { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .booking-split .booking-for { flex: none; margin: 0; font-weight: 700; font-size: 0.92rem; color: var(--text); }
  @media (max-width: 560px) { .booking.booking-split { flex-direction: column; align-items: stretch; } .booking-split .booking-btn { width: 100%; } }
  /* Phones: day pill under the place name, the yellow badge right next to it */
  @media (max-width: 640px) {
    .program .band { justify-content: flex-start; gap: 10px; }
    .program .band .band-left, .program .band .band-right { display: contents; }
    .program .band { position: relative; }
    .program .band .place { flex: 0 0 100%; padding-right: 26px; font-size: 1.2rem; }
    .program .band .band-chevron { position: absolute; top: 22px; right: 20px; }
  }
  /* Phones: the green curriculum box uses the full card width (icon sits above the text) */
  @media (max-width: 560px) {
    .curriculum-row { flex-direction: column; gap: 10px; padding: 16px; }
  }
  /* Privacy policy: email addresses look clickable */
  .policy a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
  /* In-card links (Fujimi -> Jolly Phonics box): look like links, land below the top bar */
  .program .desc a.jump-link { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
  #jolly { scroll-margin-top: 96px; }
  /* Feature cards: a lesson photo shows faintly behind each point */
  .feature-card.photo {
    background-image: linear-gradient(rgba(255,255,255,0.84), rgba(255,255,255,0.84)), var(--photo);
    background-size: cover; background-position: var(--pos, center);
  }
  .feature-card.photo p { color: var(--text); }
  /* Hexagon photo cut-outs beside section headings, each with a brand shape on its corner */
  .cutout { position: absolute; margin: 0; width: var(--cw, 200px); aspect-ratio: 1.15 / 1; z-index: 0; }
  .cutout img { width: 100%; height: 100%; object-fit: cover; display: block;
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
  .cutout .cut-accent { position: absolute; width: 38%; height: 38%; left: -4%; bottom: -10%; }
  .cut-accent.c-blue { fill: var(--blue); } .cut-accent.c-yellow { fill: var(--yellow); } .cut-accent.c-green { fill: var(--green); }
  .cutout.k-about { top: 150px; left: 3%; }
  .cutout.k-programs { top: 70px; left: 3%; }
  .cutout.k-trial { top: 110px; right: 3%; }
  .cutout.k-facilities { top: 40px; left: 3%; }
  .cutout.k-trial .cut-accent { left: auto; right: -4%; }
  .about-section > .wrap, #programs > .wrap, #trial > .wrap, #facilities > .wrap { position: relative; z-index: 1; }
  @media (max-width: 1199px) { .cutout { --cw: 140px; } .cutout.k-about { top: 130px; } }
  @media (max-width: 899px) { .cutout { display: none; } }

  /* Phones: two of the hexagon cut-outs sit centred above their section headings */
  @media (max-width: 899px) {
    .cutout.k-about, .cutout.k-trial { display: block; --cw: 124px; top: 28px; left: 50%; right: auto; transform: translateX(-50%); }
    .about-section .section-head, #trial .section-head { padding-top: 112px; }
  }
  /* Logos always fit inside their tile. Safari ignores max-height: 100% when the tile's height
     comes from aspect-ratio, so tall logos (Nishimachi, Malvern) spilled out on iPhone. */
  .logo-tile, a.logo-tile { position: relative; }
  .logo-tile img { position: absolute; top: 12%; left: 10%; width: 80%; height: 76%; max-width: none; max-height: none; object-fit: contain; }
  /* Phones: hide stand-in photos of other venues ("photo is for illustration") so the class details come first */
  @media (max-width: 759px) { .card-photo.illustrative { display: none; } }
  /* Feature cards: slightly larger text (sized so no line breaks change) */
  .feature-card.photo h4 { font-size: 1.1rem; }
  .feature-card.photo p { font-size: 0.9rem; }
  /* Two-card grid (dispatch use cases) */
  .feature-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-left: auto; margin-right: auto; }
  @media (max-width: 560px) { .feature-grid.two { grid-template-columns: 1fr; } }
