/*! © 2026 烏蜃工房 | 公式サイト | 無断転載・改変再配布禁止 */
/* 烏蜃工房 公式サイト  見た目
   色・書体の値は下の :root にまとめてある。作品の表紙色は lib/schema.js。 */

:root {
  --yoru: #161d3b;      /* 夜藍 */
  --yoi: #3f3670;       /* 宵紫 */
  --kin: #d2b068;       /* 楼金（暗い背景の上だけで使う） */
  --kin-soft: rgba(210, 176, 104, 0.55);
  --akatsuki: #f2eef5;  /* 暁霞 */
  --kami: #fbf9fc;      /* カードの紙 */
  --sumi: #24212e;      /* 墨 */
  --usuzumi: #5c5869;   /* 薄墨 */
  --sen: #ddd6e3;       /* 罫線 */
  --tana: #8a6a45;      /* 棚板 */
  --tana-dark: #5e4630;
  --night-text: #e9e4f2;
  --night-sub: #b4aecb;

  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "BIZ UDPGothic", Meiryo, sans-serif;

  --wrap: 68rem;
  --text-wrap: 40em;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--akatsuki);
  color: var(--sumi);
  font-family: var(--gothic);
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--mincho);
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--kin);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 20;
  background: var(--kami);
  color: var(--sumi);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}
.skip:focus { top: 1rem; }

.br-sp { display: inline; }
@media (min-width: 768px) { .br-sp { display: none; } }

/* ---------- ヘッダー（夜の上に乗る） ---------- */

.site-head {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  color: var(--night-text);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  min-height: 44px;
}
.brand-mark {
  width: 30px; height: 30px;
  fill: none;
  stroke: var(--kin);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.brand-name {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.site-nav { display: flex; gap: 0.25rem 1.1rem; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.6rem 0.1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--night-sub);
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--night-text); border-bottom-color: var(--kin-soft); }
.site-nav a[aria-current="page"] { color: var(--night-text); border-bottom-color: var(--kin); }

@media (max-width: 520px) {
  .site-head { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 0.6rem; }
  .site-nav { justify-content: flex-start; gap: 0 1rem; }
  .site-nav a { font-size: 0.85rem; min-height: 40px; padding: 0.4rem 0; }
}

/* ---------- ファーストビュー ---------- */

