/* The header of meiroku.com's photograph pages, one component for the Top and the policy pages (2026-11-17, owner:
   「別にポリシーページもトップページと全く同じようにハンバーガーメニューのヘッダー共通して使えばいいのに　分ける意味が
   わからない」). The logo, the menu (in the bar on wide screens; behind the round button on phones, the M3 menu), the
   language switch (site-shared.css) and the contact button, inside a frame: the Top's stage, or a policy page's cover.
   Moved here unchanged from top/page.css, top/menu.css and site-shared.css; '.stage' as the frame is
   ':is(.stage, .policy-cover)'. Behaviour: the Japan-time clock is site-shared.js's on both; the round button, the
   menu's views and scenes are top/page.js's on the Top, site-shared.js's on the policy pages; the menu's place (in the
   bar on wide screens) is set by the same inline line before the first paint, then kept by top/fluid.js or
   site-shared.js. The policy pages' markup is the Top's, written by Sierra's scripts/ui/hp_policy_build.py. */

/* The Japan-time clock's face (the menu on phones) */
@font-face {
  font-family: "Doto Clock";
  src: url("/assets/doto-clock.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* A policy page's cover gives the header the text the Top's stage gives it: the Top's Noto Sans JP (its own subset,
   tools/fonts/jp_subsets.py, here under a name of its own so a policy's text keeps its fonts), its size and colour.
   No weight (:where): anything the header sets itself still wins. */
@font-face {
  font-family: "MEIROKU Header";
  src: url("/assets/noto-sans-jp-top-aa190122bc.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:where(.policy-cover) > :where(.header, .navigation) {
  font-family: "MEIROKU Header", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 15px;
  line-height: normal;
  color: #f0eee7;
  -webkit-font-smoothing: antialiased;
}

/* What the Top's page gives every link, button and drawing (top/page.css), given here to the header and the menu on a
   policy page's cover, where the page's own defaults differ; the same weight as the Top's (one element). */
:where(.policy-cover) :where(.header, .navigation) :is(a, button) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
:where(.policy-cover) :where(.header, .navigation) a {
  color: inherit;
  text-decoration: none;
}
/* the contact buttons are links on a policy page; a button centres its words */
:where(.policy-cover) :where(.header, .navigation) a:where(.contact-action) {
  text-align: center;
}
:where(.policy-cover) :where(.header, .navigation) button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
:where(.policy-cover) :where(.header, .navigation) svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:where(.policy-cover) :where(.header, .navigation) :is(a, button):focus-visible {
  outline: 2px solid #526965;
  outline-offset: 5px;
}
:where(.policy-cover) :where(.header, .navigation) :is(button, a:where(.contact-action)) {
  transition:
    scale 0.35s var(--ease-fluid),
    background 0.35s,
    transform 0.6s var(--ease-fluid);
}
:where(.policy-cover) :where(.header, .navigation) :is(button, a:where(.contact-action)):active {
  scale: 0.96;
}
@media (prefers-reduced-motion: reduce) {
  :where(.policy-cover) :where(.header, .navigation),
  :where(.policy-cover) :where(.header, .navigation) *,
  :where(.policy-cover) :where(.header, .navigation) *::before,
  :where(.policy-cover) :where(.header, .navigation) *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* The frame's measures (the Top's stage and the policy covers) and the header, the menu and the contact button */
/* How far the frame (the Top's stage, a policy page's cover) sits from the window's edge: one value for both */
:root {
  --frame-inset: 20px;
}
@media (min-width: 761px) and (max-width: 1100px) {
  :root {
    --frame-inset: 14px;
  }
}
@media (max-width: 760px) {
  :root {
    --frame-inset: 9px;
  }
}
:root {
  --line: rgba(240, 238, 231, 0.24);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(24px, 3.25vw, 64px);
  --rail: 200px;
  --shell-ink: #213b3b;
  --soft-ink: #526260;
  --curve-nav: 40px;
  --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
}
.header {
  position: absolute;
  top: 30px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  --header-offset: 29px;
}
.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}
.brand-symbol {
  width: 38px;
  height: 38px;
}
.brand-wordmark {
  width: 147.9px;
  height: auto;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 34px;
}
.menu-toggle {
  display: none;
}
.navigation {
  position: absolute;
  left: var(--gutter);
  top: 30.9%;
  width: var(--rail);
  z-index: 30;
  background: linear-gradient(145deg, #f0f6f329, #eef8f709 45%, #e4f1ec14), #10252d38;
  backdrop-filter: blur(34px) saturate(140%) brightness(0.94);
  -webkit-backdrop-filter: blur(34px) saturate(140%) brightness(0.94);
  padding: 24px 20px 20px;
  box-shadow:
    inset 0 1px 0 #ffffff52,
    inset 1px 0 0 #ffffff1a,
    inset 0 -1px 0 #ffffff14,
    0 20px 60px #04131730;
  isolation: isolate;
  --navigation-anchor: 26.5;
  border-radius: var(--curve-nav);
  border: 1px solid #fff8;
}
.navigation::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.8' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.nav-cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding-bottom: 25px;
  border-bottom: 0;
}
.nav-links {
  display: grid;
  gap: 2px;
  position: relative;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 47px;
  font-size: 13px;
  white-space: nowrap;
  padding-right: 3px;
  position: relative;
  padding: 0 12px;
  border: 0;
  color: #fff;
  border-radius: 24px;
  transition: color 0.25s;
  isolation: isolate;
}
.nav-pointer {
  font-weight: 300;
  margin-left: auto;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition:
    opacity 0.25s,
    transform 0.4s var(--ease);
  font-size: 17px;
}
.nav-links a[aria-current="page"] {
  color: #fff;
}
.nav-links a[aria-current="page"] .nav-index {
  color: #e6bf83;
}
.nav-links a[aria-current="page"] .nav-pointer,
.nav-links a:hover .nav-pointer {
  opacity: 1;
  transform: none;
}
.nav-links a:hover {
  color: white;
}
.nav-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 20px;
  border-color: #29474628;
}
.nav-bottom span {
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.07em;
}
@media (min-width: 1800px) {
  :root {
    --rail: 235px;
  }
  .navigation {
    padding: 28px;
  }
  .nav-links a {
    font-size: 14px;
    height: 55px;
  }
  .nav-cap {
    font-size: 10px;
  }
  .nav-bottom span {
    font-size: 12px;
  }
}
@media (max-height: 780px) and (min-width: 1001px) {
  .navigation {
    top: 24%;
    padding-top: 17px;
  }
  .nav-cap {
    padding-bottom: 12px;
  }
  .nav-links a {
    height: 41px;
  }
  .nav-bottom {
    margin-top: 16px;
    padding-top: 15px;
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  :root {
    --rail: 175px;
  }
  .navigation {
    padding: 20px 16px;
  }
  .nav-links a {
    gap: 9px;
    font-size: 11px;
  }
  .nav-bottom {
    margin-top: 20px;
  }
  .header-actions {
    gap: 20px;
  }
}
@media (max-width: 760px) {
  :root {
    --gutter: 23px;
    --curve-nav: 32px;
  }
  .header {
    top: 23px;
  }
  .brand {
    gap: 11px;
  }
  .brand-symbol {
    width: 36px;
    height: 36px;
  }
  .brand-wordmark {
    width: 125.8px;
  }
  .header-actions {
    gap: 12px;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
  .navigation {
    display: none;
    top: 83px;
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    padding: 23px;
    z-index: 30;
    background: linear-gradient(145deg, #edf5f329, #d8e9e90a), #10252d99;
    box-shadow: 0 20px 50px #07131955;
    max-height: calc(100svh - 130px);
    overflow: auto;
    border-radius: var(--curve-nav);
  }
  .navigation.is-open {
    display: block;
  }
  .nav-cap {
    padding-bottom: 15px;
    align-items: center;
    gap: 12px;
  }
  .nav-links a {
    font-size: 15px;
    height: 52px;
  }
  .nav-bottom {
    margin-top: 17px;
    padding-top: 14px;
  }
  .nav-bottom span {
    font-size: 12px;
  }
}
@media (max-width: 380px) {
  .brand {
    gap: 8px;
  }
  .header {
    top: 20px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .navigation {
    background: #172b30;
  }
  .contact-link {
    background: #18343b;
  }
}
.nav-contact {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 12px;
  min-height: 32px;
  text-align: left;
  color: #e1e7de;
}
.nav-contact svg {
  transition: transform 0.35s var(--ease);
}
@media (max-width: 760px) {
  .nav-contact {
    font-size: 14px;
    min-height: 42px;
  }
}
/* Japan time as a quiet typographic instrument, with secondary seconds. */
.live-clock {
  padding-left: 22px;
  border-left: 1px solid #f0eee738;
  min-width: 139px;
  white-space: nowrap;
  color: var(--shell-ink);
}
.clock-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 5px;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: var(--soft-ink);
}
.clock-zone {
  font:
    9px/1.2 Arial,
    sans-serif;
  letter-spacing: 0.14em;
  opacity: 1;
}
.live-clock time {
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}
.clock-main {
  font-size: 24px;
}
.clock-seconds {
  font-size: 14px;
  color: var(--soft-ink);
}
.clock-divider {
  margin: 0 3px 0 5px;
  opacity: 0.45;
}
@media (max-width: 760px) {
  .live-clock {
    min-width: 79px;
    padding: 0;
    border: 0;
    color: #f1f3eb;
  }
  .clock-meta {
    font-size: 7px;
    margin-bottom: 4px;
    letter-spacing: 0.06em;
    color: #f1f3eb;
    gap: 8px;
  }
  .clock-main {
    font-size: 17px;
  }
  .clock-seconds {
    font-size: 10px;
    color: #f1f3eb;
  }
  .clock-divider {
    margin: 0 1px 0 2px;
  }
}
@media (max-width: 380px) {
  .live-clock {
    position: absolute;
    right: 0;
    top: 55px;
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .clock-meta {
    margin: 0;
    font-size: 8px;
  }
  .clock-zone {
    display: none;
  }
  .clock-main {
    font-size: 11px;
  }
  .clock-seconds {
    font-size: 9px;
  }
  .navigation {
    top: 103px;
    max-height: calc(100svh - 150px);
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navigation {
    background: #1c3038ed;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .navigation {
    background: #172b30;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .navigation::before {
    display: none;
  }
}
:root {
  --gutter: 36px;
  --rail: 202px;
}
.header {
  top: var(--header-offset);
  left: 34px;
  right: 34px;
}
.brand-symbol {
  width: 35px;
  height: 35px;
}
.brand-wordmark {
  width: 139px;
}
.brand {
  gap: 13px;
}
.header-actions {
  gap: 24px;
}
.live-clock {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 0;
  padding: 0;
  border: 0;
}
.clock-meta {
  font-size: 9px;
  margin-bottom: 7px;
}
.clock-main {
  font-size: 25px;
}
.clock-seconds {
  font-size: 14px;
}
.contact-link {
  display: flex;
  gap: 28px;
  backdrop-filter: blur(12px);
  transition:
    background 0.25s,
    color 0.25s;
  padding: 0 21px;
}
.contact-link svg {
  transition: transform 0.5s var(--ease-fluid);
}
.navigation {
  left: var(--gutter);
  top: var(--navigation-top, 26.5%);
  width: var(--rail);
  padding: 26px 12px 19px;
  background: linear-gradient(145deg, #fff7, #f4f6ed2e 50%), #e2eae72b;
  backdrop-filter: blur(36px) saturate(1.15);
  -webkit-backdrop-filter: blur(36px) saturate(1.15);
  box-shadow:
    inset 0 1px 1px #fff8,
    0 18px 50px #071e2420;
}
.nav-cap {
  padding: 0 11px 20px;
}
/* One official wordmark; a quieter signature inside the navigation. */
.nav-wordmark {
  height: auto;
  width: 116px;
  max-width: calc(100% - 20px);
  filter: none;
  opacity: 1;
}
.nav-links a {
  height: 46px;
  font-size: 13px;
}
.nav-links a[aria-current="page"],
.nav-links a[aria-current="page"] .nav-index {
  color: var(--shell-ink);
}
.nav-links a:hover {
  color: #fff;
}
.nav-links a[aria-current="page"]:hover {
  color: var(--shell-ink);
}
.nav-active-shape {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46px;
  border-radius: 24px;
  box-shadow: 0 3px 12px #081b2512;
  pointer-events: none;
  transition:
    transform 650ms var(--ease-fluid),
    border-radius 650ms var(--ease-fluid);
}
.nav-bottom {
  margin: 14px 11px 0;
  padding-top: 15px;
}
.nav-contact {
  font-size: 11px;
  min-height: 36px;
}
@media (min-width: 1600px) {
  :root {
    --gutter: 48px;
    --rail: 222px;
  }
  .navigation {
    padding: 29px 14px 22px;
  }
  .nav-links a {
    height: 50px;
    font-size: 14px;
  }
  .nav-active-shape {
    height: 50px;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  :root {
    --gutter: 26px;
    --rail: 180px;
  }
  .header {
    left: 28px;
    right: 28px;
  }
  .brand-wordmark {
    width: 123px;
  }
  .header-actions {
    gap: 16px;
  }
  .contact-link {
    gap: 14px;
    font-size: 11px;
  }
  .navigation {
    --navigation-anchor: 25;
    top: var(--navigation-top, 25%);
  }
  .nav-links a {
    padding: 0 7px;
    font-size: 12px;
  }
  .nav-cap {
    padding: 0 7px 16px;
  }
  .nav-wordmark {
    width: 105px;
  }
}
@media (max-width: 760px) {
  :root {
    --gutter: 22px;
  }
  .header {
    top: 24px;
    left: 22px;
    right: 22px;
  }
  .brand {
    gap: 9px;
  }
  .brand-symbol {
    width: 29px;
    height: 29px;
  }
  .brand-wordmark {
    width: 109px;
  }
  .header-actions {
    gap: 12px;
  }
  .live-clock {
    position: static;
    min-width: 74px;
    padding: 0;
    border: 0;
  }
  .clock-meta {
    font-size: 7px;
    margin-bottom: 4px;
  }
  .clock-zone {
    font-size: 7px;
  }
  .clock-main {
    font-size: 17px;
  }
  .clock-seconds {
    font-size: 10px;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    border-radius: 50%;
    align-items: center;
    backdrop-filter: blur(8px);
    width: 42px;
    height: 42px;
    border: 1px solid #29474624;
    background: transparent;
    border-color: #f3f6ef66;
    min-width: 44px;
    min-height: 44px;
  }
  .navigation {
    left: 22px;
    right: 22px;
    top: 90px;
    width: auto;
    padding: 25px 16px 20px;
    background: linear-gradient(145deg, #dce7e070, #dfe9e32b), #27433cc9;
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
    max-height: calc(100svh - 130px);
  }
  .nav-links a {
    height: 50px;
    font-size: 15px;
    padding: 0 16px;
  }
  .nav-active-shape {
    height: 50px;
  }
  .nav-cap {
    padding: 0 14px 20px;
  }
  .nav-bottom {
    margin: 18px 14px 0;
  }
  .nav-contact {
    font-size: 13px;
    min-height: 42px;
  }
}
@media (max-width: 380px) {
  :root {
    --gutter: 18px;
  }
  .header {
    left: 18px;
    right: 18px;
  }
  .brand {
    gap: 7px;
  }
  .brand-symbol {
    width: 26px;
    height: 26px;
  }
  .brand-wordmark {
    width: 101px;
  }
  .header-actions {
    gap: 9px;
  }
  .menu-toggle {
    width: 38px;
    height: 38px;
  }
  .live-clock {
    position: absolute;
    top: 55px;
    right: 0;
  }
  .clock-meta {
    margin: 0;
    font-size: 8px;
  }
  .clock-zone {
    display: none;
  }
  .clock-main {
    font-size: 12px;
  }
  .clock-seconds {
    font-size: 9px;
  }
  .navigation {
    top: 110px;
    max-height: calc(100svh - 155px);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .navigation {
    background: #34504e;
  }
}
@media (min-width: 761px) and (max-height: 780px) {
  .navigation {
    --navigation-anchor: 19.5;
    top: var(--navigation-top, 19.5%);
    padding: 20px 12px 16px;
  }
  .nav-cap {
    padding-bottom: 16px;
  }
  .nav-links a,
  .nav-active-shape {
    height: 42px;
  }
  .nav-bottom {
    margin-top: 12px;
    padding-top: 12px;
  }
  .nav-contact {
    min-height: 32px;
  }
}
@media (min-width: 761px) {
  .navigation {
    max-height: var(--navigation-max-height, none);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #35545155 transparent;
  }
}
/* The milky rail keeps dark labels legible across all three photographs. */
.navigation {
  background: linear-gradient(145deg, #ffffff99, #f4f6ed55 50%), #dce8e7a8;
}
.nav-cap,
.nav-links a,
.nav-links a:hover,
.nav-contact {
  color: var(--shell-ink);
}
.nav-active-shape {
  background: #294746;
}
.nav-links a[aria-current="page"],
.nav-links a[aria-current="page"]:hover,
.nav-links a[aria-current="page"] .nav-index {
  color: #f3f3ec;
}
@media (prefers-reduced-transparency: reduce) {
  .navigation {
    background: #e5ebe3;
  }
}
@media (max-width: 760px) {
  .live-clock,
  .clock-meta,
  .clock-seconds {
    color: var(--shell-ink);
  }
  .live-clock {
    left: auto !important;
  }
}
@media (max-width: 380px) {
  .live-clock {
    top: 55px !important;
  }
}
@media (max-width: 760px) {
  .clock-cutout,
  .header-actions .live-clock {
    display: none;
  }
  .menu-toggle span {
    width: 16px;
    height: 1px;
    transition:
      transform 0.35s,
      opacity 0.35s;
    background: #f5f7ef;
    box-shadow: 0 1px 5px #071b2766;
  }
  .navigation {
    top: 90px;
    max-height: calc(100svh - 130px);
  }
  .nav-cap {
    padding-bottom: 14px;
  }
  .navigation .live-clock {
    position: static;
    inset: auto !important;
    display: block;
    flex: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--shell-ink);
    line-height: 1;
    text-shadow: none;
    width: max-content;
  }
  .navigation .clock-meta {
    color: var(--soft-ink);
    font-size: 7px;
    line-height: 10px;
    margin: 0 0 4px;
    gap: 6px;
    letter-spacing: 0.04em;
  }
  .navigation .clock-zone {
    display: inline;
    font-size: 6px;
  }
  .nav-bottom {
    margin-top: 8px;
    padding-top: 12px;
  }
}
@media (max-width: 760px) and (max-height: 620px) {
  .navigation {
    padding: 20px 14px 16px;
  }
  .nav-cap {
    padding-bottom: 16px;
  }
  .nav-links a,
  .nav-active-shape {
    height: 44px;
  }
  .nav-bottom {
    padding-top: 8px;
  }
}
@supports (corner-shape: superellipse(1.3)) {
  .navigation {
    corner-shape: superellipse(1.3);
  }
  .navigation::before {
    corner-shape: inherit;
  }
}
.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  max-width: 100%;
  gap: 18px;
  min-height: 52px;
  padding: 8px 8px 8px 20px;
  border: 0;
  border-radius: 30px;
  background: #294746;
  color: #f5f7ef;
  text-decoration: none;
}
.contact-action .contact-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edf0e9;
  color: #294746;
}
.contact-action .contact-arrow svg {
  width: 17px;
  height: 17px;
  transform: none;
}
.contact-action:hover {
  background: #203c3b;
  color: #fff;
}
.contact-link.contact-action {
  background: #edf0e9;
  color: #294746;
  font-size: 12px;
}
.contact-link.contact-action .contact-arrow {
  background: #294746;
  color: #f5f7ef;
}
.contact-link.contact-action:hover {
  background: #fff;
}
.navigation:focus {
  outline: none;
}
@media (min-width: 761px) {
  .header .navigation {
    position: absolute;
    left: 50%;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    max-height: none;
    padding: 8px;
    overflow: visible;
    border: 0;
    border-radius: 22px;
    isolation: isolate;
    background: linear-gradient(115deg, #ffffffa8, #ffffff68 52%, #ffffff91);
    backdrop-filter: blur(32px) saturate(1.2);
    -webkit-backdrop-filter: blur(32px) saturate(1.2);
    box-shadow: 0 10px 32px #162b3b16;
  }
  .header .navigation::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath d='M0 0h128v128H0z' filter='url(%23grain)' opacity='.5'/%3E%3C/svg%3E");
    opacity: 0.21;
    mix-blend-mode: multiply;
  }
  .nav-cap,
  .nav-bottom,
  .nav-active-shape {
    display: none;
  }
  .header .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .header .nav-links a {
    height: 44px;
    padding: 0 18px;
    border-radius: 18px;
    color: #253d3d;
    font-size: 13px;
    font-weight: 450;
    transition:
      background 0.2s,
      color 0.2s;
  }
  .header .nav-links a:hover {
    background: #ffffff58;
  }
  .header .nav-links a[aria-current="page"] {
    background: #294746;
    color: #fff;
  }
  .header .nav-index,
  .header .nav-pointer {
    display: none;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .header .nav-links a {
    padding-inline: 11px;
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .contact-link.contact-action {
    display: none;
  }
  .navigation .nav-active-shape {
    display: none;
  }
  .navigation .nav-links a,
  .navigation .nav-links a:hover,
  .navigation .nav-links a[aria-current="page"],
  .navigation .nav-links a[aria-current="page"]:hover {
    color: var(--shell-ink);
    background: transparent;
  }
  .navigation .nav-links a[aria-current="page"] .nav-index {
    color: var(--soft-ink);
  }
  .navigation .nav-links a:not(.nav-ec-link) .nav-pointer {
    opacity: 0;
  }
  .navigation .nav-links a:focus-visible {
    outline: 2px solid #526965;
    outline-offset: 0;
  }
  .navigation .nav-bottom {
    margin: 20px 0 0;
    padding: 0;
    border: 0;
  }
  .nav-contact.contact-action {
    min-height: 54px;
    font-size: 14px;
  }
  .navigation .live-clock {
    min-width: 91px;
  }
  .navigation time {
    line-height: 16px;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 3px;
    white-space: nowrap;
  }
  .navigation .clock-main {
    font-size: 14px;
    font:
      700 21px/1 "Doto Clock",
      monospace;
    letter-spacing: -0.05em;
  }
  .navigation .clock-seconds {
    font-size: 9px;
    color: var(--soft-ink);
    font:
      700 12px/1 "Doto Clock",
      monospace;
    letter-spacing: -0.05em;
  }
  .navigation .clock-main,
  .navigation .clock-seconds {
    display: inline-flex;
    align-items: center;
  }
  .navigation .clock-divider {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 0.13em;
    height: 0.46em;
    margin: 0 0.17em;
    opacity: 0.8;
  }
  .navigation .clock-divider::before,
  .navigation .clock-divider::after {
    content: "";
    width: 0.13em;
    height: 0.13em;
    background: currentColor;
    border-radius: 0.03em;
  }
  .nav-cap .nav-wordmark {
    max-width: calc(100% - 103px);
  }
}
@media (min-width: 761px) and (prefers-reduced-transparency: reduce) {
  .header .navigation {
    background: #edf0e9;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .header .navigation::before {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .header .nav-links a {
    transition: none;
  }
}

/* The three policies at the foot of the menu on phones (from top/scenery/style.css, where the corner panel's links
   above the copyright stay); not in the bar on wide screens */
.nav-policies a {
  color: inherit;
  text-decoration: none;
}
@media (hover: hover) {
  .nav-policies a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
.nav-policies a:focus-visible {
  outline: 1.5px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}
.nav-policies {
  display: none;
}
@media (max-width: 760px) {
  .nav-policies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 18px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: #526260;
  }
}

/* The Top's header between phone and desktop (2026-11-16). Beside the switch, the centred menu ran over it from 761 to
   about 965px (the Japanese page's 日本語 hidden under the menu) and the English menu up to about 1110px. Up to 1180px the
   switch shows JA / EN, as on phones (screen readers still hear 日本語 / English). Up to 1000px the contact button keeps
   its words and lets the arrow circle go (the owner's consult buttons are words without an arrow), the buttons sit a
   little closer, and so do the menu's links. Measured at 761–1280px in both languages: 19px or more on each side. */
@media (min-width: 761px) and (max-width: 1180px) {
  .header .lang-switch-header .lang-full {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .header .lang-switch-header .lang-code {
    display: inline;
  }
  .header .lang-switch-header a {
    padding: 0 8px;
  }
  /* the codes are narrow: each one's press area reaches out on its own side (about 40 × 44px on touch screens) */
  .header .lang-switch-header a:first-of-type::after {
    inset: -8px -1px -8px -7px;
  }
  .header .lang-switch-header a:last-of-type::after {
    inset: -8px -7px -8px -1px;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .header .header-actions {
    gap: 12px;
  }
  .header .contact-link.contact-action {
    gap: 0;
    padding: 8px 16px;
  }
  .header .contact-link.contact-action .contact-arrow {
    display: none;
  }
  .header .nav-links a {
    padding-inline: 8px;
  }
}

/* The Top's menu on phones: M3「風景の色を地に」, chosen by the owner on 2026-11-15 (「①M3だな」).
   - The menu covers the stage. The landscape stays alive under a blur, so the menu takes the colours of the scene on
     screen and moves slowly with them (page.js keeps the scenes turning while the menu is open on phones).
   - No numbers, the contact in a quiet white glass instead of the green pill, the three policies small and stacked,
     the Japan-time clock kept (owner: 「ボタンとかもこの色である必要性分からないし、01, 02, 03とか番号いらないし、
     ポリシーの文字でかいし縦に並べたいし」).
   - The words come in the way the owner liked on Exo Ape (「最初の読み込みのローディングや、フォントが滑らかに入ってくる
     感じとか、ヌルッとした感じは高級感あっていいな」): each line rises out of its own mask with a long ease-out, one after
     another, then the clock, the contact and the policies settle in.
   Desktop is not touched: every rule is inside the phone media query.
   Modern Web Guidance: navbar (animate opacity and translate only, respect reduced motion), motion (opt in with
   no-preference), natural-interactions (hover, press and a visible focus ring for every control). */
@media (max-width: 760px) {
  :is(.stage, .policy-cover) > .navigation {
    --m3-mincho: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
    inset: 0;
    width: auto;
    max-height: none;
    z-index: 15; /* under the header (logo and close), over the footer */
    /* The band under the header is a transparent border, not padding: the glass and the grain still cover it, but
       words scrolled up are clipped 8px below the close button and never pass under the logo (small phones held
       sideways, where the menu scrolls; QA 11/15). The words still start 104px down, as before. */
    padding: 28px 30px max(36px, env(safe-area-inset-bottom));
    border: 0;
    border-top: 76px solid transparent;
    border-radius: inherit;
    /* the grain of the menu (page.css .navigation::before, opacity .045, here baked into the image: .8 x .045) is
       a background layer so it also covers the band and stays still while the words scroll */
    background:
      url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.036' d='M0 0h160v160H0z'/%3E%3C/svg%3E")
        0 0 / 160px 160px border-box,
      #07141a66;
    -webkit-backdrop-filter: blur(26px) saturate(1.35);
    backdrop-filter: blur(26px) saturate(1.35);
    box-shadow: none;
    color: #fff;
    overflow: auto;
    overscroll-behavior: contain;
  }
  :is(.stage, .policy-cover) > .navigation.is-open {
    display: flex;
    flex-direction: column;
  }
  :is(.stage, .policy-cover) > .navigation::before {
    display: none;
  }
  /* The clock: the same Japan time, in white at the top */
  :is(.stage, .policy-cover) > .navigation .nav-cap {
    display: block;
    padding: 0;
  }
  :is(.stage, .policy-cover) > .navigation .nav-wordmark {
    display: none;
  }
  :is(.stage, .policy-cover) > .navigation .live-clock {
    width: auto;
    min-width: 0;
    color: #fff;
  }
  :is(.stage, .policy-cover) > .navigation .clock-meta {
    justify-content: flex-start;
    gap: 10px;
    margin: 0 0 6px;
    color: #ffffffb3;
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: 0.12em;
  }
  :is(.stage, .policy-cover) > .navigation .clock-zone {
    font-size: 8px;
  }
  :is(.stage, .policy-cover) > .navigation .clock-main {
    font-size: 24px;
  }
  /* the seconds the same size as the hours and minutes (owner, 11/15: 「時計の秒数は同じ大きさでいいよ」) */
  :is(.stage, .policy-cover) > .navigation .clock-seconds {
    font-size: 24px;
    color: #fff;
  }
  /* The three places, in Mincho, without numbers or arrows */
  :is(.stage, .policy-cover) > .navigation .nav-links {
    display: block;
    margin: 34px 0 0;
  }
  :is(.stage, .policy-cover) > .navigation .nav-links a,
  :is(.stage, .policy-cover) > .navigation .nav-links a:hover,
  :is(.stage, .policy-cover) > .navigation .nav-links a[aria-current="page"],
  :is(.stage, .policy-cover) > .navigation .nav-links a[aria-current="page"]:hover {
    display: block;
    height: auto;
    padding: 6px 0;
    color: #fff;
    background: transparent;
    font: 400 32px/1.45 var(--m3-mincho);
    letter-spacing: 0.05em;
    text-shadow: 0 1px 18px #0003;
  }
  :is(.stage, .policy-cover) > .navigation .nav-pointer,
  :is(.stage, .policy-cover) > .navigation .nav-active-shape {
    display: none;
  }
  :is(.stage, .policy-cover) > .navigation .nav-label {
    display: block;
    overflow: hidden;
    padding-block: 0.04em;
  }
  :is(.stage, .policy-cover) > .navigation .nav-label > span {
    display: block;
    transition: opacity 0.25s ease;
  }
  /* the place being shown when the menu is opened from it: a small point of first light */
  :is(.stage, .policy-cover) > .navigation .nav-links a[aria-current="page"] .nav-label > span::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 0.45em;
    vertical-align: 0.32em;
    border-radius: 50%;
    background: #f3c28f;
  }
}
@media (max-width: 760px) {
  @media (hover: hover) {
    :is(.stage, .policy-cover) > .navigation .nav-links a:hover .nav-label > span {
      opacity: 0.72;
    }
  }
}
@media (max-width: 760px) {
  :is(.stage, .policy-cover) > .navigation .nav-links a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 4px;
  }
  /* The contact: a quiet white glass, no colour and no arrow */
  :is(.stage, .policy-cover) > .navigation .nav-bottom {
    display: block;
    margin: 28px 0 0;
    padding: 0;
    border: 0;
  }
  :is(.stage, .policy-cover) > .navigation .nav-contact.contact-action {
    display: inline-flex;
    justify-content: center;
    width: auto;
    gap: 0;
    min-height: 50px;
    padding: 0 30px;
    border-radius: 999px;
    background: #ffffff2e;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px #ffffff66;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.05em;
    transition:
      background-color 0.2s ease,
      scale 0.15s ease-out;
  }
  :is(.stage, .policy-cover) > .navigation .nav-contact .contact-arrow {
    display: none;
  }
}
@media (max-width: 760px) {
  @media (hover: hover) {
    :is(.stage, .policy-cover) > .navigation .nav-contact.contact-action:hover {
      background: #ffffff47;
      color: #fff;
    }
  }
}
@media (max-width: 760px) {
  :is(.stage, .policy-cover) > .navigation .nav-contact.contact-action:active {
    scale: 0.98;
  }
  :is(.stage, .policy-cover) > .navigation .nav-contact.contact-action:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
  }
  /* The policies: small and stacked at the bottom */
  :is(.stage, .policy-cover) > .navigation .nav-policies {
    display: grid;
    justify-items: start;
    gap: 0;
    margin: auto 0 0;
    padding-top: 28px;
    color: #ffffffb3;
    font-size: 11px;
    line-height: 2.1;
  }
  :is(.stage, .policy-cover) > .navigation .nav-policies a:focus-visible {
    outline-color: #fff;
  }
}
/* The way in (Exo Ape's long ease-out, cubic-bezier(.19, 1, .22, 1)). Without a preference for less motion only;
   otherwise the menu simply appears. */
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  :is(.stage, .policy-cover) > .navigation.is-open {
    animation: m3-veil 0.55s ease both;
  }
  :is(.stage, .policy-cover) > .navigation.is-open .nav-label > span {
    animation: m3-rise 1.15s cubic-bezier(0.19, 1, 0.22, 1) both;
  }
  :is(.stage, .policy-cover) > .navigation.is-open .nav-links a:nth-of-type(1) .nav-label > span {
    animation-delay: 0.08s;
  }
  :is(.stage, .policy-cover) > .navigation.is-open .nav-links a:nth-of-type(2) .nav-label > span {
    animation-delay: 0.16s;
  }
  :is(.stage, .policy-cover) > .navigation.is-open .nav-links a:nth-of-type(3) .nav-label > span {
    animation-delay: 0.24s;
  }
  :is(.stage, .policy-cover) > .navigation.is-open :is(.nav-cap, .nav-bottom, .nav-policies) {
    animation: m3-settle 1s cubic-bezier(0.19, 1, 0.22, 1) both;
  }
  :is(.stage, .policy-cover) > .navigation.is-open .nav-bottom {
    animation-delay: 0.36s;
  }
  :is(.stage, .policy-cover) > .navigation.is-open .nav-policies {
    animation-delay: 0.46s;
  }
}
@media (max-width: 760px) and (prefers-reduced-transparency: reduce) {
  :is(.stage, .policy-cover) > .navigation {
    background-color: #142229;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  :is(.stage, .policy-cover) > .navigation .nav-contact.contact-action {
    background: #ffffff26;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (max-width: 760px) and (forced-colors: active) {
  /* a frame that does not take the band's place (a forced colour could fill the transparent band) */
  :is(.stage, .policy-cover) > .navigation {
    border-top: 0;
    padding-top: 104px;
    outline: 1px solid CanvasText;
    outline-offset: -1px;
  }
}

@keyframes m3-veil {
  from {
    opacity: 0;
  }
}

@keyframes m3-rise {
  from {
    transform: translateY(110%);
  }
}

@keyframes m3-settle {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
