:root {
  --ink: #101820;
  --paper: #f3efe6;
  --line: rgba(16, 24, 32, 0.14);
  --teal: #0e6b66;
  --teal-deep: #0a4e4a;
  --muted: #465159;
  --max: 1120px;
  --serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 2;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  top: 8px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 230, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand a {
  color: inherit;
  text-decoration: none;
}

.header-ad {
  width: min(720px, 100%);
  margin-left: auto;
}

.header-ad .books-banner {
  width: 100%;
  margin-left: 0;
}

.ad-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.header-ad .ad-label {
  text-align: right;
}

ins.adsbygoogle {
  display: block;
  margin: 32px auto;
  max-width: 100%;
  overflow: hidden;
}

.section {
  padding: 48px 0 72px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
  color: var(--muted);
  font-size: 0.92rem;
}

.associate-note {
  border-top: 1px solid var(--line);
  padding: 22px 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.associate-note p {
  margin: 10px 0 0;
}

.books-banner {
  display: block;
  width: min(720px, 100%);
  margin-left: auto;
  line-height: 0;
}

.books-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.osechi-banner {
  display: block;
  width: 300px;
  max-width: 100%;
  margin: 0;
  line-height: 0;
}

.osechi-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.breadcrumb {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--teal-deep);
}

.breadcrumb [aria-hidden="true"] {
  margin: 0 0.4em;
}

.privacy-body h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

.privacy-body h2 {
  margin: 28px 0 8px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.privacy-body ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.section-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

.section-lead {
  margin: 12px 0 0;
  color: var(--muted);
}

.function-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  margin-top: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.function-board > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.function-list,
.function-detail {
  min-height: 320px;
  padding: 22px 22px 28px;
}

.function-list {
  border-right: 1px solid var(--line);
  background: rgba(16, 24, 32, 0.03);
}

.pane-label {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.function-choice {
  display: block;
  margin: 0 0 12px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}

.function-choice.is-sub {
  margin-top: 8px;
  margin-right: 0;
  margin-left: auto;
  width: calc(100% - 56px);
}

.function-choice.is-long {
  padding: 18px 8px;
  font-size: 0.95rem;
}

.function-board:has(#fn-dns:checked) label[for="fn-dns"],
.function-board:has(#fn-dig:checked) label[for="fn-dig"],
.function-board:has(#fn-nslookup:checked) label[for="fn-nslookup"],
.function-board:has(#fn-port:checked) label[for="fn-port"],
.function-board:has(#fn-rdap:checked) label[for="fn-rdap"],
.function-board:has(#fn-trace:checked) label[for="fn-trace"],
.function-board:has(#fn-mail:checked) label[for="fn-mail"],
.function-board:has(#fn-ssl:checked) label[for="fn-ssl"],
.function-board:has(#fn-dkim:checked) label[for="fn-dkim"],
.function-board:has(#fn-spf:checked) label[for="fn-spf"],
.function-board:has(#fn-filetomove:checked) label[for="fn-filetomove"],
.function-board:has(#fn-homepage:checked) label[for="fn-homepage"],
.function-choice:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
  box-shadow: inset 3px 0 0 var(--teal);
}

.function-board:has(#fn-dns:focus-visible) label[for="fn-dns"],
.function-board:has(#fn-dig:focus-visible) label[for="fn-dig"],
.function-board:has(#fn-nslookup:focus-visible) label[for="fn-nslookup"],
.function-board:has(#fn-port:focus-visible) label[for="fn-port"],
.function-board:has(#fn-rdap:focus-visible) label[for="fn-rdap"],
.function-board:has(#fn-trace:focus-visible) label[for="fn-trace"],
.function-board:has(#fn-mail:focus-visible) label[for="fn-mail"],
.function-board:has(#fn-ssl:focus-visible) label[for="fn-ssl"],
.function-board:has(#fn-dkim:focus-visible) label[for="fn-dkim"],
.function-board:has(#fn-spf:focus-visible) label[for="fn-spf"],
.function-board:has(#fn-filetomove:focus-visible) label[for="fn-filetomove"],
.function-board:has(#fn-homepage:focus-visible) label[for="fn-homepage"] {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.function-detail a {
  color: var(--teal-deep);
}

.home-links {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.home-links li + li {
  margin-top: 8px;
}

.home-links a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.home-links a:hover {
  border-color: var(--teal);
  box-shadow: inset 3px 0 0 var(--teal);
}

.home-link-label {
  display: block;
  color: var(--teal-deep);
  font-weight: 700;
}

.home-link-summary {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.7;
}

.home-link-url {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.home-link-groups .home-links {
  margin-top: 0;
}

.function-detail h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
}

.function-detail article {
  display: none;
}

.function-board:has(#fn-dns:checked) article[data-function="dns"],
.function-board:has(#fn-dig:checked) article[data-function="dig"],
.function-board:has(#fn-nslookup:checked) article[data-function="nslookup"],
.function-board:has(#fn-port:checked) article[data-function="port"],
.function-board:has(#fn-rdap:checked) article[data-function="rdap"],
.function-board:has(#fn-trace:checked) article[data-function="trace"],
.function-board:has(#fn-mail:checked) article[data-function="mail"],
.function-board:has(#fn-ssl:checked) article[data-function="ssl"],
.function-board:has(#fn-dkim:checked) article[data-function="dkim"],
.function-board:has(#fn-spf:checked) article[data-function="spf"],
.function-board:has(#fn-filetomove:checked) article[data-function="filetomove"],
.function-board:has(#fn-homepage:checked) article[data-function="homepage"] {
  display: block;
}

.function-detail article p:last-child {
  margin-bottom: 0;
}

.check-form {
  margin-top: 18px;
}

.check-form .field-label,
.check-agree {
  display: block;
  margin: 14px 0 6px;
}

.check-form .field-label {
  font-size: 0.92rem;
  font-weight: 700;
}

.check-form input[type="text"],
.check-form input[type="file"],
.check-form select,
.check-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  font: inherit;
}

.check-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.filetomove-cc {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filetomove-cc input[type="text"] {
  flex: 1;
  min-width: 0;
}

.filetomove-cc label {
  flex: 0 0 auto;
  font-size: 0.92rem;
}

.check-line {
  display: flex;
  gap: 12px;
}

.check-line > div:first-child {
  width: 8rem;
  flex: 0 0 auto;
}

.check-line > div:last-child {
  flex: 1 1 auto;
}

.check-agree {
  font-size: 0.92rem;
}

.check-agree input {
  margin-right: 6px;
}

.check-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.check-actions button {
  padding: 10px 16px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.check-actions button:disabled {
  border-color: #c5c5c5;
  background: #c5c5c5;
  color: #fff;
  cursor: default;
}

.check-actions button.secondary {
  background: #fff;
  color: var(--teal-deep);
}

.check-error,
.check-notice {
  margin: 0 0 12px;
}

.check-error {
  color: #8a2e2e;
}

.check-notice {
  color: var(--muted);
}

.check-pending {
  margin: 18px 0 0;
  font-weight: 700;
}

.check-result {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.check-result dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.check-result dd {
  margin: 0 0 10px;
}

.check-result dd:last-child {
  margin-bottom: 0;
}

.check-answers {
  margin: 0;
  padding-left: 1.2em;
}

.check-output {
  margin: 0;
  white-space: pre-wrap;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.45;
}

.home-link-groups h3,
.spf-tool h3,
.dkim-tool h3,
.ssl-sample h3 {
  margin: 22px 0 8px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.spf-tool .check-output,
.dkim-tool .check-output,
.ssl-sample .check-output {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.spf-result,
.dkim-result {
  padding: 0;
  border: 0;
  background: transparent;
}

.spf-tool .check-output,
.dkim-tool .check-output {
  overflow-wrap: anywhere;
}

.ssl-meanings {
  margin: 12px 0 0;
}

.ssl-meanings dt {
  margin-top: 10px;
  font-weight: 700;
}

.ssl-meanings dd {
  margin: 2px 0 0;
}

.ssl-meanings dd p {
  margin: 0 0 8px;
}

.ssl-meanings dd p:last-child {
  margin-bottom: 0;
}

.rdap-status {
  margin: 18px 0 12px;
  font-weight: 700;
}

.rdap-sheet {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.rdap-sheet > div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 8px 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.rdap-sheet > div:last-child {
  border-bottom: 0;
}

.rdap-sheet dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.rdap-sheet dd {
  margin: 0;
}

.rdap-sheet ul {
  margin: 0;
  padding-left: 1.2em;
}

.rdap-raw {
  margin-top: 14px;
}

.rdap-raw summary {
  cursor: pointer;
  color: var(--teal-deep);
}

.rdap-raw p {
  margin: 12px 0;
}

.rdap-raw .check-output {
  max-height: 280px;
  overflow: auto;
}

@media (max-width: 800px) {
  .header-inner {
    align-items: flex-end;
    flex-direction: column;
  }

  .function-board {
    grid-template-columns: 1fr;
  }

  .function-list,
  .function-detail {
    min-height: 0;
  }

  .function-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rdap-sheet > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media print {
  .function-board > input {
    display: none;
  }

  .function-detail article {
    display: block;
    margin-bottom: 24px;
  }
}
