/* src/public/css/shipping-compare.css … 宅配・荷物の「サイズ・料金」比較メモ
   ダークモードは theme-dark.css の末尾（=== 送料比較 ===）にあります */

.sc-box { background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 18px; margin-top: 18px; }
.sc-box [hidden] { display: none; }
.sc-h2 { font-size: 1.05rem; color: #2a5298; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.sc-hint { font-size: 0.85rem; color: #64748b; margin: 8px 0 0; line-height: 1.6; }
.sc-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: #475569; min-width: 0; }
.sc-field input, .sc-field select { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.95rem; background: #fff; min-width: 0; width: 100%; box-sizing: border-box; }
.sc-unit-input { display: flex; align-items: center; gap: 6px; }
.sc-dims { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; }
.sc-sum-box strong { font-size: 1.3rem; color: #1e3a8a; padding: 4px 0; }
.sc-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: end; margin-top: 12px; }
.sc-arrow { color: #94a3b8; padding-bottom: 12px; }
.sc-summary-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.sc-summary { margin: 0; flex: 1; min-width: 200px; padding: 8px 12px; border-radius: 8px; background: #f1f5f9; color: #1e293b; font-weight: bold; }
.sc-status { font-size: 0.85rem; color: #16a34a; }
.sc-mini { padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; color: #475569; font-size: 0.8rem; font-weight: bold; cursor: pointer; }

.sc-rows { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sc-row { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; }
.sc-row-head { display: flex; align-items: center; gap: 8px; }
.sc-on input { width: 18px; height: 18px; }
.sc-name { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid transparent; border-radius: 6px; font-weight: bold; font-size: 1rem; color: #1e293b; background: transparent; }
.sc-name:hover, .sc-name:focus { border-color: #cbd5e1; background: #fff; outline: none; }
.sc-official { font-size: 0.8rem; font-weight: bold; color: #2563eb; white-space: nowrap; text-decoration: none; }
.sc-official:hover { text-decoration: underline; }
.sc-remove { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #e2e8f0; background: none; color: #64748b; cursor: pointer; flex: 0 0 auto; }
.sc-remove:hover { color: #ef4444; border-color: #fca5a5; }
.sc-row-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.sc-url { grid-column: 1 / -1; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sc-btn { padding: 9px 14px; border: 1px solid #2a5298; border-radius: 8px; background: #2a5298; color: #fff; font-weight: bold; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sc-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.sc-btn-sub { background: #f8fafc; border-color: #cbd5e1; color: #334155; }

.sc-result { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-r { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; }
.sc-r.is-best { border-color: #16a34a; background: #f0fdf4; }
.sc-r-rank { width: 2em; height: 2em; border-radius: 50%; background: #e2e8f0; color: #334155; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.sc-r.is-best .sc-r-rank { background: #16a34a; color: #fff; }
.sc-r-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-r-name { font-weight: bold; color: #1e293b; overflow-wrap: anywhere; }
.sc-r-detail { font-size: 0.8rem; color: #64748b; overflow-wrap: anywhere; }
.sc-r-price { text-align: right; }
.sc-r-fee { display: block; font-size: 1.2rem; color: #1e3a8a; }
.sc-r-diff { font-size: 0.8rem; color: #b45309; font-weight: bold; }
.sc-r.is-best .sc-r-diff { color: #15803d; }

@media (max-width: 700px) {
    .sc-dims { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sc-row-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
    .sc-dims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sc-route { grid-template-columns: minmax(0, 1fr); }
    .sc-arrow { transform: rotate(90deg); justify-self: center; padding: 0; }
}
