@charset "UTF-8";
/* ==========================================================================
   ﾐｭｰﾙﾀﾝの小屋 — Dungeon Siege fan site
   Modern responsive theme. Torchlit stone, aged gold, arcane blue.
   Self-contained: no webfonts, no frameworks, no JS dependency for layout.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  color-scheme: dark;

  /* Dungeon stone — warm-cast near-blacks, layered from deep to lit */
  --stone-950: #0b0908;
  --stone-900: #100d0b;
  --stone-850: #16120f;
  --stone-800: #1c1713;
  --stone-750: #241d18;
  --stone-700: #2e251e;
  --stone-600: #3d3126;

  /* Torchlight */
  --gold:        #d9a54c;
  --gold-bright: #f2cd8a;
  --gold-deep:   #9a6f28;

  /* Arcane / mana */
  --arcane:      #62b6cb;
  --arcane-deep: #2c6e7e;

  --parchment: #ece2d2;
  --text:      #d8cec0;
  --muted:     #9d907f;
  --faint:     #6f6558;

  --rule:       rgba(217, 165, 76, 0.20);
  --rule-soft:  rgba(217, 165, 76, 0.10);
  --shadow:     0 1px 2px rgba(0,0,0,.5), 0 8px 28px rgba(0,0,0,.45);
  --shadow-lg:  0 2px 4px rgba(0,0,0,.5), 0 24px 60px rgba(0,0,0,.55);

  --font-display: "Trajan Pro", Cinzel, Optima, Georgia, "Times New Roman",
                  "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "MS PMincho", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN",
               "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas,
               "Liberation Mono", Menlo, monospace;

  --wrap: 1180px;
  --gap: clamp(16px, 2.2vw, 28px);
  --radius: 4px;
  --header-h: 60px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--stone-900);
  /* Torch pool at the top, cold depth below. */
  background-image:
    radial-gradient(1200px 520px at 50% -180px, rgba(217,165,76,.13), transparent 70%),
    radial-gradient(900px 600px at 100% 40%, rgba(44,110,126,.07), transparent 70%),
    linear-gradient(180deg, var(--stone-900) 0%, var(--stone-950) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

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

::selection { background: rgba(217,165,76,.28); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(14px, 3vw, 32px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 18px;
  background: var(--gold);
  color: #1a1410;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16,13,11,.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(255,255,255,.03), 0 10px 30px rgba(0,0,0,.4);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--parchment);
  text-decoration: none;
  margin-right: auto;
  padding: 6px 0;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand-mark {
  width: 26px;
  height: 30px;
  flex: none;
  filter: drop-shadow(0 0 8px rgba(217,165,76,.35));
}
.brand-name {
  margin: 0;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: clamp(17px, 2.3vw, 21px);
  letter-spacing: .06em;
  line-height: 1.2;
  white-space: nowrap;
}

/* Global navigation */
.gnav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gnav a {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  letter-spacing: .02em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color .18s, background-color .18s, border-color .18s;
}
.gnav a:hover {
  color: var(--gold-bright);
  background: rgba(217,165,76,.08);
  border-color: var(--rule);
  text-decoration: none;
}
.gnav a[aria-current="page"] {
  color: var(--gold-bright);
  border-color: var(--rule);
  background: rgba(217,165,76,.06);
}
.gnav a[target="_blank"]::after {
  content: "↗";
  margin-left: 5px;
  font-size: .8em;
  color: var(--faint);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle:hover { color: var(--gold-bright); border-color: var(--gold-deep); }
.nav-toggle .bars { position: relative; width: 16px; height: 10px; flex: none; }
.nav-toggle .bars::before,
.nav-toggle .bars::after,
.nav-toggle .bars span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span    { top: 4.25px; }
.nav-toggle .bars::after  { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span    { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .gnav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(16,13,11,.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow);
    display: none;
  }
  .gnav.is-open { display: block; }
  .gnav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: var(--wrap);
    margin-inline: auto;
    padding: 8px clamp(14px, 3vw, 32px) 16px;
  }
  .gnav li + li { border-top: 1px solid var(--rule-soft); }
  .gnav a { padding: 13px 4px; font-size: 15px; border-radius: 0; }
  .gnav a:hover { background: transparent; border-color: transparent; }
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  margin-top: clamp(18px, 3vw, 34px);
}
.hero-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--stone-850);
  box-shadow: var(--shadow-lg);
}
.hero-slides {
  position: relative;
  aspect-ratio: 960 / 381;
  min-height: 200px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 8s linear;
  will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
/* No-JS / pre-init: show the first frame. */
.hero-slides:not(.is-ready) .hero-slide:first-child { opacity: 1; transform: none; }

.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,9,8,.55) 0%, transparent 28%, transparent 55%, rgba(11,9,8,.85) 100%),
    radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(11,9,8,.55) 100%);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--parchment);
  background: rgba(11,9,8,.42);
  border: 1px solid rgba(236,226,210,.18);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, background-color .2s, border-color .2s;
}
.hero-frame:hover .hero-nav,
.hero-nav:focus-visible { opacity: 1; }
.hero-nav:hover { background: rgba(217,165,76,.85); color: #1a1410; border-color: var(--gold-bright); }
.hero-nav--prev { left: 12px; }
.hero-nav--next { right: 12px; }

.hero-dots {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: rgba(236,226,210,.3);
  border: 1px solid rgba(11,9,8,.5);
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.hero-dot:hover { background: rgba(236,226,210,.7); }
.hero-dot[aria-current="true"] {
  background: var(--gold);
  transform: scale(1.25);
}

/* Intro card riding the bottom edge of the hero */
.hero-note {
  position: relative;
  z-index: 3;
  margin: -46px auto 0;
  max-width: 900px;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3.4vw, 38px);
  background:
    linear-gradient(180deg, rgba(46,37,30,.97), rgba(22,18,15,.97));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-note-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold-bright);
}
.hero-note p {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}
/* 役目を終えた過去の案内。「履歴」を開いたときだけ出す。
   <details> なので JavaScript が無くても開閉できる。 */
