:root {
  --bg: #f4f2ee;
  --surface: #fffdfa;
  --surface-strong: #ffffff;
  --text: #1f1e1c;
  --muted: #5a5853;
  --line: #ddd7cf;
  --red: #c7392f;
  --red-deep: #9f221b;
  --ink-soft: #2b2926;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(31, 30, 28, 0.08);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  background: radial-gradient(1100px 650px at 8% -10%, #ffffff 0%, transparent 56%),
    radial-gradient(900px 540px at 100% 0%, #ffdcd8 0%, transparent 58%), var(--bg);
  line-height: 1.7;
}

h1,
h2,
h3 {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0;
}

p {
  margin: 0;
}

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

.container {
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 253, 250, 0.9);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.brand span {
  color: var(--red);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink-soft);
  background: #f0ece6;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.42rem 0.56rem;
  color: var(--ink-soft);
}

.hero {
  padding: 5.2rem 0 3.2rem;
}

.hero.hero-compact {
  padding: 2.8rem 0 0.6rem;
}

.section.section-quick {
  padding-top: 1rem;
}

.section-kv {
  padding-top: 0.4rem;
  padding-bottom: 0.35rem;
}

.home-kv {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffefa, #f9f6f2);
  box-shadow: var(--shadow);
  padding: 1.2rem 0.9rem 0.8rem;
}

.home-kv img {
  display: block;
  width: min(100%, 980px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 24px 30px rgba(31, 30, 28, 0.14));
}

.hero.hero-after-kv {
  padding-top: 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ffe7e4;
  color: var(--red-deep);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  color: var(--ink-soft);
}

.hero-lead {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.72rem 1.2rem;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--red);
  color: #fff;
}

.button-primary:hover {
  background: var(--red-deep);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--ink-soft);
}

.button-dark {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.hero-panel {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.hero-panel h3 {
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.metric {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 0.8rem;
  align-items: baseline;
  border-top: 1px solid #eee8df;
  padding: 0.75rem 0;
}

.metric:first-of-type {
  border-top: 0;
  padding-top: 0.15rem;
}

.metric-num {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--red);
}

.metric-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.metric-link:hover {
  color: var(--ink-soft);
}

.metric-arrow {
  color: var(--red);
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.section {
  padding: 2.6rem 0;
}

.section h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  margin-bottom: 0.8rem;
}

.section-lead {
  color: var(--muted);
  max-width: 70ch;
}

.grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 8px 22px rgba(36, 34, 31, 0.06);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.feature-card {
  padding: 0;
  overflow: hidden;
}

.feature-thumb {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f8f4ef;
}

.feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-body {
  padding: 0.85rem 0.9rem 0.95rem;
}

.feature-body h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.feature-body p {
  color: var(--muted);
  font-size: 0.9rem;
}

.steps {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.8rem;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.95rem;
  align-items: start;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  border-radius: 14px;
  padding: 0.9rem;
}

.step-index {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #db5f58);
}

.step-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 36%);
  gap: 0.95rem;
  align-items: center;
}

.step-copy {
  min-width: 0;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--muted);
  font-size: 0.93rem;
}

.step-media {
  margin: 0;
  border: 1px solid #e8e2d9;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f4f0;
}

.step-media img {
  display: block;
  width: 100%;
  height: auto;
}

.notice {
  border-left: 4px solid var(--red);
  background: #fff4f2;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  color: #4a302d;
}

.cta {
  margin-top: 1.4rem;
  background: linear-gradient(135deg, #fef9f8, #fff);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem;
}

.media-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

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

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

.media-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(30, 27, 24, 0.07);
}

.media-card img {
  display: block;
  width: 100%;
  height: auto;
}

.media-card figcaption {
  padding: 0.7rem 0.85rem 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 1.6rem 0 2rem;
  color: var(--muted);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .media-grid-3,
  .media-grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.4rem;
  }

  .hero.hero-compact {
    padding-top: 1.9rem;
    padding-bottom: 0.35rem;
  }

  .hero.hero-after-kv {
    padding-top: 0.6rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    gap: 0.15rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .step-body {
    grid-template-columns: 1fr;
  }
}
