:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  color: #26343c;
  background: #ffffff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; }

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
}

button,
input { font: inherit; }

.page-width {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid #e3e9ed;
  background: #ffffff;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.header-inner div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.header-inner strong {
  color: #25363f;
  font-size: 17px;
  font-weight: 600;
}

.header-inner span { color: #83919a; }
main { padding: 20px 0 56px; }

.notice-box,
.result-notice {
  padding: 24px 22px;
  background: #eef8fd;
  border-top: 1px solid #dceef7;
  border-bottom: 1px solid #dceef7;
}

.notice-meta {
  margin: 0 0 22px;
  color: #7b8a93;
  font-size: 13px;
}

h1,
h2,
p { margin-top: 0; }

h1 {
  margin-bottom: 14px;
  color: #25343c;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.45;
}

.notice-text {
  margin-bottom: 0;
  color: #445760;
  font-size: 15px;
  line-height: 1.9;
}

.query-form {
  margin-top: 26px;
  padding: 0 4px;
}

.query-form label {
  display: block;
  margin-bottom: 9px;
  color: #344750;
  font-size: 15px;
  font-weight: 600;
}

.query-form input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  color: #26343c;
  background: #ffffff;
  border: 1px solid #cfd9df;
  border-radius: 3px;
  outline: none;
}

.query-form input:focus {
  border-color: #65aeca;
  box-shadow: 0 0 0 2px rgba(101, 174, 202, 0.14);
}

.query-form button {
  width: 100%;
  height: 48px;
  margin-top: 12px;
  color: #ffffff;
  background: #3899bd;
  border: 0;
  border-radius: 3px;
  font-weight: 600;
  cursor: pointer;
}

.query-form button:active { background: #2f86a7; }
.query-form button:disabled { cursor: wait; opacity: 0.65; }

.form-message {
  min-height: 22px;
  margin: 9px 0 0;
  color: #b94c4c;
  font-size: 13px;
}

.result-notice { position: relative; }

.verified {
  margin: 24px 0 0;
  color: #2aa27c;
  font-size: 14px;
  text-align: center;
}

.verified span {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-right: 5px;
  color: #ffffff;
  background: #34b58d;
  border-radius: 50%;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 14px;
}

.section-heading h2 {
  margin: 0;
  color: #26343c;
  font-size: 19px;
  font-weight: 600;
}

.text-button {
  padding: 6px 0;
  color: #368eaf;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 14px;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 15px 18px;
  background: #eef8fd;
  border: 1px solid #dce9ef;
}

.total-row span { color: #435761; font-size: 16px; }
.total-row strong { color: #2785a8; font-size: 30px; font-weight: 600; }

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid #e0e6ea;
}

.score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 13px 18px;
  background: #ffffff;
  border-right: 1px solid #e0e6ea;
  border-bottom: 1px solid #e0e6ea;
}

.score-card span { color: #64747c; font-size: 14px; }
.score-card strong { color: #26343c; font-size: 21px; font-weight: 500; }

.privacy-note {
  margin: 15px 0 0;
  color: #8a969d;
  font-size: 12px;
  line-height: 1.7;
  text-align: right;
}

footer {
  padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  color: #99a4aa;
  border-top: 1px solid #edf0f2;
  text-align: center;
  font-size: 12px;
}

@media (min-width: 641px) {
  main { padding-top: 32px; }
  .notice-box,
  .result-notice { padding: 30px 34px; }
  .query-form { max-width: 480px; margin: 30px auto 0; }
}

@media (max-width: 520px) {
  .page-width { width: 100%; }
  .header-inner { width: calc(100% - 28px); }
  .header-inner div { display: block; }
  .header-inner div span { display: block; margin-top: 3px; font-size: 12px; }
  main { padding-top: 0; }
  .notice-box,
  .result-notice { border-top: 0; }
  .query-form { padding: 0 16px; }
  .section-heading,
  .total-row,
  .score-grid,
  .privacy-note { margin-left: 16px; margin-right: 16px; }
  .score-card { padding: 12px 14px; }
  .privacy-note { text-align: left; }
}

@media (max-width: 350px) {
  .score-card { padding: 11px 10px; }
  .score-card strong { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