.hero {
  position: relative;
  min-height: max(100svh, 620px);
  background:
    radial-gradient(ellipse 60% 45% at 50% 72%, rgba(210, 176, 104, 0.16), transparent 70%),
    linear-gradient(180deg, #0f1430 0%, var(--yoru) 42%, var(--yoi) 100%);
  color: var(--night-text);
  overflow: hidden;
  isolation: isolate;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.stars circle { fill: #f4efe0; opacity: 0.75; }
.ripples path { stroke: var(--kin); stroke-width: 1.2; stroke-linecap: round; opacity: 0.28; fill: none; }
.crow { fill: #0b0f24; opacity: 0.85; }

#rokaku .r-line path,
#rokaku .r-line circle { fill: none; stroke: var(--kin); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
#rokaku .r-line .r-roof { fill: rgba(22, 29, 59, 0.72); }
#rokaku .r-fill { fill: rgba(22, 29, 59, 0.6); }
#rokaku .r-glow rect { fill: #e8c77e; opacity: 0.32; }

.mirage { opacity: 0.95; }
.reflection { opacity: 0.32; }

/* 唯一の動き：読み込み時に楼閣が「立ちのぼる」 */
@media (prefers-reduced-motion: no-preference) {
  .mirage {
    animation: tachinoboru 2.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
  }
  .reflection {
    animation: tachinoboru-ref 3.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s both;
  }
  .hero-copy span {
    animation: kotoba 1.6s ease-out both;
  }
  .hero-copy span:nth-child(1) { animation-delay: 1.4s; }
  .hero-copy span:nth-child(2) { animation-delay: 1.9s; }
  .hero-foot { animation: kotoba 1.4s ease-out 2.4s both; }
}
@keyframes tachinoboru {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to   { opacity: 0.95; transform: none; filter: blur(0); }
}
@keyframes tachinoboru-ref {
  from { opacity: 0; }
  to   { opacity: 0.32; }
}
@keyframes kotoba {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-inner {
  position: relative;
  min-height: inherit;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 6.5rem clamp(1.25rem, 5vw, 3rem) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-copy {
  align-self: flex-end;
  writing-mode: vertical-rl;
  font-weight: 500;
  font-size: clamp(1.45rem, 4.2vw, 2.5rem);
  line-height: 1.75;
  letter-spacing: 0.16em;
  text-wrap: initial;
  margin-right: clamp(0rem, 3vw, 3rem);
  text-shadow: 0 0 18px rgba(11, 15, 36, 0.9);
}
.hero-copy span { display: block; }
.hero-copy span + span { margin-top: 3.2em; }

.hero-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 24rem;
}
.hero-lead {
  font-size: 0.95rem;
  color: var(--night-sub);
  text-shadow: 0 0 12px rgba(11, 15, 36, 0.95);
}
.hero-link {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--night-text);
  padding: 0.55rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--kin);
}
.hero-link:hover { color: #fff; }

/* スマホ：楼閣を左へ寄せて小さくし、縦書きの口上と重ならないようにする */
@media (max-width: 767px) {
  .hero {
    background:
      radial-gradient(ellipse 70% 30% at 30% 62%, rgba(210, 176, 104, 0.16), transparent 70%),
      linear-gradient(180deg, #0f1430 0%, var(--yoru) 38%, var(--yoi) calc(100% - 11.5rem), #11162e calc(100% - 11.5rem));
  }
  .scene {
    top: auto;
    bottom: 11.5rem;
    height: calc(100% - 17rem);
    width: 150%;
    max-width: none;
    transform: translateX(-25%);
  }
  .ripples { display: none; }
  .reflection { opacity: 0.22; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .reflection { animation-name: tachinoboru-ref-sp; }
}
@keyframes tachinoboru-ref-sp {
  from { opacity: 0; }
  to   { opacity: 0.22; }
}
@media (max-width: 520px) {
  .hero-inner { padding-top: 6rem; }
  .hero-copy { font-size: 1.4rem; margin-right: 0; }
}

/* 夜から朝へ（ファーストビューと棚のあいだ） */
.dawn {
  height: clamp(80px, 14vw, 160px);
  background: linear-gradient(180deg, #11162e 0%, var(--yoi) 30%, #8d7aa6 58%, #d8cde0 82%, var(--akatsuki) 100%);
}
.dawn-short {
  height: 64px;
  background: linear-gradient(180deg, var(--yoi) 0%, #8d7aa6 38%, #d8cde0 72%, var(--akatsuki) 100%);
}

/* ---------- 作品の棚 ---------- */

.shelves {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 5vw, 3rem) 4rem;
}

.dept { padding-top: 3.5rem; }
.dept-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--sen);
  margin-bottom: 1.75rem;
}
.dept-head h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  letter-spacing: 0.14em;
}
.dept-head p { color: var(--usuzumi); font-size: 0.92rem; }

.dept-empty {
  color: var(--usuzumi);
  font-size: 0.95rem;
  padding: 1.25rem 1.4rem;
  border: 1px dashed #c9bfd2;
  border-radius: 6px;
  max-width: 34rem;
}
.dept-empty a { color: var(--sumi); }

.shelf + .shelf { margin-top: 2.75rem; }
.shelf-name {
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--usuzumi);
  font-weight: 500;
}

.shelf-row {
  list-style: none;
  margin: 0;
  padding: 0 0.25rem;
  display: grid;
  gap: 1.25rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  align-items: end;
}

/* 棚板：本が「置かれている」ことを示す */
.shelf-board {
  height: 12px;
  margin-top: -2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--tana) 0%, var(--tana) 55%, var(--tana-dark) 100%);
  box-shadow: 0 6px 10px -6px rgba(60, 40, 25, 0.55);
}

/* 出版部：和綴じの本 */
.book-link {
  display: grid;
  grid-template-columns: 5.6rem 1fr;
  gap: 1rem;
  text-decoration: none;
  padding: 0.9rem 0.9rem 0.9rem 0;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.book-link:hover { background: rgba(255, 255, 255, 0.7); }

.cover {
  position: relative;
  height: 7.6rem;
  background: var(--c, #2e4a8c);
  border-radius: 1px 4px 4px 1px;
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.16), 2px 2px 0 rgba(36, 33, 46, 0.18);
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* 綴じ糸の穴 */
.cover::before {
  content: "";
  position: absolute;
  left: 9px; top: 14%; bottom: 14%;
  width: 2px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75) 1.4px, transparent 1.6px) 0 0 / 2px 25%;
}
/* 題簽（表紙に貼る白い札） */
.cover::after {
  content: "";
  position: absolute;
  right: 10px; top: 10px;
  width: 9px; height: 46%;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 1px;
}
.glyph {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 2.3rem;
  color: #fff;
  line-height: 1;
  transform: translateX(-2px);
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.book-body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.work-title, .work-sub, .work-blurb { display: block; }
.work-title {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.45;
}
.work-sub { font-size: 0.85rem; color: var(--usuzumi); }
.work-blurb { font-size: 0.92rem; color: var(--usuzumi); line-height: 1.7; }
.work-cta {
  margin-top: 0.35rem;
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 700;
  border-bottom: 2px solid var(--c, #2e4a8c);
  line-height: 1.6;
}
.new-tag {
  display: inline-block;
  margin-left: 0.5rem;
  font-family: var(--gothic);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c, #2e4a8c);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 0.5rem;
  vertical-align: 0.15em;
  line-height: 1.6;
}

/* 遊戯部：札 */
.fuda-row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); }
.fuda-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--kami);
  border: 1px solid var(--sen);
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 10px;
  transition: transform 0.2s;
}
.fuda-link:hover { transform: translateY(-3px); }
.fuda-face {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  background: var(--c, #2e4a8c);
  display: grid;
  place-items: center;
  overflow: hidden;
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: -6px;
}
.fuda-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fuda-face .glyph { font-size: 2.6rem; transform: none; }
.fuda-body { padding: 0.7rem 0.4rem 0.4rem; display: flex; flex-direction: column; gap: 0.2rem; }

/* 意匠部：紐で結んだ小箱 */
.hako-row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); }
.hako-link { display: flex; flex-direction: column; text-decoration: none; margin-bottom: 10px; }
.hako-face {
  position: relative;
  aspect-ratio: 1;
  background: var(--c, #2e4a8c);
  border-radius: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 -8px 0 -2px rgba(255, 255, 255, 0.18) inset;
}
.hako-face::before,
.hako-face::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
}
.hako-face::before { left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); }
.hako-face::after { top: 50%; left: 0; right: 0; height: 3px; transform: translateY(-50%); }
.hako-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hako-face .glyph {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
  transform: none;
  background: var(--c, #2e4a8c);
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
}
.hako-body { padding: 0.75rem 0.2rem 0; display: flex; flex-direction: column; gap: 0.2rem; }

/* ---------- 縁を待つもの（もう一度、夜） ---------- */

.waiting {
  background:
    radial-gradient(ellipse 50% 70% at 85% 100%, rgba(210, 176, 104, 0.12), transparent 70%),
    var(--yoru);
  color: var(--night-text);
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 3rem);
}
.waiting-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  gap: 2rem 4rem;
}
@media (min-width: 900px) {
  .waiting-inner { grid-template-columns: 1fr 1.4fr; align-items: center; }
}
.waiting h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); letter-spacing: 0.14em; }
.waiting-lead { color: var(--night-sub); margin-top: 0.9rem; max-width: 26em; }

