@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;600;800&family=Yuji+Syuku&family=Kaisei+Tokumin:wght@700&display=swap');

:root {
  --maku-green: #1f7a4d;
  --maku-red: #c4341f;
  --maku-black: #141210;
  --paper: #e9e2d0;
  --ink: #2b2622;
  --sumi: #181410;
  --red: #9c2b22;
  --gold: #a8843b;
  --fade: #7a7060;
  --stripe: 42px;
  --edo: 'Kaisei Tokumin', 'Yuji Syuku', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0d0b09;
  color: var(--paper);
  font-family: 'Shippori Mincho', serif;
  min-height: 100vh;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  z-index: 99;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ══════════════ HERO ══════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}

/* 高座セット（幕の奥） */
.kouza-set {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(120% 70% at 50% 18%, #2a2018 0%, #1a1410 55%, #0d0a08 100%);
}

/* 金屏風 */
.byobu {
  position: absolute;
  left: 50%;
  top: 13%;
  transform: translateX(-50%);
  width: min(78%, 520px);
  height: 42%;
  background:
    repeating-linear-gradient(90deg, rgba(120,92,38,.0) 0, rgba(120,92,38,.0) 60px, rgba(60,46,20,.55) 60px, rgba(60,46,20,.55) 64px),
    linear-gradient(180deg, #caa64e, #9c7d34 60%, #7d6228);
  border: 3px solid #5b4720;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0,0,0,.6), inset 0 0 40px rgba(255,225,150,.25);
}
.byobu::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,240,200,.18), transparent 40%);
}

/* 高座の床 */
.floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, #3a2c1d, #241a11);
  box-shadow: inset 0 8px 30px rgba(0,0,0,.5);
}
.floor::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,220,150,.4), transparent);
}
.floor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 78px, rgba(0,0,0,.18) 78px, rgba(0,0,0,.18) 80px);
  opacity: .6;
}

/* 座布団（紫） */
.zabuton {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  width: 170px;
  height: 64px;
  background: radial-gradient(120% 140% at 50% 0%, #6b3f8f, #42235c);
  border-radius: 14px / 22px;
  box-shadow: 0 14px 26px rgba(0,0,0,.55), inset 0 4px 10px rgba(200,160,230,.25), inset 0 -8px 14px rgba(0,0,0,.4);
}
.zabuton::before, .zabuton::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(0,0,0,.22);
}
.zabuton::before { left: 34px; }
.zabuton::after  { right: 34px; }
.zabuton .tassel {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #e7c97a;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0,0,0,.2);
}
.zabuton .t1 { top: -3px; left: -3px; }
.zabuton .t2 { top: -3px; right: -3px; }
.zabuton .t3 { bottom: -3px; left: -3px; }
.zabuton .t4 { bottom: -3px; right: -3px; }

/* めくり */
.mekuri {
  position: absolute;
  right: 9%;
  bottom: 7%;
  width: 74px;
  height: 248px;
  opacity: 0;
  transition: opacity .8s ease;
}
.open .mekuri { opacity: 1; }
.mekuri .frame-top {
  position: absolute;
  top: 0;
  left: -12px;
  right: -12px;
  height: 10px;
  background: linear-gradient(180deg, #8a6a3c, #5f4823);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,.5);
}
.mekuri .leg {
  position: absolute;
  top: 7px;
  bottom: 0;
  width: 8px;
  background: linear-gradient(90deg, #7a5c30, #5f4823);
}
.mekuri .leg.l { left: 0; }
.mekuri .leg.r { right: 0; }
.mekuri .paper {
  position: absolute;
  top: 8px;
  left: 9px;
  right: 9px;
  height: 230px;
  background: linear-gradient(180deg, #f6f1e3, #e8dfc9);
  box-shadow: 0 6px 14px rgba(0,0,0,.45);
  border-radius: 1px 1px 3px 3px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 4px;
}
.mekuri .paper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(0,0,0,.12);
}
.mekuri .name {
  writing-mode: vertical-rl;
  font-family: var(--edo);
  font-weight: 700;
  color: #1a1410;
  line-height: 1.1;
  text-align: start;
}
.mekuri .name .sei { font-size: 15px; letter-spacing: .04em; }
.mekuri .name .mei { font-size: 26px; letter-spacing: .04em; }

/* 噺家（高座の上）― 全身像が座布団に座る */
.hanashika {
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%) scale(.96);
  z-index: 2;
  text-align: center;
  opacity: 0;
  transition: opacity 1.1s ease .8s, transform 1.2s cubic-bezier(.2,.7,.3,1) .8s;
}
.open .hanashika { opacity: 1; transform: translateX(-50%) scale(1); }
.hanashika .img {
  width: min(78vw, 340px);
  height: min(78vw, 340px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
}
.hanashika .img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.6)) contrast(1.04);
  -webkit-mask-image: radial-gradient(ellipse 60% 66% at 50% 44%, #000 58%, transparent 82%);
          mask-image: radial-gradient(ellipse 60% 66% at 50% 44%, #000 58%, transparent 82%);
}

/* 定式幕 */
.maku-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  z-index: 5;
  transition: transform 1.6s cubic-bezier(.7,0,.2,1);
  background: repeating-linear-gradient(90deg,
    var(--maku-black) 0, var(--maku-black) var(--stripe),
    var(--maku-red) var(--stripe), var(--maku-red) calc(var(--stripe)*2),
    var(--maku-green) calc(var(--stripe)*2), var(--maku-green) calc(var(--stripe)*3));
  box-shadow: 0 0 40px rgba(0,0,0,.5) inset;
}
.maku-half.l { left: 0; }
.maku-half.r { right: 0; background-position: right; }
.open .maku-half.l { transform: translateX(-102%); }
.open .maku-half.r { transform: translateX(102%); }

