/* ============================================
   兵庫県健康づくり研修会支援事業 LP
   ============================================ */

:root {
  /* Brand */
  --c-navy: #1B3A6B;
  --c-navy-deep: #0F2547;
  --c-green: #2F7A4D;
  --c-green-deep: #205637;
  --c-deep: #3D4A5C;

  /* Neutral */
  --c-white: #FFFFFF;
  --c-paper: #FBFAF7;
  --c-mist: #F2F5F2;
  --c-line: #E3E6E1;
  --c-text: #1F2A3A;
  --c-muted: #5F6B7A;

  /* Accents */
  --c-gold: #B0883A;
  --c-blush: #F6F1E7;

  /* Type */
  --f-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;

  /* Layout */
  --max-w: 1180px;
  --pad-x: clamp(20px, 4vw, 56px);

  --radius-sm: 4px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.75;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.header-top {
  background: var(--c-navy-deep);
  color: #cfd8e6;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.header-top-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.header-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
}
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--c-navy);
  color: white;
  border-radius: 2px;
  flex-shrink: 0;
}
.brand-meta { line-height: 1.3; }
.brand-pretitle {
  font-size: 10px; letter-spacing: 0.14em; color: var(--c-muted);
}
.brand-title {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--c-navy-deep);
  letter-spacing: 0.02em;
}
.nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 28px;
  font-size: 13px;
}
.nav a {
  color: var(--c-text);
  padding: 6px 0;
  position: relative;
  font-weight: 500;
}
.nav a:hover { color: var(--c-navy); }
.nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--c-green);
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  font-size: 14px; font-weight: 600;
  border: none; border-radius: 2px;
  transition: all 0.18s ease;
  letter-spacing: 0.04em;
}
.btn-primary {
  background: var(--c-green);
  color: white;
}
.btn-primary:hover { background: var(--c-green-deep); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--c-navy);
  border: 1px solid var(--c-navy);
}
.btn-outline:hover { background: var(--c-navy); color: white; }
.btn-lg {
  padding: 16px 36px;
  font-size: 15px;
}
.btn-xl {
  padding: 20px 48px;
  font-size: 16px;
}
.btn-arrow {
  width: 14px; height: 10px;
  display: inline-block;
  position: relative;
}
.btn-arrow::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 2px;
  height: 1.5px; background: currentColor;
}
.btn-arrow::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 8px; height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* ===== Section base ===== */
section { scroll-margin-top: 100px; }
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section {
  padding: 96px 0;
}
.section-tight { padding: 64px 0; }
.section-paper { background: var(--c-paper); }
.section-mist { background: var(--c-mist); }
.section-navy { background: var(--c-navy-deep); color: white; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--c-green);
  font-weight: 600;
  text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1.5px;
  background: var(--c-green);
}
.section-navy .eyebrow { color: #98c5ad; }
.section-navy .eyebrow::before { background: #98c5ad; }

.h-section {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.4;
  color: var(--c-navy-deep);
  letter-spacing: 0.02em;
  margin: 12px 0 0;
}
.section-navy .h-section { color: white; }
.h-section .accent { color: var(--c-green); }

.section-head {
  margin-bottom: 56px;
}
.section-sub {
  font-size: 15px; color: var(--c-muted);
  max-width: 720px;
  margin-top: 16px;
  text-wrap: pretty;
}
.section-navy .section-sub { color: #c9d3e2; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--c-paper);
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--c-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero-badge-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: white;
  border: 1px solid var(--c-navy);
  color: var(--c-navy);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
}
.hero-badge.green { border-color: var(--c-green); color: var(--c-green); }
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

.hero h1 {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--c-navy-deep);
  margin: 0 0 28px;
}
.hero h1 .stripe {
  background: linear-gradient(transparent 60%, rgba(47, 122, 77, 0.18) 60%);
  padding: 0 4px;
}
.hero h1 .small {
  display: block;
  font-size: 0.5em;
  color: var(--c-muted);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.hero-lead {
  font-size: 16px;
  line-height: 1.95;
  color: var(--c-text);
  margin: 0 0 36px;
  max-width: 540px;
  text-wrap: pretty;
}
.hero-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  align-items: center;
}
.hero-meta {
  font-size: 12px; color: var(--c-muted);
  letter-spacing: 0.06em;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: white;
  border: 1px solid var(--c-line);
}
.hero-visual-inner {
  position: absolute; inset: 16px;
  background:
    linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-deep) 100%);
  overflow: hidden;
}
.hero-visual-inner::before {
  content: ""; position: absolute;
  width: 200%; height: 200%; left: -50%; top: -50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.06) 0, transparent 30%),
    radial-gradient(circle at 70% 70%, rgba(47, 122, 77, 0.25) 0, transparent 35%);
}
.hero-visual-band {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: white;
  padding: 24px 22px;
  border-top: 4px solid var(--c-green);
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.hero-stat { padding: 0 12px; border-left: 1px solid var(--c-line); }
.hero-stat:first-child { border-left: 0; padding-left: 0; }
.hero-stat-num {
  font-family: var(--f-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--c-navy-deep);
  line-height: 1;
}
.hero-stat-num .unit { font-size: 0.5em; margin-left: 2px; color: var(--c-muted); font-weight: 500; }
.hero-stat-label {
  font-size: 10px;
  color: var(--c-muted);
  letter-spacing: 0.1em;
  margin-top: 6px;
}
.hero-visual-tag {
  position: absolute;
  top: 32px; left: 32px;
  color: white;
  font-family: var(--f-serif);
  letter-spacing: 0.12em;
}
.hero-visual-tag-en {
  font-size: 11px; color: rgba(255,255,255,0.6);
  margin-bottom: 6px; letter-spacing: 0.3em;
}
.hero-visual-tag-jp {
  font-size: 22px;
  line-height: 1.5;
}

/* ===== Trust bar ===== */
.trust-bar {
  background: white;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.trust-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.trust-item {
  display: flex; align-items: flex-start; gap: 14px;
}
.trust-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--c-navy);
  color: var(--c-navy);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.trust-text {
  font-size: 13px;
  line-height: 1.5;
}
.trust-text strong {
  display: block;
  font-size: 14px;
  color: var(--c-navy-deep);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-points {
  list-style: none; padding: 0; margin: 32px 0 0;
}
.about-points li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
  align-items: baseline;
}
.about-points li:first-child { border-top: 1px solid var(--c-line); }
.about-points li:not(:has(b)) { grid-template-columns: 1fr; }
.about-points b {
  font-family: var(--f-serif);
  color: var(--c-green);
  font-size: 18px;
  font-weight: 600;
}
.about-points span {
  font-size: 14px;
  line-height: 1.65;
}

.about-visual {
  position: relative;
  padding: 32px;
  background: var(--c-mist);
}
.about-visual-title {
  font-family: var(--f-serif);
  font-size: 18px;
  color: var(--c-navy-deep);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-green);
}
.relation-diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.rd-box {
  background: white;
  padding: 16px 20px;
  border-left: 4px solid var(--c-navy);
  font-size: 13px;
  line-height: 1.5;
}
.rd-box.green { border-left-color: var(--c-green); }
.rd-box strong {
  display: block;
  font-family: var(--f-serif);
  color: var(--c-navy-deep);
  font-size: 15px;
  margin-bottom: 2px;
}
.rd-arrow {
  width: 1px; height: 18px; background: var(--c-muted);
  margin: 0 auto;
  position: relative;
}
.rd-arrow::after {
  content: ""; position: absolute; bottom: -1px; left: 50%;
  width: 8px; height: 8px;
  border-right: 1px solid var(--c-muted);
  border-bottom: 1px solid var(--c-muted);
  transform: translateX(-50%) rotate(45deg);
}

