:root {
  --ivory: #fbf8f2;
  --linen: #f2eadf;
  --warm-white: #fffdf9;
  --ink: #2f2924;
  --soft-ink: #6f665c;
  --brown: #4d392d;
  --deep-brown: #241b16;
  --gold: #b88750;
  --pale-gold: #e5cfaa;
  --sage: #75866f;
  --line: rgba(77, 57, 45, 0.15);
  --shadow: 0 20px 54px rgba(47, 41, 36, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(77, 57, 45, 0.12);
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner,
.section-inner,
.hero-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.brand img {
  width: 72px;
  height: auto;
}

.brand-name {
  display: block;
  color: var(--deep-brown);
  font-family: "Times New Roman", "Yu Mincho", serif;
  font-size: 19px;
  line-height: 1.2;
}

.brand-sub {
  display: block;
  color: var(--soft-ink);
  font-size: 11px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 20px;
  color: var(--soft-ink);
  font-size: 13px;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.button.secondary {
  background: transparent;
  color: var(--brown);
  border-color: rgba(77, 57, 45, 0.32);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(47, 41, 36, 0.14);
  background: #a77642;
  border-color: #a77642;
}

.button.secondary:hover {
  background: rgba(184, 135, 80, 0.08);
  border-color: var(--gold);
  box-shadow: none;
}

.button:focus-visible {
  outline: 3px solid rgba(184, 135, 80, 0.32);
  outline-offset: 3px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--deep-brown);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 27, 22, 0.9), rgba(36, 27, 22, 0.62), rgba(36, 27, 22, 0.2)),
    var(--hero-image, url("./cpa-assets/hero-training-generated.png")) center right / cover;
  transform: scale(1.02);
}

.hero-inner {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 540px;
  padding: 92px 0 70px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--pale-gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--deep-brown);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.35;
}

.hero h1 {
  max-width: 780px;
  color: #fff;
  font-size: clamp(38px, 5.6vw, 68px);
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

section {
  padding: 82px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.section-kicker {
  color: var(--gold);
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.section-text,
.lead,
.muted {
  color: var(--soft-ink);
}

.lead {
  max-width: 760px;
  margin: 0;
  font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.info-card,
.media-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--warm-white);
  box-shadow: 0 12px 34px rgba(47, 41, 36, 0.06);
}

.card,
.info-card {
  padding: 28px;
}

.card h3,
.info-card h3 {
  margin-bottom: 12px;
  font-size: 25px;
}

.card p,
.info-card p {
  margin: 0;
  color: var(--soft-ink);
}

.media-card {
  overflow: hidden;
}

.media-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: #f3eee6;
}

.media-card .body {
  padding: 24px;
}

.spec {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) 1fr;
  margin: 0;
  border-top: 1px solid var(--line);
}

.spec dt,
.spec dd {
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.spec dt {
  color: var(--brown);
  font-weight: 800;
}

.spec dd {
  color: var(--soft-ink);
}

.list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--soft-ink);
}

.list li + li {
  margin-top: 8px;
}

.band {
  background: var(--warm-white);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.video-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius);
  background: #000;
}

.cta {
  background: var(--deep-brown);
  color: #fff;
}

.cta h2 {
  color: #fff;
}

.cta .section-text {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  padding: 36px 0;
  background: #1f1713;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.site-footer .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .section-head,
  .grid,
  .grid.three,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 500px;
  }

  .media-card img {
    height: 230px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .section-inner,
  .hero-inner {
    width: min(100% - 28px, 1160px);
  }

  .brand {
    min-width: 0;
  }

  section {
    padding: 64px 0;
  }

  .spec {
    grid-template-columns: 1fr;
  }

  .spec dt {
    padding-bottom: 3px;
    border-bottom: 0;
  }

  .spec dd {
    padding-top: 0;
  }
}
