/* 遠州しゅうまつ手帳（仮）— デザイン案C「黄色い掲示板」（2026-11-06 採用候補）
   黄色の地に、黒い太線と影のついた白いカード。土曜は青、日曜・祝日は赤。
   サイト名は site.js の SITE_NAME と各HTMLのロゴ文字だけで差し替えられる。 */
:root {
  --paper: #ffd83d;
  --card: #ffffff;
  --ink: #141414;
  --ink-soft: #3d3d3d;
  --sat: #1f4fd1;
  --sun: #d93a26;
  --free: #1d6b3f;
  --free-tint: #d6f2df;
  --display: "Dela Gothic One", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", system-ui, sans-serif;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sat); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.proto { background: var(--ink); color: var(--paper); font-size: 12px; text-align: center; padding: 6px 12px; }

/* ヘッダー */
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { font-family: var(--display); font-weight: 400; font-size: 21px; text-decoration: none; letter-spacing: .02em; }
.brand small { font-family: var(--font); font-weight: 700; font-size: 12px; margin-left: 8px; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a { text-decoration: none; font-size: 13px; font-weight: 800; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); min-height: 44px; display: inline-flex; align-items: center; }
.top nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* 見出し */
.lead { padding: 22px 0 6px; }
.lead h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 8vw, 64px); line-height: 1.15; margin: 0 0 10px; }
.lead p { margin: 0; font-weight: 700; font-size: 15px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.quick a { text-decoration: none; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; }
.quick a:hover { background: var(--ink); color: var(--paper); }

/* 主役：日ごとの掲示 */
.days { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 26px 0 10px; align-items: start; }
.days.three { grid-template-columns: repeat(3, 1fr); }
.day { display: flex; flex-direction: column; gap: 12px; }
.day-head { align-self: flex-start; display: flex; align-items: baseline; gap: 10px; color: #fff; border-radius: 12px; padding: 6px 16px; font-family: var(--display); font-weight: 400; }
.day.sat .day-head { background: var(--sat); }
.day.sun .day-head, .day.hol .day-head { background: var(--sun); }
.day-num { font-size: 30px; line-height: 1.2; }
.day-wd { font-size: 22px; }
.day-month { font-family: var(--font); font-size: 12px; font-weight: 700; }
.day ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.item { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px; box-shadow: 4px 4px 0 var(--ink); display: flex; flex-direction: column; gap: 4px; }
.item .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item time, .item .allday { font-weight: 800; font-size: 14px; }
.item h3 { font-size: 17px; line-height: 1.4; margin: 2px 0 0; font-weight: 800; }
.item h3 a { text-decoration: none; }
.item h3 a:hover { text-decoration: underline; }
.item .where { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tag { font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 8px; background: #eeeeee; }
.tag.g-music { background: #cfe0ff; } .tag.g-food { background: #ffd6a8; } .tag.g-market { background: #ffe7b0; }
.tag.g-festival { background: #ffd0c7; } .tag.g-workshop { background: #d9f0ff; } .tag.g-art { background: #ead6ff; } .tag.g-sports { background: #c9f0d6; }
.tag.g-nature { background: #d8f5b0; } .tag.g-animal { background: #f5e0c4; } .tag.g-learn { background: #c8f0ee; }
.tag.free { background: var(--free-tint); color: var(--free); }
.tag.kids { background: #fff1a8; }
.tag.resv { background: #ffe0dc; color: #9e2414; }
.empty { background: var(--card); border: 2px dashed var(--ink); border-radius: 14px; padding: 16px; margin: 0; font-weight: 700; }
.empty a { color: var(--sat); }
.note { font-size: 13px; font-weight: 500; margin: 10px 0 0; }

/* 地域・ジャンル */
section.block { margin: 44px 0; }
section.block h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0 0 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { text-decoration: none; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 10px 18px; font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.pills a span { font-weight: 500; font-size: 12px; }
.pills.towns a { background: var(--ink); color: var(--paper); }
.pills a:hover { background: var(--ink); color: var(--paper); }
.pills.towns a:hover { background: var(--card); color: var(--ink); }

/* 足をのばして */
.far { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.far a { display: block; text-decoration: none; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px; box-shadow: 4px 4px 0 var(--ink); }
.far strong { display: block; font-size: 16px; line-height: 1.45; }
.far small { font-weight: 500; }

/* 主催者・お店向け */
.host { background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 24px; box-shadow: 6px 6px 0 var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.host p { margin: 0; }
.btn { display: inline-flex; align-items: center; min-height: 44px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 800; padding: 12px 22px; border-radius: 999px; }

footer { margin-top: 48px; padding: 22px 0 40px; font-size: 13px; border-top: 2px solid var(--ink); }
footer p { margin: 4px 0; }

/* 掲載のご依頼 */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 22px; box-shadow: 4px 4px 0 var(--ink); }
.plan h3 { margin: 0 0 4px; font-size: 19px; }
.plan .price { font-weight: 800; font-size: 15px; color: var(--free); margin: 0 0 10px; }
.plan.soon .price { color: var(--ink-soft); }
.plan ul { margin: 0; padding-left: 1.2em; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px 14px 58px; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 16px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn.line { background: #06c755; color: #fff; }
.callout { background: var(--card); border: 2px dashed var(--ink); border-radius: 14px; padding: 16px 18px; font-weight: 700; }

@media (max-width: 760px) {
  .days, .days.three { grid-template-columns: 1fr; gap: 26px; }
  .host, .plans { grid-template-columns: 1fr; }
  .host .btn { justify-self: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .day { animation: pop .45s ease-out both; }
  .day.sun { animation-delay: .1s; } .day.hol { animation-delay: .2s; }
  @keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* about.html */
.doc h3 { font-size: 16px; margin: 18px 0 6px; }
.doc .list { padding-left: 1.2em; margin: 0; }
.doc .list li { margin: 6px 0; line-height: 1.75; }
.doc p { line-height: 1.75; overflow-wrap: anywhere; }
.doc td { overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 7em 1fr; gap: 8px 12px; margin: 0; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 14px 16px; box-shadow: 4px 4px 0 var(--ink); }
.kv dt { font-weight: 800; } .kv dd { margin: 0; }
.tbl { overflow-x: auto; }
.tbl table { border-collapse: collapse; width: 100%; background: #fff; border: 2px solid var(--ink); }
.tbl th, .tbl td { border: 1px solid var(--ink); padding: 8px 10px; text-align: left; vertical-align: top; font-size: 14px; }
.tbl th { background: #fff3b0; }
.pr-badge { display: inline-block; font-size: 12px; font-weight: 800; border: 2px solid var(--ink); border-radius: 6px; padding: 0 6px; background: #fff; }
footer a { color: inherit; margin-right: 12px; }

/* 期間中の催しは折りたたみ */
details.ongoing { margin-top: 14px; }
details.ongoing > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; font-weight: 800; }
details.ongoing > summary::-webkit-details-marker { display: none; }
details.ongoing > summary::after { content: '▼'; font-size: 11px; }
details.ongoing[open] > summary::after { content: '▲'; }
details.ongoing > ol { margin-top: 12px; }
