@charset "UTF-8";
/* =================================================================
   第17回日本在宅看護学会学術集会
   -----------------------------------------------------------------
   ・背景の上に、サイト本体が一枚載っている構成
   ・左メニューは一続きの案内板（項目名は Kosugi Maru）
   ・領域の見出しはすべて同じ桃色の帯（--peach）
   ・本文は Noto Sans JP。ご挨拶の署名だけ Zen Old Mincho
   ================================================================= */

:root {
  /* ---- 色（新しいチラシの空・丘・街並みから。役割ごとに分けています） ---- */
  --outside:    #f1eeea;   /* 本体の外側 */
  --paper:      #fffdfb;   /* 本文の地 */
  --cream:      #fbf6ee;   /* 明るい生成り（開催情報帯・表の見出し・フッター） */
  --sky:        #dceaf4;   /* 淡い空色（メニュー面） */
  --sky-deep:   #cde0ee;   /* メニューの見出し・ホバー */
  --sky-line:   #c4d8e5;   /* メニュー内の区切り */
  --orange:     #f8ddc0;   /* 淡いオレンジ（現在地） */
  --peach:      #f6cdae;   /* 桃〜オレンジ（お知らせの見出し） */
  --wisteria:   #e4ddef;   /* 薄藤色（プログラムの分類） */
  --ink:        #302b28;   /* 本文の文字 */
  --ink-soft:   #5c524b;   /* 補助的な文字 */
  --brown:      #79543e;   /* アクセントの文字・線・矢印 */
  --prep:       #5e6670;   /* 準備中の文字（空色の上で読める濃さ） */
  --line:       #d9cec3;   /* 境界線 */
  --line-soft:  #e8e0d6;   /* 内側の細い区切り */

  /* ---- 書体（サイト側は Noto Sans JP に統一） ---- */
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
          "Yu Gothic", YuGothic, Meiryo, sans-serif;

  /* ---- 寸法 ---- */
  --body-w:  1160px;
  --sidebar:  264px;   /* ポスターのダウンロードボタンが1行に収まる幅 */
  --pad:       32px;
  --tap:       48px;

  --s-4: 4px;  --s-8: 8px;  --s-12: 12px; --s-16: 16px; --s-24: 24px;
  --s-32: 32px; --s-40: 40px; --s-48: 48px; --s-64: 64px;
}

/* =================================================================
   基本
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; background: var(--outside); }

body {
  margin: 0;
  background: var(--outside);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem; font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.01em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0 0 var(--s-16); }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--brown); }
a:hover { text-decoration-color: var(--ink); }
/* フォーカス表示は消さず、色だけ茶系に揃える */
a:focus-visible, button:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

.nb { white-space: nowrap; }
@container (max-width: 16em) { .nb { white-space: normal; word-break: keep-all; overflow-wrap: break-word; } }
@media (max-width: 300px) { .nb { white-space: normal; word-break: keep-all; overflow-wrap: break-word; } }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: #fff; padding: var(--s-12) var(--s-16);
}
.skip-link:focus { left: 0; }

/* =================================================================
   本体を一枚の板として見せる
   ================================================================= */
.test-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9375rem; line-height: 1.7;
  padding: var(--s-8) var(--s-16);
  text-align: center;
}

.site-header,
.page-layout,
.site-footer {
  max-width: var(--body-w);
  margin-left: auto; margin-right: auto;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* =================================================================
   ヘッダー
   ================================================================= */
.site-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--line); }
.site-header .container {
  min-height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-24);
  padding: var(--s-12) var(--pad);
}
.header-name {
  margin: 0; min-width: 0;
  font-size: 1.125rem; font-weight: 700; line-height: 1.5;
}
/* 通常は1行。圧縮も省略もせず、文字を大きくしたときだけ折り返す。
   判定はヘッダーの幅と文字の大きさの比で行う。 */
.site-header .container { container-type: inline-size; }
.header-name a { white-space: nowrap; }
@container (max-width: 14em) { .header-name a { white-space: normal; } }
.header-name a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  color: var(--ink); text-decoration: none;
}
.header-name a:hover { color: var(--ink); text-decoration: none; background: none; }
/* ヘッダーのロゴ。広い画面はロゴ画像、狭い画面は文字の大会名に切り替えます。
   どちらの場合も、読み上げソフトにはリンク名として大会名が伝わります。 */
.header-logo-img { display: block; max-height: 44px; width: auto; }
.header-logo .header-logo-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%);
}

