/* Layout: 写真を主役にしたスマホ優先の案内。冒頭に「きょう・つぎ」の掲示板、曜日の入口は写真カード。
   色と書体はちゃんちーずのサイト（chanchies.org）のものを引き継ぐ。 */
:root {
  --ink: #1d2b2a;
  --ink-70: #4a5a58;
  --paper: #ffffff;
  --paper-2: #edf3ef;
  --line: #d6ddda;
  --green: #1b7a4c;
  --tengu: #1b7a4c;
  --tombo: #2d6a8f;
  --daruma: #b03d2c;
  --accent: #cd4130;
  --on-photo: #ffffff;
  --photo-ground: #1d2b2a;
  --cta-bg: #1b7a4c;
  --f-disp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --f-body: "BIZ UDPGothic", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e4ece8; --ink-70: #a7b5b0; --paper: #141b19; --paper-2: #1c2522; --line: #2e3a36;
    --green: #5fbf8d; --tengu: #5fbf8d; --tombo: #7db6dc; --daruma: #ec8a78; --accent: #e0563f; --cta-bg: #1f5c40;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e4ece8; --ink-70: #a7b5b0; --paper: #141b19; --paper-2: #1c2522; --line: #2e3a36;
  --green: #5fbf8d; --tengu: #5fbf8d; --tombo: #7db6dc; --daruma: #ec8a78; --accent: #e0563f; --cta-bg: #1f5c40;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-disp); font-weight: 900; line-height: 1.35; text-wrap: balance; margin: 0; letter-spacing: .02em; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.8rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: clamp(16px, 5vw, 48px); }
.muted { color: var(--ink-70); }

/* ヘッダー：入口は3つだけ */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--f-disp); font-weight: 900; font-size: 1.2rem; line-height: 1.2; display: block; }
.brand small { font-size: .72rem; color: var(--ink-70); display: block; line-height: 1.3; }
.gnav { display: flex; gap: 4px; }
.gnav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; padding: 6px 12px; border-radius: 999px; }
.gnav a:hover { background: var(--paper-2); }
.gnav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.gnav a { white-space: nowrap; }
@media (max-width: 640px) { .gnav { width: 100%; justify-content: space-between; } .gnav a { padding: 4px 8px; font-size: .84rem; } }
@media (max-width: 440px) { .gnav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; } .gnav a { text-align: center; background: var(--paper-2); } }

/* トップのヒーロー：写真＋見出し＋「ぜんぶ無料」 */
.hero { position: relative; color: var(--on-photo); background: var(--photo-ground); }
.hero img { width: 100%; height: clamp(380px, 56vw, 560px); object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 25, 18, .05) 25%, rgba(10, 25, 18, .8) 100%); }
.hero .over { position: absolute; inset: auto 0 0 0; z-index: 1; padding-block: 0 clamp(48px, 7vw, 72px); }
.hero .eyebrow { font-weight: 700; font-size: .9rem; letter-spacing: .06em; }
.hero h1 { font-size: clamp(2rem, 6.4vw, 3.6rem); margin-top: 4px; }
.hero .sub { font-size: clamp(1rem, 2.4vw, 1.15rem); margin-top: 8px; max-width: 30em; }
.badge { position: absolute; z-index: 2; right: clamp(16px, 5vw, 48px); top: clamp(16px, 4vw, 40px); width: clamp(84px, 13vw, 124px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; text-align: center; font-family: var(--f-disp); font-weight: 900; line-height: 1.15; font-size: clamp(1rem, 2.4vw, 1.4rem); transform: rotate(-8deg); }
.badge small { display: block; font-size: .6em; }

/* きょう・つぎ の掲示板 */
.board { position: relative; z-index: 3; margin-top: -32px; }
.board-in { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.board-cell { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.board-cell + .board-cell { border-left: 2px dashed var(--line); }
.board .lbl { font-size: .8rem; font-weight: 700; color: var(--ink-70); letter-spacing: .06em; }
.board .date { font-family: var(--f-disp); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.board .st { font-family: var(--f-disp); font-weight: 900; font-size: clamp(1.3rem, 3.6vw, 1.7rem); line-height: 1.3; color: var(--c, var(--ink)); }
.board .st a { color: inherit; text-decoration: none; }
.board .tm { font-variant-numeric: tabular-nums; font-weight: 700; }
.board-foot { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 10px 2px 0; font-size: .9rem; font-weight: 700; }
.board-foot span::before { content: "●"; color: var(--accent); margin-right: 5px; font-size: .65em; vertical-align: 2px; }
@media (max-width: 600px) { .board-in { grid-template-columns: 1fr; } .board-cell + .board-cell { border-left: 0; border-top: 2px dashed var(--line); } }

main { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 96px); padding-block: 40px 80px; }
section { display: flex; flex-direction: column; gap: 18px; }
.c-tengu { --c: var(--tengu); }
.c-tombo { --c: var(--tombo); }
.c-daruma { --c: var(--daruma); }

/* 曜日の入口（写真カード） */
.entries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .entries { gap: 10px; } }
.entry { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.entry .ph { position: relative; overflow: hidden; }
.entry img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.entry:hover img { transform: scale(1.04); }
.entry .kanji { position: absolute; left: 10px; bottom: 2px; font-family: var(--f-disp); font-weight: 900; font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.entry .body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 2px; border-top: 5px solid var(--c); }
.entry .when { font-family: var(--f-disp); font-weight: 900; font-size: 1.1rem; line-height: 1.4; }
.entry .where { color: var(--c); font-weight: 700; font-size: .95rem; line-height: 1.5; }
.entry .time { color: var(--ink-70); font-size: .85rem; font-variant-numeric: tabular-nums; line-height: 1.5; }

/* 場所（建物写真） */
.place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 40px; align-items: center; }
.place img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.place .txt { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.place .addr { font-size: 1.1rem; font-weight: 700; }
@media (max-width: 720px) { .place { grid-template-columns: 1fr; } }

/* 紹介されました */
.media { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; border-top: 2px solid var(--ink); }
.media li { border-bottom: 1px solid var(--line); min-width: 0; }
.media a { display: flex; flex-direction: column; gap: 2px; padding: 16px 2px 18px; text-decoration: none; color: var(--ink); }
.media .outlet { font-family: var(--f-disp); font-weight: 900; font-size: 1.5rem; line-height: 1.3; }
.media .prog { font-size: .82rem; color: var(--ink-70); font-variant-numeric: tabular-nums; }
.media .ttl { font-weight: 700; margin-top: 4px; }
.media .ttl::after { content: " ↗"; color: var(--green); }
.media .ext { font-size: .78rem; color: var(--ink-70); }
.media a:hover .ttl { text-decoration: underline; text-underline-offset: 3px; }

/* 読む人ごとの入口 */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.door { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 12px; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); }
.door:hover { background: var(--paper-2); }
.door .go { margin-top: auto; font-weight: 700; color: var(--green); }

/* 下層ページの写真見出し */
.phead { position: relative; color: var(--on-photo); background: var(--photo-ground); }
.phead img { width: 100%; height: clamp(240px, 34vw, 380px); object-fit: cover; }
.phead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 25, 18, 0) 20%, rgba(10, 25, 18, .82) 100%); }
.phead .over { position: absolute; inset: auto 0 0 0; z-index: 1; padding-block: 0 26px; display: flex; flex-direction: column; gap: 4px; }
.phead .eyebrow { font-weight: 700; font-size: .9rem; }
.phead h1 { font-size: clamp(1.6rem, 4.6vw, 2.6rem); }
.phead .stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--c, var(--green)); z-index: 2; }
.crumbs { font-size: .8rem; color: var(--ink-70); padding-block: 10px 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "›"; margin-right: 4px; }

