/* SUB-01 範囲0: 横あふれ・削除の確認・フォームの位置(このファイルは S1 が持つ) */

/* グリッドの列が中身の最小幅(長い見出し・入力欄)に押し広げられないようにする(3件目から本文が810px幅に広がっていた) */
.main-layout > *, #main, .main-content, aside.sidebar, .card, .container > * { min-width: 0; max-width: 100%; }
.subscription-name, .section-title, h1, h2, h3, .badge-row { overflow-wrap: anywhere; }
.input-field, #budgetLimit { max-width: 100%; box-sizing: border-box; }

/* 閉じている間の画面外のサイドメニューは、ページの幅に数えない */
.mobile-sidebar:not(.active) { display: none !important; }

/* 飾りの光の円(パネルの右外へはみ出していた)は出さない */
[style*="top: -50%; right: -50%"] { display: none !important; }

/* フォームへ移ったとき、固定ヘッダーに隠れない */
#serviceName, #subscriptionForm { scroll-margin-top: 96px; }
/* 結果の2列(1fr 1fr)は中身の最小幅で広がるので、各列を縮めてよいことにし、狭い画面では1列にする */
[style*="grid-template-columns: 1fr 1fr"] > * { min-width: 0; }
@media (max-width: 600px) {
  [style*="grid-template-columns: 1fr 1fr; gap: var(--space-6)"] { grid-template-columns: 1fr !important; }
}
/* 下部の広告の丸ボタンは長い文で画面からはみ出すので、折り返す(リンク先は変えない) */
a[href*="a8.net"][style*="nowrap"] { white-space: normal !important; max-width: 100%; }
/* 主ボタンの拡大表示で PC の横幅が1px広がるのを止める */
button.btn-full[style*="scale(1.04)"] { transform: none !important; }
#advancedToggle { display: none !important; }
/* SUB-01 範囲1: 利用回数を選んでいない件(判定なし) */
.subscription-item.priority-none { border-left-color: var(--gray-400); }
.priority-badge.none { background: rgba(107, 114, 128, 0.12); color: var(--gray-700); }