/* ===== Target ===== */
.target-card {
  background: white;
  border: 1px solid var(--c-line);
  padding: 40px;
  position: relative;
}
.target-card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 80px; height: 4px;
  background: var(--c-green);
}
.target-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}
.target-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
}
.target-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  font-size: 14px;
  line-height: 1.65;
  align-items: baseline;
}
.target-check {
  width: 16px; height: 16px;
  display: grid; place-items: center;
  background: var(--c-green);
  color: white;
  font-size: 10px;
}
.target-tag {
  display: inline-block;
  background: var(--c-blush);
  color: var(--c-gold);
  padding: 4px 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.target-h {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--c-navy-deep);
  margin: 0;
  line-height: 1.5;
}

/* ===== Categories ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  background: white;
  border: 1px solid var(--c-line);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: all 0.2s;
}
.cat-card:hover { box-shadow: 0 8px 24px rgba(27, 58, 107, 0.08); transform: translateY(-2px); }
.cat-card-num {
  font-family: var(--f-serif);
  font-size: 13px;
  color: var(--c-muted);
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}
.cat-card-code {
  font-family: var(--f-serif);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  color: var(--c-navy-deep);
  margin-bottom: 20px;
  display: block;
}
.cat-card-en {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-green);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cat-card-title {
  font-family: var(--f-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--c-navy-deep);
  line-height: 1.5;
  margin: 0 0 16px;
}
.cat-card-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-muted);
  margin-bottom: 24px;
}
.cat-issues, .cat-effects {
  font-size: 12px;
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 6px;
}
.cat-issues li, .cat-effects li {
  position: relative;
  padding-left: 14px;
  line-height: 1.55;
}
.cat-issues li::before, .cat-effects li::before {
  content: ""; position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1.5px;
  background: var(--c-muted);
}
.cat-card-divider {
  height: 1px; background: var(--c-line);
  margin: 20px 0 16px;
}
.cat-card-sublabel {
  font-size: 11px;
  color: var(--c-navy);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

/* ===== Courses ===== */
.course-filter-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
  align-items: center;
}
.course-filter-label {
  font-size: 12px; color: var(--c-muted);
  letter-spacing: 0.1em;
  margin-right: 8px;
}
.course-filter {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--c-line);
  font-size: 13px;
  color: var(--c-text);
  transition: all 0.15s;
}
.course-filter:hover { border-color: var(--c-navy); }
.course-filter.active {
  background: var(--c-navy);
  color: white;
  border-color: var(--c-navy);
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.course-grid.list { grid-template-columns: 1fr; }
.course-grid.triple { grid-template-columns: repeat(3, 1fr); }

.course-card {
  background: white;
  border: 1px solid var(--c-line);
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  transition: all 0.2s;
  overflow: hidden;
}
.course-card:hover {
  border-color: var(--c-navy);
  box-shadow: 0 8px 24px rgba(27, 58, 107, 0.08);
}
.course-no-band {
  background: var(--c-navy-deep);
  color: white;
  padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.course-card[data-cat="diet"] .course-no-band { background: var(--c-green-deep); }
.course-card[data-cat="mind"] .course-no-band { background: var(--c-deep); }
.course-no {
  font-family: var(--f-serif);
  font-size: 13px;
}
.course-no b { font-size: 18px; margin-left: 6px; }
.course-no-cat { color: rgba(255,255,255,0.7); }

.course-body {
  padding: 24px 24px 16px;
}
.course-title {
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-navy-deep);
  line-height: 1.5;
  margin: 0 0 6px;
}
.course-sub {
  font-size: 13px;
  color: var(--c-green);
  font-weight: 500;
  margin-bottom: 18px;
}
.course-meta-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 18px;
}
.course-tag {
  font-size: 11px;
  padding: 3px 10px;
  background: var(--c-mist);
  color: var(--c-text);
  letter-spacing: 0.06em;
}
.course-tag.duration { background: var(--c-navy); color: white; }
.course-tag.online { background: var(--c-blush); color: var(--c-gold); }
.course-tag.offline { background: white; border: 1px solid var(--c-navy); color: var(--c-navy); }

