:root {
  color-scheme: light;
  --ink: #233a50;
  --muted: #546b7f;
  --blue: #1b5c91;
  --pale: #edf5fc;
  --line: #d8e5ef;
  --width: 1080px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #2879b5; outline-offset: 5px; border-radius: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.5; font-weight: 700; letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.container { width: min(var(--width), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: -100px; left: 16px; background: white; padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); font-size: 1.3rem; font-weight: 700; text-decoration: none; white-space: nowrap; letter-spacing: .015em; }
.brand span { color: var(--blue); font-weight: 500; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font-size: .88rem; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { text-decoration: underline; }
.eyebrow { color: var(--blue); font-size: .72rem; font-weight: 700; letter-spacing: .17em; margin-bottom: 8px; }
.hero { text-align: center; padding-top: 48px; }
.app-name-en { color: var(--muted); font-size: .98rem; letter-spacing: .08em; margin-top: 2px; margin-bottom: 28px; }
.hero-image { width: 100%; border-radius: 18px; }
.hero-description { font-size: clamp(1.02rem, 2.2vw, 1.2rem); margin: 30px auto 0; max-width: 700px; line-height: 1.95; }
.about-section { display: grid; grid-template-columns: 240px 1fr; gap: 54px; align-items: center; max-width: 930px; margin: 76px auto 0; scroll-margin-top: 24px; }
.app-image-wrap { padding: 5px; }
.app-image { width: 100%; border-radius: 22px; }
.about-section h2 { margin-bottom: 18px; }
.about-section p:not(.eyebrow) { color: var(--muted); }
.features-section { margin-top: 72px; }
.section-heading { margin-bottom: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 44px; }
.feature { border-top: 1px solid var(--line); padding: 20px 0 10px; }
.feature-number { display: block; color: #6687a1; font-size: .8rem; letter-spacing: .09em; margin-bottom: 5px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); }
.privacy-panel { margin-top: 62px; padding: 30px 32px; background: var(--pale); border-radius: 16px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.privacy-panel h2 { font-size: 1.4rem; margin-bottom: 10px; }
.privacy-panel p:not(.eyebrow) { color: var(--muted); }
.button-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; background: white; border: 1px solid #9bbbd3; border-radius: 8px; text-decoration: none; font-size: .9rem; font-weight: 600; flex-shrink: 0; }
.button-link:hover { background: #f8fbfe; }
.contact-section { margin-block: 64px 68px; }
.contact-section h2 { margin-bottom: 12px; }
.contact-section p { color: var(--muted); }
.email-link { display: inline-block; padding-block: 8px; font-size: 1.08rem; font-weight: 600; }
.developer-note { font-size: .88rem; margin-top: 20px; }
.site-footer { border-top: 1px solid var(--line); background: #f7fafd; }
.footer-inner { min-height: 80px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: .8rem; padding-block: 18px; }
.footer-inner small { color: var(--muted); font-size: inherit; margin-right: auto; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 40px; }
.policy-container { max-width: 860px; }
.policy-heading { padding-block: 48px 26px; }
.policy-heading h1 { font-size: clamp(1.65rem, 4vw, 2.3rem); margin-bottom: 22px; }
.policy-heading > p:not(.eyebrow) { color: var(--muted); }
.policy-date { font-size: .88rem; margin-top: 18px; }
.policy-contents { padding: 24px 28px; border: 1px solid var(--line); border-radius: 12px; background: #f7fafd; }
.policy-contents h2 { font-size: 1.1rem; margin-bottom: 12px; }
.policy-contents ol { margin: 0; padding-left: 1.5em; columns: 2; column-gap: 42px; font-size: .9rem; }
.policy-contents li { break-inside: avoid; padding-block: 5px; }
.policy-section { padding-block: 34px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.policy-section h2 { font-size: clamp(1.2rem, 2.5vw, 1.4rem); margin-bottom: 16px; }
.policy-section p { line-height: 1.95; }
.policy-section ul { padding-left: 1.5em; margin-block: 12px 20px; }
.policy-section li { padding-bottom: 4px; }
.policy-note { padding: 14px 18px; background: var(--pale); border-left: 3px solid #94b9d4; border-radius: 0 6px 6px 0; font-size: .94rem; }
.policy-contact dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 24px; margin: 0; }
.policy-contact dt { color: var(--muted); }
.policy-contact dd { margin: 0; }
.back-link { display: inline-flex; align-items: center; min-height: 48px; margin-block: 28px 44px; }
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 0; padding-block: 16px 10px; }
  .site-header nav { width: 100%; gap: 4px 22px; }
  .about-section { grid-template-columns: 190px 1fr; gap: 32px; }
  .privacy-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 36px); }
  .header-inner { padding-block: 14px 8px; }
  .brand { font-size: 1.16rem; }
  .site-header nav { gap: 0 15px; font-size: .76rem; }
  .hero { padding-top: 30px; }
  .app-name-en { margin-bottom: 20px; font-size: .88rem; }
  .hero-image { border-radius: 10px; }
  .hero-description { margin-top: 22px; text-align: left; }
  .desktop-break { display: none; }
  .about-section { grid-template-columns: 1fr; gap: 22px; margin-top: 44px; }
  .app-image-wrap { width: 172px; padding: 0; }
  .about-section h2 { margin-bottom: 14px; }
  .features-section { margin-top: 44px; }
  .section-heading { margin-bottom: 16px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature { padding-top: 16px; }
  .privacy-panel { margin-top: 36px; padding: 23px 20px; gap: 18px; border-radius: 12px; }
  .button-link { width: 100%; padding-inline: 12px; }
  .contact-section { margin-block: 38px 44px; }
  .email-link { font-size: .97rem; }
  .footer-inner { gap: 0 18px; }
  .footer-inner small { width: 100%; }
  .policy-heading { padding-block: 30px 20px; }
  .policy-contents { padding: 20px; }
  .policy-contents ol { columns: 1; }
  .policy-section { padding-block: 28px; }
  .policy-contact dl { grid-template-columns: 1fr; gap: 2px; }
  .policy-contact dd { margin-bottom: 10px; }
}
@media print {
  .site-header, .site-footer, .skip-link, .back-link { display: none; }
  .container { width: 100%; }
  .policy-heading { padding-top: 0; }
  .policy-section { break-inside: avoid; }
  a { color: inherit; }
}

/* Official guide expansion: keep the existing palette, artwork and typography. */
button { font: inherit; }
button:focus-visible, summary:focus-visible { outline: 3px solid #2879b5; outline-offset: 4px; }
.site-header nav { gap: 4px 18px; }
.hero-links { display: flex; justify-content: center; gap: 8px 30px; flex-wrap: wrap; margin-top: 14px; }
.hero-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: .93rem; }
.medical-note { border-left: 3px solid #94b9d4; padding-left: 16px; font-size: .94rem; }
.versions-section, .web-section, .camera-section { margin-top: 64px; scroll-margin-top: 24px; }
.section-heading > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); max-width: 760px; }
.version-grid, .info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.version-card { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: #f7fafd; display: flex; flex-direction: column; }
.version-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 16px; }
.release-status { border: 1px solid #ccdce8; background: #fff; padding: 1px 9px; border-radius: 5px; font-size: .76rem; color: var(--muted); }
.release-status.is-live { color: var(--blue); }
.version-card > p:not(.small-note) { color: var(--muted); flex-grow: 1; }
.version-card .button-link { width: 100%; }
.button-link:disabled { color: #546b7f; background: #eef2f6; border-color: #c9d7e2; cursor: default; opacity: 1; }
.small-note { font-size: .9rem; color: var(--muted); margin-top: 12px; }
.info-grid { margin-block: 24px; }
.info-card { background: #f7fafd; border-top: 2px solid #c7deef; padding: 20px 22px; }
.info-card h3 { font-size: 1.06rem; margin-bottom: 12px; }
.info-card p { color: var(--muted); }
.web-section > p, .camera-section > p { max-width: 920px; }
.data-section { margin-top: 56px; padding: 32px; background: var(--pale); border-radius: 16px; scroll-margin-top: 24px; }
.data-section h2 { margin-bottom: 18px; }
.data-section .button-link { margin-top: 8px; }
.plain-list { padding-left: 1.3em; margin-bottom: 22px; }
.plain-list li { padding-bottom: 8px; }
.policy-section h3 { font-size: 1.08rem; margin-block: 26px 12px; }
.steps { padding-left: 1.4em; margin-block: 16px 24px; }
.steps li { padding-block: 5px; padding-left: 4px; }
.faq-list { margin-bottom: 30px; }
.faq-item { border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { min-height: 60px; padding: 18px 10px 18px 6px; font-weight: 600; cursor: pointer; line-height: 1.6; }
.faq-item summary::marker, .license-item summary::marker { color: var(--blue); }
.faq-answer { padding: 0 16px 22px 26px; color: var(--muted); }
.license-item { border: 1px solid var(--line); border-radius: 8px; margin-top: 12px; }
.license-item summary { padding: 14px 16px; cursor: pointer; min-height: 48px; }
.license-item summary span { font-weight: 600; }
.license-item summary small { display: block; margin-left: 16px; color: var(--muted); }
.license-item pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; line-height: 1.65; margin: 0; padding: 18px; border-top: 1px solid var(--line); font-family: ui-monospace, Consolas, monospace; }
[hidden] { display: none !important; }
@media (max-width: 900px) { .site-header nav { gap: 0 20px; } }
@media (max-width: 620px) {
  .brand { white-space: normal; max-width: 100%; }
  .site-header nav { font-size: .83rem; gap: 0 18px; }
  .hero-links { justify-content: flex-start; gap: 0 20px; }
  .versions-section, .web-section, .camera-section { margin-top: 42px; }
  .version-grid, .info-grid { grid-template-columns: 1fr; gap: 18px; }
  .version-card { padding: 22px 20px; }
  .data-section { margin-top: 36px; padding: 23px 20px; }
  .info-card { padding: 18px 20px; }
  .faq-answer { padding: 0 8px 20px 20px; }
  .policy-contents a { display: inline-block; min-height: 36px; }
  .license-item summary { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .versions-section button, .hero-links { display: none; } .faq-item, .license-item { break-inside: avoid; } }

/* Android screen previews: scoped to the home-page screenshot section. */
.screenshots-section { margin-top: 64px; scroll-margin-top: 24px; }
.screenshot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-inline: auto; }
.screenshot-card { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f7fafd; }
.screenshot-link { display: block; width: 190px; max-width: 100%; margin-inline: auto; cursor: zoom-in; }
.screenshot-card img { width: 100%; height: auto; margin-inline: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 14px rgba(35, 58, 80, .06); }
.screenshot-card figcaption { margin-top: 14px; text-align: center; font-size: 1.06rem; font-weight: 600; }
@media (max-width: 1000px) {
  .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
}
@media (max-width: 760px) {
  .screenshot-grid { grid-template-columns: 1fr; }
  .screenshot-link { width: 50%; max-width: 190px; }
}
@media (max-width: 620px) {
  .screenshots-section { margin-top: 42px; }
  .screenshot-grid { gap: 18px; }
  .screenshot-card { padding: 12px; }
}

.screenshot-dialog { width: fit-content; max-width: calc(100% - 32px); max-height: calc(100% - 32px); padding: 20px; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.screenshot-dialog::backdrop { background: rgba(35, 58, 80, .55); }
.screenshot-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.screenshot-dialog-heading h3 { font-size: 1.1rem; }
.screenshot-dialog-heading form { margin: 0; }
.screenshot-close { min-height: 44px; padding: 8px 12px; color: var(--blue); border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.screenshot-dialog img { width: auto; height: auto; max-width: min(380px, 100%); max-height: calc(100dvh - 150px); margin-inline: auto; border: 1px solid var(--line); border-radius: 10px; }