.menu-button {
  flex: none; display: inline-flex; align-items: center; gap: var(--s-12);
  min-height: var(--tap); padding: 0 var(--s-16);
  border: 1px solid var(--brown); border-radius: 8px;
  background: var(--paper); color: var(--brown);
  font-family: var(--font); font-size: 1rem; font-weight: 500;
  cursor: pointer;
}
.menu-button .menu-lines { display: block; width: 18px; }
.menu-button .menu-lines i { display: block; height: 2px; background: var(--brown); }
.menu-button .menu-lines i + i { margin-top: 4px; }
.menu-button:hover { background: var(--sky); }

/* =================================================================
   左メニュー＝一続きの案内板
   ================================================================= */
.drawer {
  position: fixed; inset: 0 0 0 auto;
  width: 460px; max-width: 100%;
  background: var(--paper);
  z-index: 120;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .24s ease;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer:not(.is-open) { visibility: hidden; }

.drawer-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-16);
  padding: var(--s-16) var(--s-24);
  background: var(--sky-deep); color: var(--ink);
}
.drawer-title { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.04em; }
.drawer-close {
  display: inline-flex; align-items: center; gap: var(--s-8);
  min-height: var(--tap); padding: 0 var(--s-16);
  border: 1px solid var(--brown); border-radius: 8px;
  background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1rem; font-weight: 500; cursor: pointer;
}
.drawer-close .close-mark { font-size: 1.125rem; line-height: 1; }
.drawer-close:hover { background: var(--paper); }

.drawer-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0; }

.nav-group { margin: 0; }
.nav-group-label {
  margin: 0;
  padding: var(--s-12) var(--s-24) var(--s-8);
  font-size: 0.9375rem; font-weight: 500;
  line-height: 1.6; letter-spacing: 0.1em;
  color: var(--ink-soft);
}
/* メニューはこの青い板の中だけ。ポスターは板の外に出します */
.nav-board {
  background: var(--sky); border-radius: 16px;
  padding: var(--s-12) 0 var(--s-8);
  margin: var(--s-16) var(--s-16) 0;
}
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list li + li { border-top: 1px solid var(--sky-line); }
/* 左メニューの項目名の書体（data/site.js の navFont） */
.nav-list.font-kosugi .nav-label,
.nav-list.font-kosugi .prep-mark {
  /* Kosugi Maru は太さが1種類だけなので、太字にはせず
     現在地は背景色と左の線で示します */
  font-family: "Kosugi Maru", var(--font); font-weight: 400;
}
.nav-list.font-mplus .nav-label,
.nav-list.font-mplus .prep-mark { font-family: "M PLUS Rounded 1c", var(--font); }
.nav-list.font-zen .nav-label,
.nav-list.font-zen .prep-mark { font-family: "Zen Maru Gothic", var(--font); }
/* 現在地の前後は、角丸の余白と重ならないよう区切り線を消す */
.nav-list li:has(a[aria-current="page"]) + li,
.nav-list li:has(a[aria-current="page"]) { border-top-color: transparent; }

.nav-list a,
.nav-list .nav-prep {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-12);
  min-height: 54px;
  padding: var(--s-8) var(--s-24);
  font-size: 1.0625rem; font-weight: 500; line-height: 1.6;
  color: var(--ink); text-decoration: none;
}
.nav-list .nav-label { min-width: 0; }
.nav-list .nav-arrow { flex: none; font-size: 0.9375rem; line-height: 1; color: var(--brown); }
.nav-list a:hover { background: var(--sky-deep); }
.nav-list a,
.nav-list .nav-prep { border-left: 4px solid transparent; }
.nav-list a[aria-current="page"] {
  background: var(--orange); color: var(--ink); font-weight: 700;
  border-left-color: var(--brown);
  border-radius: 10px;
  margin: var(--s-4) var(--s-8);
  /* 外側の余白のぶん左右の余白を詰める。
     こうすると文字の入る幅がほかの行と同じになり、
     長いページ名（プログラム/日程表）でも折り返しません。
     文字の開始位置もほかの行とそろいます。 */
  padding-left: var(--s-16); padding-right: var(--s-16);
}
.nav-list a[aria-current="page"] .nav-arrow { color: var(--brown); }
.nav-list .nav-prep {
  color: var(--prep); font-weight: 400;
  flex-wrap: wrap; row-gap: 0;
  align-items: baseline; justify-content: flex-start;
}
.nav-list .nav-prep .nav-label { flex: 1 1 100%; }
.nav-list .prep-mark { flex: none; font-size: 0.9375rem; color: var(--prep); }

