/* =========================================================================
   MyTutor — TOEIC Speaking Course landing page
   Built to the REVISED "Clear Professional" guideline. Scoped under .tsp.
   Shared template for the TOEIC Speaking & Writing pages.
   - Plain .course-eyebrow (no leading line).
   - Shared mt-course-layout-page / mt-course-layout-wrap width utilities.
   - Free-trial CTA via get_footer() → includes/free-trial-cta.php (services.css).
   - .mt-card hover only on clickable a.mt-card; div.mt-card never lifts.
   Shared classes mirrored here so the page renders standalone; remove if
   css/main.css defines them globally.
   ========================================================================= */

@media (min-width: 769px) {
  .mt-course-layout-page #wrap { min-width: 0; }
  .mt-course-layout-page #container { width: 100%; max-width: none; padding: 0; }
}
.mt-course-layout-page .tsp { margin-bottom: 0; }
.toeic-speaking-page .free-trial-cta { margin-top: 0; }
.tsp-section:last-child { padding-bottom: 40px; }

.tsp {
  --ink: #172033;
  --muted: #657084;
  --line: #DFE5EE;
  --paper: #FFFFFF;
  --canvas: #F4F6FA;
  --navy-950: #031B68;
  --navy-800: #1E2D6E;
  --navy-700: #263A8A;
  --purple-700: #6C4DA4;
  --purple-100: #F1EDFB;
  --teal-600: #158A9A;
  --teal-050: #E8F5F7;
  --gold-500: #C99A2E;
  --radius-sm: 6px;
  --radius-md: 8px;
  --shadow-soft: 0 14px 40px rgba(20, 32, 62, 0.12);
  --shadow-tight: 0 8px 24px rgba(20, 32, 62, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  color-scheme: light;
  box-sizing: border-box;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.tsp *, .tsp *::before, .tsp *::after { box-sizing: inherit; }
.tsp p, .tsp h1, .tsp h2, .tsp h3, .tsp h4, .tsp ul, .tsp ol { margin: 0; padding: 0; }
.tsp ul, .tsp ol { list-style: none; }
.tsp img { max-width: 100%; display: block; }
.tsp a { color: inherit; }

/* ---------- shared utilities (mirror css/main.css) ---------- */
.tsp .mt-card {
  display: block; overflow: hidden;
  border: 1px solid rgba(3, 27, 104, 0.12);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-tight);
  color: inherit; text-decoration: none;
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
}
.tsp div.mt-card:hover { border-color: rgba(3, 27, 104, 0.12); box-shadow: var(--shadow-tight); }
.tsp a.mt-card:hover { border-color: rgba(3, 27, 104, 0.22); box-shadow: 0 12px 28px rgba(20, 32, 62, 0.14); text-decoration: none; }
.tsp .tag {
  display: inline-flex; align-items: center;
  padding: 4px 7px; border: 0; border-radius: 999px;
  background: var(--purple-100); color: var(--navy-800);
  font-size: 10.5px; font-weight: 700; line-height: 1.25; white-space: nowrap;
}
.tsp .course-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--purple-700); display: block; line-height: 1.4; margin-bottom: 12px;
}
.tsp .mt-course-layout-wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ---------- primitives ---------- */
.tsp-section { padding: 56px 0; }
.tsp-section--canvas { background: var(--canvas); }
.tsp-h2 { font-size: 25px; line-height: 1.3; font-weight: 700; color: var(--navy-950); margin-bottom: 14px; }
.tsp-lead { color: var(--muted); font-size: 16px; max-width: 64ch; }
.tsp-body { color: var(--ink); font-size: 15.5px; }
.tsp-body + .tsp-body { margin-top: 14px; }

