/* 料金表の部品（base.css の上に重ねる） */
.intro{font-size:15px;max-width:60em}
.grp{margin:0 0 40px}
.grp:last-child{margin-bottom:0}
.grp-h{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:end;margin-bottom:8px}
.grp-h:has(img){grid-template-columns:240px minmax(0,1fr)}
.grp-h img{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top left;filter:grayscale(1) contrast(1.05)}
.grp-h h3{margin:0 0 4px !important;font-size:21px}
.grp-h p{margin:0 0 4px;font-size:13.5px;color:var(--sub)}
.grp-h p.gn{color:var(--ac);font-weight:700}
.band.red .grp-h p{color:#c9c9c9}

/* 料金の表 */
.pt{font-size:13.5px}
.pt thead th.pch{text-align:left;width:24%}
.pt thead th.pch span{display:block;font-weight:400;font-size:11px}
.pt tbody th{width:19%}
.pt td.ds{width:33%;font-size:13px}
.pt td.ds small{margin-top:3px}
.pt .srs{color:var(--sub)}
.sr{display:inline-block;min-width:1.7em;margin-right:3px;padding:0 4px;font-size:11px;font-weight:700;text-decoration:none;background:var(--gray2);color:var(--ink);text-align:center;line-height:1.6}
.band.gray .sr{background:var(--paper)}
.pc{white-space:nowrap}
.pc i{font-style:normal;font-size:11px;color:var(--sub);display:inline-block;width:2.6em}
.pc-m{display:block;color:var(--sub);font-size:12.5px}
.pc-o{display:block}
.pc-o b{font-size:17px;font-weight:800;color:var(--ac);font-variant-numeric:tabular-nums}
.pc.none{color:var(--sub)}

/* 相場の幅と当社の位置 */
.rb{position:relative;display:block;height:10px;margin:6px 0 2px;background:linear-gradient(var(--gray2),var(--gray2)) 0 4px/100% 2px no-repeat;max-width:200px}
.rb-m{position:absolute;top:2px;height:6px;background:#b9b9b3}
.rb-o{position:absolute;top:0;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:var(--ac)}
.band.gray .rb{background-image:linear-gradient(#d6d6d0,#d6d6d0)}

/* 凡例 */
.legend{display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px;font-size:13px;margin:0 0 16px}
.legend .rb.demo{width:140px;margin:0}
.legend i{display:inline-block;vertical-align:-1px;margin-right:6px}
.lg-m{width:22px;height:6px;background:#b9b9b3}
.lg-o{width:10px;height:10px;border-radius:50%;background:var(--ac)}

/* 方針の3列 */
.policy{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:8px 0 0}
.policy div{background:var(--gray);padding:16px 18px}
.policy b{display:block;font-size:16px;margin-bottom:4px}
.policy p{margin:0;font-size:13.5px}
.policy .big{display:block;font-size:30px;font-weight:800;color:var(--ac);line-height:1.2;margin-bottom:6px}

/* 計算例 */
.cases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.case{background:#262626;padding:20px}
.case h3{margin:0 0 6px !important;font-size:17px;color:#fff}
.case > p{font-size:13px;color:#c4c4c4;margin:0 0 10px}
.case table{width:100%;border-collapse:collapse;font-size:13px}
.case td{padding:4px 0;vertical-align:top}
.case td:last-child{text-align:right;white-space:nowrap;padding-left:10px}
.case tr.sum td{font-weight:800;padding-top:8px}
.case tr:not(.sum) + tr.sum td{padding-top:12px}
.case tr.big td{font-size:17px;color:var(--ac-dark)}
.case .cm{font-size:12.5px;color:#bdbdbd;margin:10px 0 0}

/* 注と出典 */
.notes p{margin:0 0 8px;font-size:13.5px}
.srcs{list-style:none;margin:20px 0 0;padding:0;columns:2;column-gap:32px;font-size:12.5px}
.srcs li{break-inside:avoid;padding:3px 0;display:grid;grid-template-columns:2.6em minmax(0,1fr)}
.srcs li span{font-weight:800;color:var(--ac)}
.srcs a{font-weight:500;color:var(--ink)}
.srcs small{grid-column:2;color:var(--sub);font-size:11.5px}
.srcs li:target{background:#fffbe0}

@media (max-width:1100px){
  .cases{grid-template-columns:minmax(0,1fr)}
  .grp-h:has(img){grid-template-columns:180px minmax(0,1fr)}
}
@media (max-width:900px){
  .policy{grid-template-columns:minmax(0,1fr)}
  .srcs{columns:1}
}
@media (max-width:640px){
  .grp-h:has(img){grid-template-columns:minmax(0,1fr)}
  .grp-h img{max-width:320px}
  .pt td.ds,.pt tbody th{width:auto}
  .pc{white-space:normal;padding:6px 0 !important}
  .pc::before{display:block}
  .rb{max-width:none}
}
@media print{
  .grp,.case,.policy div{break-inside:avoid}
  .grp-h img{display:none}
  .grp-h:has(img){grid-template-columns:minmax(0,1fr)}
  .case,.case *{background:#fff !important;color:#000 !important}
  .rb-o{print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .rb-m{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}
.pc .est{font-style:normal;font-size:10.5px;font-weight:700;color:var(--sub);background:var(--gray2);padding:0 4px;margin-left:4px}
.band.gray .pc .est{background:var(--paper)}
.pc-o small{display:block;font-size:11.5px;color:var(--sub);white-space:normal}
.case small.qty{display:block;font-size:12px;color:#bdbdbd}

/* 端末ごとの表記の崩れ対策（文字の大きさ・押しやすさ・1〜2文字の取り残し） */
.sr{font-size:12px}
.pc i{font-size:12px}
.pc .est{font-size:12px}
.pt thead th.pch span{font-size:12px}
p,small,td,th,figcaption,.srcs a,.case td,.grp-h p{text-wrap-style:pretty}
h1,h2,h3,.case h3,.points b,.targets h4,.menu h4{text-wrap-style:balance}
@supports (word-break:auto-phrase){p,small,td,th,h2,h3,figcaption,.srcs a{word-break:auto-phrase}}
.nb{display:inline-block}
@media (max-width:900px),(pointer:coarse){
  .sr{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;margin:2px 4px 2px 0;font-size:13px}
  .srcs li{padding:2px 0}
  .srcs a{display:inline-flex;align-items:center;min-height:32px}
  .grp-h a,.legend a{display:inline-flex;align-items:center;min-height:32px}
}
.pt tbody th{text-wrap-style:balance}
.foot div{text-wrap-style:pretty}
@supports (word-break:auto-phrase){.foot div{word-break:auto-phrase}}
@media (min-width:641px){.pt tbody th{min-width:9.5em}}
/* 横向きのスマホなど高さの低い画面では、縦書きの大見出しを横書きの小さな見出しにする */
@media (max-height:560px) and (orientation:landscape){
  .cover .cv{grid-template-columns:minmax(0,1fr)}
  .cv-title{writing-mode:horizontal-tb;flex-direction:row;align-items:baseline;gap:10px;letter-spacing:.02em}
  .cv-title span:first-child{font-size:20px}
  .cv-title span:last-child{font-size:40px}
  .cv-catch{font-size:22px}
  .toc{grid-column:auto;grid-template-columns:repeat(3,minmax(0,1fr))}
  .side .stick{position:static}
}
@media (max-width:640px){.tbl.stack td.pc.none{display:none}}
/* お試し見積りへの入口 */
.bar-sim{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;background:var(--ac);color:#fff !important;text-decoration:none;font-weight:700;white-space:nowrap}
.to-sim{margin:0 0 18px}
.to-sim a{display:inline-flex;align-items:center;min-height:48px;padding:0 20px;background:var(--ac);color:#fff;text-decoration:none;font-size:16px}
.to-sim small{display:block;margin-top:6px;font-size:13px;color:var(--sub)}
.to-sim.dark{margin-top:16px}
.to-sim.dark a{background:var(--ac-dark);color:#0f2a22}
@media print{.to-sim,.bar-sim{display:none}}
.bar nav{min-width:0}
.bar-sim{flex-shrink:0}

/* 価格を保証しない旨 */
.disclaim{margin:0 0 16px;padding:10px 14px;background:#fff7e6;border-left:4px solid #b7791f;font-size:13.5px;line-height:1.7;max-width:60em;text-wrap-style:pretty}
.disclaim b{display:block;font-size:14px;color:#7a4b00;margin-bottom:2px}
@media print{.disclaim{background:none;border-left:3px solid #000}}