.drawer-overlay {
  position: fixed; inset: 0; background: rgba(26,22,19,.3); z-index: 110;
  opacity: 0; visibility: hidden; transition: opacity .24s ease, visibility .24s ease;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.no-js .drawer { position: static; width: auto; transform: none; visibility: visible; display: block; }
.no-js .drawer-body { overflow: visible; }
.no-js .menu-button, .no-js .drawer-close { display: none; }

/* =================================================================
   表紙（バナー＋開催情報）
   ================================================================= */
.masthead .container { padding: 0; }
.lede-banner { margin: 0; }
.lede-banner img { width: 100%; height: auto; }

.lede-facts {
  margin: 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: var(--s-24) var(--s-32);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--s-16) var(--s-40);
}
.lede-row { min-width: 0; container-type: inline-size; }
.lede-row:first-child { grid-column: 1 / -1; }
.lede-facts dt {
  font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--brown); margin-bottom: var(--s-4);
}
.lede-facts dd { margin: 0; }
.lede-date   { font-size: 1.75rem; font-weight: 700; line-height: 1.45; }
.lede-place  { font-size: 1.125rem; font-weight: 700; line-height: 1.6; }
.lede-format { font-size: 1rem; font-weight: 400; line-height: 1.7; }

/* =================================================================
   領域の見出し＝色の帯。帯と中身をつなげて一つの領域に見せる
   ================================================================= */
.section { margin-top: var(--s-40); }
.section:first-of-type { margin-top: var(--s-40); }

.section-title {
  display: flex; align-items: center;
  min-height: 52px;
  margin: 0;
  padding: var(--s-8) var(--s-24);
  background: var(--peach); color: var(--ink);
  font-size: 1.375rem; font-weight: 700;
  line-height: 1.5; letter-spacing: 0.04em;
}

/* 帯の下は白地。左右に境界を付けて一領域にまとめる */
.news-list,
.info-list {
  border: 1px solid var(--line-soft);
  border-top: 0;
  background: var(--paper);
  margin: 0;
}

/* =================================================================
   お知らせ
   ================================================================= */
.news-list { list-style: none; padding: 0; }
.news-list li + li { border-top: 1px solid var(--line-soft); }
.news-item {
  display: flex; align-items: baseline; gap: var(--s-24);
  min-height: 60px; padding: var(--s-16) var(--s-24);
  color: var(--ink); text-decoration: none;
}
.news-date { flex: none; width: 7em; font-size: 0.9375rem; color: var(--ink-soft); }
.news-body { flex: 1 1 auto; font-size: 1.0625rem; font-weight: 400; line-height: 1.75; }
.news-arrow { flex: none; color: var(--brown); font-size: 1rem; line-height: 1; }
a.news-item:hover { background: var(--cream); }

.text-link {
  display: inline-flex; align-items: center; min-height: var(--tap);
  margin-top: var(--s-8);
  font-size: 1.0625rem; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--brown);
}
.text-link .arrow { margin-left: var(--s-8); color: var(--brown); }
.text-link:hover { text-decoration-color: var(--ink); }

/* =================================================================
   大会情報
   ================================================================= */