/* 看板（閉幕時） */
.signboard {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 56px 0 22vh;
  transition: opacity .7s ease;
}
.open .signboard { opacity: 0; pointer-events: none; }

.hero-label {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--edo);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .4em;
  color: rgba(255,240,210,.8);
  text-indent: .4em;
  text-shadow: 0 1px 4px #000;
}
/* 毎日更新の赤判（千社札風） */
.daily-seal {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 3;
  font-family: var(--edo);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: .1em;
  text-align: center;
  color: #fbf3df;
  background:
    radial-gradient(circle at 35% 28%, #c4341f, #9c2b22 70%, #7d1f17);
  padding: 11px 12px;
  border-radius: 5px;
  border: 2px solid rgba(251,243,223,.9);
  box-shadow: 0 7px 18px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.3);
  transform: rotate(7deg);
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}

/* 八百萬 のふりがな */
.yose-name .pre ruby { ruby-position: over; }
.yose-name .pre rt {
  font-family: var(--edo);
  font-weight: 700;
  font-size: .34em;
  letter-spacing: .12em;
  color: #e7c97a;
  margin-bottom: 2px;
}

.yose-name {
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 30px;
  background: rgba(13,11,9,.6);
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(13,11,9,.7);
}
.yose-name .pre {
  font-family: var(--edo);
  font-weight: 700;
  font-size: clamp(18px, 4.5vw, 26px);
  letter-spacing: .2em;
  color: #e7c97a;
  text-indent: .2em;
  text-shadow: 0 2px 5px rgba(0,0,0,.8);
}
.yose-name h1 {
  font-family: var(--edo);
  font-weight: 700;
  font-size: clamp(40px, 10vw, 72px);
  color: #f3ead4;
  letter-spacing: .06em;
  line-height: 1.08;
  margin-top: 4px;
  text-shadow: 0 3px 8px rgba(0,0,0,.85);
  white-space: nowrap;
}

/* 看板の噺家 ― 全身像の大看板（額装ポスター・名札は絵に重ねる） */
.billboard-hanashika {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.billboard-hanashika .img {
  width: min(56vw, 208px);
  height: min(56vw, 208px);
  border-radius: 6px;
  overflow: hidden;
  background: #2a2519;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  box-shadow:
    0 18px 44px rgba(0,0,0,.7),
    0 0 0 1px rgba(168,132,59,.55),
    0 0 0 7px #16120e,
    0 0 0 9px rgba(168,132,59,.45);
}
.billboard-hanashika .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.billboard-hanashika .nm {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  white-space: nowrap;
  line-height: 1.2;
  font-family: var(--edo);
  font-weight: 700;
  color: #f3ead4;
  font-size: 15px;
  letter-spacing: .12em;
  text-indent: .12em;
  text-align: center;
  text-shadow: 0 2px 6px #000;
  padding: 8px 18px;
  background: rgba(13,11,9,.82);
  border: 1px solid rgba(168,132,59,.45);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
}

/* 開始口上（震える） */
.start-prompt {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translate(-50%, 0);
  cursor: pointer;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.open .start-prompt { display: none; }
.start-prompt .kojo {
  font-family: var(--edo);
  font-weight: 700;
  font-size: clamp(14px, 3.6vw, 17px);
  letter-spacing: .1em;
  color: rgba(243,234,212,.92);
  text-shadow: 0 2px 6px #000;
  text-align: center;
  line-height: 1.5;
}
.start-prompt .enter-btn {
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--edo);
  font-weight: 700;
  font-size: clamp(18px, 4.8vw, 22px);
  letter-spacing: .2em;
  text-indent: .2em;
  color: #1a1410;
  background: linear-gradient(180deg, #ecd089, #c8a548);
  border: 1px solid #f6eccf;
  border-radius: 9px;
  padding: 15px 38px;
  box-shadow: 0 10px 26px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.55);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  animation: cta-bob 2.2s ease-in-out infinite;
}
.start-prompt .enter-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.6);
}
.start-prompt .enter-btn:active { transform: translateY(1px); }
@keyframes cta-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .start-prompt .enter-btn { animation: none; }
}

