@charset "UTF-8";

/* =====================================================
   デザイントークン（Figma 変数）
   ===================================================== */
:root {
  --color-kinari: #ebede9;      /* 地/生成り */
  --color-white: #fff;          /* 地/白・文字/白 */
  --color-ai-pale: #dce4ea;     /* 地/藍淡 */
  --color-sumi-bg: #1b1d1c;     /* 地/墨 */
  --color-reports: #cfc7c3;     /* 全国の取り組み 背景（PC） */
  --color-rule: #d3d6d0;        /* 罫/淡 */
  --color-sumi: #1b1d1c;        /* 文字/墨 */
  --color-sumi-mid: #4a514e;    /* 文字/墨中 */
  --color-sumi-light: #7c837f;  /* 文字/墨淡 */
  --color-ai: #274a63;          /* 差し色/藍 */
  --color-kindei: #96793c;      /* 差し色/金泥 */

  --font-mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-num: "Shippori Mincho", var(--font-mincho);

  --header-h: 52px;
  --container: 1040px;
  --gutter: 40px;
}

@media (max-width: 767px) {
  :root {
    --header-h: 44px;
    --gutter: 24px;
  }
}

/* =====================================================
   リセット・ベース
   ===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1, h2, h3, p, ul, ol, figure {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--color-kinari);
  color: var(--color-sumi);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

small {
  font-size: inherit;
}

h1, h2, h3 {
  font-weight: inherit;
  font-size: inherit;
}

.l-container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.u-sp {
  display: none;
}

@media (max-width: 767px) {
  .u-pc {
    display: none;
  }

  .u-sp {
    display: inline;
  }
}

/* =====================================================
   文字スタイル（Figma テキストスタイル PC / SP）
   ===================================================== */
.t-label {          /* ラベル */
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: .16em;
}

.t-section-title {  /* 見出し 節 */
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 34px;
  line-height: 52px;
  letter-spacing: .06em;
}

.t-heading-works {  /* 見出し 事業 */
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 27px;
  line-height: 42px;
  letter-spacing: .04em;
}

.t-heading-s {      /* 見出し 小 */
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 21px;
  line-height: 34px;
  letter-spacing: .04em;
}

.t-ceremony {       /* 儀礼 日付 */
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 17px;
  line-height: 30px;
  letter-spacing: .14em;
}

.t-poem {           /* 御教歌 */
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 21px;
  line-height: 46px;
  letter-spacing: .1em;
}

.t-body {           /* 本文 */
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 30px;
  letter-spacing: .02em;
}

.t-note {           /* 注記 */
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 22px;
  letter-spacing: .04em;
}

@media (max-width: 767px) {
  .t-label {
    line-height: 16px;
    letter-spacing: .12em;
  }

  .t-section-title {
    font-size: 24px;
    line-height: 38px;
  }

  .t-heading-works {
    font-size: 21px;
    line-height: 34px;
  }

  .t-heading-s {
    font-size: 17px;
    line-height: 28px;
  }

  .t-ceremony {
    font-size: 15px;
    line-height: 26px;
  }

  .t-poem {
    font-size: 16px;
    line-height: 36px;
  }

  .t-body {
    font-size: 14px;
    line-height: 26px;
  }

  .t-note {
    font-size: 12px;
    line-height: 20px;
  }
}

