/* 共通レイアウト。色と書体は theme-*.css の変数で切り替える */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
  padding-bottom: 72px; /* DRAFT: preview bar */
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
b, strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); }
.hero__mesh {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: var(--mesh); stroke-width: var(--mesh-w, .7); opacity: var(--mesh-op, .3);
}
.hero__in { position: relative; padding-block: clamp(64px, 11vw, 128px); }
.hero__honor { font-size: 15px; color: var(--hero-accent); letter-spacing: .1em; }
.hero__title {
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 7.4vw, 66px);
  line-height: 1.32;
  letter-spacing: .05em;
}
.hero__title span { display: block; }
.hero__sub { margin-top: 18px; font-family: var(--font-head); font-size: clamp(17px, 2.6vw, 22px); line-height: 1.6; }
.hero__rule { margin-block: 28px; height: 1px; background: var(--hero-accent); width: 96px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.hero__facts div { display: flex; gap: 12px; align-items: baseline; }
.hero__facts dt { font-size: 13px; color: var(--hero-accent); letter-spacing: .1em; }
.hero__facts dd { font-family: var(--font-head); font-size: clamp(18px, 2.6vw, 22px); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.hero__cta p { font-size: 15px; }

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-radius: var(--radius-btn);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .08em;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.08); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--nav-bg); border-bottom: 1px solid var(--line); }
.nav ul { display: flex; gap: 4px 22px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; padding: 12px 0; font-size: 14px; text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--accent); }

/* Sections */
.sec { padding-block: clamp(56px, 8vw, 88px); border-top: 1px solid var(--sec-line); }
.sec:first-child { border-top: 0; }
.sec__h {
  font-family: var(--font-head);
  font-size: clamp(23px, 3.6vw, 30px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .05em;
}
.sec__body { margin-top: 28px; min-width: 0; }
.lead { font-family: var(--font-head); font-size: 19px; line-height: 1.7; }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 42em; }
.sign { text-align: right; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.link { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* News */
.news li { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; padding-block: 14px; border-bottom: 1px solid var(--line); }
.news li:first-child { border-top: 1px solid var(--line); }
.news time { font-family: var(--font-en); font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.news__tag { font-size: 12px; line-height: 1.6; padding: 0 8px; border: 1px solid var(--accent); color: var(--accent); border-radius: var(--radius-btn); }
.news__text { flex: 1 1 20em; min-width: 0; }
a.news__text { color: inherit; text-underline-offset: 3px; }

/* Timeline */
.timeline { margin-top: 18px; }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--font-en); font-size: 22px; line-height: 1.5; color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline strong { display: block; font-family: var(--font-head); font-size: 18px; line-height: 1.6; }
.timeline span { display: block; font-size: 15px; color: var(--muted); }

.notice { margin-top: 24px; padding: 16px 18px; background: var(--notice-bg); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.notice strong { display: block; color: var(--accent); }

/* 業績 */
.works__h, .contact__h { margin-top: 44px; font-family: var(--font-head); font-size: 20px; }
.works { margin-top: 16px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.works li { padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; }
.works strong { display: block; font-family: var(--font-head); font-size: 17px; line-height: 1.6; }

/* 情報表 */
.info > div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding-block: 13px; border-top: 1px solid var(--line); }
.info > div:last-child { border-bottom: 1px solid var(--line); }
.info dt { color: var(--muted); font-size: 15px; }
.info dd { min-width: 0; }
@media (max-width: 480px) {
  .info > div { grid-template-columns: 1fr; gap: 0; }
}
#access .info { margin-block: 18px; }

/* 参加登録 */
.deadline { margin-block: 16px 22px; color: var(--reg-muted, var(--muted)); }
.deadline b { margin-left: 14px; font-family: var(--font-head); font-size: 26px; color: var(--reg-ink, var(--ink)); }
.plain { margin-top: 24px; font-size: 15px; }
.plain li { padding-left: 1em; text-indent: -1em; }
.plain li::before { content: "・"; }
.plain li + li { margin-top: 6px; }
.addendum { margin-top: 20px; max-width: 40em; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; }
.addendum__h { font-weight: 700; color: var(--accent); }

/* 発起人 */
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 20px; }
.names li { font-family: var(--font-head); font-size: 17px; }
.names small { margin-left: 6px; font-family: var(--font-body); font-size: 12px; color: var(--accent); }

.foot { padding-block: 28px; background: var(--foot-bg); color: var(--foot-ink); font-size: 14px; }

/* DRAFT: pattern preview */
.preview {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 20;
  display: flex; gap: 4px; align-items: center; padding: 6px 8px;
  background: #1c1c1e; color: #fff; border-radius: 8px; font: 13px/1 system-ui, sans-serif;
  box-shadow: 0 4px 16px rgba(0,0,0,.25); max-width: calc(100vw - 16px); white-space: nowrap;
}
.preview span { padding-inline: 6px; opacity: .7; }
.preview button {
  font: inherit; color: inherit; background: transparent; border: 0; border-radius: 5px;
  padding: 8px 10px; cursor: pointer;
}
.preview button[aria-pressed="true"] { background: #fff; color: #1c1c1e; }

@media print {
  .nav, .preview, .hero__mesh, .btn { display: none; }
  body { padding-bottom: 0; }
  .hero { background: none; color: #000; }
  .sec { padding-block: 16px; break-inside: avoid; }
}
