/* Topis: tokens, base, layout and page sections. Feature modules live in css/.
   Layout: a 12-column grid. Every section puts its numeral, label and brush kanji in
   columns 1–3 and its content in columns 4–12, so all titles and text share one left edge. */

/* --- Tokens ---------------------------------------------------------------- */
:root {
  --washi: #f5f0e6;  /* paper background */
  --sumi: #222222;   /* ink text */
  --nezumi: #6b6660; /* secondary text, rules, quiet UI */
  --ai: #264477;     /* indigo accent: links, focus, active states */
  --shu: #c0392b;    /* vermilion: the hanko seal only */
  --sakura: #ffcfd8; /* pale cherry blossom: the hanaikada petals only */

  --rule: color-mix(in srgb, var(--nezumi) 32%, transparent);
  --rule-strong: var(--sumi);

  --font-head: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Zen Kaku Gothic New", system-ui, sans-serif;

  /* Type scale */
  --text-xs: 0.75rem;     /* 12px labels */
  --text-sm: 0.875rem;    /* 14px meta */
  --text-base: 1.0625rem; /* 17px body, 18px from 900px */
  --text-lead: 1.1875rem; /* 19px lead, 21px from 900px */
  --text-h3: 1.25rem;
  --text-h2: clamp(1.875rem, 1.1rem + 2.6vw, 3.25rem);
  --text-h1: clamp(2.625rem, 1.1rem + 5.2vw, 5.5rem);

  /* Spacing scale (8px base) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --section: clamp(5rem, 2.5rem + 7vw, 9.5rem);

  /* Grid */
  --wrap: 75rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --col-gap: clamp(1rem, 2.4vw, 2rem);
  --header-h: 4.5rem;
}

