/* 口座名義カナ整形ページ専用のスタイル（共通の部品は shared/tool.css） */
#result { margin-top: 16px; }

/* 直した箇所の色。色だけに頼らず、下線の形でも区別する */
.seg { border-radius: 3px; padding-inline: 1px; }
mark.seg-fix { background: #dbe7fb; color: #0f3d8a; text-decoration: underline 2px solid #1a5fd0; text-underline-offset: 3px; }
mark.seg-warn { background: var(--warn-bg); color: var(--warn); text-decoration: underline 2px dashed var(--warn); text-underline-offset: 3px; }
mark.seg-ng { background: var(--bad-bg); color: var(--bad); text-decoration: underline 2px wavy var(--bad); text-underline-offset: 3px; }
.seg-width { text-decoration: underline 1px dotted var(--muted); text-underline-offset: 3px; }

.legend { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 12px; font-size: .875rem; }

.results .name { font-size: 1.05rem; letter-spacing: .02em; white-space: pre-wrap; overflow-wrap: anywhere; }
.results .len { display: block; }
.results .len.over { color: var(--bad); font-weight: 700; }
.results-wrapper { max-block-size: min(560px, 75vh); }
.notes { list-style: none; margin: 0; padding: 0; }
.notes li + li { margin-top: 4px; }
.notes .tag { margin-inline-end: 2px; }

/* 狭い画面では一覧をカード型に積む */
@container (width < 640px) {
  .results, .results thead, .results tbody, .results tr, .results th, .results td { display: block; }
  .results thead { display: none; }
  .results tr { border-bottom: 2px solid var(--line); padding-block: 6px; }
  .results td { border: none; padding: 2px 10px; }
  .results td::before { content: attr(data-label) "："; color: var(--muted); font-size: .8rem; }
}
.results td:first-child { white-space: nowrap; }
