:root {
  --ink: #1c1917;
  --ink-soft: #3f3a36;
  --ink-muted: #6b645c;
  --paper: #f7f3ec;
  --paper-deep: #ebe4d8;
  --cream: #faf8f4;
  --gold: #b8924a;
  --gold-deep: #8f6e32;
  --gold-soft: #d4b87a;
  --line: rgba(28, 25, 23, 0.12);
  --shadow: 0 24px 60px rgba(28, 25, 23, 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: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::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;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.site-main {
  min-height: 60vh;
}

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

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(184, 146, 74, 0.15);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s var(--ease);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.nav-list a:hover {
  color: var(--gold-deep);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ink);
  color: var(--ink) !important;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

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

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-soft);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: rgba(232, 224, 212, 0.7);
  font-size: 0.9rem;
  max-width: 28rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(232, 224, 212, 0.12);
}

.footer-col h2 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.footer-col a {
  color: rgba(232, 224, 212, 0.8);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--gold-soft);
}

.footer-col li + li {
  margin-top: 0.45rem;
}

.footer-contact li {
  font-size: 0.88rem;
  color: rgba(232, 224, 212, 0.75);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(232, 224, 212, 0.12);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(232, 224, 212, 0.5);
}

/* 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.9rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

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

.btn-primary:hover {
  background: var(--gold-deep);
  color: var(--cream);
}

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

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
}

.btn-gold:hover {
  filter: brightness(1.08);
  color: #fff;
}

/* Hero variants */
.hero-editorial {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  overflow: hidden;
}

.hero-editorial-copy {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184, 146, 74, 0.12), transparent 50%),
    linear-gradient(165deg, var(--cream), var(--paper-deep));
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--ink);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.05s forwards;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 28rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.45s forwards;
}

.hero-editorial-media {
  position: relative;
  min-height: 420px;
}

.hero-editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  animation: zoomSoft 12s var(--ease) infinite alternate;
}

.hero-editorial-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.15), transparent 40%);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

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

.section-dark {
  background: var(--ink);
  color: #e8e0d4;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.section-dark .section-label {
  color: var(--gold-soft);
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  max-width: 18em;
}

.section-intro {
  color: var(--ink-muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-dark .section-intro {
  color: rgba(232, 224, 212, 0.7);
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  background: var(--paper);
  padding: 2rem 1.5rem;
  text-align: center;
}

.trust-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 0.35rem;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Course / content grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.program-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  transition: transform 0.35s var(--ease);
}

.program-tile:hover {
  transform: translateY(-4px);
}

.program-tile img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1.1rem;
  filter: saturate(0.85);
  transition: filter 0.4s var(--ease);
}

.program-tile:hover img {
  filter: saturate(1);
}

.program-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  margin-bottom: 0.4rem;
}

.program-tile h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.program-tile p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Benefits */
.benefit-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

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

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

.benefit-row p {
  color: var(--ink-muted);
  margin: 0;
}

/* Testimonials */
.quote-block {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.6;
  color: var(--ink);
}

.quote-meta {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.quote-stars {
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

/* Page heroes */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2.5rem;
  background:
    linear-gradient(180deg, var(--cream), var(--paper));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 14em;
}

.page-hero p {
  max-width: 38rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.page-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: end;
}

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

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

.price-tier {
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  background: var(--cream);
  display: flex;
  flex-direction: column;
}

.price-tier.featured {
  background: var(--ink);
  color: #e8e0d4;
  border-color: var(--ink);
  transform: translateY(-8px);
}

.price-tier h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.price-tier .price {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 1rem 0;
  color: var(--gold-deep);
}

.price-tier.featured .price {
  color: var(--gold-soft);
}

.price-tier ul {
  flex: 1;
  margin-bottom: 1.5rem;
}

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

.price-tier.featured li {
  border-color: rgba(232, 224, 212, 0.12);
  color: rgba(232, 224, 212, 0.85);
}

.price-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 2rem;
}

/* Forms */
.form-wrap {
  max-width: 36rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

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

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

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  color: #9b2c2c;
  font-size: 0.82rem;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .field-error {
  display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #9b2c2c;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  display: none;
  font-size: 0.92rem;
}

.form-status.is-success {
  display: block;
  background: #e8f0e6;
  color: #2d5a27;
  border: 1px solid #b5d0af;
}

.form-status.is-error {
  display: block;
  background: #f8e8e8;
  color: #9b2c2c;
  border: 1px solid #e0b4b4;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.contact-aside {
  padding: 2rem;
  background: var(--ink);
  color: #e8e0d4;
}

.contact-aside h2 {
  color: var(--gold-soft);
  font-size: 1.2rem;
}

.contact-aside p,
.contact-aside li {
  color: rgba(232, 224, 212, 0.8);
  font-size: 0.95rem;
}

.contact-aside a {
  color: var(--gold-soft);
}

/* Blog */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s var(--ease);
}

.blog-item:hover {
  opacity: 0.85;
}

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

.blog-date {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  margin-bottom: 0.4rem;
}

.article-body {
  max-width: 42rem;
  margin: 0 auto;
}

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

.article-body p {
  color: var(--ink-soft);
}

.article-hero-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  margin: 2rem 0 3rem;
}

/* Course detail */
.module-list li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
}

.module-list .mod-num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.2rem;
}

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

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

.faq-item {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
}

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

.faq-item p {
  color: var(--ink-muted);
  margin: 0;
}

/* Legal */
.legal-content {
  max-width: 46rem;
}

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

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

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

.legal-content th {
  background: var(--cream);
  font-weight: 500;
}

/* 404 */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.page-404 h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--gold);
  margin-bottom: 0.3rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ink);
  color: #e8e0d4;
  padding: 1.25rem 1.5rem;
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

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

.cookie-inner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.9rem;
  color: rgba(232, 224, 212, 0.85);
}

.cookie-inner a {
  color: var(--gold-soft);
}

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

.cookie-actions button {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}

.cookie-accept {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.cookie-accept:hover {
  background: var(--gold-soft);
}

.cookie-reject {
  background: transparent;
  color: #e8e0d4;
  border-color: rgba(232, 224, 212, 0.35);
}

.cookie-reject:hover {
  border-color: #e8e0d4;
}

.inline-error {
  padding: 0.75rem 1rem;
  background: #f8e8e8;
  color: #9b2c2c;
  border: 1px solid #e0b4b4;
  margin: 1rem 0;
  font-size: 0.9rem;
}

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

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

/* Custom page accent */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.pillar {
  padding-top: 1.5rem;
  border-top: 2px solid var(--gold);
}

.pillar h3 {
  font-size: 1.25rem;
}

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

  .hero-editorial-media {
    min-height: 320px;
    order: -1;
  }

  .grid-3,
  .price-grid,
  .trust-strip,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .price-tier.featured {
    transform: none;
  }

  .grid-2,
  .contact-layout,
  .page-hero-split,
  .pillar-grid {
    grid-template-columns: 1fr;
  }

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

  .instructor {
    grid-template-columns: 100px 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    z-index: 110;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 105;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .nav-list a {
    font-size: 1.15rem;
  }

  body.nav-open {
    overflow: hidden;
  }
}