/* =====================================================
   共通 / 上部の帯（02 以降で表示）
   ===================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-rule);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}

.site-header.is-visible {
  transform: none;
  visibility: visible;
}

.site-header__nav {
  height: 100%;
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.site-header__list {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 100%;
}

.site-header__link {
  display: block;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  color: var(--color-sumi-mid);
  font-family: var(--font-mincho);
  font-size: 17px;
  line-height: 30px;
  letter-spacing: .14em;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}

.site-header__link:hover {
  color: var(--color-sumi);
}

.site-header__link.is-current {
  color: var(--color-sumi);
  border-bottom-color: var(--color-ai);
}

.site-header__sp,
.site-header__menu {
  display: none;
}

@media (max-width: 767px) {
  .site-header__nav {
    display: none;
  }

  .site-header__sp {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 16px 0 20px;
  }

  .site-header__current {
    flex: 1 0 0;
    min-width: 0;
    color: var(--color-sumi);
    font-family: var(--font-mincho);
    font-size: 15px;
    line-height: 26px;
    letter-spacing: .14em;
  }

  .site-header__toggle {
    flex-shrink: 0;
    padding: 6px 12px;
    border: 1px solid var(--color-rule);
    color: var(--color-ai);
    font-size: 12px;
    line-height: 20px;
    letter-spacing: .04em;
    white-space: nowrap;
  }

  .site-header__menu:not([hidden]) {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0 20px 8px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-rule);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  }

  .site-header__menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-rule);
    color: var(--color-sumi);
    font-family: var(--font-mincho);
    font-size: 15px;
    line-height: 26px;
    letter-spacing: .14em;
  }

  .site-header__menu li:last-child a {
    border-bottom: 0;
  }

  .site-header__menu a.is-current {
    color: var(--color-ai);
  }
}

/* =====================================================
   01 最初の画面
   ===================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  color: var(--color-white);
  text-align: center;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}

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

.hero__dots {
  position: absolute;
  right: 40px;
  bottom: 32px;
  z-index: 1;
  display: flex;
  gap: 4px;
}

.hero__dot {
  display: flex;
  align-items: center;
  width: 32px;
  height: 24px;
}

.hero__dot::before {
  content: "";
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, .45);
  transition: background-color .3s;
}

.hero__dot:hover::before,
.hero__dot[aria-current="true"]::before {
  background: var(--color-white);
}

.hero__dot:focus-visible {
  outline: 1px solid var(--color-white);
  outline-offset: 2px;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(15, 20, 18, .38) 0%,
    rgba(15, 20, 18, .1) 44%,
    rgba(15, 20, 18, .62) 100%);
}

.hero__tanzaku {
  position: relative;
  width: 300px;
  padding: 20px 18px;
}

.hero__logo {
  width: 264px;
  height: 374px;
  margin-inline: auto;
  object-fit: contain;
}

.hero__arrow {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  font-weight: 500;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: .16em;
}

@media (max-width: 767px) {
  .hero {
    gap: 26px;
    min-height: 560px;
    padding-inline: 32px;
  }

  .hero__veil {
    background: linear-gradient(to bottom,
      rgba(15, 20, 18, .4) 0%,
      rgba(15, 20, 18, .1) 42%,
      rgba(15, 20, 18, .66) 100%);
  }

  .hero__tanzaku {
    width: 232px;
    padding: 16px 14px;
  }

  .hero__logo {
    width: 204px;
    height: 289px;
  }

  .hero__dots {
    right: 20px;
    bottom: 24px;
  }

  .hero__dot {
    width: 24px;
  }

  .hero__arrow {
    bottom: 34px;
    line-height: 16px;
    letter-spacing: .12em;
  }
}

/* =====================================================
   02 御遠諱まで
   ===================================================== */
.countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  padding: 61px var(--gutter);
  background: var(--color-white);
  border-block: 1px solid var(--color-rule);
  white-space: nowrap;
}

.countdown__label {
  color: var(--color-sumi-mid);
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 30px;
  line-height: 44px;
  letter-spacing: .1em;
}

