/* ==========================================================================
   Toku Bu Kan: styles.css
   Brand tokens at the top. Indigo (aizome) is the base, as in the keikogi
   and hakama; the brand blue (from the original site) is used for action and marks.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
/* Zen Maru Gothic: headings and kanji. Latin, plus kanji subsets (徳 武 館 六 段 四 錬 士 only). */
@font-face {
  font-family: "Zen Maru Gothic";
  src: url("../fonts/zen-maru-gothic-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zen Maru Gothic";
  src: url("../fonts/zen-maru-gothic-kanji-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+516D, U+56DB, U+58EB, U+5FB3, U+6B66, U+6BB5, U+932C, U+9928;
}
/* Lighter kanji for 徳 武 館 inside body text */
@font-face {
  font-family: "Zen Maru Gothic";
  src: url("../fonts/zen-maru-gothic-kanji-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+5FB3, U+6B66, U+9928;
}
/* Zen Kaku Gothic New: body */
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/zen-kaku-gothic-new-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/zen-kaku-gothic-new-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --kon: #13213b;          /* indigo: dark surfaces */
  --kon-deep: #0d1628;     /* deepest indigo: footer */
  --ai: #2c4a7c;           /* mid indigo: links and outlines on light (8.9:1 on white) */
  --ai-light: #b4c5e3;     /* text accents on indigo (8.6:1 on --kon) */
  --accent: #0170b9;       /* brand blue: primary action, marks (5.2:1 with white) */
  --accent-dark: #015a94;  /* hover */
  --error: #b8232b;        /* form errors only */
  --error-bg: #fbeceb;
  --sumi: #1b1d22;         /* body text */
  --muted: #4b5568;        /* secondary text (7.4:1 on white) */
  --washi: #eef1f5;        /* cool light surface */
  --line: #d3d9e3;         /* rules and borders */
  --white: #ffffff;
  --on-dark: #e9eef6;      /* body text on indigo */

  /* Type */
  --heading: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-h3: 1.375rem;
  --fs-h2: clamp(1.875rem, 1.3rem + 2.2vw, 2.625rem);
  --fs-h1: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);

  /* Space and layout */
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --max: 1200px;
  --measure: 68ch;
  --radius: 2px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--white);
  color: var(--sumi);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--ai); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
p { margin: 0 0 1.1em; max-width: var(--measure); }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.2; margin: 0 0 0.6em; letter-spacing: 0.005em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.12; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
ul, ol { padding-left: 1.2em; }
[lang="ja"] { font-family: var(--heading); }
p > [lang="ja"] { font-weight: 500; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--kon); color: var(--white); padding: 0.75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--white); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7rem 1.4rem;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); }
.btn--outline { border-color: var(--ai); color: var(--ai); background: transparent; }
.btn--outline:hover { background: var(--ai); color: var(--white); }
.on-dark .btn--outline { border-color: var(--ai-light); color: var(--white); }
.on-dark .btn--outline:hover { background: var(--white); border-color: var(--white); color: var(--kon); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--sumi); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--sumi); }
.brand img { width: 52px; height: 52px; }
.brand__name { font-family: var(--heading); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.01em; white-space: nowrap; }
.site-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 0.6rem 0.8rem; color: var(--sumi); text-decoration: none; font-weight: 700; font-size: 0.975rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-toggle {
  display: none; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.5rem 0.75rem;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--sumi);
  font: 700 0.95rem var(--sans); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.25rem;
  }
  .js .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .site-nav .site-nav__cta { display: block; margin-top: 1rem; }
  .site-nav .site-nav__cta a { border: 0; text-align: center; color: var(--white); padding: 0.8rem 1rem; }
  .no-js .site-header__inner { flex-wrap: wrap; padding-bottom: 0.5rem; }
  .no-js .site-nav { width: 100%; }
}
@media (min-width: 901px) { .site-nav__cta { display: none; } }
@media (max-width: 420px) { .brand__name { font-size: 1.1rem; } .brand img { width: 44px; height: 44px; } }

/* ---------- Hero (shared) ---------- */
.hero { position: relative; background: var(--kon); color: var(--white); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13,22,40,.92) 0%, rgba(13,22,40,.78) 45%, rgba(13,22,40,.35) 100%);
}
.hero h1 { color: var(--white); }
.hero__welcome { font-family: var(--heading); font-weight: 700; font-size: 1.2rem; color: var(--ai-light); margin-bottom: 0.75rem; }
.hero__lead { font-size: 1.125rem; color: var(--on-dark); max-width: 46ch; }

