:root {
  --paper: #f8f5ed;
  --white: #ffffff;
  --ink: #211c1b;
  --ink-soft: #5b534f;
  --sun: #b94b22;
  --dusk: #204653;
  --line: rgba(33, 28, 27, 0.2);
  --line-light: rgba(248, 245, 237, 0.28);
  --display: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  --body: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --utility: "Helvetica Neue", Arial, sans-serif;
  --page-pad: max(40px, calc((100vw - 1280px) / 2));
  /* sticky なヘッダーとセクションナビの高さ。アンカー移動の着地位置と
     ナビの固定位置で共有する。680px以下ではヘッダーが 68px になる。 */
  --header-h: 84px;
  --section-nav-h: 46px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

/* 日本語の折り返しを整える。
   auto-phrase は文節で折り返す（Chrome/Edge）。未対応ブラウザでは無視される。
   pretty は最終行に1〜2文字だけ残る「泣き別れ」を避ける。 */
p,
dd,
li,
summary,
figcaption,
.entry-note,
.journey-line strong,
.journey-line span,
.stay-ways__status {
  word-break: auto-phrase;
  text-wrap: pretty;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  position: sticky;
  z-index: 50;
  top: 0;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 8px var(--page-pad);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 245, 237, 0.96);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 70px;
  height: 54px;
  flex: 0 0 70px;
  background-image: url("./assets/nishiizu-sunset-festival-logo.webp");
  background-position: center 49%;
  background-repeat: no-repeat;
  background-size: 76px auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 3px;
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.site-header nav {
  display: flex;
  gap: 28px;
}

.site-header nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  border-bottom-color: var(--sun);
}

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

/* 左55%＝言葉、右45%＝夕暮れの実写。写真は「窓」として絞り、色を濃く見せる。 */
.hero-inner {
  display: grid;
  width: min(1280px, calc(100% - 80px));
  align-items: center;
  margin: 0 auto;
  padding: clamp(48px, 4.6vw, 72px) 0 clamp(48px, 4.6vw, 72px);
  gap: clamp(36px, 4.4vw, 64px);
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
}

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--sun);
  content: "";
}

.hero h1,
.section h2,
.film-card h3,
.food h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-break: strict;
  text-wrap: balance;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 4.2vw, 56px);
  line-height: 1.35;
}

.hero h1 span {
  display: block;
}

.hero-lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* hero-facts の4分割黒帯の置き換え。自然文の開催概要＋地図。 */
.hero-outline {
  display: grid;
  align-items: baseline;
  margin: 30px 0 0;
  padding: 18px 0 20px;
  gap: 6px 24px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  grid-template-columns: minmax(0, 1fr) auto;
}

.hero-outline p {
  margin: 0;
  grid-column: 1;
  font-size: 13px;
  line-height: 1.75;
}

.hero-outline__date {
  font-weight: 700;
}

.hero-outline__place {
  color: var(--ink-soft);
}

