/* しつらえの紹介のページ（index.html・privacy.html）の共通の見た目
   ⭐ 和文の雑誌の組み＝大きな縦組みの名前と、小さく静かな本文の対比。朱は落款と番号だけ。
   ⭐ フォント＝しっぽり明朝（SIL OFL 1.1・fonts\OFL.txt）をページの文字だけに切り出して自前で配る
      （⛔ 外のフォント配信は使わない＝閲覧の記録を外へ出さない）。切り出し方＝README.md。 */
@font-face {
  font-family: "Shippori Mincho Subset";
  src: url("fonts/shippori-mincho-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Shippori Mincho Subset";
  src: url("fonts/shippori-mincho-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f3efe6;
  --ink: #1f1d1a;
  --muted: #6f695e;
  --line: #d6cebd;
  --shu: #b13a22;
  --seal-ink: #fbf7ef;
  --grain-opacity: 0.07;
  --serif: "Shippori Mincho Subset", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}
/* ⭐ ダークモードの端末でも紙の色のまま（2026-10-28 ユーザー決定＝紙の地と朱の落款が見せどころ） */

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
  padding: 0 16px;
  overflow-x: hidden;
}
/* 紙の手ざわり＝計算で作るノイズ（絵ではない） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}
/* 画面の端で切れる大きな細い円＝余白に置いた幾何 */
body::after {
  content: "";
  position: fixed;
  width: 78vmax;
  height: 78vmax;
  right: -38vmax;
  bottom: -46vmax;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.sheet {
  position: relative;
  z-index: 1;
  max-width: 68rem;
  margin: 0 auto;
}

/* ── 上の罫（柱） ── */
.running {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 0.6rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.running a { color: inherit; text-decoration: none; }

/* ── 組みの骨組み＝狭い画面は縦に積む・広い画面は本文｜名前 ── */
.spread {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 860px) {
  .spread {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    column-gap: 4rem;
  }
  .masthead {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    max-height: 46rem;
    border-left: 1px solid var(--line);
  }
  .body { grid-column: 1; grid-row: 1; }
}

/* ── 名前（縦組み）＋落款 ── */
.masthead {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 2.6rem 0 2rem;
}
.masthead h1 {
  writing-mode: vertical-rl;
  margin: 0;
  font-size: clamp(4.4rem, 11vw, 8.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
.masthead .gloss {
  writing-mode: vertical-rl;
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  line-height: 2.1;
  letter-spacing: 0.2em;
  color: var(--muted);
  animation: rise 1.1s 0.25s cubic-bezier(.2, .7, .2, 1) both;
}
.seal {
  display: inline-grid;
  grid-template-columns: repeat(2, 1em);
  grid-template-rows: repeat(2, 1em);
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0.35rem;
  background: var(--shu);
  color: var(--seal-ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 3px 2px 4px 2px;
  transform: rotate(-3deg);
  text-decoration: none;
  /* 縦組みの落款＝右上から読む */
  direction: rtl;
  grid-auto-flow: column;
  animation: stamp 0.5s 0.9s cubic-bezier(.3, 1.6, .5, 1) both;
}
.seal span { direction: ltr; }
.masthead .seal { align-self: flex-end; margin-bottom: 0.4rem; }

/* ── 本文 ── */
.body { padding: 1rem 0 5rem; }
.lead {
  margin: 2.4rem 0 3.2rem;
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  line-height: 1.75;
  letter-spacing: 0.06em;
  font-weight: 400;
  max-width: 22em;
}
.lead em {
  font-style: normal;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--shu) 22%, transparent) 62%);
}

section { margin: 0 0 3.4rem; max-width: 34rem; }
h2 {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin: 0 0 1.1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
h2 .no {
  color: var(--shu);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
p { margin: 0 0 1rem; }
.note { color: var(--muted); font-size: 0.88rem; }

ul.dash { list-style: none; margin: 0 0 1.1rem; padding: 0; }
ul.dash li {
  position: relative;
  padding-left: 1.8em;
  margin: 0.35rem 0;
}
ul.dash li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 1em;
  width: 1em;
  border-top: 2px solid var(--shu);
}
.kind { font-weight: 700; }

dl { margin: 0; }
.row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.25rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
dt { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.16em; padding-top: 0.1rem; }
dd { margin: 0; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--shu);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-thickness 0.2s;
}
a:hover, a:focus-visible { text-decoration-thickness: 3px; }
a:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }

footer {
  position: relative;
  z-index: 1;
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0 2.2rem;
  border-top: 1px solid var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
footer a { color: inherit; }

/* ── プライバシーポリシー＝横組みの見出し＋番号の欄 ── */
.doc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3.2rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.6rem;
}
.doc-head h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  animation: rise 0.9s cubic-bezier(.2, .7, .2, 1) both;
}
.doc-head .seal { flex: none; }
.doc { max-width: 40rem; padding-bottom: 4rem; }
.doc > p.intro { margin-bottom: 2.6rem; }
.doc section {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  column-gap: 1rem;
  max-width: none;
  margin-bottom: 2.4rem;
}
.doc .num {
  color: var(--shu);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}
.doc h2 { border: 0; padding: 0; margin: 0.15rem 0 0.6rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(0.6rem); }
  to { opacity: 1; transform: none; }
}
@keyframes stamp {
  from { opacity: 0; transform: rotate(-3deg) scale(1.35); }
  to { opacity: 1; transform: rotate(-3deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