.course-target {
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-muted);
  padding: 12px 14px;
  background: var(--c-mist);
  margin-bottom: 16px;
  border-left: 2px solid var(--c-green);
}
.course-target b {
  display: inline-block;
  font-size: 10px;
  color: var(--c-navy-deep);
  letter-spacing: 0.1em;
  margin-right: 8px;
}

.course-structure {
  font-size: 12px;
  display: grid; gap: 6px;
  margin-bottom: 16px;
}
.course-structure-h {
  font-size: 10px;
  color: var(--c-navy-deep);
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}
.course-structure-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--c-line);
  align-items: baseline;
}
.course-structure-row:last-child { border-bottom: 0; }
.course-structure-time {
  font-family: var(--f-serif);
  font-size: 12px;
  color: var(--c-green);
  font-weight: 600;
}
.course-structure-body {
  font-size: 12px;
  color: var(--c-text);
  line-height: 1.55;
}
.course-deliverable {
  background: var(--c-paper);
  padding: 14px 18px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--c-text);
  border-top: 1px solid var(--c-line);
}
.course-deliverable b {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--c-navy-deep);
  margin-bottom: 6px;
}

/* List variant */
.course-grid.list .course-card {
  display: grid;
  grid-template-columns: 80px 1fr 320px;
  grid-template-rows: auto;
}
.course-grid.list .course-no-band {
  grid-column: 1;
  grid-row: 1 / -1;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 24px 8px;
}
.course-grid.list .course-no-band .course-no-cat { margin-top: 8px; font-size: 10px; }
.course-grid.list .course-body { grid-column: 2; }
.course-grid.list .course-deliverable {
  grid-column: 3; grid-row: 1 / -1;
  border-top: 0;
  border-left: 1px solid var(--c-line);
  background: var(--c-paper);
  padding: 24px;
  display: flex; flex-direction: column; justify-content: center;
}

