/* =========================================================================
   MyTutor — TOEIC テスト対策コース — hub page
   Built to the REVISED "Clear Professional" guideline. Scoped under .th.
   Same shared template as 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 .th { margin-bottom: 0; }
.toeic-hub-page .free-trial-cta { margin-top: 0; }
.th-section:last-child { padding-bottom: 40px; }

.th {
  --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;
}
.th *, .th *::before, .th *::after { box-sizing: inherit; }
.th p, .th h1, .th h2, .th h3, .th h4, .th ul, .th ol { margin: 0; padding: 0; }
.th ul, .th ol { list-style: none; }
.th img { max-width: 100%; display: block; }
.th a { color: inherit; }

/* ---------- shared utilities (mirror css/main.css) ---------- */
.th .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;
}
.th div.mt-card:hover { border-color: rgba(3, 27, 104, 0.12); box-shadow: var(--shadow-tight); }
.th 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; }
.th .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;
}
.th .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;
}
.th .mt-course-layout-wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

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

/* ---------- buttons ---------- */
.th-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;
}
.th-btn--primary,
.th-btn--primary:link,
.th-btn--primary:visited { background: var(--navy-800); color: #fff; border: 1px solid var(--navy-800); }
.th-btn--primary:hover { background: var(--navy-950); border-color: var(--navy-950); color: #fff; text-decoration: none; }
.th-btn--ghost,
.th-btn--ghost:link,
.th-btn--ghost:visited { background: transparent; color: var(--navy-800); border: 1.5px solid var(--line); }
.th-btn--ghost:hover { border-color: var(--navy-800); color: var(--navy-800); text-decoration: none; }
.th-btn--sm { font-size: 13.5px; padding: 10px 16px; }
.th-btn--block { width: 100%; }

/* ---------- hero ---------- */
.th-hero { background: #ececec; padding: 38px 0 46px; }
.th-hero__title { font-size: 30px; line-height: 1.22; font-weight: 700; color: var(--navy-950); margin: 10px 0 6px; }
.th-hero__lead { color: var(--muted); font-size: 16px; line-height: 1.8; margin-bottom: 20px; }
.th-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.th-chip { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.th-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- grid + check rows ---------- */
.th-grid { display: grid; gap: 14px; margin-top: 22px; }
.th-checks { display: grid; gap: 11px; margin-top: 22px; }
@media (min-width: 640px) { .th-checks--2 { grid-template-columns: 1fr 1fr; } }
.th-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;
}
.th-check__i { color: var(--teal-600); font-weight: 800; flex: none; }

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

/* ---------- question-type cards (clickable) ---------- */
.th-qgrid { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 560px) { .th-qgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .th-qgrid { grid-template-columns: 1fr 1fr 1fr; } }
.th-qcard { padding: 20px; display: flex; flex-direction: column; height: 100%; }
.th-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;
}
.th-qcard__h { font-size: 15.5px; font-weight: 800; color: var(--navy-950); margin-bottom: 4px; line-height: 1.4; }
.th-qcard__jp { display: block; font-size: 12.5px; font-weight: 700; color: var(--purple-700); margin-top: 3px; }
.th-qcard__b { font-size: 13.5px; color: var(--muted); margin: 8px 0 16px; }
.th-qcard__more { margin-top: auto; font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.5; transition: color .16s ease; }
.th-qcard__more::after { content: " →"; }
.th-qcard:hover .th-qcard__more { color: var(--navy-800); }

/* ---------- lesson process steps ---------- */
.th-steps { display: grid; gap: 12px; margin-top: 22px; }
.th-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;
}
.th-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;
}
.th-step__h { font-size: 16px; font-weight: 700; color: var(--navy-950); margin-bottom: 5px; }
.th-step__b { font-size: 14px; color: var(--muted); }

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

/* ---------- note ---------- */
.th-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;
}
.th-note strong { color: var(--navy-950); }

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


/* ---------- hub: group heading + course cards ---------- */
.th-group { margin-top: 26px; }
.th-group:first-of-type { margin-top: 22px; }
.th-group__h { font-size: 17px; font-weight: 800; color: var(--navy-950); display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.th-group__h::before { content: ""; width: 6px; height: 18px; border-radius: 3px; background: var(--purple-700); flex: none; }
.th-group__lead { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }
.th-cardgrid { display: grid; gap: 14px; }
@media (min-width: 620px) { .th-cardgrid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 620px) { .th-cardgrid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .th-cardgrid--3 { grid-template-columns: repeat(3, 1fr); } }
.th .th-c { padding: 22px 20px; display: flex; flex-direction: column; height: 100%; }
.th-c__k { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--purple-700); margin-bottom: 8px; }
.th-c__h { font-size: 17px; font-weight: 800; color: var(--navy-950); margin-bottom: 7px; line-height: 1.4; }
.th-c__b { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.th-c__meta { font-size: 12.5px; font-weight: 700; color: var(--navy-800); background: var(--purple-100); border-radius: 999px; padding: 4px 11px; align-self: flex-start; margin-top: 10px; margin-bottom: 14px; }
.th-c__more { margin-top: auto; align-self: flex-end; padding-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); transition: color .16s ease; }
.th-c__more::after { content: " →"; }
.th-c:hover .th-c__more { color: var(--navy-800); }
.th-quick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
