/* COCORO Sync. 無料ツール — 共通スタイル
   本サイト cocoro-sync-theme/assets/css/shared.css のトークンと部品（ヘッダー70px・
   ダークフッター・form-card 18px・btn 10px・sec-label/sec-title）に揃える。 */
:root {
  --purple-deep: #532b76;
  --purple: #7c4fa5;
  --purple-soft: #9a73b8;
  --violet: #c27efe;
  --teal: #77e3d6;
  --teal-deep: #3fc9b5;
  --teal-text: #1f8f80;
  --ink: #1f1e2e;
  --heading: #2b2740;
  --text: #4a4560;
  --muted: #8b86a0;
  --bg: #ffffff;
  --bg-gray: #f5f5f7;
  --bg-tint: #faf9fc;
  --line: #e9e6f0;
  --line-strong: #d9d4e6;
  --ok: #1f8f80;
  --ok-bg: #e6f8f5;
  --warn: #9a5b00;
  --warn-bg: #fff5e2;
  --ng: #b4233a;
  --ng-bg: #fdeef0;
  --info: #5a5570;
  --info-bg: #f1eff6;
  --sans: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', sans-serif;
  --latin: 'Outfit', var(--sans);
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --grad: linear-gradient(115deg, var(--violet), var(--teal));
  --shadow-card: 0 14px 40px rgba(43, 39, 64, 0.08);
  --shadow-btn: 0 10px 26px rgba(83, 43, 118, 0.32);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: 'palt';
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(124, 79, 165, 0.22); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.5; }
p a, li a, .link { color: var(--purple); text-decoration: underline; text-decoration-color: rgba(124, 79, 165, 0.35); text-underline-offset: 3px; }
p a:hover, li a:hover, .link:hover { text-decoration-color: var(--purple); }
code { font-family: var(--mono); font-size: 0.86em; background: var(--bg-gray); padding: 1px 6px; border-radius: 5px; color: var(--heading); }
pre { font-family: var(--mono); font-size: 0.84em; line-height: 1.7; background: var(--bg-gray); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow: auto; white-space: pre-wrap; word-break: break-all; color: var(--heading); }
pre code { background: none; padding: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 880px; }
@media (max-width: 900px) { .wrap { padding: 0 22px; } }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
@media (max-width: 400px) { .wrap { padding: 0 16px; } }

/* ================= header ================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 24px; width: auto; }
.nav-logo .tool-tag { font-family: var(--latin); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--purple); border-left: 1px solid var(--line-strong); padding-left: 12px; line-height: 1; white-space: nowrap; }
.nav-links { display: flex; gap: 28px; font-size: 13.5px; font-weight: 500; color: var(--text); align-items: center; }
.nav-links a { position: relative; transition: color 0.25s; white-space: nowrap; }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--teal); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-links a:not(.nav-cta):hover { color: var(--heading); }
.nav-cta { border-radius: 8px; padding: 9px 22px; background: var(--purple); color: #fff; font-weight: 700; transition: background 0.3s, transform 0.2s, box-shadow 0.3s; }
.nav-cta:hover { background: var(--purple-deep); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(83, 43, 118, 0.3); }
@media (max-width: 720px) {
  .nav { height: 60px; }
  .nav-logo img { height: 22px; }
  .nav-logo .tool-tag { display: none; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 16px; font-size: 12.5px; }
}

/* ================= page head ================= */
.page-head { padding: 64px 0 40px; background: linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); transition: color 0.25s; }
.crumbs a:hover { color: var(--purple); }
.crumbs span[aria-hidden] { opacity: 0.6; }
.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--latin); font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--violet), var(--teal), var(--violet)); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: labelShimmer 4s linear infinite; margin-bottom: 14px;
}
.sec-label::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--violet), var(--teal)); -webkit-text-fill-color: initial; }
@keyframes labelShimmer { from { background-position: 0% center; } to { background-position: 200% center; } }
.page-head h1 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; letter-spacing: 0.06em; color: var(--heading); line-height: 1.45; }
.page-head .lead { margin-top: 18px; font-size: 15.5px; color: var(--text); max-width: 760px; }
.pill-free { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--teal-text); background: var(--ok-bg); border-radius: 999px; padding: 5px 14px; }
.pill-free::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-deep); }