/* ---------- buttons ---------- */
.tsp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; padding: 13px 24px; border-radius: var(--radius-md);
  text-decoration: none; cursor: pointer; transition: background .16s ease, border-color .16s ease;
}
.tsp-btn--primary,
.tsp-btn--primary:link,
.tsp-btn--primary:visited { background: var(--navy-800); color: #fff; border: 1px solid var(--navy-800); }
.tsp-btn--primary:hover { background: var(--navy-950); border-color: var(--navy-950); color: #fff; text-decoration: none; }
.tsp-btn--ghost,
.tsp-btn--ghost:link,
.tsp-btn--ghost:visited { background: transparent; color: var(--navy-800); border: 1.5px solid var(--line); }
.tsp-btn--ghost:hover { border-color: var(--navy-800); color: var(--navy-800); text-decoration: none; }
.tsp-btn--sm { font-size: 13.5px; padding: 10px 16px; }
.tsp-btn--block { width: 100%; }

/* ---------- hero ---------- */
.tsp-hero { background: var(--canvas); padding: 38px 0 46px; }
.tsp-hero__title { font-size: 26px; line-height: 1.3; font-weight: 700; color: var(--navy-950); margin: 10px 0 14px; }
.tsp-hero__lead { color: var(--ink); font-size: 15.5px; margin-bottom: 10px; max-width: 62ch; }
.tsp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.tsp-chip { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.tsp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- grid + check rows ---------- */
.tsp-grid { display: grid; gap: 14px; margin-top: 22px; }
.tsp-checks { display: grid; gap: 11px; margin-top: 22px; }
@media (min-width: 640px) { .tsp-checks--2 { grid-template-columns: 1fr 1fr; } }
.tsp-check {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--navy-700);
  border-radius: var(--radius-md); padding: 13px 16px; font-weight: 600; font-size: 14.5px;
}
.tsp-check__i { color: var(--teal-600); font-weight: 800; flex: none; }

/* ---------- course lineup cards ---------- */
.tsp-course { padding: 24px 22px; display: flex; flex-direction: column; }
.tsp-course__k { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--purple-700); margin-bottom: 9px; }
.tsp-course__h { font-size: 18px; font-weight: 800; color: var(--navy-950); margin-bottom: 10px; line-height: 1.4; }
.tsp-course__b { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.tsp-course__cta { margin-top: auto; }

/* ---------- question-type cards (clickable) ---------- */
.tsp-qgrid { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 560px) { .tsp-qgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .tsp-qgrid { grid-template-columns: 1fr 1fr 1fr; } }
.tsp-qcard { padding: 20px; display: flex; flex-direction: column; height: 100%; }
.tsp-qcard__n {
  width: 28px; height: 28px; border-radius: 999px; background: var(--purple-100); color: var(--navy-800);
  font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.tsp-qcard__h { font-size: 15.5px; font-weight: 800; color: var(--navy-950); margin-bottom: 4px; line-height: 1.4; }
.tsp-qcard__jp { display: block; font-size: 12.5px; font-weight: 700; color: var(--purple-700); margin-top: 3px; }
.tsp-qcard__b { font-size: 13.5px; color: var(--muted); margin: 8px 0 16px; }
.tsp-qcard__more { margin-top: auto; font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.5; transition: color .16s ease; }
.tsp-qcard__more::after { content: " →"; }
.tsp-qcard:hover .tsp-qcard__more { color: var(--navy-800); }

/* ---------- lesson process steps ---------- */
.tsp-steps { display: grid; gap: 12px; margin-top: 22px; }
.tsp-step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px;
}
.tsp-step__n {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-800); color: #fff;
  font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center;
}
.tsp-step__h { font-size: 16px; font-weight: 700; color: var(--navy-950); margin-bottom: 5px; }
.tsp-step__b { font-size: 14px; color: var(--muted); }

/* ---------- related ---------- */
.tsp-rel { padding: 20px; display: flex; flex-direction: column; }
.tsp-rel__h { font-size: 15px; font-weight: 700; color: var(--navy-950); margin-bottom: 8px; line-height: 1.4; }
.tsp-rel__b { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.tsp-rel__cta { margin-top: auto; }

/* ---------- note ---------- */
.tsp-note {
  margin-top: 18px; font-size: 14px; color: var(--muted);
  background: var(--purple-100); border-radius: var(--radius-md); padding: 16px 18px; line-height: 1.7;
}
.tsp-note strong { color: var(--navy-950); }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .tsp-section { padding: 72px 0; }
  .tsp-section:last-child { padding-bottom: 48px; }
  .tsp-hero { padding: 48px 0 56px; }
  .tsp-hero__title { font-size: 34px; }
  .tsp-h2 { font-size: 30px; }
  .tsp-grid--2 { grid-template-columns: 1fr 1fr; }
  .tsp-grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .tsp-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .tsp * { transition: none !important; } }
.tsp :where(a, button):focus-visible { outline: 3px solid var(--navy-700); outline-offset: 2px; border-radius: 6px; }
.tsp [id] { scroll-margin-top: 24px; }

/* ---------- 特訓ゼミ: enrollment patterns + schedule (merged from toeic.html) ---------- */
.tsp-zemi { margin-top: 30px; }
.tsp-zemi__h { font-size: 18px; font-weight: 800; color: var(--navy-950); margin-bottom: 6px; }
.tsp-zemi__lead { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.tsp-plans { display: grid; gap: 12px; }
@media (min-width: 760px) { .tsp-plans { grid-template-columns: repeat(3, 1fr); } }
.tsp-plan { padding: 18px 20px; display: flex; flex-direction: column; }
.tsp-plan__h { font-size: 15.5px; font-weight: 800; color: var(--navy-950); margin-bottom: 4px; line-height: 1.4; }
.tsp-plan__en { font-size: 12px; font-weight: 700; color: var(--purple-700); margin-bottom: 12px; }
.tsp-plan__row { font-size: 13.5px; color: var(--ink); display: flex; gap: 8px; }
.tsp-plan__row + .tsp-plan__row { margin-top: 5px; }
.tsp-plan__k { flex: none; color: var(--muted); font-weight: 700; }
.tsp-plan__lessons { font-weight: 800; color: var(--navy-800); }

.tsp-sched { margin-top: 18px; }
.tsp-sched__h { font-size: 14.5px; font-weight: 800; color: var(--navy-950); margin-bottom: 10px; }
.tsp-schedlist { display: grid; gap: 7px; }
.tsp-schedrow {
  display: flex; align-items: baseline; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px;
}
.tsp-schedrow__q { flex: none; min-width: 62px; font-size: 12px; font-weight: 800; color: var(--purple-700); }
.tsp-schedrow__t { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tsp-schedrow__t span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.tsp-schedrow__n { margin-left: auto; flex: none; font-size: 13px; font-weight: 800; color: var(--navy-800); }
.tsp-schedrow--total { background: var(--purple-100); border-color: transparent; }
.tsp-schedrow--total .tsp-schedrow__t { font-weight: 800; }

/* ---------- lesson detail accordions ---------- */
.tsp-acc { display: grid; gap: 10px; margin-top: 20px; }
details.tsp-accitem { padding: 0; }
.tsp-accitem summary {
  list-style: none; cursor: pointer; padding: 15px 18px;
  font-size: 14.5px; font-weight: 700; color: var(--navy-950);
  display: flex; align-items: center; gap: 10px;
}
.tsp-accitem summary::-webkit-details-marker { display: none; }
.tsp-accitem summary::after { content: "＋"; margin-left: auto; color: var(--purple-700); font-weight: 800; flex: none; }
.tsp-accitem[open] summary::after { content: "－"; }
.tsp-accitem summary span { font-size: 12px; font-weight: 700; color: var(--purple-700); }
.tsp-accbody { padding: 0 18px 18px; display: grid; gap: 10px; }
.tsp-track { border-left: 3px solid var(--line); padding-left: 13px; }
.tsp-track--test { border-left-color: var(--navy-700); }
.tsp-track--basic { border-left-color: var(--purple-700); }
.tsp-track__k { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; margin-bottom: 3px; }
.tsp-track--test .tsp-track__k { color: var(--navy-700); }
.tsp-track--basic .tsp-track__k { color: var(--purple-700); }
.tsp-track__b { font-size: 13.5px; color: var(--muted); }
