*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#0d1420;color:#ede7d9;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;line-height:1.8}a{color:inherit}.site-header{padding:20px clamp(20px,5vw,78px);display:flex;gap:16px;justify-content:space-between;align-items:center;border-bottom:1px solid #5e523e;background:#101927}.brand{text-decoration:none;display:flex;flex-direction:column;line-height:1.4}.brand-name{font-size:23px;letter-spacing:.13em;color:#d6b879}.reading{font-size:10px;letter-spacing:.2em;color:#afaba4}.state{font:11px system-ui,sans-serif;color:#a9a194}.hero{position:relative;isolation:isolate;padding:clamp(75px,11vw,165px) clamp(22px,11vw,160px);min-height:66vh;background:#101a28 url("./assets/myth-ark-hero.webp") center 48%/cover no-repeat}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(7,15,26,.80) 0%,rgba(9,17,29,.63) 36%,rgba(11,19,32,.13) 78%),linear-gradient(0deg,rgba(10,16,26,.45),transparent 40%)}
.eyebrow{letter-spacing:.24em;color:#c3a46c;font:12px system-ui,sans-serif}.hero h1{font-size:clamp(34px,5vw,68px);font-weight:500;letter-spacing:.1em;line-height:1.55;margin:26px 0}.hero>p:not(.eyebrow){max-width:650px;color:#c2c1bd}.entry{display:inline-block;margin-top:28px;padding:12px 24px;border:1px solid #b39a69;text-decoration:none;color:#ebd6a6}.entry:hover,.entry:focus-visible{background:#423727}.section{padding:70px clamp(22px,7vw,110px) 100px;max-width:1400px;margin:auto}.section h2{font-size:36px;font-weight:500;margin:12px 0}.section-lead{color:#bbb9b3}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:34px}.card{border:1px solid #474331;padding:26px;background:#151e2b;min-height:230px}.card h3{font-size:23px;font-weight:500;margin:10px 0}.card p{color:#c9c5bb}.number{font:12px system-ui,sans-serif;color:#cba86a}.pending{font:12px system-ui,sans-serif;color:#aaa9a5}footer{padding:26px;text-align:center;color:#9b9589;border-top:1px solid #34383f;font:12px system-ui,sans-serif}@media(max-width:680px){.cards{grid-template-columns:1fr}.state{font-size:9px}.hero{min-height:unset;padding-top:80px;padding-bottom:90px}}

@media(max-width:680px){.hero{background-position:35% center}.hero::before{background:linear-gradient(90deg,rgba(7,15,26,.84),rgba(8,14,25,.48)),linear-gradient(0deg,rgba(10,16,26,.45),transparent 45%)}}

.encyclopedia{border-top:1px solid #45412f;padding-top:55px;padding-bottom:75px}

.story-body{max-width:760px;line-height:2.05;font-size:1.08rem;margin:38px 0 55px}.story-body h2{margin-top:38px;font-size:1.5rem}.section a:hover{text-decoration-color:#cba86a}.section a:focus-visible{outline:2px solid #cba86a;outline-offset:3px}

.myth-intro{max-width:780px;margin:2.5rem 0 3.5rem;line-height:1.95}
.myth-intro h2{margin:2.3rem 0 .8rem;font-size:1.45rem}
.myth-intro p{margin:.8rem 0 1.2rem}


/* Norse category artwork. Image is shared by home card and category hero. */
.norse-feature-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  isolation: isolate;
  background: #111c2a url("/assets/norse-hero-gods.png") 53% center / cover no-repeat;
}
.norse-feature-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,12,20,.93), rgba(7,12,20,.25) 75%);
}
.norse-feature-content {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.norse-feature-card h3 a, .norse-feature-card p, .norse-feature-card .number { color: #f8f1e5; }
.norse-feature-card h3 a::after { content: ""; position: absolute; inset: 0; }
.norse-feature-card h3 a:focus-visible { outline: 2px solid #e0ba77; outline-offset: 4px; }

.norse-category-hero {
  min-height: clamp(330px, 44vw, 560px);
  display: flex;
  align-items: flex-end;
  position: relative;
  isolation: isolate;
  background: #111c2a url("/assets/norse-hero-wood.png") 50% top / cover no-repeat;
}
.norse-category-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(8,14,25,.96), rgba(8,14,25,.12) 85%);
}
.norse-category-hero-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 72px);
}
.norse-category-hero h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); margin: .4em 0 .3em; color: #fff4df; }
.norse-category-hero p:not(.eyebrow) { line-height: 1.8; color: #f4eddf; }
@media (max-width: 640px) {
  .norse-category-hero { min-height: 350px; background-position: 56% top; }
  .norse-feature-card { min-height: 260px; background-position: 55% center; }
}

/* Compact searchable encyclopedia */
.encyclopedia-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:2rem 0 1rem}
.encyclopedia-controls label{display:flex;flex-direction:column;gap:.45rem;color:var(--muted,#a9a7a0);font-size:.88rem}
.encyclopedia-controls input,.encyclopedia-controls select{box-sizing:border-box;width:100%;min-width:0;padding:.8rem;color:inherit;background:#171a20;border:1px solid #625840;border-radius:.4rem;font:inherit}
.encyclopedia-controls input:focus-visible,.encyclopedia-controls select:focus-visible{outline:2px solid #ceaa69;outline-offset:2px}
.dictionary-count{text-align:right;color:var(--muted,#a9a7a0);font-size:.9rem}
.dictionary-list{list-style:none;margin:1rem 0;padding:0;display:block}
.dictionary-item{border-bottom:1px solid #403c35;padding:.85rem 0}
.dictionary-item[hidden],#dictionary-empty[hidden]{display:none}
.dictionary-item-link{display:flex;justify-content:space-between;align-items:center;gap:1rem;text-decoration:none}
.dictionary-item-link strong{display:block;font-size:1.12rem}
.dictionary-item-link small{display:block;margin-top:.2rem;color:#b9b1a0}
.dictionary-item p{margin:.5rem 0 0;font-size:.92rem;line-height:1.65}
@media(max-width:850px){.encyclopedia-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.encyclopedia-controls{grid-template-columns:1fr}}

/* Encyclopedia entry detail */
.entry-page{max-width:1180px;padding-top:42px}
.entry-breadcrumb{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;font:12px system-ui,sans-serif;letter-spacing:.06em;color:#9f998c}
.entry-breadcrumb a{color:#cba86a;text-decoration:none}
.entry-breadcrumb a:hover{text-decoration:underline}
.entry-header{margin:2rem 0 2.6rem;padding-bottom:2.2rem;border-bottom:1px solid #45412f}
.entry-header h1{font-size:clamp(2.3rem,5vw,3.6rem);font-weight:500;letter-spacing:.08em;line-height:1.3;margin:.9rem 0 .2rem;color:#f6eedd}
.entry-name-en{margin:0;font:italic 1.1rem/1.5 Georgia,"Times New Roman",serif;letter-spacing:.08em;color:#cba86a}
.entry-lead{max-width:760px;margin:1.4rem 0 0;font-size:1.12rem;line-height:2;color:#d9d3c5}
.entry-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"main aside";gap:clamp(32px,5vw,64px);align-items:start}
.entry-main{grid-area:main;min-width:0}
.entry-aside{grid-area:aside;position:sticky;top:24px;display:flex;flex-direction:column;gap:1.25rem}

.entry-figure{margin:0;aspect-ratio:4/5;border:1px solid #5e523e;background:#151e2b;overflow:hidden}
.entry-figure img{display:block;width:100%;height:100%;object-fit:cover}
.entry-figure--placeholder{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.1rem;color:#b39a69;background:radial-gradient(circle at 50% 42%,rgba(203,168,106,.13),transparent 62%),repeating-linear-gradient(135deg,rgba(203,168,106,.045) 0 1px,transparent 1px 11px),linear-gradient(180deg,#172233,#111926)}
.entry-figure--placeholder::before{content:"";position:absolute;inset:10px;border:1px solid rgba(203,168,106,.28);pointer-events:none}
.entry-placeholder-art{display:grid;place-items:center;width:112px;height:112px;border-radius:50%;border:1px solid rgba(203,168,106,.35);background:rgba(13,20,32,.55)}
.entry-figure--placeholder figcaption{display:flex;flex-direction:column;align-items:center;gap:.25rem;text-align:center}
.entry-placeholder-title{font-size:1rem;letter-spacing:.3em;color:#e3cf9f}
.entry-placeholder-sub{font:10px system-ui,sans-serif;letter-spacing:.22em;text-transform:uppercase;color:#9f998c}

.entry-facts{margin:0;border:1px solid #474331;background:#151e2b}
.entry-facts div{display:grid;grid-template-columns:6.5em minmax(0,1fr);gap:.8rem;padding:.7rem 1rem;border-bottom:1px solid #2c3240}
.entry-facts div:last-child{border-bottom:0}
.entry-facts dt{font:12px/1.9 system-ui,sans-serif;letter-spacing:.06em;color:#b39a69}
.entry-facts dd{margin:0;font-size:.95rem;line-height:1.7;overflow-wrap:anywhere}

.entry-toc{margin:0 0 2.4rem;padding:1.1rem 1.4rem;border-left:2px solid #b39a69;background:#121b28}
.entry-toc-title{margin:0 0 .3rem;font:12px system-ui,sans-serif;letter-spacing:.24em;color:#c3a46c}
.entry-toc ol{margin:0;padding-left:1.4em}
.entry-toc a{text-decoration:none;color:#dcd5c6}
.entry-toc a:hover{color:#ebd6a6;text-decoration:underline}
.entry-body{max-width:720px}
.entry-section{margin-bottom:2.6rem}
.section .entry-section h2{display:flex;align-items:center;gap:.8rem;margin:0 0 1rem;font-size:clamp(1.4rem,2.6vw,1.75rem);font-weight:500;letter-spacing:.06em;color:#f2e8d3;scroll-margin-top:24px}
.entry-section h2::before{content:"";flex:none;width:.55em;height:.55em;transform:rotate(45deg);border:1px solid #cba86a}
.entry-section p{margin:0 0 1.1rem;font-size:1.05rem;line-height:2.05}
.entry-body-pending,.entry-empty{color:#a9a194}
.entry-body-pending{margin:0 0 2.6rem;padding:1.2rem 1.4rem;border:1px dashed #474331}

.entry-block{margin-top:3rem;padding-top:2rem;border-top:1px solid #34383f}
.section .entry-block-title{margin:0 0 1.2rem;font-size:1.25rem;font-weight:500;letter-spacing:.14em;color:#d6b879}
.entry-story-list,.entry-related-list,.entry-source-list{list-style:none;margin:0;padding:0}
.entry-story-list{display:grid;gap:1rem}
.entry-related-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem}
.entry-story-card,.entry-related-card{display:flex;flex-direction:column;gap:.35rem;height:100%;padding:1.1rem 1.25rem;border:1px solid #474331;background:#151e2b;text-decoration:none;transition:border-color .2s,background-color .2s}
.entry-story-card:hover,.entry-related-card:hover{border-color:#b39a69;background:#1a2433}
.entry-story-card strong{font-size:1.15rem;font-weight:500;color:#f2e8d3}
.entry-related-card strong{font-size:1.08rem;font-weight:500;color:#f2e8d3}
.entry-story-card span,.entry-related-card span{font-size:.9rem;line-height:1.7;color:#bdb7aa}
.entry-related-card small{font:11px system-ui,sans-serif;letter-spacing:.06em;color:#b39a69}
.entry-source-list{counter-reset:src}
.entry-source-list li{counter-increment:src;position:relative;padding:0 0 1.2rem 2.2rem;margin-bottom:1.2rem;border-bottom:1px solid #2c3240}
.entry-source-list li:last-child{border-bottom:0;margin-bottom:0}
.entry-source-list li::before{content:counter(src);position:absolute;left:0;top:.2rem;display:grid;place-items:center;width:1.5rem;height:1.5rem;border:1px solid #b39a69;border-radius:50%;font:11px system-ui,sans-serif;color:#cba86a}
.entry-source-list a{font-size:1rem;line-height:1.7}
.entry-source-list dl{margin:.5rem 0 0;display:grid;gap:.15rem}
.entry-source-list dl div{display:flex;gap:.8rem}
.entry-source-list dt{flex:none;width:5em;font:12px/1.9 system-ui,sans-serif;color:#9f998c}
.entry-source-list dd{margin:0;font-size:.88rem;line-height:1.7;color:#cfc9bb;overflow-wrap:anywhere}
.entry-source-list p{margin:.5rem 0 0;font-size:.85rem;line-height:1.7;color:#a9a194}
.entry-back{margin-top:3rem}
.entry-back a{text-decoration:none;color:#cba86a}

@media(max-width:900px){
  .entry-layout{grid-template-columns:1fr;grid-template-areas:"aside" "main"}
  .entry-aside{position:static;display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);align-items:start}
}
@media(max-width:600px){
  .entry-page{padding-top:28px}
  .entry-aside{grid-template-columns:1fr}
  .entry-figure{aspect-ratio:16/10}
  .entry-placeholder-art{width:88px;height:88px}
  .entry-placeholder-art svg{width:56px;height:56px}
  .entry-facts div{grid-template-columns:5.5em minmax(0,1fr)}
  .entry-source-list dl div{flex-direction:column;gap:0}
}
@media(prefers-reduced-motion:reduce){.entry-story-card,.entry-related-card{transition:none}}

/* 北欧神話の収録目次（/norse/） */
.myth-toc{max-width:980px;margin:3rem 0 4rem;padding:2.2rem clamp(18px,4vw,44px) 2.6rem;border:1px solid #474331;background:linear-gradient(180deg,rgba(21,30,43,.92),rgba(13,20,32,.96))}
.myth-toc h2{margin-top:.4rem}
.myth-toc-lead{color:#c9c5bb;line-height:1.9;margin:.6rem 0 1.4rem}
.myth-toc-nav ol{list-style:none;margin:0 0 2rem;padding:0;display:flex;flex-wrap:wrap;gap:.5rem .6rem}
.myth-toc-nav a{display:inline-block;padding:.35rem .8rem;border:1px solid #5e523e;font:13px system-ui,sans-serif;letter-spacing:.06em;color:#e6d3a8;text-decoration:none}
.myth-toc-nav a:hover,.myth-toc-nav a:focus-visible{background:#2a2a24;border-color:#cba86a}
.myth-toc-part{padding:1.4rem 0 .6rem;border-top:1px solid #34383f;scroll-margin-top:24px}
.myth-toc-part h3{margin:0 0 .3rem;font-size:1.3rem;font-weight:500;letter-spacing:.08em;color:#d6b879}
.myth-toc-part-desc{margin:0 0 .8rem;color:#bbb9b3;font-size:.95rem}
.myth-toc-items{margin:0;padding-left:1.6em;display:grid;gap:.45rem}
.myth-toc-items li{line-height:1.7}
.myth-toc-items li::marker{color:#9d8656;font:13px system-ui,sans-serif}
.myth-toc-items a{color:#f2e8d3;text-decoration-color:#7d6a45;text-underline-offset:.25em}
.toc-planned>span:first-child{color:#a9a49a}
.myth-toc-items .pending{margin-left:.7em}
.myth-toc-outline{display:block;color:#8f8b83;font:12px system-ui,sans-serif;line-height:1.6}
@media(max-width:600px){.myth-toc{padding:1.6rem 16px 2rem}.myth-toc-items{padding-left:1.3em}}