.lanterns { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.lantern-row {
  display: grid;
  grid-template-columns: 4.5em 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(233, 228, 242, 0.14);
}
.lantern-dept { font-family: var(--mincho); font-weight: 700; letter-spacing: 0.1em; }
.lamps { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.lamp {
  width: 11px; height: 11px;
  transform: rotate(45deg);
  background: #f0d79a;
  box-shadow: 0 0 6px 2px rgba(240, 215, 154, 0.55), 0 0 18px 4px rgba(210, 176, 104, 0.25);
}
.lamp-more { font-size: 0.8rem; color: var(--night-sub); line-height: 11px; }
.lamps-none { font-size: 0.85rem; color: var(--night-sub); }
.lantern-count {
  font-family: var(--mincho);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--kin);
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: right;
}

/* ---------- 締め（工房のこと・お便り） ---------- */

.closing {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5rem) clamp(1.25rem, 5vw, 3rem) clamp(4rem, 9vw, 6rem);
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) {
  .closing { grid-template-columns: 1.5fr 1fr; gap: 5rem; align-items: start; }
}
.closing h2 { font-size: 1.35rem; letter-spacing: 0.1em; margin-bottom: 1rem; }
.closing-about p {
  font-family: var(--mincho);
  font-size: 1.08rem;
  line-height: 2.05;
  margin-bottom: 1.25rem;
}
.closing-contact {
  padding: 1.6rem 1.6rem 1.75rem;
  background: var(--kami);
  border: 1px solid var(--sen);
  border-radius: 6px;
}
.closing-contact p { color: var(--usuzumi); font-size: 0.95rem; margin-bottom: 1.25rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--yoi);
  text-underline-offset: 0.35em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  background: var(--yoru);
  color: var(--night-text);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.06em;
  border: 1px solid var(--yoru);
  transition: background-color 0.2s;
}
.btn:hover { background: var(--yoi); }
.btn-night { background: transparent; border-color: var(--kin); color: var(--night-text); }
.btn-night:hover { background: rgba(210, 176, 104, 0.14); }
.form-box-wait { border-style: dashed; }
.form-box-wait p { margin: 0; }
.keep { display: inline-block; }

/* ---------- 下層ページ ---------- */

