/* oujashin.jp 本サイト（2026-11-07 作り直し）。基調色は旧サイトの紺 #364c97 と淡い青 #f1f6fc（本人「元の基調色も使う」）。生成元は site/gen/pages.mjs */
:root {
  --bg: #f6f9fd; --fg: #151b33; --dim: #4c5675; --faint: #7d87a6; --line: #dce3f0; --hover: #e9eff9; --tile: #e4ebf6;
  --ink: #364c97; --ink-fg: #ffffff; --brand: #364c97; --accent: #697ec0; --card: #ffffff;
  --sans: "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1428; --fg: #e7ebf6; --dim: #b2bad3; --faint: #8189a6; --line: #ffffff1a; --hover: #1a2140; --tile: #1c2443;
    --ink: #99baee; --ink-fg: #0f1428; --brand: #c9d8f5; --accent: #99baee; --card: #141a33;
    color-scheme: dark;
  }
  .brand img, .foot-logo { filter: brightness(0) invert(1); }
}
.copy-en { color: var(--brand); }
.sec-head h2 { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.row time, .row .when, .timeline .when, .goals .num, .article-meta, .nf-code { color: var(--accent) !important; }
.facts { background: var(--card); }
.hero-fig img { box-shadow: 0 0 0 1px var(--line); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.8;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.ic { width: 18px; height: 18px; flex: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* 上の帯 */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 24px; }
.brand { display: block; line-height: 0; margin-right: auto; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-size: 14px; color: var(--dim); padding: 6px 12px; border-radius: 999px; }
.nav a:hover { color: var(--fg); background: var(--hover); }
.nav a[aria-current="page"] { color: var(--fg); }
.menu-btn { display: none; appearance: none; border: 0; background: none; color: var(--fg); width: 40px; height: 40px; margin-right: -8px; border-radius: 999px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn:hover { background: var(--hover); }
.menu-btn .ic { width: 22px; height: 22px; }
.menu-btn .ic-close, .menu-btn[aria-expanded="true"] .ic:first-child { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

/* 右上のログイン状態（site.js が /system/api/me を読んでから出す・読めなければ既定のログイン・新規登録） */
.acct { position: relative; display: flex; align-items: center; gap: 6px; margin-left: -12px; padding-left: 13px; visibility: hidden; }
/* サイト内メニューとの仕切り（2026-11-07 本人「間がわかりやすいように仕切りを」） */
.acct::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 20px; margin-top: -10px; background: var(--line); }
.acct.ready { visibility: visible; }
.acct-login, .acct-signup { text-decoration: none; font-size: 14px; line-height: 1.4; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.acct-login { color: var(--dim); }
.acct-login:hover { color: var(--fg); background: var(--hover); }
.acct-signup { background: var(--ink); color: var(--ink-fg); font-weight: 500; }
.acct-signup:hover { opacity: .86; }
.acct-btn {
  appearance: none; border: 0; background: none; color: var(--fg); cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; max-width: 220px;
}
.acct-btn:hover, .acct-btn[aria-expanded="true"] { background: var(--hover); }
.acct-btn .ic { width: 14px; height: 14px; color: var(--faint); }
.acct-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.acct-face {
  width: 30px; height: 30px; border-radius: 50%; flex: none; object-fit: cover;
  display: inline-grid; place-items: center; background: var(--ink); color: var(--ink-fg); font-size: 13px; font-weight: 600; line-height: 1;
}
img.acct-face { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.acct-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; min-width: 220px; padding: 6px;
  background: var(--card); border-radius: 14px; box-shadow: 0 10px 30px rgba(21, 27, 51, .14), 0 0 0 1px var(--line);
}
.acct-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-head span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-item {
  appearance: none; border: 0; background: none; width: 100%; cursor: pointer; font: inherit; color: var(--fg); text-align: left; text-decoration: none;
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; line-height: 1.4;
}
.acct-item:hover { background: var(--hover); }
.acct-item .ic { color: var(--dim); }
.acct-pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }

/* ボタン */
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--ink); color: var(--ink-fg); border-radius: 999px; padding: 11px 20px; font-size: 15px; font-weight: 500; line-height: 1.4;
}
.btn:hover { opacity: .86; }
.btn--sub { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn--sub:hover { background: var(--hover); opacity: 1; }
.btn .ic { width: 16px; height: 16px; }

/* 冒頭 */
.hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.copy-en { font-size: clamp(32px, 4.3vw, 50px); line-height: 1.16; letter-spacing: -.025em; font-weight: 700; }
.copy-en span { display: block; text-wrap: balance; }
.copy-en span + span { margin-top: .18em; }
.lead { color: var(--dim); font-size: 17px; margin: 24px 0 32px; }
.hero-fig { margin: 0; }
.hero-fig img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; background: var(--tile); }

/* 節 */
.sec { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding-top: 28px; padding-bottom: 72px; position: relative; }
.sec::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; border-top: 1px solid var(--line); }
.sec-head h2 { font-size: 15px; letter-spacing: .04em; }
.sec-body { min-width: 0; }
.prose { max-width: 40em; }
.sec-body > .prose { margin: 0 0 32px; font-size: 17px; }