/* Home hero: the dojo name in vertical kanji, like the name board in a dojo */
.hero--home .hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 6vw, 6rem);
  align-items: center; padding-block: clamp(4.5rem, 10vw, 8.5rem) clamp(3rem, 6vw, 5rem);
}
.hero--home h1 { max-width: 16ch; }
.hero--home .btn-row { margin-top: 2rem; }
.dojo-name {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--heading); font-weight: 700; color: var(--white);
  font-size: clamp(5rem, 3rem + 7vw, 9.5rem); line-height: 1; letter-spacing: 0.06em;
  padding: 1.75rem 1.1rem; margin: 0;
  border-top: 6px solid var(--accent);
  background: rgba(13,22,40,.55);
  box-shadow: inset 0 0 0 1px rgba(180,197,227,.28);
}
.hero__facts {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0; padding-block: 1.5rem; border-top: 1px solid rgba(180,197,227,.3);
}
.hero__facts div { padding-right: 1.5rem; }
.hero__facts dt { font-size: var(--fs-small); color: var(--ai-light); margin-bottom: 0.2rem; }
.hero__facts dd { margin: 0; font-weight: 700; line-height: 1.45; }
@media (max-width: 760px) {
  .hero--home .hero__inner { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .dojo-name {
    order: -1; writing-mode: horizontal-tb; font-size: 3.25rem; letter-spacing: 0.12em;
    padding: 0.6rem 1rem 0.5rem; justify-self: start; border-top-width: 4px;
  }
  .hero__facts { grid-template-columns: 1fr; gap: 1rem; }
}

/* Inner-page hero */
.hero--page .hero__inner { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero--page h1 { max-width: 18ch; margin-bottom: 0.4em; }
.hero--page .hero__lead { margin-bottom: 0; }
.hero--page .hero__inner::before {
  content: ""; display: block; width: 56px; height: 5px; background: var(--accent); margin-bottom: 1.5rem;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--washi { background: var(--washi); }
.section--kon { background: var(--kon); color: var(--on-dark); }
.section--kon h2, .section--kon h3 { color: var(--white); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__intro { font-size: 1.125rem; color: var(--muted); }
.section--kon .section__intro { color: var(--on-dark); }

/* Meaning of the name */
.meaning { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.kanji-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.kanji-list li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; align-items: center;
  padding-block: 1.25rem; border-bottom: 1px solid var(--line);
}
.kanji-list__char { font-family: var(--heading); font-weight: 700; font-size: 4.5rem; line-height: 1; color: var(--kon); text-align: center; }
.kanji-list__reading { display: block; font-family: var(--heading); font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.kanji-list__meaning { display: block; color: var(--muted); }
.meaning__patch { width: 180px; margin-bottom: 1.5rem; }
@media (max-width: 860px) { .meaning { grid-template-columns: 1fr; } }

/* Motto */
.motto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--kon); color: var(--white); }
.motto__media { position: relative; min-height: 320px; }
.motto__media picture, .motto__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.motto__body { padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5.5rem); align-self: center; }
.motto figure, .motto blockquote { margin: 0; }
.motto blockquote p {
  font-family: var(--heading); font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); line-height: 1.5;
  color: var(--white); max-width: 30ch;
}
.motto figcaption { color: var(--ai-light); font-size: 1rem; }
.motto h2 { font-size: 1.125rem; font-family: var(--sans); font-weight: 700; color: var(--ai-light); margin-bottom: 1.25rem; }
@media (max-width: 860px) { .motto { grid-template-columns: 1fr; } .motto__media { min-height: 260px; } }

/* Two-column text + aside */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Instructors */
.instructors { list-style: none; margin: 0; padding: 0; }
.instructor {
  display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem);
  padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line);
}
.instructor:last-child { border-bottom: 1px solid var(--line); }
.instructor__rank {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--heading); font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: 0.08em; color: var(--kon);
  border-right: 4px solid var(--accent); padding-right: 0.6rem; justify-self: center; margin: 0;
}
.instructor h3 { margin-bottom: 0.2em; font-size: 1.625rem; }
.instructor__role { font-weight: 700; color: var(--muted); margin-bottom: 1rem; }
@media (max-width: 600px) {
  .instructor { grid-template-columns: 1fr; }
  .instructor__rank { writing-mode: horizontal-tb; justify-self: start; border-right: 0; border-left: 4px solid var(--accent); padding: 0 0 0 0.75rem; font-size: 2rem; }
}

/* Weekly schedule */
.week { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--white); }
.week li { padding: 1rem 0.75rem 1.25rem; border-right: 1px solid var(--line); min-height: 8.5rem; }
.week li:last-child { border-right: 0; }
.week__day { display: block; font-weight: 700; color: var(--muted); }
.week li.is-class { background: var(--kon); color: var(--white); border-top: 5px solid var(--accent); padding-top: calc(1rem - 5px); }
.week li.is-class .week__day { color: var(--white); }
.week__time { display: block; font-family: var(--heading); font-weight: 700; font-size: 1.125rem; line-height: 1.35; margin-top: 0.75rem; }
.week__none { display: block; margin-top: 0.75rem; color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 760px) {
  .week { grid-template-columns: 1fr; }
  .week li { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.85rem 1rem; }
  .week li.is-class { padding-top: 0.85rem; border-top: 0; border-left: 5px solid var(--accent); }
  .week__time, .week__none { margin-top: 0; }
  .week li:not(.is-class) { display: none; }
}

