/* SEO/AIO診断 デザインシステム v1
   シグネチャ: 2軸カラー(SEO=計器青 / AIO=AI紫)を全画面で貫く。絵文字・過剰装飾なし。 */
:root {
  --ink: #182430;
  --muted: #6b7680;
  --bg: #f5f6f4;
  --card: #ffffff;
  --line: #e4e7e9;
  --seo: #1e6fae;
  --seo-soft: #e8f1f8;
  --aio: #6a4bbf;
  --aio-soft: #efeaf9;
  --ok: #2f7d4f;
  --ok-soft: #e6f2ea;
  --warn: #a86b00;
  --warn-soft: #faf1dc;
  --ng: #b23a2f;
  --ng-soft: #f9e9e7;
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.75; font-size: 15px;
}
.mono { font-family: "IBM Plex Mono", "Consolas", monospace; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }
a { color: var(--seo); }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--card); }
.head-inner { display: flex; align-items: center; gap: 20px; padding: 14px 20px; flex-wrap: wrap; }
.brand { font-size: 17px; font-weight: 700; letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.brand .axis-seo { color: var(--seo); }
.brand .axis-aio { color: var(--aio); }
.head-nav { display: flex; gap: 4px; flex: 1; }
.head-nav a { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 700; padding: 5px 12px; border-radius: 6px; }
.head-nav a:hover { background: var(--bg); }
.head-nav a.on { background: var(--ink); color: #fff; }
.beta { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; white-space: nowrap; }

/* searcher */
.searcher { padding: 34px 0 26px; }
.searcher h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.searcher .lede { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.q-form { display: flex; gap: 10px; flex-wrap: wrap; }
.q-form input[type=url] {
  flex: 1; min-width: 260px; padding: 13px 16px; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); font-family: inherit;
}
.q-form input[type=url]:focus { outline: 2px solid var(--seo); outline-offset: 1px; border-color: transparent; }
.q-form select { padding: 12px; border: 1.5px solid var(--line); border-radius: var(--radius); font-size: 14px; font-family: inherit; background: var(--card); }
.q-form button {
  padding: 13px 32px; font-size: 15px; font-weight: 700; font-family: inherit;
  color: #fff; background: var(--ink); border: none; border-radius: var(--radius); cursor: pointer;
}
.q-form button:hover { background: #2b3b4c; }
.q-form button:disabled { background: #9aa4ad; cursor: default; }
.quota { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* notices */
.notice { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; font-size: 14px; }
.notice.err { background: var(--ng-soft); color: var(--ng); }
.notice.limit { background: var(--warn-soft); color: var(--warn); }
.notice.limit a { color: inherit; font-weight: 700; }
.critical { background: var(--ng); color: #fff; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.critical strong { display: block; font-size: 13px; letter-spacing: .08em; margin-bottom: 4px; }
.critical li { margin-left: 20px; font-size: 14px; }

/* summary */
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px; }
.summary .eyebrow { font-size: 11.5px; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.summary .headline { font-size: 15.5px; font-weight: 500; margin-bottom: 14px; }
.top-issues { display: grid; gap: 8px; }
.top-issue { display: flex; gap: 12px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; flex-wrap: wrap; }
.top-issue .rank { font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; }
.top-issue .t { font-weight: 700; font-size: 14px; white-space: nowrap; }
.top-issue .fix { font-size: 13.5px; color: var(--muted); }

/* score cards */
.scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 26px; }
.score-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 22px 26px; overflow: hidden;
}
.score-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.score-card.axis-seo::before { background: var(--seo); }
.score-card.axis-aio::before { background: var(--aio); }
.score-card.axis-speed::before { background: var(--muted); }
.score-card .label { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.score-card .value { font-size: 46px; font-weight: 600; line-height: 1.2; }
.score-card .value .sub { font-size: 18px; color: var(--muted); }
.axis-seo .value { color: var(--seo); }
.axis-aio .value { color: var(--aio); }
.score-card .grade { font-size: 13px; color: var(--muted); }
.gauge { height: 6px; background: var(--line); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.gauge i { display: block; height: 100%; border-radius: 3px; }
.axis-seo .gauge i { background: var(--seo); }
.axis-aio .gauge i { background: var(--aio); }
.speed-steps { display: flex; gap: 4px; margin-top: 14px; }
.speed-steps i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.speed-steps i.on { background: var(--ink); }
.speed-word { font-size: 30px; font-weight: 700; line-height: 1.5; }

/* sections */
.section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; overflow: hidden; }
.section > h2 { font-size: 15px; padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.section .sec-note { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.axis-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.axis-dot.seo { background: var(--seo); }
.axis-dot.aio { background: var(--aio); }
.axis-dot.speed { background: var(--muted); }
.axis-dot.cross { background: var(--warn); }

/* check accordion */
.check { border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: none; }
.check-row {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: baseline;
  width: 100%; text-align: left; padding: 13px 22px; background: none; border: none;
  font-family: inherit; font-size: 14px; color: inherit; cursor: pointer;
}
.check-row:hover { background: #fafbfa; }
.check-row:focus-visible { outline: 2px solid var(--seo); outline-offset: -2px; }
.check-row .name { font-weight: 700; }
.check-row .short { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.check-row .pts { font-size: 13px; color: var(--muted); white-space: nowrap; }
.badge { display: inline-block; text-align: center; min-width: 58px; padding: 2px 0; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-ng { background: var(--ng-soft); color: var(--ng); }
.b-skip { background: #eef0f2; color: var(--muted); }
.check-body { display: none; padding: 4px 22px 20px 106px; }
.check.open .check-body { display: block; }
.desc-simple { font-size: 14px; margin-bottom: 8px; }
.desc-tech { font-size: 12.5px; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; }
.evidence { margin: 10px 0; }
.evidence .ev-title { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin-bottom: 4px; }
.evidence li { font-size: 12.5px; margin-left: 20px; word-break: break-all; }
.ev-locked { font-size: 12.5px; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 6px; padding: 7px 12px; margin-top: 6px; }
.fix-btn {
  display: inline-block; margin-top: 8px; padding: 8px 20px; font-size: 13px; font-weight: 700; font-family: inherit;
  color: #fff !important; border: none; border-radius: 7px; cursor: pointer; background: var(--ink); text-decoration: none;
}
.fix-btn:hover { background: #2b3b4c; }
.fix-hint { font-size: 13px; margin-top: 8px; }

/* speed table / cross items / page table */
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table td, .data-table th { padding: 11px 22px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.data-table th { color: var(--muted); font-size: 12px; font-weight: 700; }
.data-table tr:last-child td { border-bottom: none; }
.data-table .sv { color: var(--muted); }
.data-table .num-cell { text-align: right; white-space: nowrap; font-weight: 600; }
.heavy-img { display: block; font-size: 12px; color: var(--ng); word-break: break-all; }
.cross-item { border-left: 4px solid var(--warn); background: #fdfaf2; padding: 12px 16px; margin: 12px 22px; border-radius: 0 6px 6px 0; font-size: 13.5px; }
.cross-item.red { border-color: var(--ng); background: var(--ng-soft); }
.cross-item b { display: block; margin-bottom: 2px; }
.cross-item li { margin-left: 20px; font-size: 12.5px; word-break: break-all; }
.cross-item .cross-note { font-size: 12px; color: var(--muted); }
.ok-line { color: var(--ok); font-size: 14px; padding: 14px 22px; }
.page-row { cursor: pointer; }
.page-row:hover { background: #fafbfa; }
.page-detail { display: none; }
.page-detail.open { display: table-row; }
.page-detail > td { padding: 0 !important; background: #fbfcfb; }
.issue-tag { display: inline-block; background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 8px; font-size: 11.5px; margin: 1px 2px 1px 0; }
.url-cell { word-break: break-all; }

/* progress */
.progress-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px; }
.progress-bar { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; margin: 12px 0 8px; }
.progress-bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--seo), var(--aio)); transition: width .4s ease; }
.progress-log { font-size: 12.5px; color: var(--muted); max-height: 160px; overflow: auto; word-break: break-all; }
.progress-log div { padding: 1px 0; }

/* generator */
.gen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gen-grid label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 12px 0 3px; }
.gen-grid input[type=text], .gen-grid input[type=url] {
  width: 100%; padding: 9px 12px; font-size: 14px; border: 1.5px solid var(--line); border-radius: 7px; font-family: inherit;
}
.gen-grid textarea.code {
  width: 100%; height: 100%; min-height: 380px; font-family: "IBM Plex Mono", monospace; font-size: 12px;
  border: 1.5px solid var(--line); border-radius: 7px; padding: 12px; background: #fbfcfb; resize: vertical;
}
.gen-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.preview-tag { display: inline-block; background: var(--aio-soft); color: var(--aio); border-radius: 999px; padding: 1px 12px; font-size: 11.5px; font-weight: 700; margin-left: 8px; }

/* modal */
.modal-back { display: none; position: fixed; inset: 0; background: rgba(24,36,48,.5); z-index: 50; }
.modal-back.show { display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--card); border-radius: 14px; max-width: 640px; width: 100%; max-height: 90vh; overflow: auto; padding: 28px; }
.modal h3 { font-size: 17px; margin-bottom: 6px; }
.modal .m-lede { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.m-actions { display: flex; gap: 10px; margin-top: 12px; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 18px; }
.plan-table th, .plan-table td { border: 1px solid var(--line); padding: 9px 10px; text-align: center; }
.plan-table th { background: var(--bg); font-size: 12.5px; }
.plan-table td:first-child, .plan-table th:first-child { text-align: left; }
.plan-note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.modal-close { padding: 9px 24px; font-size: 13px; font-weight: 700; font-family: inherit; border: 1.5px solid var(--line); background: none; border-radius: 7px; cursor: pointer; }
.fb-input { width: 100%; padding: 10px 12px; font-size: 14px; border: 1.5px solid var(--line); border-radius: 7px; font-family: inherit; margin-bottom: 10px; }

/* feedback button / footer */
.fb-open {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  padding: 10px 20px; font-size: 13px; font-weight: 700; font-family: inherit;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
  box-shadow: 0 2px 10px rgba(24,36,48,.12);
}
.fb-open:hover { background: var(--bg); }
.site-foot { color: var(--muted); font-size: 12px; padding: 28px 0 70px; }
.meta-line { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; word-break: break-all; }
.print-btn { float: right; font-size: 12.5px; font-weight: 700; color: var(--ink); background: none; border: 1.5px solid var(--line); border-radius: 7px; padding: 5px 16px; cursor: pointer; font-family: inherit; }

@media (max-width: 640px) {
  .check-row { grid-template-columns: 64px 1fr; }
  .check-row .pts { grid-column: 2; }
  .check-body { padding-left: 22px; }
  .gen-grid { grid-template-columns: 1fr; }
}
@media print {
  .searcher, .fix-btn, .ev-locked, .beta, .modal-back, .fb-open, .head-nav, .print-btn, .progress-box { display: none !important; }
  .check-body { display: block !important; }
  .page-detail { display: table-row !important; }
  body { background: #fff; }
  .section, .summary, .score-card { border-color: #bbb; break-inside: avoid; }
}

/* ===== v2: 会員・課金・料金・法務 ===== */
.wrap.narrow { max-width: 560px; }

/* header user chip */
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.user-chip a { color: var(--ink); text-decoration: none; font-weight: 700; }
.user-chip a:hover { color: var(--seo); }
.user-chip .signup-link { color: #fff; background: var(--ink); padding: 5px 14px; border-radius: 7px; }
.plan-badge { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.plan-free { background: #eef0f2; color: var(--muted); }
.plan-basic { background: var(--seo-soft); color: var(--seo); }
.plan-pro { background: var(--aio-soft); color: var(--aio); }
.plan-admin { background: var(--ink); color: #fff; }

/* auth card */
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; margin-top: 30px; }
.auth-card h1 { font-size: 21px; margin-bottom: 6px; }
.auth-card .lede { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.auth-card label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 14px 0 4px; }
.auth-card input { width: 100%; padding: 11px 14px; font-size: 15px; border: 1.5px solid var(--line); border-radius: 8px; font-family: inherit; }
.auth-card input:focus { outline: 2px solid var(--seo); outline-offset: 1px; border-color: transparent; }
.auth-switch { font-size: 13px; color: var(--muted); margin-top: 18px; text-align: center; }
.btn-primary { display: inline-block; margin-top: 20px; padding: 12px 28px; font-size: 15px; font-weight: 700; font-family: inherit; color: #fff; background: var(--ink); border: none; border-radius: 8px; cursor: pointer; text-decoration: none; }
.btn-primary:hover { background: #2b3b4c; }
.btn-outline { display: inline-block; padding: 11px 24px; font-size: 14px; font-weight: 700; font-family: inherit; color: var(--ink); background: none; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; text-decoration: none; }
.btn-outline:hover { background: var(--bg); }
.btn-disabled { display: inline-block; padding: 11px 24px; font-size: 14px; font-weight: 700; color: var(--muted); background: var(--bg); border-radius: 8px; }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 24px; }
.price-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--aio); border-width: 2px; }
.price-ribbon { position: absolute; top: -11px; left: 24px; background: var(--aio); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 14px; border-radius: 999px; }
.price-card h2 { font-size: 17px; margin-bottom: 8px; }
.price-card .price { font-size: 30px; font-weight: 700; margin-bottom: 16px; }
.price-card .price-sub { font-size: 13px; color: var(--muted); font-weight: 400; }
.feat-list { list-style: none; flex: 1; margin-bottom: 20px; }
.feat-list li { font-size: 13.5px; padding: 5px 0 5px 22px; position: relative; border-bottom: 1px solid var(--bg); }
.feat-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.pricing-note { font-size: 12.5px; color: var(--muted); line-height: 1.9; }

/* mypage */
.mypage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.mypage-grid h2 { font-size: 15px; }
.plan-name { font-size: 16px; margin-bottom: 12px; }
.usage-list { list-style: none; margin-bottom: 14px; }
.usage-list li { font-size: 14px; padding: 4px 0; border-bottom: 1px solid var(--bg); }
@media (max-width: 640px) { .mypage-grid { grid-template-columns: 1fr; } }

/* legal */
.legal-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0 20px; }
.legal-nav a { font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 7px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); }
.legal-nav a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.legal-body { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.legal-body h1 { font-size: 20px; margin-bottom: 16px; }
.legal-body h2 { font-size: 15px; margin: 20px 0 6px; }
.legal-body p { font-size: 13.5px; margin-bottom: 8px; }
.legal-dl { display: grid; grid-template-columns: 150px 1fr; gap: 0; }
.legal-dl dt { font-weight: 700; font-size: 13px; padding: 10px 0; border-bottom: 1px solid var(--bg); }
.legal-dl dd { font-size: 13.5px; padding: 10px 0; border-bottom: 1px solid var(--bg); }
.legal-note { font-size: 12px; color: var(--muted); margin-top: 16px; }
@media (max-width: 560px) { .legal-dl { grid-template-columns: 1fr; } .legal-dl dt { padding-bottom: 0; border: none; } }

/* footer links */
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.foot-links a { color: var(--muted); font-size: 12px; text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
