:root {
  --green: #06c755;
  --ink: #111;
  --muted: #5c5c5c;
  --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, input { 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; }

.faq-wrap {
  width: min(1080px, calc(100% - 80px));
  margin: 0 auto;
  padding: 64px 0 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.kicker {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.faq-side h1 {
  margin: 12px 0 0;
  font-size: clamp(40px, 4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.lead {
  margin: 16px 0 0;
  color: #555;
  font-size: 15px;
  line-height: 1.75;
}
.cats {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 28px;
}
.cats button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: #666;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.cats button.on { color: #111; font-weight: 700; }

.search {
  display: block;
  margin: 0 0 28px;
}
.search .kicker { display: block; margin-bottom: 10px; }
.search input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  color: #111;
  background: #fff;
}
.search input:focus {
  outline: 2px solid #111;
  outline-offset: 1px;
}
.group { margin: 0 0 28px; }
.group h2 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #888;
}
.item { border-bottom: 1px solid var(--line); }
.group .item:first-of-type { border-top: 1px solid var(--line); }
.item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 4px;
  font-size: 17px;
  font-weight: 700;
}
.item summary::-webkit-details-marker { display: none; }
.item summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-top: -4px;
}
.item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}
.item p {
  margin: 0;
  padding: 0 28px 18px 4px;
  color: #555;
  font-size: 15px;
  line-height: 1.8;
}
.empty {
  margin: 8px 0 0;
  color: #666;
  font-size: 15px;
  line-height: 1.7;
}
.empty a { color: var(--green); font-weight: 700; }

.cta {
  width: min(1080px, calc(100% - 80px));
  margin: 24px auto 0;
  padding: 28px 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) {
  .faq-wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .cats { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; margin-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; }
  .faq-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; }
}