/* 演題（幕間ボックス） */
.endai {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  z-index: 8;
  width: min(90vw, 480px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}
.endai.show { opacity: 1; pointer-events: auto; }
.endai .lead {
  font-family: 'Yuji Syuku', serif;
  color: #e7c97a;
  font-size: 14px;
  letter-spacing: .3em;
  margin-bottom: 12px;
  text-shadow: 0 2px 6px #000;
}
.endai .title-box {
  width: min(90vw, 480px);
  background: rgba(13,11,9,.7);
  border: 1px solid rgba(168,132,59,.5);
  border-radius: 8px;
  padding: 20px 30px 24px;
}
.endai .ttl {
  font-family: var(--edo);
  font-weight: 700;
  font-size: clamp(30px, 8vw, 52px);
  color: #f3ead4;
  letter-spacing: .08em;
  text-shadow: 0 3px 8px #000;
}
.endai .by {
  font-family: 'Yuji Syuku', serif;
  color: var(--fade);
  font-size: 13px;
  letter-spacing: .2em;
  margin-top: 12px;
}
.endai .go {
  cursor: pointer;
  background: #16120e;
  color: #e7c97a;
  border: 1px solid rgba(168,132,59,.55);
  border-radius: 3px;
  font-family: var(--edo);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3em;
  padding: 12px 30px;
  text-indent: .3em;
  transition: .2s;
  white-space: nowrap;
}
.endai .go:hover { background: #221b13; color: #f3ead4; transform: translateY(-2px); }

/* 通し番号 */
.hipmark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  z-index: 6;
  color: rgba(255,240,210,.7);
  transition: opacity .6s;
}
.open .hipmark { opacity: .4; }
.hipmark .count { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.hipmark .count .n {
  font-family: var(--edo);
  font-weight: 700;
  font-size: 26px;
  color: #f3ead4;
  letter-spacing: .08em;
  text-shadow: 0 2px 6px #000;
  line-height: 1;
}
.hipmark .count .cap { font-size: 10px; letter-spacing: .3em; color: rgba(255,240,210,.6); text-indent: .3em; }

/* ══════════════ 高座の噺 ══════════════ */
.takaza-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  width: min(92%, 520px);
  max-height: 86vh;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}
.takaza-stage.show { opacity: 1; pointer-events: auto; }

.scene {
  background: linear-gradient(180deg, #efe8d6, #ddd2bb);
  color: var(--ink);
  border-radius: 3px;
  padding: 26px 22px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 2px 0 rgba(255,255,255,.4) inset;
  position: relative;
  line-height: 2.05;
  font-size: 16px;
  animation: rise .5s ease both;
}
.scene::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(43,38,34,.18);
  border-radius: 2px;
  pointer-events: none;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.narr { margin: 0 0 12px; }
.narr:last-of-type { margin-bottom: 0; }
.dialogue-start {
  display: block;
  margin-top: 10px;
}
.who,
.me {
  display: inline-block;
  font-weight: 800;
  line-height: 1.55;
  padding: 0 .22em;
  border-radius: 2px;
}
.who {
  color: #8f1f18;
  background: rgba(156, 43, 34, .12);
  box-shadow: inset 0 -2px 0 rgba(156, 43, 34, .28);
}
.me {
  color: #5f3a08;
  background: rgba(168, 132, 59, .16);
  box-shadow: inset 0 -2px 0 rgba(168, 132, 59, .32);
}
.itako { color: #4a4339; border-left: 3px solid var(--gold); padding-left: 14px; margin: 2px 0 14px; font-size: 15.5px; line-height: 1.95; }
em { font-style: normal; font-weight: 800; color: var(--sumi); }

.hiki { margin-top: 18px; text-align: center; color: #6b4a2b; font-weight: 800; font-size: 15px; line-height: 1.8; }

.turn { margin-top: 16px; text-align: center; }
.turn button {
  cursor: pointer;
  background: #16120e;
  color: #e7c97a;
  border: 1px solid rgba(168,132,59,.5);
  border-radius: 3px;
  font-family: var(--edo);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3em;
  padding: 12px 30px;
  transition: .18s;
  text-indent: .3em;
}
.turn button:hover { background: #221b13; color: #f3ead4; transform: translateY(-2px); }

.sage { margin-top: 22px; text-align: center; }
.sage .seal {
  display: inline-block;
  font-family: var(--edo);
  font-weight: 700;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 8px 14px;
  font-size: 18px;
  letter-spacing: .2em;
  transform: rotate(-4deg);
  border-radius: 4px;
}
.sage .after {
  color: #463f36;
  font-size: 15.5px;
  margin-top: 18px;
  line-height: 1.95;
  border-top: 1px solid rgba(168,132,59,.25);
  padding-top: 16px;
}

.loading {
  text-align: center;
  color: #e7c97a;
  font-family: var(--edo);
  font-weight: 700;
  letter-spacing: .3em;
  padding: 36px 0;
  font-size: 14px;
  animation: pulse 1.4s ease infinite;
  text-shadow: 0 2px 5px #000;
}
@keyframes pulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

.err {
  color: #e7a; text-align: center; padding: 24px 10px; line-height: 1.9; font-size: 14px;
  background: rgba(13,11,9,.7); border-radius: 8px;
}
.err button {
  display: inline-block; margin-top: 8px; padding: 10px 22px;
  border: 1px solid rgba(168,132,59,.5); color: #e7c97a; background: #16120e;
  border-radius: 3px; cursor: pointer; font-family: var(--edo); font-weight: 700; letter-spacing: .2em;
}

/* ══════════════ アーカイブ ══════════════ */
.section { max-width: 920px; margin: 0 auto; padding: 64px 18px; }
.sec-title {
  text-align: center;
  font-family: var(--edo);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: .22em;
  color: var(--gold);
  margin-bottom: 6px;
  text-indent: .22em;
}
.sec-sub { text-align: center; color: var(--fade); font-size: 12px; letter-spacing: .2em; margin-bottom: 30px; }
.empty-msg { text-align: center; color: #7a7060; font-size: 13px; padding: 24px 0; }
.month {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--edo);
  font-weight: 700;
  color: var(--paper);
  font-size: 15px;
  letter-spacing: .2em;
  margin: 22px 4px 12px;
  border-left: 3px solid var(--gold);
  padding: 6px 10px;
  cursor: pointer;
  user-select: none;
  transition: color .2s;
}
.month:hover { color: #fff; }
.month .arw {
  font-size: 10px;
  color: var(--gold);
  transition: transform .3s ease;
  flex: none;
}
.month.collapsed .arw { transform: rotate(-90deg); }
.month .cnt {
  margin-left: auto;
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--fade);
}
.month-body {
  overflow: hidden;
  height: auto;
  transition: height .35s ease;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  padding: 6px 2px 14px;
}
.thumb {
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: linear-gradient(160deg, #efe8d6, #cabf9f);
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
  border: 1px solid rgba(168,132,59,.25);
  transform-origin: center center;
  transition: transform .13s ease-out, box-shadow .13s ease-out;
  will-change: transform;
}
.thumb.mag { box-shadow: 0 14px 30px rgba(0,0,0,.6); }
.thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; filter: grayscale(1) contrast(1.1); opacity: .55; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); }
.thumb .cap { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(20,16,12,.92)); color: #efe6cf; font-size: 11px; padding: 18px 8px 7px; line-height: 1.5; }
.thumb .cap b { display: block; font-size: 12px; font-family: var(--edo); font-weight: 700; }

.note { max-width: 540px; margin: 30px auto 0; color: #4a4339; font-size: 11px; text-align: center; line-height: 1.9; letter-spacing: .1em; }

/* ══════════════ 過去の一席リーダー（モーダル） ══════════════ */
.reader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(8, 6, 5, .82);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.reader.show { opacity: 1; pointer-events: auto; }
.reader-panel {
  position: relative;
  width: min(92vw, 540px);
  max-height: 90vh;
}
.reader-close {
  position: absolute;
  top: -14px;
  right: -6px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  background: #16120e;
  color: #e7c97a;
  border: 1px solid rgba(168,132,59,.55);
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0,0,0,.5);
  transition: .15s;
}
.reader-close:hover { background: #221b13; color: #f3ead4; }
.reader-scroll {
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 4px;
}
.reader-head {
  text-align: center;
  padding: 6px 6px 16px;
}
.reader-head .r-date {
  font-family: 'Yuji Syuku', serif;
  font-size: 12px;
  letter-spacing: .25em;
  color: #e7c97a;
}
.reader-head .r-ttl {
  font-family: var(--edo);
  font-weight: 700;
  font-size: clamp(22px, 6vw, 32px);
  color: #f3ead4;
  letter-spacing: .06em;
  margin-top: 8px;
  text-shadow: 0 2px 6px #000;
}
.reader-head .r-by {
  font-family: 'Yuji Syuku', serif;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--fade);
  margin-top: 8px;
}

/* ══════════════ RSS（最上部・固定） ══════════════ */
.rss-top {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  color: #1a1208;
  background: linear-gradient(180deg, #f0c560 0%, #d39b34 100%);
  border: 1px solid rgba(255,240,200,.55);
  box-shadow: 0 3px 12px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.45);
  font-family: var(--edo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  backdrop-filter: blur(2px);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.rss-top svg { display: block; }
.rss-top:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 5px 16px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.5);
}

/* ══════════════ サイトフッター ══════════════ */
.site-footer {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, #15100b 0%, #0a0705 70%);
  color: var(--paper);
  overflow: hidden;
}
/* 定式幕ストライプ（黒・萌葱・柿） */
.site-footer-maku {
  height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--maku-black) 0 var(--stripe),
    var(--maku-green) var(--stripe) calc(var(--stripe) * 2),
    var(--maku-red) calc(var(--stripe) * 2) calc(var(--stripe) * 3));
  box-shadow: 0 1px 0 rgba(168,132,59,.5);
}
.site-footer-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 22px 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px 40px;
  flex-wrap: wrap;
}

/* ブランド */
.site-footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.site-footer-seal {
  flex: none;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  border-radius: 5px;
  background: radial-gradient(circle at 35% 28%, #c4341f, #9c2b22 70%, #7d1f17);
  border: 2px solid rgba(251,243,223,.9);
  box-shadow: 0 6px 16px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.3);
  color: #fbf3df;
  font-family: var(--edo);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.18;
  letter-spacing: .1em;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
  transform: rotate(-5deg);
}
.site-footer-id strong {
  display: block;
  color: #e7c97a;
  font-family: var(--edo);
  font-size: 17px;
  letter-spacing: .14em;
}
.site-footer-id strong rt { font-size: 8px; color: var(--gold); }
.site-footer-by {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.site-footer-id p {
  margin: 10px 0 0;
  color: var(--fade);
  font-size: 12px;
  line-height: 1.85;
}

/* ナビ */
.site-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}
.site-footer-nav a {
  position: relative;
  color: #d6c49a;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-decoration: none;
  transition: color .18s ease;
}
.site-footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .22s ease;
}
.site-footer-nav a:hover { color: #fff4ce; }
.site-footer-nav a:hover::after { width: 100%; }

/* RSS購読ボタン */
.site-footer-nav a.site-footer-rss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(168,132,59,.55);
  color: #e7c97a;
  background: rgba(168,132,59,.08);
}
.site-footer-nav a.site-footer-rss svg { display: block; }
.site-footer-nav a.site-footer-rss::after { display: none; }
.site-footer-nav a.site-footer-rss:hover {
  color: #1a1208;
  background: linear-gradient(180deg, #f0c560 0%, #d39b34 100%);
  border-color: rgba(255,240,200,.6);
}

/* 最下部（紋＋コピーライト） */
.site-footer-base {
  border-top: 1px solid rgba(168,132,59,.18);
  padding: 14px 22px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--fade);
  font-size: 11px;
  letter-spacing: .14em;
}
.site-footer-mon { color: var(--gold); font-size: 9px; opacity: .8; }

@media (max-width: 640px) {
  .site-footer-inner {
    flex-direction: column;
    gap: 28px;
  }
  .site-footer-nav {
    align-items: flex-start;
  }
  .site-footer-base { flex-direction: column; gap: 4px; text-align: center; }
}
