/* 目的: 法要の日程表だけの見た目。手本は docs/design-tehon/houyou-A.png（和紙の地・明朝の題字・細い罫線の表・藍の帯と金の札） */
.atama { text-align: center; padding-top: 26px; }
.atama h1 { font-size: clamp(36px, 11.6vw, 58px); letter-spacing: .08em; }

/* 入力: 見出しを左、欄を右に置いた2行 */
.h-nyuuryoku { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; row-gap: 10px; align-items: center; margin: 22px 0 6px; }
.h-nyuuryoku label { margin: 0; font-size: 16px; white-space: nowrap; }
.h-nyuuryoku input[type="date"], .h-nyuuryoku input[type="text"] { font-size: 19px; min-width: 0; }
.h-kazoe { border: 0; padding: 10px 0 0; margin: 18px 0 0; border-top: 1px solid var(--sen-usui); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; }
.h-kazoe legend { float: left; font-family: var(--midashi); font-weight: 700; font-size: 14px; letter-spacing: .08em; padding: 0; margin-right: 16px; color: var(--ji-usui); line-height: 44px; }
.h-sentaku { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14.5px; letter-spacing: 0; min-height: 44px; margin: 0; font-family: var(--honbun); }
.h-sentaku input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--sen); border-radius: 50%; flex: none; margin: 0; background: transparent; }
.h-sentaku input:checked { background: radial-gradient(circle, var(--iro) 0 45%, transparent 50%); border-color: var(--iro); }

/* 結果の見出しは小さく（題字と帯が主役） */
#h-midashi { border: 0; margin: 26px 0 10px; padding: 0; font-size: 14.5px; letter-spacing: .1em; color: var(--ji-usui); font-weight: 400; text-align: center; }

/* 藍の帯: 次は ◯◯ ｜ 日付 ［あと◯日］ */
.h-tsugi { margin: 0 0 22px; padding: 14px 16px; background: var(--iro); color: #fdfaf2; font-family: var(--midashi); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; line-height: 1.3; }
.h-tsugi .h-t-tsugi { font-size: 15px; letter-spacing: .2em; opacity: .9; }
.h-tsugi b { font-size: clamp(26px, 8vw, 36px); letter-spacing: .12em; padding-right: 14px; border-right: 1px solid var(--kin); }
.h-tsugi .h-t-hi { font-size: clamp(21px, 6.2vw, 28px); letter-spacing: .04em; font-feature-settings: "palt"; }
.h-tsugi .h-t-ato { font-size: 15px; font-weight: 700; letter-spacing: .08em; background: #c9a54c; color: #2a2008; padding: 3px 10px; border-radius: 2px; }

/* 表: 過去帳のような罫線だけの表。法要の名前と日付の間に縦の線 */
.h-hyou-waku { display: grid; grid-template-columns: 1fr; gap: 26px; }
.h-hyou { width: 100%; border-collapse: collapse; border-top: 1px solid var(--sen); border-bottom: 1px solid var(--sen); font-family: var(--midashi); }
.h-hyou thead th { font-size: 12px; font-weight: 400; letter-spacing: .2em; color: var(--ji-usui); padding: 6px 10px; border-bottom: 1px solid var(--sen); background: none; }
.h-hyou td { padding: 11px 10px 10px; border-bottom: 1px solid var(--sen-usui); white-space: nowrap; vertical-align: middle; }
.h-hyou tbody tr:last-child td { border-bottom: 0; }
.h-hyou td:first-child { font-weight: 700; font-size: 19px; letter-spacing: .14em; border-right: 1px solid var(--sen); width: 34%; padding-left: 12px; }
.h-hyou td:first-child small { display: block; font-family: var(--honbun); font-weight: 400; font-size: 11.5px; letter-spacing: .06em; color: var(--ji-usui); line-height: 1.3; }
.h-hyou td:nth-child(2) { font-size: 18px; letter-spacing: .02em; font-feature-settings: "palt"; padding-left: 16px; }
.h-hyou .h-youbi { color: var(--ji); }
.h-hyou .h-do { color: #24407e; }
.h-hyou .h-nichi { color: var(--shu); }
.h-hyou small.h-donichi { display: block; font-family: var(--honbun); font-size: 12px; letter-spacing: .04em; color: var(--ji-usui); line-height: 1.4; }
.h-hyou tr.h-sugita td { color: #9b917e; }
.h-hyou tr.h-sugita .h-do, .h-hyou tr.h-sugita .h-nichi, .h-hyou tr.h-sugita .h-youbi { color: #9b917e; }
.h-hyou tr.h-kore td { background: rgba(201, 165, 76, .16); }

/* ボタン: 印刷は幅いっぱいの藍、予定表は金の枠、写すは字だけ */
#h-kekka .narabi { flex-direction: column; align-items: stretch; gap: 12px; margin: 26px 12px 8px; }
button.h-moji { border: 0; min-height: 44px; font-size: 15px; color: var(--ji); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--kin); letter-spacing: .1em; }
#h-shirase { text-align: center; min-height: 1.7em; }

@media (max-width: 420px) {
  .h-hyou td:first-child { font-size: 17px; letter-spacing: .08em; padding-left: 6px; }
  .h-hyou td:nth-child(2) { font-size: 16.5px; padding-left: 10px; }
  .h-nyuuryoku { column-gap: 12px; }
  .h-tsugi b { border-right: 0; padding-right: 0; }
  .h-tsugi { gap: 2px 12px; }
  .kuchi a { font-size: 15px; letter-spacing: .02em; }
}
@media print {
  .atama { padding-top: 0; }
  .atama h1 { font-size: 26px; }
  .lead { display: none; }
  .h-hyou-waku { grid-template-columns: 1fr 1fr; gap: 14px; }
  .h-hyou td { padding: 5px 6px; }
  .h-hyou td:first-child { font-size: 13px; }
  .h-hyou td:nth-child(2) { font-size: 12.5px; }
  .h-hyou small.h-donichi { font-size: 9px; }
  .h-tsugi { background: none !important; color: #000; border: 1px solid #000; margin: 0 0 10px; }
  .h-tsugi .h-t-ato { background: none; border: 1px solid #000; }
  .h-hyou tr.h-kore td { background: none !important; }
  .h-hyou tr.h-sugita td { color: #000 !important; }
}