/* 下層ページの要点 */
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; margin: 0; }
.keyfacts div { padding: 14px 16px; box-shadow: 1px 1px 0 var(--line); display: flex; flex-direction: column; min-width: 0; }
.keyfacts dt { font-size: .78rem; font-weight: 700; color: var(--ink-70); letter-spacing: .06em; }
.keyfacts dd { margin: 0; font-family: var(--f-disp); font-weight: 900; font-size: 1.2rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.keyfacts dd small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .8rem; color: var(--ink-70); }
.keyfacts .free dd { color: var(--accent); }

.lead { font-size: 1.08rem; max-width: 38rem; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.cols > * { min-width: 0; }
.card { background: var(--paper-2); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.note { border-left: 4px solid var(--accent); padding: 4px 0 4px 14px; font-size: .95rem; }

/* 予定リスト */
.sched { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.sched li { display: grid; grid-template-columns: 6.4em minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.sched .d { font-family: var(--f-disp); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sched .d small { font-weight: 500; color: var(--ink-70); }
.sched .n { font-weight: 700; color: var(--c); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.sched .n a { color: inherit; }
.sched .t { font-variant-numeric: tabular-nums; color: var(--ink-70); font-size: .92rem; }
.tag { font-size: .72rem; font-weight: 700; padding: 0 8px; border-radius: 999px; border: 1px solid currentColor; color: var(--ink-70); line-height: 1.7; }
.tag.today { background: var(--accent); border-color: var(--accent); color: #fff; }
.sched-note { font-size: .85rem; color: var(--ink-70); }
@media (max-width: 480px) { .sched li { grid-template-columns: 6.2em minmax(0, 1fr); } .sched .t { grid-column: 2; } }

/* 表 */
.table-scroll { overflow-x: auto; }
table.simple { border-collapse: collapse; width: 100%; min-width: 30em; font-variant-numeric: tabular-nums; border-top: 2px solid var(--ink); }
table.simple th, table.simple td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple thead th { font-size: .8rem; color: var(--ink-70); }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 4px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 8px; }

.copybox textarea { width: 100%; min-height: 12em; font: inherit; font-size: .95rem; line-height: 1.7; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); resize: vertical; }
.btn { align-self: flex-start; font: inherit; font-weight: 700; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 999px; padding: 8px 22px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.ghost { background: transparent; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.sel { user-select: all; font-weight: 700; }

/* 寄付・ボランティアの呼びかけ */
.cta { background: var(--cta-bg); color: #fff; border-radius: 16px; padding: clamp(24px, 5vw, 44px); gap: 14px; }
.cta h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.cta p { max-width: 36rem; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cta-btn { display: inline-block; text-decoration: none; font-family: var(--f-disp); font-weight: 900; font-size: 1.1rem; padding: 12px 28px; border-radius: 999px; border: 2px solid #fff; color: #fff; }
.cta-btn.main { background: var(--accent); border-color: var(--accent); }
.cta-btn:hover { filter: brightness(1.08); }
.cta-sub { font-size: .9rem; }
.cta-sub a { color: #fff; font-weight: 700; }

/* フッター */
.site-foot { border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-70); }
.site-foot .wrap { padding-block: 20px; }

@media (prefers-reduced-motion: reduce) { .entry img { transition: none; } .entry:hover img { transform: none; } }