.past-log { margin-top: 14px; }
.past-log > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 2px 2px 2px 0;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.past-log > summary::-webkit-details-marker { display: none; }
.past-log > summary::before {
  content: "▸";
  font-size: 11px;
  color: var(--gold-deep);
  transition: transform .18s ease;
}
.past-log[open] > summary::before { transform: rotate(90deg); }
.past-log > summary:hover { color: var(--gold-bright); }
.past-log > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.hero-note .past {
  margin: 10px 0 0;
  color: var(--faint);
}
.hero-note .past s {
  text-decoration-color: rgba(217, 165, 76, .55);
  text-decoration-thickness: 1px;
}
.hero-note .past .sign { color: var(--faint); }

.hero-note .sign {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* Access counter (DayX, same CGI as the HL / BC sections). The digits are
   the GIFs DayX serves; this only frames them. Hidden by the page's
   onerror handler until the CGI exists on the server. */
.hero-note .counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(11,9,8,.55);
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
}
.hero-note .counter::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--gold-deep);
  box-shadow: 0 0 8px rgba(217,165,76,.4);
}
.hero-note .counter img { display: block; }
.hero-note .counter[hidden] { display: none; }

@media (max-width: 620px) {
  .hero-slides { aspect-ratio: 4 / 3; }
  .hero-note { margin-top: -28px; }
  .hero-nav { width: 36px; height: 36px; opacity: 1; }
}

/* ------------------------------------------------------------- sections -- */
/* padding-block, not the shorthand: these elements also carry .wrap, whose
   padding-inline must survive. */
.main { padding-block: clamp(38px, 6vw, 72px) 0; }

.panel {
  margin-bottom: clamp(30px, 5vw, 56px);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(18px, 2.6vw, 28px);
}
.panel-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--rule), transparent);
}
.panel-title {
  position: relative;
  margin: 0;
  padding-left: 20px;
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--parchment);
}
/* Torch bar */
.panel-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  bottom: .28em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 0 12px rgba(217,165,76,.5);
}

/* Card — engraved stone slab */
.card {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(180deg, rgba(36,29,24,.72), rgba(20,17,14,.72));
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card::before {
  /* inner hairline, 1px inset — the "engraved" second rule */
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(236,226,210,.05);
  border-radius: 2px;
  pointer-events: none;
}

.grid {
  display: grid;
  gap: var(--gap);
}
@media (min-width: 760px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
}
.group-title::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  transform: rotate(45deg);
  background: var(--gold-deep);
  box-shadow: 0 0 8px rgba(217,165,76,.4);
}
.group + .group { margin-top: 26px; }

/* Link lists */
.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.link-list > li {
  position: relative;
  padding: 7px 0 7px 16px;
  font-size: 14.5px;
  line-height: 1.65;
  border-bottom: 1px solid rgba(236,226,210,.05);
}
.link-list > li:last-child { border-bottom: 0; }
.link-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 5px;
  height: 1px;
  background: var(--gold-deep);
  transition: width .18s ease, background-color .18s ease;
}
.link-list > li:hover::before { width: 10px; background: var(--gold-bright); }

