:root {
  --bg: #f3f5f7;
  --bg-deep: #e6ebf0;
  --surface: #fbfcfd;
  --ink: #1b2430;
  --ink-soft: #3d4754;
  --muted: #6a7380;
  --line: rgba(27, 36, 48, 0.12);
  --accent: #c4a574;
  --accent-deep: #9a7d4f;
  --accent-soft: rgba(196, 165, 116, 0.18);
  --sage: #8fa8a3;
  --sage-deep: #5f7a75;
  --danger: #9b3b3b;
  --success: #2f6b4f;
  --shadow: 0 18px 50px rgba(27, 36, 48, 0.08);
  --radius: 2px;
  --header-h: 76px;
  --font-display: "Shippori Mincho", "Noto Serif JP", serif;
  --font-body: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --max: 1120px;
  --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);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 165, 116, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(143, 168, 163, 0.18), transparent 55%),
    linear-gradient(180deg, #f7f8fa 0%, var(--bg) 40%, #eef2f5 100%);
  line-height: 1.75;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

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;
  color: var(--ink-soft);
}

ul {
  padding-left: 1.2em;
}

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

.inline-error {
  margin: 0;
  padding: 0.85rem 1.2rem;
  background: #f8e8e8;
  color: var(--danger);
  border-bottom: 1px solid #e6c4c4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(251, 252, 253, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--accent);
  border-radius: 50%;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-toggle-bar {
  top: 50%;
}

.nav-toggle-bar::before {
  top: -7px;
}

.nav-toggle-bar::after {
  top: 7px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

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

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--accent);
  color: var(--ink) !important;
  background: linear-gradient(135deg, rgba(196, 165, 116, 0.18), transparent);
}

.nav-cta:hover {
  background: var(--accent-soft);
}

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

.section {
  padding: 4.5rem 1.25rem;
}

.section-tight {
  padding: 3rem 1.25rem;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.85rem;
}

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

.section-lead {
  max-width: 40rem;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #1b2430, #2a3646);
  color: #f7f4ef;
  border-color: #1b2430;
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #243041, #354557);
}

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

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

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

.btn-ghost:hover {
  border-color: var(--muted);
  color: var(--ink);
}

.hero-editorial {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  overflow: hidden;
}

.hero-editorial-copy {
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.25rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(251, 252, 253, 0.96), rgba(238, 242, 245, 0.92));
  position: relative;
  z-index: 1;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 0.03em;
  margin-bottom: 1.4rem;
  color: var(--ink);
}

.hero-editorial h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  max-width: 16em;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.hero-editorial .hero-text {
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

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

.hero-editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 18s var(--ease) infinite alternate;
}

.hero-editorial-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(243, 245, 247, 0.35), transparent 35%);
  pointer-events: none;
}

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

.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

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

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

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

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

.split-reverse .split-media {
  order: 2;
}

.media-frame {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.media-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(196, 165, 116, 0.55);
  z-index: 1;
  pointer-events: none;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.course-grid,
.card-grid,
.blog-grid,
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

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

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

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

.course-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.course-card img,
.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-card-body,
.blog-card-body {
  padding: 1.35rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.course-card h3,
.blog-card h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(196, 165, 116, 0.12), transparent 40%),
    var(--surface);
  transform: translateY(-8px);
}

.price-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

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

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

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

.quote-stack {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.quote {
  background: rgba(255, 255, 255, 0.55);
  border-left: 2px solid var(--accent);
  padding: 1.4rem 1.5rem;
}

.quote p {
  margin-bottom: 0.85rem;
  font-size: 1.02rem;
}

.quote footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.page-hero {
  padding: 4rem 1.25rem 2.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(196, 165, 116, 0.1), transparent 50%),
    rgba(255, 255, 255, 0.35);
}

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

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.2rem;
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 1.6rem;
  font-size: 1.15rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.92rem;
}

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

.prose th {
  background: rgba(196, 165, 116, 0.12);
  font-weight: 500;
}

.modules {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.module {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.2rem 1.3rem;
}

.module h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.instructor {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.instructor img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-soft);
}

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

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent-deep);
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin-top: 0.75rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.form-field {
  margin-bottom: 1.15rem;
}

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

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

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(196, 165, 116, 0.45);
  border-color: var(--accent);
}

.field-error {
  min-height: 1.2em;
  margin-top: 0.35rem;
  color: var(--danger);
  font-size: 0.85rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
}

.form-status.is-success {
  background: #e8f4ee;
  border-color: #b7d8c6;
  color: var(--success);
}

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

.contact-card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.contact-card p {
  margin-bottom: 0.7rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: #1b2430;
  color: #d7dce3;
}

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

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

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #f3f5f7;
  margin-bottom: 0.6rem;
}

.footer-tagline {
  color: #9aa3ae;
  max-width: 28rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.footer-heading {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
}

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

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

.footer-contact p {
  color: #b7bfc9;
  font-size: 0.92rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8b949e;
  font-size: 0.85rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(27, 36, 48, 0.96);
  color: #e8ecf0;
  border: 1px solid rgba(196, 165, 116, 0.4);
  box-shadow: var(--shadow);
  animation: slideUp 0.45s var(--ease);
}

.cookie-banner.is-hiding {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.cookie-banner-inner {
  padding: 1.15rem 1.25rem;
  display: grid;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  color: #d5dae1;
  font-size: 0.92rem;
}

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

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-banner .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: var(--accent-deep);
  color: #1b2430;
}

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

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

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

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

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.case-study {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.case-study + .case-study {
  margin-top: 1.5rem;
}

.rating {
  color: var(--accent-deep);
  letter-spacing: 0.08em;
}

.cta-band {
  margin: 2rem 0;
  padding: 3rem 1.5rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(27, 36, 48, 0.94), rgba(47, 62, 78, 0.92)),
    url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #f3f5f7;
}

.cta-band h2 {
  color: #f7f4ef;
}

.cta-band p {
  color: #c9d0d8;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.cta-band .btn-secondary {
  color: #f7f4ef;
  border-color: var(--accent);
}

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

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

  .hero-editorial-media::after {
    background: linear-gradient(180deg, transparent, rgba(243, 245, 247, 0.55));
  }

  .trust-grid,
  .course-grid,
  .blog-grid,
  .pricing-grid,
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .contact-layout,
  .instructor {
    grid-template-columns: 1fr;
  }

  .split-reverse .split-media {
    order: 0;
  }

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

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

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(251, 252, 253, 0.98);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nav-list a {
    display: block;
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.75rem;
  }
}

@media (max-width: 640px) {
  .trust-grid,
  .course-grid,
  .blog-grid,
  .pricing-grid,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.2rem 1.1rem;
  }
}
