:root {
  color-scheme: light;
  --paper: #edf1f6;
  --ink: #20252d;
  --muted: #4e5b69;
  --brick: #993b2b;
  --brick-dark: #75291f;
  --line: #c9d2df;
  --blue-gray: #dce5ef;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans", Meiryo, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--brick); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--brick); outline-offset: 5px; }

.wrap { width: min(100% - 4rem, 74rem); margin-inline: auto; }
.skip { position: absolute; z-index: 1; inset: .75rem auto auto .75rem; background: white; padding: .6rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.masthead, .masthead nav, .brand, .footer-end { display: flex; align-items: center; }
.masthead, .footer-end { justify-content: space-between; }
.masthead { min-height: 5.4rem; gap: 1rem; }
.masthead nav { gap: clamp(1rem, 2.8vw, 2.4rem); }
.brand { gap: .65rem; color: var(--ink); font-size: 1.26rem; font-weight: 800; white-space: nowrap; text-decoration: none; }
.brand img { border-radius: 27%; flex-shrink: 0; }
.nav-detail { font-size: .93rem; font-weight: 650; text-decoration: none; }
.nav-detail:hover { text-decoration: underline; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .62rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .3rem;
  font-weight: 750;
  text-decoration: none;
  text-align: center;
  transition: background-color .18s ease, transform .18s ease;
}
.button:active { transform: translateY(1px); }
.button-outline { border-color: #b9867b; }
.button-outline:hover { background: #f5e1db; }
.button-primary { background: var(--brick); color: white; padding-inline: 1.38rem; min-height: 3.35rem; }
.button-primary:hover { background: var(--brick-dark); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr); align-items: center; gap: clamp(2rem, 5vw, 5.35rem); padding-block: clamp(3rem, 6vw, 6rem); }
.eyebrow { display: inline-block; padding-bottom: .5rem; border-bottom: 1px solid #b9867b; color: var(--brick); font-size: .92rem; font-weight: 750; }
h1 { margin-block: 1rem 1.2rem; font-size: clamp(2.75rem, 6.2vw, 5.3rem); font-weight: 850; letter-spacing: -.085em; line-height: 1.18; }
h1 span { color: var(--brick); }
.lede { max-width: 25rem; color: var(--muted); font-size: 1.07rem; }
.hero-copy .button { margin-top: 1.55rem; }
.example { position: relative; min-width: 0; padding-right: 1.5rem; padding-bottom: 1.4rem; }
.example-photo { width: 100%; height: auto; aspect-ratio: 1.02; object-fit: cover; object-position: center 63%; border-radius: .35rem; background: var(--blue-gray); }
.example-result { position: absolute; right: 0; bottom: 0; min-width: 14.25rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brick); border-radius: .3rem; box-shadow: 0 8px 28px #20252d15; }
.example-area { display: flex; gap: .7rem; color: var(--muted); font-size: .86rem; font-weight: 650; }
.example-area span { border-left: 1px solid var(--line); padding-left: .7rem; }
.example-item { margin-top: .35rem; color: var(--muted); font-size: .94rem; }
.example-category { margin: -.16rem 0 .12rem; font-size: 1.68rem; font-weight: 800; letter-spacing: -.05em; }
.example-result a { font-size: .91rem; }

.guide { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(2.8rem, 5.4vw, 5rem); border-top: 1px solid var(--line); }
h2 { margin-bottom: .7rem; font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.3; font-weight: 810; letter-spacing: -.06em; }
.guide p, .rule-examples dd, .install p, .device-steps dd, .footer details p { color: var(--muted); }
.guide > div p, .install p { max-width: 24rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.steps h3, .rule-examples dt, .device-steps dt, .faq-answers h3 { margin-bottom: .25rem; font-size: 1.05rem; font-weight: 780; }
.rule-examples > div + div, .faq-answers > div + div { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.rule-examples dd + dd { margin-top: .35rem; }
.install { background: var(--blue-gray); }
.install-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(2.8rem, 5.4vw, 5rem); }
.install .button { margin-top: 1rem; }
.device-steps div + div { border-top: 1px solid #b3bfce; margin-top: .95rem; padding-top: .95rem; }
.footer { padding-block: 1.4rem; border-top: 1px solid var(--line); }
.footer details { margin-bottom: 1.35rem; padding: 0 0 1.25rem; border-bottom: 1px solid var(--line); }
.footer details p { max-width: 55rem; padding-top: .75rem; }
.footer summary { color: var(--brick); font-weight: 700; cursor: pointer; }
.footer-end { gap: .65rem; }
.footer-end .brand { font-size: 1rem; }
.credit { color: var(--muted); font-size: .82rem; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 2.4rem, 36rem); }
  .masthead { min-height: 4.4rem; }
  .masthead .button { min-height: 2.65rem; padding: .42rem .65rem; font-size: .88rem; }
  .nav-detail { display: none; }
  .hero, .guide, .install-inner { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; }
  h1 { margin-block: .8rem .9rem; font-size: clamp(2.7rem, 10.8vw, 4.25rem); }
  .example { padding-right: 0; padding-bottom: 0; }
  .example-photo { aspect-ratio: 1.22; object-position: center 67%; border-radius: .35rem .35rem 0 0; }
  .example-result { position: static; border-radius: 0 0 .35rem .35rem; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
