:root{
  --bg: #ffffff;
  --muted: #f5f7fb;
  --text: #0b1220;
  --sub: #4b5565;
  --brand: #014297;
  --border: #e6eaf2;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.12);
  --radius: 16px;
  --max: 1120px;
}
* { box-sizing: border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a{ color: inherit; text-decoration: none; }
.container{ max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding: 12px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight: 700; letter-spacing: .02em;
  min-width: 0;
}
.brand-logo{
  height: 34px;
  width: auto;
  display:block;
}
.brand span{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 58vw;
}
@media (max-width: 420px){
  .brand-logo{ height: 28px; }
}

.nav{ display:flex; gap:14px; align-items:center; flex-wrap: wrap; justify-content:flex-end; }
.nav a{ font-size: 14px; color: var(--sub); padding: 8px 10px; border-radius: 10px; }
.nav a:hover{ background: var(--muted); color: var(--text); }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 12px 16px; border-radius: 12px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
  user-select: none; white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--brand); color: #fff; box-shadow: 0 10px 20px rgba(1,66,151,.22); }
.btn-primary:hover{ background: #013a86; }
.btn-secondary{ background: #fff; border-color: var(--border); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover{ background: var(--muted); }

.hero{ position: relative; padding: 54px 0 34px; overflow:hidden; }
.hero-bg{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.80) 45%, rgba(255,255,255,.55) 100%),
    image-set(
      url("/training/assets/hero.webp") type("image/webp"),
      url("/training/assets/hero.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
  filter: saturate(1.02);
}
.hero-inner{
  position: relative;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
  align-items: stretch;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(1,66,151,.08); color: var(--brand);
  font-weight: 800; font-size: 12px; letter-spacing: .04em;
}
h1{ margin: 12px 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; letter-spacing: .01em; }
.lead{ margin: 0 0 16px; color: var(--sub); font-size: 16px; max-width: 56ch; }
.hero-points{ display:flex; flex-wrap: wrap; gap:10px; list-style:none; padding:0; margin: 14px 0 18px; }
.pill{
  font-size: 13px; color: #0b1220;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--border);
  padding: 8px 10px; border-radius: 999px;
}
.hero-cta{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.mini-note{ margin-top: 12px; font-size: 13px; color: var(--sub); line-height: 1.7; }

.card{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card h3{ margin: 0 0 10px; font-size: 16px; }
.spec{ display:grid; gap: 10px; margin-top: 6px; }
.spec-row{
  display:flex; align-items:flex-start; justify-content:space-between; gap: 14px;
  padding: 10px 12px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border);
}
.spec-row b{ font-size: 13px; color: var(--sub); font-weight: 700; }
.spec-row span{ font-weight: 800; text-align:right; }

section{ padding: 54px 0; }
.section-muted{ background: var(--muted); }
.section-title{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap: 16px; margin-bottom: 18px;
}
.section-title h2{ margin: 0; font-size: clamp(20px, 2.5vw, 30px); letter-spacing: .01em; }
.section-title p{ margin: 0; color: var(--sub); max-width: 60ch; font-size: 14px; }

.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature{
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.feature .icon{
  width: 34px; height: 34px; border-radius: 12px;
  background: rgba(1,66,151,.08);
  display:flex; align-items:center; justify-content:center;
  color: var(--brand); margin-bottom: 10px;
  font-weight: 900;
}
.feature h3{ margin: 0 0 6px; font-size: 16px; }
.feature p{ margin: 0; color: var(--sub); font-size: 14px; }

/* =========================
   Timeline (横スクロール・競合なし完全版)
   ========================= */
.timeline{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.steps{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 12px;

  overflow-x: auto;
  padding: 6px 2px 12px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.steps::-webkit-scrollbar{ height: 8px; }
.steps::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.14); border-radius: 999px; }
.steps::-webkit-scrollbar-track{ background: transparent; }

.step{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  min-height: 96px;

  scroll-snap-align: start;
}
.step::after{
  content: none !important;
  display: none !important;
}
.step .k{
  font-size: 12px;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: .06em;
}
.step .t{
  margin-top: 4px;
  font-weight: 900;
  font-size: 14px;
}
.step .d{
  margin-top: 4px;
  color: var(--sub);
  font-size: 12px;
}

details{
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 14px;
}
details + details{ margin-top: 10px; }
summary{ cursor: pointer; font-weight: 800; list-style: none; }
summary::-webkit-details-marker{ display:none; }
details p{ margin: 10px 0 0; color: var(--sub); font-size: 14px; }

.cta-band{
  background: linear-gradient(90deg, rgba(1,66,151,.10), rgba(10,91,211,.08));
  border: 1px solid rgba(1,66,151,.16);
  border-radius: 20px;
  padding: 18px;
  display:flex; align-items:center; justify-content:space-between;
  gap: 14px; flex-wrap: wrap;
}
.cta-band .text{ max-width: 64ch; }
.cta-band .text b{ display:block; font-size: 18px; margin-bottom: 4px; }
.cta-band .text span{ color: var(--sub); font-size: 14px; }

footer{
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--sub);
  font-size: 13px;
}

@media (max-width: 960px){
  .hero-inner{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .nav a{ display:none; }

  /* SPでも横スクロール維持 */
  .steps{
    grid-auto-columns: minmax(165px, 1fr);
  }
}