/* 公開サイト全体の紙面。アプリの朱色と墨色を引き継ぎ、罫線・余白で情報を整理する。
   記事・作成・招待の機能別 CSS の後で読み込み、共有する見た目をここに集約する。 */
:root {
  --pon-primary: #C55232;
  --pon-primary-light: #C55232;
  --pon-primary-dark: #A94025;
  --pon-secondary: #365D63;
  --pon-accent: #A66C22;
  --pon-bg: #F7F6F2;
  --pon-surface: #FFFEFB;
  --pon-text: #25221F;
  --pon-text-sub: #6E6862;
  --pon-border: #DDD9D1;
  --pon-ok: #397455;
  --pon-maybe: #A66C22;
  --pon-ng: #B64D45;
  --pon-radius-card: 12px;
  --pon-radius-control: 10px;
  --pon-font: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
}
html { scroll-padding-top: 24px; }
body.pon-site { margin: 0; padding-bottom: 0; font-family: var(--pon-font); color: var(--pon-text); background: var(--pon-bg); -webkit-font-smoothing: antialiased; }
body.pon-site::before { display: none; }
.pon-site *, .pon-site *::before, .pon-site *::after { box-sizing: border-box; }
.pon-site a { text-underline-offset: .2em; }
.pon-site :where(a,button,input,select,textarea,[tabindex]):focus-visible { outline: 3px solid var(--pon-secondary); outline-offset: 3px; }
.pon-site :where(h1,h2,h3) { letter-spacing: .01em; overflow-wrap: anywhere; text-wrap: pretty; }
.pon-site p { overflow-wrap: anywhere; }
.pon-icon { display: inline-block; width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; color: inherit; fill: none; }
:where(a,button,h2,h3,label,.kicker,.notice,.label,.badge) > .pon-icon { margin-right: .45em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; border-radius: 8px; background: var(--pon-text); color: white; font-size: 15px; }
.skip-link:focus { top: 12px; }
/* 画像のアプリアイコンをそのまま使い、媒体ごとに別のロゴを作らない。 */
.pon-site .top { max-width: 1120px; min-height: 88px; margin: 0 auto; padding: 20px 32px; gap: 16px; border: 0; display: flex; align-items: center; justify-content: space-between; background: transparent; }
.pon-site > header, .page-create > header, .page-join > header { background: var(--pon-surface); border-bottom: 1px solid var(--pon-border); }
.pon-site .wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--pon-text); font-size: 20px; font-weight: 750; letter-spacing: .025em; text-decoration: none; border: 0; white-space: nowrap; flex-shrink: 0; margin: 0; padding: 0; }
.brand-image { display: block; width: 34px; height: 34px; object-fit: contain; flex: none; }
.pon-site .wordmark.small { font-size: 16px; }
.wordmark.small .brand-image { width: 26px; height: 26px; }
.pon-site .top-nav, .pon-site .top > nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; }
.pon-site .top-nav a, .pon-site .top > nav a, .pon-site .top > a:not(.wordmark) { font-size: 13px; font-weight: 600; color: var(--pon-secondary); padding: 8px 0; text-decoration: none; white-space: normal; }
.pon-site .top a:hover { color: var(--pon-primary-dark); border-color: transparent; text-decoration: underline; }
.pon-site .top a[aria-current='page'] { color: var(--pon-primary-dark); text-decoration: underline; }
.pon-site .footer, .pon-site .foot-inner { max-width: 1120px; margin: 0 auto; padding: 32px; font-size: 13px; line-height: 1.9; }
.pon-site .footer { border-top: 1px solid var(--pon-border); }
.pon-site .footer p { margin: 6px 0; }
.pon-site .footer a, .pon-site footer a { display: inline-block; padding-block: 4px; }
/* トップは章立てのある紙面にする。各章を同じカードへ押し込まない。 */
.page-home .hero { max-width: 1120px; padding: 74px 32px 76px; gap: 64px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.page-home .hero h1 { font-size: clamp(32px,3.8vw,44px); line-height: 1.48; letter-spacing: .02em; margin-bottom: 22px; }
.page-home .hero h1 em { display: inline-block; white-space: nowrap; text-decoration: none; color: var(--pon-primary); }
.page-home .hero-copy > .hero-lead { max-width: 28em; color: var(--pon-text-sub); font-size: 16px; line-height: 1.95; }
.page-home .hero-cta { padding: 16px 24px; gap: 10px; margin-top: 20px; box-shadow: 0 3px 0 rgba(94,38,22,.1); }
.page-home .hero-cta > .pon-icon { margin: 0; }
.page-home .hero-note { font-size: 12px; }
.page-home .hero-demo { position: relative; }
.page-home .demo-card { padding: 25px 24px 20px; border-radius: 14px; box-shadow: 0 14px 36px -25px rgba(37,34,31,.3); }
.page-home .demo-head { margin-bottom: 22px; gap: 12px; }
.page-home .demo-head strong { font-size: 16px; }
.page-home .demo-chip { font-size: 11px; white-space: nowrap; background: var(--pon-bg); color: var(--pon-text-sub); }
.page-home .demo-matrix th,.page-home .demo-matrix td { padding: 12px 5px; }
.page-home .demo-matrix thead th { font-size: 16px; font-variant-numeric: tabular-nums; }
.page-home .demo-matrix thead small { margin-top: 2px; font-size: 11px; }
.page-home .demo-matrix td .pon-icon { width: 21px; height: 21px; }
.page-home .demo-foot { padding-top: 14px; }
.page-home main { max-width: 1056px; padding: 0 32px 56px; }
.page-home main > section { background: transparent; border: 0; border-top: 1px solid var(--pon-border); border-radius: 0; padding: 54px 0; margin: 0; }
.page-home section h2 { margin-bottom: 26px; font-size: clamp(23px,2.5vw,29px); line-height: 1.5; }
.pon-site .kicker { display: flex; align-items: center; font-size: 12px; line-height: 1.6; letter-spacing: .06em; font-weight: 700; color: var(--pon-primary-dark); margin: 0 0 12px; }
.page-home .steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin: 0 0 28px; }
.page-home .steps li { padding: 52px 0 0; line-height: 1.9; }
.page-home .steps li::before { background: transparent; color: var(--pon-primary); border-bottom: 1px solid var(--pon-border); border-radius: 0; width: 100%; height: 35px; justify-content: flex-start; font-size: 22px; font-variant-numeric: tabular-nums; }
.page-home .steps li::after { display: none; }
.page-home .steps b { margin: 0 0 10px; font-size: 17px; }
.page-home .features { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 48px; }
.page-home .feature { background: transparent; border-radius: 0; padding: 0 0 0 43px; position: relative; }
.page-home .feature > .pon-icon { position: absolute; left: 0; top: 0; width: 27px; height: 27px; color: var(--pon-secondary); }
.page-home .feature h3 { font-size: 17px; color: var(--pon-text); }
.page-home .feature p, .page-home .case p { font-size: 14px; line-height: 1.95; }
.page-home .cases { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 40px; }
.page-home .case { border: 0; border-bottom: 1px solid var(--pon-border); border-radius: 0; padding: 24px 0; }
.page-home .case h3 { font-size: 16px; color: var(--pon-text); margin-bottom: 8px; }
.page-home a.case { padding-right: 20px; }
.page-home a.case:hover { border-color: var(--pon-primary); }
.page-home .compare th { background: var(--pon-surface); border-bottom: 1px solid var(--pon-text-sub); padding: 15px 12px; }
.page-home .compare td { padding: 14px 12px; }
.page-home .compare td:not(:first-child) { text-align: center; }
.page-home .compare .pon-icon { color: var(--pon-ok); }
.page-home .faq dt { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--pon-border); }
.page-home .faq dt:first-child { border-top: 0; padding-top: 0; }
.page-home .faq dd { line-height: 1.95; }
.page-home .links { margin-top: 24px; }
.page-home .links a { flex: 0 1 auto; min-width: min(100%,250px); }
/* 記事は長文を読むための一枚の紙面。見出しと目次の関係を明確にする。 */
.page-article main, .page-about main, .page-legal main, .page-guide main, .page-notfound main { width: min(820px,calc(100% - 64px)); margin: 32px auto 64px; padding: 48px 50px; border: 1px solid var(--pon-border); border-radius: 12px; background: var(--pon-surface); box-shadow: 0 12px 36px -32px rgba(37,34,31,.3); line-height: 1.95; }
.page-guide main { width: min(1040px,calc(100% - 64px)); }
.page-article h1, .page-about h1, .page-legal h1, .page-guide h1, .page-notfound h1 { font-size: clamp(25px,3vw,34px); line-height: 1.6; border: 0; margin-bottom: 22px; padding: 0; }
.page-article h2, .page-about h2, .page-legal h2, .page-notfound h2 { font-size: 21px; font-weight: 700; margin-top: 48px; padding-bottom: 12px; line-height: 1.6; }
.pon-site .crumb { font-size: 12px; margin-bottom: 22px; }
.pon-site .lead { line-height: 1.95; }
.pon-site .meta { font-size: 12px; }
.pon-site .table-wrap { overflow-x: auto; max-width: 100%; overscroll-behavior-x: contain; }
.page-article .toc { background: var(--pon-bg); border: 0; border-left: 3px solid var(--pon-secondary); border-radius: 0 8px 8px 0; padding: 22px 26px; margin: 32px 0; }
.page-article .toc p { color: var(--pon-secondary); }
.page-article .toc li { padding: 3px 0; }
.page-article .note, .page-legal .note { border: 0; border-left: 3px solid var(--pon-accent); border-radius: 0; background: #F7F2E8; padding: 20px 22px; }
.page-article .example { border-color: var(--pon-border); border-radius: 8px; padding: 20px 22px; }
.page-article .table-wrap, .page-legal .table-wrap { margin: 24px 0; }
.page-legal table { display: table; width: 100%; min-width: 500px; border-collapse: collapse; }
.page-article .table-wrap:focus-visible, .page-legal .table-wrap:focus-visible { outline: 3px solid var(--pon-secondary); outline-offset: 3px; }
.pon-site .cta { background: var(--pon-bg); border: 0; border-top: 1px solid var(--pon-border); border-radius: 0; margin-top: 48px; padding: 32px 24px; }
.pon-site .cta .btn { padding: 14px 24px; }
.page-guide .cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; margin-top: 16px; }
.page-guide .cards a { background: transparent; border: 0; border-bottom: 1px solid var(--pon-border); border-radius: 0; padding: 24px 0; position: relative; }
.page-guide .cards a > .pon-icon { width: 27px; height: 27px; color: var(--pon-primary); margin-bottom: 14px; }
.page-guide .cards h2 { font-size: 18px; color: var(--pon-text); margin-bottom: 10px; line-height: 1.7; }
.page-guide .cards p { line-height: 1.95; }
.page-guide .cards a:hover h2 { color: var(--pon-primary-dark); }
.page-about .profile dt { background: #F4F3EE; }
/* 操作ページは入力内容を主役に。日付は揃え、ボタンは44px以上を基本にする。 */
.page-create main, .page-join main { max-width: 768px; padding: 36px 24px 64px; }
.page-join main { max-width: 1120px; }
/* 回答表は広く、入力フォームは読みやすい幅に留める。 */
.page-join :where(#event-card,#notice-slot,#host-slot,#form-slot,#cancel-slot) { width: 100%; max-width: 720px; margin-inline: auto; }
.page-intro { margin-bottom: 28px; }
.page-intro h1 { font-size: 30px; line-height: 1.5; margin: 0 0 10px; }
.page-intro > p:last-child { color: var(--pon-text-sub); font-size: 14px; margin: 0; line-height: 1.9; }
.page-create .card, .page-join .card { padding: 28px; margin-bottom: 18px; box-shadow: none; }
.page-create .card h3, .page-join .card h3 { font-size: 17px; line-height: 1.6; margin-bottom: 20px; }
.page-create .field, .page-join .field { margin-bottom: 22px; }
.page-create .field:last-child,.page-join .field:last-child { margin-bottom: 0; }
.page-create label, .page-join label { font-size: 14px; color: var(--pon-text); margin-bottom: 9px; }
.pon-site input:not([type='checkbox']):not([type='radio']), .pon-site textarea, .pon-site select { font-size: 16px; line-height: 1.6; min-height: 48px; padding: 11px 13px; border: 1px solid var(--pon-border); border-radius: 8px; background: #FFFFFF; color: var(--pon-text); font-family: inherit; min-width: 0; }
.pon-site input:focus-visible, .pon-site textarea:focus-visible, .pon-site select:focus-visible { outline: 2px solid var(--pon-secondary); outline-offset: 2px; border-color: var(--pon-secondary); }
.pon-site .hint { line-height: 1.85; font-size: 12px; }
.pon-site :where(.submit-btn,.sub-btn,.host-btn,.csv-btn,.flip-btn,.note-dialog-close,.share-actions button,.share-actions a) { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-family: inherit; line-height: 1.6; }
.pon-site .submit-btn { min-height: 54px; font-size: 16px; padding: 14px 20px; }
.pon-site .link-btn { min-height: 36px; }
.pon-site .notice { padding: 18px 22px; border-radius: 10px; font-size: 15px; line-height: 1.8; }
.pon-site .notice p { font-size: 13px; line-height: 1.85; }
.page-create .notice.info { margin-bottom: 24px; }
.page-create .cand-date { font-variant-numeric: tabular-nums; }
.page-create .share-url { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.page-join #event-card { padding: 6px 0 28px; border: 0; border-bottom: 1px solid var(--pon-border); background: transparent; border-radius: 0; }
.page-join .event-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 30px; line-height: 1.5; margin: 0 0 14px; }
.page-join .event-title .badge { font-size: 12px; font-weight: 600; }
.page-join .event-meta { display: flex; align-items: center; margin-top: 12px; font-size: 13px; }
.page-join .event-meta .pon-icon { margin-right: 7px; }
.page-join .candidate { border: 0; border-top: 1px solid var(--pon-border); border-radius: 0; padding: 22px 0; margin: 0; }
.page-join .candidate-date { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.8; margin-bottom: 14px; }
.page-join .candidate-date .pon-icon { color: var(--pon-secondary); margin-right: 8px; }
.page-join .answer-buttons { gap: 10px; }
.page-join .answer-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 4px; font-size: 14px; }
.page-join .answer-btn > .pon-icon { width: 21px; height: 21px; margin: 0; }
.page-join .answer-btn.selected { box-shadow: inset 0 0 0 1px currentColor; }
.page-join .note-input { margin-top: 12px; }
.page-join .matrix-bleed { margin-inline: -28px; }
.page-join .matrix-head { align-items: flex-start; gap: 14px; }
.page-join .matrix-head h3 { flex: 1; min-width: 0; }
.page-join .matrix th { font-variant-numeric: tabular-nums; }
.page-join .matrix .mark > .pon-icon { width: 1em; height: 1em; }
.page-join .count > .pon-icon { width: 15px; height: 15px; }
.page-join .note-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; min-height: 28px; padding: 4px; font-size: 14px; vertical-align: middle; }
.page-join .note-mark > .pon-icon { margin: 0; }
.page-join .ai-tally span { display: inline-flex; align-items: center; gap: 5px; }
.page-join .decided-card { padding: 26px; }
.page-join .decided-card .date { font-variant-numeric: tabular-nums; }
.page-join .note-dialog-box { padding: 28px; max-width: 420px; max-height: min(85vh,700px); overflow-y: auto; }
.page-join .note-dialog-head { font-size: 17px; }
.page-join .note-dialog-body { font-size: 16px; line-height: 1.9; }
@media (max-width: 720px) {
  .pon-site .top { min-height: 78px; padding: 16px 20px; align-items: flex-start; }
  .pon-site .top-nav,.pon-site .top > nav { gap: 2px 14px; }
  .pon-site .top-nav a,.pon-site .top > nav a { font-size: 12px; }
  .pon-site .wordmark { font-size: 18px; }
  .brand-image { width: 30px; height: 30px; }
  .page-home .hero { grid-template-columns: 1fr; padding: 36px 22px 44px; gap: 34px; }
  .page-home .hero h1 { font-size: clamp(29px,7.5vw,43px); }
  .page-home .hero-cta { font-size: 15px; padding: 15px 20px; }
  .page-home .demo-card { padding: 22px 16px 16px; }
  .page-home main { padding: 0 22px 32px; }
  .page-home main > section { padding: 38px 0; }
  .page-home .steps { grid-template-columns: 1fr; gap: 24px; }
  .page-home .steps li { padding: 0 0 0 45px; }
  .page-home .steps li::before { width: 28px; border: 0; top: 0; }
  .page-home .features { grid-template-columns: 1fr; gap: 26px; }
  .page-home .cases { gap: 0 24px; }
  .page-home .case { padding: 22px 0; }
  .page-home .faq dt,.page-home .faq dd { font-size: 15px; }
  .page-article main,.page-about main,.page-legal main,.page-guide main,.page-notfound main { width: calc(100% - 32px); margin: 12px auto 40px; padding: 28px 22px; border-radius: 10px; }
  .page-article h1,.page-about h1,.page-legal h1,.page-guide h1,.page-notfound h1 { font-size: 25px; }
  .page-article h2,.page-about h2,.page-legal h2,.page-notfound h2 { font-size: 20px; margin-top: 38px; }
  .page-guide .cards { grid-template-columns: 1fr; }
  .page-article .toc { padding: 20px; }
  .page-create main,.page-join main { padding: 28px 16px 48px; }
  .page-create .card,.page-join .card { padding: 22px 18px; }
  .page-intro h1,.page-join .event-title { font-size: 26px; }
  .page-join #event-card { padding: 2px 2px 24px; }
  .page-join .matrix-bleed { margin-inline: -18px; }
  .page-join .matrix-head { flex-wrap: wrap; }
  .page-join .matrix-head h3 { flex-basis: 100%; margin-bottom: 0; }
  .pon-site .footer,.pon-site .foot-inner { padding: 28px 20px; }
}
@media (max-width: 480px) {
  /* 日付の末尾がネイティブのカレンダーボタンに隠れない幅を確保する。 */
  .page-create .row { flex-wrap: wrap; }
  .page-create .row .field { flex-basis: 100%; }
}
@media (max-width: 390px) {
  .pon-site .top { flex-wrap: wrap; padding: 14px 18px; gap: 10px; }
  .pon-site .top > nav,.pon-site .top-nav { justify-content: flex-start; }
  .page-home .cases { grid-template-columns: 1fr; }
  .page-home .hero { padding-inline: 18px; }
  .page-home main { padding-inline: 18px; }
  .page-home .demo-card { padding-inline: 12px; }
  .page-home .demo-head strong { font-size: 14px; }
  .page-home .demo-chip { padding-inline: 6px; }
  .page-article main,.page-about main,.page-legal main,.page-guide main,.page-notfound main { width: calc(100% - 24px); padding: 24px 18px; }
  .page-create .row { gap: 12px 8px; }
  .page-join .answer-buttons { gap: 6px; }
  .page-join .answer-btn { font-size: 13px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .pon-site *, .pon-site *::before, .pon-site *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