.info-list { margin: 0; }
.info-row {
  display: grid; grid-template-columns: 10em minmax(0, 1fr);
  gap: var(--s-24);
  padding: var(--s-16) var(--s-24);
}
.info-row + .info-row { border-top: 1px solid var(--line-soft); }
.info-list dt { font-size: 0.9375rem; font-weight: 700; color: var(--brown); line-height: 1.8; }
.info-list dd { margin: 0; font-size: 1rem; line-height: 1.9; }
/* 表の中のリンク（メールアドレスなど）も押せる高さを確保する */
.info-list dd a {
  display: inline-block;
  min-height: var(--tap);
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.chair-name { font-size: 1.0625rem; font-weight: 700; }
.chair-affil { font-weight: 400; }

/* =================================================================
   下層ページの見出し（同じ配色のルール）
   ================================================================= */
/* 下層ページの見出し帯。
   ポスターの街並み（文字のない部分）を帯の下端に敷き、
   その上に淡い空色をのせてページ名を濃色で読ませる。
   浅い帯のままにして、大きなヒーローにはしない。 */
.page-head { background: var(--paper); }
.page-head .container {
  position: relative;
  display: block;            /* ページ名と一節は左に積み、右は図版に空ける */
  min-height: 124px;
  padding: var(--s-16) var(--s-24);
  /* 3枚重ね：①左を明るくする覆い ②街並み ③空のグラデーション
     街並みの画像だけは、更新番号を付けるため各ページの <head> で指定します */
  background-color: #f3eef4;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: left top, right bottom, left top;
  /* 街並みの絵は帯の高さいっぱいに置きます（上に隙間を作らない） */
  background-size: auto, auto 100%, auto;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-title {
  position: relative; z-index: 1;
  font-size: 1.5rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.04em;
  color: var(--ink);
}
.page-head-aside { position: relative; z-index: 1; max-width: 52%; }
.page-head-aside p {
  margin: var(--s-4) 0 0;
  font-size: 0.9375rem; font-weight: 400; color: var(--ink-soft);
}

/* =================================================================
   プログラム（分類＝淡い緑の帯／演題＝白地の太字）
   ================================================================= */
/* 余白の段階：演題と演者＜演題どうし＜分類の切れ目 */
.prog-section { margin-bottom: var(--s-40); }
.prog-section:last-of-type { margin-bottom: 0; }

.prog-head {
  margin: 0;
  padding: var(--s-8) var(--s-24);
  min-height: 46px;
  display: flex; align-items: center;
  background: var(--wisteria);
}
.prog-type { font-size: 1.125rem; font-weight: 700; color: var(--ink); letter-spacing: 0.04em; line-height: 1.5; }

.prog-item {
  padding: 22px var(--s-24);
  background: var(--paper);
}
/* 演題どうしを区切る細い横線だけ残す */
.prog-item + .prog-item { border-top: 1px solid var(--line-soft); }

.prog-label { margin: 0 0 var(--s-4); font-size: 0.9375rem; font-weight: 700; color: var(--ink-soft); }

/* 日本語の文節で折り返し、最終行に1文字だけ残さない */
.prog-title,
.prog-people dd {
  word-break: auto-phrase;
  text-wrap: pretty;
  line-break: strict;
  /* 長い所属名でも横にはみ出さない（文字を200%にしたときの対策） */
  min-width: 0;
  overflow-wrap: anywhere;
}
.prog-title { margin: 0 0 6px; font-size: 1.1875rem; font-weight: 700; line-height: 1.55; }

/* 演者はすぐ下に置き、演題とひとまとまりに見せる */
.prog-people { margin: 0; }
.prog-people .row { display: flex; gap: var(--s-16); }
.prog-people dt { flex: none; width: 3.4em; font-size: 1rem; font-weight: 400; color: var(--ink-soft); line-height: 1.75; }
.prog-people dd { margin: 0; flex: 1 1 auto; font-size: 1rem; font-weight: 400; line-height: 1.75; }
.prog-closing { margin-top: var(--s-24); font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- メニューの下のポスターとダウンロードボタン ---------- */
.drawer-poster { padding: var(--s-24) var(--s-16) var(--s-24); }
.drawer-poster-link { display: block; }
.drawer-poster-link img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
}
.drawer-poster-link:hover img { border-color: var(--brown); }

/* 丸い塗りのダウンロードボタン（ポスターとリンク用バナーで共通） */
.btn-download {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px;
  padding: 8px 10px;
  border-radius: 28px;
  background: var(--brown); color: #fff;
  font-size: 1rem; font-weight: 500; line-height: 1.4;
  text-align: center; text-decoration: none; white-space: nowrap;
}
.btn-download:hover { background: #5f412f; color: #fff; }
.drawer-poster .btn-download { margin-top: var(--s-12); }

/* =================================================================
   フッター
   ================================================================= */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-24) 0;
  margin-bottom: var(--s-40);
}
.site-footer .container { padding: 0 var(--pad); }
.footer-name { font-size: 1.125rem; font-weight: 700; line-height: 1.6; margin-bottom: var(--s-12); }
.footer-meta { font-size: 0.9375rem; line-height: 1.9; color: var(--ink-soft); }
.footer-link { margin: var(--s-12) 0 0; font-size: 1rem; }
.footer-link a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--brown);
}
.footer-link a:hover { text-decoration-color: var(--ink); }

.footer-copy {
  margin-top: var(--s-24); padding-top: var(--s-16);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem; color: var(--ink-soft);
}
/* 著作権表示だけになったときは、上の区切り線と余白を外す */
.footer-copy:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* =================================================================
   PC：左メニューと本文を一体に
   ================================================================= */
@media (min-width: 901px) {
  .page-layout {
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    align-items: start;          /* 内容分の高さでまとめる */
    padding: var(--s-24) var(--s-24) var(--s-48);
    gap: 0 var(--s-32);
  }
  .menu-button, .drawer-overlay, .drawer-head { display: none; }

  .drawer {
    position: static; inset: auto;
    width: auto; max-width: none;
    transform: none; visibility: visible;
    display: block; z-index: auto;
    background: transparent;
    border-right: 0;
    padding: 0;
  }
  main { padding: 0 0 var(--s-24); }
  .drawer:not(.is-open) { visibility: visible; }
  .drawer-body { overflow: visible; padding: 0; }

  main { padding: var(--s-24) var(--pad) var(--s-48); }
  main .container { max-width: none; padding: 0; }
  .masthead { margin-bottom: 0; }
}

