/* 新規の最小文書骨格。既存サイトの施工コードを継承しない。 */
* { box-sizing: border-box; }
/* ページ全体の空間。背景は作品の背後にのみ描き、sectionごとに分断しない。 */
html { background: #eadbc5; }
body {
  margin: 0;
  color: #3f352c;
  background-color: #eadbc5;
  background-image:
    radial-gradient(ellipse 90rem 65rem at 85% 0, rgba(255, 250, 235, .75), transparent 80%),
    linear-gradient(90deg, #dfcbb0 0%, #eee2ce 20%, #f5ecde 52%, #e8d8bf 100%);
  font-family: system-ui, sans-serif;
  line-height: 1.7;
}
a { color: #60472f; text-underline-offset: .2em; overflow-wrap: anywhere; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.skip { display: inline-block; margin: .75rem 1rem; }
/* 外側は利用可能幅全体。展示幅の上限は内側だけが担当する。 */
.site-header, main, main > section { width: 100%; }
.content-shell, #load-state { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.site-header { padding-block: 1rem; border-bottom: 1px solid transparent; }
.site-header p { font-size: 1.4rem; font-weight: 600; }
nav, .paths { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
main > section { padding-block: 3rem; border-bottom: 1px solid transparent; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; min-width: 0; }
figcaption { padding-block: .65rem; }
.prose { white-space: pre-line; max-width: 42rem; margin-inline: auto; }
.hero-image { width: 100%; }
.entry-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.5rem; }
.entry-list > li { min-width: 0; padding: 1rem; border: 1px solid rgba(96, 71, 47, .22); background: rgba(255, 250, 239, .24); }
.entry-list p { margin-block: .5rem; }
.entry-image { width: 100%; }
.primary-label { font-weight: 700; }
[hidden] { display: none !important; }

/* TOP外周は利用可能幅全体。内部の画像上限と外周の幅を分離する。 */
/* Hero外層と、透明PNGを重ねる内部シーンを分離する。 */
.top-entry {
  width:100%; max-width:none; margin:0; padding:0;
  background:#e8d8be;
}
.top-entry .site-header { padding:0; border:0; }
.top-header-inner {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:1rem 2rem; padding:1.5rem clamp(1rem,4%,5rem) .5rem;
}
.top-header-inner h1 { margin:0; font-size:clamp(1.6rem,3.5vw,3.5rem); }
.top-header-inner nav { align-items:center; }
.top-header-inner .skip { margin:0; }
#hero-art {
  position:relative; width:100%; isolation:isolate;
}
.hero-scene { width:100%; height:auto; }
@media (max-width:40rem) {
  .top-header-inner { align-items:flex-start; gap:.5rem; }
}

/* Layer 3試験：既存行ボックスと情景の位置を保つ、紙面の表題と道標。 */
.top-header-inner h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  letter-spacing:.015em;
  line-height:1.7;
}
.top-header-inner h1 a { color:#503b29; text-decoration:none; }
.top-header-inner nav a {
  position:relative;
  font-size:1rem;
  line-height:1.7;
  color:#503b29;
  text-decoration-thickness:1px;
  text-underline-offset:.3em;
}
/* 文字の行高を変えず、透明な操作領域を上下に拡張する。 */
.top-header-inner nav a::before {
  content:""; position:absolute; inset:-9px -6px;
}
.top-header-inner a:focus-visible {
  outline:2px solid #503b29; outline-offset:5px;
}
@media (hover:hover) {
  .top-header-inner a:hover { color:#342416; text-decoration:underline; text-decoration-thickness:1px; }
}
