/* =========================================================
   中村星湖 Web ―― 一次情報に基づく中村星湖アーカイブ
   Style Sheet
   ========================================================= */

:root {
  --bg: #f7f1e3;           /* 和紙・生成りクリーム */
  --bg-card: #fdfaf2;      /* カード背景 */
  --bg-dark: #2a211a;      /* 墨に近い茶 */
  --fg: #2a1f16;           /* 本文 */
  --fg-soft: #5b4a3b;      /* 副文 */
  --fg-mute: #8a7962;      /* 補足 */
  --accent: #8b2e2e;       /* 臙脂 */
  --accent-soft: #b84c4c;  /* 明るい臙脂 */
  --gold: #b38e4c;         /* 古金 */
  --line: #d8cbb3;         /* 罫線 */
  --line-soft: #eadfc7;    /* 薄い罫線 */
  --shadow: 0 4px 18px rgba(60, 40, 20, 0.08);
  --shadow-lift: 0 10px 34px rgba(60, 40, 20, 0.12);
  --radius: 10px;
  --radius-lg: 18px;
  --maxw: 1080px;
  --font-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", "游明朝", "ＭＳ Ｐ明朝", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
a:hover { border-bottom-color: var(--accent); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  min-width: 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 227, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  min-width: 0;
}
.logo {
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  line-height: 1.1;
}
.logo small {
  display: block;
  font-size: 0.7rem;
  color: var(--fg-mute);
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-top: 2px;
}
/* inner の flex 子で min-width:auto だと「リンク全部1列」の固定幅になり横スクロールの原因になる → flex:1 + min-width:0 で折り返し可能に */
.site-nav {
  flex: 1 1 0%;
  min-width: 0;
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  row-gap: 10px;
  column-gap: 18px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
}
.site-nav a {
  color: var(--fg-soft);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(179,142,76,0.12), transparent 55%),
    linear-gradient(180deg, #f9f3e2 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}
.hero::before {
  top: -80px; left: -80px;
  background: var(--accent);
}
.hero::after {
  bottom: -100px; right: -100px;
  background: var(--gold);
}
.hero .kicker {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 3.2rem;
  letter-spacing: 0.16em;
  margin: 0 0 10px;
  color: var(--fg);
  font-weight: 700;
}
.hero .reading {
  font-size: 1.05rem;
  color: var(--fg-soft);
  letter-spacing: 0.2em;
  margin-bottom: 28px;
}
.hero .years {
  display: inline-block;
  padding: 10px 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--fg-soft);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}
.hero .lead {
  max-width: 720px;
  margin: 34px auto 0;
  text-align: left;
  color: var(--fg);
  line-height: 2;
}
.hero-portrait {
  max-width: 720px;
  margin: 36px auto 10px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 22px 26px;
  background: rgba(255,255,255,0.45);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  text-align: left;
  min-width: 0;
}
.hero-portrait img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: #efe4c7;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.hero-portrait .cap {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--fg-soft);
  line-height: 1.75;
}
.hero-portrait .cap strong {
  display: block;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.hero-portrait .cap .credit {
  display: block;
  font-size: 0.72rem;
  color: var(--fg-mute);
  margin-top: 8px;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .hero-portrait {
    flex-direction: column;
    text-align: center;
    padding: 18px;
  }
  .hero-portrait img { width: 140px; height: 175px; }
}

/* ---------- Sections ---------- */
section.block {
  padding: 84px 0 24px;
  position: relative;
  min-width: 0;
}
section.block + section.block {
  border-top: 1px solid var(--line-soft);
}
.section-heading {
  margin: 0 0 40px;
  text-align: center;
}
.section-heading .label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.section-heading h2 {
  font-size: 2rem;
  letter-spacing: 0.12em;
  margin: 0;
  color: var(--fg);
  font-weight: 700;
}
.section-heading h2::after {
  content: "";
  display: block;
  width: 46px; height: 2px;
  background: var(--accent);
  margin: 18px auto 0;
}

/* ---------- Timeline (生涯) ---------- */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 110px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent 0, var(--line) 6%, var(--line) 94%, transparent 100%);
}
.tl-item {
  position: relative;
  padding: 14px 0 14px 160px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 104px;
  top: 26px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-year {
  position: absolute;
  left: 0;
  top: 22px;
  width: 96px;
  text-align: right;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}
.tl-year b {
  display: block;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.tl-content {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
.tl-content h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--fg);
  letter-spacing: 0.06em;
}
.tl-content p {
  margin: 0;
  color: var(--fg-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---------- Work Cards ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 22px;
}
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

/* ---------- Featured Works (代表作の拡張カード) ---------- */
.works-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  margin-bottom: 56px;
}
.feature-work {
  position: relative;
  background:
    linear-gradient(180deg, #fefaee 0%, var(--bg-card) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 44px 52px 40px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.feature-work::before {
  /* 左上の古金ライン装飾 */
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--gold) 100%);
}
.feature-work .num {
  position: absolute;
  top: 20px;
  right: 32px;
  font-family: var(--font-serif);
  font-size: 5.2rem;
  color: rgba(139, 46, 46, 0.08);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  user-select: none;
}
.feature-work .kind {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  margin-bottom: 14px;
}
.feature-work .kind.t-translation { background: linear-gradient(135deg, #6a4e2e, #a47a42); }
.feature-work .kind.t-essay       { background: linear-gradient(135deg, #4f6b4c, #88a77a); }
.feature-work .kind.t-edit        { background: linear-gradient(135deg, #4f5c7a, #7a8cae); }
.feature-work h3.f-title {
  font-size: 1.8rem;
  margin: 0 0 4px;
  color: var(--fg);
  letter-spacing: 0.12em;
  font-weight: 700;
}
.feature-work .f-reading {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--fg-mute);
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}
.feature-work .f-meta {
  font-family: var(--font-sans);
  font-size: 0.87rem;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}
.feature-work .f-opening {
  margin: 6px 0 26px;
  padding: 22px 26px;
  background:
    linear-gradient(135deg, rgba(139,46,46,0.04) 0%, rgba(179,142,76,0.06) 100%);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 2;
  color: var(--fg);
  letter-spacing: 0.06em;
  position: relative;
}
.feature-work .f-opening::before {
  content: "「";
  position: absolute;
  top: -8px;
  left: 6px;
  font-size: 3rem;
  color: rgba(139,46,46,0.22);
  font-family: var(--font-serif);
  line-height: 1;
}
.feature-work .f-opening .src {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--fg-mute);
  margin-top: 10px;
  letter-spacing: 0.08em;
}
.feature-work h4.f-sub {
  font-size: 1.05rem;
  color: var(--accent);
  margin: 24px 0 10px;
  letter-spacing: 0.1em;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}
.feature-work p.f-para {
  margin: 0 0 14px;
  line-height: 2;
  color: var(--fg);
  font-size: 1rem;
}
.feature-work ul.f-highlights {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
.feature-work ul.f-highlights li {
  padding: 10px 14px 10px 30px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  position: relative;
  font-size: 0.9rem;
  color: var(--fg-soft);
  line-height: 1.75;
}
.feature-work ul.f-highlights li::before {
  content: "◆";
  position: absolute;
  left: 10px; top: 10px;
  color: var(--gold);
  font-size: 0.85rem;
}
.feature-work .f-cast {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 12px 0 22px;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-work .f-cast th,
.feature-work .f-cast td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}
.feature-work .f-cast th {
  background: rgba(139,46,46,0.08);
  color: var(--fg);
  letter-spacing: 0.06em;
  font-weight: 600;
  width: 40%;
}
.feature-work .f-cite {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--fg-mute);
  line-height: 1.8;
}
.feature-work .f-cite strong {
  color: var(--fg-soft);
  letter-spacing: 0.08em;
}

/* 小見出し・ミニ見出し用のアクセント */
.works-intro {
  max-width: 760px;
  margin: 0 auto 46px;
  padding: 22px 28px;
  background: rgba(179,142,76,0.06);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  text-align: center;
  line-height: 2;
  font-size: 0.96rem;
  color: var(--fg-soft);
}
.works-subheading {
  max-width: 820px;
  margin: 60px auto 24px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--fg);
  font-weight: 700;
}
.works-subheading small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--fg-mute);
  margin-top: 4px;
  font-weight: 400;
}
.work-card .tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #fff;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.work-card .tag.translation {
  background: linear-gradient(135deg, #6a4e2e, #a47a42);
}
.work-card .tag.essay {
  background: linear-gradient(135deg, #4f6b4c, #88a77a);
}
.work-card .tag.edit {
  background: linear-gradient(135deg, #4f5c7a, #7a8cae);
}
.work-card h3 {
  margin: 0 0 4px;
  font-size: 1.18rem;
  color: var(--fg);
  letter-spacing: 0.06em;
}
.work-card .meta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--fg-mute);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.work-card p {
  margin: 0 0 12px;
  color: var(--fg-soft);
  font-size: 0.95rem;
  line-height: 1.85;
}
.work-card .cite {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--fg-mute);
  line-height: 1.7;
}

/* ---------- Friends (交友) ---------- */
.friends-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.friend {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow);
  position: relative;
}
.friend .portrait {
  text-align: center;
}
.friend .portrait .avatar {
  width: 140px; height: 140px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #efe4c7 0%, #d8c8a5 100%);
  border: 3px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-weight: 700;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
}
.friend .portrait .fname {
  font-size: 1.15rem;
  color: var(--fg);
  letter-spacing: 0.14em;
  margin-bottom: 4px;
  font-weight: 700;
}
.friend .portrait .fyears {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--fg-mute);
}
.friend .portrait .relation {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--line);
}
.friend .body h3 {
  font-size: 1.25rem;
  margin: 0 0 14px;
  color: var(--fg);
  letter-spacing: 0.08em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.friend .body h4 {
  font-size: 1rem;
  color: var(--accent);
  margin: 18px 0 6px;
  letter-spacing: 0.08em;
}
.friend .body p {
  margin: 0 0 12px;
  line-height: 1.95;
  color: var(--fg);
}
.friend .body blockquote {
  margin: 14px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(179, 142, 76, 0.08);
  color: var(--fg-soft);
  font-size: 0.97rem;
  line-height: 2;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.friend .body .footnotes {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--fg-mute);
  line-height: 1.8;
}
.friend .body .footnotes strong {
  color: var(--fg-soft);
  letter-spacing: 0.1em;
}

/* Aizu Yaichi - Unconfirmed card */
.friend.unconfirmed {
  background: repeating-linear-gradient(
    135deg,
    rgba(200,180,150,0.06) 0 14px,
    transparent 14px 28px
  ), var(--bg-card);
}
.friend.unconfirmed .portrait .avatar {
  background: linear-gradient(135deg, #e7dbc1 0%, #c8b698 100%);
  color: var(--fg-mute);
}
.friend.unconfirmed .portrait .relation {
  color: var(--fg-mute);
  background: transparent;
}

/* Public-domain portrait photo (replaces text avatar) */
.friend .portrait .photo {
  width: 140px; height: 140px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 3px solid var(--line);
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #efe4c7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.friend .portrait .photo-credit {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  color: var(--fg-mute);
  margin: 4px auto 10px;
  line-height: 1.45;
  max-width: 170px;
  word-break: break-word;
}
.friend .portrait .photo-credit a {
  color: var(--fg-mute);
  text-decoration: underline dotted;
}
.friend .portrait .photo-credit a:hover {
  color: var(--accent);
}

/* No-portrait note (for Nakamura Seiko himself / Soma Gyofu) */
.no-portrait-note {
  margin: 20px auto 0;
  max-width: 720px;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--fg-mute);
  line-height: 1.75;
}
.no-portrait-note strong {
  color: var(--fg-soft);
  letter-spacing: 0.08em;
}

/* Image credits card */
.image-credits-card {
  grid-column: 1 / -1;
}
.image-credits-card ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.image-credits-card li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 0.86rem;
  line-height: 1.75;
}
.image-credits-card li:last-child { border-bottom: none; }
.image-credits-card li strong { color: var(--accent); letter-spacing: 0.06em; }
.image-credits-card li .meta {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--fg-mute);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

