/* ============================================================
   Mongol Bichig LP — parchment & ink
   ============================================================ */

:root {
  --parchment: #F6EFDF;
  --parchment-deep: #EADFC6;
  --card: #FFFDF7;
  --ink: #2A2118;
  --ink-mid: #5A4A38;
  --ink-soft: #7A6A55;
  --gold: #8A6418;
  --gold-soft: rgba(184, 134, 43, 0.14);
  --line: rgba(90, 74, 56, 0.18);
  --dark: #2A2118;
  --dark-2: #3B2F22;
  --maxw: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Noto Sans', 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* モンゴル文字: アプリと同じ Classical Mongolian Dashitseden（Bolorsoft free font）を自前配信 */
@font-face {
  font-family: 'Dashitseden';
  src: url('assets/fonts/cmdashitseden.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.mongol {
  font-family: 'Dashitseden', serif;
  writing-mode: vertical-lr;
  text-orientation: sideways;
  line-height: 1.2;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 239, 223, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand-mini { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand-mini img { width: 34px; height: 34px; border-radius: 8px; }
.header-spacer { flex: 1; }
.lang-switch { display: flex; gap: 4px; font-size: 14px; }
.lang-switch a { text-decoration: none; padding: 4px 10px; border-radius: 999px; color: var(--ink-mid); }
.lang-switch a[aria-current="page"] { background: var(--ink); color: var(--parchment); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 8px 24px rgba(42,33,24,.18); margin-bottom: 20px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); letter-spacing: -0.01em; }
.hero-catch { font-size: clamp(18px, 2.6vw, 22px); color: var(--ink-mid); margin-top: 12px; }
.hero-sub { color: var(--ink-soft); margin-top: 14px; max-width: 34em; }
.hero-script {
  font-size: clamp(72px, 12vw, 120px);
  color: var(--ink);
  padding: 24px 28px;
  border: 2px solid var(--gold);
  border-radius: 20px;
  background: var(--card);
  box-shadow: inset 0 0 0 6px var(--card), inset 0 0 0 7px var(--gold-soft);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 12px; text-decoration: none;
  background: var(--ink); color: var(--parchment); font-weight: 600;
}
.btn small { display: block; font-size: 11px; font-weight: 400; opacity: .8; line-height: 1.2; }
.btn-label { line-height: 1.25; }
.btn[aria-disabled="true"] { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); cursor: default; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.sec-title { font-size: clamp(24px, 4vw, 34px); margin-top: 6px; }
.sec-lead { color: var(--ink-soft); margin-top: 10px; }

.alt { background: var(--parchment-deep); }
.dark { background: var(--dark); color: var(--parchment); }
.dark .sec-lead, .dark p { color: rgba(246,239,223,.8); }
.dark .sec-kicker { color: #D9B26A; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
}
.card h3 { font-size: 18px; margin: 10px 0 8px; }
.card p { color: var(--ink-mid); font-size: 15px; }
.card .ico { font-size: 26px; }

/* courses */
.course { border-top: 4px solid var(--gold); }
.course .tag { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }

/* how-to steps */
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; counter-reset: step; }
.steps li {
  position: relative; padding: 0 0 28px 64px; counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--parchment); font-weight: 700;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px; width: 2px; background: var(--line);
}
.steps h3 { font-size: 18px; padding-top: 8px; }
.steps p { color: var(--ink-mid); margin-top: 4px; }

/* about the script */
.script-demo { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.script-demo figure { margin: 0; text-align: center; }
.script-demo .mongol { font-size: 56px; margin: 0 auto; color: var(--parchment); }
.script-demo figcaption { font-size: 13px; margin-top: 8px; color: rgba(246,239,223,.7); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 10px; color: var(--ink-mid); font-size: 15px; }

/* footer */
.site-footer { background: var(--dark); color: rgba(246,239,223,.75); padding: 32px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer .brand-mini { color: var(--parchment); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .hero { padding: 36px 0 44px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-script { justify-self: center; font-size: 56px; padding: 14px 18px; }
  section { padding: 48px 0; }
}
