#flow {
  --flow-white: #ecebe8;
  --flow-muted: #999996;
  --flow-rule: rgba(236, 235, 232, 0.18);
  --flow-progress: 0;
  position: relative;
  isolation: isolate;
  padding: 0 var(--gutter);
  background: #090a0c;
  color: var(--flow-white);
  scroll-margin-top: 72px;
}
#flow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--noise-dark);
  opacity: 0.6;
}
#flow .flow-stage {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 34px 0 18px;
}
#flow.flow-scroll-enabled {
  height: calc(var(--flow-scene-height, 100svh) + var(--flow-travel, 3000px));
}
#flow.flow-scroll-enabled .flow-stage {
  position: sticky;
  top: var(--flow-pin-top, 72px);
  height: var(--flow-scene-height, calc(100svh - 72px));
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-columns: minmax(0, 1fr);
}
#flow .flow-stage-progress {
  height: 1px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(236, 235, 232, 0.1);
  overflow: hidden;
}
#flow .flow-stage-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(236, 235, 232, 0.6);
  transform: scaleX(var(--flow-progress));
  transform-origin: left;
}
#flow .flow-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 14px;
}
#flow .eyebrow {
  color: #d4d4d1;
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.24em;
}
#flow .eyebrow::before {
  width: 22px;
}
#flow .flow-heading h2 {
  font: 400 clamp(18px, 1.6vw, 24px) / 1.6 var(--serif-display);
  letter-spacing: 0.1em;
  margin: 0;
}
#flow .flow-motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0 8px 12px;
  border: 0;
  background: transparent;
  color: #969794;
  font: 400 10px/1.6 var(--sans-jp);
  letter-spacing: 0.07em;
  cursor: pointer;
}
#flow .flow-motion-icon {
  width: 9px;
  height: 9px;
  border-inline: 2px solid currentColor;
  opacity: 0.8;
}
#flow .flow-motion-toggle[aria-pressed="true"] .flow-motion-icon {
  border: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: currentColor;
}
#flow .flow-motion-toggle:disabled {
  opacity: 0.6;
  cursor: default;
}
#flow .flow-body {
  position: relative;
  min-height: 0;
}
#flow .flow-panels {
  height: 100%;
}
#flow .flow-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.6fr);
  align-items: center;
  column-gap: 3%;
  min-height: 570px;
  padding: 44px 0;
  scroll-margin-top: 100px;
}
#flow .flow-panel + .flow-panel {
  border-top: 1px solid var(--flow-rule);
}
#flow.flow-enhanced .flow-panel {
  height: 100%;
  min-height: 0;
  padding: 38px 0 44px;
  border: 0;
}
#flow.flow-enhanced:not(.flow-scroll-enabled) .flow-panel {
  height: auto;
  min-height: 440px;
  padding: 70px 0;
}
#flow.flow-enhanced:not(.flow-scroll-enabled) .flow-chapter-tools {
  display: none;
}
#flow .flow-panel[hidden],
#flow [hidden] {
  display: none !important;
}
#flow .flow-copy {
  position: relative;
  padding-bottom: 14px;
}
#flow .flow-panel-en {
  margin: 0 0 12px;
  font:
    italic 400 clamp(14px, 1.15vw, 18px) / 1.4 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: 0.06em;
  color: #8f908c;
}
#flow .flow-copy h3 {
  margin: 0 0 26px;
  font: 500 clamp(34px, 3.4vw, 54px) / 1.35 var(--serif-display);
  letter-spacing: 0.08em;
  color: #ecebe8;
}