/* ================= sections ================= */
section.sec { padding: 56px 0; }
section.sec.tint { background: var(--bg-gray); }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-title { font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: 0.04em; line-height: 1.55; color: var(--heading); }
.sec-title::after { content: ''; display: block; width: 54px; height: 4px; margin: 16px auto 0; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--teal)); box-shadow: 0 6px 18px rgba(124, 79, 165, 0.18); }
.sec-sub { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ================= cards ================= */
.form-card, .card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.card + .card { margin-top: 20px; }
.card.lift { box-shadow: var(--shadow-card); border-color: transparent; }
.card h2 { font-size: 17px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card h2 .step { font-family: var(--latin); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: #fff; background: var(--purple); border-radius: 6px; padding: 2px 8px; }
.card h2 .score-mini { font-family: var(--latin); font-size: 13px; font-weight: 600; color: var(--muted); margin-left: auto; }
.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.card .desc { font-size: 13.5px; color: var(--muted); margin: -6px 0 16px; }
@media (max-width: 720px) { .form-card, .card { padding: 22px 18px; border-radius: 16px; } }

/* ================= forms ================= */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.04em; color: var(--heading); }
.field label.inline { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.req { font-size: 10.5px; color: var(--purple); border: 1px solid currentColor; border-radius: 4px; padding: 1px 8px; margin-left: 10px; letter-spacing: 0.1em; vertical-align: 1.5px; font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
input[type='text'], input[type='url'], textarea, select {
  width: 100%; background: var(--bg-gray); border: 1px solid transparent; border-radius: 10px; padding: 13px 16px;
  color: var(--heading); font-family: var(--sans); font-size: 15px; transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
input:focus, textarea:focus, select:focus { border-color: var(--purple); background: #fff; box-shadow: 0 0 0 4px rgba(124, 79, 165, 0.12); outline: none; }
textarea { min-height: 96px; resize: vertical; line-height: 1.8; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input[type='checkbox'] { accent-color: var(--purple); width: 16px; height: 16px; }
.url-form { display: flex; gap: 10px; }
.url-form input { flex: 1; font-size: 16px; }
@media (max-width: 560px) { .url-form { flex-direction: column; } .url-form .btn { width: 100%; } }

/* ================= buttons ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14.5px; font-weight: 700; padding: 13px 30px; border-radius: 10px; letter-spacing: 0.05em; border: 1.5px solid transparent; cursor: pointer; font-family: var(--sans); white-space: nowrap; transition: background 0.3s, transform 0.25s, box-shadow 0.3s, border-color 0.3s, color 0.3s; }
.btn .ar { display: inline-block; font-family: var(--latin); transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1); }
.btn:hover .ar { transform: translateX(5px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-deep); transform: translateY(-2px); box-shadow: var(--shadow-btn); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.btn-line { border-color: var(--line-strong); color: var(--purple-deep); background: #fff; }
.btn-line:hover { border-color: var(--purple); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(83, 43, 118, 0.14); }
.btn-line:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--purple); border: none; padding: 6px 8px; font-size: 13px; }
.btn-ghost:hover { color: var(--purple-deep); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.icon-btn { background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--muted); cursor: pointer; padding: 6px 10px; font-size: 13px; line-height: 1; transition: color 0.2s, border-color 0.2s; }
.icon-btn:hover { color: var(--ng); border-color: var(--ng); }

/* ================= alerts / badges ================= */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 13.5px; margin: 14px 0; line-height: 1.7; }
.alert-error { background: var(--ng-bg); color: var(--ng); }
.alert-info { background: var(--info-bg); color: var(--info); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.status { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; flex-shrink: 0; }
.status-pass { background: var(--ok-bg); color: var(--ok); }
.status-warn { background: var(--warn-bg); color: var(--warn); }
.status-fail { background: var(--ng-bg); color: var(--ng); }
.status-info, .status-skip { background: var(--info-bg); color: var(--info); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--info-bg); color: var(--info); white-space: nowrap; letter-spacing: 0.02em; }
.pill-training { background: #f3ebfb; color: var(--purple-deep); }
.pill-search { background: var(--ok-bg); color: var(--ok); }
.pill-user { background: var(--warn-bg); color: var(--warn); }
.progress-note { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(124, 79, 165, 0.25); border-top-color: var(--purple); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
.btn-primary .spinner { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= report ================= */
.score-card { display: grid; grid-template-columns: 170px 1fr; gap: 32px; align-items: center; }
@media (max-width: 600px) { .score-card { grid-template-columns: 1fr; text-align: center; } .score-card .btn-row { justify-content: center; } }
.score-ring { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; position: relative; background: conic-gradient(var(--ring-color, var(--teal-deep)) calc(var(--pct, 0) * 1%), var(--line) 0); }
.score-ring::after { content: ''; position: absolute; inset: 13px; border-radius: 50%; background: #fff; }
.score-ring .val { position: relative; z-index: 1; font-family: var(--latin); font-weight: 700; font-size: 46px; color: var(--heading); line-height: 1; text-align: center; }
.score-ring .val small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 4px; letter-spacing: 0.08em; }
.grade { display: inline-block; font-family: var(--latin); font-weight: 700; font-size: 26px; padding: 0 14px; border-radius: 10px; line-height: 1.5; }
.grade-A, .grade-B { background: var(--ok-bg); color: var(--ok); }
.grade-C { background: var(--warn-bg); color: var(--warn); }
.grade-D, .grade-E { background: var(--ng-bg); color: var(--ng); }
.summary-counts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.summary-counts b { font-family: var(--latin); font-size: 18px; margin-right: 3px; }
.page-meta { font-size: 13px; color: var(--muted); margin-top: 12px; word-break: break-all; line-height: 1.8; }
.page-meta b { color: var(--heading); }

.check-list { list-style: none; }
.check-list li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.check-list li:first-child { border-top: none; padding-top: 4px; }
.check-list .label { font-weight: 700; color: var(--heading); font-size: 14.5px; }
.check-list .detail { font-size: 13.5px; color: var(--text); word-break: break-word; margin-top: 2px; }
.check-list .fix { font-size: 13.5px; color: var(--purple-deep); background: var(--bg-tint); border-left: 3px solid var(--purple-soft); padding: 8px 12px; margin-top: 8px; border-radius: 0 8px 8px 0; line-height: 1.7; }
.check-list .fix a { font-weight: 700; color: var(--purple); }
.cat-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 4px 0 16px; }
.cat-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-deep), var(--purple)); }

.actions { counter-reset: act; list-style: none; }
.actions li { counter-increment: act; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.actions li:first-child { border-top: none; padding-top: 4px; }
.actions li::before { content: counter(act); width: 30px; height: 30px; border-radius: 50%; background: var(--purple); color: #fff; font-family: var(--latin); font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.actions .t { font-weight: 700; color: var(--heading); font-size: 14.5px; }
.actions .d { font-size: 13.5px; margin-top: 2px; }
.actions .d a { font-weight: 700; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.crawlers { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.crawlers th, table.crawlers td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.crawlers th { background: var(--purple-deep); color: #fff; font-weight: 600; font-size: 12.5px; letter-spacing: 0.04em; }
table.crawlers th:first-child { border-radius: 8px 0 0 0; }
table.crawlers th:last-child { border-radius: 0 8px 0 0; }
table.crawlers td.tok { font-family: var(--mono); white-space: nowrap; color: var(--heading); }
table.crawlers td .rule { color: var(--muted); font-size: 12px; display: block; }

/* ================= generators (single column, step by step) ================= */
.steps-col { display: grid; gap: 20px; }
.steps-col > * { min-width: 0; } /* wide tables/SVGs inside a card must scroll, not widen the page */
.output pre { min-height: 240px; max-height: 60vh; margin: 0; }
.output .btn-row { margin-bottom: 12px; }

/* sitemap picker */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.chip { border: 1px solid var(--line-strong); background: #fff; color: var(--text); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-family: var(--sans); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip b { font-family: var(--latin); font-weight: 600; color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--purple); color: var(--purple-deep); }
.chip.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.chip.on b { color: rgba(255, 255, 255, 0.75); }
.picker-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.picker-toolbar input { flex: 1 1 220px; padding: 9px 12px; font-size: 13.5px; }
.picker { max-height: 440px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.picker label { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); align-items: center; cursor: pointer; font-size: 13.5px; transition: background 0.15s; }
.picker label:hover { background: var(--bg-tint); }
.picker label:last-child { border-bottom: none; }
.picker label.added { color: var(--muted); cursor: default; }
.picker .u { word-break: break-all; color: var(--heading); line-height: 1.5; }
.picker label.added .u { color: var(--muted); }
.picker .u .dir { color: var(--muted); }
.picker .m { color: var(--muted); font-size: 12px; white-space: nowrap; }
.picker .tag { font-size: 11px; color: var(--teal-text); background: var(--ok-bg); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.picker .empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13.5px; }
.picker-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.picker-foot select { width: auto; min-width: 200px; padding: 10px 40px 10px 14px; font-size: 13.5px; }
.sel-count { font-size: 13px; color: var(--muted); }
.sel-count b { color: var(--purple-deep); font-family: var(--latin); font-size: 15px; }

/* section / link editor */
.section-block { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; background: #fff; }
.section-block .sec-head-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.section-block .sec-head-row .hash { font-family: var(--mono); color: var(--muted); font-size: 14px; }
.section-block .sec-head-row input { font-weight: 700; font-size: 15px; flex: 1; }
.section-block .sec-empty { font-size: 13px; color: var(--muted); padding: 6px 0 10px; }
/* Stacked rows: title | URL | description. Long Japanese titles need the full width. */
.link-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 12px 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--purple-soft); border-radius: 10px; background: var(--bg-tint); margin-bottom: 8px; align-items: center; }
.link-card input { padding: 9px 12px; font-size: 13.5px; background: #fff; }
.link-card input[data-role='l-title'] { font-weight: 700; }
.link-card input[data-role='l-url'] { grid-column: 1 / -1; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.link-card .desc-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.link-card .desc-row .len { font-family: var(--latin); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.link-card .desc-row .len.over { color: var(--warn); }

/* robots crawler table (grouped) */
.crawler-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.crawler-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.crawler-table tr.group td { padding: 14px 12px 10px; background: var(--bg-tint); border-bottom: 1px solid var(--line-strong); }
.crawler-table tr.group + tr td { border-top: none; }
.crawler-table .group-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.crawler-table .group-row .g-title { font-weight: 700; color: var(--heading); font-size: 14px; }
.crawler-table .group-row .g-desc { font-size: 12.5px; color: var(--muted); flex: 1 1 240px; }
.crawler-table .group-row .g-actions { display: flex; gap: 6px; margin-left: auto; }
.crawler-table td.tok { font-family: var(--mono); white-space: nowrap; color: var(--heading); font-size: 13.5px; width: 1%; padding-right: 18px; }
.crawler-table td.desc { color: var(--text); font-size: 13px; line-height: 1.6; }
.crawler-table td.desc a { font-size: 12px; margin-left: 4px; }
.crawler-table td.set { white-space: nowrap; text-align: right; width: 1%; }
.crawler-table .vendor { display: block; font-size: 11.5px; color: var(--muted); font-family: var(--sans); font-weight: 400; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.seg button { border: none; background: #fff; padding: 6px 14px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--muted); transition: background 0.2s, color 0.2s; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button.on-allow { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.seg button.on-block { background: var(--ng-bg); color: var(--ng); font-weight: 700; }
.seg.mini button { padding: 4px 10px; font-size: 12px; }
@media (max-width: 640px) {
  .crawler-table td.desc { display: none; }
  .crawler-table td.tok { white-space: normal; width: auto; }
}
.policy-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 720px) { .policy-cards { grid-template-columns: 1fr; } }
.policy-card { text-align: left; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; cursor: pointer; font-family: var(--sans); transition: border-color 0.2s, box-shadow 0.2s; }
.policy-card:hover { border-color: var(--purple-soft); }
.policy-card.on { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124, 79, 165, 0.12); }
.policy-card .p-title { font-weight: 700; color: var(--heading); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.policy-card .p-title .rec { font-size: 10.5px; color: var(--teal-text); background: var(--ok-bg); border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.policy-card .p-desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

/* floating action bar (generators) */
.floatbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-strong); box-shadow: 0 14px 40px rgba(43, 39, 64, 0.16); border-radius: 14px; padding: 10px 12px 10px 16px; max-width: calc(100% - 32px); transition: opacity 0.25s, transform 0.25s; }
.floatbar.is-hidden { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.floatbar .info { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.floatbar .info b { color: var(--heading); font-family: var(--latin); font-size: 14px; }
.floatbar .btn-sm { padding: 8px 14px; }
@media (max-width: 560px) { .floatbar { left: 12px; right: 12px; transform: none; max-width: none; justify-content: space-between; padding: 10px 12px; } .floatbar.is-hidden { transform: translateY(12px); } .floatbar .info { display: none; } .floatbar .btn-sm { flex: 1; } }

/* report category nav */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cat-nav a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; color: var(--heading); background: #fff; transition: border-color 0.2s, background 0.2s; }
.cat-nav a:hover { border-color: var(--purple); background: var(--bg-tint); }
.cat-nav a .sc { font-family: var(--latin); font-weight: 700; font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.cat-nav a .sc.good { background: var(--ok-bg); color: var(--ok); }
.cat-nav a .sc.mid { background: var(--warn-bg); color: var(--warn); }
.cat-nav a .sc.bad { background: var(--ng-bg); color: var(--ng); }
.cat-nav a .sc.na { background: var(--info-bg); color: var(--info); }

/* ================= explainer / faq ================= */
.steps { counter-reset: st; list-style: none; display: grid; gap: 14px; }
/* Number is absolutely positioned so inline children (code, a) stay in the text flow */
.steps li { counter-increment: st; position: relative; padding-left: 42px; font-size: 14px; line-height: 1.8; min-height: 28px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--grad); color: var(--heading); font-family: var(--latin); font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--heading); font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--latin); font-size: 20px; color: var(--purple); transition: transform 0.25s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { font-size: 14px; margin-top: 10px; color: var(--text); }
.faq p + p { margin-top: 8px; }

/* ================= cta band ================= */
.cta-band { background: linear-gradient(118deg, #532b76 0%, #6d3f8e 34%, #8a5ca8 62%, #7fa8bc 100%); border-radius: 18px; padding: 36px 40px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h3 { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 6px; }
.cta-band p { font-size: 14px; color: rgba(255, 255, 255, 0.85); max-width: 640px; }
.cta-band .btn-white { background: #fff; color: var(--purple-deep); }
.cta-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20, 10, 40, 0.28); }
@media (max-width: 720px) { .cta-band { padding: 28px 22px; } .cta-band .btn { width: 100%; } }

/* ================= footer ================= */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); padding: 60px 0 46px; font-size: 13px; margin-top: 56px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 26px; margin-bottom: 38px; }
.foot-top img { height: 20px; width: auto; }
.foot-brand p { margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, 0.5); line-height: 1.9; }
.foot-nav { display: flex; gap: 26px; flex-wrap: wrap; font-weight: 500; }
.foot-nav a { transition: color 0.25s; color: rgba(255, 255, 255, 0.75); }
.foot-nav a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.42); border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 26px; }
@media (max-width: 640px) { .site-footer { padding: 44px 0 36px; } .foot-top { gap: 20px; margin-bottom: 26px; } .foot-nav { gap: 18px; font-size: 12.5px; } .foot-bottom { font-size: 11px; } }

/* ================= misc ================= */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 80; }
.toast.show { opacity: 1; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 28px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ================= analysis tools (inventory / bot log / heading compare) ================= */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat .lb { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.stat .v { font-family: var(--latin); font-size: 26px; font-weight: 700; color: var(--heading); line-height: 1.2; margin-top: 4px; }
.stat .v small { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* bar chart (single series, SVG) */
.chart { position: relative; margin: 6px 0 4px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .bar { fill: var(--purple); }
.chart .bar.dim { fill: var(--line-strong); }
.chart .bar.hot { fill: var(--purple-deep); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--latin); }
.chart .axis.ja { font-family: var(--sans); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.5; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity 0.12s; z-index: 5; }
.chart-tip.show { opacity: 1; }
.chart-tip b { font-family: var(--latin); font-size: 13px; }
.chart-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.multiple { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 8px; }
.multiple .mt-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.multiple .mt-title .tok { font-family: var(--mono); font-weight: 600; }
.multiple .mt-title b { font-family: var(--latin); color: var(--muted); font-weight: 600; font-size: 12px; }

/* horizontal share bars (directory table) */
.share { display: inline-block; height: 8px; border-radius: 4px; background: var(--purple); vertical-align: middle; margin-right: 8px; }

/* data table */
.data-table-wrap { overflow: auto; max-height: 560px; border: 1px solid var(--line); border-radius: 12px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.data-table th { position: sticky; top: 0; background: var(--bg-tint); color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; z-index: 1; }
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--purple-deep); }
.data-table th .arrow { font-family: var(--latin); margin-left: 4px; opacity: 0.6; }
.data-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-tint); }
.data-table td.num { font-family: var(--latin); text-align: right; white-space: nowrap; color: var(--heading); }
.data-table td.url { font-family: var(--mono); font-size: 12px; word-break: break-all; color: var(--text); }
.data-table td.url a { color: var(--purple); text-decoration: none; }
.data-table td.url a:hover { text-decoration: underline; }
.data-table td.ttl { color: var(--heading); font-weight: 500; }
.data-table td.muted { color: var(--muted); }
.data-table td.tok { font-family: var(--mono); color: var(--heading); white-space: nowrap; }
.table-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.table-tools input { flex: 1 1 220px; padding: 9px 12px; font-size: 13.5px; }
.table-tools .count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.table-tools .count b { font-family: var(--latin); color: var(--heading); }

/* progress */
.progress { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 10px 0 6px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-deep), var(--purple)); transition: width 0.25s; }
.progress-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.progress-label b { font-family: var(--latin); color: var(--heading); }

/* file drop zone (client-side log analysis) */
.dropzone { display: block; border: 2px dashed var(--line-strong); border-radius: 14px; padding: 34px 20px; text-align: center; background: var(--bg-tint); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.dropzone:hover, .dropzone.over { border-color: var(--purple); background: #f6f0fc; }
.dropzone .dz-title { font-weight: 700; color: var(--heading); font-size: 15px; }
.dropzone .dz-sub { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.dropzone input { display: none; }
.file-list { list-style: none; margin-top: 10px; font-size: 13px; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.file-list li .fn { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.file-list li .fs { color: var(--muted); white-space: nowrap; font-family: var(--latin); }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-bg); color: var(--teal-text); border-radius: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.7; margin-top: 12px; }
.privacy-note::before { content: '🔒'; font-size: 14px; line-height: 1.7; }

/* heading comparison */
.url-rows { display: grid; gap: 8px; }
.url-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 8px; align-items: center; }
.url-row .role { font-size: 12px; font-weight: 700; color: var(--muted); text-align: right; white-space: nowrap; }
.url-row .role.base { color: var(--purple-deep); }
.url-row input { padding: 10px 12px; font-size: 14px; }
@media (max-width: 560px) { .url-row { grid-template-columns: 1fr auto; } .url-row .role { grid-column: 1 / -1; text-align: left; } }
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.cmp-table th, .cmp-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table th { background: var(--bg-tint); color: var(--heading); font-weight: 700; font-size: 12.5px; min-width: 180px; }
.cmp-table th.metric, .cmp-table td.metric { position: sticky; left: 0; background: #fff; color: var(--muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; min-width: 140px; z-index: 1; border-right: 1px solid var(--line); }
.cmp-table th.metric { background: var(--bg-tint); }
.cmp-table th.base { box-shadow: inset 0 3px 0 var(--purple); }
.cmp-table td { font-family: var(--latin); color: var(--heading); }
.cmp-table td.ja { font-family: var(--sans); }
.cmp-table td .best { color: var(--teal-text); font-weight: 700; }
.cmp-table td .worst { color: var(--ng); }
.cmp-table .host { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 2px; word-break: break-all; }
.outline-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.outline-col { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; min-width: 0; }
.outline-col.base { border-color: var(--purple-soft); box-shadow: 0 0 0 3px rgba(124, 79, 165, 0.08); }
.outline-col .oc-head { font-size: 12px; color: var(--muted); margin-bottom: 8px; word-break: break-all; }
.outline-col .oc-head b { display: block; color: var(--heading); font-size: 13.5px; margin-bottom: 2px; }
.outline { list-style: none; font-size: 13px; line-height: 1.55; }
.outline li { padding: 4px 0 4px 0; border-bottom: 1px dashed var(--line); display: grid; grid-template-columns: 26px 1fr; gap: 6px; }
.outline li .lv { font-family: var(--latin); font-size: 10.5px; font-weight: 700; color: var(--muted); padding-top: 3px; }
.outline li.h1 { font-weight: 700; color: var(--heading); }
.outline li.h1 .lv { color: var(--purple); }
.outline li.h2 { color: var(--heading); font-weight: 600; }
.outline li.h3 { color: var(--text); padding-left: 14px; }
.outline li.hit { background: var(--ok-bg); border-radius: 6px; }
.outline li.miss { background: var(--warn-bg); border-radius: 6px; }
.legend-inline { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 8px 0 12px; }
.legend-inline span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.legend-inline .l-hit::before { background: var(--ok-bg); border: 1px solid var(--teal-deep); }
.legend-inline .l-miss::before { background: var(--warn-bg); border: 1px solid var(--warn); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-chips .tc { border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; color: var(--heading); background: #fff; }
.topic-chips .tc b { font-family: var(--latin); color: var(--muted); font-weight: 600; margin-left: 4px; }
.seg-tabs { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.seg-tabs button { border: none; background: #fff; padding: 6px 14px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--muted); }
.seg-tabs button + button { border-left: 1px solid var(--line-strong); }
.seg-tabs button.on { background: var(--purple); color: #fff; font-weight: 700; }
details.more { margin-top: 8px; }
details.more summary { cursor: pointer; font-size: 13px; color: var(--purple); font-weight: 600; }

/* ================= hero (first view) ================= */
.hero { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(620px 320px at 88% 0%, rgba(194, 126, 254, 0.16), transparent 70%),
  radial-gradient(520px 300px at 100% 70%, rgba(119, 227, 214, 0.18), transparent 70%),
  linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%); }
.hero .wrap { position: relative; }
.hero .crumbs { margin: 18px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: 40px; align-items: center; padding: 28px 0 40px; }
.hero-main .sec-label { margin-bottom: 10px; }
.hero h1 { font-size: clamp(26px, 2.9vw, 36px); font-weight: 900; letter-spacing: 0.02em; line-height: 1.42; color: var(--heading); text-wrap: balance; }
.hero h1 .accent { background: linear-gradient(90deg, var(--purple), var(--purple-deep)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero .lead { margin-top: 14px; font-size: 15px; line-height: 1.85; color: var(--text); max-width: 34em; text-wrap: pretty; }
.hero-form { margin-top: 22px; }
.hero-form .url-form { display: flex; gap: 8px; background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px; box-shadow: 0 10px 30px rgba(43, 39, 64, 0.08); transition: border-color 0.2s, box-shadow 0.2s; }
.hero-form .url-form:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124, 79, 165, 0.12), 0 10px 30px rgba(43, 39, 64, 0.08); }
.hero-form .url-form input { background: transparent; border: none; box-shadow: none; font-size: 16px; padding: 10px 12px; }
.hero-form .url-form input:focus { background: transparent; box-shadow: none; border: none; }
.hero-form .url-form .btn { border-radius: 10px; padding: 12px 24px; }
.hero-form .alert, .hero-form .progress-note { margin-top: 12px; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--ok-bg); flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.2 2.2 4.8-5' fill='none' stroke='%231f8f80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hero-side { display: flex; justify-content: center; }
.preview-card { width: 100%; max-width: 340px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: 0 18px 50px rgba(43, 39, 64, 0.12); transform: rotate(-1.2deg); }
.preview-card .pc-head { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--latin); font-weight: 600; margin-bottom: 14px; }
.preview-card .pc-score { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.preview-card .score-ring { width: 96px; height: 96px; }
.preview-card .score-ring::after { inset: 9px; }
.preview-card .score-ring .val { font-size: 28px; }
.preview-card .score-ring .val small { font-size: 10px; margin-top: 2px; }
.preview-card .pc-grade { display: flex; align-items: center; gap: 10px; }
.preview-card .grade { font-size: 22px; padding: 0 10px; }
.preview-card .pc-counts { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; gap: 10px; }
.preview-card .pc-counts b { font-family: var(--latin); font-size: 14px; }
.preview-card .pc-rows { margin-top: 14px; display: grid; gap: 8px; }
.preview-card .pc-row { display: grid; grid-template-columns: 1fr 52px; gap: 8px; align-items: center; font-size: 12px; color: var(--heading); }
.preview-card .pc-row .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 3px; }
.preview-card .pc-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-deep), var(--purple)); }
.preview-card .pc-row .n { font-family: var(--latin); font-size: 12px; color: var(--muted); text-align: right; }
.preview-card .pc-foot { margin-top: 14px; font-size: 11.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding: 22px 0 30px; }
  .hero-side { display: none; }
  .hero h1 br.pc { display: none; }
}
@media (max-width: 560px) {
  .hero-form .url-form { flex-direction: column; padding: 8px; }
  .hero-form .url-form .btn { width: 100%; }
}
/* result area: takes no space until a report is rendered */
section.sec.report-sec { padding: 0; }
.report-sec #report:not(.hidden), .report-sec > .steps-col:not(.hidden) { padding: 28px 0 56px; }

/* hero variants for generators / analyzers */
.hero-form .url-rows input { background: #fff; border: 1px solid var(--line-strong); }
.hero-form .url-rows input:focus { border-color: var(--purple); }
.hero-form .dropzone { background: #fff; padding: 26px 18px; }
.hero-form .privacy-note { margin-top: 10px; }
.hero-form .file-list { margin-top: 8px; }
.hero-form .hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.preview-card pre { font-size: 11px; line-height: 1.65; padding: 12px 14px; margin: 0; background: var(--bg-tint); border: none; max-height: 200px; overflow: hidden; border-radius: 10px; }
.pc-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.pc-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pc-table tr:last-child td { border-bottom: none; }
.pc-table td.tok { font-family: var(--mono); color: var(--heading); }
.pc-table td.n { font-family: var(--latin); text-align: right; color: var(--heading); font-weight: 600; white-space: nowrap; }
.pc-table td.bad { color: var(--ng); font-weight: 700; }
.pc-table .pill { font-size: 10px; padding: 1px 7px; }
.pc-policy { display: grid; gap: 8px; }
.pc-policy .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--heading); }
.pc-policy .row .pill { font-size: 10px; }
.pc-outline { list-style: none; font-size: 11.5px; display: grid; gap: 5px; }
.pc-outline li { display: grid; grid-template-columns: 22px 1fr; gap: 4px; color: var(--heading); line-height: 1.45; }
.pc-outline li .lv { font-family: var(--latin); font-size: 10px; color: var(--muted); font-weight: 700; padding-top: 2px; }
.pc-outline li.h3 { padding-left: 10px; color: var(--text); }
.pc-outline li.miss span:last-child { background: var(--warn-bg); border-radius: 4px; padding: 0 5px; }
.pc-outline li.hit span:last-child { background: var(--ok-bg); border-radius: 4px; padding: 0 5px; }
.pc-mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 72px; margin-top: 8px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.pc-mini-chart i { flex: 1; background: var(--purple); border-radius: 3px 3px 0 0; display: block; opacity: 0.9; }
.pc-mini-chart i.hot { background: var(--purple-deep); }
.pc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pc-tiles div { background: var(--bg-tint); border-radius: 8px; padding: 8px 10px; font-size: 11px; color: var(--muted); }
.pc-tiles b { display: block; font-family: var(--latin); font-size: 18px; color: var(--heading); line-height: 1.2; }
/* headline phrases wrap as units on narrow screens (no mid-word breaks) */
.hero h1 .nw { white-space: nowrap; }
@media (max-width: 560px) { .hero h1 { font-size: 24px; letter-spacing: 0.01em; } }

/* ================= shared fragments: header link, tools grid, footer columns ================= */
.nav-pulse { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--heading); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.nav-pulse:hover { border-color: var(--purple); box-shadow: 0 6px 18px rgba(83, 43, 118, 0.14); transform: translateY(-1px); }
.nav-links .nav-pulse::after { display: none; }
.np-mark { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--teal)); flex-shrink: 0; box-shadow: 0 0 0 3px rgba(194, 126, 254, 0.18); }
.nav-pulse .np-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-pulse .np-text b { font-family: var(--latin); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.nav-pulse .np-text small { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.nav-pulse .ar { font-family: var(--latin); color: var(--purple); transition: transform 0.25s; }
.nav-pulse:hover .ar { transform: translateX(3px); }
@media (max-width: 720px) {
  .nav-links a.nav-pulse { display: inline-flex; padding: 6px 10px 6px 8px; }
  .nav-pulse .np-text small { display: none; }
}

.tools-sec { background: var(--bg-gray); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tcard { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; color: inherit; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.tcard:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); border-color: var(--purple-soft); }
.tcard .tc-top { display: flex; justify-content: space-between; align-items: center; }
.tcard .tc-abbr { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple), var(--violet)); color: #fff; font-family: var(--latin); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
.tcard .tc-cat { font-size: 11px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 9px; }
.tcard b { font-size: 15px; color: var(--heading); line-height: 1.45; }
.tcard p { font-size: 13px; color: var(--text); line-height: 1.7; flex: 1; }
.tcard .tc-go { font-size: 13px; font-weight: 700; color: var(--purple); }
.tcard .tc-go .ar { display: inline-block; font-family: var(--latin); transition: transform 0.25s; }
.tcard:hover .tc-go .ar { transform: translateX(4px); }

.pulse-band { margin-top: 22px; background: linear-gradient(118deg, #532b76 0%, #6d3f8e 34%, #8a5ca8 62%, #7fa8bc 100%); border-radius: 18px; padding: 30px 36px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.pulse-band .pb-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--latin); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); margin-bottom: 8px; }
.pulse-band .pb-label .np-mark { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18); }
.pulse-band h3 { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 6px; line-height: 1.5; }
.pulse-band p { font-size: 13.5px; color: rgba(255, 255, 255, 0.85); max-width: 640px; line-height: 1.8; }
.pulse-band .btn-white { background: #fff; color: var(--purple-deep); }
.pulse-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20, 10, 40, 0.28); }
@media (max-width: 720px) { .pulse-band { padding: 24px 20px; } .pulse-band .btn { width: 100%; } }

.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 38px; }
.foot-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.55); margin-bottom: 12px; text-transform: uppercase; font-family: var(--latin); }
.foot-col ul { list-style: none; display: grid; gap: 8px; }
.foot-col a { color: rgba(255, 255, 255, 0.78); font-size: 13px; transition: color 0.25s; }
.foot-col a:hover { color: #fff; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; gap: 22px; } }

/* footer: brand column + link columns (fixes oversized logo) */
.foot-grid .foot-brand img { height: 22px; width: auto; }
.foot-grid .foot-brand p { margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); line-height: 1.9; max-width: 300px; }
.foot-grid { align-items: start; gap: 40px; }
.foot-col h4 { margin-bottom: 14px; }
.foot-col ul { gap: 9px; }
.foot-col a { line-height: 1.5; }

/* header: tool index link + Pulse pill */
.nav-links .nav-index { font-size: 13.5px; font-weight: 600; color: var(--heading); padding: 6px 2px; }
.nav-links .nav-index::after { bottom: 2px; }
@media (max-width: 720px) {
  .nav-links a.nav-index { display: inline-flex; font-size: 12.5px; }
  .nav { gap: 10px; }
}
/* header on narrow screens: shorter labels so logo + index link + Pulse pill fit in 375px */
.nav .short { display: none; }
@media (max-width: 480px) {
  .nav .full { display: none; }
  .nav .short { display: inline; }
  .nav-logo img { height: 20px; }
  .nav-links { gap: 10px; }
  .nav-links .nav-index { font-size: 12.5px; }
  .nav-pulse { padding: 6px 9px 6px 8px; gap: 7px; }
  .nav-pulse .np-text b { font-size: 12.5px; }
}

/* tool card: plan + category tags */
.tcard .tc-tags { display: inline-flex; gap: 6px; align-items: center; }
.tcard .tc-plan { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.tcard .tc-plan.is-free { background: var(--ok-bg); color: var(--ok); }
.tcard .tc-plan.is-freemium { background: #f3ebfb; color: var(--purple-deep); }
.tcard .tc-plan.is-paid { background: var(--purple-deep); color: #fff; }

/* Ad slot (one manual AdSense unit below the tools grid; rendered only when tools.json adsense is set).
   The reserved height keeps the footer from jumping when the ad loads (CLS). */
.ad-sec { background: var(--bg-gray); padding: 0 0 56px; }
.ad-sec .ad-label { display: block; margin-bottom: 6px; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.ad-sec .ad-unit { display: block; min-height: 280px; }
@media (max-width: 640px) { .ad-sec { padding-bottom: 40px; } .ad-sec .ad-unit { min-height: 250px; } }

/* ================= SNS text checker ================= */
.hero-form textarea.big { min-height: 150px; font-size: 15px; line-height: 1.8; background: #fff; border: 1px solid var(--line-strong); }
.hero-form textarea.big:focus { border-color: var(--purple); }
.plat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plat { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.plat .pl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plat .pl-name { font-weight: 700; color: var(--heading); font-size: 14px; }
.plat .pl-count { font-family: var(--latin); font-size: 22px; font-weight: 700; color: var(--heading); }
.plat .pl-count small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.plat .pl-count.over { color: var(--ng); }
.plat .pl-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 8px 0 6px; }
.plat .pl-bar i { display: block; height: 100%; background: var(--teal-deep); }
.plat .pl-bar i.warn { background: #e0a200; }
.plat .pl-bar i.over { background: var(--ng); }
.plat .pl-note { font-size: 12px; color: var(--muted); line-height: 1.6; }
.plat .pl-note.bad { color: var(--ng); }
.tl-preview { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.tl-preview .tp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tl-preview .tp-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--teal)); flex-shrink: 0; }
.tl-preview .tp-name { font-weight: 700; font-size: 13.5px; color: var(--heading); }
.tl-preview .tp-handle { font-size: 12px; color: var(--muted); }
.tl-preview .tp-body { font-size: 14px; line-height: 1.6; color: var(--heading); white-space: pre-wrap; word-break: break-word; }
.tl-preview .tp-body .cut { color: var(--muted); }
.tl-preview .tp-more { color: var(--muted); font-size: 13px; margin-top: 2px; }
.tl-preview .tp-foot { font-size: 11.5px; color: var(--muted); margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.tl-preview.ig .tp-body { font-size: 13.5px; }
.tl-preview .tp-truncated { background: var(--warn-bg); color: var(--warn); padding: 0 2px; border-radius: 3px; }
.thread-list { display: grid; gap: 10px; }
.thread-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.thread-item .ti-text { font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; color: var(--heading); }
.thread-item .ti-meta { font-family: var(--latin); font-size: 12px; color: var(--muted); white-space: nowrap; }
.thread-item .ti-meta.over { color: var(--ng); font-weight: 700; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list .tag { border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; font-size: 13px; color: var(--heading); background: #fff; }
.tag-list .tag.dup { text-decoration: line-through; color: var(--muted); }
.limit-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.limit-table th, .limit-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.limit-table th { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.limit-table td.n { font-family: var(--latin); white-space: nowrap; color: var(--heading); }
.opt-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--text); }
.opt-row label { display: inline-flex; align-items: center; gap: 6px; }

/* ================= schema generator ================= */
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.type-btn { text-align: left; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; cursor: pointer; font-family: var(--sans); transition: border-color 0.2s, box-shadow 0.2s; }
.type-btn:hover { border-color: var(--purple-soft); }
.type-btn.on { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124, 79, 165, 0.12); }
.type-btn b { display: block; font-size: 14px; color: var(--heading); }
.type-btn span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .field { margin: 0; }
.rep-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: var(--bg-tint); }
.rep-item .ri-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.rep-item .form-grid { gap: 10px 12px; }
.rep-item input, .rep-item textarea { background: #fff; }

/* ================= SNS image preview ================= */
.img-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; align-items: center; }
@media (max-width: 640px) { .img-controls { grid-template-columns: 1fr; } }
.img-controls label { font-size: 13px; color: var(--heading); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.img-controls input[type="range"] { flex: 1; accent-color: var(--purple); }
.fmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.fmt { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.fmt .f-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.fmt .f-name { font-weight: 700; font-size: 13.5px; color: var(--heading); }
.fmt .f-size { font-family: var(--latin); font-size: 12px; color: var(--muted); white-space: nowrap; }
.fmt .f-canvas { position: relative; width: 100%; background: #f1f0f4; border-radius: 8px; overflow: hidden; }
.fmt canvas { display: block; width: 100%; height: auto; }
.fmt .f-safe { position: absolute; inset: 0; pointer-events: none; }
.fmt .f-safe i { position: absolute; background: rgba(43, 39, 64, 0.45); }
.fmt .f-safe .lbl { position: absolute; font-size: 10px; color: #fff; background: rgba(43, 39, 64, 0.7); padding: 1px 6px; border-radius: 4px; }
.fmt .f-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.fmt .f-note { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.fmt .f-warn { font-size: 11.5px; color: var(--warn); }

/* ================= alt check ================= */
.data-table td.thumb { width: 72px; }
.data-table td.thumb img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--bg-gray); display: block; }
.data-table td.alt-missing { color: var(--ng); font-weight: 700; }
.data-table td.alt-empty { color: var(--muted); font-style: italic; }

/* ================= OGP preview ================= */
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.share { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px; }
.share .sh-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 10px; display: flex; justify-content: space-between; }
.share .sh-label small { font-weight: 500; letter-spacing: 0; }
.card-x { border: 1px solid #cfd9de; border-radius: 16px; overflow: hidden; font-family: var(--sans); }
.card-x .cx-img { aspect-ratio: 1.91 / 1; background: #e7ecf0 center/cover no-repeat; }
.card-x .cx-body { padding: 10px 12px; font-size: 13px; color: #536471; }
.card-x .cx-body b { display: block; color: #0f1419; font-weight: 700; font-size: 14px; }
.card-x .cx-body .cx-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-x.summary { display: grid; grid-template-columns: 120px 1fr; }
.card-x.summary .cx-img { aspect-ratio: 1 / 1; }
.card-fb { border: 1px solid #dadde1; background: #f0f2f5; font-family: var(--sans); }
.card-fb .cf-img { aspect-ratio: 1.91 / 1; background: #e4e6eb center/cover no-repeat; }
.card-fb .cf-body { padding: 10px 12px; }
.card-fb .cf-host { font-size: 12px; color: #65676b; text-transform: uppercase; }
.card-fb .cf-title { font-weight: 700; font-size: 15px; color: #050505; line-height: 1.3; }
.card-fb .cf-desc { font-size: 13px; color: #65676b; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-line { background: #8cabd8; padding: 12px; border-radius: 12px; }
.card-line .cl { background: #fff; border-radius: 12px; overflow: hidden; max-width: 260px; }
.card-line .cl-img { aspect-ratio: 1.91 / 1; background: #e9edf1 center/cover no-repeat; }
.card-line .cl-body { padding: 8px 10px; }
.card-line .cl-title { font-size: 13px; font-weight: 700; color: #111; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-line .cl-host { font-size: 11px; color: #777; margin-top: 2px; }
.card-slack { border-left: 4px solid #dddddd; padding: 6px 12px; font-family: var(--sans); }
.card-slack .cs-host { font-size: 12px; color: #616061; font-weight: 700; }
.card-slack .cs-title { font-size: 14px; color: #1264a3; font-weight: 700; }
.card-slack .cs-desc { font-size: 13px; color: #1d1c1d; line-height: 1.5; }
.card-slack .cs-img { margin-top: 8px; width: 100%; max-width: 360px; aspect-ratio: 1.91 / 1; background: #eee center/cover no-repeat; border-radius: 8px; }
.card-discord { background: #2b2d31; border-left: 4px solid #5865f2; border-radius: 4px; padding: 10px 14px; color: #dbdee1; font-family: var(--sans); }
.card-discord .cd-host { font-size: 12px; color: #b5bac1; }
.card-discord .cd-title { color: #00a8fc; font-weight: 700; font-size: 14px; margin-top: 2px; }
.card-discord .cd-desc { font-size: 13px; line-height: 1.5; margin-top: 4px; }
.card-discord .cd-img { margin-top: 10px; width: 100%; max-width: 400px; aspect-ratio: 1.91 / 1; background: #1e1f22 center/cover no-repeat; border-radius: 4px; }
.tag-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tag-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tag-table td.k { font-family: var(--mono); color: var(--muted); white-space: nowrap; width: 1%; }
.tag-table td.v { word-break: break-all; color: var(--heading); }

/* ---- 使い方（tools.json の wp.body から生成。説明とツールは1ページ） ---- */
.howto-sec { padding: 0 0 12px; }
.howto h2 { font-size: 18px; margin-bottom: 14px; }
.howto-steps { list-style: none; display: grid; gap: 10px; }
.howto-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.8; color: var(--text); }
.howto-steps .hs-n { width: 30px; height: 30px; border-radius: 50%; background: var(--purple); color: #fff; font-family: var(--latin); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.howto-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---- 関連プロダクトの案内（ツール一覧の下） ---- */
.next-step { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 30px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.next-step .ns-label { display: block; font-family: var(--latin); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); margin-bottom: 6px; }
.next-step h3 { font-size: 18px; font-weight: 700; color: var(--heading); margin-bottom: 6px; line-height: 1.5; }
.next-step h3 small { display: inline-block; margin-left: 10px; font-size: 12px; font-weight: 500; color: var(--muted); }
.next-step p { font-size: 13.5px; color: var(--text); max-width: 640px; line-height: 1.8; }
@media (max-width: 720px) { .next-step { padding: 22px 20px; } .next-step .btn { width: 100%; } }

/* ================= header: index button (icon + label; icon only on narrow screens) ================= */
/* header button: same filled style as the main site's nav CTA (purple, 8px radius) */
.nav-links .nav-index { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px 9px 13px; border: none; border-radius: 8px; background: var(--purple); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; transition: background 0.3s, transform 0.2s, box-shadow 0.3s; }
.nav-index svg { color: #fff; flex-shrink: 0; width: 16px; height: 16px; }
.nav-links .nav-index:hover { background: var(--purple-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(83, 43, 118, 0.3); }
.nav-links .nav-index::after { display: none; }
@media (max-width: 720px) { .nav-links a.nav-index { display: inline-flex; font-size: 12.5px; padding: 8px 14px 8px 12px; } }
@media (max-width: 480px) { .nav-links .nav-index { padding: 9px; border-radius: 8px; } .nav-index .ni-text { display: none; } }

/* tool card icon (same pictograms as the WordPress cards) */
.tcard .tc-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #f3ecf7; color: var(--purple); transition: background-color 0.25s, color 0.25s; }
.tcard:hover .tc-icon { background: var(--purple); color: #fff; }

/* ================= COCORO Pulse. banner (editorial, with photo and latest posts) ================= */
.pulse-card { margin-top: 26px; display: grid; grid-template-columns: 250px 1fr; background: linear-gradient(135deg, #fdfbff 0%, #f3eef9 100%); border: 1px solid #e6dff0; border-radius: 20px; overflow: hidden; }
.pulse-card .pc-photo { position: relative; }
.pulse-card .pc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%; display: block; }
.pulse-card .pc-main { padding: 30px 34px 30px 30px; min-width: 0; }
.pulse-card .pc-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--purple-deep); margin-bottom: 10px; }
.pulse-card h3 { font-size: 20px; line-height: 1.55; color: var(--heading); margin-bottom: 10px; letter-spacing: 0.02em; }
.pulse-card .pc-main > p { font-size: 13.5px; line-height: 1.9; color: var(--text); max-width: 640px; }
.pc-posts { margin: 16px 0 18px; padding: 14px 16px; background: rgba(255, 255, 255, 0.72); border: 1px solid #ebe6f2; border-radius: 12px; }
.pc-posts-label { display: block; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.pc-posts ul { list-style: none; display: grid; gap: 6px; }
.pc-posts a { display: grid; grid-template-columns: 82px 1fr; gap: 10px; font-size: 13px; color: var(--heading); line-height: 1.6; }
.pc-posts a:hover span { color: var(--purple); text-decoration: underline; }
.pc-posts time { font-family: var(--latin); font-size: 12px; color: var(--muted); padding-top: 2px; }
.pulse-card .btn { margin-top: 4px; }
@media (max-width: 760px) {
  .pulse-card { grid-template-columns: 1fr; }
  .pulse-card .pc-photo { aspect-ratio: 16 / 9; }
  .pulse-card .pc-photo img { object-position: 62% 36%; }
  .pulse-card .pc-main { padding: 22px 20px 24px; }
  .pulse-card h3 { font-size: 18px; }
  .pulse-card h3 br.pc { display: none; }
  .pulse-card .btn { width: 100%; }
  .pc-posts a { grid-template-columns: 1fr; gap: 0; }
}

/* ================= ad row: two rectangles side by side (hidden until units are set; ?ads=preview shows the frames) ================= */
.ad-sec.is-empty { display: none; }
.ads-preview .ad-sec.is-empty { display: block; }
.ad-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ad-box { display: flex; justify-content: center; align-items: center; min-height: 250px; }
.ad-sec .ad-unit { display: block; width: 100%; max-width: 336px; min-height: 250px; }
.ad-placeholder { border: 2px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-size: 12px; background: #fff; }
@media (max-width: 680px) { .ad-row { grid-template-columns: 1fr; } }

/* ================= small conveniences: last URL chip, result actions, about block, timing line ================= */
.last-url { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 12px 7px 10px; border: 1px dashed var(--line-strong); border-radius: 999px; background: #fff; color: var(--text); font-size: 12.5px; cursor: pointer; max-width: 100%; transition: border-color 0.2s, background 0.2s; }
.last-url:hover { border-color: var(--purple); background: var(--bg-tint); }
.last-url .lu-label { color: var(--muted); white-space: nowrap; }
.last-url b { font-family: var(--latin); font-weight: 600; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.last-url .lu-act { color: var(--purple); font-weight: 700; white-space: nowrap; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 14px; }
.card > h2 + .result-actions { margin-top: 2px; }
.hero-meta li.hm-time::before { background: #f3ebfb; }
.about-sec { padding-top: 0; }
.about h2 { font-size: 18px; margin-bottom: 14px; }
.about-dl { display: grid; gap: 10px; }
.about-dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 13.5px; line-height: 1.8; }
.about-dl dt { color: var(--muted); font-weight: 700; font-size: 12.5px; padding-top: 2px; }
.about-dl dd { color: var(--text); }
.about-dl a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) { .about-dl > div { grid-template-columns: 1fr; gap: 2px; } }
/* tool cards: same dimensions as the WordPress cards (icon 44px, padding 20px, hover lift) */
.tcard { padding: 20px 20px 18px; }
.tcard:hover { transform: translateY(-3px); border-color: #d7c6e6; box-shadow: 0 14px 34px rgba(83, 43, 118, 0.12); }
.tcard .tc-icon { width: 44px; height: 44px; border-radius: 12px; }

/* ================= image-compress: hero is the tool (big drop stage), settings bar + live result list + compare dialog ================= */
.ic-hero-head { text-align: center; max-width: 820px; margin: 0 auto; padding: 30px 0 24px; }
.ic-hero-head .sec-label { margin-bottom: 12px; }
.ic-hero .ic-hero-head h1 { font-size: clamp(30px, 4.3vw, 46px); line-height: 1.32; letter-spacing: 0.01em; }
.ic-hero .ic-hero-head .lead, .ub-hero .ic-hero-head .lead, .sp-hero .ic-hero-head .lead, .ab-hero .ic-hero-head .lead, .pp-hero .ic-hero-head .lead, .ig-hero .ic-hero-head .lead { margin: 14px auto 0; max-width: 38em; font-size: 15px; text-align: left; text-wrap: pretty; line-break: strict; }
.ic-stage { max-width: 880px; margin: 0 auto; }
.ic-stage.hero-form { margin-top: 0; }
.ic-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 300px; padding: 44px 28px 36px; border: none; border-radius: 28px; cursor: pointer; overflow: hidden;
  background: radial-gradient(420px 220px at 10% 0%, rgba(194, 126, 254, 0.16), transparent 70%), radial-gradient(380px 220px at 92% 100%, rgba(119, 227, 214, 0.22), transparent 70%), #fff;
  box-shadow: 0 24px 64px rgba(83, 43, 118, 0.14); transition: transform 0.25s, box-shadow 0.25s; }
.ic-dropzone::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: linear-gradient(120deg, var(--violet), var(--teal)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.ic-dropzone::after { content: ''; position: absolute; inset: 12px; border: 2px dashed rgba(124, 79, 165, 0.28); border-radius: 20px; pointer-events: none; transition: border-color 0.25s; }
.ic-dropzone:hover, .ic-dropzone.over { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(83, 43, 118, 0.2); }
.ic-dropzone:hover::after, .ic-dropzone.over::after { border-color: var(--purple); }
.ic-dropzone.over { background-color: #faf5ff; }
.ic-dropzone input { display: none; }
.ic-dz-art { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--violet), var(--teal-deep)); box-shadow: 0 14px 30px rgba(124, 79, 165, 0.3); animation: icfloat 3.2s ease-in-out infinite; }
@keyframes icfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .ic-dz-art { animation: none; } }
.ic-dropzone .dz-title { font-size: 26px; font-weight: 900; letter-spacing: 0.02em; color: var(--heading); line-height: 1.3; margin-top: 4px; }
.ic-dropzone .dz-sub { font-size: 13.5px; color: var(--muted); line-height: 1.7; max-width: 40em; }
.ic-trust { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.5; color: var(--teal-text); background: var(--ok-bg); border-radius: 999px; padding: 8px 16px; margin-top: 8px; text-align: left; }
.ic-trust svg { flex-shrink: 0; }
.ic-trust b { color: #15706a; }
.ic-dropzone.has-files { min-height: 0; flex-direction: row; justify-content: center; gap: 14px; padding: 16px 20px; border-radius: 18px; box-shadow: 0 10px 30px rgba(83, 43, 118, 0.1); }
.ic-dropzone.has-files::after { inset: 8px; border-radius: 12px; }
.ic-dropzone.has-files .ic-dz-art { width: 40px; height: 40px; border-radius: 12px; animation: none; }
.ic-dropzone.has-files .ic-dz-art svg { width: 20px; height: 20px; }
.ic-dropzone.has-files .dz-title { font-size: 15px; margin: 0; }
.ic-dropzone.has-files .dz-title::after { content: '（追加）'; font-weight: 500; color: var(--muted); }
.ic-dropzone.has-files .dz-sub, .ic-dropzone.has-files .ic-trust { display: none; }
.ic-hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; margin-top: 16px; }
.ic-sample { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13px; font-weight: 700; color: var(--purple-deep); cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.ic-sample:hover { border-color: var(--purple); box-shadow: 0 8px 20px rgba(83, 43, 118, 0.14); transform: translateY(-1px); }
.ic-sample:disabled { opacity: 0.6; cursor: wait; transform: none; }
.ic-folder { font-size: 13px; color: var(--text); font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(124, 79, 165, 0.35); text-underline-offset: 3px; white-space: nowrap; }
.ic-folder:hover { color: var(--purple-deep); }
.ic-folder input { display: none; }
.ic-meta { justify-content: center; margin: 18px 0 34px; }
@media (max-width: 720px) {
  .ic-hero-head { padding: 22px 0 18px; }
  .ic-hero .ic-hero-head h1 { font-size: clamp(26px, 7.4vw, 32px); }
  .ic-hero .ic-hero-head .lead { font-size: 14px; }
  .ic-dropzone { min-height: 240px; padding: 30px 18px 26px; border-radius: 22px; gap: 8px; }
  .ic-dropzone::after { inset: 9px; border-radius: 15px; }
  .ic-dz-art { width: 60px; height: 60px; border-radius: 18px; }
  .ic-dropzone .dz-title { font-size: 21px; }
  .ic-dropzone .dz-sub { font-size: 12.5px; }
  .ic-trust { font-size: 12px; padding: 7px 12px; border-radius: 14px; }
  .ic-meta { margin: 14px 0 26px; }
}

.ic-work { padding-bottom: 22px; }
.ic-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ic-head h2 { margin-bottom: 10px; }
.ic-restored { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.ic-link { background: none; border: none; padding: 0; margin-left: 6px; font: inherit; font-size: inherit; color: var(--purple); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ic-presets { margin: 4px 0 14px; }
.ic-settings { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding: 14px 16px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 12px; }
.ic-set { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--heading); min-width: 0; }
.ic-set.is-off { opacity: 0.45; }
.ic-lb { font-weight: 700; white-space: nowrap; }
.ic-set input[type="range"] { width: 140px; accent-color: var(--purple); }
.ic-set output { font-family: var(--latin); font-weight: 700; min-width: 2.2em; text-align: right; }
.ic-set select, .ic-set input[type="number"] { padding: 6px 10px; font-size: 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--heading); font-family: var(--sans); }
.ic-set select { padding-right: 28px; min-width: 128px; }
.ic-settings .seg-tabs button { white-space: nowrap; }
.ic-set input[type="number"] { width: 84px; font-family: var(--latin); text-align: right; }
.ic-set input[type="number"]:disabled { opacity: 0.5; }
.ic-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.ic-check input { accent-color: var(--purple); width: 15px; height: 15px; }
.ic-unit { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.ic-note { font-size: 12.5px; color: var(--muted); margin: 10px 2px 0; line-height: 1.7; }

.ic-summary { display: flex; justify-content: space-between; align-items: center; gap: 14px 20px; flex-wrap: wrap; margin-top: 18px; padding: 14px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ic-sum { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; font-family: var(--latin); font-variant-numeric: tabular-nums; }
.ic-sum-n { font-weight: 700; color: var(--heading); font-size: 15px; }
.ic-sum-size { display: inline-flex; align-items: baseline; gap: 7px; color: var(--muted); font-weight: 600; }
.ic-sum-size b { color: var(--heading); font-size: 22px; font-weight: 700; }
.ic-pct { display: inline-block; font-family: var(--latin); font-weight: 700; font-size: 12px; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.ic-pct.big { font-size: 13px; }
.ic-pct.zero { color: var(--warn); background: var(--warn-bg); }
.ic-pct.bad { color: var(--ng); background: var(--ng-bg); }
.ic-sum-state { font-size: 12.5px; color: var(--muted); font-family: var(--sans); }
.ic-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--teal-text); font-family: var(--sans); font-weight: 700; }
.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ng); background: var(--ng-bg); }

.ic-rows { list-style: none; display: grid; }
.ic-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ic-th { width: 48px; height: 48px; border-radius: 8px; background: var(--bg-gray) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9d4e6' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center/22px no-repeat; overflow: hidden; }
.ic-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ic-main { min-width: 0; }
.ic-name { font-weight: 700; font-size: 13.5px; color: var(--heading); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; line-height: 1.5; }
.ic-name .ic-ext { color: var(--muted); font-weight: 500; }
.ic-sub { font-size: 12.5px; color: var(--muted); line-height: 1.6; font-variant-numeric: tabular-nums; }
.ic-sub b { color: var(--heading); font-family: var(--latin); }
.ic-tag { display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 0 7px; line-height: 1.7; white-space: nowrap; }
.ic-tag.q { background: #f3ecf7; color: var(--purple-deep); }
.ic-tag.ok { background: var(--ok-bg); color: var(--ok); }
.ic-tag.w { background: var(--warn-bg); color: var(--warn); }
.ic-tag.b { background: var(--ng-bg); color: var(--ng); }
.ic-right { display: flex; align-items: center; gap: 6px; }
.ic-act { border: 1px solid var(--line-strong); background: #fff; border-radius: 7px; padding: 4px 10px; font: inherit; font-size: 12px; color: var(--heading); cursor: pointer; white-space: nowrap; transition: border-color 0.2s, color 0.2s; text-decoration: none; }
.ic-act:hover { border-color: var(--purple); color: var(--purple-deep); }
.ic-act.ic-x { border-color: transparent; color: var(--muted); padding: 4px 7px; }
.ic-act.ic-x:hover { color: var(--ng); background: var(--ng-bg); }
.ic-spin { width: 16px; height: 16px; border: 2px solid var(--line-strong); border-top-color: var(--purple); border-radius: 50%; animation: icspin 0.8s linear infinite; }
@keyframes icspin { to { transform: rotate(360deg); } }
.ic-drop-more { margin-top: 12px; border: 2px dashed var(--line-strong); border-radius: 12px; padding: 12px; text-align: center; font-size: 12.5px; color: var(--muted); transition: border-color 0.2s, background 0.2s; }
.ic-drop-more.over { border-color: var(--purple); background: #f6f0fc; }
@media (max-width: 640px) {
  .ic-row { grid-template-columns: 40px minmax(0, 1fr); }
  .ic-th { width: 40px; height: 40px; }
  .ic-right { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
  .ic-settings { gap: 12px; }
  .ic-set { width: 100%; }
  .ic-set .seg-tabs { display: flex; flex: 1; }
  .ic-set .seg-tabs button { flex: 1; padding: 7px 4px; font-size: 12px; }
  .ic-set select { flex: 1; min-width: 0; }
  .ic-set input[type="range"] { flex: 1; width: auto; min-width: 0; }
  .ic-summary .btn-row { width: 100%; }
  .ic-summary .btn-row .btn-primary { flex: 1; }
  .ic-drop-more { display: none; }
}

.ic-dialog { margin: auto; border: none; border-radius: 18px; padding: 0; width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: #fff; box-shadow: 0 30px 80px rgba(31, 30, 46, 0.35); color: var(--text); overflow: hidden; display: none; grid-template-rows: auto minmax(0, 1fr) auto; }
.ic-dialog[open] { display: grid; }
.ic-dialog::backdrop { background: rgba(31, 30, 46, 0.55); backdrop-filter: blur(3px); }
.ic-dlg-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ic-dlg-head h2 { font-size: 14px; font-weight: 700; color: var(--heading); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-close { border: none; background: var(--bg-gray); color: var(--heading); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
.ic-close:hover { background: var(--line); }
.ic-cmp-stage { position: relative; background: #1f1e2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='8' height='8' fill='%23292838'/%3E%3Crect x='8' y='8' width='8' height='8' fill='%23292838'/%3E%3C/svg%3E"); overflow: auto; cursor: col-resize; touch-action: none; user-select: none; -webkit-user-select: none; min-height: 240px; }
.ic-cmp-inner { position: relative; width: var(--img-w, 100%); margin: 0 auto; }
.ic-cmp-stage[data-zoom="fit"] .ic-cmp-inner { max-height: calc(100vh - 200px); display: flex; justify-content: center; }
.ic-cmp-inner img { display: block; width: 100%; height: auto; max-width: none; }
.ic-cmp-stage[data-zoom="fit"] .ic-cmp-inner img { width: auto; max-width: 100%; max-height: calc(100vh - 200px); }
#cmp-after { position: absolute; left: 0; top: 0; clip-path: inset(0 0 0 var(--split, 50%)); }
.ic-cmp-stage[data-zoom="fit"] #cmp-after { left: 50%; transform: translateX(-50%); }
.ic-handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); transform: translateX(-1px); }
.ic-handle::after { content: '⇆'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--heading); font-size: 15px; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.ic-handle:focus-visible { outline: none; }
.ic-handle:focus-visible::after { box-shadow: 0 0 0 3px var(--purple); }
.ic-lbl { position: absolute; bottom: 10px; font-family: var(--latin); font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(31, 30, 46, 0.72); border-radius: 6px; padding: 3px 9px; pointer-events: none; white-space: nowrap; }
.ic-lbl.l { left: 10px; }
.ic-lbl.r { right: 10px; }
.ic-cmp-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--heading); }
.ic-cmp-ttl { font-weight: 700; }
.ic-cmp-ctrl label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.ic-cmp-ctrl input[type="range"] { width: 130px; accent-color: var(--purple); }
.ic-cmp-ctrl output { font-family: var(--latin); min-width: 2.2em; text-align: right; }
.ic-cmp-ctrl select { padding: 6px 28px 6px 10px; font-size: 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-family: var(--sans); }
@media (max-width: 640px) {
  .ic-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 14px; }
  .ic-dlg-head { padding: 10px 12px; }
  .ic-cmp-ctrl { padding: 10px 12px; gap: 8px 12px; }
  .ic-lbl { font-size: 10px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
}

/* bookmark nudge (shown once, after the second successful run of a tool) */
.bm-nudge { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 10px 9px 16px; font-size: 13px; color: var(--heading); box-shadow: 0 14px 40px rgba(43, 39, 64, 0.18); z-index: 70; max-width: calc(100vw - 32px); }
.bm-nudge kbd { font-family: var(--latin); font-size: 12px; background: var(--bg-gray); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 7px; }
.bm-nudge button { border: none; background: var(--bg-gray); color: var(--muted); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1; }
.bm-nudge button:hover { background: var(--line); color: var(--heading); }
.bm-nudge kbd { white-space: nowrap; }
@media (max-width: 560px) { .bm-nudge { left: 16px; right: 16px; transform: none; max-width: none; border-radius: 14px; font-size: 12.5px; padding: 10px 10px 10px 14px; justify-content: space-between; } }

/* ================= utm-builder: form | live result (URL, issues, GA4 channel, QR) ================= */
.ub-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; max-width: 1080px; margin: 0 auto; padding: 26px 28px; box-shadow: 0 24px 64px rgba(83, 43, 118, 0.12); border-color: transparent; }
.ub-lb { display: block; font-size: 13px; font-weight: 700; color: var(--heading); margin-bottom: 6px; }
.ub-lb-mt { margin-top: 16px; }
.ub-ex-tag { display: none; margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 1px 9px; vertical-align: middle; }
.ub-stage.is-example .ub-ex-tag { display: inline-block; }
.ub-stage.is-example #url { border-color: #f0b35a; background: #fffaf2; }
.ub-form input, .ub-form textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--heading); }
.ub-form input:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 4px rgba(124, 79, 165, 0.12); }
.ub-form #url { font-size: 15px; padding: 12px 14px; }
.ub-presets { margin: 0 0 14px; }
.ub-presets .chip.mine { padding-right: 6px; }
.ub-presets .chip .x { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; font-size: 12px; color: var(--muted); }
.ub-presets .chip .x:hover { background: var(--ng-bg); color: var(--ng); }
.ub-presets .chip.on .x { color: rgba(255, 255, 255, 0.8); }
.ub-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.ub-fields label { display: block; font-size: 12px; font-weight: 700; color: var(--heading); min-width: 0; }
.ub-fields label > span { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-family: var(--mono); font-weight: 600; font-size: 12px; }
.ub-fields label.wide { grid-column: 1 / -1; }
.ub-fields .req { font-family: var(--sans); font-size: 10.5px; font-weight: 700; color: var(--purple); background: #f3ecf7; border-radius: 999px; padding: 0 7px; }
.ub-fields input { font-family: var(--mono); font-size: 13.5px; }
.ub-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; }
.ub-form-foot .ic-check { font-weight: 500; }
.ub-foot-links { display: inline-flex; gap: 14px; }
.ub-save-preset { display: flex; gap: 8px; margin-top: 12px; }
.ub-save-preset input { font-size: 12.5px; padding: 7px 10px; }
.ub-result { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ub-url { font-family: var(--mono); font-size: 13px; line-height: 1.7; word-break: break-all; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--heading); min-height: 68px; }
.ub-result.is-empty .ub-url { display: grid; place-items: center; color: var(--muted); font-family: var(--sans); text-align: center; }
.ub-url .amp { color: var(--muted); }
.p-source { color: var(--purple-deep); font-weight: 700; }
.p-medium { color: var(--teal-text); font-weight: 700; }
.p-campaign { color: #b2620a; font-weight: 700; }
.p-content, .p-term, .p-id { color: #2b5b9a; font-weight: 700; }
.p-other { color: var(--muted); }
.ub-issues { list-style: none; display: grid; gap: 5px; font-size: 12.5px; line-height: 1.6; }
.ub-issues li { padding-left: 20px; position: relative; color: var(--text); }
.ub-issues li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; }
.ub-issues li.ok::before { background: var(--ok); } .ub-issues li.ok { color: var(--ok); }
.ub-issues li.fix::before { background: var(--teal-deep); }
.ub-issues li.warn::before { background: #f0b35a; }
.ub-issues li.bad::before { background: var(--ng); } .ub-issues li.bad { color: var(--ng); }
.ub-issues li.need::before { background: var(--line-strong); } .ub-issues li.need { color: var(--muted); }
.ub-issues li s { color: var(--muted); }
.ub-issues li code { font-size: 12px; }
.ub-ch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.ub-ch-lb { font-weight: 700; color: var(--heading); }
.ub-channel { font-family: var(--latin); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 3px 12px; background: var(--bg-gray); color: var(--muted); }
.ub-channel.ok { background: var(--ok-bg); color: var(--ok); }
.ub-channel.warn { background: var(--warn-bg); color: var(--warn); }
.ub-ch-why { flex-basis: 100%; }
.ub-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ub-kbd { margin-left: auto; }
.ub-qr { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; padding-top: 12px; border-top: 1px dashed var(--line); }
.ub-qr canvas { width: 150px; height: 150px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ub-result.is-empty .ub-qr canvas { opacity: 0.35; }
.ub-qr-opts { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--heading); margin-bottom: 10px; }
.ub-qr-opts label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.ub-qr-opts select { padding: 5px 24px 5px 8px; font-size: 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; font-family: var(--sans); }
.ub-logo input { display: none; }
.ub-logo .ic-link { margin-left: 0; font-weight: 700; }
.ub-import input { display: none; }
.ub-hist { list-style: none; display: grid; gap: 6px; }
.ub-hist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.ub-hist .h-main { min-width: 0; display: grid; gap: 2px; }
.ub-hist .h-tags b { font-family: var(--mono); font-size: 11.5px; margin-right: 8px; }
.ub-hist .h-url { font-family: var(--mono); font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ub-hist .h-acts { display: flex; align-items: center; gap: 6px; }
.ub-hist .h-when { font-family: var(--latin); font-size: 11.5px; color: var(--muted); margin-right: 4px; }
.ub-bulk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.ub-bulk-head select { padding: 6px 28px 6px 10px; font-size: 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-family: var(--sans); margin-left: 6px; }
#bulk textarea { width: 100%; font-family: var(--mono); font-size: 13px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; margin-bottom: 12px; }
.ub-bulk { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ub-bulk th, .ub-bulk td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ub-bulk th { color: var(--muted); font-size: 12px; }
.ub-bulk td.u { font-family: var(--mono); font-size: 11.5px; word-break: break-all; color: var(--heading); }
.ub-bulk td.a { white-space: nowrap; }
.ub-bulk td.a .ic-act + .ic-act { margin-left: 4px; }
@media (max-width: 900px) {
  .ub-stage { grid-template-columns: 1fr; gap: 22px; padding: 20px 18px; }
  .ub-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ub-fields { grid-template-columns: 1fr; }
  .ub-qr { grid-template-columns: 1fr; }
  .ub-qr canvas { width: 180px; height: 180px; margin: 0 auto; }
  .ub-kbd { display: none; }
  .ub-hist li { grid-template-columns: 1fr; }
  .ub-actions .btn { width: 100%; }
}

/* ================= serp-preview: editor | Google mock ================= */
.sp-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; max-width: 1080px; margin: 0 auto; padding: 26px 28px; box-shadow: 0 24px 64px rgba(83, 43, 118, 0.12); border-color: transparent; }
.sp-urlrow { display: flex; gap: 8px; }
.sp-urlrow input { flex: 1; min-width: 0; padding: 10px 12px; font: inherit; font-size: 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--heading); }
.sp-urlrow input:focus, .sp-editor textarea:focus, .sp-opts input:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 4px rgba(124, 79, 165, 0.12); }
.sp-replace { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 500; }
.sp-variants { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.sp-variants .chips { margin: 0; }
.sp-var-acts { display: inline-flex; gap: 12px; font-size: 12.5px; }
.sp-field { display: block; margin-top: 10px; }
.sp-lb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--heading); margin-bottom: 5px; }
.sp-count { margin-left: auto; font-family: var(--latin); font-weight: 600; font-size: 12px; color: var(--muted); }
.sp-count.bad { color: var(--ng); }
.sp-count.warn { color: var(--warn); }
.sp-ex-tag { display: none; font-family: var(--sans); font-size: 11px; font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 1px 9px; }
.sp-stage.is-example .sp-ex-tag { display: inline-block; }
.sp-stage.is-example #title, .sp-stage.is-example #desc { border-color: #f0b35a; background: #fffaf2; }
.sp-editor textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: 14.5px; line-height: 1.7; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--heading); resize: vertical; }
.sp-meter { display: block; height: 5px; border-radius: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.sp-meter i { display: block; height: 100%; width: 0; background: var(--ok); transition: width 0.15s; }
.sp-meter i.w { background: #f0b35a; }
.sp-meter i.b { background: var(--ng); }
.sp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 12px; }
.sp-opts label { display: block; font-size: 12px; font-weight: 700; color: var(--heading); }
.sp-opts input[type="text"], .sp-opts input:not([type]), .sp-opts input[type="date"] { width: 100%; margin-top: 4px; padding: 7px 10px; font: inherit; font-size: 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.sp-opts .sp-date { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.sp-opts .sp-date input[type="date"] { width: auto; margin: 0; }
.sp-opts .ic-check { font-weight: 700; }
.sp-editor-foot { display: flex; gap: 14px; margin-top: 10px; font-size: 12.5px; }
.sp-preview { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sp-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-pv-block { position: relative; }
.sp-pv-lb { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.sp-pv-block > div { overflow: hidden; }
.sp-mock { box-sizing: border-box; font-family: Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "Yu Gothic", sans-serif; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; width: 632px; max-width: none; }
.sp-mock.sp { width: 367px; max-width: none; border-radius: 12px; box-shadow: 0 1px 6px rgba(32, 33, 36, 0.12); border-color: #dadce0; }
.sp-src { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sp-fav { width: 26px; height: 26px; border-radius: 50%; background: #e8eaed; color: #5f6368; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.sp-site { font-size: 14px; color: #202124; line-height: 1.3; }
.sp-crumb { font-size: 12px; color: #4d5156; line-height: 1.3; word-break: break-all; }
.sp-title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin: 2px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-mock.sp .sp-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.sp-mock.sp .sp-desc { -webkit-line-clamp: 3; }
.sp-desc b, .sp-title b { font-weight: 700; color: inherit; }
.sp-date { color: #70757a; }
.sp-empty { color: #9aa0a6; }
.sp-risks { list-style: none; display: grid; gap: 5px; font-size: 12.5px; line-height: 1.6; }
.sp-risks li { padding-left: 20px; position: relative; color: var(--text); }
.sp-risks li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; }
.sp-risks li.ok::before { background: var(--ok); } .sp-risks li.ok { color: var(--ok); }
.sp-risks li.info::before { background: var(--teal-deep); }
.sp-risks li.warn::before { background: #f0b35a; }
.sp-risks li.bad::before { background: var(--ng); } .sp-risks li.bad { color: var(--ng); }
.sp-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.sp-list { padding-left: 1.2em; font-size: 14px; line-height: 1.9; }
.sp-list li { margin: 6px 0; }
@media (max-width: 900px) {
  .sp-stage { grid-template-columns: 1fr; gap: 22px; padding: 20px 18px; }
  .sp-preview { order: -1; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .sp-urlrow { flex-direction: column; }
  .sp-opts { grid-template-columns: 1fr; }
  .sp-actions .btn-primary { width: 100%; }
}

/* ================= ai-bot-check: big input stage, grouped verdicts | robots.txt viewer ================= */
.ab-stage { max-width: 880px; margin: 0 auto; padding: 26px 28px 22px; box-shadow: 0 24px 64px rgba(83, 43, 118, 0.12); border-color: transparent; }
.ab-urlform { display: flex; gap: 8px; background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px; }
.ab-urlform:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124, 79, 165, 0.12); }
.ab-urlform input { flex: 1; min-width: 0; border: none; background: transparent; font: inherit; font-size: 17px; padding: 12px 14px; color: var(--heading); }
.ab-urlform input:focus { outline: none; }
.ab-urlform .btn { border-radius: 10px; padding: 12px 26px; }
.ab-form-sub { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.ab-path { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--heading); }
.ab-path input { width: 160px; font-family: var(--mono); font-size: 12.5px; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 7px; }
.ab-legend { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--text); line-height: 1.6; }
.ab-legend > div { display: flex; align-items: flex-start; gap: 10px; }
.ab-legend .pill { flex-shrink: 0; margin-top: 2px; }
.ab-legend .ab-lt { min-width: 0; }
.ab-verdict { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ab-vd { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.ab-vd-lb { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 2px; }
.ab-vd b { font-size: 16px; font-weight: 700; }
.ab-vd b.ok { color: var(--ok); } .ab-vd b.w { color: var(--warn); } .ab-vd b.b { color: var(--ng); }
.ab-intent { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 14px 0 18px; font-size: 13px; }
.ab-intent-lb { font-weight: 700; color: var(--heading); }
.ab-intent-res { font-weight: 700; }
.ab-intent-res.ok { color: var(--ok); } .ab-intent-res.w { color: var(--warn); }
.ab-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 20px; align-items: start; }
.ab-cols .card + .card { margin-top: 0; }
.ab-robots-card { position: sticky; top: 84px; }
.ab-group + .ab-group { margin-top: 16px; }
.ab-group-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ab-group-sub { font-size: 12px; color: var(--muted); }
.ab-rows { list-style: none; }
.ab-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 8px; border-top: 1px dashed var(--line); border-radius: 8px; cursor: pointer; transition: background 0.15s; }
.ab-row:hover { background: var(--bg-tint); }
.ab-row.miss { background: #fff8ec; }
.ab-bot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--heading); }
.ab-bot b { font-family: var(--mono); font-weight: 700; }
.ab-vendor { font-size: 11.5px; color: var(--muted); }
.ab-note { font-size: 10.5px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 6px; }
.ab-ignore { font-size: 10.5px; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 0 7px; }
.ab-status { display: flex; gap: 4px; align-items: center; }
.ab-why { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.6; }
.ab-robots { font-family: var(--mono); font-size: 12px; line-height: 1.7; background: var(--bg-gray); border: 1px solid var(--line); border-radius: 12px; padding: 10px 0; max-height: 520px; overflow: auto; }
.ab-robots .rl { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 0 12px; white-space: pre-wrap; word-break: break-all; }
.ab-robots .rl .n { color: var(--muted); text-align: right; user-select: none; }
.ab-robots .rl.hl { background: var(--warn-bg); color: var(--heading); }
.ab-empty { padding: 14px; font-family: var(--sans); color: var(--muted); font-size: 13px; }
#editor { width: 100%; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; }
#fix pre { white-space: pre; }
@media (max-width: 900px) {
  .ab-cols { grid-template-columns: 1fr; }
  .ab-robots-card { position: static; }
  .ab-robots { max-height: 320px; }
}
@media (max-width: 560px) {
  .ab-urlform { flex-direction: column; padding: 8px; }
  .ab-urlform .btn { width: 100%; }
  .ab-stage { padding: 20px 18px; }
  .ab-row { grid-template-columns: 1fr; }
}

/* ================= push-preview: compact form | five notification mocks ================= */
.pp-stage { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 26px; max-width: 1080px; margin: 0 auto; padding: 24px 26px; box-shadow: 0 24px 64px rgba(83, 43, 118, 0.12); border-color: transparent; }
.pp-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pp-field { display: block; }
.pp-lb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.pp-count { margin-left: auto; font-family: var(--latin); font-size: 12px; font-weight: 600; color: var(--muted); }
.pp-count.warn { color: var(--warn); }
.pp-ex-tag { display: none; font-size: 11px; font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 1px 9px; }
.pp-stage.is-example .pp-ex-tag { display: inline-block; }
.pp-stage.is-example #title, .pp-stage.is-example #body { border-color: #f0b35a; background: #fffaf2; }
.pp-form input, .pp-form textarea { width: 100%; padding: 9px 11px; font: inherit; font-size: 14px; line-height: 1.6; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--heading); }
.pp-form input:focus, .pp-form textarea:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 4px rgba(124, 79, 165, 0.12); }
.pp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-files { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--heading); font-weight: 700; }
.pp-file input { display: none; }
.pp-file .ic-link { font-weight: 700; }
.pp-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pp-foot-links { margin-left: auto; display: inline-flex; gap: 12px; font-size: 12.5px; }
.pp-cut { font-size: 12.5px; line-height: 1.7; color: var(--text); min-height: 1.5em; }
.pp-cut b { color: var(--warn); } .pp-cut b.ok { color: var(--ok); }
.pp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-content: start; min-width: 0; }
.pp-tile { min-width: 0; }
.pp-tile-h { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; margin-bottom: 6px; }
.pp-tile-h b { color: var(--heading); }
.pp-tile-h span { color: var(--muted); font-size: 11.5px; }
.pp-nwrap { overflow: hidden; }
.pp-n { box-sizing: border-box; color: #1b1b1b; }
.pp-n i { color: #9a9a9a; font-style: normal; }
.pp-n.dark { color: #f2f2f2; }
.pp-main { display: flex; gap: 10px; align-items: flex-start; }
.pp-text { min-width: 0; flex: 1; }
.pp-ico { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: #fff; }
.pp-meta { font-size: 11px; color: #6b6b6b; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-n.dark .pp-meta { color: #b5b5b5; }
.pp-title, .pp-body { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.pp-title { font-weight: 600; }
.pp-img { margin-top: 8px; border-radius: 6px; overflow: hidden; }
.pp-img img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
/* Windows 11 toast */
.pp-n.win { width: 364px; font-family: "Segoe UI", "Yu Gothic UI", Meiryo, system-ui, sans-serif; background: #f3f3f3; border: 1px solid #e3e3e3; border-radius: 8px; padding: 10px 14px 12px; }
.pp-n.win.dark { background: #2b2b2b; border-color: #3a3a3a; }
.pp-app { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #5c5c5c; margin-bottom: 8px; }
.pp-n.win.dark .pp-app { color: #c7c7c7; }
.pp-app img { width: 16px; height: 16px; border-radius: 3px; }
.pp-app em { font-style: normal; color: #8a8a8a; margin-left: auto; }
.pp-n.win .pp-title { font-size: 15px; line-height: 1.35; }
.pp-n.win .pp-body { font-size: 14px; line-height: 1.4; margin-top: 2px; }
/* macOS banner (Chrome / Safari) */
.pp-n.mac, .pp-n.safari { width: 344px; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Helvetica Neue", sans-serif; background: rgba(246, 246, 246, 0.96); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); }
.pp-n.mac.dark, .pp-n.safari.dark { background: rgba(44, 44, 46, 0.96); border-color: rgba(255, 255, 255, 0.1); }
.pp-n.mac .pp-title, .pp-n.safari .pp-title { font-size: 13px; line-height: 1.35; }
.pp-n.mac .pp-body, .pp-n.safari .pp-body { font-size: 13px; line-height: 1.35; }
/* Android (Chrome) */
.pp-n.android { width: 360px; font-family: Roboto, "Noto Sans JP", sans-serif; background: #fff; border-radius: 24px; padding: 12px 16px 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }
.pp-n.android.dark { background: #1f1f1f; }
.pp-n.android .pp-ico { width: 36px; height: 36px; border-radius: 50%; }
.pp-n.android .pp-title { font-size: 14px; font-weight: 500; line-height: 1.4; }
.pp-n.android .pp-body { font-size: 14px; line-height: 1.4; color: #444; }
.pp-n.android.dark .pp-body { color: #d6d6d6; }
.pp-n.android .pp-img { border-radius: 12px; margin-top: 10px; }
.pp-n.android .pp-img img { aspect-ratio: 2 / 1; }
/* iOS lock screen banner */
.pp-n.ios { width: 360px; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Helvetica Neue", sans-serif; background: rgba(245, 245, 245, 0.96); border-radius: 20px; padding: 12px 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); position: relative; }
.pp-n.ios.dark { background: rgba(40, 40, 42, 0.96); }
.pp-n.ios .pp-ico { width: 38px; height: 38px; border-radius: 9px; }
.pp-n.ios .pp-title { font-size: 15px; line-height: 1.3; }
.pp-n.ios .pp-body { font-size: 15px; line-height: 1.3; }
.pp-time { position: absolute; right: 14px; top: 12px; font-size: 12px; color: #7a7a7a; }
.pp-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pp-noimg { font-size: 11.5px; color: var(--warn); margin-top: 4px; }
.pp-note { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
@media (max-width: 960px) {
  .pp-stage { grid-template-columns: 1fr; padding: 20px 18px; }
  .pp-tiles { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 560px) {
  .pp-two { grid-template-columns: 1fr; }
  .pp-foot-links { margin-left: 0; }
}

/* ================= instagram-grid: controls | phone with the profile grid ================= */
.ig-stage { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; max-width: 1080px; margin: 0 auto; padding: 24px 26px; box-shadow: 0 24px 64px rgba(83, 43, 118, 0.12); border-color: transparent; align-items: start; }
.ig-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ig-drop { padding: 24px 18px; }
.ig-drop input { display: none; }
.ig-side-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; align-items: center; }
.ig-drop-mini { cursor: pointer; font-weight: 700; color: var(--purple-deep); }
.ig-drop-mini input { display: none; }
.ig-drop-mini.over { background: #f6f0fc; }
.ig-drop-mini .muted { font-weight: 500; }
.ig-counts { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.ig-counts b { color: var(--heading); font-family: var(--latin); }
.ig-cropsum { font-size: 12.5px; color: var(--text); min-height: 1.4em; }
.ig-cropsum b { color: var(--warn); }
.ig-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 14px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; }
.ig-opt { display: inline-flex; align-items: center; gap: 8px; }
.ig-lb { font-weight: 700; color: var(--heading); font-size: 12.5px; }
.ig-selbar { border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; background: #fff; display: grid; gap: 8px; }
.ig-sel-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ig-sel-h b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ig-sel-close { margin-left: auto; width: 26px; height: 26px; font-size: 16px; }
.ig-sel-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ig-selbar input { width: 100%; padding: 7px 10px; font: inherit; font-size: 13px; border: 1px solid var(--line-strong); border-radius: 8px; }
.ig-profile summary { font-size: 12.5px; font-weight: 700; color: var(--purple-deep); cursor: pointer; }
.ig-profile-f { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--heading); }
.ig-profile-f label { display: block; }
.ig-profile-f input:not([type="file"]):not([type="checkbox"]) { width: 100%; margin-top: 3px; padding: 6px 9px; font: inherit; font-size: 13px; font-weight: 400; border: 1px solid var(--line-strong); border-radius: 8px; }
.ig-avatar-in input { display: none; }
.ig-avatar-in .ic-link { margin-left: 8px; }
.ig-variants { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; }
.ig-variants .chip.has { border-color: var(--purple); color: var(--purple-deep); }
.ig-export .btn-primary { flex: 1; }
/* phone */
.ig-phone-wrap { position: sticky; top: 84px; }
.ig-phone { width: 390px; max-width: 100%; margin: 0 auto; background: #fff; border: 8px solid #1f1e2e; border-radius: 40px; padding: 14px 0 18px; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif; color: #111; overflow: hidden; box-shadow: 0 24px 60px rgba(31, 30, 46, 0.25); }
.ig-ph-top { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 8px; font-size: 15px; }
.ig-ph-top b { font-weight: 700; }
.ig-ph-head { display: flex; align-items: center; gap: 22px; padding: 4px 16px; }
.ig-ph-avatar { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, #c27efe, #77e3d6) center/cover; flex-shrink: 0; border: 2px solid #fff; box-shadow: 0 0 0 2px #e6e6e6; }
.ig-ph-stats { display: flex; gap: 22px; flex: 1; justify-content: space-around; }
.ig-ph-stats div { text-align: center; font-size: 11px; color: #333; }
.ig-ph-stats b { display: block; font-size: 16px; color: #111; }
.ig-ph-bio { padding: 6px 16px 0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.ig-ph-btns { display: flex; gap: 6px; padding: 10px 16px 8px; }
.ig-ph-btns span { flex: 1; text-align: center; background: #efefef; border-radius: 8px; font-size: 13px; font-weight: 600; padding: 6px 0; }
.ig-ph-btns span:last-child { flex: 0 0 40px; }
.ig-ph-hl { display: flex; gap: 14px; padding: 4px 16px 10px; }
.ig-ph-hl i { width: 56px; height: 56px; border-radius: 50%; border: 1px solid #dbdbdb; background: #fafafa; }
.ig-ph-tabs { display: flex; border-top: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6; }
.ig-ph-tabs span { flex: 1; text-align: center; padding: 8px 0; color: #999; font-size: 16px; }
.ig-ph-tabs span.on { color: #111; border-bottom: 1.5px solid #111; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding-top: 2px; }
.ig-cell { position: relative; aspect-ratio: 3 / 4; background: #f0f0f0; overflow: hidden; cursor: grab; outline: none; user-select: none; -webkit-user-select: none; touch-action: none; }
.ig-grid.r-1-1 .ig-cell { aspect-ratio: 1 / 1; }
.ig-grid.r-4-5 .ig-cell { aspect-ratio: 4 / 5; }
.ig-cell img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ig-cell.posted { cursor: default; }
.ig-cell.posted img { filter: saturate(0.55) brightness(0.92); }
.ig-cell.empty { background: #fafafa; cursor: default; }
.ig-cell.sel { box-shadow: inset 0 0 0 3px var(--purple); }
.ig-cell.over { box-shadow: inset 0 0 0 3px var(--teal-deep); }
.ig-cell.dragging { opacity: 0.35; }
.ig-cell:focus-visible { box-shadow: inset 0 0 0 3px var(--purple); }
.ig-blank { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); padding: 6px; text-align: center; }
.ig-guide { position: absolute; pointer-events: none; border: 0 dashed rgba(255, 255, 255, 0.9); }
.ig-guide.lr { inset: 0 12.5%; border-left-width: 1px; border-right-width: 1px; }
.ig-guide.tb { inset: 3% 0; border-top-width: 1px; border-bottom-width: 1px; }
.ig-dot { position: absolute; left: 6px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 2px #fff; }
.ig-pin { position: absolute; right: 4px; top: 3px; font-size: 11px; font-style: normal; }
.ig-crop { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9.5px; font-style: normal; color: #fff; background: rgba(31, 30, 46, 0.65); padding: 1px 4px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-crop.bad { background: rgba(180, 35, 58, 0.8); }
.ig-ghost { position: fixed; z-index: 90; pointer-events: none; opacity: 0.85; border-radius: 6px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); }
.ig-ghost img { width: 100%; height: 100%; object-fit: cover; }
.ig-ghost .ig-crop, .ig-ghost .ig-dot, .ig-ghost .ig-guide { display: none; }
.ig-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 10px; font-size: 11.5px; align-items: center; }
.ig-lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.ig-lg.planned { background: var(--purple); }
.ig-lg.posted { background: #bbb; }
.ig-lg.pin { width: auto; height: auto; }
@media (max-width: 960px) {
  .ig-stage { grid-template-columns: 1fr; padding: 20px 18px; }
  .ig-phone-wrap { position: static; }
  .ig-stage.has-items .ig-phone-wrap { order: -1; }
  .ig-phone { width: 100%; max-width: 390px; }
}
@media (max-width: 560px) {
  .ig-profile-f { grid-template-columns: 1fr; }
  .ig-phone { border-width: 6px; border-radius: 30px; }
}

/* ================= footer: brand + two short columns on top, tools grouped by category below ================= */
.foot-grid-top { grid-template-columns: 1.6fr 1fr 1fr; margin-bottom: 30px; }
.foot-tools { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 26px; margin-bottom: 34px; }
.foot-tools-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.foot-tools-head h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.55); font-family: var(--latin); margin: 0; }
.foot-tools-all { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.78); transition: color 0.25s; }
.foot-tools-all:hover { color: #fff; }
.foot-tools-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; }
.foot-tools-col h5 { font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, 0.45); margin-bottom: 10px; letter-spacing: 0.04em; }
.foot-tools-col ul { list-style: none; display: grid; gap: 7px; }
.foot-tools-col a { color: rgba(255, 255, 255, 0.78); font-size: 12.5px; line-height: 1.5; transition: color 0.25s; }
.foot-tools-col a:hover { color: #fff; }
@media (max-width: 900px) {
  .foot-grid-top { grid-template-columns: 1fr 1fr; }
  .foot-grid-top .foot-brand { grid-column: 1 / -1; }
  .foot-tools-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .foot-grid-top { grid-template-columns: 1fr; gap: 22px; }
  .foot-tools-cols { grid-template-columns: 1fr; gap: 18px; }
}

/* leads: left-aligned block centred under the headline (even line lengths); names with hyphens never break */
.ic-hero-head .lead .nw, .ab-legend .nw { white-space: nowrap; }
