/* SELVIST — design system
   色：白・黒・グレーのみ。アクセントカラー、グラデーション、影は使わない。
   書体：端末にある書体だけを使う（外部フォントなし）。
   余白：8pxを単位に、本文の幅は34字前後に抑える。 */

:root {
  --paper: #ffffff;
  --ink: #111111;      /* 見出し・ロゴ */
  --text: #1f1f1f;     /* 本文 */
  --sub: #666666;      /* 補足（白地との比 5.7:1） */
  --rule: #dcdcdc;     /* 区切りは原則使わない。表の下線のみ */
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", YuGothic, "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", serif;
  --latin: "Helvetica Neue", Helvetica, Arial, var(--sans);
  --measure: 36rem;    /* 本文の最大幅（約34字） */
  --frame: 68rem;      /* ヘッダー・フッターの幅 */
  --gutter: clamp(1.5rem, 6vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: #9a9a9a; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--ink); padding: 0.5rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

/* ---------- 枠 ---------- */

.frame {
  width: 100%;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.column {
  max-width: var(--measure);
  margin: 0 auto;
}

/* ---------- ヘッダー ---------- */

.site-header .frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.wordmark { display: inline-block; color: var(--ink); text-decoration: none; line-height: 0; }
.wordmark svg { height: 0.8125rem; width: auto; fill: currentColor; }

.site-nav { display: flex; gap: 0 1.75rem; flex-wrap: wrap; }
.site-nav a,
.label {
  font-family: var(--latin);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  line-height: 2;
  color: var(--sub);
  text-decoration: none;
}
.site-nav a { padding: 0.75rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
a.label:hover { color: var(--ink); }

/* ---------- 本文 ---------- */

main { display: block; padding: clamp(4rem, 12vw, 8rem) 0 clamp(6rem, 14vw, 10rem); }

.label { display: block; margin: 0 0 1.5rem; }

h1, h2, h3 { color: var(--ink); font-weight: 500; margin: 0; letter-spacing: 0.06em; }

h1 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.2vw, 2rem);
  line-height: 1.6;
  margin-bottom: 3rem;
}

h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.7;
  margin: 6rem 0 1.75rem;
}

h3 {
  font-size: 1rem;
  line-height: 1.8;
  margin: 3rem 0 0.75rem;
}

p { margin: 0 0 1.5em; }
.lead { font-size: 1.0625rem; }
.note, .meta { color: var(--sub); font-size: 0.875rem; }
.meta { margin-bottom: 3rem; }

ul, ol { margin: 0 0 1.5em; padding-left: 1.25em; }
li { margin-bottom: 0.5em; }

blockquote {
  margin: 2.5rem 0;
  padding: 0 0 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--ink);
}
blockquote p { margin: 0; }

strong { font-weight: 600; color: var(--ink); }

/* ---------- HOME ---------- */

.home .site-header .wordmark { display: none; }  /* 大きなロゴと重ねない */
.home .site-header .frame { justify-content: flex-end; }

.home main { padding-top: clamp(5rem, 18vh, 12rem); }

.home-mark { color: var(--ink); line-height: 0; margin: 0 0 2.5rem; }
.home-mark svg { width: clamp(11rem, 42vw, 20rem); height: auto; fill: currentColor; }

.home-copy {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  line-height: 1.7;
  letter-spacing: 0.12em;
  margin: 0 0 6rem;
}

.home-intro { margin-bottom: 3rem; }

.index-links { list-style: none; padding: 0; margin: 0 0 5rem; }
.index-links li { margin: 0 0 1.25rem; }
.index-links a { text-decoration: none; }
.index-links .label { display: inline-block; width: 7.5rem; margin: 0; }
.index-links .title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: #9a9a9a; }
.index-links a:hover .title { text-decoration-color: var(--ink); }

.signature { color: var(--sub); font-size: 0.875rem; margin: 0; }

/* ---------- PHILOSOPHY ---------- */

.definition {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--ink);
  margin: 0 0 2rem;
}

.principles { list-style: none; padding: 0; margin: 2.5rem 0 0; counter-reset: p; }
.principles li { margin: 0 0 2.75rem; padding-left: 2.5rem; position: relative; }
.principles li::before {
  counter-increment: p;
  content: counter(p);
  position: absolute; left: 0; top: 0.15em;
  font-family: var(--latin);
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--sub);
}
.principles h3 { font-family: var(--serif); font-size: 1.125rem; margin: 0 0 0.75rem; }
.principles p { margin: 0; }

.toc { list-style: none; padding: 0; margin: 0 0 2rem; font-size: 0.875rem; }
.toc li { margin: 0; }
.toc a { text-decoration: none; color: var(--sub); display: block; padding: 0.25rem 0; line-height: 1.6; }
.toc a:hover { color: var(--ink); }

.history { font-size: 0.875rem; color: var(--sub); }
.history dt { float: left; width: 6.5rem; }
.history dd { margin: 0 0 0.5rem 6.5rem; }

/* ---------- JOURNAL / OBJECTS 一覧 ---------- */

.entries { list-style: none; padding: 0; margin: 3rem 0 0; }
.entries li { margin: 0 0 2.5rem; }
.entries a { text-decoration: none; display: block; }
.entries .entry-title { font-family: var(--serif); font-size: 1.125rem; color: var(--ink); line-height: 1.8; }
.entries a:hover .entry-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.entries .entry-meta { display: block; color: var(--sub); font-size: 0.8125rem; }
.entries .entry-desc { display: block; font-size: 0.9375rem; margin-top: 0.25rem; }

.objects-list .thumb { margin: 0 0 1rem; }

.empty { color: var(--sub); margin-top: 3rem; }

/* ---------- 記事 ---------- */

.article h2 { font-size: 1.125rem; margin-top: 4rem; }
.article-note { margin-top: 5rem; color: var(--sub); font-size: 0.875rem; }

figure { margin: 0 0 3rem; }
figcaption { color: var(--sub); font-size: 0.8125rem; margin-top: 0.75rem; }

.photo-pending { color: var(--sub); font-size: 0.875rem; margin: 0 0 3rem; }

dl.facts { margin: 0 0 2rem; font-size: 0.9375rem; }
dl.facts dt { color: var(--sub); font-size: 0.8125rem; }
dl.facts dd { margin: 0 0 1rem; }

.ad { color: var(--sub); font-size: 0.75rem; letter-spacing: 0.08em; margin-left: 0.5em; }

/* ---------- フッター ---------- */

.site-footer .frame {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
  font-size: 0.75rem;
  color: var(--sub);
}
.site-footer a { color: var(--sub); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- 小さい画面 ---------- */

@media (max-width: 480px) {
  body { font-size: 0.96875rem; line-height: 1.95; letter-spacing: 0.03em; }
  .site-header .frame { padding-top: 1rem; padding-bottom: 1rem; gap: 0 2rem; }
  .home .site-header .frame { justify-content: space-between; }
  .site-nav { width: 100%; justify-content: space-between; gap: 0; }
  .site-nav a { letter-spacing: 0.12em; font-size: 0.75rem; }
  h2 { margin-top: 4.5rem; }
  .index-links .label { display: block; width: auto; }
  .principles li { padding-left: 2rem; }
  .history dt { float: none; width: auto; }
  .history dd { margin-left: 0; }
}

@media print {
  .site-header nav, .site-footer nav, .skip { display: none; }
  main { padding: 2rem 0; }
}
