:root {
  --ink: #1a1c1f;
  --ink-soft: #3a3e45;
  --muted: #6a6f78;
  --line: #ddd8cf;
  --paper: #f3f1ec;
  --surface: #faf9f6;
  --white: #ffffff;
  --accent: #a68556;
  --accent-deep: #7d6440;
  --accent-soft: rgba(166, 133, 86, 0.12);
  --success: #3d6b4f;
  --error: #9b3b3b;
  --shadow: 0 18px 50px rgba(26, 28, 31, 0.08);
  --radius: 2px;
  --font-display: "Shippori Mincho", "Noto Serif JP", serif;
  --font-body: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --max: 1120px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2.5rem, 760px);
}

.inline-error {
  background: #f8e8e8;
  color: var(--error);
  padding: 0.85rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

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

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

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c8c5be;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.site-footer a {
  color: #e8e4db;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #faf9f6;
  margin-bottom: 0.75rem;
}

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

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

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

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col p {
  color: #a8a49c;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #8a867e;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    transform 0.3s ease;
}

.btn--primary {
  background: var(--ink);
  color: #faf9f6;
}

.btn--primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Hero — editorial split */
.hero-editorial {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - var(--header-h));
  max-height: 920px;
}

.hero-editorial__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 0;
  width: min(100% - 2.5rem, calc(var(--max) * 0.55));
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
}

.hero-editorial__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: 0.02em;
  margin: 0 0 1.5rem;
  line-height: 1.15;
}

.hero-editorial__brand em {
  font-style: normal;
  color: var(--accent);
  display: block;
}

.hero-editorial__lead {
  font-size: 1.05rem;
  max-width: 28em;
  margin-bottom: 2rem;
}

.hero-editorial__meta {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero-editorial__visual {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.hero-editorial__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero-editorial__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 28, 31, 0.25),
    rgba(125, 100, 64, 0.2)
  );
  pointer-events: none;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--surface);
}

.section__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 0.75rem;
}

.section__lead {
  max-width: 36em;
  margin-bottom: 2.5rem;
}

.section-head {
  margin-bottom: 2.5rem;
}

/* Proof strip */
.proof-strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding: 2.25rem 0;
}

.proof-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.proof-item span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Featured course band */
.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--ink);
  color: #e8e4db;
  overflow: hidden;
}

.feature-band__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.feature-band__body {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-band__body h2 {
  color: #faf9f6;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}

.feature-band__body p {
  color: #b8b3a9;
}

.feature-band__body .btn {
  align-self: flex-start;
  margin-top: 1rem;
}

/* Benefit list — not cards by default, editorial rows */
.benefit-list {
  display: grid;
  gap: 0;
}

.benefit-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.benefit-row:first-child {
  border-top: 1px solid var(--line);
}

.benefit-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
}

.benefit-row h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

/* Course grid — interaction containers */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.course-tile {
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.course-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}

.course-tile__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.course-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.course-tile:hover .course-tile__img img {
  transform: scale(1.04);
}

.course-tile__body {
  padding: 1.4rem 1.35rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.course-tile__body p {
  font-size: 0.92rem;
  flex: 1;
}

.course-tile__meta {
  font-size: 0.78rem;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
  margin-top: 1rem;
}

/* Testimonials */
.testimonial-stack {
  display: grid;
  gap: 2rem;
}

.testimonial {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.testimonial:first-child {
  border-top: 1px solid var(--line);
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink);
}

.testimonial cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
}

.stars {
  color: var(--accent);
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--surface), var(--paper)),
    radial-gradient(ellipse at 80% 0%, var(--accent-soft), transparent 55%);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  max-width: 34em;
  font-size: 1.05rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-tier {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}

.price-tier:hover {
  border-color: var(--accent);
}

.price-tier--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: #e8e4db;
}

.price-tier--featured h2,
.price-tier--featured .price-tier__amount {
  color: #faf9f6;
}

.price-tier--featured p,
.price-tier--featured li {
  color: #b8b3a9;
}

.price-tier h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.price-tier__amount {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 1rem 0;
}

.price-tier__amount small {
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--muted);
}

.price-tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}

.price-tier li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.price-tier--featured li {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.25s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
  border-color: var(--error);
}

.field-error {
  display: block;
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.form-status {
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.form-status--success {
  background: #e8f0eb;
  color: var(--success);
}

.form-status--error {
  background: #f8e8e8;
  color: var(--error);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1.5rem;
}

.contact-info dd {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

/* Blog */
.blog-list {
  display: grid;
  gap: 2.5rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  text-decoration: none;
  color: inherit;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.blog-item:hover h2 {
  color: var(--accent-deep);
}

.blog-item__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.blog-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-item__meta {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.article-body {
  padding: 3rem 0 4rem;
}

.article-body h2 {
  font-size: 1.45rem;
  margin-top: 2.25rem;
}

.article-cover {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

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

/* Modules / FAQ */
.module-list,
.faq-list {
  display: grid;
  gap: 0;
}

.module-item,
.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.module-item:first-child,
.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.instructor {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.instructor img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ink);
  color: #e8e4db;
  padding: 1.25rem;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.45s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner__inner {
  width: min(100% - 1rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-banner p {
  margin: 0;
  color: #c8c5be;
  max-width: 42em;
  font-size: 0.92rem;
}

.cookie-banner a {
  color: var(--accent);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner .btn--ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: #faf9f6;
}

.cookie-banner .btn--primary {
  background: var(--accent);
  color: #fff;
}

/* Tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--surface);
  font-weight: 500;
  color: var(--ink);
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
}

.legal-content ul {
  color: var(--ink-soft);
  padding-left: 1.25rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4.5rem 0;
  background:
    linear-gradient(135deg, rgba(26, 28, 31, 0.94), rgba(125, 100, 64, 0.85)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1600&q=80")
      center / cover;
  color: #faf9f6;
}

.cta-band h2 {
  color: #faf9f6;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-band p {
  color: #d4d0c7;
  max-width: 28em;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 8rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.12s;
}
.reveal-delay-2 {
  transition-delay: 0.24s;
}
.reveal-delay-3 {
  transition-delay: 0.36s;
}

/* Case study */
.case-study {
  padding: 2.5rem;
  background: var(--white);
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
}

.case-study h3 {
  font-size: 1.25rem;
}

/* Soft split */
.split-soft {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero-editorial {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: auto;
  }

  .hero-editorial__copy {
    padding: 3rem 0 2rem;
    width: min(100% - 2.5rem, var(--max));
    margin-inline: auto;
  }

  .hero-editorial__visual {
    min-height: 280px;
  }

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

  .feature-band,
  .course-grid,
  .pricing-grid,
  .contact-layout,
  .split-soft,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
  }

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

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-header {
    position: relative;
  }

  .site-header__inner {
    position: relative;
  }

  .instructor {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .instructor img {
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .proof-strip__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .benefit-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