/* Triple variant: compact card */
.course-grid.triple .course-target { display: none; }
.course-grid.triple .course-structure { display: none; }
.course-grid.triple .course-body { padding-bottom: 24px; }

/* ===== Courses TABLE ===== */
.ctable-wrap {
  background: white;
  border: 1px solid var(--c-line);
  overflow-x: auto;
}
.ctable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 980px;
}
.ctable thead th {
  background: var(--c-navy-deep);
  color: white;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.ctable thead th:last-child { border-right: 0; }
.ctable .th-no { width: 56px; text-align: center; }
.ctable .th-cat { width: 144px; }
.ctable .th-title { width: 280px; }
.ctable .th-format { width: 140px; }
.ctable .th-detail { min-width: 320px; }

.ctable tbody td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
  line-height: 1.65;
}
.ctable tbody tr:hover td { background: var(--c-paper); }
.ctable tbody tr:last-child td { border-bottom: 0; }

.td-no { text-align: center; }
.td-no-num {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--c-navy-deep);
  display: inline-block;
  padding-top: 2px;
}

.cat-chip {
  display: inline-flex; flex-direction: column;
  padding: 6px 12px 8px;
  border-left: 3px solid var(--c-navy);
  background: var(--c-mist);
  min-width: 130px;
}
.cat-chip-exercise { border-left-color: var(--c-navy); }
.cat-chip-diet { border-left-color: var(--c-green); }
.cat-chip-mind { border-left-color: var(--c-deep); }
.cat-chip-code {
  font-family: var(--f-serif);
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.1em;
  font-weight: 600;
}
.cat-chip-label {
  font-size: 12px;
  color: var(--c-navy-deep);
  font-weight: 600;
  margin-top: 2px;
}

.td-title-main {
  font-family: var(--f-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-navy-deep);
  line-height: 1.5;
  margin-bottom: 4px;
}
.td-title-sub {
  font-size: 12px;
  color: var(--c-green);
  line-height: 1.5;
}

.td-duration {
  font-family: var(--f-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-navy-deep);
  margin-bottom: 8px;
}
.td-format-tags { margin-bottom: 8px; }
.ft {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.ft.both { background: var(--c-mist); color: var(--c-navy-deep); }
.ft.online { background: var(--c-blush); color: var(--c-gold); }
.ft.offline { background: white; border: 1px solid var(--c-navy); color: var(--c-navy); }
.td-capacity {
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.04em;
}

.td-detail-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 6px 0;
  align-items: baseline;
}
.td-detail-row + .td-detail-row { border-top: 1px dotted var(--c-line); }
.td-detail-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: white;
  background: var(--c-navy);
  font-weight: 600;
  padding: 3px 6px;
  text-align: center;
  align-self: start;
  margin-top: 3px;
}
.td-detail-label.gold { background: var(--c-gold); }
.td-detail-body {
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-text);
}
.td-structure-item {
  display: block;
  margin-bottom: 4px;
}
.td-structure-item b {
  display: inline-block;
  min-width: 64px;
  font-family: var(--f-serif);
  font-size: 11px;
  color: var(--c-green);
  font-weight: 600;
  margin-right: 8px;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}
