body {
  background: #e3eaec;
  color: var(--ink);
}

.sheet {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--mist);
  overflow: clip;
}

@media (min-width: 480px) {
  body {
    padding: 28px 0;
  }
  .sheet {
    box-shadow: 0 24px 60px -34px rgba(30, 37, 64, 0.5);
  }
}

section {
  position: relative;
  z-index: 2;
  padding-inline: var(--gutter);
}

/* ---------- 表紙 ---------- */

.cover {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--safe-top) + var(--sp-7)) var(--gutter) calc(var(--safe-bottom) + var(--sp-5));
  z-index: 2;
  overflow: hidden;
}

.cover__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cover__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(238, 243, 244, 0.14);
}

/* 線の起点。水平線の高さに置く。 */
.cover__anchor {
  position: absolute;
  left: var(--gutter);
  top: var(--horizon, 58%);
  width: 1px;
  height: 1px;
}

.cover__num {
  margin: 0;
  font-size: var(--fs-cover);
  line-height: 0.82;
  color: var(--ink);
  white-space: nowrap;
}

.cover__type {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--safe-bottom) + 104px);
}

.cover__headline {
  margin: 0;
  font-size: var(--fs-h1);
  line-height: 1.45;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.cover__sub {
  margin: var(--sp-3) 0 0;
  font-family: var(--mincho);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.cover__aside {
  grid-row: 3;
  margin: var(--sp-5) 0 0;
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* ---------- 一日の流れ ---------- */

.day {
  padding-top: var(--sp-8);
}

.day + .day {
  padding-top: var(--sp-7);
}

.day__head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-6);
  padding-left: calc(var(--rail) + var(--sp-3));
}

.day__date {
  font-family: var(--mincho);
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.day__weekday {
  font-family: var(--figure);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}

.stops {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stop {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  column-gap: var(--sp-3);
  padding-bottom: var(--sp-7);
}

.stop:last-child {
  padding-bottom: 0;
}

.stop__dot {
  width: 9px;
  height: 9px;
  margin: 9px auto 0;
  border-radius: 50%;
  background: var(--mist);
  border: 1.6px solid var(--ink-soft);
}

.stop--sea .stop__dot {
  background: var(--sea);
  border-color: var(--sea);
  width: 11px;
  height: 11px;
  margin-top: 8px;
}

.stop--tower .stop__dot {
  background: var(--tower);
  border-color: var(--tower);
  width: 11px;
  height: 11px;
  margin-top: 8px;
}

.stop__time {
  display: block;
  font-family: var(--figure);
  font-style: italic;
  font-size: var(--fs-time);
  line-height: 1;
  color: var(--ink-soft);
  font-variant-numeric: lining-nums tabular-nums;
}

.stop__time--word {
  font-family: var(--mincho);
  font-style: normal;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.stop__timenote {
  display: inline-block;
  margin-left: var(--sp-2);
  font-family: var(--gothic);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.stop__place {
  margin: var(--sp-2) 0 0;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: var(--fs-place);
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.stop__note {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-note);
  line-height: 1.75;
  color: var(--ink-soft);
}

.stop__tag {
  display: inline-block;
  margin-top: var(--sp-3);
  padding-left: 13px;
  position: relative;
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  color: var(--sea);
}

.stop__tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: currentColor;
}

.stop--tower .stop__tag {
  color: var(--tower);
}

.stop__media {
  margin-top: var(--sp-4);
  overflow: hidden;
}

.stop__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* 大きい地点は右端まで抜けて、縦一本の流れに変化をつける */
.stop--feature .stop__media {
  margin-right: calc(var(--gutter) * -1);
}

.stop--feature .stop__media img {
  aspect-ratio: 4 / 3;
}

/* ---------- 江ノ島の地図 ---------- */

.map-section {
  padding-top: var(--sp-9);
}

.map-section__head {
  padding-left: calc(var(--rail) + var(--sp-3));
}

.map-section__title {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: var(--fs-h2);
  letter-spacing: 0.08em;
}

.map-section__lead {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-note);
  color: var(--ink-soft);
}

.map-controls {
  margin: var(--sp-5) calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter);
}

.map-search {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  border-bottom: 1px solid rgba(30, 37, 64, 0.16);
  padding-bottom: var(--sp-2);
}

.map-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 14px;
  padding: var(--sp-1) 0;
}

.map-search input::placeholder {
  color: var(--ink-soft);
  opacity: 0.75;
}

.map-search__icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--ink-soft);
}

