/* サルサの歴史 — LP styles */
:root {
  --red: #7A1E1E;
  --red-deep: #5C1414;
  --gold: #C9A227;
  --gold-soft: #F2C14E;
  --cream: #FAF5EC;
  --cream-2: #F3EAD8;
  --ink: #2B211B;
  --ink-soft: #5C4A3A;
  --dark: #1E1410;
  --line: #E5D9C3;
  --white: #FFFDF8;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(43, 33, 27, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
em { font-style: normal; font-weight: 700; color: var(--red); }

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 720px; }

h1, h2, h3 {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  line-height: 1.5;
  margin: 0 0 16px;
}

h2 { font-size: clamp(26px, 4.5vw, 38px); letter-spacing: 0.02em; }
h3 { font-size: clamp(20px, 3vw, 26px); }

.section-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.28em;
  color: var(--red);
}
.section-kicker--light { color: var(--gold-soft); }

.section-lead {
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--ink-soft);
  margin: 0 0 32px;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(250, 245, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}
.site-nav a:hover { background: var(--cream-2); color: var(--red); }

/* ヒーロー */
.hero { position: relative; background: var(--dark); color: #fff; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  height: min(78vh, 640px);
  min-height: 440px;
  object-fit: cover;
  object-position: center 30%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 20, 16, 0.18) 0%, rgba(30, 20, 16, 0.42) 55%, rgba(30, 20, 16, 0.88) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1020px;
  margin: -260px auto 0;
  padding: 0 20px 72px;
}
.hero__kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--gold-soft);
}
.hero h1 {
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.35;
  margin: 0 0 18px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.hero h1 span { color: var(--gold-soft); }
.hero__lead {
  font-size: clamp(15px, 2.4vw, 19px);
  line-height: 2;
  max-width: 640px;
  margin: 0 0 28px;
  color: #F7EEDD;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__note { margin: 20px 0 0; font-size: 12px; color: rgba(247, 238, 221, 0.75); }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--dark); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28); }
.btn--primary:hover { background: var(--gold-soft); }
.btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}

/* 流れ */
.flow { padding: 88px 0 72px; }
.flow__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.flow__steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(43, 33, 27, 0.06);
}
.flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  margin-bottom: 10px;
}
.flow__steps strong { display: block; font-size: 16px; line-height: 1.5; }
.flow__steps span:last-child { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; margin-top: 4px; }

/* 歴史 */
.story { padding: 40px 0 88px; }
.timeline {
  position: relative;
  margin-top: 8px;
  padding-left: 28px;
  border-left: 3px solid var(--gold);
}
.era { margin: 0 0 72px; }
.era:last-child { margin-bottom: 0; }
.era__head { position: relative; }
.era__head::before {
  content: "";
  position: absolute;
  left: -38.5px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold);
}
.era__when {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--red);
}
.era__figure { margin: 20px 0 24px; }
.era__figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.era__figure figcaption { margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); }
.era__body p { margin: 0 0 16px; font-size: 16px; }
.era__points {
  margin: 20px 0 0;
  padding: 18px 20px 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  list-style: none;
}
.era__points li { margin: 0 0 10px; font-size: 15px; line-height: 1.8; }
.era__points li:last-child { margin-bottom: 0; }
.era__points li::before { content: "♪ "; color: var(--red); font-weight: 900; }

/* 年表 */
.chronology { background: var(--red-deep); color: #F7EEDD; padding: 88px 0; }
.chronology .section-kicker { color: var(--gold-soft); }
.chronology h2 { color: #fff; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: rgba(255, 255, 255, 0.06); font-size: 15px; }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; line-height: 1.8; }
thead th {
  background: rgba(242, 193, 78, 0.18);
  color: var(--gold-soft);
  font-size: 13px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
tbody th { white-space: nowrap; color: var(--gold-soft); font-weight: 700; }
tbody tr { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.chronology__note { margin: 18px 0 0; font-size: 13px; color: rgba(247, 238, 221, 0.75); }

/* 用語 */
.words { padding: 88px 0; }
.words__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.word {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 4px 14px rgba(43, 33, 27, 0.06);
}
.word h3 { font-size: 19px; margin-bottom: 8px; }
.word h3 span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-left: 6px;
}
.word p { margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--ink-soft); }

/* 締め */
.closing {
  background: var(--dark);
  color: #F7EEDD;
  padding: 88px 0;
  text-align: center;
}
.closing h2 { color: #fff; }
.closing p { font-size: 16.5px; }
.closing .btn { margin-top: 12px; }

/* フッター */
.site-footer { padding: 40px 0 48px; background: var(--cream-2); }
.site-footer p { margin: 0 0 8px; }
.site-footer__small { font-size: 13px; color: var(--ink-soft); }

/* スマホ */
@media (max-width: 820px) {
  .flow__steps { grid-template-columns: repeat(2, 1fr); }
  .flow__steps li:last-child { grid-column: 1 / -1; }
  .words__grid { grid-template-columns: 1fr; }
  .hero__media img { height: 62vh; min-height: 400px; }
  .hero__inner { margin-top: -230px; }
}
@media (max-width: 560px) {
  .site-nav { display: none; }
  .flow, .words { padding: 64px 0; }
  .story { padding: 24px 0 64px; }
  .chronology, .closing { padding: 64px 0; }
  .timeline { padding-left: 20px; }
  .era__head::before { left: -30.5px; }
  tbody th { white-space: normal; }
  .hero__actions .btn { flex: 1; text-align: center; }
}