.plat {
  display: inline-block;
  margin-right: 7px;
  padding: 1px 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--arcane);
  vertical-align: 1px;
  background: rgba(98,182,203,.08);
  border: 1px solid rgba(98,182,203,.22);
  border-radius: 3px;
  white-space: nowrap;
}
.note { color: var(--muted); font-size: 13px; }

/* Big call-to-action links (掲示板 / 投稿画像一覧) */
.action-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin: 0 0 26px;
}
@media (min-width: 520px) { .action-row { grid-template-columns: 1fr 1fr; } }
.action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  color: var(--parchment);
  background: linear-gradient(180deg, rgba(217,165,76,.10), rgba(217,165,76,.03));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: .04em;
  transition: background-color .2s, border-color .2s, transform .2s, color .2s;
}
.action:hover {
  color: #fff;
  text-decoration: none;
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(217,165,76,.22), rgba(217,165,76,.08));
  transform: translateY(-2px);
}
.action .ico { flex: none; color: var(--gold); }
.action .arrow { margin-left: auto; color: var(--gold); transition: transform .2s; }
.action:hover .arrow { transform: translateX(4px); }

/* Spec list — IRC connection details */
.spec {
  margin: 0;
  padding: 14px 16px;
  list-style: none;
  background: rgba(11,9,8,.45);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--arcane-deep);
  border-radius: 3px;
  font-size: 14px;
}
.spec li + li { margin-top: 5px; }
.spec li { color: var(--text); }
.spec .mono { font-family: var(--font-mono); color: var(--arcane); font-size: 13.5px; }

/* Roster chips */
.roster {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.roster li {
  padding: 4px 11px;
  font-size: 13.5px;
  color: var(--text);
  background: rgba(236,226,210,.045);
  border: 1px solid rgba(236,226,210,.09);
  border-radius: 999px;
  transition: color .18s, background-color .18s, border-color .18s;
}
.roster li:hover {
  color: var(--gold-bright);
  background: rgba(217,165,76,.10);
  border-color: var(--rule);
}
/* Thread log list */
.thread-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
@media (min-width: 720px)  { .thread-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .thread-list--wide { grid-template-columns: repeat(3, 1fr); } }
.thread-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: rgba(11,9,8,.4);
  border: 1px solid rgba(236,226,210,.06);
  border-left: 2px solid var(--gold-deep);
  border-radius: 3px;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.thread-list a::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold-deep);
  transition: background-color .18s;
}
.thread-list a:hover {
  color: #fff;
  text-decoration: none;
  transform: translateX(3px);
  border-color: rgba(217,165,76,.35);
  border-left-color: var(--gold-bright);
  background: rgba(217,165,76,.08);
}
.thread-list a:hover::before { background: var(--gold-bright); }

/* --------------------------------------------------------------- footer -- */
.site-footer {
  margin-top: clamp(50px, 8vw, 90px);
  padding: 30px 0 36px;
  border-top: 1px solid var(--rule-soft);
  background: linear-gradient(180deg, transparent, rgba(11,9,8,.7));
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.site-footer p { margin: 0; font-size: 13px; color: var(--muted); }
.footer-top {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--muted);
}
.footer-top:hover { color: var(--gold-bright); text-decoration: none; }

/* ============================================================== subpages ==
   Simple document pages: dssd.html, imgbbs index and year archives.
   ========================================================================= */

.page-head {
  padding-block: clamp(30px, 5vw, 56px) clamp(18px, 3vw, 28px);
}
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(25px, 4.4vw, 38px);
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.25;
  color: var(--parchment);
  text-shadow: 0 0 30px rgba(217,165,76,.25);
}
.page-lead {
  max-width: 72ch;
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--faint);
}
.crumbs li { display: flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold-bright); }

.notice {
  max-width: 78ch;
  margin: 0 0 clamp(30px, 5vw, 46px);
  padding: 18px 20px;
  font-size: 14.5px;
  color: var(--text);
  background: rgba(11,9,8,.45);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--gold-deep);
  border-radius: 3px;
}
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }

/* Release entries on dssd.html */
.release-list { display: grid; gap: 14px; }
@media (min-width: 900px) { .release-list { grid-template-columns: 1fr 1fr; } }
.release {
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(36,29,24,.6), rgba(20,17,14,.6));
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.release:hover { border-color: var(--rule); transform: translateY(-2px); }
.release h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .02em;
}
.release h2 a { color: var(--gold-bright); }
.release p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}
.release .src { color: var(--muted); font-size: 13px; font-weight: 400; }