/* text-wrap: pretty は auto-phrase を打ち消して「方｜向性」のように語を分けるので使わない */
#flow .flow-panel-copy {
  max-width: 26em;
  margin: 0;
  color: #d2d2ce;
  font: 500 clamp(15px, 1.1vw, 17px) / 2.05 var(--serif-display);
  letter-spacing: 0.045em;
  word-break: auto-phrase;
}
#flow .flow-panel-copy .nobr {
  white-space: nowrap;
}
#flow.flow-scroll-enabled .flow-panel-copy {
  min-block-size: 3lh;
}
#flow.flow-scroll-enabled .flow-panel {
  grid-template-rows: minmax(0, 1fr);
}
#flow.flow-scroll-enabled .flow-scene {
  height: 100%;
  min-height: 0;
}
@media (min-width: 761px) {
  #flow.flow-scroll-enabled .flow-copy {
    padding-top: 48px;
  }
}
.flow-intro {
  display: flow-root;
  position: relative;
  isolation: isolate;
  padding: clamp(24px, 3vw, 48px) max(var(--gutter), calc((100% - 1600px) / 2)) 0;
  background: #090a0c;
  scroll-margin-top: 90px;
}
.flow-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--noise-dark);
  opacity: 0.6;
}
.flow-intro .section-head {
  margin-bottom: 0;
}
#flow .flow-heading {
  justify-content: flex-end;
}
#flow .flow-copy-outgoing {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
#flow .flow-chapter-tools {
  display: none;
}
#flow.flow-enhanced .flow-chapter-tools {
  display: flex;
  position: absolute;
  left: 0;
  top: 12%;
  width: 34%;
  align-items: center;
  gap: 26px;
  z-index: 2;
}
#flow .flow-counter {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font:
    italic 400 25px/1 Georgia,
    "Times New Roman",
    serif;
}
#flow .flow-current-window {
  display: block;
  height: 1em;
  overflow: hidden;
}
#flow .flow-current-track {
  display: block;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
#flow .flow-current-track > span {
  display: block;
  height: 1em;
  line-height: 1em;
}
#flow .flow-counter-total {
  color: #666966;
  font: 400 10px/1.2 var(--display-en);
  letter-spacing: 0.15em;
}
#flow .flow-controls {
  display: flex;
  gap: 7px;
  margin-left: auto;
}
#flow .flow-controls button {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  padding: 7px;
  border: 1px solid #454744;
  border-radius: 50%;
  background: transparent;
  color: #e0e0db;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    opacity 0.2s;
}
#flow .flow-controls svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}
#flow .flow-controls button:disabled {
  opacity: 0.25;
  cursor: default;
}
#flow .flow-controls button:hover:not(:disabled) {
  background: #ffffff0c;
  border-color: #d7d8d2;
}
#flow .flow-scene {
  margin: 0;
  width: 100%;
  min-width: 0;
}
#flow .flow-index {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 32px);
}
#flow .flow-step-link {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 6px;
  padding: 19px 0 17px;
  border-top: 1px solid #ffffff25;
  color: #777b78;
  transition: color 0.35s;
}
#flow .flow-step-link::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: #dedfd8;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
#flow .flow-step-link[aria-current="step"],
#flow .flow-step-link.is-active,
#flow .flow-step-link:hover {
  color: #eeeee9;
}
#flow .flow-step-link[aria-current="step"]::before,
#flow .flow-step-link.is-active::before {
  transform: scaleX(1);
}
#flow .flow-step-number {
  font: 400 9px/1.8 var(--display-en);
  letter-spacing: 0.07em;
}
#flow .flow-step-name {
  grid-column: 2;
  grid-row: 2;
  font:
    italic 400 11px/1.4 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: 0.04em;
  opacity: 0.75;
}
#flow .flow-step-jp {
  grid-column: 2;
  grid-row: 1;
  font: 500 14px/1.5 var(--serif-display);
  letter-spacing: 0.06em;
}
#flow .flow-colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid #ffffff0d;
  gap: 20px;
}
#flow .flow-colophon-caption {
  color: #686c69;
  font: 400 8px/1.5 var(--display-en);
  letter-spacing: 0.12em;
}
#flow .flow-colophon-caption > span {
  padding: 0 10px;
  color: #484b48;
}
#flow .flow-colophon a {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 3px 0;
  font: 400 11px/1.6 var(--sans-jp);
  color: #c6c8c2;
}
#flow .flow-colophon svg {
  width: 30px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  transition: transform 0.3s;
}
#flow .flow-colophon a:hover svg {
  transform: translateX(5px);
}
#flow a:focus-visible,
#flow button:focus-visible {
  outline: 1px solid #f2f1eb;
  outline-offset: 5px;
}
#flow .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#flow.flow-scroll-enabled.flow-in-view .flow-panel.is-active .flow-copy {
  animation: flow-copy-enter 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