/* =================================================================
   スマホ
   ================================================================= */
@media (max-width: 900px) {
  .site-header, .page-layout, .site-footer { border-left: 0; border-right: 0; max-width: none; }
  .site-footer { margin-bottom: 0; }
  .site-header .container { min-height: 68px; padding: var(--s-8) 14px; gap: var(--s-8); }
  /* 学会名を1行で収めるため、余白とボタン幅で調整する（文字は縮めない） */
  .header-name { font-size: 0.9375rem; letter-spacing: 0; }
  /* スマホでもロゴ画像のまま。入る幅に合わせて小さくします */
  .header-logo-img { max-height: 32px; max-width: 100%; }
  .menu-button-label { display: none; }        /* 文字は外し、読み上げ名で補う */
  .menu-button {
    width: 48px; min-width: 48px; height: 48px;
    padding: 0; gap: 0; justify-content: center;
  }
  .menu-button .menu-lines { width: 20px; }

  .drawer { width: 100%; }
  main { padding: 0 0 var(--s-40); }
  main .container { padding: 0 18px; }
  .masthead .container { padding: 0; }

  .lede-facts {
    grid-template-columns: 1fr; gap: var(--s-16);
    padding: var(--s-24) 18px;
  }
  .lede-date  { font-size: 1.4375rem; line-height: 1.5; }
  .lede-place { font-size: 1.0625rem; }

  .section { margin-top: var(--s-32); }
  .section-title { min-height: 48px; font-size: 1.1875rem; padding: var(--s-8) 18px; }

  .news-item { display: block; padding: var(--s-12) 18px; position: relative; }
  .news-date { width: auto; display: block; margin-bottom: var(--s-4); }
  .news-body { display: block; padding-right: var(--s-24); font-size: 1rem; }
  .news-arrow { position: absolute; right: 18px; bottom: var(--s-12); }

  .info-row { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-12) 18px; }

  /* スマホは、文字を上・街並みを下に分けて重ならないようにする */
  .page-head .container {
    min-height: 116px;
    padding: var(--s-12) 18px 56px;
    display: block;
    /* スマホは2枚重ね（覆いなし）。画像は <head> 側で指定 */
    /* スマホは画面が狭いので、ページ名と重ならない大きさに抑えます */
    background-size: auto 76px, auto;
    background-position: right bottom, left top;
    background-repeat: no-repeat, no-repeat;
  }
  .page-head-aside { max-width: none; }
  .page-title { font-size: 1.3125rem; }
  .page-head-aside p { margin-top: var(--s-4); }

  .prog-head { padding: var(--s-8) 18px; min-height: 44px; }
  .prog-item { padding: 18px 18px; }
  .prog-title { font-size: 1.0625rem; margin-bottom: 6px; }
  .prog-people .row { display: block; }
  .prog-people dt { width: auto; }
  .prog-section { margin-bottom: var(--s-48); }

  .site-footer .container { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) { .drawer, .drawer-overlay { transition: none; } }

/* =================================================================
   他ページの部品（開催概要・ご挨拶・市民公開講座・各募集・会場アクセス）
   HOME／プログラムと同じ設計・配色で組んでいます
   ================================================================= */

.prose { max-width: 760px; padding: var(--s-16) var(--s-24) 0; }
.note { font-size: 0.9375rem; line-height: 1.8; color: var(--ink-soft); padding: 0 var(--s-24); }
.draft-note {
  margin: var(--s-12) var(--s-24) 0;
  padding-left: var(--s-12);
  border-left: 3px solid var(--brown);
  font-size: 0.9375rem; line-height: 1.8; color: var(--ink-soft);
}

/* ---------- 定義リスト（開催概要・市民公開講座） ---------- */
.deflist {
  margin: 0;
  border: 1px solid var(--line-soft);
  background: var(--paper);
}
.section-title + .deflist { border-top: 0; }
.deflist .row {
  display: grid; grid-template-columns: 10em minmax(0, 1fr);
  gap: var(--s-24);
  padding: var(--s-16) var(--s-24);
}
/* 開催概要だけ、行の上下を詰める（2026-11-02 のご指示／1行あたり約12px） */
.deflist.info .row { padding-top: 10px; padding-bottom: 10px; }
.deflist .row + .row { border-top: 1px solid var(--line-soft); }
.deflist dt { font-size: 0.9375rem; font-weight: 700; color: var(--brown); line-height: 1.8; }
.deflist dd { margin: 0; font-size: 1rem; line-height: 1.9; }
/* 表の中のリンクも押せる高さを確保する */
.deflist dd a {
  display: inline-block; min-height: var(--tap);
  padding: 12px 0; overflow-wrap: anywhere;
}