/* Book cover quotation gallery (Article 32) */
.cover-gallery {
  margin: 24px 0 10px;
  padding: 22px 22px 18px;
  background: #f7efd9;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--font-sans);
}
.cover-gallery .cg-head {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.cover-gallery .cg-lede {
  font-size: 0.88rem;
  color: var(--fg-soft);
  line-height: 1.7;
  margin-bottom: 14px;
}
.cover-gallery .cg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cover-gallery .cg-grid.cg-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
  margin: 0 auto;
}
.cover-gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cover-gallery figure img {
  display: block;
  max-width: 100%;
  height: 180px;
  width: auto;
  object-fit: contain;
  margin-bottom: 8px;
}
.cover-gallery figcaption {
  font-size: 0.72rem;
  color: var(--fg-soft);
  line-height: 1.55;
  text-align: center;
}
.cover-gallery figcaption strong {
  display: block;
  color: var(--fg);
  font-size: 0.78rem;
  margin-bottom: 2px;
}
.cover-gallery figcaption .credit {
  display: block;
  margin-top: 4px;
  color: var(--fg-mute);
  font-size: 0.66rem;
}
.cover-gallery .cg-source {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.72rem;
  color: var(--fg-mute);
  line-height: 1.7;
}
.cover-gallery .cg-source a {
  color: var(--fg-mute);
  text-decoration: underline dotted;
}
@media (max-width: 720px) {
  .cover-gallery .cg-grid,
  .cover-gallery .cg-grid.cg-grid-2 { grid-template-columns: 1fr; }
  .cover-gallery figure img { height: 220px; }
}