#flow.flow-motion-paused .flow-scene :is(.fs-draw, .fs-reveal) {
  animation: none !important;
  opacity: 1;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}
#flow.flow-motion-paused .flow-scene .fs-entrance {
  animation: none !important;
  transform: none;
}
#flow.flow-motion-paused .flow-scene .fs-idle {
  animation-play-state: paused !important;
}
#flow.flow-motion-paused .flow-copy {
  animation: none !important;
}
@keyframes flow-copy-enter {
  0%,
  18% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (min-width: 1600px) {
  #flow .flow-panel {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.65fr);
  }
  #flow .flow-copy h3 {
    font-size: 58px;
  }
}
@media (min-width: 761px) and (max-height: 760px) {
  #flow .flow-stage {
    padding-top: 20px;
    padding-bottom: 12px;
  }
  #flow.flow-enhanced .flow-chapter-tools {
    top: 5%;
  }
  #flow.flow-enhanced .flow-panel {
    padding: 45px 0 20px;
  }
  #flow .flow-panel-en {
    font-size: 14px;
    margin-bottom: 8px;
  }
  #flow .flow-copy h3 {
    font-size: clamp(30px, 3vw, 42px);
    margin-bottom: 16px;
  }
  #flow .flow-panel-copy {
    font-size: 14px;
    line-height: 1.95;
  }
  #flow .flow-scene {
    max-width: 600px;
    justify-self: center;
  }
  #flow .flow-step-link {
    padding: 12px 0;
    row-gap: 3px;
  }
  #flow .flow-colophon {
    padding-top: 10px;
  }
}
@media (max-width: 1024px) and (min-width: 761px) {
  #flow .flow-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    column-gap: 2%;
  }
  #flow.flow-enhanced .flow-chapter-tools {
    width: 39%;
  }
  #flow .flow-copy h3 {
    font-size: 34px;
  }
  #flow .flow-step-link {
    column-gap: 7px;
  }
  #flow .flow-step-jp {
    font-size: 12px;
    letter-spacing: 0.02em;
  }
  #flow .flow-step-name {
    font-size: 10px;
  }
}
@media (max-width: 760px) {
  #flow {
    padding: 0 24px;
  }
  #flow .flow-stage {
    padding: 21px 0 14px;
  }
  #flow .flow-heading {
    gap: 14px;
    padding-bottom: 7px;
  }
  #flow .eyebrow {
    font-size: 8px;
    gap: 8px;
  }
  #flow .eyebrow::before {
    width: 15px;
  }
  #flow .flow-heading h2 {
    font-size: 17px;
    letter-spacing: 0.06em;
  }
  #flow .flow-motion-toggle {
    font-size: 9px;
    gap: 6px;
    white-space: nowrap;
  }
  #flow .flow-panel,
  #flow.flow-enhanced .flow-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-content: center;
    gap: 0;
    min-height: 520px;
    padding: 58px 0 10px;
  }
  #flow.flow-scroll-enabled .flow-panel {
    min-height: 0;
  }
  #flow .flow-copy {
    padding-bottom: 0;
  }
  #flow .flow-panel-en {
    font-size: 13px;
    margin: 0 0 4px;
  }
  #flow .flow-copy h3 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.4;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
  }
  #flow .flow-panel-copy {
    font-size: 14px;
    line-height: 1.85;
    max-width: 40em;
    letter-spacing: 0.02em;
  }
  #flow.flow-scroll-enabled .flow-panel-copy {
    min-block-size: 2lh;
  }
  #flow.flow-enhanced .flow-chapter-tools {
    top: 9px;
    width: 100%;
  }
  #flow .flow-counter {
    font-size: 22px;
  }
  #flow .flow-controls {
    gap: 9px;
  }
  #flow .flow-controls button {
    width: 31px;
    height: 31px;
  }
  #flow .flow-scene {
    width: calc(100% + 48px);
    max-width: min(528px, 100vw);
    height: 100%;
    min-height: 0;
    overflow: clip;
    justify-self: center;
    align-self: center;
  }
  #flow .flow-index {
    gap: 0 14px;
  }
  #flow .flow-step-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px 0 12px;
  }
  #flow .flow-step-number {
    font-size: 10px;
    line-height: 1.2;
  }
  #flow .flow-step-name {
    display: none;
  }
  #flow .flow-step-number {
    font-size: 12px;
  }
  #flow .flow-step-jp {
    display: none;
  }
  #flow .flow-colophon {
    padding-top: 11px;
    gap: 8px;
  }
  #flow .flow-colophon-caption {
    font-size: 7px;
    letter-spacing: 0.03em;
  }
  #flow .flow-colophon-caption > span {
    padding: 0 4px;
  }
  #flow .flow-colophon a {
    font-size: 10px;
    gap: 12px;
  }
  #flow .flow-colophon svg {
    width: 24px;
  }
  #flow .flow-scene .fs-art {
    width: 123%;
    margin-left: -11.5%;
    height: 100%;
  }
}
@media (max-width: 760px) and (max-height: 740px) {
  #flow .flow-stage {
    padding-top: 13px;
    padding-bottom: 10px;
  }
  #flow.flow-enhanced .flow-panel {
    padding-top: 50px;
    padding-bottom: 0;
  }
  #flow .flow-panel-en {
    font-size: 12px;
    margin-bottom: 3px;
  }
  #flow .flow-copy h3 {
    font-size: 26px;
    margin-bottom: 5px;
  }
  #flow .flow-panel-copy {
    font-size: 13px;
    line-height: 1.75;
  }
  #flow .flow-scene {
    max-width: min(330px, 100vw);
  }
  #flow .flow-step-link {
    padding-top: 10px;
    padding-bottom: 9px;
    gap: 3px;
  }
}
@media (max-width: 360px) {
  #flow.flow-scroll-enabled .flow-panel-copy {
    min-block-size: 3lh;
  }
  #flow .flow-heading {
    gap: 10px;
  }
  #flow .flow-heading h2 {
    font-size: 15px;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  #flow *,
  #flow *::before {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  #flow .flow-copy-outgoing {
    display: none;
  }
  #flow {
    height: auto !important;
    background: white;
    color: black;
  }
  #flow .flow-stage {
    position: static !important;
    height: auto !important;
    display: block !important;
  }
  #flow .flow-panel[hidden] {
    display: grid !important;
  }
  #flow .flow-panel {
    break-inside: avoid;
    min-height: 300px !important;
  }
  #flow .flow-chapter-tools,
  #flow .flow-index,
  #flow .flow-motion-toggle {
    display: none !important;
  }
  #flow .flow-copy *,
  #flow .flow-scene {
    color: black !important;
  }
}

#flow .flow-copy .flow-panel-en {
  position: relative;
  z-index: 0;
  margin: 0 0 -0.72em -0.08em;
  font:
    400 clamp(72px, 7vw, 124px) / 1 "Pinyon Script",
    cursive;
  letter-spacing: 0;
  color: rgba(236, 235, 232, 0.13);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
#flow .flow-copy h3 {
  position: relative;
  z-index: 1;
}
@media (min-width: 761px) and (max-height: 760px) {
  #flow .flow-copy .flow-panel-en {
    font-size: clamp(60px, 5.6vw, 92px);
  }
}
@media (max-width: 760px) {
  #flow .flow-copy .flow-panel-en {
    font-size: clamp(48px, 14vw, 72px);
  }
}
@media (max-width: 760px) and (max-height: 740px) {
  #flow .flow-copy .flow-panel-en {
    font-size: 46px;
  }
}
