/* 江戸歴史散歩 開催記録ページ用スタイル
   記録ページ（sanpo1-5.html など）すべてがこのファイルを読み込みます。
   文字の大きさ・色・幅を変えたいときは、ここだけ直せば全ページに反映されます。 */
:root{--washi:#f6f1e4;--paper:#fffdf7;--ink:#2b2622;--sub:#6b6157;--ai:#1f3a5f;--shu:#b23a2a;--line:#ddd3bf;--ai-soft:#e7edf4}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--washi);color:var(--ink);font-family:"Hiragino Mincho ProN","Yu Mincho","YuMincho","MS PMincho",serif;line-height:1.85;font-size:17px}
a{color:var(--ai)}
a:visited{color:#5a3f7a}
img{max-width:100%;height:auto}

/* 上のヘッダー */
.rec-head{background:var(--ai);color:#fff;padding:12px 14px 10px;border-bottom:4px solid var(--shu)}
.rec-head .inner{max-width:820px;margin:0 auto}
.rec-head a{color:#fff}
.rec-head .crumb{margin:0 0 2px;font-size:.85rem}
.rec-head h1{margin:0 0 6px;font-size:1.3rem;letter-spacing:.1em;line-height:1.3}
.rec-head .links a{display:inline-block;margin:0 6px 6px 0;padding:2px 12px;border:1px solid #fff;border-radius:999px;text-decoration:none;font-size:.85rem}
.rec-head details{margin-top:2px}
.rec-head summary{cursor:pointer;font-size:.9rem}
.rec-head details p{margin:6px 0 0;line-height:2.2}
.rec-head details p a{display:inline-block;min-width:2.4em;text-align:center;margin:0 3px 3px 0;padding:0 6px;background:#fff;color:var(--ai);border-radius:4px;text-decoration:none;font-family:system-ui,sans-serif;font-size:.85rem}

/* 本文 */
.rec{max-width:820px;margin:0 auto;padding:10px 14px 30px;overflow-wrap:anywhere}
.rec hr.sep{border:0;border-top:2px solid var(--line);margin:28px 0 8px}
.rec h2.ev{font-size:1.25rem;line-height:1.5;color:var(--shu);margin:14px 0 8px;padding-bottom:4px;border-bottom:2px solid var(--shu);letter-spacing:.04em}
.rec ul{margin:8px 0;padding-left:1.4em}
.rec li{margin:2px 0}
.rec center{display:block;text-align:center}

/* 写真（横に並べ、狭い画面では折り返す） */
.photos{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:12px 0}
.photos figure{margin:0;width:256px;max-width:100%;text-align:center}
.photos figcaption{font-size:.8rem;line-height:1.5;color:var(--sub);margin-top:2px}

/* 下の「戻る」ボタン */
.rec center a img{margin:6px}
.rec p.caps{display:flex;flex-wrap:wrap;gap:4px 18px;justify-content:center;margin:0 0 12px;font-size:.8rem;line-height:1.5;color:var(--sub)}

/* 元のページで極端に小さく指定されていた文字（font size=1,2）も、スマホで読める大きさに */
.rec font[size="1"]{font-size:.85rem}
.rec font[size="2"]{font-size:.92rem}
/* 空白で桁を揃えた長い行も、狭い画面では折り返す */
.rec pre{white-space:pre-wrap;font-family:inherit}