/* ---------- 箇条書き・交通案内 ---------- */
.plain-list, .route-list {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--line-soft);
  background: var(--paper);
}
.section-title + .plain-list,
.section-title + .route-list { border-top: 0; }
.plain-list li, .route-list li {
  padding: var(--s-16) var(--s-24);
  font-size: 1rem; line-height: 1.9;
}
.plain-list li + li, .route-list li + li { border-top: 1px solid var(--line-soft); }

.access-name { font-size: 1.125rem; font-weight: 700; line-height: 1.7; padding: var(--s-16) var(--s-24) 0; }
.access-addr { font-size: 1rem; line-height: 1.9; padding: 0 var(--s-24); }

/* ---------- 市民公開講座 ---------- */
/* 見出しは「本題」を大きく、「副題」を小さく2行で */
.citizen .section-title { display: block; padding-top: var(--s-12); padding-bottom: var(--s-12); }
.citizen-main { display: block; }
.citizen-sub {
  display: block; margin-top: var(--s-4);
  font-size: 1rem; font-weight: 500; line-height: 1.7; color: var(--ink-soft);
}

/* 進行の順番。番号は出さず、左の細い線でつなげる */
.citizen-prog { list-style: none; margin: 0; padding: 0; }
.citizen-prog > li {
  padding: var(--s-16) var(--s-24);
}
.citizen-prog > li + li { border-top: 1px solid var(--line-soft); }
.citizen-prog-title { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.8; }
.citizen-prog-person {
  margin: var(--s-4) 0 0; padding-left: 1em;
  font-size: 0.9375rem; line-height: 1.9; color: var(--ink-soft);
}

/* ポスターに書かれている注記 */
.citizen-notes {
  list-style: none; margin: var(--s-16) 0 0; padding: 0 var(--s-24) var(--s-16);
}
.citizen-notes li {
  position: relative; padding-left: 1.2em;
  font-size: 0.9375rem; line-height: 1.9; color: var(--ink-soft);
}
.citizen-notes li::before { content: "＊"; position: absolute; left: 0; }

/* ---------- ポスターと、その拡大表示 ---------- */
/* ポスターは中央に置く（下の文字を消したので、左に寄ると間延びするため） */
.poster { margin: 0; padding: var(--s-24); text-align: center; }
/* 見出し帯のすぐ下に置くので、下のプログラムとは細い線で区切る */
.poster + .citizen-prog { border-top: 1px solid var(--line-soft); }
.poster-link {
  display: inline-block; max-width: 520px; width: 100%;
  text-align: left;
  text-decoration: none; color: var(--brown);
}
.poster-link img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper);
}
.poster-zoom {
  display: block; margin-top: var(--s-8);
  font-size: 0.9375rem; line-height: 1.8; text-decoration: underline;
}
.poster-link:hover img { border-color: var(--brown); }

/* 拡大表示。JavaScriptが動くときだけ開きます */
.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; background: transparent;
  overflow: auto; overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(40, 34, 30, 0.86); }
.lightbox-inner {
  min-height: 100%;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 72px var(--s-16) var(--s-24);
}
.lightbox-inner img {
  display: block; width: auto; height: auto;
  max-width: min(100%, 820px);
  border-radius: 8px; background: var(--paper);
}
.lightbox-close {
  position: fixed; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--tap); padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px;
  background: #2a2522; color: #fff;
  font-family: inherit; font-size: 1rem; font-weight: 500; line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: #3c3531; }
.lightbox-x { font-size: 1.25rem; }

/* ---------- 関連学会のバナー ----------
   パソコンは2列、スマホは1列。左から順に並びます。
   数が奇数のときは、最後の1つが左の列に入ります。 */
.related-banners {
  list-style: none; margin: 0; padding: var(--s-24);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-16) var(--s-24);
  /* 2列のときは、それぞれの列の左右中央に置きます */
  justify-items: center;
}
/* バナーは横幅300pxでそろえます。縦は、それぞれの絵の縦横比のままです。
   （画面が狭いときは、はみ出さないよう一緒に縮みます） */
.related-banners > li { max-width: 100%; min-width: 0; width: 100%; }
.related-banners a { display: block; width: 100%; max-width: 300px; margin: 0 auto; }
.related-banners img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 6px;
}
.related-banners a:hover img { border-color: var(--brown); }