.brand-sep {
  width: 1px;
  height: 32px;
  background: var(--c-line);
  display: block;
}
.header-main .pref-seal {
  width: 48px; height: 48px;
  border-width: 1.5px;
}
.header-main .pref-seal-inner {
  width: 38px; height: 38px;
  font-size: 9px;
}
.header-main .pref-seal-inner small {
  font-size: 6px;
}

.apply-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.apply-qr {
  background: white;
  padding: 12px 12px 10px;
  text-align: center;
  width: 144px;
  flex-shrink: 0;
}
.apply-qr img {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto;
}
.apply-qr-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--c-green);
  font-weight: 600;
  margin-bottom: 8px;
}
.apply-qr-caption {
  font-size: 11px;
  color: var(--c-navy-deep);
  margin-top: 6px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
@media (max-width: 960px) {
  .apply-row { grid-template-columns: 1fr; }
  .apply-qr { margin: 0 auto; }
}

/* ===== Photo placeholder for hero ===== */
.hero-photo {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2a4a76 0%, #1B3A6B 60%, #0F2547 100%);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 0.2em;
  overflow: hidden;
}
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 18px, rgba(255,255,255,0.03) 18px, rgba(255,255,255,0.03) 19px);
}
.hero-photo-marker {
  position: relative;
  text-align: center;
  padding: 16px 24px;
  border: 1px dashed rgba(255,255,255,0.3);
}
.hero-photo-marker svg {
  display: block;
  margin: 0 auto 10px;
  opacity: 0.5;
}
.hero-photo-marker-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}
.hero-photo-marker-sub {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}

/* ===== Prefecture seal ===== */
.pref-seal {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 2px solid var(--c-navy-deep);
  border-radius: 50%;
  color: var(--c-navy-deep);
  font-family: var(--f-serif);
  flex-shrink: 0;
  position: relative;
  background: white;
}
.pref-seal-inner {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.2;
  font-weight: 600;
}
.pref-seal-inner small {
  display: block;
  font-size: 7px;
  letter-spacing: 0.2em;
  color: var(--c-muted);
  margin-bottom: 2px;
  font-weight: 500;
}

/* ===== Flow ===== */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.flow-grid::before {
  content: "";
  position: absolute;
  top: 36px; left: 8%; right: 8%;
  height: 1px;
  background: var(--c-line);
}
.flow-card {
  text-align: center;
  position: relative;
  padding: 0 12px;
}
.flow-num {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  background: white;
  border: 1px solid var(--c-navy);
  color: var(--c-navy);
  display: grid; place-items: center;
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.flow-card:last-child .flow-num {
  background: var(--c-green);
  border-color: var(--c-green);
  color: white;
}
.flow-step-label {
  font-size: 10px;
  color: var(--c-muted);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.flow-title {
  font-family: var(--f-serif);
  font-size: 15px;
  color: var(--c-navy-deep);
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.5;
}
.flow-body {
  font-size: 12px;
  color: var(--c-muted);
  line-height: 1.7;
  text-align: left;
}

/* ===== FAQ ===== */
.faq-list {
  display: grid; gap: 0;
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  border-top: 1px solid var(--c-line);
}
.faq-item:last-child { border-bottom: 1px solid var(--c-line); }
.faq-q {
  padding: 22px 56px 22px 56px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: baseline;
  cursor: pointer;
  position: relative;
  font-family: var(--f-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--c-navy-deep);
  line-height: 1.6;
  background: white;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--c-paper); }
.faq-q .qmark {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--c-green);
  line-height: 1;
}
.faq-toggle {
  position: absolute; right: 24px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
}
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute;
  background: var(--c-navy);
  transition: transform 0.25s;
}
.faq-toggle::before { left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; }
.faq-toggle::after { top: 0; bottom: 0; left: 50%; width: 1.5px; margin-left: -0.75px; }
.faq-item.open .faq-toggle::after { transform: scaleY(0); }

