/* 今のサイトの style.css に足りない分だけ */
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.page-top-image { margin-bottom: 26px; }
.page-top-caption { margin: -18px 0 26px; font-size: 0.82rem; color: var(--paper); opacity: 0.75; }
.row-heading a { color: inherit; }
.status-alert { background: var(--crimson) !important; color: #fff !important; }
.kanban-col-rule.is-alert { background: var(--crimson); }
.category-jump a.is-current { background: var(--band); color: #fff; }
.article-meta { align-items: center; }
.figure { margin: 2em 0; max-width: 100% !important; }
.figure img { display: block; height: auto; clip-path: var(--cut); }
.figure figcaption { font-size: 0.82rem; color: var(--ink-soft); margin-top: 6px; }
.page-content > .table-wrap, .page-content > .cols, .page-content > .figure { max-width: 100%; }
.table-wrap { overflow-x: auto; margin: 22px 0; }
.table-wrap .md-table { margin: 0; clip-path: none; }
/* 表は、本文の幅に合わせて文字を折り返す。列が多くて入りきらない表だけ、横に動かして見る */
.table-wrap .md-table td, .table-wrap .md-table th { white-space: normal; overflow-wrap: break-word; line-break: strict; min-width: 4.5em; }
.table-tall { max-height: 520px; overflow: auto; }
.table-tall thead th { position: sticky; top: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 20px; }
.toggle { margin: 0 0 1.2em; }
.toggle summary { cursor: pointer; font-weight: 700; }
.page-content blockquote a { color: var(--gold-lt); }
.page-content .link-cards a { text-decoration: none; }
.page-content .link-card, .page-content .link-card:hover { color: var(--paper); }
.link-cards + .row-list, .paper-sheet + .row-list { margin-top: 46px; }
.card-thumb { max-width: none; flex-shrink: 0; }
.page-content .video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; margin: 0 0 1.4em; }
.beer-table th { white-space: nowrap; text-align: left; vertical-align: top; }
.table-wrap .beer-table td { white-space: normal; min-width: 14em; }
.page-content h2 { display: block; width: fit-content; }
.page-content h2 a, .page-content h2 a:hover { color: #fff; }
/* タグ */
.tag-group h2 a { color: inherit; text-decoration: none; }
.tag-count { margin-left: 4px; font-family: var(--font-mono); font-size: 0.72em; opacity: 0.7; }
.section-head h2 { min-width: 0; }
/* 予定の一覧とカレンダー */
.event-list { display: grid; gap: 10px; margin: 14px 0 30px; }
.page-content > .event-list { max-width: 100%; }
.paper-sheet a.event-item, .page-content a.event-item { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 12px 16px; background: var(--paper-2); color: var(--ink); text-decoration: none; clip-path: var(--cut-sm); }
.event-when { font-family: var(--font-mono); font-size: 0.8rem; }
.event-name { font-weight: 900; }
.event-place { font-size: 0.82rem; color: var(--ink-soft); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 12px; }
.cal-head h2 { margin: 0; }
.paper-sheet .cal-head a { padding: 6px 16px; background: var(--ground); color: var(--paper); text-decoration: none; }
.cal { width: 100%; table-layout: fixed; border-collapse: collapse; color: var(--ink); }
.cal th, .cal td { border: 1px solid #d3c8b2; vertical-align: top; padding: 4px; }
.cal th { font-size: 0.8rem; }
.cal td { height: 84px; overflow-wrap: anywhere; }
.cal td.is-today { background: var(--paper-2); }
.cal-day { display: block; font-family: var(--font-mono); font-size: 0.75rem; }
.paper-sheet .cal td a { display: block; margin-top: 3px; padding: 2px 4px; background: var(--band); color: #fff; font-size: 0.7rem; line-height: 1.35; text-decoration: none; }
@media (max-width: 600px) { .cal th, .cal td { padding: 2px; } .cal td { height: 62px; } .paper-sheet .cal td a { font-size: 0.56rem; padding: 1px 2px; } }
/* パスワード入力 */
.gate { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.gate input { font: inherit; padding: 10px 12px; border: 2px solid var(--ink); background: #fff; color: var(--ink); min-width: 0; flex: 1 1 220px; }
.gate .button { border: 0; cursor: pointer; }
.gate-message { color: var(--crimson); font-weight: 700; }
/* 記事の中に入れる一覧は、本文の見出しやリンクの飾りを受けない */
.page-content > .row-list, .page-content > .card-grid { max-width: 100%; margin: 30px 0; }
.page-content .row-list h2.row-heading { display: flex; width: auto; margin: 0 0 16px; padding: 0; background: none; clip-path: none; color: var(--ink); font-size: 1.24rem; }
.page-content .row-list h2.row-heading a, .page-content .row-list h2.row-heading a:hover { color: var(--ink); }
.page-content a.row-card, .page-content a.row-card:hover, .page-content a.card, .page-content a.card:hover { color: var(--ink); text-decoration: none; }
/* SNS */
.sns-icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; vertical-align: -0.25em; }
.sns-inline .sns-icon { margin-right: 5px; width: 1.05em; height: 1.05em; vertical-align: -0.16em; }
.sns-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.page-content > .sns-row, .page-content > .sns-groups { max-width: 100%; }
a.sns-pill, .paper-sheet a.sns-pill, .page-content a.sns-pill { display: inline-flex; align-items: center; gap: 11px; min-height: 54px; max-width: 100%; padding: 9px 18px 9px 15px; background: var(--ground); color: var(--paper); line-height: 1.3; text-decoration: none; clip-path: var(--cut-sm); transition: background 0.13s ease, transform 0.13s ease; }
a.sns-pill:hover, .paper-sheet a.sns-pill:hover, .page-content a.sns-pill:hover { color: #fff; transform: translate(-2px, -2px); }
.sns-pill .sns-icon { width: 24px; height: 24px; }
.sns-text { display: flex; flex-direction: column; min-width: 0; }
.sns-name { font-weight: 900; font-size: 0.95rem; }
.sns-handle { font-family: var(--font-mono); font-size: 0.66rem; opacity: 0.75; overflow-wrap: anywhere; }
.sns-instagram .sns-icon { color: var(--band-lt); }
.sns-youtube .sns-icon { color: #ff7a6b; }
.sns-facebook .sns-icon { color: #9cc0ff; }
.sns-untappd .sns-icon { color: var(--gold-lt); }
a.sns-instagram:hover { background: linear-gradient(45deg, #b8460f, #c4194f 55%, #6d2a86) !important; }
a.sns-x:hover { background: #000 !important; }
a.sns-youtube:hover { background: #c0142c !important; }
a.sns-facebook:hover { background: #1d5fbf !important; }
a.sns-note:hover { background: var(--forest) !important; }
a.sns-untappd:hover { background: #8a6200 !important; }
a.sns-pill:hover .sns-icon, a.sns-dot:hover .sns-icon { color: #fff; }
.sns-groups { display: grid; gap: 14px; margin: 18px 0; }
.sns-owner { display: block; margin-bottom: 8px; font-weight: 900; font-size: 0.9rem; }
.sns-group .sns-row { margin: 0; }
.sns-sheet { margin-top: 46px; padding-top: 30px; padding-bottom: 30px; }
.sns-sheet h3 { margin: 0 0 6px; }
.sns-sheet .sns-groups { margin-bottom: 0; }
a.sns-dot, .footer-inner a.sns-dot { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--ground-3); color: var(--paper); clip-path: var(--cut-sm); }
.sns-dot .sns-icon { width: 20px; height: 20px; }
.footer-inner a.sns-dot:hover, a.sns-dot:hover { color: #fff; }
.sns-footer { display: grid; gap: 10px; }
.sns-footer-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sns-footer-name { min-width: 9em; font-size: 0.8rem; }
.placard-sns { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-top: 12px; font-size: 0.74rem; color: var(--ink-mid); }
.placard-sns span:not(:first-child) { margin-left: 8px; }
.placard-sns a.sns-dot { width: 36px; height: 36px; background: var(--ground); }
/* お店への入口のページ */
.gateway-sign { display: block; }
.gateway-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 6px; }
.gateway-actions .button { white-space: normal; }
.paper-sheet a.button-accent, .paper-sheet a.button-accent:hover { color: #fff; }
.button-ink, .paper-sheet a.button-ink { background: var(--ground); color: var(--paper); filter: none; }
.button-ink:hover, .paper-sheet a.button-ink:hover { background: var(--ground-3); color: #fff; filter: none; }
.gateway-doors { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gateway-visit h3 { margin: 28px 0 10px; }
.gateway-visit h3:first-child { margin-top: 0; }
@media (max-width: 600px) { a.sns-pill, .paper-sheet a.sns-pill, .page-content a.sns-pill { flex: 1 1 100%; } .gateway-actions .button { flex: 1 1 100%; justify-content: center; } }
/* お店と基本の営業日（site-app/inc/shops.php） */
.shop-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 14px 0 10px; }
.page-content > .shop-cards { max-width: 100%; }
.shop-card { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; background: var(--paper-2); color: var(--ink); line-height: 1.5; clip-path: var(--cut-sm); }
.shop-name { font-weight: 900; font-size: 1.1rem; }
.shop-days { margin-top: 6px; font-weight: 700; font-size: 0.9rem; }
.shop-hours { font-family: var(--font-mono); font-weight: 700; font-size: 1.35rem; }
.shop-area { margin-top: 6px; font-size: 0.84rem; font-weight: 700; }
.shop-about { font-size: 0.8rem; color: var(--ink-mid); }
.paper-sheet .shop-note, .shop-note { margin: 0 0 22px; font-size: 0.84rem; color: var(--ink-mid); }
.placard-sub { padding-top: 14px; font-weight: 900; font-size: 0.74rem; color: var(--ink-mid); }
.cal-shop { display: block; font-weight: 700; }
@media (max-width: 600px) { .cal-suffix { display: none; } }
/* 桜泥棒PROJECTのロゴ（ロゴに名前が入っているので、横の文字は置かない） */
.header-inner { padding-top: 8px; padding-bottom: 8px; }
.brand-logo { height: 48px; width: auto; }
.footer-logo { height: 80px; width: auto; margin-left: -4px; }
@media (max-width: 600px) { .brand-logo { height: 44px; } }

/* フッターの、アクセス解析の案内 */
.site-footer .analytics-note{flex:0 0 100%;margin:8px 0 0;font-size:12px;line-height:1.8;opacity:.75}
.site-footer .analytics-note a{color:inherit;text-decoration:underline;margin-left:6px}
/* トップの「このプロジェクトの中身」のロゴは、切らずに全体を見せる */
.card-thumb.is-logo { box-sizing: border-box; object-fit: contain; }
.card-thumb.is-project { background: var(--ground); padding: 12px 20px; border: 6px solid var(--paper); }
.card-thumb.is-cycle { background: #fdfdfd; padding: 8px 10px; }
.card-thumb.is-beer { background: #231816; padding: 2px 4px; border: 6px solid var(--paper); }
/* ページに埋め込むお問い合わせフォーム */
.form-embed { margin: 18px 0 8px; background: #fff; border: 2px solid var(--ink); }
.form-embed iframe { display: block; width: 100%; height: 780px; border: 0; }
@media (max-width: 600px) { .form-embed iframe { height: 860px; } }
.form-embed-note { font-size: 0.82rem; color: var(--ink-soft); }

/* Mermaidの図（build/diagrams.py が画像にする）。押すと画像だけを開いて拡大できる */
.page-content > .diagram, .page-content .diagram { max-width: 100%; margin: 24px 0; padding: 14px; overflow-x: auto; background: #fff; }
.page-content .diagram a { display: block; background: none; padding: 0; }
.page-content .diagram img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.page-content .diagram picture { display: block; }

/* ---- スマホ ---- */
@media (max-width: 600px) {
  /* 本文の紙の余白を詰め、表と図は紙の端の近くまで使う */
  .paper-sheet { padding-left: 16px; padding-right: 16px; }
  .page-content > .table-wrap, .page-content .table-wrap, .page-content > .diagram, .page-content .diagram { margin-left: -8px; margin-right: -8px; max-width: none; }
  .page-content .diagram { padding: 6px; }
  .page-content .diagram-wide::after { content: "図を押すと、大きく表示できます"; display: block; margin-top: 4px; font-size: 0.7rem; text-align: right; color: var(--ink-mid); }
  .table-wrap .md-table { font-size: 0.78rem; line-height: 1.6; }
  .table-wrap .md-table th, .table-wrap .md-table td { padding: 8px 6px; min-width: 3.6em; vertical-align: top; }
  .table-wrap .md-table thead th { white-space: normal; }
  .table-wrap .md-table code { padding: 1px 3px; overflow-wrap: anywhere; }
  .table-wrap .beer-table th { white-space: normal; }
  .table-wrap .beer-table td { min-width: 0; }
  /* トップの「このプロジェクトの中身」は2列にして、少ないスクロールで全体が見えるようにする */
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
  .home-grid .card { padding: 12px; }
  .home-grid .card-thumb { height: 78px; width: calc(100% + 24px); margin: -12px -12px 10px; }
  .home-grid .card-thumb.is-project { padding: 6px 8px; border-width: 4px; }
  .home-grid .card-thumb.is-cycle { padding: 4px; }
  .home-grid .card-thumb.is-beer { border-width: 4px; }
  .home-grid .card-title { font-size: 0.88rem; }
  .home-grid .card-summary { font-size: 0.72rem; line-height: 1.6; margin-top: 4px; }
}