/* ---------- HOMEのリンク用バナー ---------- */
.link-banner { padding: var(--s-24); }
/* 画像を押すと、そのまま画像が保存されます（ポスターと同じ）
   横幅は関連学会のバナーとそろえています（300px） */
.link-banner-link { display: block; width: 100%; max-width: 300px; }
.link-banner img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 6px;
}
.link-banner-link:hover img { border-color: var(--brown); }
.link-banner-url {
  margin: var(--s-16) 0 0;
  font-size: 1rem; line-height: 1.8;
}
.link-banner-url span {
  font-weight: 700; overflow-wrap: anywhere;
}
.link-banner .btn-download { max-width: 300px; margin-top: var(--s-16); }
/* ---------- 参加費の表 ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fee-table {
  width: 100%; border-collapse: collapse;
  margin-top: var(--s-12);
  font-size: 1rem; line-height: 1.8;
}
.fee-table th, .fee-table td {
  border: 1px solid var(--line-soft);
  padding: var(--s-12) var(--s-16);
  text-align: left; vertical-align: middle;
}
.fee-table thead th {
  background: var(--cream);
  font-size: 0.9375rem; font-weight: 700; white-space: nowrap;
}
.fee-table tbody th { font-weight: 400; white-space: nowrap; }
.fee-table td[colspan] { text-align: center; }

/* ---------- ご挨拶 ---------- */
/* 赤字の「ツメル」＝段落のあいだはすき間なし。改行して1字下げるだけ（2026-11-03）。
   「（1行あけたまま）」の2か所だけ .is-gap でちょうど1行分あけます。 */
.greeting p { font-size: 1rem; line-height: 2.0; margin: 0; text-align: justify; }
.greeting p.is-gap { margin-top: 2em; }          /* 行送り2.0なので 2em＝1行分 */
/* 本文と「＊文献」のあいだも1行分あける */
.greeting p:not(.greeting-note) + p.greeting-note { margin-top: 2em; }
.greeting p:last-child { margin-bottom: 0; }
/* 文献の2段落だけ14px（最小15pxの唯一の例外） */
.greeting p.greeting-note {
  font-size: 0.875rem; line-height: 1.7;
  margin-bottom: var(--s-12);
  text-align: left; overflow-wrap: anywhere;
}
.greeting p.greeting-sign-role {
  margin-top: var(--s-32); margin-bottom: var(--s-4);
  font-size: 1rem; line-height: 1.8; color: var(--ink-soft); text-align: left;
}
.greeting p.greeting-sign { margin-bottom: 0; line-height: 1.7; text-align: left; }
/* 署名を右詰めにする（data/site.js の greetingSignAlign: "right"） */
.greeting p.greeting-sign-role.is-right,
.greeting p.greeting-sign.is-right { text-align: right; }
.greeting .sign-name { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; }
.greeting .sign-affil { font-size: 1rem; font-weight: 400; }

/* 文献番号の右上付き文字。本文中の印なので、最小15pxの例外にしています
   （同じ番号は下の文献欄に通常の大きさで出ています） */
.greeting sup { font-size: 0.8125rem; vertical-align: super; line-height: 0; }

/* 署名のお名前の書体（data/site.js の greetingSignFont）
   書体ごとに見た目の大きさが違うので、字の大きさと字間を個別に調整しています */
.greeting .sign-name.sign-klee {
  font-family: "Klee One", var(--font);
  font-weight: 600; font-size: 1.625rem; letter-spacing: 0.08em;
}
.greeting .sign-name.sign-shippori {
  font-family: "Shippori Mincho", serif;
  font-weight: 600; font-size: 1.625rem; letter-spacing: 0.12em;
}
.greeting .sign-name.sign-zenold {
  font-family: "Zen Old Mincho", serif;
  font-weight: 700; font-size: 1.625rem; letter-spacing: 0.10em;
}
.greeting .sign-name.sign-hina {
  font-family: "Hina Mincho", serif;
  font-weight: 400; font-size: 1.75rem; letter-spacing: 0.14em;
}
.greeting .sign-name.sign-yuji {
  font-family: "Yuji Syuku", serif;
  font-weight: 400; font-size: 1.75rem; letter-spacing: 0.10em;
}
.greeting .sign-name.sign-kaisei {
  font-family: "Kaisei Decol", serif;
  font-weight: 700; font-size: 1.625rem; letter-spacing: 0.10em;
}

/* ---------- 文字の大きさ・太さ（site.js の [小][大][特大][太]） ----------
   小さくできるのは15pxまでです。これより小さいと読みにくくなるため、
   表示チェック（node verify-site.js）で不具合として出ます。 */