.faq-a {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 0 56px 24px 56px;
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.85;
  background: var(--c-paper);
  display: none;
}
.faq-item.open .faq-a { display: grid; }
.faq-a .amark {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1;
}

/* ===== Contact ===== */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: white;
  margin-top: 56px;
}
.contact-left {
  padding: 56px 48px;
  background: var(--c-navy-deep);
  color: white;
}
.contact-left h3 {
  font-family: var(--f-serif);
  font-size: 26px;
  font-weight: 600;
  margin: 16px 0 16px;
  line-height: 1.5;
}
.contact-left p {
  font-size: 14px;
  line-height: 1.85;
  color: #c9d3e2;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 36px;
  background: var(--c-green);
  color: white;
  font-weight: 600;
  font-size: 16px;
}
.contact-cta:hover { background: var(--c-green-deep); }
.contact-right {
  padding: 56px 48px;
  background: white;
  border: 1px solid var(--c-line);
}
.contact-h-sm {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-green);
  font-weight: 600;
  margin-bottom: 16px;
}
.contact-org {
  font-family: var(--f-serif);
  font-size: 18px;
  color: var(--c-navy-deep);
  margin: 0 0 4px;
  font-weight: 600;
}
.contact-org-en {
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.14em;
  margin-bottom: 24px;
}
.contact-info {
  display: grid;
  gap: 16px;
}
.contact-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line);
  align-items: baseline;
}
.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-row dt {
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.16em;
  font-weight: 600;
}
.contact-row dd {
  margin: 0;
  font-size: 15px;
  color: var(--c-text);
}
.contact-tel {
  font-family: var(--f-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--c-navy-deep);
  letter-spacing: 0.04em;
  line-height: 1;
}
.contact-mail {
  font-size: 15px;
  color: var(--c-navy);
  text-decoration: underline;
  text-decoration-color: var(--c-line);
  text-underline-offset: 4px;
}

/* ===== Feature highlights ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  background: white;
  padding: 36px 32px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}
.section-navy .feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
}
.feature-num {
  font-family: var(--f-serif);
  font-size: 36px;
  font-weight: 600;
  color: #98c5ad;
  line-height: 1;
  margin-bottom: 20px;
}
.feature-h {
  font-family: var(--f-serif);
  font-size: 19px;
  color: white;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.5;
}
.feature-b {
  font-size: 13px;
  color: #c9d3e2;
  line-height: 1.85;
  margin: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: #0A1A30;
  color: #8a9bb5;
  padding: 48px 0 24px;
  font-size: 12px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-org {
  font-family: var(--f-serif);
  color: white;
  font-size: 15px;
  margin: 0 0 10px;
  font-weight: 600;
}
.footer-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
}
.footer-h {
  color: white;
  font-size: 12px;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  font-weight: 600;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px var(--pad-x) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  letter-spacing: 0.04em;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ===== Floating CTA ===== */
.float-cta {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 40;
  background: var(--c-green);
  color: white;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  border-radius: 2px;
  display: flex; align-items: center; gap: 10px;
  transition: all 0.2s;
}
.float-cta:hover { background: var(--c-green-deep); transform: translateY(-2px); }