.countdown__days {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.countdown__num {
  color: var(--color-ai);
  font-family: var(--font-num);
  font-weight: 500;
  font-size: 96px;
  line-height: 104px;
}

.countdown__unit {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 30px;
  line-height: 44px;
  letter-spacing: .1em;
}

@media (max-width: 767px) {
  .countdown {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 128px;
    padding-block: 34px;
  }

  .countdown__label {
    font-family: var(--font-sans);
    font-size: 11px;
    line-height: 16px;
    letter-spacing: .12em;
  }

  .countdown__days {
    gap: 8px;
  }

  .countdown__num {
    font-size: 34px;
    line-height: 40px;
    letter-spacing: .02em;
  }

  .countdown__unit {
    font-weight: 400;
    font-size: 15px;
    line-height: 26px;
    letter-spacing: .14em;
  }
}

/* =====================================================
   節 共通
   ===================================================== */
.section {
  padding: 120px 0 130px;
}

.section--kinari {
  background: var(--color-kinari);
}

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

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.section-head::after {   /* 罫 */
  content: "";
  width: 52px;
  height: 1px;
  background: var(--color-kindei);
}

.section-head__en {
  color: var(--color-kindei);
}

.section-lead {
  padding: 32px 0 56px;
  color: var(--color-sumi-mid);
  text-align: center;
}

@media (max-width: 767px) {
  .section {
    padding: 64px 0 72px;
  }

  .section-head {
    gap: 12px;
  }

  .section-head::after {
    width: 40px;
  }

  .section-lead {
    padding: 24px 0 32px;
  }
}

/* 一・二・三 の小見出しブロック */
.point {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.point__head {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.point__num {
  color: var(--color-kindei);
}

.point .t-body {
  color: var(--color-sumi-mid);
}

@media (max-width: 767px) {
  .point {
    gap: 8px;
  }

  .point__head {
    gap: 10px;
  }
}

/* =====================================================
   03 御遠諱とは
   ===================================================== */
.about {
  display: flex;
  align-items: center;
  gap: 56px;
}

.about__goei {
  flex: 0 0 auto;
  width: 31.73%;          /* 330 / 1040 */
  aspect-ratio: 330 / 440;
  object-fit: cover;
}

.about__points {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.gokyoka {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 130px 0 30px;
  text-align: center;
}

.gokyoka__label {
  color: var(--color-kindei);
}

.gokyoka__note {
  color: var(--color-sumi-light);
}

@media (max-width: 767px) {
  .about {
    flex-direction: column;
    gap: 40px;
  }

  .about__goei {
    width: 243px;
  }

  .about__points {
    width: 100%;
    gap: 28px;
  }

  .gokyoka {
    gap: 20px;
    padding: 72px 0 16px;
  }
}

/* =====================================================
   04 奉修事業
   ===================================================== */
.works {
  display: flex;
  flex-direction: column;
  gap: 104px;
  padding-top: 64px;
}

.work {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.work--reverse {
  flex-direction: row-reverse;
}

.work__photo {
  flex: 0 0 auto;
  width: 43.85%;          /* 456 / 1040 */
  aspect-ratio: 456 / 256;
  object-fit: cover;
}

.work__body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work__rule {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-kindei);
}

.work__sub {
  color: var(--color-ai);
}

.work__text {
  color: var(--color-sumi-mid);
}

.work__extra {
  padding-top: 17px;
  border-top: 1px solid var(--color-rule);
}

/* 金箔の進み */
.goldleaf {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.goldleaf__count {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.goldleaf__num {
  color: var(--color-ai);
  font-family: var(--font-num);
  font-weight: 500;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: .14em;
  white-space: nowrap;
}

.goldleaf__total {
  color: var(--color-sumi-light);
  white-space: nowrap;
}

.goldleaf__rate {
  flex: 1 0 0;
  color: var(--color-kindei);
  text-align: right;
}

.goldleaf__bar {
  width: 400px;
  max-width: 100%;
  height: 6px;
  background: var(--color-ai-pale);
}

.goldleaf__fill {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--color-ai);
}

.goldleaf__date {
  color: var(--color-sumi-light);
}

/* 外部リンク */
.ext-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.ext-link {
  flex: 0 1 262px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  border: 1px solid var(--color-rule);
  transition: border-color .2s, background-color .2s;
}

.ext-link:hover {
  border-color: var(--color-ai);
}

.ext-link__label {
  flex: 1 0 0;
  min-width: 0;
}

.ext-link__icon {
  flex-shrink: 0;
  color: var(--color-ai);
}

@media (max-width: 767px) {
  .works {
    gap: 76px;
    padding-top: 40px;
  }

  /* SP は 罫 → 事業名 → 副題 → 写真 → 本文 の順に縦積み */
  .work,
  .work--reverse {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .work__body {
    display: contents;
  }

  .work__rule  { order: 1; }
  .work__title { order: 2; }
  .work__sub   { order: 3; letter-spacing: .04em; }
  .work__photo { order: 4; width: 100%; aspect-ratio: auto; height: 164px; }
  .work__text  { order: 5; }
  .work__extra { order: 6; padding-top: 15px; }

  .goldleaf__count {
    gap: 8px;
  }

  .goldleaf__num {
    font-size: 20px;
    line-height: 26px;
  }

  .goldleaf__bar {
    width: 100%;
  }

  .ext-links {
    flex-direction: column;
    gap: 8px;
  }

  .ext-link {
    flex: none;
    gap: 8px;
    padding-inline: 15px;
  }
}

/* =====================================================
   05 動画で見る
   ===================================================== */
.section--movies {   /* 見出しを置かないので上下を詰める */
  padding: 80px 0;
}

.movies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 動画の枠：中身を YouTube の iframe に差し替えると枠いっぱいに広がる */
.movie-card__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: var(--color-sumi-bg);
}

.movie-card__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.movie-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
}

.movie-card__meta {
  color: var(--color-sumi-light);
}

@media (max-width: 767px) {
  .section--movies {
    padding: 48px 0;
  }

  .movies {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .movie-card__body {
    gap: 6px;
    padding-top: 12px;
  }
}

/* =====================================================
   06 全国の取り組み
   ===================================================== */
.section--reports {
  background: var(--color-reports);
}

.reports {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.report-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  transition: box-shadow .2s;
}

.report-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.report-card__photo {
  width: 100%;
  height: 186px;
  object-fit: cover;
}

.report-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
}

.report-card__meta {
  color: var(--color-sumi-light);
}

.report-card__text {
  color: var(--color-sumi-mid);
}

.report-card__more {
  color: var(--color-ai);
}

.more {
  display: flex;
  justify-content: center;
  padding-top: 48px;
}

.more__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 63px;
  border: 1px solid var(--color-ai);
  color: var(--color-ai);
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}

.more__btn:hover {
  background: var(--color-ai);
  color: var(--color-white);
}

@media (max-width: 767px) {
  .section--reports {
    background: var(--color-kinari);
  }

  .reports {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .report-card__photo {
    height: 176px;
  }

  .report-card__body {
    gap: 8px;
    padding: 18px;
  }

  .more {
    padding-top: 32px;
  }

  .more__btn {
    width: 100%;
    padding: 14px 0;
  }
}

/* =====================================================
   07 公式ロゴについて
   ===================================================== */
.section-lead--symbol {
  padding-bottom: 0;
}

.symbol-logo {
  display: flex;
  justify-content: center;
  padding: 72px 0 80px;
}

.symbol-logo img {
  width: 300px;
  height: 424px;
  object-fit: contain;
}

.symbol-concept {
  display: flex;
  align-items: center;
  gap: 48px;
}

.symbol-concept > * {
  flex: 1 0 0;
  min-width: 0;
}

.symbol-concept .point {
  gap: 12px;
}

.symbol-diagram__img {
  width: 100%;
  max-width: 400px;   /* 元画像の幅より拡大しない */
  margin-inline: auto;
}

.symbol-history {
  gap: 12px;
  padding-top: 56px;
}

.symbol-video {
  display: flex;
  justify-content: center;
  padding-top: 56px;
}

.symbol-video__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 800px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-sumi-bg);
  color: var(--color-white);
}

@media (max-width: 767px) {
  .section-lead--symbol {
    padding-bottom: 16px;
  }

  .symbol-logo {
    padding: 40px 0;
  }

  .symbol-logo img {
    width: 212px;
    height: 300px;
  }

  .symbol-concept {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .symbol-concept .point {
    gap: 10px;
  }

  .symbol-diagram {
    padding: 24px 0 32px;
  }

  .symbol-history {
    gap: 10px;
    padding-top: 0;
  }

  .symbol-video {
    padding-top: 32px;
  }

  .symbol-video__frame {
    width: 100%;
    aspect-ratio: auto;
    gap: 12px;
    padding: 64px 0;
  }
}

/* =====================================================
   08 御遠諱への歩み
   ===================================================== */
.section--roadmap {
  background: url("../images/roadmap-bg.png") center / cover no-repeat;
}

.section--roadmap .section-head {
  margin-bottom: 56px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.tl-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

/* 時の線：各節点から次の節点まで */
.tl-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 14px;
  width: 1px;
  height: calc(100% + 44px);
  background: var(--color-rule);
}

.tl-item__node {
  position: relative;
  z-index: 1;
  flex: 0 0 28px;
  display: flex;
  justify-content: center;
}

.tl-item__body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.tl-item__year {
  flex: 0 0 170px;
  padding-top: 2px;
  color: var(--color-sumi-light);
  font-weight: 500;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: .16em;
  white-space: nowrap;
}

.tl-item__content {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tl-item__text {
  color: var(--color-sumi-mid);
  font-size: 13px;
  line-height: 22px;
  letter-spacing: .04em;
}

/* いまの年 */
.tl-item--current .tl-item__node {
  padding-top: 28px;
}

.tl-item--current .tl-item__body {
  padding: 21px 23px 23px;
  background: var(--color-white);
  border: 1px solid var(--color-ai);
}

.tl-item--current .tl-item__year {
  color: var(--color-ai);
}

/* 奉修 */
.tl-item--final .tl-item__body {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 35px 15px;
  background: var(--color-white);
  border: 1px solid var(--color-kindei);
  text-align: center;
}

.tl-item--final .tl-item__year {
  flex: none;
  padding-top: 0;
  color: var(--color-kindei);
}

.tl-item--final .tl-item__content {
  flex: none;
  align-items: center;
  gap: 12px;
}

@media (max-width: 767px) {
  .section--roadmap {
    background: var(--color-kinari);
  }

  .section--roadmap .section-head {
    margin-bottom: 32px;
  }

  .timeline {
    gap: 30px;
  }

  .tl-item {
    gap: 14px;
  }

  .tl-item:not(:last-child)::before {
    top: 10px;
    left: 11px;
    height: calc(100% + 30px);
  }

  .tl-item__node {
    flex-basis: 22px;
  }

  .tl-item__body {
    flex-direction: column;
    gap: 6px;
    padding-bottom: 2px;
  }

  .tl-item__year {
    flex: none;
    padding-top: 0;
    line-height: 16px;
    letter-spacing: .12em;
  }

  .tl-item__content {
    flex: none;
    width: 100%;
    gap: 6px;
  }

  .tl-item__text {
    font-size: 12px;
    line-height: 20px;
  }

  .tl-item--current .tl-item__node {
    padding-top: 19px;
  }

  .tl-item--current .tl-item__body {
    padding: 13px 13px 15px;
  }

  .tl-item--final .tl-item__body {
    gap: 10px;
    padding: 23px 15px;
  }

  .tl-item--final .tl-item__content {
    gap: 10px;
  }
}

/* =====================================================
   09 記念グッズ
   ===================================================== */
.goods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 31px;
}

.goods-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-rule);
}

.goods-card__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--color-kinari);
  color: var(--color-sumi-light);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: .08em;
}

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