.txt-small  { font-size: 0.9375rem; }
.txt-large  { font-size: 1.125rem; }
.txt-xlarge { font-size: 1.375rem; line-height: 1.5; }
.txt-bold   { font-weight: 700; }

/* ---------- お知らせの非リンク行 ---------- */
.news-item.is-static { cursor: default; }

@media (max-width: 900px) {
  .prose { padding: var(--s-12) 18px 0; }
  .note, .access-name, .access-addr { padding-left: 18px; padding-right: 18px; }
  .draft-note { margin-left: 18px; margin-right: 18px; }
  .deflist .row { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-12) 18px; }
  .plain-list li, .route-list li { padding: var(--s-12) 18px; }
  .fee-table th, .fee-table td { padding: var(--s-8); }
  .fee-table thead th, .fee-table tbody th { white-space: normal; line-height: 1.6; }
}
@media (max-width: 460px) {
  .fee-table th, .fee-table td { padding: var(--s-8) var(--s-4); }
  .fee-table td { white-space: normal; }
}


/* =================================================================
   角の丸み（見出し帯と一覧を一つのまとまりに見せる）
   ・一律に全要素へ丸みは付けません。表のセルは四角のままです
   ・overflow:hidden は使いません（フォーカス枠が切れるため）
   ================================================================= */

/* 見出し帯は上の角だけ丸め、下は中身へつなげる */
.section-title { border-radius: 14px 14px 0 0; }

/* 一覧・表は外周を丸める。見出し帯が上にあるときは下側だけ */
.news-list,
.info-list,
.deflist,
.plain-list,
.route-list { border-radius: 14px; }

.section-title + .news-list,
.section-title + .info-list,
.section-title + .deflist,
.section-title + .plain-list,
.section-title + .route-list { border-radius: 0 0 14px 14px; }

/* 一覧の最初と最後の行も、外周の丸みに合わせる */
.news-list li:first-child .news-item { border-radius: 13px 13px 0 0; }
.news-list li:last-child  .news-item { border-radius: 0 0 13px 13px; }
.section-title + .news-list li:first-child .news-item { border-radius: 0; }
.section-title + .news-list li:last-child  .news-item { border-radius: 0 0 13px 13px; }

/* 下層ページの見出し帯 */
.page-head .container { border-radius: 16px; }

/* プログラムの分類帯。演題本文や演者情報は囲みません */
.prog-head { border-radius: 10px; }

/* =================================================================
   見出し帯の下の白い面
   帯と中身をひとまとまりに見せる。中の部品は自前の枠を持たない
   ================================================================= */
.section-body {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.section-body > :first-child { border-top: 0; }

/* 面の中では、一覧は自分の枠と角丸を持たない */
.section-body .news-list,
.section-body .info-list,
.section-body .deflist,
.section-body .plain-list,
.section-body .route-list {
  border: 0;
  border-radius: 0;
  background: transparent;
}
/* 面の中の最初と最後の行は、角丸に合わせる */
.section-body .news-list li:last-child .news-item { border-radius: 0 0 13px 13px; }
.section-body .news-list li:first-child .news-item { border-radius: 0; }

/* 面の中に直接置く文章・注記の余白 */
.section-body .prose { padding: var(--s-16) var(--s-24) 0; }
.section-body .note { padding: 0 var(--s-24); }
.section-body .note-tail { padding: var(--s-16) var(--s-24); }
.section-body .access-name { padding: var(--s-16) var(--s-24) 0; }
.section-body .link-tail { margin: 0; padding: 0 var(--s-24) var(--s-8); }
.section-body .deflist-tail { margin-top: var(--s-16); border-top: 1px solid var(--line-soft); }

@media (max-width: 900px) {
  .section-body .prose,
  .section-body .access-name { padding: var(--s-12) 18px 0; }
  .section-body .note { padding: 0 18px; }
  .section-body .note-tail { padding: var(--s-12) 18px; }
  .section-body .link-tail { padding: 0 18px var(--s-8); }
  .citizen-prog > li { padding: var(--s-12) 18px; }
  .citizen-notes { padding: 0 18px var(--s-12); }
  .poster { padding: var(--s-16) 18px; }
  .link-banner { padding: var(--s-16) 18px var(--s-24); }
  /* スマホは1列。左にそろえます */
  .related-banners { grid-template-columns: minmax(0, 1fr); padding: var(--s-16) 18px var(--s-24);
                     justify-items: start; }
  .lightbox-inner { padding: 68px 12px var(--s-16); }
}