/* Article 32 quotation figure (whole page image with attribution) */
.quote-figure {
  margin: 22px auto;
  max-width: 640px;
  padding: 18px;
  background: #f7efd9;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--font-sans);
}
.quote-figure img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.quote-figure .q-caption {
  font-size: 0.82rem;
  color: var(--fg-soft);
  line-height: 1.7;
}
.quote-figure .q-caption strong {
  display: block;
  color: var(--accent);
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  margin-bottom: 4px;
}
.quote-figure .q-source {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 0.72rem;
  color: var(--fg-mute);
  line-height: 1.65;
}
.quote-figure .q-source a {
  color: var(--fg-mute);
  text-decoration: underline dotted;
}

/* Mini portrait gallery inside timeline items */
.mini-portraits {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0 6px;
  padding: 12px;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 4px;
}
.mini-portraits figure {
  margin: 0;
  width: 98px;
  text-align: center;
  font-family: var(--font-sans);
}
.mini-portraits img {
  width: 98px;
  height: 120px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--line);
  background: #efe4c7;
  display: block;
  margin-bottom: 6px;
}
.mini-portraits figcaption {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--fg-soft);
}
.mini-portraits figcaption strong {
  display: block;
  color: var(--fg);
  font-size: 0.78rem;
  margin-bottom: 2px;
}
.mini-portraits figcaption .credit {
  display: block;
  font-size: 0.62rem;
  color: var(--fg-mute);
  margin-top: 3px;
  line-height: 1.35;
}

