/* ===== 色・フォントの設定（ここを変えると全体に反映） ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --text: #1c2230;
  --muted: #5d6677;
  --line: #dde2ea;
  --accent: #1f4e8c;        /* メインカラー */
  --accent-soft: #e5edf8;
  --hero-from: #0f2747;
  --hero-to: #1f4e8c;
  --closed: #a3462f;
  --open: #2a7a4b;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161e;
    --bg-alt: #181e28;
    --text: #e6e9ef;
    --muted: #9aa3b2;
    --line: #2b3342;
    --accent: #7fb0f0;
    --accent-soft: #1e2a3d;
    --closed: #e08a72;
    --open: #6fcf97;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 56px;
}
.brand {
  font-family: var(--font-serif); font-weight: 700;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.nav { display: flex; gap: 18px; overflow-x: auto; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap;
}
.nav a:hover { color: var(--accent); }

/* ===== タイトル ===== */
.hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff;
  padding: 72px 0 64px;
}
.hero-label {
  display: inline-block; margin: 0 0 12px;
  padding: 2px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
  font-size: 13px; letter-spacing: .1em;
}
.hero h1 { margin: 0 0 32px; font-family: var(--font-serif); line-height: 1.4; }
.title-main { display: block; font-size: clamp(32px, 6vw, 52px); letter-spacing: .05em; }
.title-sub { display: block; margin-top: 10px; font-size: clamp(17px, 2.6vw, 24px); font-weight: 600; opacity: .9; }
.br-sp { display: none; }

.hero-meta { margin: 0 0 32px; display: grid; gap: 10px; }
.hero-meta div { display: flex; gap: 16px; }
.hero-meta dt { min-width: 7.5em; font-size: 14px; opacity: .75; padding-top: 2px; }
.hero-meta dd { margin: 0; font-weight: 500; }

.btn {
  display: inline-block; padding: 12px 28px; border-radius: 6px;
  background: #fff; color: var(--hero-from); font-weight: 700; text-decoration: none;
}
.btn:hover { opacity: .9; }
#registration .btn { background: var(--accent); color: #fff; }
.btn.is-disabled { background: var(--line) !important; color: var(--muted) !important; pointer-events: none; }

/* ===== セクション共通 ===== */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
.section-title {
  margin: 0 0 24px; font-family: var(--font-serif); font-size: 26px;
  padding-left: 14px; border-left: 4px solid var(--accent);
}
.note { color: var(--muted); font-size: 14px; }
.tbd { color: var(--muted); }

/* ===== お知らせ ===== */
.news { padding: 32px 0; border-bottom: 1px solid var(--line); }
.news .section-title { font-size: 20px; margin-bottom: 12px; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: flex; gap: 16px; padding: 6px 0; }
.news-list time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===== 開催概要 ===== */
.info-table { width: 100%; border-collapse: collapse; background: var(--bg); }
.info-table th, .info-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
.info-table th { width: 9em; color: var(--muted); font-weight: 500; white-space: nowrap; }

/* ===== プログラム ===== */
.session {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin: 36px 0 14px; font-size: 20px;
}
.session .time { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid; }
.badge-closed { color: var(--closed); }
.badge-open { color: var(--open); }

.closed-box {
  padding: 16px 20px; border: 1px dashed var(--line); border-radius: 8px;
  color: var(--muted); font-size: 15px;
}
.lunch { margin: 28px 0 0; color: var(--muted); font-size: 15px; }

.talks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.talk { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.talk-time {
  flex: 0 0 7.5em; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 15px; padding-top: 2px;
}
.talk-body { flex: 1; min-width: 0; }
.speaker { margin: 0; font-size: 14px; color: var(--muted); }
.talk details summary {
  cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 24px;
}
.talk details summary::-webkit-details-marker { display: none; }
.talk details summary::after {
  content: "＋"; position: absolute; right: 0; top: 0; color: var(--accent); font-weight: 400;
}
.talk details[open] summary::after { content: "－"; }
.abstract {
  margin-top: 10px; padding: 12px 16px; background: var(--accent-soft); border-radius: 6px;
  font-size: 15px; line-height: 1.8;
}
.abstract p { margin: 0 0 .6em; }
.abstract p:last-child { margin-bottom: 0; }

/* ===== 参加登録・アクセス ===== */
.deadline { font-size: 17px; }
.access-list { padding-left: 1.2em; }

/* ===== フッター ===== */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0 0 4px; }
.small { font-size: 12px; }

/* ===== スマホ ===== */
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: 8px; }
  .nav { width: 100%; gap: 16px; padding: 4px 0 8px; }
  html { scroll-padding-top: 96px; }
  .hero { padding: 48px 0 44px; }
  .br-sp { display: inline; }
  .hero-meta div { flex-direction: column; gap: 0; }
  .hero-meta dt { min-width: 0; }
  section { padding: 44px 0; }
  .section-title { font-size: 22px; }
  .info-table th, .info-table td { display: block; width: auto; border: none; padding: 4px 12px; }
  .info-table th { padding-top: 14px; }
  .info-table tr { display: block; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .talk { flex-direction: column; gap: 2px; }
  .talk-time { flex-basis: auto; }
}
