/* ws02.arculm.com 共通 site.css v2.0（WS-02）
   役割：額（ワークショップの層）＝上端の帯・下端の行動バー・切替帯・資料の層・フッター、と共通部品。
   規則：外部読み込みなし。JS なしで全文が読める。文字は16px以上。動きは transform と opacity のみ。
   日本語の改行：data-break="phrase" の要素に keep-all＋overflow-wrap:anywhere。<wbr> は生成時に BudouX で焼き込み（AS-18〜20）。 */

@font-face { font-family: "WS Display"; src: url("fonts/ws-bizudpgothic-bold.woff2") format("woff2"); font-weight: 700; font-display: optional; }

:root {
  --ink: #000000;
  --paper: #FFFFFF;
  --red: #FF3130;              /* チラシ表面の赤（flyer-front.webp から採色） */
  --line: #000000;
  --font-ui: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", sans-serif;
  --font-ws: "WS Display", var(--font-ui);
  --fs-body: 17px;
  --fs-note: 16px;
  --lh: 1.8;
  --bar-h: 64px;
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; font-family: var(--font-ui); font-size: var(--fs-body); line-height: var(--lh);
  color: var(--ink); background: var(--paper); line-break: strict;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 24px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--paper); }
[data-break="phrase"] { word-break: keep-all; overflow-wrap: anywhere; }

.wrap { width: min(100% - var(--gutter) * 2, 1120px); margin-inline: auto; }
.measure { max-width: 40em; }

.skip-link { position: absolute; left: 8px; top: 8px; z-index: 300; padding: 8px 16px; background: var(--paper); color: var(--ink); font-weight: 700; transform: translateY(-300%); }
.skip-link:focus { transform: none; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* 1. 上端の帯（架空・目的・試作の明示。K1〜K3。AS-09 の転用） ---------------- */
.fiction-banner { background: var(--ink); color: var(--paper); font-size: var(--fs-note); line-height: 1.6; }
.fiction-banner .wrap { padding-block: 10px; }
.fiction-banner p { margin: 0; }
.fiction-banner p + p { margin-top: 2px; }
.fiction-banner a { color: var(--paper); font-weight: 700; }

/* 2. 下端の行動バー（P1-V01） --------------------------------------------- */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--ink);
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px)); }
.actionbar ul { list-style: none; padding: 0; margin: 0 auto; max-width: 720px; display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; }
.bar-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 4px 8px;
  border: 2px solid var(--paper); color: var(--paper); font-size: 16px; font-weight: 700; line-height: 1.3;
  text-decoration: none; text-align: center; background: transparent; word-break: keep-all; }
.bar-btn[aria-current="page"] { background: var(--paper); color: var(--ink); }
.bar-btn.is-primary { background: var(--red); border-color: var(--red); color: var(--ink); }
.bar-btn:focus-visible { outline-color: var(--paper); box-shadow: 0 0 0 6px var(--ink); }

/* 4社の切替（バーの「4社を見る」から開く。JSが無いときはフッターの一覧へ移動） */
.cos-dialog { width: min(100%, 720px); max-width: 100%; margin: auto auto 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.cos-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.cos-dialog .inner { padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px)); }
.cos-dialog h2 { font-family: var(--font-ws); font-size: 20px; margin-bottom: 12px; }
.cos-dialog ul { list-style: none; padding: 0; margin: 0 0 12px; }
.cos-dialog li + li { border-top: 2px solid var(--ink); }
.cos-dialog a { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 8px 4px; text-decoration: none; }
.cos-dialog a .nm { font-weight: 700; font-size: 18px; }
.cos-dialog a .ds { font-size: 16px; }
.cos-dialog a[aria-current="page"] .nm::after { content: "（いま見ているページ）"; font-weight: 400; font-size: 16px; }
.cos-dialog .close { width: 100%; }

/* 3. ボタン ---------------------------------------------------------------- */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 480px; min-height: 56px;
  padding: 12px 20px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
  font: inherit; font-size: 17px; font-weight: 700; line-height: 1.4; text-decoration: none; text-align: center; cursor: pointer; word-break: keep-all; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn.is-done { background: var(--paper); color: var(--ink); }
.btn-primary.is-done { background: var(--paper); color: var(--ink); }
.note { font-size: var(--fs-note); }

