@charset "UTF-8";
:root {
  --forest: #101f1b;
  --deep: #0b1613;
  --gold: #a68b51;
  --gold-light: #d0b878;
  --paper: #f1eddf;
  --ink: #29271f;
  --muted: #6e6859;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--deep);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  background:
    radial-gradient(ellipse at 8% 16%, #26382c77, transparent 40%),
    repeating-linear-gradient(32deg, #17251e20 0 1px, transparent 1px 6px),
    #0d1b17;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
a:hover {
  color: #8b672a;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #c99742;
  outline-offset: 4px;
}
.site-wrap {
  max-width: 1440px;
  margin: 0 auto;
  border: 1px solid var(--gold);
  border-top: 0;
  box-shadow: 0 0 60px #0006;
}
.masthead {
  height: 174px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f3e6c3;
  overflow: hidden;
  background: #0d1c16;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #14271c, transparent 50%);
  pointer-events: none;
}
.masthead:after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid #b29c5226;
  pointer-events: none;
}
.brand {
  text-align: center;
  position: relative;
  z-index: 1;
}
.brand p {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.25em;
  margin: 0 0 2px;
}
.site-title {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 64px;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-decoration: none;
  text-shadow: 2px 3px 0 #0007;
}
.site-title:hover {
  color: #fff1c9;
}
.brand .tagline {
  font-size: 15px;
  letter-spacing: 0.32em;
}
.header-search {
  position: absolute;
  right: 18px;
  bottom: 15px;
  display: flex;
  width: 216px;
  border: 1px solid var(--gold);
  z-index: 2;
  background: #0b1513e6;
  line-height: 1.5;
}
.header-search input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #f1ead5;
  padding: 6px 10px;
  font-size: 12px;
}
.header-search input::placeholder {
  color: #d7d1bf;
}
.header-search button {
  border: 0;
  border-left: 1px solid var(--gold);
  background: #24352b;
  color: #d8b66f;
  font-size: 26px;
  line-height: 1;
  width: 35px;
  cursor: pointer;
}
.content-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 290px;
  gap: 12px;
  padding: 12px 12px 0;
}
.left-sidebar,
.right-sidebar {
  min-width: 0;
  color: #ede7d5;
}
.dark-panel,
.menu {
  border: 1px solid var(--gold);
  margin: 0 0 13px;
  background: linear-gradient(135deg, #24362b40, #0b1513a0);
  box-shadow: inset 0 0 0 3px #0002;
}
.menu summary {
  list-style: none;
  cursor: pointer;
  padding: 7px 19px;
  font-family: Georgia, var(--serif);
  letter-spacing: 0.12em;
  color: #f4e8c7;
  border-bottom: 1px solid var(--gold);
  font-size: 19px;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary > span {
  color: var(--gold);
  font-size: 16px;
  margin-left: 16px;
}
.menu nav {
  padding: 3px 12px 9px;
}
.menu nav > a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-bottom: 1px solid #8f80556b;
  padding: 7px 0;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.06em;
}
.menu nav > a:last-child {
  border: 0;
}
.menu nav > a:hover,
.menu nav > a[aria-current] {
  color: #f1cf8d;
  background: #a38d4920;
}
.menu-arrow {
  font-size: 11px;
  color: #c4a16a;
}
.menu-icon {
  font-family: Georgia, serif;
  font-size: 26px;
  color: #b79b62;
  width: 28px;
  text-align: center;
  line-height: 1.2;
  text-shadow: 2px 2px #000;
}
.dark-panel h2 {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin: 0;
  padding: 6px 10px;
  border-bottom: 1px solid #8e805466;
  white-space: nowrap;
}
.dark-panel h2 > span {
  color: var(--gold);
  margin-right: 10px;
}
.updates {
  padding: 0 10px 10px;
}
.updates h2 {
  padding-left: 0;
}
.updates ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.updates li {
  border-bottom: 1px solid #99825270;
  padding: 9px 2px;
  font-size: 12px;
  line-height: 1.7;
}
.updates time {
  display: block;
  color: #d4c7aa;
  font-family: Georgia, serif;
  font-size: 13px;
}
.updates time:before {
  content: "▸ ";
  color: #c0a16a;
}
.updates li a {
  text-decoration: none;
}
.updates a:hover {
  color: #dfbe7d;
}
.small-link {
  display: block;
  font-size: 11px;
  padding-top: 6px;
  text-align: right;
  color: #ddd1ae;
}
.small-banner {
  min-height: 104px;
  border: 3px double var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #e8dfbf;
  margin: 12px 0;
  background:
    linear-gradient(90deg, #0c211cd9, #15271be3),
    url("/images/lineage/classic-art.jpg") center/cover;
}
.small-banner span {
  font-family: var(--serif);
  font-size: 11px;
}
.small-banner strong {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.06em;
}
.small-banner small {
  font-size: 9px;
  letter-spacing: 0.12em;
}
.tag-panel {
  margin-top: 14px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
}
.tags a {
  font-size: 12px;
  border: 1px solid #b5a173;
  padding: 2px 9px;
  text-decoration: none;
}
.tag-panel .tags {
  padding: 0 10px;
  margin: 12px 0;
}
.tag-panel .tags a {
  border-color: #746d48;
  color: #dfd5b9;
}
.paper {
  background:
    radial-gradient(ellipse at 80% 5%, #fff9e650, transparent),
    repeating-linear-gradient(110deg, #bdaa7910 0 1px, transparent 1px 5px),
    var(--paper);
  padding: 12px 18px 20px;
  min-width: 0;
  border: 1px solid #b4a174;
  box-shadow: inset 0 0 25px #9b83551c;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 2px solid #70603e;
  margin-bottom: 13px;
  padding-bottom: 4px;
}
.section-heading h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.6;
}
.section-heading h1 > span {
  color: #78623c;
  margin-right: 8px;
}
.section-heading > span {
  font-size: 10px;
  color: #7b715a;
  white-space: nowrap;
}
.article-card {
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid #aa9f88;
  padding: 14px 0;
}
.article-card:first-child {
  padding-top: 0;
}
.thumb {
  display: block;
  position: relative;
  align-self: start;
  border: 1px solid #706b53;
  overflow: hidden;
  background: #334135;
}
.thumb img {
  display: block;
  width: 100%;
  height: 152px;
  object-fit: cover;
  transition: filter 0.15s;
}
.thumb:hover img {
  filter: brightness(1.1);
}
.featured .thumb img {
  height: 230px;
}
.image-label {
  position: absolute;
  bottom: 4px;
  left: 5px;
  font: 8px var(--sans);
  letter-spacing: 0.14em;
  background: #0b1716b8;
  color: #f3ead5;
  padding: 2px 5px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}
.category-label {
  background: #75644a;
  color: #fff8e5;
  font-family: var(--serif);
  padding: 1px 12px;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.7;
}
.category-label:hover {
  color: #fff;
  background: #58482f;
}
.card-top time {
  font:
    10px Georgia,
    serif;
  color: #81745f;
}
.card-copy {
  display: flex;
  flex-direction: column;
}
.card-copy h2 {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  margin: 7px 0 6px;
  font-weight: 700;
  letter-spacing: 0.025em;
}
.featured h2 {
  font-size: 26px;
}
.card-copy h2 a {
  text-decoration: none;
}
.card-copy > p {
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured .card-copy > p {
  -webkit-line-clamp: 5;
}
.read-more {
  font-family: var(--serif);
  font-size: 12px;
  align-self: flex-end;
  margin-top: auto;
  padding-top: 5px;
}
.read-more span {
  margin-left: 10px;
}
.archive-link {
  display: block;
  border: 1px solid #aa9872;
  text-align: center;
  padding: 7px;
  margin: 18px auto 8px;
  max-width: 280px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 13px;
}
.archive-link span {
  margin-left: 20px;
}
.demo-caption {
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.07em;
  color: #80765f;
  margin-bottom: 0;
}
.map-panel {
  padding: 0 4px 5px;
}
.map-panel h2 {
  border: 0;
  padding-left: 5px;
}
.map-link {
  display: block;
  position: relative;
  text-decoration: none;
}
.map-link img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px double #b9a06a;
}
.map-link > span {
  display: flex;
  justify-content: space-between;
  padding: 5px 12px;
  background: #15221a;
  color: #e5d9b8;
  font-family: var(--serif);
  font-size: 13px;
  border: 1px solid #a18d5d;
  border-top: 0;
}
.asset-note {
  font-size: 9px;
  text-align: center;
  margin: 4px 0 0;
  color: #b6aa8a;
}
.about-art {
  position: relative;
  background: #e7dfcb;
  color: #292b24;
  border: 3px double #bca36d;
  margin: 5px;
}
.about-art img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
}
.about-art > p {
  background: #f0e6cced;
  padding: 6px 8px;
  position: absolute;
  right: 9px;
  top: 4px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.about-copy {
  font-size: 11px;
  line-height: 1.9;
  padding: 0 12px;
  margin: 8px 0;
}
.about-panel .small-link {
  padding: 0 12px 10px;
}
.side-motto {
  text-align: center;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #ac9c72;
  line-height: 2.3;
  margin: 30px 0;
}
footer {
  border-top: 1px solid #867445;
  color: #c9c8b5;
  margin-top: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 11px;
  line-height: 1.7;
}
footer p {
  margin: 0;
  text-align: center;
}
footer small {
  font-size: 9px;
  color: #9b9f8f;
}
footer a {
  font-size: 10px;
  white-space: nowrap;
}
.footer-mark {
  color: #af945c;
  font-size: 22px;
}
.breadcrumbs {
  font-size: 11px;
  color: #7d715b;
  margin-bottom: 16px;
}
.article-detail h1 {
  font: 700 32px/1.6 var(--serif);
  margin: 8px 0 14px;
}
.eyebrow {
  font-size: 12px;
  color: #76613d;
  letter-spacing: 0.1em;
}
.eyebrow span {
  font-size: 11px;
}
.meta {
  font-size: 11px;
  color: #776d5a;
  border-bottom: 1px solid #c5b99c;
  padding-bottom: 12px;
}
.lead {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2;
}
.article-detail figure {
  margin: 24px 0;
}
.article-detail img {
  width: 100%;
  height: auto;
}
.article-detail .cover {
  max-height: 400px;
  object-fit: cover;
}
.article-detail figcaption {
  font-size: 11px;
  color: #716950;
  text-align: center;
}
.sample-note {
  font-size: 11px;
  color: #74664b;
  border-left: 3px solid #aa9055;
  padding-left: 10px;
  margin: 20px 0;
}
.toc {
  border: 1px solid #b2a17a;
  padding: 15px 23px;
  background: #e3dcca70;
  font-size: 14px;
}
.toc ol {
  margin: 7px 0;
  padding-left: 22px;
}
.toc a {
  text-decoration: none;
}
.prose {
  font-size: 16px;
  line-height: 2.05;
  overflow-wrap: anywhere;
}
.prose h2,
.related h2 {
  font: 700 23px/1.65 var(--serif);
  border-bottom: 1px solid #b6a681;
  border-left: 3px solid #9b804e;
  padding: 4px 0 4px 12px;
  margin: 35px 0 18px;
  scroll-margin-top: 18px;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 19px;
}
.prose p {
  margin: 18px 0;
}
.prose table {
  display: block;
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.8;
}
.prose th,
.prose td {
  border: 1px solid #b6a883;
  padding: 10px 14px;
  min-width: 100px;
}
.prose th {
  background: #d8cfb6;
}
.prose blockquote {
  border-left: 3px solid #b6a171;
  margin: 20px 0;
  padding: 1px 20px;
  color: #6b604c;
}
.callout {
  border: 1px solid #a89566;
  background: #e1d8bf88;
  padding: 16px 20px;
  margin: 24px 0;
}
.callout strong {
  font-family: var(--serif);
  color: #6e552e;
}
.callout p {
  margin: 8px 0 0;
  font-size: 14px;
}
.conditions {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 8px;
  font-size: 12px;
  border-block: 1px solid #b2a17a;
  padding: 14px 0;
}
.conditions dt {
  color: #7b6948;
}
.conditions dd {
  margin: 0;
}
.related a {
  display: block;
  border-bottom: 1px solid #b6a883;
  padding: 12px 0;
  font-family: var(--serif);
}
.related a span {
  float: right;
}
.static-page {
  padding: 8px 8px 30px;
}
.static-page > h2:first-of-type {
  font-size: 30px;
}
.empty {
  padding: 55px 15px;
  text-align: center;
}
.empty h1 {
  font-family: var(--serif);
  font-size: 25px;
}
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.pagination a {
  border: 1px solid #ab9666;
  padding: 5px 13px;
  text-decoration: none;
}
.pagination a[aria-current] {
  background: #766445;
  color: #fff6de;
}
.search-form {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}
.search-form input {
  min-width: 0;
  width: 100%;
  padding: 10px;
  background: #fff9e9;
  border: 1px solid #ab9666;
}
.search-form button,
.preview-form button {
  background: #23372c;
  border: 1px solid #a89566;
  color: #f6e8c6;
  padding: 8px 18px;
  cursor: pointer;
  white-space: nowrap;
}
.search-status {
  font-size: 13px;
  color: #736347;
}
.search-result {
  border-bottom: 1px solid #b5a785;
  padding: 17px 0;
}
.search-result h2 {
  font: 700 22px/1.6 var(--serif);
  margin: 4px 0;
}
.search-result p {
  font-size: 13px;
  margin: 6px 0;
}
.preview-form label {
  display: block;
  font-size: 13px;
  margin: 13px 0;
}
.preview-form input {
  display: block;
  width: 100%;
  padding: 8px;
  border: 1px solid #a89566;
  background: #fff9e9;
}
.preview-form {
  margin: 20px 0;
}
.prose iframe {
  border: 0;
  width: 100%;
  aspect-ratio: 16/9;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 5px;
  left: 5px;
  z-index: 100;
  background: #fff4d4;
  padding: 8px;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
@media (min-width: 1441px) {
  .site-wrap {
    margin-top: 14px;
    margin-bottom: 24px;
  }
.banner {
    height: 177px;
  }
}
@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 195px minmax(0, 1fr) 230px;
    gap: 9px;
    padding: 9px 9px 0;
  }
.header-search {
    width: 185px;
    bottom: 8px;
  }
  .paper {
    padding: 11px 14px;
  }
  .article-card {
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 12px;
  }
  .card-copy h2 {
    font-size: 19px;
  }
  .featured h2 {
    font-size: 23px;
  }
  .heading-note {
    display: none;
  }
  .dark-panel h2 {
    font-size: 15px;
    letter-spacing: 0.04em;
  }
  .menu nav > a {
    font-size: 15px;
    gap: 8px;
  }
  .card-top time {
    display: none;
  }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .content-grid {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .right-sidebar {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .map-panel .map-link img {
    height: 210px;
    object-fit: cover;
  }
  .side-motto {
    display: none;
  }
  .right-sidebar .dark-panel {
    margin: 0;
  }
  .featured .thumb img {
    height: 230px;
  }
.brand .tagline {
    font-size: 13px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .site-wrap {
    border-inline: 0;
  }
.site-title {
    font-size: clamp(32px, 8.4vw, 52px);
    letter-spacing: 0.05em;
  }
.brand .tagline {
    font-size: 11px;
    letter-spacing: 0.15em;
  }
.banner {
    height: 110px;
  }
  .content-grid {
    display: flex;
    flex-direction: column;
    padding: 9px;
    gap: 10px;
  }
  .left-sidebar {
    display: contents;
  }
  .menu {
    order: -1;
    margin: 0;
  }
  .menu summary {
    padding: 7px 15px;
    font-size: 16px;
  }
  .menu summary:after {
    content: "メニューを開閉 ＋";
    font: 11px var(--sans);
    float: right;
    line-height: 2.5;
    letter-spacing: 0;
  }
  .menu nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
  }
  .menu nav > a {
    font-size: 15px;
  }
  .menu .menu-icon {
    font-size: 22px;
  }
  .paper {
    padding: 13px 15px 23px;
  }
  .updates,
  .small-banner,
  .tag-panel {
    display: none;
  }
  .section-heading h1 {
    font-size: 24px;
  }
  .article-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 21px 0;
  }
  .thumb img,
  .featured .thumb img {
    height: auto;
    aspect-ratio: 1.85;
    object-fit: cover;
  }
  .card-top time {
    display: block;
    font-size: 12px;
  }
  .category-label {
    font-size: 12px;
  }
  .card-copy h2,
  .featured h2 {
    font-size: 24px;
    line-height: 1.5;
    margin-top: 10px;
  }
  .card-copy > p {
    font-size: 14px;
    line-height: 1.95;
    -webkit-line-clamp: 3;
  }
  .featured .card-copy > p {
    -webkit-line-clamp: 3;
  }
  .read-more {
    font-size: 13px;
    padding-top: 12px;
  }
  .right-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .dark-panel h2 {
    font-size: 13px;
    white-space: normal;
  }
  .dark-panel h2 > span {
    margin-right: 3px;
  }
  .map-link img {
    aspect-ratio: 1;
    height: auto;
  }
  .map-link > span {
    font-size: 10px;
    padding: 5px;
  }
  .about-art img {
    height: 135px;
  }
  .about-art > p {
    font-size: 10px;
    top: 0;
    right: 3px;
  }
  .about-copy {
    font-size: 11px;
    padding: 0 8px;
  }
  .side-motto {
    display: none;
  }
  .asset-note {
    font-size: 8px;
  }
  .about-panel .small-link {
    font-size: 10px;
  }
  .article-detail h1 {
    font-size: 28px;
  }
  .prose {
    font-size: 16px;
    line-height: 2.1;
  }
  .prose h2 {
    font-size: 22px;
  }
  .lead {
    font-size: 17px;
  }
  .article-detail figcaption {
    font-size: 11px;
  }
  .static-page {
    padding-inline: 0;
  }
  .static-page > h2:first-of-type {
    font-size: 26px;
  }
  footer {
    padding: 18px 10px;
    gap: 14px;
    flex-wrap: wrap;
  }
  footer .footer-mark {
    display: none;
  }
  footer p {
    width: 100%;
    font-size: 10px;
  }
  footer small {
    font-size: 9px;
  }
  .search-form button {
    padding-inline: 12px;
  }
  .empty {
    padding: 30px 0;
  }
}
.recommendation {
  font-size: 10px;
  color: #80663a;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}
.card-copy h2,
.article-detail h1 {
  text-wrap: balance;
}
@media (max-width: 760px) {
  .right-sidebar {
    display: block;
  }
  .about-art img {
    height: 180px;
  }
  .about-art > p {
    font-size: 17px;
    top: 8px;
    right: 16px;
  }
  .map-link img {
    max-height: 360px;
    object-fit: cover;
  }
  .map-link > span {
    font-size: 13px;
  }
  .dark-panel h2 {
    font-size: 17px;
  }
  .about-copy {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .thumb img {
    transition: none;
  }
}

.article-detail {
  overflow-wrap: anywhere;
}
.article-detail img[src*="/images/lineage/"] {
  object-fit: contain;
  background: #14231a;
}
.map-link img {
  object-fit: contain;
}


.header-ornament { position:absolute; left:13%; font-size:70px; color:#bc9b62; opacity:.7; }
.banner { height:168px; border-top:2px solid var(--gold); border-bottom:3px double var(--gold); position:relative; background:#27372c; overflow:hidden; }
.banner img { width:100%; height:100%; object-fit:cover; display:block; }
.banner::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(90deg, transparent 59%, #102018d9 76%, #102018 100%); z-index:1; }
.banner .banner-character { position:absolute; inset:auto 12px -90px auto; height:315px; width:315px; object-fit:contain; object-position:center; z-index:2; pointer-events:none; }
.banner > span { position:absolute; bottom:5px; right:8px; font-size:8px; letter-spacing:.16em; color:#fff8e2; background:#122019b8; padding:0 5px; z-index:3; }
@media (min-width:1441px) { .masthead {height:180px;} .banner {height:177px;} }
@media (max-width:1200px) { .site-title {font-size:55px;} .header-ornament {left:7%;} .header-search {width:185px; bottom:8px;} }
@media (max-width:1000px) { .banner .banner-character {width:265px;height:290px;bottom:-86px;right:0;} }
@media (max-width:1000px) and (min-width:761px) { .header-search {width:165px;} .brand .tagline {font-size:13px;} .brand p {font-size:12px;} }
@media (max-width:760px) {
 .masthead {height:168px; padding-bottom:33px;}
 .site-title {font-size:clamp(32px,8.4vw,52px);letter-spacing:.05em;}
 .brand p {font-size:10px;letter-spacing:.12em;}
 .brand .tagline {font-size:11px;letter-spacing:.15em;}
 .header-ornament {display:none;}
 .header-search {right:50%;transform:translateX(50%);width:240px;bottom:10px;}
 .banner {height:110px;}
 .banner::after {background:linear-gradient(90deg,transparent 38%,#102018e6 75%,#102018);}
 .banner .banner-character {right:-10px;width:164px;height:190px;bottom:-54px;}
}

/* Original image, cropped by the banner viewport rather than redrawn. */
.banner .banner-character {
  inset: -160px auto auto calc(74% - 830px);
  width: 1700px;
  height: auto;
  max-width: none;
  object-fit: initial;
  mask-image: linear-gradient(90deg, transparent 32%, #000 42%, #000 54%, transparent 64%);
}
@media (min-width:1441px) { .banner .banner-character {top:-157px;} }
@media (max-width:760px) {
  .banner .banner-character {width:1100px;inset:-105px auto auto calc(73% - 535px);}
}

.header-pixel-character {
  position: absolute;
  left: max(12px, calc(50% - 460px));
  top: 25px;
  width: 100px;
  height: 124px;
  object-fit: contain;
  image-rendering: pixelated;
  z-index: 2;
  pointer-events: none;
}
@media (max-width:760px) {
  .header-pixel-character {left:4px;top:auto;bottom:12px;width:50px;height:68px;}
}

/* The illustrated Episode II package sets the tone without changing the page structure. */
.masthead {
  background: linear-gradient(90deg, #10231ef5, #10231ee6 65%, #10231ef5), url('/images/lineage/episode-two-original-art.webp') 50% 35% / cover;
}
.banner { height: 202px; background: #a6b9aa; }
.banner::after { background: linear-gradient(90deg, #152b2638, transparent 28%, transparent 78%, #152b2638); }
.banner .banner-scene { filter: saturate(.78) sepia(.08); }
.banner > span { font-size: 9px; background:#152820d9; }
.small-banner {
  background: linear-gradient(90deg, #132820d9, #132820b8), url('/images/lineage/episode-two-original-art.webp') 50% 48% / cover;
}
.about-art {height:222px;background:#ede6d3;overflow:hidden;}
.about-art img {height:222px;transform:scale(1.28);filter:saturate(.8);}
.about-art > p {top:auto;bottom:0;right:0;left:0;margin:0;padding:12px 6px;text-align:center;background:#f4eedfe8;color:#302e23;font-size:16px;}
@media (max-width:760px) {
 .banner {height:144px;}
 .banner .banner-scene {object-position:50% 43%;}
 .about-art {height:240px;}
 .about-art img {height:240px;}
 .about-art > p {top:auto;bottom:0;right:0;left:0;}
 .banner > span {font-size:7px;}
}


.banner {height:260px;}
.banner .banner-scene {object-position:50% 43%;filter:saturate(.86);}
@media(max-width:760px) { .banner {height:150px;} .banner .banner-scene {object-position:50% 50%;} }

/* Category colors are shared by cards, search results, article headings and navigation. */
[data-category="diary"] {--category-color:#406353;--category-hover:#304c3e;--category-light:#aecbb4;}
[data-category="guide"] {--category-color:#8c493a;--category-hover:#703a2e;--category-light:#e4ac95;}
[data-category="column"] {--category-color:#66527a;--category-hover:#504060;--category-light:#c8b3dd;}
[data-category="maps"] {--category-color:#365e77;--category-hover:#29495d;--category-light:#a4cadd;}
.category-label[data-category] {
  display:inline-block;
  background:var(--category-color);
  color:#fff8e8;
  border:1px solid #ffffff20;
}
a.category-label[data-category]:hover {background:var(--category-hover);color:#fff;}
.eyebrow .category-label {font-size:12px;letter-spacing:.06em;font-weight:600;}
.menu nav > a[data-category] .menu-icon,
.menu nav > a[data-category] .menu-arrow {color:var(--category-light);}
.menu nav > a[data-category]:hover,
.menu nav > a[data-category][aria-current] {color:var(--category-light);background:var(--category-color);}
.section-heading[data-category] {border-bottom-color:var(--category-color);}
.section-heading[data-category] h1 > span {color:var(--category-color);}

[data-category="database"] {--category-color:#77602d;--category-hover:#5c4922;--category-light:#dfc68d;}
/* Responsive layout shared by every public page and the CMS preview. */
img, video {max-width:100%;}
.card-copy, .article-list, .section-heading h1, .search-result {min-width:0;}
.card-copy h2, .section-heading h1, .breadcrumbs, .related a {overflow-wrap:anywhere;}
.table-scroll {max-width:100%;overflow-x:auto;margin:24px 0;overscroll-behavior-inline:contain;}
.table-scroll table {display:table;width:100%;min-width:480px;margin:0;}
.table-scroll:focus-visible {outline:3px solid #c99742;outline-offset:3px;}
@media (min-width:761px) and (max-width:1100px) {
  .content-grid {grid-template-columns:180px minmax(0,1fr);gap:12px;padding:12px 12px 0;}
  .right-sidebar {grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .right-sidebar .dark-panel {margin:0;}
  .side-motto {display:none;}
  .map-panel .map-link img {height:245px;object-fit:contain;}
  .about-art, .about-art img {height:245px;}
  .site-title {font-size:clamp(39px,5.3vw,55px);}
  .header-pixel-character {width:80px;height:108px;left:20px;top:32px;}
  .header-search {width:190px;}
  .brand p {font-size:11px;}
  .brand .tagline {font-size:13px;}
}
@media (max-width:760px) {
  .masthead {
    display:grid;
    grid-template-columns:46px minmax(0,1fr);
    grid-template-rows:auto auto;
    align-items:center;
    justify-content:stretch;
    gap:8px 10px;
    height:auto;
    min-height:170px;
    padding:17px 17px 13px;
  }
  .brand {grid-column:1/-1;min-width:0;text-align:center;}
  .brand p {font-size:clamp(9px,2.35vw,12px);letter-spacing:.07em;}
  .site-title {font-size:clamp(26px,7.6vw,51px);letter-spacing:.025em;line-height:1.4;}
  .brand .tagline {font-size:clamp(10px,2.7vw,14px);letter-spacing:.08em;}
  .header-pixel-character {position:static;grid-column:1;grid-row:2;width:46px;height:60px;justify-self:center;}
  .header-search {position:static;grid-column:2;grid-row:2;transform:none;width:100%;height:44px;}
  .header-search input {font-size:16px;padding:8px 10px;}
  .header-search button {width:44px;flex:0 0 44px;}
  .banner {height:auto;aspect-ratio:3/1;}
  .banner .banner-scene {position:absolute;inset:0;object-fit:cover;object-position:center!important;}
  .banner > span {font-size:7px;letter-spacing:0;max-width:calc(100% - 16px);}
  .content-grid {gap:12px;padding:10px 10px 0;}
  .menu summary {min-height:44px;display:flex;align-items:center;gap:8px;padding:8px 12px;}
  .menu summary::after {content:'メニューを開く ＋';float:none;margin-left:auto;line-height:1.5;font-size:11px;}
  .menu[open] summary::after {content:'閉じる −';}
  .menu nav {grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;padding:4px 12px 9px;}
  .menu nav > a {min-width:0;min-height:44px;gap:6px;letter-spacing:0;font-size:14px;}
  .menu .menu-icon {flex:0 0 22px;width:22px;font-size:21px;}
  .menu-arrow {display:none;}
  .paper {order:0;padding:15px 16px 24px;}
  .right-sidebar {order:1;}
  .updates {order:2;display:block;margin:0;}
  .tag-panel {order:3;display:block;margin:0;}
  .updates ul {padding-inline:13px;}
  .section-heading {align-items:flex-start;}
  .section-heading h1 {font-size:clamp(21px,5.6vw,27px);letter-spacing:.04em;}
  .section-heading > span {flex-shrink:0;padding-top:5px;font-size:12px;}
  .article-card {grid-template-columns:minmax(0,1fr);gap:12px;}
  .card-copy h2, .featured h2 {font-size:clamp(21px,5.8vw,27px);text-wrap:balance;}
  .card-copy > p {font-size:15px;line-height:1.9;}
  .thumb img, .featured .thumb img {height:auto;aspect-ratio:1.85;}
  .card-top {flex-wrap:wrap;gap:7px;}
  .card-top time {font-size:12px;}
  .category-label {font-size:13px;padding:2px 11px;}
  .read-more {min-height:44px;display:inline-flex;align-items:center;padding-block:6px;font-size:14px;}
  .article-detail h1 {font-size:clamp(25px,6.7vw,32px);line-height:1.6;text-wrap:wrap;}
  .article-detail figcaption {font-size:12px;line-height:1.8;}
  .prose {font-size:16px;line-height:2;}
  .prose h2 {font-size:22px;}
  .prose figure, .article-detail figure {margin-inline:0;}
  .toc {padding:14px;}
  .toc ol {padding-left:22px;}
  .toc a {display:inline-block;padding-block:4px;}
  .conditions {grid-template-columns:minmax(0,1fr);}
  .conditions dt {padding-bottom:0;}
  .conditions dd {padding-top:3px;}
  .tags a, .pagination a {min-height:40px;display:inline-flex;align-items:center;justify-content:center;}
  .related a {min-height:44px;gap:10px;}
  .search-form {display:flex;min-width:0;}
  .search-form input {width:100%;min-width:0;font-size:16px;}
  .search-form button {min-height:44px;flex-shrink:0;font-size:14px;padding-inline:10px;}
  .map-link > span, .about-copy {font-size:14px;}
  .asset-note, .about-panel .small-link {font-size:12px;}
  .asset-note {overflow-wrap:anywhere;}
  .about-art > p {font-size:16px;}
  footer {padding:20px 16px;gap:8px 18px;}
  footer p, footer small {font-size:11px;line-height:1.9;}
  footer a {font-size:13px;min-height:44px;display:inline-flex;align-items:center;}
}
@media (max-width:359px) {
 .masthead {padding-inline:13px;grid-template-columns:40px minmax(0,1fr);gap:6px 8px;}
 .header-pixel-character {width:40px;height:56px;}
 .menu nav {gap:0 8px;padding-inline:10px;}
 .menu nav > a {font-size:13px;}
 .paper {padding-inline:13px;}
}

@media (min-width:761px) and (max-width:1100px) { .menu summary {display:flex;align-items:center;justify-content:space-between;gap:6px;padding-inline:12px;font-size:17px;letter-spacing:.08em;} }

/* Thumb-reachable mobile navigation, enhanced from the regular no-JS menu. */
.mobile-menu-entry[hidden] {display:none;}
.mobile-navigation {color:#f4eedc;background:#12251e;border:1px solid var(--gold);padding:0;font-family:var(--sans);}
.mobile-navigation:not([open]) {display:none;}
.mobile-navigation::backdrop {background:#020a08b8;}
.mobile-navigation-open, .mobile-navigation-open body {overflow:hidden;overscroll-behavior:none;}
@media(max-width:760px) {
  .mobile-navigation-enabled {scroll-padding-top:68px;}
  .mobile-navigation-enabled .menu {display:none;}
  .mobile-menu-entry {position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:12px;width:calc(100% - 20px);min-height:52px;margin:10px 10px 0;padding:10px 14px;background:#14291f;color:#f4ecd8;border:1px solid var(--gold);box-shadow:0 3px 10px #0004;text-align:left;cursor:pointer;}
  .mobile-menu-entry > span {font:600 17px var(--serif);}
  .mobile-menu-entry > b {font-size:21px;line-height:1;color:#d8c28a;}
  .mobile-menu-entry:active {background:#2d4937;}
  .mobile-navigation[open] {display:grid;grid-template-rows:auto minmax(0,1fr);position:fixed;inset:0 0 auto auto;margin:0;width:min(100%,480px);max-width:100%;height:min(90vh,760px);height:min(90dvh,760px);max-height:100%;border-top:0;border-right:0;box-shadow:0 8px 36px #0005;}
  .mobile-navigation-header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #8b784b;background:#102219;}
  .mobile-navigation-header p {margin:0 0 3px;color:#cbbb91;font-size:11px;letter-spacing:.08em;}
  .mobile-navigation-header h2 {margin:0;font:600 22px/1.4 var(--serif);color:#f6e8c5;}
  .mobile-navigation-close {display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 10px;border:1px solid #8e7b50;background:#1c3327;color:#f8efda;font-size:14px;cursor:pointer;}
  .mobile-navigation-close > span {font-size:25px;line-height:1;}
  .mobile-navigation-body {min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 16px calc(14px + env(safe-area-inset-bottom,0px));}
  .mobile-navigation-search {margin:0 0 17px;}
  .mobile-navigation-search label {display:block;margin-bottom:7px;color:#d9ca9d;font-size:12px;}
  .mobile-navigation-search > div {display:flex;min-height:46px;}
  .mobile-navigation-search input {min-width:0;flex:1;width:100%;font-size:16px;color:#29291e;background:#f2ecdb;border:1px solid #b4a16f;padding:10px;}
  .mobile-navigation-search button {min-width:58px;border:1px solid #b4a16f;border-left:0;background:#a58a4f;color:#102219;font-size:15px;font-weight:600;cursor:pointer;}
  .mobile-navigation nav {border-top:1px solid #776744;}
  .mobile-navigation nav > a {display:flex;align-items:center;gap:12px;min-height:66px;padding:10px 9px;border-bottom:1px solid #77674480;text-decoration:none;color:#f5eedb;}
  .mobile-navigation nav > a:active, .mobile-navigation nav > a:hover {background:#233d2d;}
  .mobile-navigation nav > a[aria-current] {background:#263e2e;box-shadow:inset 3px 0 var(--category-light,#d3b574);}
  .mobile-navigation-icon {flex:0 0 28px;text-align:center;color:var(--category-light,#d3b574);font:26px/1 Georgia,serif;}
  .mobile-navigation-label {min-width:0;font:600 17px/1.5 var(--serif);}
  .mobile-navigation-label small {display:block;color:#c0c4b6;font:12px/1.6 var(--sans);margin-top:2px;}
  .mobile-navigation-state {flex-shrink:0;margin-left:auto;font-size:11px;color:var(--category-light,#d3b574);}
  .mobile-navigation-state:not(:empty) {min-width:20px;text-align:right;}
  .mobile-navigation-about {display:flex;align-items:center;justify-content:space-between;min-height:48px;margin-top:7px;padding:10px 9px;text-decoration:none;font-size:13px;color:#ddc997;}
}


/* Ads stay separate from editorial links; no overlay or tracking scripts. */
.affiliate-disclosure {font-size:12px;color:#6e6859;border-bottom:1px solid #b6aa8b;padding-bottom:8px;margin:0 0 16px;}
.affiliate-ad {border:1px solid #a68b51;padding:14px;margin:28px 0;background:#eae5d6;font-family:var(--sans);}
.affiliate-label {display:block;font-size:11px;letter-spacing:.08em;color:#675a3c;margin-bottom:9px;}
.affiliate-ad a {display:block;text-decoration:none;}
.affiliate-ad img {display:block;width:100%;height:auto;max-height:260px;object-fit:contain;margin:0 auto 12px;}
.affiliate-ad strong {display:block;font-size:16px;line-height:1.7;text-decoration:underline;text-underline-offset:3px;}
.affiliate-ad p {font-size:13px;line-height:1.9;margin:8px 0 0;}
.affiliate-ad--sidebar {background:#14291f;color:#f2e8d0;margin:0 0 12px;padding:12px;}
.affiliate-ad--sidebar .affiliate-label {color:#d8c28a;}
@media(max-width:760px) {.affiliate-ad--sidebar {display:none;}.affiliate-ad--article {margin-block:24px;}}
/* Keep sentence endings together instead of balancing Japanese by character. */
.card-copy h2 {
  text-wrap: wrap;
  overflow-wrap: normal;
  letter-spacing: .01em;
}
.card-copy .title-phrase {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  vertical-align: top;
}
@media (min-width: 761px) {
  .card-copy h2, .featured h2 {
    font-size: clamp(20px, 1.65vw, 24px);
    line-height: 1.55;
  }
}
@media (max-width: 760px) {
  .card-copy h2, .featured h2 {
    text-wrap: wrap;
  }
}

/* Article topic changes need a clear visual landmark on the paper background. */
.article-detail .prose h2,
.admin-body .tiptap h2 {
  background: #203e33;
  color: #fff5df;
  border: 1px solid #9b8352;
  border-left: 5px solid #bda36b;
  padding: 14px 18px;
  margin: 48px 0 22px;
  font: 700 23px/1.6 var(--serif);
  letter-spacing: .02em;
  scroll-margin-top: 80px;
}
.article-detail .prose h2 a { color: inherit; }
.article-detail .prose h3,
.admin-body .tiptap h3 {
  background: #e3ddc9;
  color: #203e33;
  border-left: 3px solid #9b8352;
  border-bottom: 1px solid #aaa084;
  padding: 8px 13px;
  margin: 32px 0 16px;
  font: 700 20px/1.65 var(--serif);
  scroll-margin-top: 80px;
}
@media (max-width: 760px) {
  .article-detail .prose h2,
  .admin-body .tiptap h2 {
    font-size: 21px;
    padding: 12px 14px;
    margin-top: 38px;
  }
  .article-detail .prose h3, .admin-body .tiptap h3 {font-size: 19px;}
}

/* Article contents: no numbering. */
.article-detail .toc ol { list-style: none; padding-left: 0; }

/* Show every listing thumbnail in its original proportions. */
.article-list .article-card .thumb { height: auto; aspect-ratio: auto; }
.article-list .article-card .thumb img { width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; }