/* ===== Hero limited-edition ribbon (v5) ===== */
.header-top-limited {
  color: #f6d97a;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.hero-limited-ribbon {
  position: relative;
  background: linear-gradient(135deg, var(--c-gold) 0%, #8d6826 100%);
  color: white;
  padding: 14px 22px 16px;
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(141, 104, 38, 0.25);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  pointer-events: none;
}
.hero-limited-ribbon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.hero-limited-ribbon-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  opacity: 0.85;
  margin-bottom: 4px;
  font-weight: 600;
}
.hero-limited-ribbon-main {
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-limited-ribbon-main b {
  font-size: 30px;
  margin: 0 4px;
  font-weight: 700;
}

/* ===== Hero full-bleed (v3) ===== */
.hero-fullbleed {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--c-paper);
}
.hero-media { position: relative; }
.hero-overlay-text {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 52%;
  padding: clamp(24px, 4vw, 64px) clamp(20px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.92) 0%,
    rgba(255,255,255,0.75) 55%,
    rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: clamp(13px, 1vw, 16px);
  color: var(--c-green);
  letter-spacing: 0.05em;
  font-weight: 600;
  margin: 0 0 16px;
}
.hero-h1 {
  font-family: var(--f-serif);
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-navy-deep);
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}
.hero-lead {
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.9;
  color: var(--c-text);
  margin: 0;
}
.hero-bg {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 70px);
  object-fit: contain;
  object-position: center center;
  background: var(--c-paper);
}
.hero-fb-inner {
  position: static;
  z-index: auto;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: auto;
}
.hero-fb-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  pointer-events: auto;
}
.hero-fb-cta .btn {
  box-shadow: 0 10px 28px rgba(15, 37, 71, 0.22);
}
.hero-stats-card {
  background: var(--c-white);
  backdrop-filter: none;
  padding: 18px 8px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  box-shadow: 0 6px 18px rgba(15, 37, 71, 0.08);
  border: 1px solid var(--c-line);
  border-radius: 2px;
  pointer-events: auto;
}
.hero-stats-card .hero-stat {
  padding: 0 24px;
  border-left: 1px solid var(--c-line);
  text-align: left;
  min-width: 110px;
}
.hero-stats-card .hero-stat:first-child { border-left: 0; }
.hero-stat-icon {
  color: var(--c-green);
  margin-bottom: 8px;
}
.hero-stats-card .hero-stat-num {
  font-family: var(--f-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--c-navy-deep);
  line-height: 1;
}
.hero-stats-card .hero-stat-num .unit {
  font-size: 0.45em;
  margin-left: 4px;
  color: var(--c-muted);
  font-weight: 500;
}
.hero-stats-card .hero-stat-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--c-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* ===== Image integrations (v2) ===== */
/* Hero photo: replace placeholder gradient with actual image */
.hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo:has(.hero-photo-img) { background: var(--c-navy-deep); }
.hero-photo:has(.hero-photo-img)::before { display: none; }

/* About section: feature image above the relation diagram */
.about-feature-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-bottom: 20px;
  background: var(--c-white);
}

/* Course table: thumbnail above title (clickable) */
.ctable .td-title { padding: 18px 18px; vertical-align: top; }
.td-title-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  max-width: 260px;
}
.td-title-thumb-btn {
  appearance: none;
  position: relative;
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.td-title-thumb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 37, 71, 0.15);
  border-color: var(--c-navy);
}
.td-title-thumb-btn:focus-visible {
  outline: 2px solid var(--c-green);
  outline-offset: 2px;
}
.td-title-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--c-paper);
}
.td-title-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  background: rgba(15, 37, 71, 0.85);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.td-title-thumb-btn:hover .td-title-zoom,
.td-title-thumb-btn:focus-visible .td-title-zoom { opacity: 1; }
.td-title-text { min-width: 0; }

/* Lightbox modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 37, 71, 0.86);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  animation: lightbox-fade 0.18s ease;
}
@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.18); }
.lightbox-figure {
  margin: 0;
  max-width: min(880px, 92vw);
  max-height: 92vh;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}
.lightbox-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(92vh - 100px);
  object-fit: contain;
  background: var(--c-paper);
}
.lightbox-caption {
  padding: 18px 28px 20px;
  border-top: 1px solid var(--c-line);
  background: white;
}
.lightbox-title {
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-navy-deep);
  line-height: 1.5;
  margin-bottom: 4px;
}
.lightbox-sub {
  font-size: 13px;
  color: var(--c-green);
  font-weight: 500;
}

/* Detail column wrap fix */
.ctable .td-detail-body {
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}
.ctable .td-detail { vertical-align: top; }

