:root {
  --bg: #fff5e0;
  --ink: #4a2a12;
  --accent: #ff9933;
  --accent-dark: #9c5700;
  --card: #fffef9;
  --line: #f0d9b5;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: repeating-linear-gradient(0deg, #fff5e0 0 1px, #ffd9ac 1px 2px);
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  line-height: 1.9;
}
a { color: var(--accent-dark); }
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  background: linear-gradient(135deg, #f39c3d, #e07b1f);
  color: #ffffff;
  border-bottom: 3px solid #ff9933;
  text-align: left;
  padding: 1.1rem 1rem;
}
header.site .inner { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; }
header.site a.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #fff5e0; border: 3px solid #663333; border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  padding: .35rem .85rem .35rem .55rem; text-decoration: none;
}
header.site a.logo img.mark { height: 26px; width: 26px; display: block; }
header.site a.logo .logo-text { color: #663333; font-weight: bold; font-size: 1.35rem; letter-spacing: .25em; transform: translateY(1px); }
header.site .author { font-size: 1.1rem; letter-spacing: .2em; white-space: nowrap; }
header.site nav.main { margin-left: auto; display: flex; gap: 1.1rem; flex-wrap: wrap; }
header.site nav.main a { color: #ffffff; text-decoration: none; font-size: .95rem; white-space: nowrap; }
header.site nav.main a:hover { text-decoration: underline; }
header.site nav.main details.navd { margin-left: .45rem; }
header.site nav.main a.rand { margin-left: .15rem; display: inline-flex; align-items: center; }
header.site nav.main a.rand img { height: 14px; width: 14px; display: block; transform: translateY(-2px); }
header.site nav.main a.rand:hover { text-decoration: none; opacity: .8; }
header.site p { margin: .3rem 0 0; opacity: .9; font-size: .95rem; }
main { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin: 1rem 0;
}
.card h2 { margin: 0 0 .4rem; font-size: 1.3rem; }
.card p { margin: .2rem 0; }
.subtitle { color: #6b543f; }
ul.episodes { list-style: none; margin: 0; padding: 0; }
ul.episodes li { border-bottom: 1px solid var(--line); }
ul.episodes li:last-child { border-bottom: none; }
ul.episodes a {
  display: block; padding: .7rem .4rem; text-decoration: none; color: var(--ink);
}
ul.episodes a:hover { background: #fdf1e3; }
article {
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
article p { margin: 0 0 1em; font-weight: 500; }
article h2 { font-size: 1.4rem; border-bottom: 2px solid var(--accent); padding-bottom: .3rem; }
nav.pager {
  display: flex; justify-content: space-between; gap: 1rem;
  margin: 2rem 0 0; font-size: .95rem;
}
nav.pager a { text-decoration: none; }
nav.pager .spacer { flex: 1; }
.crumb { font-size: .9rem; margin-bottom: 1rem; }
footer.site {
  text-align: center; color: #8a7358; font-size: .85rem;
  padding: 1.5rem 1rem 2.5rem;
}
.note {
  background: #fdf1e3; border: 1px solid var(--line); border-radius: 10px;
  padding: .8rem 1.1rem; font-size: .92rem;
}
.latest {
  border: 2px solid var(--accent);
  background: #ffffee;
}
.latest h2 { color: var(--accent-dark); }
.latest .ep-title { font-size: 1.15rem; font-weight: bold; margin-bottom: .6rem; }
details.novels summary {
  display: inline-block;
  background: #ff9933;
  color: #fff;
  padding: .55rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.05rem;
  list-style: none;
}
details.novels summary::-webkit-details-marker { display: none; }
details.novels summary:hover { background: var(--accent-dark); }
details.novels ul { margin-top: .8rem; }
article p.blank { margin: 0; }

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: #ff9933;
  color: #ffffff;
  text-decoration: none;
  font-size: .85rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  opacity: .92;
  z-index: 50;
}
.to-top:hover { background: #e07b1f; }

header.site nav.main { position: relative; }
header.site details.navd { position: static; }
header.site details.navd summary {
  cursor: pointer;
  color: #ffffff;
  font-size: .95rem;
  list-style: none;
  white-space: nowrap;
}
header.site details.navd summary::-webkit-details-marker { display: none; }
header.site details.navd summary::after { content: " ▾"; }
header.site details.navd .panel {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  min-width: 250px;
  max-width: calc(100vw - 2rem);
  padding: .4rem 0;
  z-index: 120;
}
header.site details.navd .panel a {
  display: block;
  color: var(--ink);
  padding: .45rem 1rem;
  font-size: .92rem;
  white-space: normal;
}
header.site details.navd .panel a:hover { background: #fff0d6; text-decoration: none; }
header.site details.navd .panel a.all {
  border-top: 1px solid var(--line);
  color: var(--accent-dark);
  font-weight: bold;
}

.latest .ep-date {
  text-align: right;
  font-size: .85rem;
  color: var(--accent-dark);
  margin: -.4rem 0 .8rem;
}
.to-top { padding: .6rem .85rem; font-size: 1rem; }

ul.worklist { list-style: none; margin: 0; padding: 0; }
ul.worklist li { padding: 1rem .2rem; border-bottom: 1px solid var(--line); }
ul.worklist li:last-child { border-bottom: none; }
ul.worklist a.wtitle { font-size: 1.35rem; font-weight: bold; color: var(--ink); text-decoration: none; }
ul.worklist a.wtitle:hover { color: var(--accent-dark); text-decoration: underline; }
ul.worklist .wsub { margin: .25rem 0 0; font-size: .95rem; color: #6b5138; }
ul.worklist .wmeta { margin: .25rem 0 0; font-size: .85rem; color: var(--accent-dark); }

.arcrow { display: flex; align-items: baseline; justify-content: space-between; column-gap: 1rem; }
.arc { color: var(--accent-dark); font-size: .9rem; }

.boten { text-emphasis-style: filled dot; text-emphasis-position: over right; }