.sub-head {
  position: relative;
  background:
    radial-gradient(ellipse 40% 80% at 80% 110%, rgba(210, 176, 104, 0.18), transparent 70%),
    linear-gradient(180deg, #0f1430 0%, var(--yoru) 55%, var(--yoi) 100%);
  color: var(--night-text);
  padding: 9rem clamp(1.25rem, 5vw, 3rem) 2.5rem;
}
.sub-title {
  max-width: var(--wrap);
  margin: 0 auto;
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  letter-spacing: 0.14em;
}
.sub-head-tall { min-height: 70svh; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }
.sub-head-tall > * { width: 100%; max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.sub-head-tall .btn { width: auto; align-self: flex-start; margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }
.sub-lead { color: var(--night-sub); }
@media (max-width: 520px) { .sub-head { padding-top: 7.5rem; } }

.prose {
  max-width: calc(var(--text-wrap) + 2.5rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 1.25rem) clamp(3rem, 7vw, 4.5rem);
}
article.prose p {
  font-family: var(--mincho);
  font-size: 1.08rem;
  line-height: 2.1;
}
.prose p + p { margin-top: 1.25em; }
.prose-last { margin-top: 2em !important; font-weight: 700; }
.prose h2 {
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  margin: 2.6rem 0 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--yoi);
}
.prose h3 { font-size: 1.05rem; margin: 1.8rem 0 0.5rem; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0.75rem 0 0; }
.prose li + li { margin-top: 0.45rem; }
.prose a { text-underline-offset: 0.3em; text-decoration-color: var(--yoi); }

.topic-list { list-style: none; padding-left: 0 !important; }
.topic-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--sen); }
.topic-list li + li { margin-top: 0; }
.topic-list strong { display: block; font-family: var(--mincho); font-size: 1.05rem; }

.form-box {
  margin: 2.5rem 0 0.5rem;
  padding: 1.75rem;
  background: var(--kami);
  border: 1px solid var(--sen);
  border-radius: 6px;
}
.form-box p { color: var(--usuzumi); margin-bottom: 1.1rem; font-size: 0.95rem; }

/* 案内係 */
.guide {
  max-width: calc(var(--text-wrap) + 2.5rem);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem;
  align-items: center;
}
.guide-figure {
  margin: 0;
  width: 7.5rem; height: 7.5rem;
  border-radius: 50%;
  background: var(--yoru);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.guide-figure img { width: 100%; height: 100%; object-fit: cover; }
.guide-figure svg { width: 70%; }
.guide-figure .g-crow { fill: #0b0f24; stroke: var(--kin); stroke-width: 1.2; }
.guide-figure .g-tosaka { fill: none; stroke: var(--kin); stroke-width: 1.6; stroke-linecap: round; }
.guide-body h2 { font-size: 1.25rem; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.guide-note { font-size: 0.88rem; color: var(--usuzumi); margin-top: 0.3rem; }

.depts-intro {
  max-width: calc(var(--text-wrap) + 2.5rem);
  margin: 0 auto;
  padding: 1rem 1.25rem 5rem;
}
.depts-intro h2 { font-size: 1.3rem; letter-spacing: 0.08em; margin-bottom: 1.2rem; }
.depts-list { margin: 0; display: grid; gap: 0; }
.depts-list div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--sen);
}
.depts-list dt { font-family: var(--mincho); font-weight: 700; letter-spacing: 0.08em; }
.depts-list dd { margin: 0; color: var(--usuzumi); }
.depts-note { margin-top: 1.2rem; font-size: 0.92rem; color: var(--usuzumi); }

.toc { background: var(--kami); border: 1px solid var(--sen); border-radius: 6px; padding: 1rem 1.25rem; }
.toc ol { margin: 0; columns: 2 12em; column-gap: 2rem; }
.toc li { break-inside: avoid; }
.terms-date { margin-top: 2rem; color: var(--usuzumi); font-size: 0.9rem; }

/* ---------- フッター ---------- */

.site-foot {
  background: #10152c;
  color: var(--night-sub);
  padding: 3rem clamp(1.25rem, 5vw, 3rem) 2.5rem;
}
.foot-inner { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 1rem; }
.foot-brand {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--night-text);
  letter-spacing: 0.12em;
}
.foot-en { margin-left: 0.8rem; font-family: var(--gothic); font-weight: 400; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--night-sub); }
.foot-lead { font-size: 0.9rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
.foot-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--night-text);
}
.foot-nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.foot-copy { font-size: 0.85rem; padding-top: 1rem; border-top: 1px solid rgba(233, 228, 242, 0.12); }

/* JavaScriptが無いときも、動きが止まっていても、中身はすべて読める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
