:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #17202a;
  --muted: #667587;
  --paper: #f7f9fc;
  --panel: #ffffff;
  --accent: #2563eb;
  --line: #d8e0e9;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: #185ea8; text-underline-offset: 3px; }
.site-header, footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; gap: 22px; }
.site-header { min-height: 76px; border-bottom: 1px solid var(--line); }
.wordmark { margin-right: auto; color: #657587; font-size: 25px; font-weight: 850; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 18px; }
nav a { color: #3c4b5c; font-size: 14px; font-weight: 700; text-decoration: none; }
.app-link, .primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border-radius: 9px; background: var(--accent); color: white; font-weight: 800; text-decoration: none; }
main { width: min(820px, calc(100% - 32px)); margin: 0 auto; }
article { padding: 64px 0 72px; }
.article-header { max-width: 760px; }
h1 { margin: 0; font-size: clamp(40px, 7vw, 68px); line-height: 1.02; letter-spacing: -.045em; }
.dek { margin: 24px 0 14px; color: #415166; font-size: clamp(20px, 3vw, 25px); line-height: 1.5; }
.byline, figcaption { color: var(--muted); font-size: 14px; }
figure { width: min(var(--article-image-width, 740px), 100%); margin: 46px auto; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 18px 50px rgba(30, 48, 68, .12); }
figcaption { margin-top: 12px; line-height: 1.5; }
.install-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 32px 0 38px; }
.install-gallery figure { width: 100%; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; }
.install-gallery figure a { display: block; }
.install-gallery figure img { border: 0; border-radius: 0; box-shadow: none; }
.install-gallery figcaption { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 10px; margin: 0; padding: 14px; color: #405267; line-height: 1.45; }
.install-gallery figcaption span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: white; font-weight: 850; }
.install-gallery figcaption strong { padding-top: 4px; }
.article-body { max-width: 690px; }
.article-body h2, aside h2 { margin: 46px 0 14px; font-size: clamp(27px, 4vw, 36px); line-height: 1.15; letter-spacing: -.025em; }
.article-body p, .article-body li, aside p, aside li { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.7; }
.article-body p { margin: 0 0 20px; }
.article-body li { margin-bottom: 8px; }
.try-card { margin-top: 54px; padding: 4px 28px 30px; border: 1px solid #bfd2eb; border-radius: 14px; background: #eef5ff; }
.try-card h2 { margin-top: 24px; }
.related { margin-top: 48px; padding-top: 4px; border-top: 1px solid var(--line); }
.related ul { padding-left: 22px; }
.contact-page { min-height: calc(100vh - 176px); }
.contact-card { max-width: 690px; margin-top: 46px; padding: 4px 28px 30px; border: 1px solid #bfd2eb; border-radius: 14px; background: #eef5ff; }
.contact-card h2 { margin: 24px 0 14px; font-size: clamp(27px, 4vw, 36px); }
.contact-card p { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.7; }
.about-main { width: min(1120px, calc(100% - 32px)); padding: 64px 0 76px; }
.about-header { max-width: 820px; margin-bottom: 58px; }
.guide-group { margin-top: 52px; }
.guide-group > h2 { margin: 0 0 20px; font-size: clamp(27px, 4vw, 36px); line-height: 1.15; letter-spacing: -.025em; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-card { display: block; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); text-decoration: none; }
.guide-card:hover { border-color: #9db9dc; box-shadow: 0 12px 32px rgba(30, 48, 68, .09); }
.guide-card span { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.guide-card h3 { margin: 9px 0 10px; font-size: 24px; line-height: 1.2; }
.guide-card p { margin: 0; color: #526276; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.55; }
footer { min-height: 100px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer span { margin-right: auto; font-weight: 800; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; padding: 18px 0; }
  .site-header nav { order: 3; width: 100%; gap: 12px 18px; }
  .app-link { min-height: 38px; padding: 0 12px; }
  article { padding-top: 44px; }
  .about-main { padding-top: 44px; }
  .about-header { margin-bottom: 40px; }
  .guide-grid { grid-template-columns: 1fr; }
  figure { margin: 34px 0; }
  .install-gallery { display: grid; grid-auto-columns: minmax(225px, 78%); grid-auto-flow: column; grid-template-columns: none; gap: 12px; margin-right: -16px; padding: 2px 16px 16px 0; overflow-x: auto; scroll-snap-type: inline mandatory; }
  .install-gallery figure { scroll-snap-align: start; }
  footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  footer span { margin-right: 0; }
}