.chips {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding-bottom: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(30, 37, 64, 0.18);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 160ms, border-color 160ms, background-color 160ms;
}

.chip[aria-pressed="true"] {
  color: var(--mist);
  background: var(--ink);
  border-color: var(--ink);
}

.map {
  position: relative;
  margin: var(--sp-4) calc(var(--gutter) * -1) 0;
  aspect-ratio: var(--map-aspect, 430 / 484);
  max-height: 74svh;
}

.map__svg {
  width: 100%;
  height: 100%;
}

.map__island {
  fill: #dbe7e1;
  stroke: rgba(30, 37, 64, 0.3);
  stroke-width: 1.1;
}

.map__route {
  fill: none;
  stroke: none;
}

/* タップは .map__surface が受けて JS が最寄りのピンを選ぶ */
.pin {
  pointer-events: none;
}

.map__surface {
  cursor: pointer;
}

.pin__dot {
  fill: var(--ink-soft);
  transition: r 160ms ease-out;
}

.pin__halo {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 0.9;
  opacity: 0.42;
}

.pin__icon {
  fill: var(--mist);
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pin__location {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 0.7;
  opacity: 0.5;
  pointer-events: none;
}

.pin.is-selected .pin__icon {
  stroke: var(--sea);
}
.pin.is-active .pin__icon {
  stroke: var(--tower);
}

.pin__name {
  visibility: hidden;
  font-family: var(--gothic);
  font-size: 12px;
  font-weight: 500;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--mist);
  stroke-width: 2px;
  stroke-linejoin: round;
}

.pin__famous {
  font-size: 10px;
  fill: var(--ink-soft);
}

.pin__leader {
  visibility: hidden;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 0.7;
  pointer-events: none;
}

.pin.is-labeled .pin__leader,
.pin.is-active .pin__leader,
.pin.is-labeled .pin__name,
.pin.is-active .pin__name {
  visibility: visible;
}

.pin.is-dim {
  opacity: 0.16;
}

.pin.is-selected .pin__dot {
  fill: var(--sea);
}

.pin.is-selected .pin__halo {
  stroke: var(--sea);
}

.pin.is-active {
  opacity: 1;
}

.pin.is-active .pin__halo {
  stroke: var(--tower);
}

.pin.is-active .pin__dot {
  fill: var(--tower);
  r: 6.5;
}

.pin {
  transition: opacity 200ms ease-out;
}

/* スポットのカード */
.spot-card {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 110%);
  width: min(100vw, 430px);
  background: var(--mist);
  border-top: 1px solid rgba(30, 37, 64, 0.14);
  padding: var(--sp-5) var(--gutter) calc(var(--safe-bottom) + var(--sp-5));
  z-index: 30;
  transition: transform 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 -18px 40px -28px rgba(30, 37, 64, 0.6);
}

.spot-card.is-open {
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .spot-card {
    transition: none;
  }
}

.spot-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}

.spot-card__name {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.03em;
}

.spot-card__famous {
  display: inline-block;
  margin-left: var(--sp-2);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  vertical-align: 0.25em;
}

.spot-card__heart {
  flex: none;
  width: 44px;
  height: 44px;
  margin: -10px -10px 0 0;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}

.spot-card__heart svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: fill 200ms, color 200ms;
}

.spot-card__heart[aria-pressed="true"] {
  color: var(--sea);
}

.spot-card__heart[aria-pressed="true"] svg {
  fill: currentColor;
}

.spot-card__desc {
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-note);
  line-height: 1.75;
  color: var(--ink-soft);
}

