/* =========================================================================
   tpl-b-common.css … 班B テンプレート（price / subsidy / faq / ai-check / case-* / verification）の共通部品
   接頭辞 pt-b-。色・寸法は base.css のトークンだけを使う（デザイン.md §2）
   ========================================================================= */

/* 冒頭直下のメタ（更新日・監修）だけを置く行 */
.pt-b-metaonly{padding-bottom:0}
.pt-b-metaonly .pt-meta{margin-bottom:0;border-bottom:0}

/* 小見出し・注記 */
.pt-b-h3{margin:40px 0 16px;font-size:19px;line-height:1.5;font-weight:700;color:var(--k);display:flex;align-items:center;gap:10px}
.pt-b-h3::before{content:"";width:14px;height:14px;flex:0 0 14px;background:var(--rd);border-radius:2px}
.pt-sec .pt-b-h3:first-child,.pt-sh+.pt-b-h3,.pt-sl+.pt-b-h3{margin-top:36px}
.pt-b-note{margin:16px 0 0;font-size:13.5px;line-height:1.8;color:var(--sub)}
.pt-b-note a,.pt-b-notes a{color:var(--rd2)}
.pt-b-formula{margin:14px 0 0;padding:12px 16px;font-size:13.5px;line-height:1.8;color:var(--card);background:#fff;border:1px dashed #c9ced3;border-radius:var(--r-sm)}
.pt-b-notes{margin:12px 0 0;padding:0 0 0 1.2em;font-size:13px;line-height:1.8;color:var(--sub)}
.pt-b-list{margin:0;padding:0;list-style:none}
.pt-b-list li{position:relative;padding-left:18px;line-height:1.75}
.pt-b-list li+li{margin-top:6px}
.pt-b-list li::before{content:"";position:absolute;left:2px;top:.7em;width:7px;height:7px;border-radius:50%;background:var(--rd)}
.pt-b-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.pt-b-more{margin:20px 0 0;text-align:right}
.pt-b-more a,.pt-b-arrowlink{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:15px;color:var(--rd2);text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:2px}
.pt-b-more a .pt-ic,.pt-b-arrowlink .pt-ic{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pt-b-ext{color:var(--rd2);text-underline-offset:3px;overflow-wrap:anywhere}
.pt-b-ext .pt-ic{width:13px;height:13px;margin-left:3px;vertical-align:-1px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* 出典 */
.pt-b-src{margin:20px 0 0;padding:14px 18px;background:#fff;border:1px solid var(--line);border-radius:var(--r-sm);font-size:13px;line-height:1.8}
.pt-b-src__h{margin:0 0 4px;font-weight:700;color:var(--k)}
.pt-b-src ul{margin:0;padding:0 0 0 1.1em}

/* 4ステップ（料金ページの「お申し込みまでの流れ」） */
.pt-b-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;counter-reset:s}
.pt-b-steps li{position:relative;display:flex;flex-direction:column;gap:4px;padding:16px 16px 14px;background:#fff;border:1px solid var(--line);border-radius:var(--r-sm);font-size:13.5px;line-height:1.7;color:var(--card)}
.pt-b-steps li b{font-size:16px;color:var(--k)}
.pt-b-steps__n{font:600 13px/1 var(--ff-en);letter-spacing:.12em;color:var(--rd)}
.pt-b-steps li:not(:last-child)::after{content:"";position:absolute;right:-9px;top:50%;width:7px;height:7px;border-top:2px solid var(--rd);border-right:2px solid var(--rd);transform:translateY(-50%) rotate(45deg);z-index:1}
@media (max-width:980px){.pt-b-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.pt-b-steps li:nth-child(2)::after{display:none}}
@media (max-width:767px){.pt-b-steps{grid-template-columns:1fr}.pt-b-steps li::after{display:none}}

/* 表のラッパー（SP は表だけ横スクロール） */
.pt-b-price-tw{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:var(--r-card);background:#fff}
.pt-b-price-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.6;min-width:560px}
.pt-b-price-table th,.pt-b-price-table td{padding:14px 18px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.pt-b-price-table tbody tr:last-child>*{border-bottom:0}
.pt-b-price-table thead th{background:var(--tint);font-size:13px;color:var(--sub);font-weight:700;white-space:nowrap}
.pt-b-price-table tbody th{font-weight:700;color:var(--k);white-space:nowrap}
.pt-b-price-table tbody th a{color:inherit;text-underline-offset:3px}
.pt-b-price-table td b,.pt-b-price-table__p{font:600 18px/1.3 var(--ff-en);color:var(--rd2)}
.pt-b-price-table td{font-variant-numeric:tabular-nums}

/* 助成金の帯（デザイン.md §7 #subsidy の .big16 と同じ型） */
.pt-b-band{position:relative;margin-top:36px;padding:28px 32px 24px;background:var(--rd2);color:#fff;border-radius:var(--r-box);overflow:hidden;
  background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);background-size:40px 40px}
.pt-b-band__k{margin:0;font-size:12.5px;letter-spacing:.08em;color:rgba(255,255,255,.78)}
.pt-b-band__n{margin:4px 0 0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px}
.pt-b-band__n b{font-size:26px;line-height:1.4}
.pt-b-band__n span{font-size:18px;font-weight:700;color:var(--mk)}
.pt-b-band__nums{list-style:none;margin:20px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.pt-b-band__nums li{display:flex;flex-direction:column;gap:2px;padding:14px 18px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);border-radius:var(--r-card)}
.pt-b-band__nums span{font-size:13px;color:rgba(255,255,255,.85)}
.pt-b-band__nums b{font:600 56px/1.05 var(--ff-en);letter-spacing:-.01em}
.pt-b-band__nums b small{font:700 18px/1 var(--ff);margin-left:4px}
.pt-b-band__nums em{font-style:normal;font-size:12.5px;color:rgba(255,255,255,.8)}
.pt-b-band__must{list-style:none;margin:18px 0 0;padding:14px 18px;background:#fff;color:var(--k);border-radius:var(--r-card);font-size:14.5px;line-height:1.75}
.pt-b-band__must li{position:relative;padding-left:24px}
.pt-b-band__must li+li{margin-top:4px}
.pt-b-band__must li::before{content:"";position:absolute;left:3px;top:.45em;width:11px;height:6px;border-left:2.5px solid var(--rd);border-bottom:2.5px solid var(--rd);transform:rotate(-45deg)}
.pt-b-band__must strong{color:var(--rd2)}
.pt-b-band__src{margin:12px 0 0;font-size:12.5px;color:rgba(255,255,255,.85)}
.pt-b-band__src .pt-b-ext{color:#fff}
@media (max-width:767px){
  .pt-b-band{padding:22px 18px 18px;margin-top:28px}
  .pt-b-band__n b{font-size:21px}.pt-b-band__n span{font-size:15px}
  .pt-b-band__nums{grid-template-columns:1fr 1fr;gap:8px}
  .pt-b-band__nums li{padding:10px 12px}
  .pt-b-band__nums li:last-child{grid-column:span 2}
  .pt-b-band__nums b{font-size:40px}
  .pt-b-band__must{padding:12px 14px;font-size:14px}
}

/* FAQ アコーディオン（デザイン.md §7 #faq の Q/A） */
.pt-b-faq{display:flex;flex-direction:column;gap:12px;margin-top:28px;max-width:var(--body-w)}
.pt-b-faq__i{background:#fff;border:1px solid var(--line);border-radius:var(--r-card)}
.pt-b-faq__i[open]{border-color:#c9ced3}
.pt-b-faq__q{display:flex;align-items:flex-start;gap:12px;padding:16px 20px;cursor:pointer;list-style:none;font-weight:700;font-size:16.5px;line-height:1.6;color:var(--k)}
.pt-b-faq__q::-webkit-details-marker{display:none}
.pt-b-faq__q:hover .pt-b-faq__qt{color:var(--rd2)}
.pt-b-faq__mk{flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--rd2);color:#fff;font:600 14px/1 var(--ff-en)}
.pt-b-faq__mk--a{background:var(--rdt);color:var(--rd)}
.pt-b-faq__qt{flex:1 1 auto;min-width:0;padding-top:1px}
.pt-b-faq__pm{position:relative;flex:0 0 18px;width:18px;height:18px;margin-top:5px}
.pt-b-faq__pm::before,.pt-b-faq__pm::after{content:"";position:absolute;left:2px;right:2px;top:8px;height:2px;background:var(--rd);border-radius:1px;transition:transform .2s}
.pt-b-faq__pm::after{transform:rotate(90deg)}
.pt-b-faq__i[open] .pt-b-faq__pm::after{transform:rotate(0)}
.pt-b-faq__a{display:flex;gap:12px;padding:0 20px 18px}
.pt-b-faq__ab{flex:1 1 auto;min-width:0}
.pt-b-faq__at{margin:2px 0 0;font-size:15.5px;line-height:1.85;color:var(--card)}
.pt-b-faq__lk{margin:8px 0 0;font-size:14px}
.pt-b-faq__lk a{display:inline-flex;align-items:center;gap:4px;color:var(--rd2);font-weight:700;text-underline-offset:3px}
.pt-b-faq__lk .pt-ic{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:767px){
  .pt-b-faq__q{padding:14px 14px;font-size:15.5px;gap:10px}
  .pt-b-faq__a{padding:0 14px 16px;gap:10px}
  .pt-b-faq__at{font-size:15px}
}
@media (prefers-reduced-motion:reduce){.pt-b-faq__pm::before,.pt-b-faq__pm::after{transition:none}}

/* 補助ボタン「助成金確認」はデザイン.md §4-2 の 360×64 */
.pt-b-actions .pt-btn--or{width:360px;min-height:64px}
/* SP: 4列までの表は画面幅に収め、列の多い試算表だけ横スクロール（ヒントを出す） */
.pt-b-scrollhint{display:none;margin:8px 0 0;font-size:12px;color:var(--sub)}
@media (max-width:767px){
  .pt-b-actions .pt-btn--or{width:100%}
  .pt-b-price-table{min-width:0;font-size:14px}
  .pt-b-price-table th,.pt-b-price-table td{padding:12px 10px}
  .pt-b-price-table thead th{white-space:normal}
  .pt-b-price-table--calc{min-width:600px}
  .pt-b-scrollhint{display:block}
}