.goods-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 28px 32px;
}

.goods-card__tag {
  padding: 2px 10px;
  border: 1px solid var(--color-kindei);
  color: var(--color-kindei);
  font-weight: 500;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: .08em;
}

.goods-card__title {
  letter-spacing: .06em;
}

.goods-card__text {
  color: var(--color-sumi-mid);
  font-size: 14px;
  line-height: 26px;
  letter-spacing: .02em;
}

@media (max-width: 767px) {
  /* SP は 写真左・本文右 の横並びリスト */
  .goods {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .goods-card {
    flex-direction: row;
  }

  .goods-card__photo {
    flex: 0 0 104px;
    aspect-ratio: auto;
    min-height: 104px;
    font-size: 10px;
    line-height: 14px;
  }

  .goods-card__body {
    flex: 1 1 0;
    min-width: 0;
    gap: 6px;
    padding: 14px 16px 16px;
  }

  .goods-card__tag {
    font-size: 10px;
    line-height: 16px;
  }

  .goods-card__title {
    line-height: 26px;
    letter-spacing: .04em;
  }

  .goods-card__text {
    font-size: 13px;
    line-height: 22px;
  }
}

/* =====================================================
   10 フッター
   ===================================================== */
.site-footer {
  padding: 64px 0 40px;
  background: var(--color-sumi-bg);
  color: var(--color-white);
}

.site-footer__main {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  padding: 56px 0 48px;
}

.site-footer__org {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.site-footer__org .t-note {
  white-space: nowrap;
}

.site-footer__toc {
  flex: 0 0 300px;
}

.site-footer__toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 11px;
  border-bottom: 1px solid var(--color-white);
  transition: opacity .2s;
}

.site-footer__toc a:hover {
  opacity: .7;
}

.site-footer__toc .t-ceremony {
  flex: 1 0 0;
  min-width: 0;
}

.site-footer__colophon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 23px;
  border-top: 1px solid var(--color-white);
}

.site-footer__colophon p:first-child {
  flex: 1 0 0;
  min-width: 0;
}

@media (max-width: 767px) {
  .site-footer {
    padding: 56px 0 36px;
  }

  .site-footer__main {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .site-footer__toc {
    order: 1;
    flex: none;
    padding: 8px 0 24px;
  }

  .site-footer__toc a {
    padding: 14px 0 13px;
  }

  .site-footer__org {
    order: 2;
    flex: none;
    align-items: center;
    gap: 8px;
    padding: 16px 0 24px;
    text-align: center;
  }

  .site-footer__org .t-note {
    white-space: normal;
  }

  .site-footer__colophon {
    flex-direction: column;
    gap: 6px;
    padding-top: 19px;
    text-align: center;
  }

  .site-footer__colophon p:first-child {
    flex: none;
  }
}

/* =====================================================
   共通 / 先頭へ戻る（右下固定・02 以降で表示）
   ===================================================== */
.to-top {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-white);
  border: 1px solid var(--color-ai);
  color: var(--color-ai);
  font-size: 20px;
  line-height: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, background-color .2s, color .2s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  background: var(--color-ai);
  color: var(--color-white);
}

@media (max-width: 767px) {
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    font-size: 18px;
    line-height: 26px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
