:root {
  --green: #06c755;
  --ink: #111;
  --line: #e6e6e6;
  --header: 75px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  background: #fff;
  border-bottom: 1px solid transparent;
}
.header.scrolled { border-bottom-color: var(--line); }
.logo {
  justify-self: start;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.04em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 52px;
  font-size: 16px;
  font-weight: 500;
}
.nav a { position: relative; padding: 6px 0; color: #111; }
.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  color: #111;
  font-size: 15px;
  font-weight: 500;
}
.globe { display: block; }
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #111;
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

.wrap {
  width: min(1080px, calc(100% - 80px));
  margin: 0 auto;
  padding: 28px 0 88px;
}
.updated {
  margin: 14px 0 0;
  color: #888;
  font-size: 14px;
}
.crumb {
  margin: 0 0 28px;
  color: #888;
  font-size: 13px;
}
.crumb a:hover { color: #111; }
.crumb span { margin: 0 8px; }

.layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header) + 24px);
}
.toc p {
  margin: 0 0 12px;
  color: #888;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc a {
  display: block;
  padding: 7px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.45;
}
.toc a.on { color: #111; font-weight: 700; }
.toc a:hover { color: #111; }

.article h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.lead {
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--green);
  color: #222;
  font-size: 17px;
  line-height: 1.8;
}
.article h2 {
  margin: 48px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1.3;
  scroll-margin-top: 96px;
}
.article h3 {
  margin: 26px 0 0;
  font-size: 17px;
  line-height: 1.4;
}
.article p,
.article li {
  color: #444;
  font-size: 16px;
  line-height: 1.85;
}
.article p { margin: 14px 0 0; }
.article ul,
.article ol {
  margin: 14px 0 0;
  padding: 0 0 0 1.2em;
}
.article li + li { margin-top: 8px; }
.article a { color: var(--green); font-weight: 700; }
.article a:hover { text-decoration: underline; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sheet {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 15px;
}
.sheet th,
.sheet td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.sheet th {
  width: 88px;
  padding-right: 16px;
  color: #111;
  font-weight: 700;
}
.sheet td { color: #444; }

.article .related {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.article .related li + li { margin-top: 0; }
.related a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: #111;
  font-weight: 700;
}
.related li:first-child a { border-top: 1px solid var(--line); }
.related small {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}
.related a:hover { color: var(--green); text-decoration: none; }

.cta {
  width: min(1080px, calc(100% - 80px));
  margin: 8px auto 0;
  padding: 36px 24px 96px;
  text-align: center;
}
.cta h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
}
.cta p {
  margin: 14px auto 28px;
  max-width: 520px;
  color: #666;
  font-size: 16px;
  line-height: 1.7;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 48px;
  padding: 0 32px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.cta-btn:hover { background: #05b34c; }

.dl-icon {
  width: 18px;
  height: 18px;
  background: url("../img/sprite-dl.png") no-repeat;
  background-size: 165px 107.5px;
  flex-shrink: 0;
}
.dl-icon.app { background-position: -5px -44px; }
.dl-icon.gp { background-position: -39px -44px; }
.dl-icon.desk { background-position: -75px -44px; }
.dl-icon.win { background-position: -111px -44px; }

footer { background: #fff; padding: 8px 40px 36px; }
.foot { width: min(1100px, 100%); margin: 0 auto; }
.dl-row, .legal, .sns { list-style: none; margin: 0; padding: 0; }
.dl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid #e5e5e5;
}
.dl-row li, .legal li { display: flex; align-items: center; }
.dl-row li:not(:last-child)::after,
.legal li:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 12px;
  margin: 0 14px;
  background: #d0d0d0;
}
.dl-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}
.dl-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1e1e1e;
  font-size: 14px;
}
.dl-row a:hover { color: var(--green); }
.foot-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 0;
  padding-top: 22px;
  color: #4a4a4a;
  font-size: 14px;
}
.foot-bar p { margin: 0 28px 0 0; }
.legal { display: flex; flex-wrap: wrap; align-items: center; }
.legal a { color: inherit; }
.legal a:hover { color: #111; }
.sns {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sns img { display: block; height: 22px; width: auto; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 8px; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .wrap { padding-top: 20px; }
}
@media (max-width: 720px) {
  .header { display: flex; justify-content: space-between; padding: 0 16px; }
  .menu-btn { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; }
  .wrap, .cta { width: calc(100% - 32px); }
  .foot-bar, .dl-row { align-items: flex-start; }
  .sns { margin-left: 0; }
  footer { padding-left: 16px; padding-right: 16px; }
}
