:root {
    color-scheme: light;
    --ink: #17243b;
    --muted: #6c7890;
    --soft: #f5f7fb;
    --line: #e3e8f1;
    --blue: #3768db;
    --blue-dark: #2855c1;
    --navy: #172b50;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: #fff;
    font-family: var(--sans);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
    min-height: 76px;
    padding: 0 max(24px, calc((100% - 1120px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #edf0f5;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, #466fe0, #344eb7);
    color: white;
    font-size: 19px;
    font-weight: 800;
    box-shadow: 0 4px 10px #3768db2b;
}
.brand-name { color: var(--navy); font-size: 14px; font-weight: 800; letter-spacing: 1.1px; }
.brand-name span { color: var(--blue); }
.portal-label { display: inline-flex; align-items: center; gap: 9px; color: #67748c; font-size: 12px; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #54b88b; }

main { width: min(100% - 40px, 1120px); margin: 0 auto; }
.hero { padding: 76px 0 48px; text-align: center; }
.eyebrow, .section-kicker {
    margin: 0;
    color: var(--blue);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.5px;
}
.hero h1 { margin: 14px 0 12px; color: var(--navy); font-size: clamp(38px, 6vw, 60px); line-height: 1.18; letter-spacing: -1.8px; }
.hero h1 span { color: var(--blue); }
.hero-copy { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 16px; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 8px 13px; border: 1px solid #e3e9f8; border-radius: 999px; background: #f7f9ff; color: #536582; font-size: 12px; }
.hero-note span { color: var(--blue); }

.devices { margin-top: 14px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 3px 0 0; color: var(--navy); font-size: 24px; letter-spacing: -.5px; }
.device-count { padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; color: #758198; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.device-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.device-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 18px #1c31520a;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.device-card:hover { transform: translateY(-2px); border-color: #cbd7f3; box-shadow: 0 10px 24px #1c31520f; }
.card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.device-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #eef3ff; color: #4269cc; font-size: 22px; font-weight: 700; }
.android .device-icon { background: #eff8f1; color: #399361; }
.windows .device-icon { background: #edf7ff; color: #3189c8; }
.ubuntu .device-icon { background: #fff2ed; color: #db6847; }
.platform-tag { color: #8a95a8; font-size: 9px; font-weight: 750; letter-spacing: 1px; }
.device-card h3 { margin: 0; color: var(--navy); font-size: 21px; }
.device-description { min-height: 25px; margin: 2px 0 16px; color: var(--muted); font-size: 12px; }
.card-divider { height: 1px; margin: 0 0 14px; background: var(--line); }
.device-card h4 { margin: 0 0 4px; color: #263754; font-size: 13px; }
.placeholder-copy { min-height: 42px; margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.download-button { width: 100%; min-height: 38px; border: 1px solid #e2e6ed; border-radius: 7px; background: #f5f6f8; color: #8791a2; font-size: 11px; font-weight: 650; }
button.download-button { cursor: not-allowed; }
a.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    text-decoration: none;
}
a.download-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
.instructions { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #edf0f4; }
.instruction-icon { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 6px; background: #f1f4fa; color: #657590; font-size: 15px; }
.instructions p { margin: 0; color: #8590a3; font-size: 10px; line-height: 1.6; }
.instructions strong { color: #40516d; font-size: 11px; font-weight: 650; }
.guide-card-link { color: inherit; text-decoration: none; }
.guide-card-link:hover strong { color: var(--blue); }
.link-arrow { margin-left: auto; color: #7383a0; font-size: 15px; transition: transform 160ms ease; }
.guide-card-link:hover .link-arrow { transform: translateX(3px); color: var(--blue); }
.guide-library { margin-top: 56px; scroll-margin-top: 24px; }
.guide-library-heading { margin-bottom: 14px; }
.guide-top-link { color: var(--blue); font-size: 11px; font-weight: 650; }

.cert-note {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: rgba(127, 127, 127, 0.12);
}
.cert-note h4 { margin: 0 0 0.4rem; }
.cert-note h4:not(:first-child) { margin-top: 1.25rem; }
.cert-note p { margin: 0 0 0.6rem; max-width: 40em; }
.cert-note .fingerprint {
    display: block;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85em;
    line-height: 1.6;
    user-select: all;
}

.security-note { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0 0; padding: 15px 17px; border: 1px solid #e5ebf6; border-radius: 10px; background: #f8faff; }
.note-icon { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 50%; background: #e8efff; color: var(--blue); font-size: 12px; font-weight: 750; }
.security-note p { margin: 0; color: #66748c; font-size: 11px; line-height: 1.7; }
.security-note strong { color: #354a6b; }
.contact-note { display: flex; align-items: flex-start; gap: 13px; margin-top: 14px; padding: 17px; border: 1px solid #dfe8fb; border-radius: 10px; background: #f6f9ff; }
.contact-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 8px; background: #e8efff; color: var(--blue); font-weight: 700; }
.contact-note h2 { margin: 0 0 4px; color: #354a6b; font-size: 13px; }
.contact-note p { margin: 0; color: #66748c; font-size: 11px; line-height: 1.7; }
.inline-link { color: var(--blue); font-weight: 650; text-decoration: underline; text-decoration-color: #b8c8ef; text-underline-offset: 2px; }
.inline-link:hover { color: var(--blue-dark); text-decoration-color: currentColor; }
.contact-handle { padding: 1px 5px; border: 1px solid #e3e8f1; border-radius: 4px; background: #fff; color: #40516d; font-size: .95em; }
.site-footer { width: min(100% - 40px, 1120px); min-height: 88px; margin: 62px auto 0; padding: 19px 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #edf0f5; }
.footer-brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 15px; }
.footer-brand .brand-name { font-size: 11px; }
.site-footer p, .site-footer > span { margin: 0; color: #8993a5; font-size: 10px; }
.footer-meta { display: inline-flex; align-items: center; gap: 14px; color: #8993a5; font-size: 10px; }
.footer-meta a { color: #64748d; }
.footer-meta a:hover { color: var(--blue); }

.guide-main { max-width: 860px; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; padding-top: 28px; color: #8a95a8; font-size: 11px; }
.breadcrumbs a { color: var(--blue); }
.guide-hero { padding: 46px 0 30px; }
.guide-hero h1 { margin: 8px 0 12px; color: var(--navy); font-size: clamp(32px, 5vw, 46px); line-height: 1.25; letter-spacing: -1px; }
.guide-hero h1 span { color: var(--blue); }
.guide-hero > p:last-child { max-width: 700px; margin: 0; color: var(--muted); font-size: 14px; }
.guide-alert, .guide-info { display: flex; align-items: flex-start; gap: 12px; padding: 15px 17px; border: 1px solid #e5ebf6; border-radius: 10px; background: #f8faff; }
.guide-alert p, .guide-info p { margin: 0; color: #66748c; font-size: 12px; line-height: 1.75; }
.guide-alert strong { color: #354a6b; }
.guide-section { margin-top: 18px; padding: 25px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 5px 18px #1c31520a; scroll-margin-top: 22px; }
.guide-section-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 17px; border-bottom: 1px solid #edf0f4; }
.guide-step-number { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 11px; background: #eef3ff; color: var(--blue); font-size: 13px; font-weight: 750; }
.guide-section-heading .section-kicker { font-size: 9px; letter-spacing: 1.3px; }
.guide-section-heading h2, .guide-section-heading h3 { margin: 1px 0 0; color: var(--navy); font-size: 20px; }
.guide-intro { margin: 15px 0 18px; color: var(--muted); font-size: 12px; }
.guide-subsection { margin-top: 22px; }
.guide-subsection > h4 { margin: 0; color: #263754; font-size: 15px; }
.guide-subsection .step-list { margin-bottom: 15px; }
.step-list { display: grid; gap: 17px; margin: 21px 0; padding: 0; list-style: none; }
.step-list li { display: flex; align-items: flex-start; gap: 13px; }
.step-index { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border: 1px solid #dce5f7; border-radius: 50%; color: var(--blue); font-size: 11px; font-weight: 700; }
.step-list li p { margin: 1px 0 0; color: #53627a; font-size: 13px; line-height: 1.75; }
.guide-download { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px; border: 1px solid #edf0f4; border-radius: 9px; background: #fafbfd; }
.guide-download strong { color: #354a6b; font-size: 12px; }
.guide-download p { margin: 3px 0 0; color: #8691a4; font-size: 10px; }
.guide-download .download-button { width: auto; min-width: 120px; padding: 0 14px; }
.guide-info { margin-top: 17px; padding: 13px; }
.guide-info .note-icon { margin-top: 1px; }
.guide-caution { margin-top: 20px; padding: 16px 18px; border-left: 3px solid #d49a44; border-radius: 0 8px 8px 0; background: #fffaf1; }
.guide-caution strong { color: #785c32; font-size: 12px; }
.guide-caution p { margin: 5px 0 0; color: #806f56; font-size: 11px; line-height: 1.7; }
.back-link { display: inline-block; margin-top: 25px; color: var(--blue); font-size: 12px; font-weight: 650; }
.back-link:hover { color: var(--blue-dark); }

.terms-main { max-width: 860px; }
.terms-hero { padding: 42px 0 24px; }
.terms-hero h1 { margin: 7px 0 12px; color: var(--navy); font-size: clamp(34px, 5vw, 46px); line-height: 1.2; letter-spacing: -1px; }
.terms-hero > p:last-child { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.terms-callout { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border: 1px solid #e5ebf6; border-radius: 10px; background: #f8faff; }
.terms-callout p { margin: 0; color: #536582; font-size: 12px; line-height: 1.8; }
.terms-content { display: grid; gap: 12px; margin-top: 22px; }
.terms-clause { padding: 20px 22px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.terms-clause h2 { display: flex; align-items: center; gap: 11px; margin: 0 0 10px; color: var(--navy); font-size: 16px; }
.terms-clause h2 span { color: var(--blue); font: 700 10px var(--sans); letter-spacing: .5px; }
.terms-clause p { margin: 0; color: #59677e; font-size: 12px; line-height: 1.85; }
.terms-clause p + p { margin-top: 9px; }
.terms-enforcement { border-color: #e5ebf6; background: #fbfcff; }

@media (max-width: 900px) {
    .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { padding-top: 64px; }
}
@media (max-width: 560px) {
    .site-header { min-height: 66px; padding: 0 18px; }
    .portal-label { font-size: 10px; }
    main { width: min(100% - 32px, 440px); }
    .hero { padding: 54px 0 38px; }
    .hero h1 { letter-spacing: -1px; }
    .hero-copy { font-size: 14px; }
    .hero-note { max-width: 100%; border-radius: 10px; font-size: 10px; text-align: left; }
    .section-heading { align-items: center; }
    .section-heading h2 { font-size: 21px; }
    .device-grid { grid-template-columns: 1fr; gap: 12px; }
    .device-card { padding: 18px; }
    .device-description, .placeholder-copy { min-height: 0; }
    .guide-main { width: min(100% - 32px, 440px); }
    .breadcrumbs { padding-top: 20px; }
    .guide-hero { padding: 35px 0 23px; }
    .guide-hero h1 { font-size: 32px; }
    .guide-section { margin-top: 20px; padding: 18px; }
    .guide-section-heading h2, .guide-section-heading h3 { font-size: 17px; }
    .guide-download { align-items: stretch; flex-direction: column; }
    .guide-download .download-button { width: 100%; }
    .terms-main { width: min(100% - 32px, 440px); }
    .terms-hero { padding: 35px 0 22px; }
    .terms-clause { padding: 17px; }
    .terms-clause h2 { align-items: flex-start; font-size: 14px; }
    .site-footer { width: min(100% - 36px, 440px); margin-top: 42px; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