/* ===== PC override: fit courses table into container, no horizontal scroll ===== */
@media (min-width: 961px) {
  .ctable-wrap { overflow-x: visible; }
  .ctable {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }
  .ctable .th-no     { width: 44px; }
  .ctable .th-cat    { width: 112px; }
  .ctable .th-title  { width: 220px; }
  .ctable .th-format { width: 108px; }
  .ctable .th-detail { width: auto; min-width: 0; }

  .ctable thead th  { padding: 12px 12px; }
  .ctable tbody td  { padding: 16px 12px; }
  .ctable .td-title { padding: 16px 12px; }

  .ctable .cat-chip { min-width: 0; padding: 6px 10px 8px; }
  .ctable .td-title-stack { max-width: 100%; }
  .ctable .td-detail-body { word-break: normal; overflow-wrap: anywhere; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 16/10; }
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .course-grid, .course-grid.triple { grid-template-columns: 1fr; }
  .course-grid.list .course-card { grid-template-columns: 60px 1fr; }
  .course-grid.list .course-deliverable { grid-column: 1 / -1; grid-row: 2; border-left: 0; border-top: 1px solid var(--c-line); }
  .flow-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .flow-grid::before { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .about-grid, .target-grid, .contact-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .td-title-stack { max-width: 100%; gap: 10px; }
  .ctable .th-title { width: auto; }
  .lightbox-figure { max-width: 96vw; }
  .lightbox-caption { padding: 14px 18px 16px; }
  .hero-bg { max-height: none; min-height: 0; }
  .hero-fb-cta {
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 16px;
  }
  .hero-fb-cta .btn { width: 100%; justify-content: center; }
  .hero-stats-card {
    position: static;
    margin: 0 var(--pad-x);
    transform: translateY(-40px);
    grid-template-columns: repeat(3, 1fr);
    padding: 16px 4px;
  }
  .hero-stats-card .hero-stat { padding: 0 8px; min-width: 0; text-align: center; }
  .hero-stats-card .hero-stat-icon { display: flex; justify-content: center; }
  .hero-stats-card .hero-stat-num { font-size: 24px; }
}

/* ===== Mobile (≤640px): un-overlap hero v3, stack to single column ===== */
@media (max-width: 640px) {
  /* Hero container: let children flow vertically, no absolute overlays */
  .hero-fullbleed { display: flex; flex-direction: column; }

  /* 1) Limited ribbon: integrated into hero-fb-inner column on mobile */
  .hero-limited-ribbon {
    align-self: stretch;
    padding: 14px 18px;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(141, 104, 38, 0.25);
  }
  .hero-limited-ribbon-main { font-size: 16px; }
  .hero-limited-ribbon-main b { font-size: 24px; }

  /* Hero text overlay: render statically above the image on mobile */
  .hero-media { display: flex; flex-direction: column; }
  .hero-overlay-text {
    position: static;
    width: 100%;
    background: none;
    padding: 20px var(--pad-x) 8px;
    order: 1;
  }
  .hero-h1 { font-size: 26px; }
  .hero-lead { font-size: 14px; }

  /* 2) Hero image: contain inside the column, no overlay above it */
  .hero-bg {
    order: 2;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    margin-top: 16px;
  }

  /* 3) Inner block (CTA + stats): static, below image, no overlap */
  .hero-fb-inner {
    position: static;
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 20px var(--pad-x) 24px;
    pointer-events: auto;
    margin: 0;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }

  /* 4) CTA buttons: full width, stacked, no overlap with image */
  .hero-fb-cta {
    order: 1;
    margin-bottom: 0;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-fb-cta .btn { width: 100%; justify-content: center; }

  /* 5) Stats card: full width, stacked vertically (no horizontal split) */
  .hero-stats-card {
    order: 2;
    position: static;
    transform: none;
    margin: 0;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 16px;
  }
  .hero-stats-card .hero-stat {
    border-left: 0;
    border-top: 1px solid var(--c-line);
    padding: 14px 4px;
    text-align: left;
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .hero-stats-card .hero-stat:first-child { border-top: 0; }
  .hero-stats-card .hero-stat-icon { margin: 0; display: flex; justify-content: flex-start; }
  .hero-stats-card .hero-stat-num { font-size: 22px; }
  .hero-stats-card .hero-stat-label { margin-top: 0; text-align: right; }

  /* 6) Floating CTA: dock as full-width bottom bar; reserve body space */
  .float-cta {
    left: 0; right: 0; bottom: 0;
    width: 100%;
    justify-content: center;
    border-radius: 0;
    padding: 14px 16px;
    font-size: 15px;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.18);
  }
  body { padding-bottom: 64px; }
}