/* Author portrait inside feature-work (translations) */
.author-portrait {
  float: right;
  width: 130px;
  margin: 6px 0 12px 20px;
  text-align: center;
  font-family: var(--font-sans);
}
.author-portrait img {
  width: 130px;
  height: 160px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: #efe4c7;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  display: block;
  margin: 0 auto 6px;
}
.author-portrait .cap {
  font-size: 0.72rem;
  color: var(--fg-soft);
  line-height: 1.4;
  margin-bottom: 2px;
}
.author-portrait .cap strong { letter-spacing: 0.08em; }
.author-portrait .credit {
  font-size: 0.62rem;
  color: var(--fg-mute);
  line-height: 1.4;
  word-break: break-word;
}
@media (max-width: 720px) {
  .author-portrait {
    float: none;
    margin: 0 auto 14px;
  }
}

/* Key-value mini table inside friend cards */
.kvtable {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.92rem;
}
.kvtable th, .kvtable td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.kvtable th {
  width: 30%;
  color: var(--fg-soft);
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(179, 142, 76, 0.06);
}

/* ---------- Quotes (名文・名言集) ---------- */
.quotes-intro {
  max-width: 740px;
  margin: 0 auto 46px;
  text-align: center;
  line-height: 2;
  color: var(--fg-soft);
  font-size: 0.98rem;
}
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 26px;
}
.quote-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 50px 30px 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.quote-card::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 14px;
  font-size: 6rem;
  color: rgba(139, 46, 46, 0.12);
  font-family: var(--font-serif);
  line-height: 1;
  font-weight: 700;
}
.quote-card .theme {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding: 3px 10px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--bg);
}
.quote-card blockquote {
  margin: 0 0 18px;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 2;
  color: var(--fg);
  letter-spacing: 0.04em;
  border: none;
  background: none;
}
.quote-card .attribution {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--fg-soft);
  line-height: 1.7;
}
.quote-card .attribution strong {
  display: block;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.quote-card .attribution .src {
  color: var(--fg-mute);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* ---------- Bibliography (著作完全リスト) ---------- */
.biblio-intro {
  max-width: 780px;
  margin: 0 auto 32px;
  text-align: center;
  line-height: 2;
  color: var(--fg-soft);
  font-size: 0.98rem;
}
.biblio-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 32px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--fg-soft);
}
.biblio-legend .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
}
.biblio-legend .dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
}
.dot-novel       { background: linear-gradient(135deg, var(--accent), var(--accent-soft)); }
.dot-translation { background: linear-gradient(135deg, #6a4e2e, #a47a42); }
.dot-essay       { background: linear-gradient(135deg, #4f6b4c, #88a77a); }
.dot-edit        { background: linear-gradient(135deg, #4f5c7a, #7a8cae); }

.biblio-table-wrap {
  max-width: 100%;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 8px;
  box-sizing: border-box;
}
.biblio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 760px;
}
.biblio-table thead th {
  background: rgba(139, 46, 46, 0.08);
  color: var(--fg);
  text-align: left;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  border-bottom: 2px solid var(--accent);
}
.biblio-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  line-height: 1.75;
  color: var(--fg);
}
.biblio-table tbody tr:hover {
  background: rgba(179, 142, 76, 0.06);
}
.biblio-table tbody tr:last-child td { border-bottom: none; }
.biblio-table .year {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
  width: 92px;
}
.biblio-table .title {
  font-weight: 700;
  color: var(--fg);
  min-width: 180px;
}
.biblio-table .title em {
  font-style: normal;
  display: block;
  font-weight: 400;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.biblio-table .tag-cell {
  width: 110px;
}
.biblio-table .mini-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
}
.mt-novel       { background: linear-gradient(135deg, var(--accent), var(--accent-soft)); }
.mt-translation { background: linear-gradient(135deg, #6a4e2e, #a47a42); }
.mt-essay       { background: linear-gradient(135deg, #4f6b4c, #88a77a); }
.mt-edit        { background: linear-gradient(135deg, #4f5c7a, #7a8cae); }
.biblio-table .publisher {
  min-width: 140px;
  color: var(--fg-soft);
}
.biblio-table .note {
  color: var(--fg-mute);
  font-size: 0.86rem;
}
.biblio-footnote {
  margin-top: 22px;
  padding: 14px 20px;
  background: rgba(179, 142, 76, 0.08);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  font-size: 0.88rem;
  color: var(--fg-soft);
  line-height: 1.9;
}

/* ---------- Glossary (用語ミニ辞典) ---------- */
.glossary-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 2;
  color: var(--fg-soft);
  font-size: 0.96rem;
}
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 20px;
}
.glossary-item {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.glossary-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.glossary-item dt {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.glossary-item dt .reading {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--fg-mute);
  font-weight: 400;
  letter-spacing: 0.1em;
}
.glossary-item dd {
  margin: 6px 0 0;
  color: var(--fg);
  font-size: 0.93rem;
  line-height: 1.9;
}
.glossary-item dd .also {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}

/* ---------- Sources (一次資料) ---------- */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}
.source-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.source-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.source-card ul {
  margin: 0;
  padding-left: 1.2em;
}
.source-card li {
  margin-bottom: 6px;
  color: var(--fg-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------- Footer ---------- */
footer.site-footer {
  margin-top: 80px;
  background: var(--bg-dark);
  color: #d8c9a9;
  padding: 54px 0 40px;
  font-size: 0.9rem;
}
footer.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
footer h4 {
  font-size: 1rem;
  color: #f0e4c9;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  border-bottom: 1px solid #4a3c2c;
  padding-bottom: 8px;
}
footer p, footer li {
  color: #c4b596;
  line-height: 1.9;
}
footer a { color: #e3c97f; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 6px; font-family: var(--font-sans); font-size: 0.85rem; }
footer .copy {
  max-width: var(--maxw);
  margin: 30px auto 0;
  padding: 18px 28px 0;
  border-top: 1px solid #3a2f22;
  color: #9b8a6b;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* ---------- Callouts / Admonitions ---------- */
.callout {
  padding: 16px 22px;
  margin: 18px 0;
  border-radius: var(--radius);
  background: rgba(139, 46, 46, 0.06);
  border-left: 4px solid var(--accent);
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--fg-soft);
}
.callout.note {
  background: rgba(179, 142, 76, 0.08);
  border-left-color: var(--gold);
}

/* Primary source references inline */
sup.ref {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--accent);
  vertical-align: super;
  padding: 0 2px;
}

/* ---------- Contact form ---------- */
.contact-lead {
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 2;
  text-align: left;
}
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 36px 28px;
  box-shadow: var(--shadow);
}
.contact-form .field {
  margin-bottom: 22px;
}
.contact-form label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.contact-form .req {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 3px;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 46, 46, 0.12);
}
.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}
.contact-form .hint {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--fg-mute);
}
.form-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn-submit {
  display: inline-block;
  padding: 13px 38px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}
.btn-submit:hover {
  background: var(--accent-soft);
}
.btn-submit:active {
  transform: translateY(1px);
}
.btn-cancel {
  display: inline-block;
  padding: 13px 26px;
  background: transparent;
  color: var(--fg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
}
.btn-cancel:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.thanks-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 32px 36px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}
.thanks-lead {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--fg);
  margin: 0 0 18px;
}
.thanks-sub {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--fg-soft);
  margin: 0 0 28px;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero h1 { font-size: 2.2rem; }
  .hero .reading { font-size: 0.95rem; }
  section.block { padding: 60px 0 20px; }
  .feature-work {
    padding: 28px 22px 24px;
  }
  .feature-work h3.f-title { font-size: 1.4rem; }
  .feature-work .num { font-size: 3.2rem; right: 18px; top: 14px; }
  .feature-work .f-opening { padding: 18px 20px; font-size: 1rem; }
  .feature-work ul.f-highlights { grid-template-columns: 1fr; }
  .friend {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }
  .friend .portrait .avatar { width: 120px; height: 120px; font-size: 1.9rem; }
  .friend .portrait .photo { width: 120px; height: 120px; }
  .timeline::before { left: 60px; }
  .tl-item { padding-left: 92px; }
  .tl-item::before { left: 54px; }
  .tl-year { width: 50px; font-size: 0.78rem; }
  .tl-year b { font-size: 0.92rem; }
  .site-nav { gap: 12px; font-size: 0.82rem; }
  footer.site-footer .inner { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px 22px; }
  .btn-submit { padding: 12px 28px; }
}

@media (max-width: 480px) {
  .site-header .inner { padding: 10px 16px; gap: 8px; }
  .logo { font-size: 1rem; }
  .logo small { display: none; }
  .site-nav {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 0.78rem;
    justify-content: flex-start;
    padding-top: 2px;
    border-top: 1px dashed var(--line);
  }
  .container { padding: 0 18px; }
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 1.8rem; letter-spacing: 0.1em; }
  .hero .kicker { letter-spacing: 0.3em; }
  .section-heading h2 { font-size: 1.5rem; }
}