.spot-card__meta {
  margin: var(--sp-4) 0 0;
  display: grid;
  gap: var(--sp-1);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.spot-card__meta div {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: var(--sp-2);
}

.spot-card__meta dt {
  letter-spacing: 0.1em;
  font-size: 11px;
  padding-top: 1px;
}

.spot-card__meta dd {
  margin: 0;
  color: var(--ink);
}

.spot-card__actions {
  margin-top: var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.spot-card__maps {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--sea);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.spot-card__close {
  min-width: 44px;
  min-height: 44px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.spot-scrim {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(30, 37, 64, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms;
}

.spot-scrim.is-open {
  opacity: 1;
  visibility: visible;
}

.map-empty {
  margin: var(--sp-3) 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---------- 支度 ---------- */

.kit {
  padding-top: var(--sp-9);
}

.kit__title {
  margin: 0 0 var(--sp-5);
  padding-left: calc(var(--rail) + var(--sp-3));
  font-family: var(--mincho);
  font-weight: 500;
  font-size: var(--fs-h2);
  letter-spacing: 0.08em;
}

.kit__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kit__button {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  column-gap: var(--sp-3);
  width: 100%;
  min-height: 44px;
  padding: var(--sp-5) 0;
  text-align: left;
}

.kit__box {
  background: var(--mist);
  width: 14px;
  height: 14px;
  margin: 5px auto 0;
  border: 1.4px solid var(--ink-soft);
  border-radius: 3px;
  position: relative;
}

.kit__box::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--sea);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(42deg) scale(0.5);
  opacity: 0;
  transition: opacity 160ms, transform 160ms;
}

.kit__button[aria-pressed="true"] .kit__box {
  border-color: var(--sea);
}

.kit__button[aria-pressed="true"] .kit__box::after {
  opacity: 1;
  transform: rotate(42deg) scale(1);
}

.kit__title-line {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.03em;
  display: inline-block;
  position: relative;
}

.kit__title-line::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 1px;
  background: var(--ink-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease-out;
}

.kit__button[aria-pressed="true"] .kit__title-line::after {
  transform: scaleX(1);
}

.kit__button[aria-pressed="true"] .kit__text {
  color: var(--ink-soft);
}

.kit__note {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--fs-note);
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- 結び ---------- */

.finale {
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-7);
  text-align: center;
}

.finale__lines {
  margin: 0;
  word-break: auto-phrase;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 17px;
  line-height: 2.1;
  letter-spacing: 0.05em;
}

.finale__lines span {
  display: block;
}

.finale__tower {
  position: relative;
  width: 120px;
  height: 220px;
  margin: var(--sp-7) auto 0;
}

footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: var(--sp-5) var(--gutter) calc(var(--safe-bottom) + var(--sp-6));
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  border-top: 1px solid rgba(30, 37, 64, 0.1);
  margin: 0 var(--gutter);
}

footer .figure {
  font-size: 13px;
}

/* ---------- 第2版: 表紙の演出とカウントダウン ---------- */

.cover__figures {
  align-self: start;
}

.cover__glyph {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
}

.cover__horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--horizon, 58%);
  height: 2px;
  z-index: 1;
  overflow: visible;
}

.cover__horizon path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.45;
}

.cover__countdown {
  margin: var(--sp-2) 0 0;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  opacity: 0;
}

.cover__type,
.cover__aside {
  opacity: 0;
}

/* 演出が終わった状態。JS が付ける前に読み込みが済んでも読めるよう、
   .is-ready は fonts.ready を待たずに付く。 */
.cover.is-ready .cover__glyph {
  opacity: 1;
  transform: none;
  transition:
    opacity 520ms ease-out,
    transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--i) * 120ms);
}

.cover.is-ready .cover__countdown,
.cover.is-ready .cover__type,
.cover.is-ready .cover__aside {
  opacity: 1;
  transition: opacity 600ms ease-out 1.5s;
}

.cover.is-instant .cover__glyph,
.cover.is-instant .cover__countdown,
.cover.is-instant .cover__type,
.cover.is-instant .cover__aside {
  opacity: 1;
  transform: none;
  transition: none;
}

.cover.is-instant .cover__horizon path {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}

/* ---------- 第2版: 旅のミッション ---------- */

