/* The Top (index.html, and /en/ with en/en.css after it). Loaded first; then scenery/style.css (the photo reel),
   the shared site-shared.css and contact-form.css, menu.css (the phone menu) and intro.css (the first load).
   Scripts: page.js (views, scenes, menu, clock), fluid.js (the frame's curve). */

/* ================================================================================================================
   The Top: the frame, the landscape, the header and the panels
   ================================================================================================================ */
@font-face {
  font-family: "Noto Sans JP";
  src: url("/assets/noto-sans-jp-top-aa190122bc.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #0c191d;
  --paper: #f0eee7;
  --muted: #c3ccca;

  --content-left: calc(var(--gutter) + var(--rail) + 5vw);
  --shell: #edf0e9;

  --curve: 56px;
  --curve-small: 32px;

  --curve-panel: 44px;
  --curve-dock: 32px;
  --curve-dialog: 36px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
}
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #526965;
  outline-offset: 5px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
}
::selection {
  background: #c7ad7d;
  color: #0c191d;
}
[hidden] {
  display: none !important;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-180%);
  background: #eff0e7;
  color: #142124;
  padding: 14px;
}
.skip-link:focus {
  transform: none;
}
.stage {
  position: relative;
  isolation: isolate;
  height: calc(100svh - 24px);
  min-height: 650px;
  overflow: hidden;
  background: #233239;
  margin: var(--frame-inset);
  --desktop-corner-depth: 176px;
  --navigation-gap: 24px;
  border-radius: var(--curve);
  box-shadow: none;
  /* the outline covers the shared clipping seam where a white cutout meets the outer corner */
  outline: 2px solid var(--shell);
  outline-offset: -1px;
}
.landscape,
.scene,
.atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.scene {
  opacity: 0;
  transform: scale(1.035);
  will-change: opacity;
  transition: opacity 1.4s var(--ease-fluid);
}
.scene.is-active {
  opacity: 1;
}
.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 55%;
  transform: translate3d(var(--pan-x, 0), var(--pan-y, 0), 0) scale(1.012);
  transition: transform 1.8s var(--ease-fluid);
}
.scene[data-landscape="station"] img {
  object-position: 55% 54%;
}
.scene[data-landscape="arcade"] img {
  object-position: 52% 54%;
}
.atmosphere {
  z-index: -2;
  transition: background 700ms;
  background:
    linear-gradient(180deg, #0c212d35, transparent 55%, #081b2240), linear-gradient(90deg, #0d27375c, transparent 72%);
}
.stage:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 21, 25, 0);
  backdrop-filter: blur(0);
  pointer-events: none;
  transition:
    background 650ms,
    backdrop-filter 650ms;
}

