:root {
  color-scheme: light;
  --page: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f0f4f8;
  --text: #10233f;
  --muted: #5e6b7a;
  --navy: #061b49;
  --blue: #006fc7;
  --cyan: #00aeef;
  --border: #d8e2ec;
  --border-strong: #bac8d8;
  --link: #005aa3;
  --max: 1200px;
  --standard: 960px;
  --reading: 760px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font-size: 16px; line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
button, summary { font: inherit; }
code, .integrity-value { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 12px; background: var(--navy); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.container, .container-standard, .container-reading { width: min(100% - 64px, var(--max)); margin-inline: auto; }
.container-standard { max-width: var(--standard); }
.container-reading { max-width: var(--reading); }
.site-header { position: sticky; top: 0; z-index: 50; height: 64px; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { display: block; width: auto; height: 34px; }
.header-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.header-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.header-nav a[aria-current="page"] { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-menu { position: relative; }
.language-menu summary { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; list-style: none; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-options { position: absolute; right: 0; top: calc(100% + 8px); width: 220px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 28px rgba(6,27,73,.12); }
.language-options a { display: block; min-height: 40px; padding: 7px 10px; color: var(--text); text-decoration: none; border-radius: 6px; }
.language-options a:hover, .language-options a[aria-current="true"] { background: var(--surface-2); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; }
.mobile-panel { display: none; background: var(--surface); border-bottom: 1px solid var(--border); }
.mobile-panel nav { width: min(100% - 40px, var(--max)); margin-inline: auto; padding: 12px 0 20px; }
.mobile-panel a { display: block; min-height: 44px; padding: 9px 0; color: var(--text); text-decoration: none; }
main { min-height: 58vh; }
.section { padding: 88px 0; background: var(--surface); }
.section-alt { background: var(--page); }
.section-compact { padding: 56px 0; }
.hero, .page-head, .product-hero { padding: 88px 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.hero-grid, .product-hero-grid, .portal-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); align-items: center; gap: 64px; }
.portal { padding: 96px 0; background: var(--surface); }
.portal-logo { max-width: 360px; justify-self: end; }
.product-icon { width: 120px; height: 120px; object-fit: contain; justify-self: center; }
.eyebrow { color: var(--blue); font-size: 14px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
h1, h2, h3 { margin: 0 0 16px; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 700; }
.hero h1, .portal h1 { font-size: clamp(2.25rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.75rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 18px; }
.lede { max-width: 720px; color: var(--muted); font-size: 18px; }
.section-heading { max-width: 760px; margin-bottom: 32px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.card-accent { border-left: 4px solid var(--blue); }
.card-link { display: block; color: inherit; text-decoration: none; transition: box-shadow 150ms ease, transform 150ms ease; }
.card-link:hover { text-decoration: none; box-shadow: 0 8px 20px rgba(6,27,73,.08); transform: translateY(-2px); }
.card p:last-child { margin-bottom: 0; }
.app-card { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 20px; align-items: start; }
.app-icon { width: 72px; height: 72px; object-fit: contain; }
.status-row, .button-row, .hero-actions, .link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 14px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 20px; border: 1px solid transparent; border-radius: 8px; font-weight: 600; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #0060a8; }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { background: #eef6fc; }
.btn-danger { background: #8a2530; color: #fff; }
.btn-danger:hover { background: #701d27; }
.btn-disabled { cursor: not-allowed; opacity: .64; }
.text-link { font-weight: 600; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 22px; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; counter-reset: step; }
.step { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; counter-increment: step; }
.step::before { content: counter(step); display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; margin-bottom: 14px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 650; }
.connection-diagram { margin-top: 28px; padding: 24px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px; text-align: center; }
.connection-diagram code { display: inline-block; margin: 5px 8px; }
.notice { padding: 20px 24px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px; }
.notice strong { display: block; margin-bottom: 6px; }
.download-card dl, .metadata-list { display: grid; grid-template-columns: minmax(130px,.35fr) minmax(0,1fr); gap: 8px 18px; margin: 0; }
.download-card dt, .metadata-list dt { color: var(--muted); }
.download-card dd, .metadata-list dd { margin: 0; }
.legal-document { padding: 64px 0 88px; background: var(--surface); }
.legal-content { max-width: var(--reading); margin-inline: auto; }
.legal-content h1 { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.legal-content h2 { margin-top: 42px; font-size: 1.45rem; }
.legal-content h3 { margin-top: 30px; }
.legal-content p, .legal-content li { line-height: 1.8; }
.legal-content a { text-decoration: underline; }
.legal-content hr { margin: 28px 0; border: 0; border-top: 1px solid var(--border); }
.legal-content ol, .legal-content ul { padding-left: 1.5em; }
.purchase-app { max-width: var(--standard); }
.purchase-panel { max-width: 720px; }
.purchase-grid { align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.purchase-app label { display: grid; gap: 7px; color: var(--muted); font-weight: 600; }
.purchase-app input { width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.purchase-app input:focus { border-color: var(--blue); outline: 2px solid rgba(0,174,239,.2); outline-offset: 1px; }
.purchase-message { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #9bc9a8; border-radius: 8px; background: #edf8f0; }
.purchase-message.is-error { border-color: #d8a6aa; background: #fff2f3; color: #701d27; }
.purchase-count { color: var(--muted); font-weight: 650; }
.purchase-device { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.purchase-device strong, .purchase-device span { display: block; }
.purchase-device span { color: var(--muted); font-size: 14px; }
.purchase-sign-out { margin-top: 24px; }
[hidden] { display: none !important; }
.site-footer { padding: 56px 0 24px; background: var(--navy); color: #eaf2fb; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, minmax(0,1fr)); gap: 32px; }
.footer-logo { width: 190px; }
.site-footer h2 { margin-bottom: 12px; color: #fff; font-size: 16px; }
.site-footer a { display: block; margin: 6px 0; color: #eaf2fb; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); font-size: 14px; }
@media (max-width: 899px) {
  .container, .container-standard, .container-reading { width: min(100% - 48px, var(--max)); }
  .header-nav { display: none; }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-panel.is-open { display: block; }
  .hero-grid, .product-hero-grid, .portal-grid { grid-template-columns: 1fr; gap: 36px; }
  .portal-logo { max-width: 260px; justify-self: start; }
  .product-icon { justify-self: start; width: 96px; height: 96px; }
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 639px) {
  .site-header { height: 56px; }
  .container, .container-standard, .container-reading { width: min(100% - 40px, var(--max)); }
  .brand-logo { height: 29px; }
  .section { padding: 60px 0; }
  .hero, .page-head, .product-hero, .portal { padding: 64px 0; }
  .grid-2, .grid-3, .feature-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: 64px minmax(0,1fr); }
  .app-icon { width: 64px; height: 64px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .language-options { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
