/* aunicom-sc.com
   意匠の規則（先に決めたもの）
   1. 色は 紙・墨・水色の3つだけ。強調は水色1色で行う。
   2. 文章の幅は 1 つ（--measure）。図版と一覧だけが広い幅（--wide）を使う。
   3. 余白は 8 の倍数。節と節の間は常に --gap-section。
   4. 節の始まりは「細い線＋見出し」で統一。箱・影・角丸は使わない。
   5. 写真は 4:3 に切りそろえる。説明は写真の下に小さく置く。
*/
:root {
  --paper: #fbfaf7;
  --panel: #f1efe8;
  --ink: #1c2b2d;
  --ink-soft: #55676a;
  --line: #d6d3c9;
  --water: #1f6f78;
  --measure: 42rem;
  --wide: 68rem;
  --gap-section: 96px;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--gothic); font-size: 16px; line-height: 1.9;
  font-feature-settings: "palt"; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--water); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 16px; z-index: 10; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.text { max-width: var(--measure); }

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding-top: 16px; padding-bottom: 16px; }
.brand { font-family: var(--mincho); font-size: 1.25rem; letter-spacing: 0.08em; color: var(--ink); text-decoration: none; }
.brand-mark { color: var(--water); margin-right: 0.1em; }
.brand-sub { font-family: var(--gothic); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--ink-soft); margin-left: 1em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 0.875rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--water); }

/* 導入 */
.lead { padding-top: 96px; }
.lead .kicker { color: var(--water); font-size: 0.875rem; letter-spacing: 0.2em; margin: 0 0 16px; }
.lead h1 { font-family: var(--mincho); font-weight: 500; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.5; letter-spacing: 0.06em; margin: 0 0 24px; }
.lead p { max-width: var(--measure); margin: 0 0 16px; font-size: 1.0625rem; }

/* 節 */
section { margin-top: var(--gap-section); }
section > .wrap > h2 { font-family: var(--mincho); font-weight: 500; font-size: 1.5rem; letter-spacing: 0.06em; line-height: 1.6; margin: 0 0 32px; padding-top: 24px; border-top: 1px solid var(--ink); }
h3 { font-family: var(--mincho); font-weight: 500; font-size: 1.1875rem; letter-spacing: 0.04em; line-height: 1.6; margin: 40px 0 8px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 1.4em; }
li { margin-bottom: 4px; }
.small, .note { font-size: 0.8125rem; color: var(--ink-soft); line-height: 1.8; }
.more { display: inline-block; margin-top: 8px; }
.more::after { content: " →"; }

/* 一覧（3列・2列） */
.grid { display: grid; gap: 48px 32px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.item h3 { margin-top: 16px; }
.item p { font-size: 0.9375rem; }
figure { margin: 0; }
figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--panel); }
figcaption { font-size: 0.75rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.6; }

/* 事例（写真と文章の横並び） */
.case { display: grid; gap: 16px 48px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 48px 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case h3 { margin-top: 0; font-size: 1.375rem; }
.case dl { margin: 16px 0 0; }
.case dt { font-size: 0.8125rem; color: var(--water); letter-spacing: 0.1em; margin-top: 16px; }
.case dd { margin: 0; }
@media (max-width: 720px) { .case { grid-template-columns: 1fr; } }

/* 表 */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
thead th { border-bottom: 1px solid var(--ink); font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 600; white-space: nowrap; }

/* 年表 */
.timeline { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.timeline li { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.timeline time { color: var(--water); font-feature-settings: "tnum"; }

/* 注記の帯 */
.aside { background: var(--panel); padding: 32px; max-width: var(--measure); }
.aside h3 { margin-top: 0; }
.aside p:last-child { margin-bottom: 0; }

/* フッター */
.site-footer { margin-top: var(--gap-section); border-top: 1px solid var(--line); padding: 48px 0; font-size: 0.875rem; }
.foot-brand { font-family: var(--mincho); letter-spacing: 0.08em; margin: 0 0 16px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 24px; }
.foot-nav a { color: var(--ink); }
.site-footer .note { max-width: var(--measure); }
.copy { color: var(--ink-soft); font-size: 0.75rem; margin: 16px 0 0; }

@media (max-width: 600px) {
  :root { --gap-section: 72px; }
  .lead { padding-top: 56px; }
  .brand-sub { display: block; margin: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  .aside { padding: 24px; }
}