.day__score {
  margin-left: auto;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.missions {
  list-style: none;
  margin: var(--sp-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}

.mission__button {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 46px;
  text-align: left;
}

.mission__stamp {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.mission__ring {
  position: absolute;
  inset: 0;
  border: 1.2px dashed rgba(30, 37, 64, 0.22);
  border-radius: 50%;
}

.mission__word {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  color: var(--sea);
  opacity: 0;
  transform: scale(1.35) rotate(-6deg);
}

.mission__button[aria-pressed="true"] .mission__ring {
  border-style: solid;
  border-width: 1.2px;
  border-color: var(--sea);
  filter: url(#stamp-ink);
}

.mission__button[aria-pressed="true"] .mission__word {
  opacity: 1;
  transform: none;
  transition:
    opacity 260ms ease-out,
    transform 260ms cubic-bezier(0.34, 1.3, 0.64, 1);
  filter: url(#stamp-ink);
}

.mission__text {
  font-size: var(--fs-note);
  line-height: 1.6;
  color: var(--ink);
}

.mission__spot {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.mission__button[aria-pressed="true"] .mission__text {
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .mission__word,
  .cover__glyph {
    transition: none !important;
  }
}

/* ---------- 第2版: 5年前のこの場所 ---------- */

.then {
  margin-top: var(--sp-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.then figure {
  margin: 0;
}

.then__label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: var(--sp-1);
}

.then__frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.then__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.then__frame--empty {
  border: 1px dashed rgba(30, 37, 64, 0.26);
  display: grid;
  place-items: center;
}

.then__wait {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ink-soft);
}

.then__caption {
  margin: var(--sp-2) 0 0;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- 第2版: ひとくちメモ ---------- */

.trivia {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}

.trivia__item {
  border-left: 1px solid rgba(47, 127, 138, 0.4);
  padding-left: var(--sp-3);
}

.trivia__title {
  display: block;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--sea);
}

.trivia__body {
  display: block;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.spot-card__trivia:empty {
  display: none;
}

.spot-card__trivia {
  margin-top: var(--sp-4);
}

/* ---------- 第2版: 東京タワーの光点とディナーの後 ---------- */

.stop__dusk {
  margin: var(--sp-2) 0 0;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.stop__after {
  margin: var(--sp-3) 0 0;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.stop__media {
  position: relative;
}

.stop__glow {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 10px 3px rgba(242, 184, 91, 0.55);
  opacity: 0;
  transition: opacity 1500ms ease-out;
}

.stop__glow.is-lit {
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .stop__glow {
    opacity: 0.9;
    transition: none;
  }
}

/* ---------- 第2版: 地図のピンの pop ---------- */

.pin__dot,
.pin__icon,
.pin__halo {
  transform-box: fill-box;
  transform-origin: center;
}

.map.is-popping .pin__dot,
.map.is-popping .pin__icon {
  animation: pin-pop 320ms cubic-bezier(0.34, 1.4, 0.64, 1) both;
  animation-delay: calc(var(--order, 0) * 50ms);
}

.pin.is-refiltered .pin__dot,
.pin.is-refiltered .pin__icon {
  animation: pin-nudge 240ms ease-out both;
}

@keyframes pin-pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@keyframes pin-nudge {
  from {
    transform: scale(0.4);
  }
  to {
    transform: scale(1);
  }
}

.map__route {
  fill: none;
  stroke: none;
}

@media (prefers-reduced-motion: reduce) {
  .map.is-popping .pin__dot,
  .map.is-popping .pin__icon,
  .pin.is-refiltered .pin__dot,
  .pin.is-refiltered .pin__icon {
    animation: none;
  }
}

/* 押印済みのミッションがあるスポット */
.pin__done {
  fill: var(--sea);
  stroke: var(--mist);
  stroke-width: 1.2;
  opacity: 0;
}

.pin.is-done .pin__done {
  opacity: 1;
}

/* ---------- 第2版: イラストと歩くモードの切り替え ---------- */

.modes {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.chip.mode {
  min-height: 34px;
}

.walk {
  position: relative;
  margin: var(--sp-4) calc(var(--gutter) * -1) 0;
  height: 70svh;
  min-height: 420px;
}

.walk__canvas {
  width: 100%;
  height: 100%;
  background: var(--mist);
}

.walk__locate {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--mist);
  border: 1px solid rgba(30, 37, 64, 0.18);
  border-radius: 50%;
}

.walk__locate svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.3;
  stroke-linecap: round;
}

.walk__locate[aria-pressed="true"] svg {
  stroke: var(--tower);
}

.walk__locate[aria-pressed="true"] .walk__locate-dot {
  fill: var(--tower);
}

.walk__status {
  position: absolute;
  top: calc(var(--sp-3) + 50px);
  right: var(--sp-3);
  z-index: 2;
  margin: 0;
  font-size: 11.5px;
  color: var(--ink);
  background: var(--mist);
  padding: 2px 8px;
}

.walk__status:empty {
  display: none;
}

.walk__next {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--sp-6);
  z-index: 2;
  margin: 0;
  padding: var(--sp-2) var(--sp-3);
  background: var(--mist);
  border-left: 2px solid var(--sea);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.walk__credit {
  position: absolute;
  right: 4px;
  bottom: 2px;
  z-index: 2;
  margin: 0;
  font-size: 10px;
  color: var(--ink-soft);
  background: rgba(238, 243, 244, 0.8);
  padding: 0 4px;
}

/* 歩くモードのマーカー。名前は symbol レイヤーが出すので、ここは点だけ。
   イラスト地図と同じ ink-soft を基本にし、交通だけ sea にして足の層だと分かるようにする。 */
.wmark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translateY(22px);
}

.wmark__dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-soft);
  border: 1.5px solid var(--mist);
}

.wmark.is-hidden {
  display: none;
}

.wmark--transit .wmark__dot {
  background: var(--sea);
}

.wmark.is-done .wmark__dot {
  background: var(--tower);
}

/* ---------- v3: 表紙の天気 ---------- */

.cover__meta {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.cover__weather {
  margin: var(--sp-2) 0 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.cover.is-ready .cover__weather {
  opacity: 1;
  transition: opacity 600ms ease-out 1.5s;
}

.cover.is-instant .cover__weather {
  opacity: 1;
  transition: none;
}

/* ---------- v3: あの日の待ち合わせ ---------- */

.firstchat {
  padding-top: var(--sp-8);
}

.firstchat__label {
  display: block;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.firstchat__title {
  margin: var(--sp-1) 0 var(--sp-5);
  font-family: var(--mincho);
  font-weight: 500;
  font-size: var(--fs-h2);
  letter-spacing: 0.08em;
}

/* しおりは mist 地なので、紙片は輪郭を薄い線で補う */
.firstchat .slip {
  border: 1px solid rgba(30, 37, 64, 0.07);
}

/* ---------- v3: お昼と、おやつ ---------- */

.picks {
  margin-top: var(--sp-5);
  border-left: 1px solid rgba(47, 127, 138, 0.32);
  padding-left: var(--sp-3);
  display: grid;
  gap: var(--sp-3);
}

.pick {
  display: grid;
  grid-template-columns: 3.6em 1fr;
  column-gap: var(--sp-2);
  align-items: baseline;
}

.pick__kind {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sea);
}

.pick__spot {
  display: block;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.pick__desc,
.pick__note {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
  word-break: auto-phrase;
}

.pick__note {
  margin-top: 2px;
}

.picks__foot {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ---------- v3: 帰り道の話題 ---------- */

.talk {
  margin-top: var(--sp-5);
}

.talk__frame {
  overflow: hidden;
}

.talk__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.talk__list {
  list-style: none;
  margin: var(--sp-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}

.talk__list li {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  padding-left: 14px;
  position: relative;
  word-break: auto-phrase;
}

.talk__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 1px;
  background: var(--ink-soft);
}

/* ---------- v3: 雨の日の寄り道 ---------- */

.rain {
  padding-top: var(--sp-7);
}

.rain__title {
  margin: 0 0 var(--sp-3);
  padding-left: calc(var(--rail) + var(--sp-3));
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.rain__list {
  list-style: none;
  margin: 0;
  padding-left: calc(var(--rail) + var(--sp-3));
  display: grid;
  gap: var(--sp-2);
}

.rain__spot {
  display: block;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.rain__note {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
  word-break: auto-phrase;
}

/* ---------- v3: 2026 の枠をその場で埋める ---------- */

.then__frame--empty .capture__wait {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ink-soft);
}

.then__frame--empty .capture__hint {
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* 撮った後は点線の枠を外す */
.then__frame--empty:has(.capture.is-filled) {
  border-color: transparent;
}

.then__frame--empty .capture__redo {
  background: rgba(238, 243, 244, 0.86);
  color: var(--ink-soft);
}

/* ---------- v3: 当日モード ---------- */

.stop.is-now .stop__dot {
  background: var(--lamp);
  border-color: var(--lamp);
  width: 13px;
  height: 13px;
  margin-top: 7px;
  box-shadow: 0 0 12px 3px rgba(242, 184, 91, 0.5);
}

.stop__next {
  margin: var(--sp-2) 0 0;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--sea);
}


/* ==================== PC 横長版（2ペイン） ==================== */

/*
 * 左 42% にその地点の絵を貼り付け、右 58% に行程が今の一列のまま流れる。
 * DOM はスマホ版と同じで、.stop__body を display: contents にして絵だけを左の列へ移す。
 */
@media (min-width: 900px) {
  body {
    padding: 0;
    background: #dde5e7;
  }

  .sheet {
    max-width: 1100px;
    box-shadow: none;
  }

  /* 左ペインを持たない節は、右の列の幅にそろえる */
  .firstchat,
  .kit,
  .rain,
  .day__head {
    padding-left: calc(42% + var(--rail) + var(--sp-3));
  }

  /* ---------- 表紙 ---------- */

  .cover {
    grid-template-columns: 42% 1fr;
    grid-template-rows: auto 1fr auto;
    column-gap: var(--sp-7);
    padding-inline: 0 var(--sp-7);
  }

  .cover__media,
  .cover__scrim,
  .cover__horizon {
    left: 0;
    right: 58%;
  }

  .cover__figures {
    grid-column: 1;
    padding-left: var(--gutter);
  }

  /* 左ペインは紙面 1100px の 42%。「9.28」が折れないよう、そこから頭打ちを出す。 */
  .cover__num {
    font-size: min(220px, calc(min(100vw, 1100px) * 0.185));
  }

  /* 題文は右ペインの先頭。線もここから下りる。 */
  .cover__type {
    position: static;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding-top: var(--sp-5);
  }

  .cover__aside {
    grid-column: 2;
    grid-row: 3;
  }

  .cover__anchor {
    left: calc(42% + var(--sp-7));
  }

  /* ---------- 一日の流れ ---------- */

  .stop {
    grid-template-columns: 42% var(--rail) 1fr;
    column-gap: var(--sp-3);
    padding-bottom: var(--sp-9);
  }

  .stop__body {
    display: contents;
  }

  .stop__body > * {
    grid-column: 3;
  }

  /* 絵は左の列に貼り付いて、その地点を読んでいるあいだ動かない */
  .stop .stop__media {
    grid-column: 1;
    grid-row: 1 / span 40;
    position: sticky;
    top: 0;
    align-self: start;
    height: 100svh;
    margin: 0 var(--sp-7) 0 0;
    opacity: 0.4;
    transition: opacity 400ms ease-out;
  }

  .stop.is-current .stop__media {
    opacity: 1;
  }

  .stop .stop__media img {
    height: 100%;
    aspect-ratio: auto;
  }

  .stop__dot {
    grid-column: 2;
    grid-row: 1;
  }

  /* ---------- 江ノ島の地図 ---------- */

  .map-section {
    display: grid;
    grid-template-columns: 42% 1fr;
    column-gap: var(--sp-3);
    grid-template-areas:
      "map head"
      "map controls"
      "map modes"
      "map rest";
    grid-template-rows: auto auto auto 1fr;
    padding-inline: 0 var(--sp-7);
  }

  .map-section__head {
    grid-area: head;
  }

  .map-controls {
    grid-area: controls;
    margin-inline: 0;
    padding-inline: var(--rail) 0;
  }

  .modes {
    grid-area: modes;
    margin-left: var(--rail);
  }

  .map,
  .walk {
    grid-area: map;
    position: sticky;
    top: 0;
    align-self: start;
    margin: 0 var(--sp-7) 0 0;
    height: 100svh;
    max-height: none;
    aspect-ratio: auto;
  }

  .walk {
    min-height: 0;
  }

  .map__svg {
    height: 100%;
  }

  /* ---------- 結び ---------- */

  .finale {
    display: grid;
    grid-template-columns: 42% 1fr;
    column-gap: var(--sp-7);
    align-items: center;
    padding-inline: 0 var(--sp-7);
    text-align: left;
  }

  .finale__tower {
    grid-column: 1;
    margin: 0 auto;
  }

  .finale__lines {
    grid-column: 2;
  }

  footer {
    margin-inline: var(--sp-7);
  }
}

@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
  .stop .stop__media {
    opacity: 1;
    transition: none;
  }
}