.view {
  position: absolute;
}
.home-view {
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.home-caption {
  position: absolute;
  bottom: 15.3%;
  left: var(--content-left);
  align-items: center;
  gap: 24px;
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr 52px;
  color: var(--shell-ink);
}
.home-caption p {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.015em;
  text-shadow: none;
}
.round-link {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #14272f20;
  backdrop-filter: blur(8px);
  transition:
    background 0.3s,
    transform 0.4s var(--ease);
}
.round-link:hover {
  background: #f0eee7;
  color: var(--ink);
}
.scene-dock {
  right: var(--gutter);
  bottom: 56px;
  width: 264px;
  border-radius: var(--curve-dock);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);
}
.scene-options {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.scene-choice {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #d7dcd7;
}
.scene-choice.is-active .scene-thumb:after,
.scene-choice:hover .scene-thumb:after {
  background: transparent;
}
.scene-choice.is-active .scene-selected {
  opacity: 1;
}
.scene-choice.is-active {
  color: #fff;
}
.footer {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  letter-spacing: 0.035em;
  color: var(--soft-ink);
}
.footer small {
  font-size: 9px;
  font-family: Arial, sans-serif;
  letter-spacing: 0.035em;
}
.content-view {
  left: var(--content-left);
  right: var(--gutter);
  top: 130px;
  bottom: 185px;
  padding: 24px 34px 28px;
  border-radius: 14px;
  -webkit-backdrop-filter: blur(16px);
  overflow: auto;
  scrollbar-width: thin;
  z-index: 4;
  color: var(--shell-ink);
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  scrollbar-color: #35545155 transparent;
}
.content-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.eyebrow {
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
}
.view-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2444430c;
}
.view-close svg {
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  transition: transform 0.3s;
}
.view-close:hover svg {
  transform: rotate(135deg);
}
.content-view h2 {
  font-size: clamp(25px, 2.7vw, 43px);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.3;
  margin-bottom: 30px;
}
.content-view h2:focus {
  outline: none;
}
.about-layout {
  display: grid;
  margin: 42px 0;
}
.about-display {
  font-size: clamp(25px, 3.05vw, 48px);
  letter-spacing: -0.06em;
  line-height: 1.55;
}
.prose {
  font-size: 18px;
  line-height: 1.95;
}
.text-link {
  display: inline-flex;
  gap: 34px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #e9e8de8c;
  font-size: 13px;
  border-color: #2847434d;
}
.text-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease);
}
.text-link:hover svg {
  transform: translate(3px, -3px);
}
.team-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
}
.team-list article {
  border-top: 1px solid var(--line);
  padding: 20px 0 24px;
}
.member-role {
  font-size: 11px;
  font-family: Arial, sans-serif;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.member-latin {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  letter-spacing: 0.03em;
}
.member-expertise {
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
}
.company-facts {
  margin: 0;
}
.company-facts > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 17px 0;
  font-size: 14px;
  line-height: 1.8;
}
.company-facts dt {
  font-size: 12px;
}
.company-facts dd {
  margin: 0;
}
.company-facts small {
  font-size: 11px;
  margin-left: 9px;
}
.company-facts address {
  font-style: normal;
}
.noscript-note {
  padding: 20px;
  text-align: center;
  font-size: 12px;
}
@media (min-width: 1800px) {
  .home-caption p {
    font-size: 18px;
  }
  .scene-dock {
    width: 308px;
  }
  .scene-thumb {
    height: 70px;
  }
  .content-view {
    top: 150px;
    bottom: 205px;
    padding: 40px 50px;
  }
  .about-layout {
    margin: 60px 0;
  }
  .prose {
    font-size: 20px;
  }
  .company-facts > div {
    font-size: 17px;
    padding: 22px 0;
  }
  .team-list article {
    padding: 30px 0;
  }
  .team-list h4 {
    font-size: 30px;
  }
}
@media (max-height: 780px) and (min-width: 1001px) {
  .stage {
    min-height: 580px;
  }

  .home-caption {
    bottom: 14%;
  }
  .scene-dock {
    bottom: 52px;
  }
  .content-view {
    top: 105px;
    bottom: 165px;
    padding-top: 18px;
  }
  .content-view h2 {
    margin-bottom: 22px;
    font-size: 30px;
  }
  .content-heading {
    margin-bottom: 10px;
  }
  .about-layout {
    margin: 26px 0;
  }
  .about-display {
    font-size: 32px;
  }
  .prose {
    font-size: 16px;
  }
  .team-list article {
    padding: 14px 0;
  }
  .member-expertise {
    margin-top: 12px;
  }
  .company-facts > div {
    padding: 11px 0;
  }
  .business-list li {
    padding: 14px 0;
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  :root {
    --content-left: calc(var(--gutter) + var(--rail) + 28px);
  }

  .scene-dock {
    width: 232px;
  }
  .scene-thumb {
    height: 50px;
  }
  .home-caption {
    left: var(--content-left);
    bottom: 24%;
  }
  .home-caption p {
    font-size: 14px;
  }
  .home-caption .round-link {
    display: none;
  }
  .content-view {
    padding: 22px;
    bottom: 190px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 22px 0;
  }
  .about-display {
    font-size: 30px;
  }
  .prose {
    font-size: 16px;
  }
  .team-list {
    gap: 0 20px;
  }
  .team-list h4 {
    font-size: 21px;
  }
  .member-expertise {
    font-size: 11px;
  }
  .company-facts > div {
    grid-template-columns: 70px 1fr;
    gap: 15px;
    font-size: 13px;
  }
}
@media (max-width: 760px) {
  :root {
    --curve: 36px;

    --curve-panel: 32px;
    --curve-dialog: 28px;
  }
  /* Divide the free space around the mobile supporting copy in 1 : 1.618. Reserve the real thumbnail band first;
     the original mission images keep their size. */
  .stage {
    min-height: 700px;
    --mobile-dock-width: min(74vw, 300px);
    --mobile-dock-band: calc(55px + 32px + 12px + (var(--mobile-dock-width) - 20px) / 3 / 1.618);
    --corner-width: 170px;
    --corner-depth: 94px;
  }

  .home-view {
    inset: 0;
    display: grid;
    grid-template-rows: 24.5% auto minmax(24px, 0.382fr) auto minmax(38.832px, 0.618fr) var(--mobile-dock-band);
  }
  .home-caption {
    justify-content: flex-start;
    grid-row: 4;
    gap: clamp(10px, 3.5vw, 16px);
    color: var(--shell-ink);
    position: absolute;
    max-width: none;
    margin: 0;
    align-items: center;
  }
  .scene-dock {
    left: var(--gutter);
    bottom: 57px;
    width: var(--mobile-dock-width);
    right: auto;
    -webkit-backdrop-filter: none;
    -webkit-backdrop-filter: blur(26px);
    border-radius: 0;
    -webkit-backdrop-filter: none;
  }
  .scene-choice {
    font-size: 10px;
  }
  .footer {
    bottom: 21px;
    color: #f4f5edda;
    text-shadow: 0 1px 6px #09222b;
  }
  .footer small {
    font-size: 8px;
  }
  .scene img {
    object-position: 67% center;
  }
  .scene[data-landscape="station"] img {
    object-position: 67% center;
  }
  .scene[data-landscape="arcade"] img {
    object-position: 67% center;
  }
  .content-view {
    top: 97px;
    flex-direction: column;
    overflow: hidden;
  }
  .eyebrow {
    font-size: 9px;
  }
  .about-display {
    font-size: 28px;
  }
  .prose {
    font-size: 16px;
  }
  .text-link {
    font-size: 12px;
  }
  .team-list {
    grid-template-columns: 1fr;
  }
  .member-role {
    font-size: 10px;
  }
  .member-latin {
    font-size: 10px;
  }
  .member-expertise {
    font-size: 12px;
  }
  .company-facts dt {
    font-size: 10px;
  }
  .company-facts small {
    display: block;
    margin-left: 0;
  }
  .stage:not([data-view="home"]) .scene-thumb {
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .scene img {
    transform: none !important;
  }
  .scene {
    transform: none;
    will-change: auto;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .content-view {
    background: #172b30;
  }
  .round-link {
    background: #18343b;
  }
}
.mission:focus {
  outline: none;
}

/* Preserve the public site's original two lettering images and their relative scale. */
.mission {
  position: absolute;
  left: var(--content-left);
  top: 27%;
  width: min(40vw, 64svh, 640px, calc(100% - var(--content-left) - var(--gutter)));
  line-height: 0;
  filter: drop-shadow(0 3px 24px #0d242a38);
}
.mission-line {
  display: block;
  width: 100%;
}
.mission-line img {
  display: block;
  width: 100%;
  height: auto;
}
.mission-second {
  width: 82.8318584%;
  margin-top: clamp(-8px, -0.45vw, -3px);
}
@media (max-height: 780px) and (min-width: 1001px) {
  .mission {
    top: 24%;
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .mission {
    top: 27%;
    width: min(47vw, 58svh, calc(100% - var(--content-left) - var(--gutter)));
  }
}
@media (max-width: 760px) {
  .mission {
    width: min(72vw, 430px, calc(100% - 2 * var(--gutter)));
    grid-row: 2;
    filter: drop-shadow(0 3px 20px #0d242a30);
  }
  .mission-second {
    margin-top: -3px;
  }
}

/* The unchanged lettering images share their original scale in one desktop line. */
@media (min-width: 1001px) {
  .mission {
    display: flex;
    align-items: flex-start;
    top: 38.2%;
    width: min(76vw, 1170px, calc(100% - var(--content-left) - var(--gutter)));
    gap: 0;
  }
  .mission-first {
    flex: 0 0 54.6950629%;
    width: 54.6950629%;
  }
  .mission-second {
    flex: 0 0 45.3049371%;
    width: 45.3049371%;
    margin-top: 0;
  }
}

.scene-playback[aria-pressed="false"] .playback-pause {
  display: none;
}
.scene-playback[aria-pressed="false"] .playback-play {
  display: block;
}
.scene-playback:disabled {
  cursor: default;
  opacity: 0.5;
}

/* Preserve readable white lettering across the brighter arcade roof. */
.stage[data-scene="arcade"] .atmosphere {
  background:
    linear-gradient(180deg, #09171d52, #09171d28 48%, #051316b3),
    linear-gradient(90deg, #05141873 20%, #0514184d 58%, #0514180f 85%);
}
@media (max-width: 760px) {
  .scene[data-landscape="station"] img {
    object-position: 92% center;
  }
  .scene[data-landscape="arcade"] img {
    object-position: 85% center;
  }
  .stage[data-scene="arcade"] .atmosphere {
    background:
      linear-gradient(180deg, #09171d80, #09171d33 48%, #05151cdb), linear-gradient(90deg, #0a202c38, transparent);
  }
}

@media (max-width: 760px) {
  .home-caption .caption-line {
    height: auto;
    align-self: stretch;
  }
  .scene-thumb,
  .stage:not([data-view="home"]) .scene-thumb {
    height: auto;
  }
}

/* The frame's continuous contours (approved 2026-10-18), with radii related by 1 : 1.618. */
:root {
  --content-left: calc(var(--gutter) + var(--rail) + 4.3vw);
}
html,
body {
  background: var(--shell);
}
.stage {
  height: calc(100svh - 40px);
  min-height: 660px;
}
.frame-geometry {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--shell);
  stroke: none;
  pointer-events: none;
  z-index: 1;
}
.landscape {
  z-index: -4;
  overflow: hidden;
  border-radius: inherit;
}
.stage[data-scene="arcade"] .atmosphere {
  background: linear-gradient(180deg, #10232c58, transparent 70%), linear-gradient(90deg, #061a2352, #061a234d 75%);
}
.stage:not([data-view="home"]):after {
  background: #0a202525;
  backdrop-filter: blur(3px);
}

.mission {
  top: 36.6%;
  left: var(--content-left);
  width: min(72vw, 1130px, calc(100% - var(--content-left) - 48px));
}
.home-caption {
  left: 38px;
  bottom: 67px;
  width: 344px;
  gap: 18px;
}
.caption-line {
  height: 60px;
  width: 1px;
  background: linear-gradient(transparent, #f0eee7);
  display: none;
}
.home-caption p {
  font-size: 17px;
}
.home-caption .round-link {
  width: 52px;
  height: 52px;
  margin: 0;
  border: 0;
  background: #254345;
  color: var(--shell);
}
.home-caption .round-link:hover {
  background: #426260;
  transform: rotate(45deg);
}
.home-caption .round-link svg {
  width: 23px;
  height: 23px;
}
.scene-dock {
  right: 32px;
  bottom: 34px;
  width: 310px;
}
.scene-playback [data-playback-label] {
  min-width: 3.4em;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.scene-options {
  gap: 9px;
}
.scene-choice.is-active .scene-thumb {
  border-color: #fff;
  box-shadow: 0 0 0 2px #ffffff45;
}
.footer {
  left: 38px;
  right: auto;
  bottom: 25px;
}
.footer small {
  font-size: 9px;
}
/* A single independent surface expands from the clicked navigation item.
   All text stays at its final scale and position throughout the transition. */
.panel-surface,
.content-view {
  position: absolute;
  left: calc(var(--content-left) + 5px);
  right: 36px;
  top: 142px;
  bottom: 220px;
  border-radius: var(--curve-panel);
}
.panel-surface {
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border: 1px solid #ffffffb3;
  background: linear-gradient(135deg, #edf0e9f2, #eff3e9db 70%, #e6eee7c9);
  backdrop-filter: blur(34px) saturate(0.75);
  -webkit-backdrop-filter: blur(34px) saturate(0.75);
  box-shadow:
    inset 0 1px 0 #fff,
    0 20px 70px #09232633;
  transform-origin: 0 0;
}
.stage:not([data-view="home"]) .panel-surface {
  opacity: 1;
  visibility: visible;
}
.content-view {
  padding: 30px 38px;
  background: transparent;
}
.content-heading {
  margin-bottom: 10px;
}
.eyebrow,
.prose,
.member-role,
.member-latin,
.member-expertise,
.company-facts dt {
  color: var(--soft-ink);
}
.content-view h2 {
  font-size: clamp(26px, 2.2vw, 38px);
  margin-bottom: 24px;
}
.about-layout {
  margin: 28px 0;
}
.about-display {
  font-size: clamp(30px, 3vw, 46px);
}
.prose {
  font-size: 18px;
}
.business-list li,
.team-list article,
.company-facts > div {
  border-color: #27494430;
}
.team-list article {
  padding: 17px 0;
}
/* The names' kanji in brush, like the Top's handwritten line (owner 11/27). Yuji Syuku, only the names' kanji
   (tools/fonts/name_brush.py writes the file and the range); one weight, same line metrics as Noto Sans JP. */
@font-face {
  font-family: "Name Brush";
  src: url("/assets/yuji-syuku-names-12974f41ba.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+4F50, U+5321, U+57CE, U+5B8F, U+6643, U+7FFC, U+85E4, U+8CB4, U+90E1, U+90E8, U+963F;
}
.team-list h4 {
  display: inline;
  font-family: "Name Brush", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 450;
  letter-spacing: 0.03em;
  font-size: 25px;
}
/* the English Top shows the kanji under the name */
.team-list .member-latin[lang="ja"] {
  font-family: "Name Brush", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}
.member-expertise {
  margin-top: 13px;
}
.company-facts > div {
  padding: 13px 0;
}

@media (min-width: 1600px) {
  .home-caption {
    width: 360px;
  }
  .home-caption p {
    font-size: 18px;
  }
  .panel-surface,
  .content-view {
    bottom: 245px;
  }
  .content-view {
    padding: 40px 48px;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  :root {
    --content-left: 254px;
  }
  .stage {
    margin: 14px;
    height: calc(100svh - 28px);
  }

  .mission {
    top: 27%;
    width: min(52vw, 600px);
    display: block;
  }
  .mission-first {
    width: 100%;
  }
  .mission-second {
    width: 82.8318584%;
  }
  .home-caption {
    left: 30px;
    width: 306px;
    bottom: 67px;
    grid-template-columns: 1fr 46px;
    gap: 14px;
  }
  .home-caption p {
    font-size: 15px;
  }
  .home-caption .round-link {
    display: grid;
    width: 46px;
    height: 46px;
  }
  .scene-dock {
    width: 280px;
    right: 26px;
    padding: 20px;
  }
  .footer {
    left: 30px;
  }
  .panel-surface,
  .content-view {
    top: 130px;
    left: 238px;
    right: 26px;
    bottom: 225px;
  }
  .content-view {
    padding: 25px;
  }
  .about-layout {
    display: block;
  }
  .about-display {
    margin-bottom: 24px;
  }
  .prose {
    font-size: 16px;
  }
}
@media (max-width: 760px) {
  :root {
    --content-left: 22px;
  }
  .stage {
    height: calc(100svh - 18px);
    min-height: 700px;
  }

  .mission {
    display: block;
    width: min(72vw, 430px, calc(100% - 44px));
  }
  .mission-first {
    width: 100%;
  }
  .mission-second {
    width: 82.8318584%;
  }
  .home-caption {
    gap: 12px;
  }
  .scene-dock {
    left: 22px;
    right: auto;
    bottom: 55px;
    width: var(--mobile-dock-width);
  }
  .scene-options {
    gap: 10px;
  }
  .scene-thumb,
  .stage:not([data-view="home"]) .scene-thumb {
    height: auto;
    border-radius: 14px;
    border-color: #37514d33;
  }
  .footer {
    left: 22px;
    bottom: 21px;
  }
  .footer small {
    font-size: 8px;
  }
  .stage:not([data-view="home"]) .scene-dock-label {
    margin-bottom: 12px;
  }
  .panel-surface,
  .content-view {
    left: 22px;
    right: 22px;
    top: 105px;
    border-radius: var(--curve-panel);
  }
  .content-view h2 {
    font-size: 27px;
    margin-bottom: 22px;
  }
  .about-display {
    font-size: 29px;
  }
  .prose {
    font-size: 16px;
  }
  .company-facts > div {
    grid-template-columns: 1fr;
    gap: 5px;
    font-size: 14px;
    padding: 14px 0;
  }
  .team-list article {
    padding: 20px 0;
  }
}
@media (max-width: 380px) {
  .panel-surface,
  .content-view {
    top: 113px;
  }
  .scene-dock,
  .footer {
    left: 18px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .panel-surface {
    background: var(--shell);
  }
  .scene-dock {
    background: #34504e;
  }
}

button:active,
.round-link:active {
  scale: 0.96;
}
button,
.round-link {
  transition:
    scale 0.35s var(--ease-fluid),
    background 0.35s,
    transform 0.6s var(--ease-fluid);
}
@media (max-width: 760px) {
  .scene-dock {
    left: 18px;
    width: calc(var(--mobile-dock-width) + 32px);
    bottom: 45px;
  }
  .scene-choice.is-active .scene-thumb {
    border-color: #fff;
    box-shadow: 0 0 0 2px #ffffff3b;
  }
  .footer {
    bottom: 18px;
  }
}

/* Short landscape windows keep navigation above the lower caption contour. */

/* Reserve the curved caption's full area, even in short or zoomed windows. */

/* Mobile keeps the message legible; scene thumbnails stay on larger screens. */
@media (max-width: 760px) {
  .stage {
    min-height: 560px;
  }
  .home-view {
    display: block;
  }
  .home-caption {
    right: auto;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 12px;
  }
  .scene-dock {
    left: auto;
    right: 22px;
    bottom: 12px;
    width: 72px;
  }
  .scene-dock-label,
  .stage:not([data-view="home"]) .scene-dock-label {
    margin: 0;
  }
  .stage:not([data-view="home"]) .scene-dock {
    opacity: 1;
    bottom: 45px;
    display: none;
  }
  .footer {
    bottom: 26px;
  }
}
@media (max-width: 380px) {
  .stage {
    min-height: 540px;
  }
  .home-caption {
    gap: 8px;
  }
}

/* Approved mobile composition: a compact corner and time inside the menu. */
.caption-narrow {
  display: none;
}
@media (max-width: 760px) {
  .scene-dock {
    display: none;
  }
  .home-caption {
    left: 18px;
    width: 136px;
    bottom: 24px;
  }
  .home-caption p {
    letter-spacing: 0;
    font-size: 14px;
    line-height: 20px;
  }
  .caption-wide {
    display: none;
  }
  .caption-narrow,
  .caption-narrow > span {
    display: block;
  }
  .caption-narrow > span {
    white-space: nowrap;
  }
  .home-caption .round-link {
    position: absolute;
    left: calc(var(--corner-width) - 18px + 22px);
    top: 8px;
    width: 44px;
    height: 44px;
    background: var(--shell);
    color: var(--shell-ink);
    box-shadow: 0 3px 12px #0a27221a;
  }
  .home-caption .round-link:hover {
    background: #fff;
  }
  .footer {
    left: auto;
    right: 18px;
    bottom: 14px;
  }
}
@media (max-width: 374px) {
  .footer small {
    font-size: 7px;
  }
}
/* The smallest phones retain every menu action without needing to scroll. */

/* About holds the team and company facts; services have separate entry points. */
.about-team,
.about-company {
  margin: 48px 0 24px;
  scroll-margin-block-start: 24px;
}
.about-team > h3,
.about-company > h3 {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 450;
}
.succession-intro {
  margin-top: 32px;
}
.succession-intro > p:first-child {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.7;
  letter-spacing: -0.035em;
}

/* Progressive smoothing; unsupported browsers keep the shared rounded radii. */
@supports (corner-shape: superellipse(1.3)) {
  .stage,
  .panel-surface,
  .content-view,
  .scene-dock,
  .contact-dialog,
  .scene-thumb {
    corner-shape: superellipse(1.3);
  }
  .landscape {
    corner-shape: inherit;
  }
}

/* ================================================================================================================
   The navigation: the bar on wide screens, the menu's panels and the clock
   ================================================================================================================ */
/* One close action returns to the landscape; panel back actions open the menu. */

.stage[data-dialog-open="true"] .header-actions,
.stage[data-dialog-open="true"] .navigation,
.stage[data-dialog-open="true"] #main,
.stage[data-dialog-open="true"] .home-caption,
.stage[data-dialog-open="true"] .panel-surface,
.stage[data-dialog-open="true"] .scene-reel {
  visibility: hidden;
}

.business-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-top: 32px;
}
.business-actions .contact-action {
  font-size: 13px;
  text-align: left;
}
.home-caption {
  z-index: 2;
}

.view-back {
  display: none;
}
.stage[data-menu-open="true"] .home-caption .round-link,
.stage:not([data-view="home"]) .home-caption .round-link {
  visibility: hidden;
}
@media (min-width: 761px) {
  .mission {
    left: 50%;
    top: 34%;
    transform: translateX(-50%);
    width: min(84%, 1130px);
    display: flex;
    align-items: flex-start;
  }
  .mission-first {
    flex: 0 0 54.6950629%;
    width: 54.6950629%;
  }
  .mission-second {
    flex: 0 0 45.3049371%;
    width: 45.3049371%;
    margin-top: 0;
  }
  .panel-surface,
  .content-view {
    left: 10%;
    right: 10%;
    top: 130px;
    bottom: 210px;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .panel-surface,
  .content-view {
    left: 5%;
    right: 5%;
    top: 116px;
    bottom: 206px;
  }
}
@media (max-width: 760px) {
  .stage[data-menu-open="true"] #main,
  .stage[data-menu-open="true"] .panel-surface,
  .stage[data-menu-open="true"] .scene-reel {
    visibility: hidden;
  }
  .content-view .view-close {
    display: none;
  }
  .content-view {
    display: flex;
    padding: 0;
  }
  .content-heading {
    flex: none;
    min-height: 64px;
    margin: 0;
    padding: 14px 22px 6px;
  }
  .content-body {
    min-height: 0;
    padding: 0 22px 24px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #35545155 transparent;
  }
  .content-heading .eyebrow {
    display: none;
  }
  .view-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0;
    color: #526965;
    font-size: 12px;
  }
  .view-back svg {
    width: 16px;
    height: 16px;
  }

  .business-actions .contact-action {
    gap: 8px;
    padding-left: 15px;
  }
  .succession-intro > p:first-child {
    text-wrap: balance;
  }
}
@media (max-width: 380px) {
  .content-heading {
    padding-inline: 18px;
  }
  .content-body {
    padding-inline: 18px;
  }
}

/* ================================================================================================================
   The contact dialog
   ================================================================================================================ */
/* A single frosted surface; the form scrolls while its close control stays put. */
.contact-dialog {
  color-scheme: light;
  width: min(620px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffffffa6;
  border-radius: 32px;
  color: #213b3b;
  background: linear-gradient(140deg, #f7faf3df, #edf3e7b8 58%, #e4eee6c9);
  backdrop-filter: blur(44px) saturate(0.85);
  -webkit-backdrop-filter: blur(44px) saturate(0.85);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 #ffffff55,
    0 24px 90px #0a242f40;
  isolation: isolate;
}
.contact-dialog[open] {
  display: flex;
  flex-direction: column;
}
.contact-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.13;
  mix-blend-mode: multiply;
  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");
}
.contact-dialog::backdrop {
  background: #142c3540;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
  padding: 28px 30px 24px;
}
.contact-header .eyebrow {
  color: #526965;
  font-size: 10px;
  letter-spacing: 0.16em;
}
.contact-header h2 {
  margin: 8px 0 0;
  font-size: clamp(25px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.045em;
}
#contact-title:focus {
  outline: none;
}
.contact-dialog .dialog-close {
  position: static;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #ffffff91;
  color: #294746;
  background: #ffffff5c;
  box-shadow: 0 3px 14px #23413b0a;
  transition: background 0.2s;
}
.dialog-close svg {
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
}
.contact-dialog .dialog-close:hover {
  background: #ffffffa3;
}
.contact-dialog button:focus-visible {
  outline: 2px solid #365f59;
  outline-offset: 3px;
}
.contact-body {
  min-height: 0;
  padding: 0 30px 30px;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 16px;
  scrollbar-width: thin;
  scrollbar-color: #35545155 transparent;
}
.contact-form {
  display: grid;
  gap: 20px;
}
.contact-form label {
  display: block;
  min-width: 0;
  color: #29413f;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.6;
}
.contact-form label > span {
  margin-left: 7px;
  color: #657672;
  font-size: 10px;
  font-weight: 400;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 13px 15px;
  border: 1px solid #ffffffb3;
  border-radius: 14px;
  color: #213b3b;
  background: #ffffff63;
  font-size: 16px;
  line-height: 1.5;
  box-shadow:
    inset 0 1px 2px #25403908,
    0 3px 14px #25403903;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.contact-form :is(input, select, textarea):focus {
  outline: 2px solid #365f5966;
  outline-offset: 2px;
  border-color: #fff;
  background: #ffffffb8;
  box-shadow: 0 3px 20px #25403908;
}
.contact-form textarea {
  min-height: 128px;
  resize: vertical;
}
.contact-form select {
  color-scheme: light;
  cursor: pointer;
}
.contact-form option {
  background: #f3f6f0;
  color: #213b3b;
}
.contact-form :is(input, select, textarea):disabled {
  opacity: 0.65;
}
.form-notice {
  color: #526965;
  font-size: 11px;
  line-height: 1.8;
}
.contact-form .submit-button {
  justify-self: start;
  min-height: 54px;
  padding-left: 20px;
  font-size: 14px;
}
.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.form-status {
  color: #294746;
  font-size: 12px;
  line-height: 1.8;
}
.form-status[data-state="error"] {
  color: #8a302b;
}
.form-status:empty {
  display: none;
}
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.contact-form input[type="hidden"] {
  display: none;
}
body:has(.contact-dialog[open]) {
  overflow: hidden;
}
@media (max-width: 520px) {
  .contact-dialog {
    width: calc(100% - 24px);
    max-height: calc(100svh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 28px;
  }
  .contact-header {
    padding: 22px 22px 20px;
  }
  .contact-body {
    padding: 0 22px 24px;
  }
  .contact-form,
  .form-grid {
    gap: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-height: 500px) {
  .contact-dialog {
    max-height: calc(100dvh - 20px);
  }
  .contact-header {
    padding-block: 14px;
  }
  .contact-header .eyebrow {
    display: none;
  }
  .contact-header h2 {
    margin: 0;
    font-size: 24px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .contact-dialog {
    background: #edf0e9;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .contact-dialog::before {
    display: none;
  }
}

/* ================================================================================================================
   The panels' editorial type (事業承継, 私たちについて)
   ================================================================================================================ */
@font-face {
  font-family: "Editorial Serif";
  src: url("/assets/noto-serif-jp-content-20261024.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Approved copy uses the chosen light serif; navigation and company facts keep their UI type. */
.content-view .editorial-copy {
  font-family: "Editorial Serif", "Hiragino Mincho ProN", serif;
  font-weight: 400;
}
.content-view .editorial-copy .about-display,
.content-view .editorial-copy .business-display {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.015em;
  text-wrap: pretty;
}
.about-layout.editorial-copy {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
  margin: 28px 0 48px;
}
.content-view .editorial-copy .prose {
  max-width: 42em;
  font-size: 17px;
  line-height: 2;
  letter-spacing: 0.015em;
  line-break: strict;
  overflow-wrap: anywhere;
  color: #3f5956;
}
.content-view .editorial-copy .prose p + p {
  margin-top: 1.2em;
}
.content-view .editorial-copy .prose p {
  text-wrap: pretty;
}
.content-view .editorial-copy .business-display span {
  display: inline-block;
}
.succession-intro.editorial-copy {
  max-width: 50rem;
}
.succession-intro.editorial-copy .prose {
  margin-top: 28px;
}

@media (max-width: 1100px) {
  .about-layout.editorial-copy {
    display: block;
  }
  .content-view .editorial-copy .about-display {
    margin-bottom: 24px;
  }
}
@media (max-width: 760px) {
  .about-layout.editorial-copy {
    margin: 24px 0 40px;
  }
  .content-view .editorial-copy .about-display,
  .content-view .editorial-copy .business-display {
    font-size: 23px;
    line-height: 1.8;
    letter-spacing: 0;
  }
  .content-view .editorial-copy .prose {
    font-size: 16.5px;
    line-height: 1.95;
  }
  .succession-intro.editorial-copy {
    margin-top: 24px;
  }
  .succession-intro.editorial-copy .prose {
    margin-top: 22px;
  }
}
@media (max-width: 380px) {
  .content-view .editorial-copy .about-display,
  .content-view .editorial-copy .business-display {
    font-size: 21px;
  }
  .content-view .editorial-copy .prose {
    font-size: 16px;
    letter-spacing: 0;
  }
}