/* Year archive cards on imgbbs/index.html */
.year-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.year-card {
  display: block;
  padding: 22px 22px 20px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(36,29,24,.7), rgba(20,17,14,.7));
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s, background-color .2s;
}
.year-card:hover {
  text-decoration: none;
  border-color: var(--rule);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(217,165,76,.12), rgba(20,17,14,.7));
}
.year-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--gold-bright);
}
.year-card .small {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

/* ============================================== imgbbs year archive pages ==
   Original markup is kept intact (.post / .title / .meta / .text) and only
   restyled, so the archive stays structurally comparable to the source.
   ========================================================================= */
.imgbbs .container { max-width: 1000px; margin-inline: auto; }

.imgbbs .year-nav,
.imgbbs .footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--faint);
}
.imgbbs .year-nav { margin-bottom: 26px; }
.imgbbs .footer-nav {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
}
.imgbbs .year-nav a,
.imgbbs .footer-nav a { color: var(--muted); }
.imgbbs .year-nav a:hover,
.imgbbs .footer-nav a:hover { color: var(--gold-bright); }

.imgbbs .post {
  margin-bottom: 18px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(36,29,24,.62), rgba(20,17,14,.62));
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.imgbbs .post:hover { border-color: var(--rule); }

.imgbbs .post .title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.45;
  color: var(--parchment);
  margin-bottom: 6px;
}
.imgbbs .post .meta {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.imgbbs .post .meta b {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .03em;
}
.imgbbs .post .text {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 12px;
}
.imgbbs .post img {
  display: block;
  margin: 0;
  border: 1px solid rgba(236,226,210,.1);
  border-radius: 3px;
  transition: border-color .2s;
}
.imgbbs .post a:hover img { border-color: var(--gold-deep); }

/* Image-only entries: the picture survived, the post record did not. Held
   apart from real records on purpose — dashed frame, no gold, muted heading. */
.recovered-note {
  margin: 26px 0 18px;
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  background: rgba(44,110,126,.07);
  border: 1px dashed rgba(98,182,203,.32);
  border-radius: 3px;
}
.recovered-note b { color: var(--arcane); font-weight: 600; }

.imgbbs .post--recovered {
  background: rgba(11,9,8,.4);
  border: 1px dashed rgba(98,182,203,.26);
}
.imgbbs .post--recovered:hover { border-color: rgba(98,182,203,.45); }
.imgbbs .post--recovered .title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--arcane);
}
.imgbbs .post--recovered .meta b { color: var(--muted); font-weight: 400; }
.imgbbs .post--recovered .text { font-size: 13px; color: var(--faint); }

.imgbbs .reply {
  margin-top: 14px;
  margin-left: clamp(12px, 4vw, 40px);
  padding: 14px 16px;
  background: rgba(11,9,8,.5);
  border-left: 2px solid var(--arcane-deep);
  border-radius: 0 3px 3px 0;
}
.imgbbs .reply .title { font-size: 16px; }

/* ------------------------------------------------------------- lightbox -- */
/* 投稿画像の拡大表示（ds.js が <dialog class="lb"> を作る）。
   BC のイベントパビリオンと同じ仕組みで、配色だけこのサイトに合わせている。 */
.imgbbs .post a[href] { cursor: zoom-in; }

.lb {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1400px);
  max-height: 94vh;
  overflow: visible;
  color: var(--text);
}
.lb::backdrop {
  background: rgba(11, 9, 8, .9);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.lb__fig {
  margin: 0;
  display: grid;
  gap: .7rem;
  justify-items: center;
}
.lb__fig img {
  display: block;
  max-width: 100%;
  /* 上の CLOSE（約2.6rem）と下のキャプションの分を必ず残す。84vh だけだと
     低い画面で CLOSE が上端からはみ出した（高さ720pxで1px、600pxで約11px）。 */
  max-height: min(84vh, calc(100vh - 8rem));
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--stone-850);
}
.lb__cap {
  max-width: 100%;
  text-align: center;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}
.lb__close {
  position: absolute;
  top: -2.6rem;
  right: 0;
  padding: .5rem .85rem;
  font: 700 .72rem/1 var(--font-body);
  letter-spacing: .16em;
  color: var(--parchment);
  background: var(--stone-800);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color .18s, border-color .18s;
}
.lb__close:hover,
.lb__close:focus-visible { color: var(--gold-bright); border-color: var(--gold); }

/* --------------------------------------------------------------- motion -- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-slide { transform: none !important; }
}

/* ---------------------------------------------------------------- print -- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .hero, .site-footer, .nav-toggle { display: none; }
  a { color: #000; }
  .card, .release, .imgbbs .post { border: 1px solid #999; background: none; }
}


/* 権利・削除依頼の注記 */
.rights-note {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--ds-gold, #b8860b);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-soft, inherit);
}

.site-footer .legal {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.8;
  opacity: 0.8;
}
