/* VBScript 依存チェッカー（/check/）用の追加。色・文字は ../style.css の変数を使う */

.check-hero h1 { font-size: clamp(26px, 6.4vw, 40px); }
.check-hero .lead { margin-bottom: 20px; }

.privacy-box {
  margin: 0 0 22px; padding: 16px 18px;
  background: var(--base-soft); border: 1px solid #C9D6E6; border-left: 4px solid var(--base);
  border-radius: var(--radius); font-size: 15px; color: var(--ink-2);
}
.pb-title { font-weight: 700; color: var(--ink); margin-bottom: 2px; }

.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-height: 180px; padding: 28px 18px; text-align: center; cursor: pointer;
  background: var(--surface); border: 2px dashed #9FB0C4; border-radius: 10px;
}
.drop:hover, .drop.is-over { border-color: var(--base); background: var(--base-soft); }
.drop:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.drop-main { font-size: 18px; font-weight: 700; color: var(--base); }
.drop-sub { font-size: 15px; color: var(--ink-2); text-decoration: underline; }
.drop-fine { font-size: 13px; color: var(--muted); }
.drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.status { margin-top: 12px; font-size: 14px; color: var(--ink-2); min-height: 1.5em; }

.results-section { padding-top: 32px; }
.results-section:has(#results:empty):has(#after[hidden]) { display: none; }

.report { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px 18px; margin-bottom: 20px; }
.r-file { font-size: 17px; word-break: break-all; margin-bottom: 12px; }
.r-file:focus { outline: none; }
.report h4 { font-size: 16px; margin: 26px 0 10px; }
.r-meta { margin-top: 10px; font-size: 14px; color: var(--muted); }
.r-note { margin-top: 22px; padding: 12px 14px; font-size: 14px; background: var(--alt); border-radius: 6px; color: var(--ink-2); }
.report .btn-ghost { margin-top: 14px; }

.verdict { padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line); }
.v-title { font-size: 18px; font-weight: 700; }
.v-body { font-size: 15px; color: var(--ink-2); }
.v-affected { background: var(--accent-soft); border-color: #EBCFB0; }
.v-affected .v-title { color: var(--accent); }
.v-none { background: var(--base-soft); border-color: #C9D6E6; }
.v-none .v-title { color: var(--base); }
.v-partial { background: #F3F1EC; border-color: #DDD6C8; }
.v-partial .v-title { color: #5C4A1E; }

/* マクロの一覧と概要 */
.overview { margin-top: 26px; padding: 20px 18px; border: 1px solid #C9D6E6; border-top: 4px solid var(--base); border-radius: 8px; background: #FBFCFE; }
.overview h4.ov-title { margin: 0 0 4px; font-size: 17px; }
.overview h5 { font-size: 15px; margin: 18px 0 6px; }
.ov-summary { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.ov-list { display: grid; gap: 6px; font-size: 14px; }
.ov-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.ov-list code, .ov-table code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; background: var(--alt); border-radius: 4px; padding: 1px 5px; word-break: break-all; }
.ov-k { font-weight: 700; color: var(--base); font-size: 13px; }
.ov-w { font-size: 12px; color: var(--muted); }
.ov-none, .ov-note { font-size: 14px; color: var(--ink-2); }
.ov-tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.ov-tags li { background: var(--base-soft); border-radius: 4px; padding: 1px 8px; }
.ov-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.ov-table thead { display: none; }
.ov-table tr { display: block; padding: 8px 0; border-top: 1px solid var(--line); }
.ov-table td { display: block; }
.ov-table td::before { content: attr(data-label) "："; font-weight: 700; color: var(--muted); font-size: 12px; }

/* 一覧（スマホでは縦に並べる） */
.find-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.find-table thead { display: none; }
.find-table tr { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
.find-table td { display: block; padding: 2px 0; }
.find-table td::before { content: attr(data-label) "："; font-weight: 700; color: var(--muted); font-size: 12px; }
.find-table td.c-code::before { display: block; }
.find-table code, .g-lines code, .rule-list code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px;
  background: var(--alt); border-radius: 4px; padding: 1px 5px; word-break: break-all;
}
.find-table td.c-code code { display: block; padding: 6px 8px; white-space: pre-wrap; }
.src a { font-size: 12px; text-decoration: none; margin-left: 2px; }
.conf { display: inline-block; min-width: 2.2em; text-align: center; font-weight: 700; font-size: 13px; border-radius: 4px; padding: 0 6px; }
.conf-h { background: var(--accent); color: #FFFFFF; }
.conf-m { background: #F7DFC3; color: #6B3A08; }
.conf-l { background: var(--alt); color: var(--ink-2); }

.groups { display: grid; gap: 8px; }
.group { border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; font-size: 14px; }
.group summary { cursor: pointer; padding: 10px 0; display: flex; gap: 10px; align-items: baseline; }
.g-what { flex: 1; }
.g-count { flex: none; font-weight: 700; color: var(--base); white-space: nowrap; }
.g-fix { color: var(--ink-2); margin-bottom: 4px; }
.g-lines { margin: 8px 0 12px; display: grid; gap: 6px; }
.g-loc { display: block; font-size: 12px; color: var(--muted); }
.plain-list { font-size: 14px; display: grid; gap: 4px; }

.btn-ghost {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--base);
  background: var(--surface); border: 1px solid var(--base); border-radius: 6px; cursor: pointer;
}
.btn-ghost:hover { background: var(--base-soft); }

.cta-box { margin-top: 8px; padding: 26px 20px; background: var(--base); color: #E8EEF5; border-radius: 10px; }
.cta-box .badge { background: #FFFFFF; border-color: #FFFFFF; color: var(--accent); }
.cta-box h2 { font-size: clamp(20px, 5vw, 26px); color: #FFFFFF; margin: 14px 0 8px; }
.cta-box p { font-size: 15px; color: #D3DEEA; }
.cta-box .btn { margin-top: 18px; background: #FFFFFF; color: var(--base); line-height: 1.5; text-align: center; }
.cta-box .btn:hover { background: var(--base-soft); }

.sub-title { font-size: 17px; margin: 28px 0 10px; }
.sub-title:first-of-type { margin-top: 0; }
.rule-list { display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.rule-list li { padding-left: 1.1em; position: relative; }
.rule-list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--base); }
.rule-list a, .plain a { text-decoration: none; font-size: 13px; margin-left: 2px; }
.plain { font-size: 15px; color: var(--ink-2); margin-top: 12px; }

.timeline { display: grid; gap: 8px; }
.timeline li { display: flex; gap: 12px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; font-size: 15px; }
.t-step { flex: none; font-weight: 700; color: var(--base); }

.src-title { font-size: 14px; margin-bottom: 8px; color: var(--ink-2); }
.src-list { display: grid; gap: 4px; margin-bottom: 18px; word-break: break-word; }
.site-footer .notes { margin-top: 4px; }

.copy-buffer { position: fixed; left: -9999px; top: 0; }

@media (min-width: 720px) {
  .report { padding: 28px 28px; }
  .find-table thead { display: table-header-group; }
  .find-table th { text-align: left; font-size: 12px; color: var(--muted); padding: 8px 8px; background: var(--alt); }
  .find-table tr { display: table-row; padding: 0; }
  .find-table td { display: table-cell; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
  .find-table td::before { content: none; }
  .find-table td.c-mod { width: 12%; word-break: break-all; }
  .find-table td.c-line { width: 5%; white-space: nowrap; }
  .find-table td.c-code { width: 26%; }
  .find-table td.c-conf { width: 8%; white-space: nowrap; }
  .cta-box { padding: 32px 30px; }
  .overview { padding: 24px 26px; }
  .ov-table thead { display: table-header-group; }
  .ov-table th { text-align: left; font-size: 12px; color: var(--muted); padding: 6px 8px; background: var(--alt); }
  .ov-table tr { display: table-row; padding: 0; }
  .ov-table td { display: table-cell; padding: 8px; border-top: 1px solid var(--line); vertical-align: top; }
  .ov-table td::before { content: none; }
  .ov-table td.c-mod { width: 18%; word-break: break-all; }
  .ov-table td.c-kind { width: 16%; }
  .ov-table td.c-line { width: 8%; white-space: nowrap; }
}