.hero-outline__map {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 11px;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button--dark {
  color: var(--white);
  background: var(--ink);
}

.button--dark:hover,
.button--dark:focus-visible {
  background: var(--dusk);
}

/* Sun は装飾から撤退させ、最優先の行動（支援）の塗りに専念させる。
   #b94b22 × #ffffff の実測コントラストは 5.1:1（AA適合）。 */
.button--sun {
  min-height: 54px;
  padding: 14px 24px;
  color: var(--white);
  background: var(--sun);
  font-size: 13px;
}

.button--sun:hover,
.button--sun:focus-visible {
  background: var(--ink);
}

.button--line {
  border: 1px solid var(--ink);
}

.button--line:hover,
.button--line:focus-visible {
  color: var(--white);
  background: var(--ink);
}

.text-link,
.entry-link,
.film-official,
.social-copy .button {
  text-underline-offset: 5px;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
}

.text-link {
  font-size: 12px;
  font-weight: 800;
}

.hero-photo {
  margin: 0;
}

/* 素材は 4:3。表示枠はPCでほぼ正方形、SPでは横長になるため、
   どちらでも左右が切られる。中央基準で太陽と人のシルエットを残す。 */
.hero-photo img {
  height: clamp(520px, 40vw, 580px);
  object-fit: cover;
  object-position: center;
}

.hero-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0 0;
  border-top: 1px solid var(--ink);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.entryways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

/* 昼→夜の写真帯。判型差（横長・縦長・寄り）でリズムを作り、
   最後の1枚だけを大判にして上映（Dusk地）へ接続する。 */
.daylight {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.daylight-heading {
  display: grid;
  align-items: end;
  gap: 30px 60px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
}

.daylight-heading .eyebrow,
.daylight-heading h2 {
  grid-column: 1;
}

.daylight-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

.daylight-band {
  display: grid;
  margin: 48px 0 0;
  padding: 0;
  gap: 30px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  list-style: none;
}

.daylight-item {
  margin: 0;
}

.daylight-item figure {
  margin: 0;
}

.daylight-item--wide {
  grid-column: span 6;
}

.daylight-item--tall {
  grid-column: span 3;
  margin-top: 34px;
}

.daylight-item:not(.daylight-item--wide):not(.daylight-item--tall):not(.daylight-item--hero) {
  grid-column: span 3;
}

.daylight-item--hero {
  grid-column: 1 / -1;
  margin-top: 22px;
}

.daylight-item img {
  object-fit: cover;
}

.daylight-item--wide img {
  aspect-ratio: 16 / 9;
}

.daylight-item--tall img {
  aspect-ratio: 3 / 4;
}

.daylight-item:not(.daylight-item--wide):not(.daylight-item--tall):not(.daylight-item--hero) img {
  aspect-ratio: 4 / 3;
}

.daylight-item--hero img {
  aspect-ratio: 16 / 9;
}

.daylight-item figcaption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0 0;
  border-top: 1px solid var(--ink);
  font-size: 11px;
}

.daylight-time {
  color: var(--sun);
  font-family: var(--utility);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.entry-card {
  display: flex;
  min-height: 214px;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px max(26px, 3.4vw);
  border-right: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
  transition: background 180ms ease;
}

.entry-card:last-child {
  border-right: 0;
}

.entry-card:hover,
.entry-card:focus-visible {
  background: var(--white);
}

.entry-kicker {
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.entry-card strong {
  margin: 26px 0 18px;
  font-family: var(--display);
  font-size: clamp(25px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  line-break: strict;
}

.entry-note {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.entry-link {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  text-decoration-line: underline;
}

.section {
  padding: 92px var(--page-pad);
}

.section h2 {
  margin: 0;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1.4;
}

.keep-line,
.film-title-line {
  white-space: normal;
}

.keep-together {
  white-space: nowrap;
}

.festival {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  gap: 40px 7vw;
  background: var(--paper);
}

.festival-copy {
  align-self: end;
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 14px;
}

.festival-copy p {
  margin: 0;
}

.festival-copy p + p {
  margin-top: 20px;
}

/* 2025（実際に観ている人の側）を大判にして主役にし、前後を従属させる。 */
.memory-sequence {
  display: grid;
  grid-column: 1 / -1;
  position: relative;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.62fr) minmax(0, 0.78fr);
  align-items: start;
  gap: 28px;
  margin-top: 30px;
  padding-top: 36px;
  border-top: 2px dotted var(--ink);
}

.memory-item {
  margin: 0;
}

/* 左右（約40年前 / 2026）は下げて従属させ、中央の2025を主役にする。 */
.memory-item:not(.memory-item--lead) {
  margin-top: 44px;
}

.memory-item--lead img {
  aspect-ratio: 3 / 2;
}

.memory-item--lead figcaption {
  font-size: 12px;
}

.memory-item img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  object-fit: cover;
}

.memory-item--keyvisual {
  transform: rotate(1deg);
}

.memory-item--keyvisual img {
  padding: 10px;
  background: var(--white);
  object-fit: contain;
}

.memory-item figcaption,
.day-scenes figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0 0;
  border-top: 1px solid var(--ink);
  font-size: 11px;
}

.memory-item figcaption span {
  color: var(--sun);
  font-family: var(--utility);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.films {
  color: var(--white);
  background: var(--dusk);
}

.films-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: 30px 60px;
}

/* 列指定が無いと h2 が右上へ流れる（.social-copy と同じ組み方に揃える）。 */
.films-heading .eyebrow,
.films-heading h2 {
  grid-column: 1;
}

.films-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

/* 「陽が沈む」と「灯が入る」を左右に並べ、上映の時間帯を1つの図版で示す。
   左をわずかに広くして、夕日側から読み始めるようにしている。 */
.films-band {
  display: grid;
  margin: 52px 0 0;
  gap: 22px;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
}

.films-band__item {
  margin: 0;
}

.films-band img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.films-band figcaption {
  padding: 11px 0 0;
  border-top: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.film-grid {
  margin-top: 56px;
  border-top: 1px solid var(--line-light);
}

.film-card {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  padding: 60px 0;
  border-bottom: 1px solid var(--line-light);
}

.film-card__content {
  grid-column: 2;
  grid-row: 1;
  max-width: 660px;
}

.film-card--majimu {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
}

.film-card--majimu .film-card__content {
  grid-column: 1;
}

.film-poster {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  margin: 0;
  padding: 9px;
  background: var(--white);
  transform: rotate(-1deg);
}

.film-card--majimu .film-poster {
  grid-column: 2;
  transform: rotate(1deg);
}

.film-poster img {
  aspect-ratio: 453 / 640;
  object-fit: contain;
}

.food {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(52px, 7vw, 104px);
  background: var(--paper);
}

/* 見出しの級数が左カラム幅を超え「味わ／う。」で1文字が孤立していた。
   列を広げたうえで上限を46pxへ下げて解消する。 */
.food h2 {
  font-size: clamp(34px, 3.4vw, 46px);
}

.food-content > p:not(.eyebrow) {
  margin: 30px 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.food-status {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.food-status > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.food-status dt {
  font-size: 11px;
  font-weight: 800;
}

.food-status dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

/* 均一4:3グリッドをやめ、横長（大）と縦長（小）の判型差でリズムを作る。 */
.day-scenes {
  display: grid;
  align-items: start;
  gap: 24px;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.day-scenes figure {
  margin: 0;
}

.day-scenes img {
  object-fit: cover;
}

.day-scene--large img {
  aspect-ratio: 3 / 2;
}

.day-scenes .day-scene--small {
  margin-top: 46px;
}

.day-scene--small img {
  aspect-ratio: 3 / 4;
}

.day-scenes figcaption {
  justify-content: flex-start;
}

.stay {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.stay-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: 30px 60px;
}

/* films-heading と同じ列指定漏れ。 */
.stay-intro .eyebrow,
.stay-intro h2 {
  grid-column: 1;
}

.stay-intro > p:last-child {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.stay-body {
  display: grid;
  align-items: start;
  margin-top: 44px;
  gap: 36px 60px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.stay-text {
  padding-top: 6px;
}

/* 泊まり方の3ページへの導線。配下ページの other-stays と同じ組み方に揃える。 */
.stay-ways {
  display: grid;
  margin-top: 44px;
  gap: 0;
  border-top: 1px solid var(--ink);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 受付を始めた区画だけ <a>、掲載内容が揃っていないものは <article>（非対話）。 */
.stay-way {
  display: flex;
  flex-direction: column;
  padding: 24px 28px 24px 0;
  border-right: 1px solid var(--line);
}

.stay-way:last-child {
  padding-right: 0;
  border-right: 0;
}

.stay-way + .stay-way {
  padding-left: 28px;
}

a.stay-way {
  color: inherit;
  text-decoration: none;
}

a.stay-way:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: -2px;
}

a.stay-way:hover .stay-ways__link,
a.stay-way:focus-visible .stay-ways__link {
  text-decoration-thickness: 3px;
}

.stay-way__photo {
  aspect-ratio: 3 / 2;
  margin-bottom: 20px;
  object-fit: cover;
}

.stay-ways__kicker {
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.stay-ways strong {
  margin: 18px 0 10px;
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 500;
  line-height: 1.5;
  line-break: strict;
}

/* どんな案内を用意しているかの一言。内容が固まったら書き換える。 */
.stay-ways__status {
  display: block;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

/* 準備中の表示。押せる要素と見分けがつくよう、下線もSun色も使わない。 */
.stay-ways__pending {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* リンクを開くときに使う。現在はHTML側で未使用。 */
.stay-ways__link {
  margin-top: auto;
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 5px;
  text-decoration-line: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
}

.stay-photo {
  margin: 0;
}

.stay-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stay-photo figcaption {
  padding: 11px 0 0;
  border-top: 1px solid var(--ink);
  font-size: 11px;
}

.stay-text p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 14px;
}

.access {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.access .stay-intro > p:last-child {
  color: var(--ink-soft);
}

/* 「地図を見る」ボタンだけでは家からの距離感が掴めないため、地図そのものを置く。 */
.access-map {
  margin-top: 48px;
  border: 1px solid var(--line);
  line-height: 0;
}

.access-map iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 34vw, 460px);
  border: 0;
}

.access-detail {
  display: grid;
  align-items: start;
  margin-top: 34px;
  gap: 26px 60px;
  grid-template-columns: minmax(0, 1.4fr) auto;
}

.access-list {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.access-list > div {
  display: grid;
  padding: 13px 0;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 96px 1fr;
}

.access-list dt {
  font-size: 11px;
  font-weight: 800;
}

.access-list dd {
  margin: 0;
  font-size: 13px;
}

.access-list a {
  text-underline-offset: 4px;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
}

.access-actions {
  display: flex;
  align-items: flex-start;
}

.access-actions .button {
  min-height: 46px;
  padding: 11px 18px;
  font-size: 11px;
  white-space: nowrap;
}

.access-note {
  margin: 0;
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 12px;
}

.journey {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.journey h2 {
  max-width: 700px;
}

.journey-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 52px 0 0;
  padding: 0;
  gap: 30px;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.journey-line li {
  position: relative;
  padding: 26px 0 0;
}

.journey-line li::before {
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sun);
  content: "";
}

.journey-line img {
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  object-fit: cover;
}

.journey-line time {
  display: block;
  margin-bottom: 14px;
  font-family: var(--utility);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1;
}

.journey-line strong,
.journey-line span {
  display: block;
}

.journey-line strong {
  font-family: var(--display);
  font-size: 19px;
}

.journey-line span {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.information {
  background: var(--paper);
}

.info-content {
  width: min(980px, 100%);
  margin: 0 auto;
}

.info-intro {
  max-width: 760px;
  margin: 26px 0 40px;
  color: var(--ink-soft);
  font-size: 14px;
}

.info-content dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 38px;
  border-top: 1px solid var(--ink);
}

.info-content dl > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 20px;
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--line);
}

.info-content dl > div:nth-child(even) {
  padding-right: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.info-content dt {
  font-size: 11px;
  font-weight: 800;
}

.info-content dd {
  margin: 0;
  font-size: 13px;
}

.info-map {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 5px;
  text-decoration-line: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
}

.social {
  background: var(--white);
}

.social-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.6fr);
  align-items: end;
  gap: 60px;
  padding: 42px 0;
  border-top: 2px dotted var(--ink);
  border-bottom: 2px dotted var(--ink);
}

.social-copy .eyebrow,
.social-copy h2 {
  grid-column: 1;
}

.social-copy > p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  margin: 0 0 76px;
  color: var(--ink-soft);
  font-size: 14px;
}

.social-copy .button {
  grid-column: 2;
  align-self: end;
  justify-self: start;
  color: var(--white);
  background: var(--ink);
}

.faq {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 8vw;
  background: var(--paper);
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  position: relative;
  min-height: 70px;
  align-items: center;
  padding: 18px 50px 18px 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.65;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  font-family: var(--utility);
  font-size: 24px;
  font-weight: 400;
  content: "+";
  transform: translateY(-50%);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: -2px 0 24px;
  padding-right: 50px;
  color: var(--ink-soft);
  font-size: 13px;
}

/* 読了者の受け皿。支援と地図だけに絞る。 */
.final-cta {
  padding: clamp(64px, 6vw, 92px) var(--page-pad);
  color: var(--white);
  /* 読み終えた最後の画面に夕日を残す。重ねる色は --dusk (#204653) そのもので、
     色数は増やしていない。0.78 は写真の最も明るい画素の上でも白文字が
     5.38:1（AA基準4.5:1）を保てる不透明度。これより薄くしない。 */
  background-color: var(--dusk);
  background-image:
    linear-gradient(rgba(32, 70, 83, 0.78), rgba(32, 70, 83, 0.78)),
    url("./assets/cta-sunset-768.jpg");
  background-position: 56% 45%;
  background-size: cover;
}

@media (min-width: 681px) {
  .final-cta {
    background-image:
      linear-gradient(rgba(32, 70, 83, 0.78), rgba(32, 70, 83, 0.78)),
      url("./assets/cta-sunset.jpg");
  }
}

.final-cta__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.final-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.final-cta__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.button--line-light {
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: var(--white);
}

.button--line-light:hover,
.button--line-light:focus-visible {
  color: var(--dusk);
  background: var(--white);
}

footer {
  padding: 60px var(--page-pad) 76px;
  color: var(--white);
  background: var(--ink);
}

footer p {
  margin: 0;
}

.footer-title {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 30px;
}

footer > a {
  display: inline-flex;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 5px;
  text-decoration-color: var(--sun);
}

.footer-note {
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
}

.mobile-cta {
  display: none;
}

/* 初期非表示は JS が動いたときだけ。CSS 単独で opacity:0 にすると
   script.js が落ちたときにページ全体が読めなくなる。 */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  :root {
    --page-pad: 32px;
  }

  .hero-inner {
    width: calc(100% - 64px);
    gap: 34px;
    grid-template-columns: 1fr;
  }

  .hero-photo img {
    height: clamp(300px, 42vw, 400px);
  }

  .festival,
  .films-heading,
  .daylight-heading,
  .food,
  .support,
  .stay-intro,
  .social-copy,
  .faq {
    grid-template-columns: 1fr;
  }

  /* 1カラムに畳んだら列・行の固定を解く。 */
  .films-heading > p:last-child,
  .daylight-heading > p:last-child,
  .stay-intro > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .daylight-band {
    margin-top: 44px;
    gap: 22px;
  }

  .daylight-item--wide,
  .daylight-item--tall,
  .daylight-item:not(.daylight-item--wide):not(.daylight-item--tall):not(.daylight-item--hero) {
    grid-column: span 6;
  }

  .daylight-item--tall {
    margin-top: 0;
  }

  .memory-sequence {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .entry-card strong {
    font-size: clamp(20px, 2.4vw, 26px);
  }

  .memory-item--lead {
    grid-column: 1 / -1;
  }

  .memory-item:not(.memory-item--lead) {
    margin-top: 0;
  }

  /* 4列のままだと1列が狭すぎて「…楽しむ」が1〜2文字で泣き別れる。 */
  .journey-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 26px;
  }

  /* 2列のままだと dd が狭く、内容欄が細切れに折り返す。 */
  .info-content dl {
    grid-template-columns: 1fr;
  }

  .info-content dl > div,
  .info-content dl > div:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  /* 右にボタン列を抱えたままだと定義リストが潰れる（390pxで dd が8行になっていた）。 */
  .access-detail {
    gap: 22px;
    grid-template-columns: 1fr;
  }

  .stay-body {
    grid-template-columns: 1fr;
  }

  .stay-ways {
    grid-template-columns: 1fr;
  }

  .stay-way,
  .stay-way + .stay-way {
    min-height: 0;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stay-way:last-child {
    border-bottom: 0;
  }

  .festival-copy,
  .stay-intro > p:last-child {
    max-width: 680px;
  }

  .memory-sequence {
    gap: 18px;
  }

  .film-card,
  .film-card--majimu {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 52px;
  }

  .film-card--majimu .film-card__content {
    grid-column: 2;
  }

  .film-card--majimu .film-poster {
    grid-column: 1;
  }

  .food {
    gap: 56px;
  }

  .day-scenes {
    max-width: 760px;
  }

  .social-copy > p:not(.eyebrow),
  .social-copy .button {
    grid-column: 1;
    grid-row: auto;
  }

  .social-copy > p:not(.eyebrow) {
    margin: 0;
  }

  .social-copy .button {
    margin-top: 24px;
  }

  .faq {
    gap: 48px;
  }
}

@media (max-width: 680px) {
  :root {
    --page-pad: 20px;
  }

  .site-header {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-logo {
    width: 44px;
    height: 42px;
    flex-basis: 44px;
    background-size: 52px auto;
  }

  .brand-copy {
    font-size: 13px;
    white-space: nowrap;
  }

  .brand-copy small {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  /* 390pxでは「ロゴ＋名称＋ナビ2項目＋支援ボタン」が入り切らず重なる（実測）。
     宿泊・アクセスへはヒーロー副ボタンとVISIT INFOカードが繋いでいるため、
     SPヘッダは名称と支援ボタンに絞る。 */
  .site-header nav {
    display: none;
  }

  .site-header .button--sun {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 11px;
    white-space: nowrap;
  }

  .hero-inner {
    width: calc(100% - 40px);
    padding: 22px 0 30px;
    gap: 22px;
  }

  .hero h1 {
    font-size: clamp(34px, 9.2vw, 42px);
    line-height: 1.45;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 13px;
  }

  .hero-lead br {
    display: none;
  }

  .hero-outline {
    margin-top: 18px;
    padding: 14px 0 16px;
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .hero-outline__map {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 4px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
  }

  .hero-photo img {
    height: clamp(260px, 72vw, 320px);
  }

  .entryways {
    grid-template-columns: 1fr;
  }

  .entry-card {
    min-height: 205px;
    padding: 30px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .entry-card:last-child {
    border-bottom: 0;
  }

  .entry-card strong {
    margin: 20px 0 16px;
    font-size: 23px;
  }

  .section {
    padding: 64px 20px;
  }

  .section h2 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.5;
  }

  .festival {
    gap: 38px;
  }

  .memory-sequence {
    grid-template-columns: 1fr;
    gap: 42px;
    margin-top: 18px;
    padding-top: 34px;
  }

  .memory-item--keyvisual {
    transform: none;
  }

  .memory-item figcaption {
    font-size: 10px;
  }

  .films-heading {
    gap: 30px;
  }

  .films-band {
    gap: 26px;
    grid-template-columns: 1fr;
  }

  .film-grid {
    margin-top: 54px;
  }

  .film-card,
  .film-card--majimu {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 60px 0;
  }

  .film-card__content,
  .film-card--majimu .film-card__content {
    grid-column: 1;
    grid-row: 2;
  }

  .film-poster,
  .film-card--majimu .film-poster {
    grid-column: 1;
    grid-row: 1;
    width: min(82%, 310px);
    transform: none;
  }

  .film-card--majimu .film-poster {
    margin-left: auto;
  }

  .film-card h3,
  .film-card--lorax h3 {
    font-size: 34px;
  }

  .film-message {
    font-size: 19px;
  }

  .film-note {
    grid-column: 1;
    grid-row: 3;
  }

  .food {
    gap: 48px;
  }

  .food-status > div {
    grid-template-columns: 78px 1fr;
    gap: 14px;
  }

  .daylight-heading {
    gap: 30px;
  }

  .daylight-band {
    margin-top: 36px;
    gap: 18px;
  }

  .daylight-item--hero {
    margin-top: 10px;
  }

  /* SPでは16:9だと夕日が夜の写真より小さくなるため、少し縦を伸ばす。 */
  .daylight-item--hero img {
    aspect-ratio: 3 / 2;
  }

  .daylight-item figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
  }

  .memory-sequence {
    grid-template-columns: 1fr;
  }

  .support {
    gap: 26px;
  }

  .day-scenes {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .day-scenes .day-scene--small {
    margin-top: 0;
  }

  .stay-intro {
    gap: 28px;
  }

  .final-cta__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 26px;
  }

  .final-cta__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  /* 写真タイムライン化前の「82px＋本文」の縦並びが残っていると、
     写真が82px列に押し込まれて本文が3行に泣き別れる。2列のカード組みにする。 */
  .journey-line {
    margin-top: 36px;
    gap: 30px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-line li {
    padding: 22px 0 0;
  }

  .journey-line img {
    margin-bottom: 14px;
  }

  .journey-line time {
    margin-bottom: 10px;
    font-size: 22px;
  }

  .journey-line strong {
    font-size: 16px;
  }

  .info-content dl {
    grid-template-columns: 1fr;
  }

  .info-content dl > div,
  .info-content dl > div:nth-child(even) {
    grid-template-columns: 70px 1fr;
    padding: 15px 0;
    border-left: 0;
  }

  .social-copy {
    gap: 22px;
    padding: 40px 0;
  }

  .faq {
    gap: 36px;
  }

  .faq summary {
    min-height: 66px;
    padding-right: 38px;
    font-size: 16px;
  }

  .faq details p {
    padding-right: 30px;
  }

  footer {
    padding: 60px 20px 88px;
  }

  /* 黒帯の全幅CTAは画面を62px奪っていた。Sun地のピルに変更する。 */
  .mobile-cta {
    display: inline-flex;
    position: fixed;
    z-index: 60;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    min-height: 48px;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    color: var(--white);
    background: var(--sun);
    box-shadow: 0 6px 20px rgba(33, 28, 27, 0.3);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
  }

  /* JS が動く環境ではヒーローを通過してから出す。
     JS 無効時はこの規則自体が効かないため常時表示になる。 */
  .js .mobile-cta {
    visibility: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  }

  .js .mobile-cta.is-shown {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------------ *
   アイコン

   マグに描かれた一本線イラストと同じ筆致で描いた線画PNGを、mask で抜いて
   currentColor に追従させる。暗いセクションでは自動的に白抜きになるので、
   セクションごとに色を指定し直す必要がない。
   url() は「このCSSファイルからの相対」で解決されるため、配下ページから
   読み込まれても同じ定義がそのまま使える。
   PNGの読み込みに失敗した場合はマスクが空になり、アイコンは消えるだけで
   レイアウトは崩れない（幅は em 固定）。
 * ------------------------------------------------------------------ */
.ico {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  margin-right: 0.5em;
  vertical-align: -0.18em;
  background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}

/* gap を持つ入れ物の中では、余白が二重になるので margin を外す。 */
.button .ico,
.back-link .ico,
.page-tag .ico,
.entry-link .ico {
  margin-right: 0;
}

/* アイコンを付けた見出しラベルでは、先頭の点と役割が重なるので点を消す。 */
.eyebrow:has(.ico)::before {
  display: none;
}

.ico--film { --ico: url("./assets/icons/film.png"); }
.ico--heart { --ico: url("./assets/icons/heart.png"); }
.ico--mug { --ico: url("./assets/icons/mug.png"); }
.ico--lantern { --ico: url("./assets/icons/lantern.png"); }
.ico--sun-wave { --ico: url("./assets/icons/sun-wave.png"); }
.ico--onsen { --ico: url("./assets/icons/onsen.png"); }
.ico--tent { --ico: url("./assets/icons/tent.png"); }
.ico--van { --ico: url("./assets/icons/van.png"); }
.ico--pin { --ico: url("./assets/icons/pin.png"); }
.ico--calendar { --ico: url("./assets/icons/calendar.png"); }
.ico--camera { --ico: url("./assets/icons/camera.png"); }
.ico--rules { --ico: url("./assets/icons/rules.png"); }
.ico--ticket { --ico: url("./assets/icons/ticket.png"); }
.ico--external { --ico: url("./assets/icons/external.png"); }
.ico--arrow-right { --ico: url("./assets/icons/arrow-right.png"); }
.ico--arrow-left { --ico: url("./assets/icons/arrow-left.png"); }

/* 見出しラベルの中では、英字ラベルより少し大きめにして絵として読ませる。 */
.eyebrow .ico,
.entry-kicker .ico,
.stay-ways__kicker .ico,
.other-stays__kicker .ico {
  width: 1.4em;
  height: 1.4em;
  vertical-align: -0.32em;
}

/* ------------------------------------------------------------------ *
   宿泊カードの写真バッジ

   3枚の写真はどれも「夕景の海辺」で見分けがつかないため、
   写真の左上に泊まり方のアイコンを重ねて、一目で区別できるようにする。
 * ------------------------------------------------------------------ */
.stay-way {
  position: relative;
}

.stay-way__badge {
  position: absolute;
  z-index: 1;
  top: 36px;
  left: 12px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 6px rgba(33, 28, 27, 0.28);
}

.stay-way__badge .ico {
  width: 19px;
  height: 19px;
  margin-right: 0;
  vertical-align: 0;
}

.stay-way + .stay-way .stay-way__badge {
  left: 40px;
}

/* ------------------------------------------------------------------ *
   映画祭グッズ（オリジナルマグ）
 * ------------------------------------------------------------------ */
.goods {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.goods-lede {
  max-width: 46em;
  margin: 22px 0 0;
  color: var(--ink-soft);
  line-height: 1.9;
}

.goods-photos {
  display: grid;
  margin-top: 44px;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.goods-photos figure {
  margin: 0;
}

/* 2枚とも同じ判型（1200×1032）で撮っているため、比率は指定せず原寸のまま出す。
   4:3 などに整えると、マグに入ったデザインの上下が切れる。 */
.goods-photos img {
  display: block;
  width: 100%;
  height: auto;
}

.goods-photos figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.goods-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 34px;
  gap: 18px 26px;
}

.goods-price {
  margin: 0;
  font-size: 14px;
}

.goods-price strong {
  font-weight: 700;
}

.goods-price span {
  margin-left: 12px;
  font-family: var(--display);
  font-size: 22px;
}

.goods-cta .note {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

/* 参加導線カードのサムネイル */
.entry-card__thumb {
  width: 76px;
  height: 76px;
  margin: 22px 0 0;
  border-radius: 50%;
  object-fit: cover;
}

.entry-card--presale strong {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .goods-photos {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .stay-way + .stay-way .stay-way__badge {
    left: 12px;
  }

  .stay-way__badge {
    top: 34px;
  }
}

/* ------------------------------------------------------------------ *
   2025アーカイブの折りたたみ

   写真5枚の帯は初期状態では畳み、小さなサムネ列だけを見せる。
   FAQ と同じ details / summary で組み、＋／− のマーカーも揃える。
 * ------------------------------------------------------------------ */
.daylight-fold {
  margin-top: 40px;
}

.daylight-summary {
  cursor: pointer;
  list-style: none;
}

.daylight-summary::-webkit-details-marker {
  display: none;
}

.daylight-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.daylight-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.daylight-thumb img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.daylight-summary:hover .daylight-thumb img,
.daylight-summary:focus-visible .daylight-thumb img {
  opacity: 0.88;
}

/* 時刻ラベルは帯の figcaption 用の既存スタイルを、サムネ上では小さな札にして重ねる。 */
.daylight-thumb .daylight-time {
  position: absolute;
  bottom: 6px;
  left: 8px;
  padding: 2px 7px;
  background: rgba(248, 245, 237, 0.92);
  font-size: 11px;
}

.daylight-toggle {
  display: flex;
  position: relative;
  min-height: 52px;
  align-items: center;
  margin-top: 14px;
  padding: 10px 40px 10px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
}

.daylight-toggle::after {
  position: absolute;
  top: 50%;
  right: 4px;
  font-family: var(--utility);
  font-size: 22px;
  font-weight: 400;
  content: "+";
  transform: translateY(-50%);
}

.daylight-fold[open] .daylight-toggle::after {
  content: "−";
}

/* 展開したらサムネ列は消し、大判の帯だけを見せる。 */
.daylight-fold[open] .daylight-strip {
  display: none;
}

.daylight-fold .daylight-band {
  margin-top: 30px;
}

/* ------------------------------------------------------------------ *
   セクションナビ（980px以下）と現在地

   ヘッダーのナビが入り切らない幅では、ヘッダー直下に横スクロールの
   チップを固定表示する。現在地のチップには script.js が .is-active を付ける。
 * ------------------------------------------------------------------ */
.section-nav {
  display: none;
}

/* PC ではヘッダー内のナビに、hover と同じ下線で現在地を示す。 */
.site-header nav a.is-active {
  border-bottom-color: var(--sun);
}

/* アンカー移動の着地位置。sticky なヘッダー（とチップバー）の下に見出しが潜らないようにする。 */
main > section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

@media (max-width: 980px) {
  .section-nav {
    display: flex;
    position: sticky;
    z-index: 49;
    top: var(--header-h);
    gap: 6px;
    padding: 6px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(248, 245, 237, 0.96);
    overflow-x: auto;
    scrollbar-width: none;
    backdrop-filter: blur(10px);
    -webkit-overflow-scrolling: touch;
  }

  .section-nav::-webkit-scrollbar {
    display: none;
  }

  .section-nav a {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-family: var(--utility);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    white-space: nowrap;
  }

  .section-nav a .ico {
    margin-right: 0;
  }

  .section-nav a.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
  }

  main > section[id] {
    scroll-margin-top: calc(var(--header-h) + var(--section-nav-h) + 12px);
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 68px;
  }

  .daylight-fold {
    margin-top: 30px;
  }

  /* サムネ列は横スクロール。左右の余白いっぱいまで使う。 */
  .daylight-strip {
    display: flex;
    margin: 0 -20px;
    padding: 0 20px;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .daylight-strip::-webkit-scrollbar {
    display: none;
  }

  .daylight-thumb {
    flex: 0 0 34vw;
    scroll-snap-align: start;
  }

  .daylight-toggle {
    font-size: 15px;
  }
}