@media (min-width: 900px) {
  :root {
    --text-base: 1.125rem;
    --text-lead: 1.3125rem;
    --text-h3: 1.375rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background-color: var(--washi);
  color: var(--sumi);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.8;
}

/* Japanese text: strict kinsoku (no line may start with 、。ー or small kana), and
   break between phrases rather than mid-word where the browser supports it */
:lang(ja) {
  line-break: strict;
  word-break: auto-phrase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd {
  margin: 0;
}

/* No single-word last lines in paragraphs */
p {
  text-wrap: pretty;
}

a {
  color: var(--ai);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 2px solid var(--ai);
  outline-offset: 3px;
}

main [id] {
  scroll-margin-top: var(--header-h);
}

/* 花筏 background (js/hanaikada.js): a fixed canvas behind all content.
   z-index -1 paints it above the page background and below every section.
   The 50% opacity keeps all text above WCAG AA, even where petals overlap it. */
.hanaikada {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

@media print {
  .hanaikada {
    display: none;
  }
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--sumi);
  color: var(--washi);
}

.skip-link:focus {
  top: 1rem;
}

/* Placeholder review: add ?review to the URL to outline every .ph element */
.review .ph {
  outline: 1px dashed var(--ai);
  outline-offset: 2px;
}

/* --- Shared text styles ---------------------------------------------------- */
.eyebrow,
.section__label,
.facts__label,
.pillar__kicker,
.details dt,
.site-footer h2 {
  color: var(--nezumi);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.75;
}

/* --- Buttons --------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  border: 1px solid var(--ai);
  background: var(--ai);
  color: var(--washi);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  border-color: var(--sumi);
  background: var(--sumi);
}

.button--quiet {
  border-color: var(--sumi);
  background: transparent;
  color: var(--sumi);
}

.button--quiet:hover {
  border-color: var(--ai);
  background: transparent;
  color: var(--ai);
}

.button--small {
  min-height: 2.5rem;
  padding: 0 1.125rem;
  font-size: var(--text-sm);
}

@media (prefers-reduced-motion: no-preference) {
  .button__arrow {
    transition: transform 0.2s ease;
  }

  .button:hover .button__arrow {
    transform: translateX(3px);
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-5);
}

/* --- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  background-color: var(--washi);
  background-image: var(--washi-texture, none);
}

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

.logo {
  color: var(--sumi);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2.25rem;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.button) {
  color: var(--sumi);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-nav a:not(.button):hover {
  color: var(--ai);
  text-decoration: underline;
}

.site-nav li:last-child {
  margin-left: 0.25rem;
}

.menu-toggle {
  display: none;
}

/* Mobile menu: only collapses when JS is running; without JS the links simply wrap */
@media (max-width: 899.98px) {
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0 1rem;
    border: 1px solid var(--sumi);
    background: transparent;
    color: var(--sumi);
    font: inherit;
    font-size: var(--text-sm);
    letter-spacing: 0.04em;
    cursor: pointer;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: var(--space-3) var(--gutter) var(--space-4);
    border-bottom: 1px solid var(--rule);
    background-color: var(--washi);
    background-image: var(--washi-texture, none);
  }

  .js .menu-toggle[aria-expanded="false"] + .site-nav {
    display: none;
  }

  .js .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .js .site-nav a:not(.button) {
    font-size: var(--text-base);
  }

  .js .site-nav li:last-child {
    margin: 0.25rem 0 0;
  }
}

/* --- Sections: numeral + label + kanji beside the content ------------------ */
.section {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
}

.section__aside,
.section__body {
  grid-column: 1 / -1;
}

.section__aside {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.section__num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}

/* Japanese section label (私たちについて, お問い合わせ…). On narrow screens it sits on the
   same line as the English label; from 900px it becomes the vertical brush label. */
.section__aside {
  flex-wrap: wrap;
}

@media (max-width: 899.98px) {
  .section__aside .kanji {
    writing-mode: horizontal-tb;
    margin-right: 0;
    padding-right: 0;
    color: var(--nezumi);
    font-family: var(--font-head);
    font-size: var(--text-sm);
    line-height: 1.5;
    letter-spacing: 0.12em;
  }

  .section__aside .kanji::after {
    display: none;
  }
}

@media (min-width: 900px) {
  .section__aside {
    grid-column: 1 / span 3;
    flex-direction: column;
    align-items: flex-start;
    align-self: start;
    gap: var(--space-3);
    position: sticky;
    top: calc(var(--header-h) + var(--space-4));
    margin-bottom: 0;
    /* Optical alignment: the numeral's cap sits level with the title's first line */
    padding-top: 0.35rem;
  }

  .section__body {
    grid-column: 4 / -1;
  }

  .section__num {
    font-size: 2rem;
    letter-spacing: 0.02em;
  }

  .section__aside .kanji {
    display: block;
    margin-top: var(--space-2);
    color: var(--nezumi);
    font-family: var(--font-head);
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: 0.3em;
  }
}

.section-title {
  max-width: 17em;
  font-size: var(--text-h2);
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.section__intro {
  max-width: 34rem;
  margin-top: var(--space-3);
  color: var(--sumi);
}

.prose {
  max-width: 38rem;
  margin-top: var(--space-5);
}

.prose p + p {
  margin-top: var(--space-3);
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
  padding-top: clamp(4rem, 1rem + 9vw, 9rem);
}

.hero__grid {
  align-items: end;
  row-gap: var(--space-5);
}

.hero__main {
  grid-column: 1 / -1;
}

.hero-title {
  font-size: var(--text-h1);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero .eyebrow {
  margin-bottom: var(--space-3);
}

.hero__lead {
  max-width: 34rem;
  margin-top: var(--space-4);
}

.hero__aside {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
}

.hero__vertical {
  display: none;
}

.hero .hanko {
  width: 4.5rem;
  font-size: 1rem;
}

@media (min-width: 900px) {
  .hero__main {
    grid-column: 1 / span 9;
  }

  .hero__aside {
    grid-column: 11 / -1;
    flex-direction: column;
    align-items: center;
    justify-self: end;
    gap: var(--space-4);
  }

  .hero__vertical {
    display: block;
    writing-mode: vertical-rl;
    color: var(--sumi);
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 2;
    letter-spacing: 0.32em;
  }

  .hero .hanko {
    width: 5rem;
    font-size: 1.0625rem;
  }
}

/* At-a-glance facts under the hero */
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(4rem, 2rem + 6vw, 7rem);
  padding: 0;
  border-top: 1px solid var(--rule-strong);
  list-style: none;
}

.facts li {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--rule);
}

.facts__value {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
}

@media (min-width: 700px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }

  .facts li {
    padding-block: var(--space-3) var(--space-6);
    border-bottom: 0;
  }
}

/* --- 一 Who we are: three pillars ------------------------------------------ */
.pillars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5) var(--col-gap);
  margin-top: var(--space-6);
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pillar {
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule-strong);
}

