:root {
  color-scheme: dark;
  --ground: #111914;
  --deep: #0c120e;
  --ink: #f2edde;
  --soft: #c3c7b9;
  --gold: #dec495;
  --rule: #465147;
  --serif: "Iowan Old Style", "Palatino Linotype", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --shell: min(76rem, calc(100% - clamp(2.25rem, 9vw, 10rem)));
  font: 100%/1.65 var(--sans);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--ground); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: #fff5dd; }
:focus-visible { outline: 3px solid #ffe7aa; outline-offset: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; text-wrap: balance; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { line-height: 1.38; }
h1, h2, h3, p { margin-block: 0; }
p + p { margin-block-start: 1.1em; }
button, input, summary { font: inherit; }
input, button { color: inherit; }
.skip-link { position: absolute; z-index: 9; top: .6rem; left: .75rem; padding: .6rem 1rem; background: var(--ink); color: var(--deep); transform: translateY(-170%); }
.skip-link:focus { transform: none; color: var(--deep); }
.site-header { position: relative; z-index: 3; background: var(--deep); border-bottom: 1px solid var(--rule); }
.header-inner { width: var(--shell); margin: auto; display: flex; align-items: center; gap: clamp(.7rem, 2.1vw, 2.35rem); min-height: 4.65rem; }
.wordmark { margin-right: auto; color: var(--ink); text-decoration: none; font: 600 1.25rem/1.2 var(--serif); letter-spacing: .035em; }
.wordmark, .language-switch, .main-nav a, .mobile-nav a, .nav-disclosure summary { min-height: 44px; display: inline-flex; align-items: center; }
.main-nav { display: flex; align-items: center; gap: clamp(.65rem, 1.3vw, 1.5rem); }
.main-nav a, .mobile-nav a, .language-switch, .nav-disclosure summary { font-size: .85rem; color: var(--soft); text-decoration: none; }
.main-nav [aria-current], .mobile-nav [aria-current], .main-nav a:hover, .mobile-nav a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: .5rem; }
.language-switch { color: var(--gold); border-left: 1px solid var(--rule); padding-left: 1rem; }
.nav-disclosure { display: none; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(42rem, 70svh); display: grid; align-items: center; border-bottom: 1px solid var(--rule); background: #0a100c; }
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg, #0a100cdf 0%, #0a100cba 33%, #0a100c18 65%, transparent 100%); }
.hero-copy { width: var(--shell); margin: auto; padding: clamp(3rem, 8vw, 8.5rem) 0; }
.eyebrow, .entry-meta { font-size: .75rem; font-weight: 600; color: var(--gold); letter-spacing: .1em; }
.eyebrow { margin-bottom: .9rem; }
.hero h1 { max-width: 11ch; font-size: clamp(3.15rem, 6.7vw, 6.6rem); letter-spacing: -.035em; line-height: 1.09; }
.hero h1:lang(ja) { max-width: 10em; letter-spacing: .015em; font-size: clamp(2.85rem, 5.6vw, 6.2rem); }
.lede { font: 400 clamp(1.06rem, 1.65vw, 1.35rem)/1.72 var(--serif); color: var(--soft); max-width: 48rem; }
.hero .lede { color: #e2e2d2; max-width: min(33rem, 46%); margin-top: 1.15rem; }
.actions { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--gold); background: var(--gold); padding: .63rem 1.12rem; color: var(--deep); font-size: .9rem; font-weight: 650; text-decoration: none; transition: background .17s, color .17s; }
.button:hover { background: #fff1ce; color: var(--deep); }
.section, .page-shell { width: var(--shell); margin-inline: auto; }
.section { padding-block: clamp(2.5rem, 6.5vw, 5.75rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section h2, .prose h2, .related h2, .section-heading h2 { font-size: clamp(1.65rem, 3vw, 2.8rem); }
.section-heading { margin-bottom: 1.5rem; }
.section-heading p { max-width: 43rem; color: var(--soft); margin-top: .5rem; }
.entry-list, .contents-list { list-style: none; margin: 0; padding: 0; }
.entry-list > li, .contents-list > li { border-top: 1px solid var(--rule); }
.entry-list > li:last-child, .contents-list > li:last-child { border-bottom: 1px solid var(--rule); }
.entry-row { min-height: 4rem; text-decoration: none; color: var(--ink); display: grid; grid-template-columns: minmax(5rem, .3fr) minmax(12rem, 2fr) 1.3rem; align-items: baseline; gap: .5rem 1.25rem; padding: 1.32rem .25rem; transition: background .17s ease; }
.entry-row:hover { background: #202c22; }
.entry-body { display: grid; grid-template-columns: 1fr minmax(9rem, .85fr); align-items: baseline; gap: .4rem 1.4rem; }
.entry-title { font: 500 clamp(1.2rem, 2.1vw, 1.65rem)/1.45 var(--serif); }
.entry-desc { color: var(--soft); font-size: .95rem; }
.arrow { color: var(--gold); justify-self: end; font-size: 1.1rem; }
.page-shell > .section { width: 100%; padding-block: clamp(1.5rem, 3.2vw, 3rem); }
.breadcrumbs li + li::before { content: "›"; margin-right: .5rem; color: var(--soft); }
.footer-inner { display: flex; gap: .7rem 1.7rem; align-items: center; flex-wrap: wrap; }
.page-shell { padding-bottom: clamp(3.5rem, 6vw, 6rem); }
.breadcrumbs { padding-block: 1.1rem; color: var(--soft); font-size: .84rem; overflow-wrap: anywhere; }
.breadcrumbs ol, .breadcrumbs ul { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.breadcrumbs a { color: var(--soft); }
.page-intro { padding-block: clamp(2.25rem, 5vw, 4.75rem); border-bottom: 1px solid var(--rule); margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.page-intro h1 { font-size: clamp(2.35rem, 5.2vw, 5rem); line-height: 1.16; max-width: 24ch; }
.page-intro h1:lang(ja) { max-width: 20em; }
.page-intro .lede { margin-top: 1rem; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 44rem) minmax(13rem, 1fr); gap: clamp(2rem, 7vw, 8rem); align-items: start; }
.prose { max-width: 44rem; overflow-wrap: anywhere; }
.prose p, .prose li { line-height: 1.93; }
.prose h2, .prose h3 { margin: 2.4rem 0 .85rem; }
.prose > :first-child, .prose section:first-child > :first-child { margin-top: 0; }
.prose h3 { font-size: 1.4rem; }
.prose ol, .prose ul { padding-inline-start: 1.5rem; }
.prose li + li { margin-top: .52rem; }
.prose dl { margin: 1.5rem 0; }
.prose dt { border-top: 1px solid var(--rule); padding-top: .85rem; font-weight: 650; color: var(--gold); }
.prose dd { margin: .28rem 0 1.1rem; }
.chapter-contents summary { cursor: pointer; min-height: 44px; font: 500 1.25rem/1.6 var(--serif); color: var(--ink); }
.contents-list [aria-current="page"] { color: var(--ink); font-weight: 700; }
.reading-aside { border-left: 1px solid var(--rule); padding-left: clamp(1rem, 2.2vw, 2rem); color: var(--soft); font-size: .9rem; }
.reading-aside h2, .reading-aside h3 { color: var(--ink); font-size: 1.27rem; margin: 0 0 .75rem; }
.reading-aside section + section { margin-top: 1.8rem; }
.contents-list a { display: block; padding-block: .65rem; }
.source-note { padding: 1rem 1.2rem; border-inline-start: 2px solid var(--gold); background: #1b261d; }
.source-note, .related { margin-block: 2rem; }
.chapter-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.1rem; margin-top: 2.2rem; border-top: 1px solid var(--rule); }
.chapter-nav a { padding: .5rem 0; }
.search-form { color: var(--soft); margin-block: 1.4rem; }
.search-form label { display: block; margin-bottom: .35rem; }
.search-form input { width: min(30rem, 100%); margin: 0 .45rem .45rem 0; }
#search-status { margin: 0 0 .7rem; color: var(--soft); }
input[type="search"], input[type="text"] { max-width: 100%; min-height: 44px; padding: .65rem 1rem; border: 1px solid #9ca893; background: var(--deep); border-radius: 0; }
.site-footer { padding: 2rem max(calc((100% - 76rem) / 2), clamp(1.125rem, 4.5vw, 5rem)); background: var(--deep); border-top: 1px solid var(--rule); color: var(--soft); font-size: .88rem; }
.site-footer a { padding-block: .5rem; }
@media (min-width: 52rem) and (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: arrive .55s ease-out both; }
  @keyframes arrive { from { opacity: .05; transform: translateY(.4rem); } to { opacity: 1; transform: none; } }
}
@media (max-width: 62rem) {
  .main-nav { display: none; }
  .nav-disclosure { display: block; }
  .nav-disclosure summary { cursor: pointer; gap: .3rem; padding-inline: .35rem; color: var(--ink); }
  .nav-disclosure summary::after { content: "＋"; font-size: .85rem; }
  .nav-disclosure[open] summary::after { content: "−"; }
  .mobile-nav { display: grid; position: absolute; left: 0; right: 0; top: 100%; background: var(--deep); padding: .65rem max(1.125rem, 4.5vw) 1.1rem; border-bottom: 1px solid var(--gold); }
  .mobile-nav a { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 48rem) {
  .header-inner { min-height: 3.7rem; }
  .wordmark { font-size: 1.08rem; }
  .language-switch { padding-left: .65rem; }
  .hero { min-height: 31rem; align-items: end; }
  .hero-image { object-position: 77% center; }
  .hero::after { background: linear-gradient(to top, #0a100c 1%, #0a100ce6 34%, #0a100c82 62%, #0a100c12 95%); }
  .hero-copy { padding-block: 12rem 2.1rem; }
  .hero h1 { max-width: 100%; font-size: clamp(2.8rem, 9.8vw, 4rem); }
  .hero .lede { max-width: 36rem; font-size: 1.05rem; }
  .reading-layout { display: block; }
  .reading-aside { border-left: 0; border-top: 1px solid var(--rule); padding: 1.5rem 0 0; margin-top: 2.25rem; }
  .entry-row { grid-template-columns: minmax(0, 1fr) 1.25rem; gap: .34rem .6rem; padding: 1rem 0; }
  .entry-meta, .entry-body { grid-column: 1; }
  .entry-body { display: grid; grid-template-columns: 1fr; gap: .25rem; }
  .arrow { grid-column: 2; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.pricing { max-width: 66rem; }
.pricing .page-intro { border-bottom: 0; padding-bottom: 0; margin-bottom: 1.25rem; }
.price-status { max-width: 48rem; margin: 0 0 clamp(1.75rem, 4vw, 3rem); }
.price-access, .price-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 1.4rem;
  border-top: 1px solid var(--rule);
  padding-block: clamp(1.2rem, 3vw, 2rem);
}
.price-access h2, .price-row h3 { font-size: clamp(1.3rem, 2.6vw, 2rem); }
.price-access a { display: inline-block; margin-top: .45rem; }
.price-access p, .price-options > p, .price-terms, .price-manage p { color: var(--soft); }
.price-options { border-top: 1px solid var(--rule); padding-top: clamp(1.75rem, 4vw, 3rem); }
.price-options h2, .price-manage h2 { font-size: clamp(1.65rem, 3vw, 2.65rem); margin-bottom: .7rem; }
.price-plans { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.price-value { white-space: nowrap; margin: 0; }
.price-amount { font: 500 clamp(1.7rem, 3.1vw, 2.65rem)/1.3 var(--serif); color: var(--gold); }
.price-unit { font-size: .9rem; color: var(--soft); }
.price-row .price-terms { margin: 0; }
.price-manage { border-top: 1px solid var(--rule); padding-top: 1.6rem; }
.reading-prices { margin-block: 1rem; }
@media (max-width: 48rem) {
  .price-access, .price-row { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem 1rem; }
  .price-access > div, .price-terms { grid-column: 1 / -1; }
}