/* Info list (contact details, location) */
.info { list-style: none; margin: 0 0 2rem; padding: 0; }
.info li { display: flex; gap: 0.85rem; padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
.info li:first-child { border-top: 1px solid var(--line); }
.info .icon { margin-top: 0.25rem; color: var(--ai); }
.info strong { display: block; }
.note { border-left: 4px solid var(--accent); padding: 0.75rem 1rem; background: var(--washi); margin: 0 0 2rem; max-width: var(--measure); }
.section--washi .note { background: var(--white); }
.social { display: flex; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.social a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 700; color: var(--sumi);
}
.social a:hover { border-color: var(--ai); color: var(--ai); }

/* ---------- Forms ---------- */
.form { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--kon); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form h2 { font-size: 1.75rem; }
.form fieldset { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
.form legend { font-weight: 700; padding: 0; margin-bottom: 0.4rem; }
.field { margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row .field { margin-bottom: 0; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.fieldset-sub label { font-weight: 400; color: var(--muted); font-size: var(--fs-small); }
.req { color: var(--accent); font-weight: 400; font-size: var(--fs-small); }
.opt { color: var(--muted); font-weight: 400; font-size: var(--fs-small); }
.form input, .form textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
  font: 400 1rem/1.5 var(--sans); color: var(--sumi);
  background: var(--white); border: 1px solid #8a94a6; border-radius: var(--radius);
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--ai); outline-offset: 1px; border-color: var(--ai); }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--error); }
.hint { display: block; color: var(--muted); font-size: var(--fs-small); margin-top: 0.3rem; }
.field-error { display: block; color: var(--error); font-size: var(--fs-small); font-weight: 700; margin-top: 0.3rem; }
.form-alert { border-left: 4px solid var(--error); background: var(--error-bg); padding: 0.85rem 1rem; margin-bottom: 1.5rem; }
.form-alert[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; margin-top: 0.5rem; }

/* Dues */
.dues { display: grid; gap: 1rem; margin: 1.5rem 0; }
.dues__option { border: 1px solid var(--line); background: var(--white); padding: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.dues__option h3 { margin: 0; font-size: 1.375rem; }
.dues__option p { margin: 0.2rem 0 0; color: var(--muted); font-size: var(--fs-small); }
.join-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq__aside .note { margin-top: 2rem; }
.faq__aside .note h3 { font-size: 1.25rem; margin-bottom: 0.3em; }
.faq__aside .note p { margin-bottom: 0.6rem; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-family: var(--heading); font-weight: 700; font-size: 1.25rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-4px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq summary:hover { color: var(--ai); }
.faq__answer { padding-bottom: 1.25rem; }
.faq__answer ul { margin: 0 0 1.1em; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq__aside { position: static; } }

/* ---------- Call to action band ---------- */
.cta { background: var(--kon); color: var(--on-dark); border-top: 6px solid var(--accent); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta h2 { color: var(--white); margin-bottom: 0.25em; }
.cta p { margin: 0; color: var(--ai-light); font-size: 1.125rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--kon-deep); color: var(--on-dark); font-size: var(--fs-small); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--ai-light); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.8fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
.site-footer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--ai-light); margin-bottom: 0.75rem; }
.site-footer p { margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-brand { text-decoration: none; display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand img { width: 64px; height: 64px; }
.footer-brand span { font-family: var(--heading); font-weight: 700; font-size: 1.35rem; color: var(--white); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.25rem 2rem; border-top: 1px solid rgba(180,197,227,.2); }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Simple pages (thank you, 404) ---------- */
.simple { padding-block: clamp(4rem, 10vw, 8rem); }
.simple__mark { width: 120px; margin-bottom: 2rem; }
.simple h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.simple .btn-row { margin-top: 2rem; }

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .cta, .hero__bg, .btn, .skip-link, .nav-toggle { display: none !important; }
  .hero, .section--kon, .motto { background: none !important; color: #000 !important; }
  .hero::after { display: none; }
  .hero h1, .motto blockquote p, .section--kon h2 { color: #000 !important; }
  .dojo-name { color: #000; background: none; box-shadow: none; }
  .faq details > * { display: block; }
  a { color: #000; }
}

/* ---------- 404: where to go next ---------- */
.nf-actions { margin-top: 2rem; }
.nf-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.nf-links a {
  display: block; height: 100%; padding: 1.25rem 1.5rem; text-decoration: none; color: var(--sumi);
  border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--white);
  transition: border-color .15s, background-color .15s;
}
.nf-links a:hover { background: var(--washi); border-color: var(--accent); color: var(--sumi); }
.nf-links strong { display: block; font-family: var(--heading); font-size: 1.25rem; color: var(--kon); margin-bottom: 0.2rem; }
.nf-links span { color: var(--muted); }
@media (max-width: 640px) { .nf-links { grid-template-columns: 1fr; } }
