:root {
  --bg: #f8f4ec;
  --bg-alt: #efe6d5;
  --surface: #fffdf8;
  --surface-strong: #f3ead9;
  --text: #1f1a16;
  --muted: #65584d;
  --line: rgba(31, 26, 22, 0.12);
  --line-strong: rgba(31, 26, 22, 0.22);
  --accent: #7f4f24;
  --accent-2: #b67c3d;
  --accent-dark: #5c3717;
  --shadow: 0 18px 40px rgba(31, 26, 22, 0.08);
  --shadow-soft: 0 10px 24px rgba(31, 26, 22, 0.06);
  --radius: 20px;
  --radius-large: 30px;
  --container: 1240px;
  --container-narrow: 840px;
  --header-height: 78px;
  --font-serif: "Yu Mincho", "Hiragino Mincho ProN", "HGS明朝E", "Times New Roman", serif;
  --font-sans: "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", "Meiryo", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(182, 124, 61, 0.08), transparent 28%),
    linear-gradient(180deg, #fbf7ef 0%, #f7f2e9 40%, #f3ede2 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(182, 124, 61, 0.22);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(100%, var(--container-narrow));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.18)),
    var(--bg-alt);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(31, 26, 22, 0.06);
}

.section-kicker,
.eyebrow,
.card-tag {
  font-size: 0.8rem;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2,
.intro h2,
.split-content h2,
.cta-box h2 {
  margin: 10px 0 16px;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #1a1512;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.4vw, 3.3rem);
}

.intro h2,
.split-content h2,
.cta-box h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.section-heading p,
.intro p,
.split-content p,
.story-item p,
.topic-card p,
.step-card p,
.feature-card p,
.cta-box p,
.site-footer p {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(248, 244, 236, 0.84);
  border-bottom: 1px solid rgba(31, 26, 22, 0.08);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
  color: #2c241e;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-dark);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  overflow: clip;
  border-bottom: 1px solid rgba(31, 26, 22, 0.08);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 18, 14, 0.25) 0%, rgba(24, 18, 14, 0.35) 36%, rgba(24, 18, 14, 0.62) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - var(--header-height));
}

.hero-content {
  padding: 90px 0 76px;
  color: #fffdf7;
}

.hero-content .eyebrow {
  color: #f6d8a8;
  margin-bottom: 14px;
}

.hero-content h1 {
  max-width: 8.6em;
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 2;
  color: rgba(255, 251, 245, 0.94);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fffaf4;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(92, 55, 23, 0.18);
  transition:
    transform 0.24s ease,
    background 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.button-secondary {
  background: rgba(255, 251, 245, 0.08);
  color: #fffdf8;
  border-color: rgba(255, 251, 245, 0.28);
  box-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 251, 245, 0.16);
  border-color: rgba(255, 251, 245, 0.5);
}

.intro {
  position: relative;
}

.intro .narrow {
  text-align: center;
}

.intro p + p {
  margin-top: 1.2em;
}

.card-grid {
  display: grid;
  gap: 24px;
}

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

.feature-card,
.topic-card,
.step-card {
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid rgba(31, 26, 22, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.feature-card:hover,
.feature-card:focus-within,
.topic-card:hover,
.topic-card:focus-within,
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(127, 79, 36, 0.22);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 20px 20px 22px;
}

.feature-card h3,
.topic-card h3,
.story-item h3,
.step-card h3 {
  margin: 8px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.32;
  color: #1e1915;
}

.feature-card p:last-child,
.topic-card p:last-child,
.story-item p:last-child,
.step-card p:last-child {
  margin-bottom: 0;
}

.split-section {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 40px;
  align-items: center;
}

.split-image img {
  width: 100%;
  min-height: 540px;
  object-fit: cover;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-dark);
  font-weight: 700;
  border-bottom: 1px solid rgba(92, 55, 23, 0.24);
  transition: color 0.24s ease, border-color 0.24s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
  border-color: rgba(127, 79, 36, 0.5);
}

.story-list {
  display: grid;
  gap: 18px;
}

.story-item {
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid rgba(31, 26, 22, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.story-item:hover,
.story-item:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(127, 79, 36, 0.22);
}

.story-item a {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: stretch;
}

.story-item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.story-item div {
  padding: 28px 28px 30px;
}

.topic-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.topic-card {
  padding-bottom: 20px;
}

.topic-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.topic-card h3,
.topic-card p,
.topic-card a {
  padding-left: 20px;
  padding-right: 20px;
}

.topic-card h3 {
  margin-top: 18px;
}

.topic-card a {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--accent-dark);
}

.step-card {
  padding: 26px 24px 28px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(127, 79, 36, 0.12);
  color: var(--accent-dark);
  font-weight: 800;
  margin-bottom: 12px;
}

.quote-section {
  padding-top: 70px;
  padding-bottom: 70px;
}

.quote-section blockquote {
  margin: 0;
  padding: 36px 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.56));
  border: 1px solid rgba(31, 26, 22, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.quote-section p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.7vw, 2.5rem);
  line-height: 1.55;
  color: #201912;
  text-align: center;
}

.cta-box {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px 36px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.2)),
    #e8dbc3;
  border: 1px solid rgba(127, 79, 36, 0.12);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin-top: 8px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.site-footer {
  padding: 70px 0 28px;
  background:
    linear-gradient(180deg, rgba(31, 26, 22, 0.98), rgba(23, 19, 16, 1));
  color: rgba(255, 247, 238, 0.94);
}

.site-footer a {
  color: rgba(255, 247, 238, 0.9);
  transition: color 0.24s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #f7d8aa;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

.site-footer h2,
.site-footer h3 {
  margin-top: 0;
  font-family: var(--font-serif);
  color: #fffaf4;
}

.site-footer h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 247, 238, 0.12);
  font-size: 0.92rem;
  color: rgba(255, 247, 238, 0.62);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

.site-header.is-scrolled {
  background: rgba(248, 244, 236, 0.94);
  box-shadow: 0 10px 30px rgba(31, 26, 22, 0.06);
}

@media (max-width: 1180px) {
  .card-grid-3,
  .topic-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .cta-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 960px) {
  :root {
    --header-height: 72px;
  }

  .section {
    padding: 72px 0;
  }

  .header-inner {
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-direction: column;
  }

  .site-nav {
    gap: 14px 18px;
    justify-content: flex-start;
  }

  .hero,
  .hero-overlay {
    min-height: auto;
  }

  .hero-content {
    padding-top: 108px;
    padding-bottom: 56px;
  }

  .story-item a {
    grid-template-columns: 1fr;
  }

  .story-item img {
    min-height: 230px;
  }

  .split-image img {
    min-height: 380px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 26px), var(--container));
  }

  .section {
    padding: 58px 0;
  }

  .hero-content h1 {
    max-width: none;
  }

  .hero-lead br {
    display: none;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .card-grid-3,
  .topic-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .feature-card img,
  .topic-card img {
    aspect-ratio: 16 / 11;
  }

  .quote-section blockquote,
  .cta-box {
    padding: 26px 22px;
    border-radius: 24px;
  }

  .story-item div {
    padding: 22px 20px 24px;
  }

  .feature-card h3,
  .topic-card h3,
  .story-item h3,
  .step-card h3 {
    font-size: 1.24rem;
  }

  .site-nav a {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}