/* 4. 切替帯（自社サイト → 資料。AS-08 継承、見た目は作り直し） -------------- */
.band { background: var(--red); color: var(--ink); padding: 48px 0 44px; }
.band .wrap { max-width: 760px; }
.band .band-co { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.band .band-title { font-family: var(--font-ws); font-size: clamp(26px, 7.4vw, 44px); line-height: 1.35; margin: 0; max-width: 18em; }

/* 5. 資料の層（4社で同じ部品・同じ順。K6） ------------------------------------ */
.materials { background: var(--paper); color: var(--ink); }
.materials .wrap { max-width: 760px; }
.m-intro { padding: 32px 0 8px; }
.m-intro p { max-width: 40em; }
.m-index { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-index a { display: flex; align-items: center; min-height: 52px; padding: 6px 12px; border: 2px solid var(--ink); font-weight: 700; font-size: 16px; line-height: 1.4; text-decoration: none; }
.m-sec { padding: 56px 0 8px; }
.m-sec > .wrap > h2, .ws-h2 { font-family: var(--font-ws); font-size: clamp(24px, 6.4vw, 32px); line-height: 1.4; margin: 0 0 24px; padding-top: 20px; border-top: 6px solid var(--ink); position: relative; }
.m-sec > .wrap > h2::before, .ws-h2::before { content: ""; position: absolute; left: 0; top: -6px; width: 56px; height: 6px; background: var(--red); }
.m-sub { font-weight: 700; margin: 0 0 4px; }
.m-unit { font-size: var(--fs-note); text-align: right; margin: 0 0 4px; }
.cat-label, .cat-item, .cat-pair { display: block; }
.m-facts { margin: 16px 0 0; padding: 16px; border: 3px solid var(--ink); }
.m-facts p:last-child { margin-bottom: 0; }
.m-notes { margin-top: 16px; }
.m-who { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.m-quote { margin: 28px 0 0; padding: 0 0 0 18px; border-left: 6px solid var(--red); }
.m-quote p { font-size: 20px; line-height: 1.75; font-weight: 700; }
.m-list { padding-left: 1.3em; }
.m-list li { margin-bottom: 0.9em; }
.m-list li::marker { color: var(--ink); }
.m-q { padding-left: 0; list-style: none; counter-reset: q; }
.m-q li { counter-increment: q; position: relative; padding: 14px 0 14px 52px; border-top: 2px solid var(--ink); }
.m-q li:last-child { border-bottom: 2px solid var(--ink); }
.m-q li::before { content: counter(q); position: absolute; left: 0; top: 10px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-weight: 700; font-family: var(--font-ui); }
.m-apply { padding-bottom: 32px; }

/* 6. 数値表 ----------------------------------------------------------------- */
.table-scroll { overflow-x: auto; }
table.numbers { border-collapse: collapse; width: 100%; font-size: 16px; font-variant-numeric: tabular-nums; }
table.numbers caption { text-align: left; font-weight: 700; padding-bottom: 4px; }
table.numbers th, table.numbers td { padding: 10px 6px; border-bottom: 1px solid var(--ink); vertical-align: top; }
table.numbers thead th { border-bottom: 3px solid var(--ink); text-align: right; white-space: nowrap; }
table.numbers thead th:first-child { text-align: left; }
table.numbers tbody th { text-align: left; width: calc(7.2em + 12px); font-weight: 700; }
table.numbers td { text-align: right; white-space: nowrap; }
@media (min-width: 720px) { table.numbers th, table.numbers td { padding: 12px 14px; } table.numbers { font-size: 17px; } table.numbers tbody th { width: calc(7.2em + 28px); } }

/* 7. AIに渡すテキスト（K8。class 名は既存を継承） ------------------------------ */
.copy-help { max-width: 40em; }
.copy-box { border: 3px solid var(--ink); margin: 16px 0 0; }
.copy-box .copy-btn { position: sticky; top: 0; z-index: 2; max-width: none; border-width: 0 0 3px; }
.copy-status { margin: 0; padding: 0 16px; font-weight: 700; }
.copy-status:empty { display: none; }
.copy-status:not(:empty) { padding: 10px 16px; border-bottom: 3px solid var(--ink); }
.copy-box pre { margin: 0; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-ui); font-size: 16px; line-height: 1.75; tab-size: 2; }
.copy-fallback { display: none; padding: 12px; }
.copy-fallback textarea { width: 100%; min-height: 240px; font: inherit; font-size: 16px; line-height: 1.7; padding: 12px; border: 2px solid var(--ink); }
.copy-box.no-clipboard .copy-fallback { display: block; }
.copy-box.no-clipboard .copy-target { display: none; }

/* 8. フッター（AS-10 転用：全ページ同一・縦1列・4社は名前＋説明・aria-current） -- */
.site-footer { margin-top: 72px; padding: 32px 0 24px; border-top: 6px solid var(--ink); font-size: var(--fs-note); line-height: 1.7; }
.site-footer .wrap { max-width: 760px; }
.site-footer p { margin: 0 0 12px; }
.site-footer .fiction-repeat { font-weight: 700; }
.site-footer nav ul { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 4px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 4px; font-weight: 700; }
.site-footer nav a[aria-current="page"] { text-decoration-thickness: 3px; }
.site-footer .nav-lead { font-weight: 700; margin: 20px 0 0; }
.site-footer .nav-cos .desc { margin: 0 0 6px; padding: 0 4px; }
.site-footer .mock-note { margin-top: 20px; padding-top: 12px; border-top: 2px solid var(--ink); }

/* 9. 動き（AS-14 転用）：初期状態は .js-motion のときだけ。JS なし・動きを減らす設定・タップ後は最終状態 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.motion-done *, .motion-done *::before, .motion-done *::after { animation: none !important; transition: none !important; }

/* 10. 印刷 */
@media print { .actionbar, .cos-dialog, .skip-link { display: none !important; } body { padding-bottom: 0; } }
.after-btn { margin-top: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; font-size: 16px; }
.ln { display: block; }
.nw { white-space: nowrap; }