/* Kanji in a thin ink frame, like a seal impression */
.pillar__mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--sumi);
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
}

.pillar__title {
  margin-top: var(--space-3);
  font-size: var(--text-h3);
}

.pillar__kicker {
  margin-top: 0.25rem;
}

.pillar__text {
  margin-top: var(--space-2);
  max-width: 22rem;
}

/* --- 二 Our way: principles with vertical words ---------------------------- */
.principles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5) var(--col-gap);
  margin-top: var(--space-6);
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-6);
  }
}

.principle {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule-strong);
}

.principle__word {
  writing-mode: vertical-rl;
  justify-self: start;
  font-family: var(--font-head);
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
}

.principle h3 {
  font-size: var(--text-h3);
  line-height: 1.35;
}

.principle__romaji {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ai);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.principle__text p {
  margin-top: var(--space-2);
  max-width: 26rem;
}

/* --- 三 What we do: services ------------------------------------------------ */
.services {
  margin-top: var(--space-6);
  padding: 0;
  border-top: 1px solid var(--rule-strong);
  list-style: none;
}

.service {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--space-1) var(--col-gap);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--rule);
}

.service__num {
  grid-row: span 2;
  padding-top: 0.45rem;
  color: var(--ai);
  font-family: var(--font-head);
  font-size: var(--text-sm);
  line-height: 1;
  letter-spacing: 0.08em;
}

/* Name above its tag on every row, so tagged rows line up the same way */
.service__name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
}

.service h3 {
  font-size: var(--text-h3);
}

.service__text {
  max-width: 30rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 0.5rem;
  border: 1px solid currentColor;
  color: var(--ai);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: 2.5rem minmax(0, 4fr) minmax(0, 5fr);
    align-items: baseline;
  }

  .service__num {
    grid-row: auto;
    padding-top: 0;
  }
}

/* --- 四 How we work: steps on one hairline path ---------------------------- */
.steps {
  --dot: 0.5625rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--space-6);
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 0 0 var(--space-5) var(--space-4);
  border-left: 1px solid var(--rule-strong);
}

.step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

/* Dot on the path */
.step::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: calc(var(--dot) / -2 - 0.5px);
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--ai);
}

.step__num {
  display: block;
  color: var(--ai);
  font-family: var(--font-head);
  font-size: var(--text-sm);
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.step h3 {
  margin-top: var(--space-1);
  font-size: var(--text-h3);
}

.step h3 + p {
  margin-top: var(--space-1);
  max-width: 24rem;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--col-gap);
    border-top: 1px solid var(--rule-strong);
  }

  .step,
  .step:last-child {
    padding: var(--space-4) 0 0;
    border-left: 0;
  }

  .step::before {
    top: calc(var(--dot) / -2 - 0.5px);
    left: 0;
  }
}

/* --- 05 Across the Pacific: dot map and local clocks ----------------------- */
/* The map and clocks stay in the content column (4–12 on desktop). They must not
   span the aside columns: the sticky aside travels down its whole section and
   would slide over them. */
.pacific,
.clocks {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .pacific,
  .clocks {
    grid-column: 4 / -1;
  }
}

.pacific {
  margin: var(--space-6) 0 0;
}

.pacific__map {
  position: relative;
}

.pacific__map svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Each land dot is a zero-length segment drawn with a round cap */
.pacific__land {
  fill: none;
  stroke: var(--nezumi);
  stroke-opacity: 0.38;
  stroke-width: 4.5;
  stroke-linecap: round;
}