/* 一覧（新着・イベント） */
.rows { list-style: none; margin: -4px 0 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 96px 1fr 132px; gap: 20px; align-items: start; padding: 18px 12px; margin: 0 -12px; text-decoration: none; border-radius: 14px; }
a.row:hover { background: var(--hover); }
.row + .row { border-top: 0; }
.row time, .row .when { font-family: var(--mono); font-size: 13px; color: var(--faint); padding-top: 3px; white-space: nowrap; }
.row-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-title { font-weight: 600; line-height: 1.55; }
.row-sum { color: var(--dim); font-size: 14px; line-height: 1.7; }
.ic-out { width: 14px; height: 14px; margin-left: 4px; vertical-align: -1px; color: var(--faint); }
.thumb { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--tile); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb--none { visibility: hidden; }
.row--off .row-title, .row--off .row-sum { color: var(--faint); }
.row--static { cursor: default; }

/* 愛好会について */
.facts { display: flex; flex-wrap: wrap; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts div { flex: 1 1 150px; padding: 16px 18px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.facts dt { font-size: 12.5px; color: var(--faint); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* 指針 */
.goals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.goals .num { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.goals h3 { font-size: 20px; margin: 6px 0 6px; }
.goals p { margin: 0; color: var(--dim); }

/* 活動実績 */
.timeline { list-style: none; margin: -4px 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 16px 0; }
.timeline li + li { border-top: 1px solid var(--line); }
.timeline .when { font-family: var(--mono); font-size: 13px; color: var(--faint); padding-top: 3px; }
.timeline h3 { font-size: 16px; }
.timeline p { margin: 4px 0 0; color: var(--dim); font-size: 15px; max-width: 40em; }
.timeline .links { display: flex; gap: 16px; font-size: 14px; }
.timeline .links a { text-decoration: none; border-bottom: 1px solid var(--line); }
.timeline .links a:hover { color: var(--fg); border-color: var(--fg); }
.more { grid-column: 2; margin: 8px 0 0; }
.more a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; color: var(--dim); }
.more a:hover { color: var(--fg); }
.more .ic { width: 16px; height: 16px; }

/* 入会 */
.join-lead { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.01em; line-height: 1.5; margin: 0 0 24px; }

/* 下の帯 */
.foot { border-top: 1px solid var(--line); margin-top: 24px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 36px; padding-bottom: 48px; }
.foot-logo { height: 24px; width: auto; }
.foot-links { list-style: none; margin: 0 auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--dim); }
.foot-links a:hover { color: var(--fg); }
.foot-links .ic { width: 15px; height: 15px; }
.copy { margin: 0; font-size: 13px; color: var(--faint); font-family: var(--mono); }

/* 下層ページ */
.page-head { padding-top: 64px; padding-bottom: 48px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.02em; }
.note { color: var(--dim); font-size: 14px; margin: 16px 0 0; max-width: 40em; }

.article { max-width: 760px; padding-top: 56px; padding-bottom: 64px; }
.article-meta { font-family: var(--mono); font-size: 13px; color: var(--faint); margin: 0 0 12px; display: flex; gap: 16px; }
.article h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.4; letter-spacing: -.01em; margin-bottom: 32px; }
.article-img { display: block; width: 100%; border-radius: 16px; margin-bottom: 32px; background: var(--tile); }
.article .prose { max-width: none; font-size: 16.5px; }
.prose h2 { font-size: 19px; margin: 40px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.4em; }
.prose li + li { margin-top: 4px; }
.prose a { text-underline-offset: 3px; text-decoration-color: var(--faint); }
.prose a:hover { text-decoration-color: var(--fg); }
.prose .lede { font-size: 18px; font-weight: 600; line-height: 1.7; }
.back { margin: 48px 0 0; font-size: 14px; }
.back a { color: var(--dim); text-decoration: none; }
.back a:hover { color: var(--fg); }

.nf { text-align: center; padding-top: 72px; padding-bottom: 72px; }
.nf-code { font-family: var(--mono); color: var(--faint); margin: 0 0 8px; }
.nf h1 { font-size: 26px; }
.nf-en { color: var(--dim); margin: 6px 0 28px; }
.nf img { display: block; margin: 0 auto 32px; border-radius: 16px; }

/* 狭い画面 */
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { font-size: 16px; padding: 12px 12px; border-radius: 12px; color: var(--fg); }
  .menu-btn { display: inline-flex; }
  .top-in { gap: 8px; }
  /* 狭い画面ではメニューはハンバーガーの中なので、仕切りはハンバーガーとの間に置く */
  .acct { margin-left: 0; padding-left: 0; padding-right: 9px; }
  .acct::before { left: auto; right: 0; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; padding-bottom: 56px; }
  .hero-fig img { aspect-ratio: 4 / 3; }
  .sec { grid-template-columns: 1fr; gap: 16px; padding-bottom: 56px; }
  .more { grid-column: 1; }
  .goals { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .wrap, .top-in { padding-left: 16px; padding-right: 16px; }
  .sec::before { left: 16px; right: 16px; }
  .brand img { height: 26px; }
  .acct { gap: 2px; }
  .acct-login, .acct-signup { font-size: 13px; padding: 6px 10px; }
  .acct-name, .acct-btn .ic { display: none; }
  .acct-btn { padding: 4px; }
  .acct-pop { position: fixed; top: 60px; left: auto; right: 12px; max-width: calc(100vw - 24px); }
  .row { grid-template-columns: 1fr 96px; gap: 6px 14px; padding: 16px 8px; margin: 0 -8px; }
  .row time, .row .when { grid-column: 1 / -1; padding: 0; }
  .row-text { grid-column: 1; }
  .thumb { grid-column: 2; grid-row: 2; }
  .thumb--none { display: none; }
  .row:has(.thumb--none) { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

/* イベントの個別ページ（2026-11-07 手書きのページから移した） */
.article-meta a { color: inherit; text-decoration: none; }
.article-meta a:hover { color: var(--fg); }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: -12px 0 36px; }
.toc a { font-size: 13.5px; text-decoration: none; color: var(--dim); padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.toc a:hover { color: var(--fg); background: var(--hover); }
.prose h3 { font-size: 16.5px; margin: 28px 0 6px; }
.prose h2 + h3 { margin-top: 12px; }
.prose a.btn { text-decoration: none; color: var(--ink-fg); }
.prose a.btn--sub { color: var(--fg); }
.prose .cta { margin: 0 0 16px; }
.prose .small { font-size: 14px; color: var(--dim); }
.prose .big { font-size: 30px; font-weight: 700; color: var(--brand); margin: 0 0 4px; line-height: 1.4; }
.callout { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 0 0 24px !important; }
.callout strong { color: var(--brand); }
.poster { margin: 0 0 24px; text-align: center; }
.poster img { max-height: 80vh; width: auto; max-width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.info, .sched, .price { margin: 0 0 16px; border-top: 1px solid var(--line); }
.info div, .sched div, .price div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sched div { grid-template-columns: 10em 1fr; }
.info dt, .sched dt { color: var(--dim); font-size: 14px; padding-top: 1px; }
.sched dt { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.info dd, .sched dd, .price dd { margin: 0; }
.price div { grid-template-columns: 1fr auto; }
.price dd { font-family: var(--mono); font-weight: 600; }
.map { margin: 0 0 20px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.tl { list-style: none; padding: 0 !important; margin: 0 0 16px; border-top: 1px solid var(--line); }
.tl li { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.tl .when { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 2px; }
.embeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 0 0 16px; }
.embeds .twitter-tweet { margin: 0 !important; }
.prose .rows { margin: 0 0 16px; }
@media (max-width: 560px) {
  .info div, .sched div, .tl li { grid-template-columns: 1fr; gap: 2px; }
}
.callout.ended { color: var(--dim); background: transparent; }
