:root {
  --bg: #0c0d10;
  --panel: #14161b;
  --panel-2: #1b1e24;
  --line: #272b33;
  --text: #f2f3f5;
  --sub: #a4a9b3;
  --red: #e8303f;
  --btn: #d42a38;
  --btn-hover: #bd2230;
  --radius: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Noto Sans JP", "Yu Gothic UI", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  color-scheme: dark;
  accent-color: var(--red);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: #3a3f49 var(--bg); }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--red); color: #fff; }
a { color: inherit; text-underline-offset: .22em; }
h1, h2, h3 { word-break: keep-all; overflow-wrap: anywhere; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #f2f3f5; outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.logo { font-family: Arial, "Liberation Sans", Helvetica, sans-serif; font-weight: 700; font-style: italic; letter-spacing: 0; text-decoration: none; }
.icon { width: 20px; height: 20px; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.btn-primary { background: var(--btn); color: #fff; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .9); }
.btn-primary:hover { background: var(--btn-hover); transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 1); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.btn-ghost:hover { border-color: #3a3f49; background: var(--panel-2); }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 19px; font-weight: 900; border-radius: 12px; }
.btn-lg .icon { width: 22px; height: 22px; }

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(12, 13, 16, .82); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.site-nav .logo { font-size: 24px; }
.logo img { display: inline-block; vertical-align: middle; border-radius: 7px; margin: -4px 10px 0 0; }
.site-footer .logo img { width: 24px; height: 24px; border-radius: 6px; margin-right: 8px; }
.site-nav nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; }
.site-nav ul a { display: block; padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 700; color: var(--sub); text-decoration: none; transition: color .15s, background-color .15s; }
.site-nav ul a:hover { color: var(--text); background: var(--panel); }
.site-nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 30%; height: 640px; background: radial-gradient(closest-side, rgba(232, 48, 63, .14), transparent); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.3; font-weight: 900; letter-spacing: -.01em; text-wrap: balance; }
.hero .lede { margin-top: 22px; max-width: 34em; font-size: 17px; color: var(--sub); }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14px; color: var(--sub); list-style: none; }
.hero .meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero .meta .icon { width: 16px; height: 16px; color: var(--sub); }

.product { position: relative; margin-right: calc((100vw - min(1180px, 100vw - 48px)) / -2 - 1px); }
.window { overflow: hidden; border: 1px solid #2c3039; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--panel); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02); }
.window-bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #111317; font-size: 12px; color: #7d828c; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3039; }
.window-bar span { margin-left: 8px; }
.window img { width: 100%; height: auto; aspect-ratio: 1920 / 1170; object-fit: cover; object-position: left top; }
.detect { position: absolute; left: -28px; bottom: 34px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border: 1px solid #343944; border-radius: 12px; background: rgba(20, 22, 27, .94); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9); }
.detect .mark { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid var(--red); }
.detect b { display: block; font-size: 15px; line-height: 1.4; }
.detect small { display: block; font-size: 12px; color: var(--sub); line-height: 1.4; }
.detect .num { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  .product { animation: rise 1.1s var(--ease-out) both; }
  .detect { animation: pop .7s .7s var(--ease-out) both; }
}
@keyframes rise { from { transform: translateY(28px) scale(.985); filter: blur(6px); } }
@keyframes pop { from { transform: translateY(10px) scale(.96); } }

/* Sections */
.section { padding: 128px 0; }
.section-head { max-width: 720px; margin-bottom: 72px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.35; font-weight: 900; text-wrap: balance; }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--sub); }

/* Features */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.feature + .feature { margin-top: 120px; }
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature:nth-of-type(even) .media { order: 2; }
.media { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #000; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85); }
.media .window-bar { height: 32px; }
.media video { width: 100%; height: auto; aspect-ratio: 2 / 1; background: #000; }
.feature h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; font-weight: 900; text-wrap: balance; }
.feature p { margin-top: 16px; color: var(--sub); max-width: 32em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.chips li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 13px; font-weight: 700; color: #d6d9de; }
.feature .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-size: 15px; font-weight: 700; color: var(--text); text-decoration: none; }
.feature .more .icon { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.feature .more:hover .icon { transform: translateX(3px); }

/* Steps */
.how { background: #0f1014; border-top: 1px solid var(--line); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 23px; left: 24px; right: calc(33.333% - 24px); height: 2px; background: var(--line); }
.steps li { position: relative; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); border: 2px solid #3a3f49; font-weight: 900; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--text); }
.steps h3 { margin-top: 22px; font-size: 20px; font-weight: 900; }
.steps p a { color: var(--text); }
.steps p { margin-top: 6px; color: var(--sub); font-size: 15px; max-width: 22em; }
.notice { display: flex; gap: 16px; margin-top: 64px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 15px; color: #e3e5e9; max-width: 880px; }
.notice .icon { width: 22px; height: 22px; color: var(--sub); margin-top: 3px; }
.notice b { color: #fff; }
.how .actions { margin-top: 40px; }

/* Final CTA */
.cta-band { position: relative; overflow: hidden; padding: 120px 0; text-align: center; border-top: 1px solid var(--line); }
.cta-band .wrap { position: relative; }
.cta-band .logo { display: block; font-size: clamp(44px, 7vw, 88px); line-height: 1.1; }
.cta-band p { margin-top: 18px; font-size: 18px; color: var(--sub); }
.cta-band .btn { margin-top: 36px; }
.cta-band small { display: block; margin-top: 16px; font-size: 14px; color: var(--sub); }

/* Footer */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); font-size: 13px; color: var(--sub); }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; }
.site-footer .logo { font-size: 20px; color: var(--text); }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none; justify-content: flex-end; }
.site-footer nav a { text-decoration: none; font-weight: 700; color: #cdd0d6; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); line-height: 1.8; }

/* Current page in nav */
.site-nav ul a[aria-current="page"] { color: var(--text); background: var(--panel); }

/* Page header (sub pages) */
.page-head { position: relative; overflow: hidden; padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.page-head::before { content: ""; position: absolute; inset: -40% -10% auto 40%; height: 520px; background: radial-gradient(closest-side, rgba(232, 48, 63, .12), transparent); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.25; font-weight: 900; letter-spacing: -.01em; }
.page-head .lede { margin-top: 18px; max-width: 36em; font-size: 17px; color: var(--sub); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; list-style: none; }
.jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 14px; font-weight: 700; text-decoration: none; transition: border-color .15s, background-color .15s; }
.jump a:hover { border-color: #3a3f49; background: var(--panel-2); }
.jump .icon { width: 14px; height: 14px; color: var(--sub); transform: rotate(90deg); }

/* Feature detail (features page) */
.detail + .detail { margin-top: 128px; }
.detail .media { max-width: 1040px; }
.detail-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; margin-top: 40px; max-width: 1040px; }
.detail h2 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.4; font-weight: 900; text-wrap: balance; }
.detail p { color: var(--sub); max-width: 36em; }
.spec { margin-top: 28px; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec dt { color: var(--sub); }
.spec dd { font-weight: 700; }
.later { margin-top: 128px; padding-top: 40px; border-top: 1px solid var(--line); color: var(--sub); }
.later b { display: block; color: var(--text); font-size: 20px; font-weight: 900; margin-bottom: 4px; }

/* Download page */
.dl-head .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.dl-head .actions { margin-top: 36px; }
.dl-head .hint { margin-top: 14px; font-size: 14px; color: var(--sub); }
.panel { padding: 28px 32px 12px; border: 1px solid #2c3039; border-radius: var(--radius); background: var(--panel); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85); }
.panel h2 { font-size: 15px; font-weight: 700; color: var(--sub); }
.panel .spec { margin-top: 12px; }
.panel .spec div:last-child { border-bottom: 0; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.contact-main { padding: 40px; border: 1px solid #2c3039; border-radius: var(--radius); background: var(--panel); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85); }
.contact-main h2 { font-size: 22px; font-weight: 900; }
.contact-main > p { margin-top: 8px; color: var(--sub); }
.handle { display: flex; align-items: center; gap: 14px; margin-top: 28px; font: 700 28px/1.2 var(--font); font-variant-numeric: tabular-nums; }
.handle .icon { width: 28px; height: 28px; }
.contact-main .btn { margin-top: 28px; }
.btn-white { background: #f2f3f5; color: #0c0d10; }
.btn-white:hover { background: #fff; transform: translateY(-1px); }
.contact-side { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-side h2 { font-size: 18px; font-weight: 900; }
.contact-side p { margin-top: 8px; font-size: 15px; color: var(--sub); }
.contact-side .btn { margin-top: 20px; }
.tips { margin-top: 64px; max-width: 880px; }
.tips h2 { font-size: 20px; font-weight: 900; }
.tips ul { margin-top: 16px; list-style: none; border-top: 1px solid var(--line); }
.tips li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); color: #d6d9de; }
.tips li .icon { width: 18px; height: 18px; margin-top: 5px; color: var(--sub); }

/* Responsive */
@media (max-width: 960px) {
  .page-head { padding: 64px 0 56px; }
  .detail-body, .dl-head .wrap, .contact-grid { grid-template-columns: 1fr; }
  .detail + .detail { margin-top: 96px; }
  .detail-body { margin-top: 28px; }
  .later { margin-top: 96px; }
  .hero { padding: 48px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .product { margin-right: -24px; }
  .detect { left: 12px; bottom: 16px; }
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-of-type(even) .media { order: 0; }
  .feature + .feature { margin-top: 88px; }
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 52px; }
}
@media (max-width: 720px) {
  .site-nav .wrap { flex-wrap: wrap; height: auto; gap: 0 16px; padding-top: 10px; }
  .site-nav .logo { line-height: 42px; }
  .site-nav .btn { margin-left: auto; }
  .site-nav nav { order: 3; width: 100%; margin: 4px 0 6px; }
  .site-nav ul { justify-content: space-between; }
  .site-nav ul a { padding: 6px 10px; font-size: 14px; }
  .hero .actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .steps li { padding-left: 72px; }
  .steps li::before { position: absolute; left: 0; top: 0; }
  .steps h3 { margin-top: 8px; }
  .notice { flex-direction: column; gap: 8px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer nav ul { justify-content: flex-start; }
  .detect { padding: 10px 14px 10px 12px; }
  .dl-head .actions .btn { width: 100%; }
  .spec div { grid-template-columns: 7em 1fr; }
  .panel { padding: 22px 20px 6px; }
  .contact-main { padding: 28px 22px; }
  .contact-main .btn, .contact-side .btn { width: 100%; }
  .contact-side { padding: 24px 22px; }
  .handle { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
.section.after-head { padding-top: 88px; }
@media (max-width: 960px) { .section.after-head { padding-top: 64px; } }

/* Download card */
.dl-card { padding: 32px; border: 1px solid #2c3039; border-radius: var(--radius); background: var(--panel); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85); }
.dl-app { display: flex; align-items: center; gap: 16px; }
.dl-app img { width: 64px; height: 64px; border-radius: 14px; }
.dl-app b { display: block; font-size: 20px; font-weight: 900; line-height: 1.4; }
.dl-meta { display: block; font-size: 14px; color: var(--sub); font-variant-numeric: tabular-nums; }
.dl-button { width: 100%; margin-top: 28px; }
.dl-status { margin-top: 14px; font-size: 14px; color: var(--sub); text-align: center; }
.dl-status.done { color: var(--text); font-weight: 700; }
.dl-alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; text-align: center; }
.dl-alt a { color: var(--sub); }
.dl-alt a:hover { color: var(--text); }
.dl-env { margin-top: 72px; max-width: 880px; }
.dl-env h2 { font-size: 20px; font-weight: 900; }
.dl-env .spec { margin-top: 16px; }
@media (max-width: 720px) { .dl-card { padding: 24px 20px; } .dl-env { margin-top: 56px; } }
