:root {
  color-scheme: light;
  --bg: #e9e8e5;
  --panel: #fff;
  --ink: #1f1f21;
  --sub: #6d6d72;
  --edge: rgba(0, 0, 0, 0.09);
  --bar: linear-gradient(#3b3b3d, #232325);
  --light: #f2c200;
  --light-hot: #ffd83a;
  --bomb: #1f7ae0;
  --cut: 14px;
}

* { box-sizing: border-box; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: "SF Pro JP", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", "Hiragino Sans", "Segoe UI", Meiryo, "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.bar-top {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: calc(64px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(16px, calc((100% - 608px) / 2)) 0;
  background: var(--bar);
  color: #fff;
  border-bottom: 3px solid #5a5a5e;
}

.bar-top .logo { display: block; flex: none; margin-right: 10px; border-radius: 7px; }
.bar-top .logo img { display: block; border-radius: 7px; }

.bar-top h1 {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

main, footer { max-width: 640px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
main { padding-top: 16px; }

a, button { touch-action: manipulation; }

.tools { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.tools a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 148px;
  padding: 16px 16px 18px;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--edge);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.tools a:focus, .tools a:focus-visible { outline: none; }

.tools .mark {
  width: 56px;
  height: 56px;
}

.tools .rube .mark { background: url(/icons/rube.svg?v=3) center / contain no-repeat; }
.tools .delmeze .mark { background: url(/icons/delmeze.svg) center / contain no-repeat; }
.tools .scorpide .mark { background: url(/icons/scorpide.svg?v=5) center / contain no-repeat; }
.tools .win .mark { background: url(/icons/win.svg) center / contain no-repeat; }
.tools .howto .mark { background: url(/icons/howto.svg) center / contain no-repeat; }
.tools .request .mark { background: url(/icons/request.svg?v=3) center / contain no-repeat; }
.tools .feedback .mark { background: url(/icons/feedback.svg?v=3) center / contain no-repeat; }
.tools .party .mark { background: url(/icons/party.svg?v=2) center / contain no-repeat; }
.tools .settings .mark { background: url(/icons/settings.svg) center / contain no-repeat; }

.tools .name { font-size: 17px; font-weight: 800; letter-spacing: 0; line-height: 1.25; word-break: keep-all; overflow-wrap: anywhere; }

footer {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.5;
  padding-top: 20px;
  padding-bottom: 24px;
}

footer p { margin: 0; }
footer p + p { margin-top: 6px; }

.doc { display: grid; gap: 8px; padding-bottom: 8px; }

.doc .card {
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--edge);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  padding: 16px 18px;
}

.doc h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: 0; }
.doc h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: 0; }
.doc p { margin: 0 0 10px; }
.doc ul, .doc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.doc .note { margin: 10px 0 0; font-size: 13px; color: var(--sub); }
.doc code { font-size: 12px; word-break: break-all; color: var(--ink); }

.doc .get {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 14px 0 4px;
  padding: 12px 16px;
  background: #6c6c70;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
}

.doc .get > span { font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, 0.75); }
.doc .get:active { background: #48484a; }

footer a { color: var(--sub); }

.lic-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 12px 0 0; }
.lic-form label { grid-column: 1 / -1; font-size: 13px; color: var(--sub); }
.lic-form input {
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid #c9c8c3;
  background: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  min-width: 0;
}
.lic-form button, .lic-out {
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
  border: 0;
  background: #232325;
  color: #fff;
  cursor: pointer;
}
.lic-out { margin-top: 12px; background: transparent; color: var(--sub); box-shadow: inset 0 0 0 1px #bdbcb7; font-weight: 600; }
.lic-out[hidden] { display: none; }

.page-howto main { padding-top: 28px; padding-bottom: 40px; }
.page-howto .doc { gap: 24px; }
.page-howto .card { padding: 30px 26px; }
.page-howto .doc h3 { margin: 0 0 20px; font-size: 18px; }
.page-howto .doc li, .page-howto .doc p { text-wrap: pretty; line-height: 2; }
.page-howto .doc ol, .page-howto .doc ul { gap: 24px; }
.page-howto .doc p { margin: 0 0 18px; }
.page-howto .doc p:last-child, .page-howto .doc ul:last-child, .page-howto .doc ol:last-child { margin-bottom: 0; }
.page-howto .doc .note { margin: 18px 0 0; line-height: 1.9; }
.page-howto .doc .mv { display: inline-block; margin-right: 1em; }
.page-howto .doc a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.fb { display: grid; gap: 16px; }
.fb .lead { margin: 0; line-height: 1.7; }
.fb label { display: grid; gap: 6px; font-size: 13px; color: var(--sub); }
.fb input[type="email"], .fb select, .fb textarea { font: inherit; font-size: 16px; color: var(--ink); padding: 11px 12px; border: 1px solid #c9c8c3; border-radius: 0; background: #fff; min-width: 0; width: 100%; }
.fb textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.fb button { min-height: 60px; border: 0; background: #6c6c70; color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.fb button:active { background: #48484a; }
.fb button:disabled { opacity: 0.55; cursor: default; }
.sale { display: grid; gap: 10px; }
.sale h2 { margin: 0; font-size: 22px; }
.sale .price { margin: 0; font-size: 32px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sale .price small { margin-left: 4px; font-size: 14px; font-weight: 700; color: var(--sub); }
.sale p { margin: 0; line-height: 1.7; }
.sale button { min-height: 60px; margin-top: 4px; border: 0; background: #6c6c70; color: #fff; font: inherit; font-size: 17px; font-weight: 700; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.sale button:disabled { opacity: 0.55; }
.fb h2 { margin: 0; }
.coachwrap { position: relative; display: grid; }
.coach {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  max-width: 100%;
  padding: 10px 14px;
  background: #3a3a3c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  animation: coach-in 0.18s ease-out;
}
.coach::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top-color: #3a3a3c;
}
.coach[hidden] { display: none; }
@keyframes coach-in { from { opacity: 0; transform: translate(-50%, 4px); } to { opacity: 1; transform: translate(-50%, 0); } }
.fb .hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.fb .fb-note { margin: 0; min-height: 1.6em; font-size: 15px; font-weight: 700; line-height: 1.6; }
.fb .fb-note[data-state="ok"] { color: #1f8a3b; }
.fb .fb-note[data-state="err"] { color: #c8281e; }
.fb .note { margin: 0; line-height: 1.7; }

.page-download main { padding-top: 28px; padding-bottom: 8px; }
.page-download .doc li, .page-download .doc p { text-wrap: pretty; }
.page-download .doc { gap: 22px; }
.page-download .card { padding: 30px 28px; }
.page-download .doc h3 { margin: 0 0 18px; font-size: 18px; }
.page-download .doc ol, .page-download .doc ul { gap: 14px; line-height: 1.7; }
.page-download .doc .note { margin: 18px 0 0; line-height: 1.7; }
.page-download .doc .lead { margin: 0 0 26px; line-height: 1.8; }
.page-download .doc .get { margin: 4px 0 6px; padding: 20px 20px; gap: 6px; font-size: 18px; }
.page-download footer { padding-top: 28px; padding-bottom: 40px; }

.page-download .steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 40px; }
.page-download .steps li { display: grid; gap: 14px; line-height: 1.5; }
.page-download .cap { display: flex; align-items: center; gap: 12px; margin: 0; }
.page-download .cap i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #6c6c70; color: #fff; font-size: 15px; font-style: normal; font-weight: 700; }
.page-download .cap span { display: grid; gap: 2px; font-size: 16px; font-weight: 700; }
.page-download .cap small { font-size: 13px; font-weight: 400; color: var(--sub); }

.page-download .shot { container-type: inline-size; background: #f1f0ed; border-radius: 14px; padding: 26px 22px; }
.page-download .ring { position: relative; --g: max(5px, 1.3cqw); --w: max(4px, 1.15cqw); --r: 4px; }
.page-download .ring::after { content: ""; position: absolute; inset: calc(-1 * (var(--g) + var(--w))); border: var(--w) solid #ff3b30; border-radius: calc(var(--r) + var(--g) + var(--w)); box-shadow: 0 0 0 max(1.5px, 0.4cqw) #fff, inset 0 0 0 max(1.5px, 0.4cqw) #fff, 0 0.6cqw 2.4cqw rgba(0, 0, 0, 0.35); pointer-events: none; }
.page-download .cr-btns .ring { --r: 999px; margin-left: 3.4cqw; }
.page-download .wd-btns .ring { --r: 0px; margin-right: 3.4cqw; }

.page-download .cr { background: #202124; color: #e8eaed; border-radius: 3cqw; padding: 5cqw; font-size: max(11px, 3.1cqw); line-height: 1.55; letter-spacing: 0; box-shadow: 0 1cqw 4cqw rgba(0, 0, 0, 0.22); }
.page-download .cr svg { flex: none; width: 1.5em; height: 1.5em; fill: currentColor; }
.page-download .cr-head { display: flex; align-items: center; gap: 3cqw; margin-bottom: 4cqw; }
.page-download .cr-head b { flex: 1; font-size: 1.05em; }
.page-download .cr-body { display: flex; align-items: flex-start; gap: 3cqw; }
.page-download .cr-body svg { margin-top: 0.1em; }
.page-download .cr-body p { margin: 0; }
.page-download .cr-link { margin: 2.6cqw 0 0 4.5cqw; color: #8ab4f8; }
.page-download .cr-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5cqw 3cqw; margin-top: 6cqw; padding: 0 1.2cqw 1.2cqw 0; }
.page-download .cr-btns span { border-radius: 999px; padding: 1.7cqw 3.6cqw; font-weight: 600; white-space: nowrap; }
.page-download .cr-btns .b1 { background: #a8c7fa; color: #062e6f; }
.page-download .cr-btns .b2 { background: #004a77; color: #c2e7ff; }

.page-download .wd { position: relative; background: #0067c0; color: #fff; border-radius: 1.4cqw; padding: 5cqw 5cqw 6cqw; font-family: "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif; font-size: max(11px, 2.7cqw); line-height: 1.6; letter-spacing: 0; box-shadow: 0 1cqw 4cqw rgba(0, 0, 0, 0.22); }
.page-download :where(.wd p) { margin: 0; }
.page-download .wd-x { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 6cqw; height: 4.4cqw; background: #fff; color: #000; font-size: 1.1em; border-top-right-radius: 1.4cqw; }
.page-download .wd-title { font-size: max(16px, 4.6cqw); font-weight: 600; line-height: 1.35; margin-bottom: 3.4cqw; padding-right: 4cqw; }
.page-download .wd-more { margin-top: 5.4cqw; }
.page-download .wd-more span { display: inline-block; padding: 0 1cqw; text-decoration: underline; border-radius: 4px; }
.page-download .wd-info { margin-top: 1.6cqw; }
.page-download .wd-info span { display: inline-block; min-width: 5.2em; opacity: 0.9; }
.page-download .wd-btns { display: flex; justify-content: flex-end; gap: 3cqw; margin-top: 7cqw; }
.page-download .wd-btns span { background: #fff; color: #000; font-weight: 700; padding: 1.6cqw 4.4cqw; font-size: 0.95em; }

@media (max-width: 480px) {
  .page-download .card { padding: 24px 20px; }
  .page-download .shot { padding: 20px 16px; }
}