.pacific__arc {
  fill: none;
  stroke: var(--ai);
  stroke-opacity: 0.8;
  stroke-width: 1.25;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.pacific__pin {
  fill: var(--ai);
}

.pacific__pin--home {
  fill: var(--sumi);
}

.pacific__ring {
  fill: var(--washi);
  stroke: var(--ai);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.pacific__ring--home {
  stroke: var(--sumi);
}

.pacific__label {
  position: absolute;
  top: var(--y);
  left: var(--x);
  padding: 0.125rem 0.375rem;
  background-color: var(--washi);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  transform: translate(0.875rem, -50%); /* default: right of the pin */
}

/* Placement around the pin, chosen per city so neighbours don't collide
   (Chicago, New York and Boston sit close together) */
.pacific__label--left {
  transform: translate(calc(-100% - 0.875rem), -50%);
}

.pacific__label--above {
  transform: translate(-50%, calc(-100% - 0.75rem));
}

.pacific__label--below {
  transform: translate(-50%, 0.75rem);
}

/* Fujisawa's label sits below its pin, over the ocean */
.pacific__label--home {
  transform: translate(-0.375rem, 0.875rem);
}

/* Below 900px the map is too small to label every city; the clocks list them all */
@media (max-width: 899.98px) {
  .pacific__label--minor {
    display: none;
  }
}

.pacific__label [lang="ja"],
.clock__city [lang="ja"] {
  margin-left: 0.4em;
  color: var(--nezumi);
  font-family: var(--font-head);
  font-weight: 500;
}

.pacific__caption {
  margin-top: var(--space-3);
  color: var(--nezumi);
  font-size: var(--text-sm);
}

.clocks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--space-5);
  padding: 0;
  border-top: 1px solid var(--rule-strong);
  list-style: none;
}

.clock {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--rule);
}

.clock__city {
  color: var(--nezumi);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.clock__city [lang="ja"] {
  letter-spacing: 0.1em;
}

.clock__time {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.clock__note {
  color: var(--nezumi);
  font-size: var(--text-sm);
}

.clock__time[hidden],
.clock__note[hidden] {
  display: none;
}

@media (min-width: 700px) {
  .clocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }

  .clock {
    border-bottom: 0;
  }
}

@media (min-width: 1100px) {
  .clocks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 599.98px) {
  .pacific__label {
    padding: 0.0625rem 0.25rem;
    font-size: 0.6875rem;
    transform: translate(0.5rem, -50%);
  }

  /* The US pins sit almost level on a narrow map, so New York's label goes above
     its pin and San Francisco's below */
  .pacific__label--ny {
    transform: translate(calc(-100% + 0.5rem), calc(-100% - 0.5rem));
  }

  .pacific__label--sf {
    transform: translate(-50%, 0.5rem);
  }

  .pacific__label--home {
    transform: translate(-0.25rem, 0.5rem);
  }
}

/* --- 06 Contact ------------------------------------------------------------ */
.contact__title {
  font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--space-6);
  border-top: 1px solid var(--rule-strong);
}

.details > div {
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--rule);
}

.details dd {
  margin-top: 0.375rem;
}

.details__link {
  overflow-wrap: anywhere; /* long email addresses wrap on narrow screens */
}

.details__note {
  color: var(--nezumi);
  font-size: var(--text-sm);
}

.details__ja {
  color: var(--nezumi);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
}

@media (min-width: 700px) {
  .details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }

  .details > div {
    border-bottom: 0;
  }
}

/* --- Footer ---------------------------------------------------------------- */
.site-footer {
  padding-top: clamp(4rem, 2rem + 6vw, 7rem);
  border-top: 1px solid var(--rule-strong);
  font-size: var(--text-sm);
}

.site-footer__grid {
  row-gap: var(--space-5);
}

.site-footer__brand,
.site-footer__col {
  grid-column: 1 / -1;
}

.logo--large {
  font-size: clamp(2.5rem, 1.5rem + 3vw, 3.75rem);
  letter-spacing: 0.02em;
}

.site-footer__tagline {
  margin-top: var(--space-3);
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1.4;
}

.site-footer h2 {
  margin-bottom: var(--space-2);
}

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

.site-footer li + li {
  margin-top: 0.625rem;
}

.site-footer a:not(.logo) {
  color: var(--sumi);
  text-decoration: none;
}

.site-footer a:not(.logo):hover {
  color: var(--ai);
  text-decoration: underline;
}

@media (min-width: 700px) {
  .site-footer__brand {
    grid-column: 1 / span 6;
  }

  .site-footer__col {
    grid-column: span 3;
  }
}

@media (min-width: 900px) {
  .site-footer__brand {
    grid-column: 1 / span 6;
  }

  .site-footer__col--explore {
    grid-column: 7 / span 3;
  }

  .site-footer__col--contact {
    grid-column: 10 / span 3;
  }
}

.legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-top: clamp(4rem, 2rem + 6vw, 6rem);
  padding-block: var(--space-3);
  border-top: 1px solid var(--rule);
  color: var(--nezumi);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

.legal__place {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  letter-spacing: 0.3em;
}
