@font-face {
  font-family: "Curion Sans Latin";
  src: url("./assets/fonts/sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Curion Sans Japanese";
  src: url("./assets/fonts/sans-jp.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f9f8;
  --surface: #ffffff;
  --ink: #1d3032;
  --muted: #627177;
  --border: #dbe3e2;
  --tint: #e8f1ef;
  --accent: #315f5b;
  --header-height: 62px;
  --sidebar-width: 248px;
  font-family: "Curion Sans Latin", "Curion Sans Japanese", "Hiragino Sans", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); }
body.sidebar-open { overflow: hidden; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; z-index: 50; top: -60px; left: 12px; padding: 10px 14px; background: var(--surface); }
.skip-link:focus { top: 8px; }

.help-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(20px, 3.5vw, 48px);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.help-brand { display: inline-flex; align-items: center; gap: 11px; flex: none; text-decoration: none; white-space: nowrap; }
.help-brand strong { font-size: 1.44rem; font-weight: 700; letter-spacing: -0.055em; }
.help-brand span { padding: 5px 9px; border: 1px solid #c9dcd7; border-radius: 5px; background: var(--tint); color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.help-header-actions { display: flex; align-items: center; gap: 20px; }
.help-header-actions > a:not(.icon-link) { font-size: .86rem; font-weight: 600; text-decoration: none; }
.help-header-actions > a:hover, .help-brand:hover, .help-sidebar a:hover { color: var(--accent); }
.icon-link, .sidebar-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-decoration: none;
}
.icon-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.icon-link:hover, .sidebar-toggle:hover { background: var(--tint); }
.sidebar-toggle { display: none; gap: 4px; }
.sidebar-toggle span { display: block; width: 17px; height: 1px; background: currentColor; }

.help-sidebar {
  position: fixed;
  z-index: 20;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 24px 14px 20px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: #f1f6f4;
}
.sidebar-heading { margin: 0 12px 12px; color: var(--muted); font-size: .71rem; font-weight: 700; letter-spacing: .1em; }
.sidebar-home, .sidebar-list a, .sidebar-contact {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}
.sidebar-home { margin-bottom: 19px; }
.sidebar-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sidebar-list a::after { margin-left: auto; padding-left: 12px; color: #86a39c; font-size: 1.25rem; font-weight: 400; line-height: 1; content: "›"; }
.help-sidebar a:hover, .help-sidebar a[aria-current="page"] { background: #dfece8; color: var(--accent); }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.sidebar-contact { border-top: 1px solid var(--border); }
.sidebar-legal { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 17px 12px 0; }
.sidebar-legal a { color: var(--muted); font-size: .7rem; text-decoration: none; }
.sidebar-backdrop { display: none; }

.help-main { min-height: calc(100vh - var(--header-height)); margin-left: var(--sidebar-width); }
.main-inner { width: min(100%, 1110px); margin: 0 auto; padding: 50px 44px 28px; }
.home-intro { margin-bottom: 47px; }
.hero-kicker { margin: 0 0 12px; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .17em; }
.home-intro h1 { max-width: 720px; margin: 0 0 16px; font-size: clamp(2.35rem, 3.8vw, 3.45rem); font-weight: 500; letter-spacing: -.065em; line-height: 1.22; }
.hero-description { max-width: 570px; margin: 0 0 25px; color: #4f6967; font-size: .94rem; line-height: 1.75; }
.search-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.search-wrap { position: relative; width: min(100%, 560px); }
.search-wrap svg { position: absolute; top: 50%; left: 17px; width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.8; transform: translateY(-50%); pointer-events: none; }
.help-search {
  width: 100%;
  height: 54px;
  padding: 0 16px 0 47px;
  border: 1px solid #bfd4cf;
  border-radius: 8px;
  outline: none;
  background: var(--surface);
  box-shadow: 0 2px 5px #223c3610;
  color: var(--ink);
  font-size: .94rem;
}
.help-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #315f5b21; }
.help-search::placeholder { color: #748783; }
.quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 14px; font-size: .75rem; }
.quick-links span { margin-right: 4px; color: #5d7672; font-weight: 700; }
.quick-links a { padding: 6px 11px; border: 1px solid #c9dbd6; border-radius: 999px; background: #ffffffb8; color: var(--accent); font-weight: 600; text-decoration: none; }
.quick-links a:hover { background: var(--surface); border-color: var(--accent); }
.collection-title { margin: 0 0 20px; font-size: 1.35rem; font-weight: 700; letter-spacing: -.04em; }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; counter-reset: topic; }
.collection-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 173px;
  padding: 19px 20px 21px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  text-decoration: none;
  counter-increment: topic;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.collection-card::before { display: block; margin-bottom: 27px; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .1em; content: counter(topic, decimal-leading-zero); }
.collection-card::after { position: absolute; top: 17px; right: 19px; color: #76958e; font-size: 1.15rem; content: "↗"; transition: transform 140ms ease; }
.collection-card:hover { border-color: #accac2; box-shadow: 0 4px 16px #315f5b0d; }
.collection-card:hover::after { transform: translate(3px, -3px); }
.collection-card:hover h3 { color: var(--accent); }
.collection-copy { min-width: 0; }
.collection-copy h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 700; letter-spacing: -.04em; }
.collection-copy p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.7; }
.search-status { min-height: 1.5em; margin: -5px 0 14px; color: var(--muted); font-size: .86rem; }
.search-status:empty { display: none; }
.no-results { padding: 28px 0; color: var(--muted); line-height: 1.8; }
.no-results a { color: var(--ink); font-weight: 700; }

.article-inner { width: min(100%, 900px); padding-top: 51px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 47px; color: var(--muted); font-size: .82rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .1em; }
.help-article h1, .contact-intro h1 { margin: 0 0 22px; font-size: clamp(2.15rem, 4vw, 3.15rem); font-weight: 600; letter-spacing: -.06em; line-height: 1.2; }
.article-lead { max-width: 700px; margin: 0 0 34px; color: #425957; font-size: 1rem; line-height: 1.85; }
.article-body { max-width: 710px; padding-top: 30px; border-top: 1px solid var(--border); }
.article-body p, .article-body li { color: #304143; font-size: .97rem; line-height: 1.95; }
.article-body p { margin: 0 0 22px; }
.article-body ol, .article-body ul { margin: 0 0 28px; padding-left: 1.5em; }
.article-body li + li { margin-top: 13px; }
.article-body h2 { margin: 36px 0 12px; font-size: 1.18rem; letter-spacing: -.03em; }
.article-next { display: flex; flex-wrap: wrap; gap: 10px 24px; max-width: 710px; margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .88rem; font-weight: 700; }
.article-next a { text-underline-offset: 3px; }

.contact-intro { max-width: 700px; }
.contact-panel { max-width: 710px; margin: 28px 0 48px; padding: 32px 34px; border: 1px solid #d4e4df; border-radius: 16px; background: var(--tint); }
.contact-panel h2 { margin: 0 0 10px; font-size: 1.13rem; }
.contact-panel p { margin: 0 0 20px; color: var(--muted); font-size: .92rem; line-height: 1.8; }
.contact-button { display: inline-flex; align-items: center; min-height: 43px; padding: 10px 17px; border-radius: 7px; background: var(--accent); color: #fff; font-size: .87rem; font-weight: 700; text-decoration: none; }
.contact-button:hover { background: #234d49; color: #fff; }
.contact-address { margin: 16px 0 0 !important; color: var(--ink) !important; font-size: .86rem !important; }
.contact-topics { max-width: 710px; }
.contact-topics h2 { margin: 0 0 18px; font-size: 1.16rem; }
.contact-topics dl { margin: 0; }
.contact-topics dl div { padding: 19px 0; border-top: 1px solid var(--border); }
.contact-topics dt { margin-bottom: 5px; font-size: .95rem; font-weight: 700; }
.contact-topics dd { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.75; }
.contact-note { max-width: 710px; margin-top: 36px; color: var(--muted); font-size: .87rem; line-height: 1.8; }

.help-footer { display: flex; justify-content: space-between; gap: 20px; width: min(100%, 1160px); margin: 44px auto 0; padding: 25px 30px 36px; border-top: 1px solid var(--border); color: var(--muted); font-size: .75rem; }
.help-footer a { text-decoration: none; }
.help-footer a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  :root { --sidebar-width: 226px; }
  .main-inner { padding-right: 34px; padding-left: 34px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .help-header-actions > a:not(.icon-link) { display: none; }
  .sidebar-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; }
  .help-sidebar { z-index: 28; width: min(340px, calc(100% - 48px)); transform: translateX(-100%); transition: transform 200ms ease; }
  .sidebar-open .help-sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; z-index: 25; inset: var(--header-height) 0 0; display: block; background: #25252266; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
  .sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .help-main { margin-left: 0; }
}
@media (max-width: 760px) {
  :root { --header-height: 58px; }
  .help-header { padding: 0 17px; }
  .help-brand strong { font-size: 1.32rem; }
  .help-brand span { font-size: .67rem; }
  .help-header-actions { gap: 7px; }
  .main-inner { padding: 33px 18px 24px; }
  .home-intro { margin-bottom: 42px; }
  .home-intro h1 { max-width: 400px; font-size: clamp(2.1rem, 8.8vw, 2.75rem); line-height: 1.25; }
  .hero-description { font-size: .88rem; }
  .help-search { height: 49px; }
  .quick-links { gap: 7px; }
  .quick-links span { width: 100%; }
  .collection-title { margin-bottom: 13px; font-size: 1.24rem; }
  .collection-grid { display: block; }
  .collection-card { flex-direction: row; align-items: flex-start; min-height: 88px; padding: 18px 26px 18px 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; }
  .collection-card:last-child { border-bottom: 1px solid var(--border); }
  .collection-card:hover { border-color: var(--border); box-shadow: none; }
  .collection-card::before { flex: none; width: 38px; margin: 0; padding-top: 3px; }
  .collection-card::after { top: 17px; right: 0; }
  .collection-copy { flex: 1; }
  .collection-copy h3 { margin-bottom: 5px; font-size: .98rem; }
  .collection-copy p { font-size: .79rem; }
  .article-inner { padding-top: 26px; }
  .breadcrumb { margin-bottom: 29px; }
  .help-article h1, .contact-intro h1 { font-size: 2.14rem; }
  .article-body { padding-top: 22px; }
  .contact-panel { padding: 24px 20px; }
  .help-footer { flex-direction: column; gap: 12px; padding: 22px 18px 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .collection-card, .help-sidebar, .sidebar-backdrop { transition: none; }
}
