:root {
  --canvas: #faf6f1;
  --surface: #ffffff;
  --ink: #0e0e0f;
  --muted: #5c5e63;
  --border: #dfddd8;
  --brand: #ff3c00;
  --brand-dark: #df3500;
  --blue: #176cb7;
  --ok: #16835a;
  --warn: #a86200;
  --bad: #c9382b;
  --unknown: #60646c;
  --radius: 8px;
  font-family: YakuHanJP, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.65;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); font-family: inherit; font-size: 16px; }
button, textarea, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-underline-offset: 0.2em; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 3px solid rgba(23, 108, 183, 0.35);
  outline-offset: 3px;
}
.page-shell { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-150%); padding: 10px 16px; background: #fff; color: #000; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.brand-header { background: #fff; border-bottom: 1px solid #e6e6e6; }
.brand-header__inner { width: min(1260px, calc(100% - 32px)); min-height: 118px; margin: auto; display: grid; grid-template-columns: 320px 1fr 440px; align-items: center; gap: 28px; }
.brand-header__logo img { display: block; width: 100%; height: auto; }
.brand-header__message { display: grid; font-size: 13px; line-height: 1.5; }
.brand-header__message strong { font-size: 15px; }
.brand-header__actions { text-align: right; }
.brand-header__actions p, .brand-header__actions small { display: block; margin: 0; font-size: 13px; }
.brand-header__actions > div { display: flex; justify-content: flex-end; gap: 8px; margin: 8px 0 4px; }
.brand-header__actions a { min-height: 40px; padding: 8px 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--blue); border-radius: 3px; font-weight: 700; font-size: 13px; text-decoration: none; }
.brand-nav { background: #8a0002; border-top: 1px solid #ececec; color: #fff; }
.brand-nav__inner { width: min(1260px, calc(100% - 32px)); margin: auto; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.brand-nav a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 6px; color: #fff; border-left: 1px solid #ececec; font-size: 15px; font-weight: 500; line-height: 1.35; text-align: center; text-decoration: none; }
.brand-nav a:last-child { border-right: 1px solid #ececec; }
.brand-nav a:hover { color: #fff; background: #700002; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: inherit; }
.hero { display: grid; gap: 28px; justify-items: center; padding-block: 38px 34px; text-align: center; }
.hero > * { min-width: 0; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(34px, 3.2vw, 46px); line-height: 1.2; letter-spacing: -0.035em; }
h2 { margin: 0; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.3; letter-spacing: -0.02em; }
h3 { margin: 0; font-size: 19px; line-height: 1.5; }
.hero__intro { width: min(1090px, 100%); }
.hero__lead { max-width: 920px; margin: 20px auto 0; color: var(--muted); font-size: 17px; }
.usage-limits { width: min(680px, 100%); padding: 16px 20px; background: #fff9e8; border: 1px solid #e6d9b7; border-radius: 6px; text-align: left; }
.usage-limits h2 { font-size: 17px; text-align: center; }
.usage-limits ul { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.usage-limits li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding-top: 6px; border-top: 1px solid #e7ddc6; font-size: 13px; }
.usage-limits li strong { color: var(--ink); }
.usage-limits li span { color: var(--muted); }
.dns-availability { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid #e7ddc6; color: var(--bad); font-size: 13px; font-weight: 700; text-align: center; }
.dns-availability.is-enabled { color: var(--ok); }
.privacy-card { width: min(780px, 100%); display: flex; align-items: flex-start; justify-content: center; gap: 12px; margin: 20px auto 0; color: var(--ink); text-align: left; }
.privacy-card__icon { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 2px; display: grid; place-items: center; background: #e9f7f1; color: var(--ok); font-weight: 900; }
.privacy-card strong { display: block; }
.privacy-card p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

.input-section { width: min(1090px, calc(100% - 40px)); padding-bottom: 76px; }
.results { padding-bottom: 76px; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 20px; }
.section-heading > a { font-weight: 700; }
.input-card { padding: 30px 34px 28px; background: #fff; border: 1px solid #d6d3cd; border-radius: var(--radius); box-shadow: none; }
textarea { display: block; width: 100%; min-height: 310px; resize: vertical; padding: 18px; border: 1px solid #cac8c3; border-radius: 4px; color: var(--ink); background: #fff; font-size: 14px; line-height: 1.55; }
textarea::placeholder { color: #888b91; }
.input-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.input-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.button { min-height: 46px; border: 0; border-radius: 4px; padding: 10px 20px; cursor: pointer; font-weight: 800; }
.button--quiet { color: var(--ink); background: #f2f0ed; border: 1px solid var(--border); }
.button--quiet:hover { background: #e8e5e1; }
.button--primary { min-width: 306px; color: #fff; background: var(--brand); font-size: 16px; box-shadow: none; }
.button--primary:hover { background: var(--brand-dark); }
.input-section > .form-message { text-align: center; }
.form-message { min-height: 1.6em; margin: 10px 0 0; color: var(--bad); font-size: 14px; }

.result-note { margin: 0; color: var(--muted); font-size: 14px; }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.status-card { min-height: 132px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.status-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.status-card h3 { font-size: 18px; }
.status-card__value { margin: 20px 0 0; font-size: 30px; line-height: 1; font-weight: 900; text-transform: lowercase; }
.status-card__detail { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.status-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 8px; border-radius: 3px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.status-badge--ok { color: #086a46; background: #e6f6ef; }
.status-badge--bad { color: #a72a21; background: #fdebe9; }
.status-badge--review { color: #8a5100; background: #fff2dc; }
.status-badge--unknown { color: #565b63; background: #eef0f2; }

.result-section { padding-top: 26px; }
.result-section + .result-section { margin-top: 34px; border-top: 1px solid var(--border); }
.result-section__title { margin-bottom: 16px; font-size: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.detail-card { min-width: 0; padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.detail-card--wide { grid-column: 1 / -1; }
.detail-card h3 { margin-bottom: 18px; font-size: 19px; }
.detail-card dl { margin: 0; }
.detail-card dl > div { display: grid; grid-template-columns: minmax(115px, 0.45fr) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid #eeece8; }
.detail-card dt { color: var(--muted); font-size: 13px; }
.detail-card dd { min-width: 0; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.card-intro { margin: -10px 0 18px; color: var(--muted); font-size: 14px; }
.dns-card { display: flex; justify-content: space-between; gap: 20px; align-items: center; background: #f7f8fa; }
.dns-card h3 { margin: 0 0 5px; }
.dns-card p { margin-bottom: 0; color: var(--muted); }
.finding-list, .check-list { display: grid; gap: 10px; }
.finding { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid #eeece8; }
.finding p { margin: 0; font-size: 14px; }
.finding strong { display: block; margin-bottom: 2px; }
.auth-record { padding: 16px; border: 1px solid var(--border); border-radius: 4px; }
.auth-record + .auth-record { margin-top: 10px; }
.auth-record__heading { display: flex; justify-content: space-between; gap: 12px; }
.auth-record code, .signature code { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.method-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.method-chips span { padding: 3px 7px; border-radius: 3px; background: #f0f1f2; font-family: ui-monospace, monospace; font-size: 13px; }
.signature { padding: 13px 0; border-top: 1px solid #eeece8; }
.signature p { margin: 3px 0; font-size: 13px; overflow-wrap: anywhere; }
.metric-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.metric { min-width: 130px; padding: 12px 14px; border-radius: 4px; background: #f5f4f1; }
.metric strong { display: block; font-size: 22px; }
.metric span { color: var(--muted); font-size: 13px; }
.timeline { margin: 0; padding: 0; list-style: none; counter-reset: route; }
.timeline li { position: relative; margin-left: 13px; padding: 0 0 22px 30px; border-left: 2px solid #e2dfda; counter-increment: route; }
.timeline li::before { content: counter(route); position: absolute; left: -14px; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 3px; color: #fff; background: var(--brand); font-size: 13px; font-weight: 800; }
.timeline li:last-child { padding-bottom: 0; }
.timeline p { margin: 2px 0; font-size: 13px; overflow-wrap: anywhere; }
.timeline strong { display: block; }
.raw-card__heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.raw-card__heading p { margin: -10px 0 18px; color: var(--muted); font-size: 13px; }
.raw-card__heading label { white-space: nowrap; font-size: 13px; }
pre { max-height: 520px; overflow: auto; margin: 0 0 18px; padding: 18px; color: #e8edf2; background: #15191d; border-radius: 4px; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }

.guide-section { padding-block: 76px; }
.guide-lead { max-width: 780px; margin: 18px 0 30px; color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.guide-grid article { padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.guide-grid article > span { color: var(--brand); font-weight: 900; }
.guide-grid h3 { margin: 6px 0 16px; }
.guide-grid ol { margin: 0; padding-left: 1.4em; color: var(--muted); }
.scope-section { padding-block: 68px; color: #000; background: #f1f1f1; }
.scope-section > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.scope-grid { display: grid; gap: 14px; }
.scope-grid p { margin: 0; color: #000; }
.scope-grid strong { display: block; margin-bottom: 4px; color: #000; }
footer { padding-block: 35px; background: #fff; border-top: 1px solid var(--border); }
footer .page-shell { display: flex; align-items: center; gap: 24px; }
footer img { width: 230px; height: auto; }
footer p { margin: 0; color: var(--muted); font-size: 13px; }
.noscript { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px; color: #fff; background: #9b2d22; text-align: center; }

@media (max-width: 1000px) {
  .brand-header__inner { grid-template-columns: 260px 1fr; min-height: 96px; }
  .brand-header__message { display: none; }
  .brand-nav__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-nav a { border-bottom: 1px solid #ececec; }
  .hero { gap: 28px; padding-top: 32px; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .page-shell { width: min(100% - 24px, 1200px); }
  .brand-header__inner { width: calc(100% - 24px); grid-template-columns: 1fr; gap: 8px; padding-block: 14px; }
  .brand-header__logo { width: 250px; }
  .brand-header__actions { text-align: left; }
  .brand-header__actions p, .brand-header__actions small { display: none; }
  .brand-header__actions > div { justify-content: flex-start; margin: 0; }
  .brand-header__actions a { min-height: 44px; font-size: 13px; }
  .brand-nav__inner { width: 100%; display: flex; overflow-x: auto; scrollbar-width: thin; }
  .brand-nav a { flex: 0 0 auto; min-width: 132px; padding-inline: 12px; }
  .breadcrumb { padding-top: 16px; }
  .hero { padding-block: 26px 34px; }
  h1 { font-size: clamp(26px, 8vw, 42px); }
  .hero__lead { font-size: 16px; }
  .usage-limits li { grid-template-columns: 1fr; gap: 1px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  textarea { min-height: 280px; }
  .input-meta { align-items: stretch; flex-direction: column; gap: 2px; }
  .input-actions { align-items: stretch; flex-direction: column-reverse; }
  .button--primary { width: 100%; min-width: 0; }
  .status-grid, .card-grid, .guide-grid { grid-template-columns: 1fr; }
  .detail-card--wide { grid-column: auto; }
  .dns-card, .raw-card__heading { align-items: flex-start; flex-direction: column; }
  .scope-section > div { grid-template-columns: 1fr; gap: 28px; }
  footer .page-shell { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
  .brand-header__actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .brand-header__actions a { padding-inline: 8px; text-align: center; line-height: 1.35; }
  .usage-limits, .input-card, .detail-card, .guide-grid article { padding: 18px; }
  .privacy-card { align-items: center; }
  .status-grid { grid-template-columns: 1fr; }
}

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