*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fbf8f1; -webkit-font-smoothing: antialiased; font-family: 'Zen Kaku Gothic New', sans-serif; color: #2b2a26; font-size: 17px; line-height: 1.9; }
a { color: #24405c; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #1a2f45; }
img { max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.header { position: sticky; top: 0; z-index: 20; background: rgba(251,248,241,.96); border-bottom: 1px solid #e5ddcd; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.header-inner { max-width: 1120px; margin: 0 auto; padding: 12px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { height: 28px; width: auto; display: block; }
.logo-sub { white-space: nowrap; padding-left: 12px; border-left: 1px solid #d9cfbb; color: #403d34; font-size: 17px; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.header-contact { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #d9cfbb; border-radius: 999px; background: #fff; color: #403d34; font-size: 16px; font-weight: 700; text-decoration: none; }
.header-contact:hover { border-color: #24405c; }

.search-form { display: flex; align-items: stretch; }
.search-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border: 1px solid #d9cfbb; border-radius: 999px; background: #fff; font: inherit; font-size: 16px; color: #2b2a26; }
.search-form input:focus-visible { outline: 3px solid rgba(36,64,92,.35); outline-offset: 1px; border-color: #24405c; }
.search-form-header { width: 300px; }
.search-form-hero { max-width: 640px; margin: 0 auto; gap: 8px; }
.search-form-hero input { min-height: 56px; padding: 0 22px; font-size: 17px; box-shadow: 0 4px 14px rgba(43,42,38,.06); }
.search-form-hero button { min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px; background: #24405c; color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.search-form-hero button:hover { background: #1a2f45; }

.hero { padding: 56px 40px 64px; background: #f2ebdd; border-bottom: 1px solid #e5ddcd; text-align: center; }
.hero-title { margin: 0 0 20px; font-size: 32px; font-weight: 900; line-height: 1.5; color: #24405c; }
.hero-label { margin: 0 0 14px; font-size: 20px; font-weight: 700; color: #24405c; }

.help-top { max-width: 1120px; margin: 0 auto; padding: 56px 40px 96px; }
.section-title { margin: 0 0 32px; font-size: 26px; font-weight: 900; line-height: 1.5; text-align: center; color: #24405c; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.category-card { display: flex; flex-direction: column; padding: 22px 24px 18px; background: #fff; border: 1px solid #ece5d6; border-radius: 14px; box-shadow: 0 4px 14px rgba(43,42,38,.04); }
.category-card-title { margin: 0 0 10px; font-size: 20px; font-weight: 900; line-height: 1.5; }
.category-card-title a { display: inline-flex; align-items: center; gap: 10px; color: #24405c; text-decoration: none; }
.category-card-title a:hover { text-decoration: underline; }
.level-badge { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.6; vertical-align: 3px; }
.level-basic { background: #eaf3e6; color: #4a6b3f; border: 1px solid #cfe0c6; }
.level-advanced { background: #f5f0e5; color: #86624b; border: 1px solid #e3d6bd; }
.category-card ul { margin: 0 0 8px; padding: 0; list-style: none; flex: 1; }
.category-card li { margin: 0; }
.category-card li a { display: block; padding: 5px 0; color: #2b2a26; text-decoration: none; font-size: 16px; line-height: 1.7; }
.category-card li a:hover { color: #24405c; text-decoration: underline; }
.more { align-self: flex-end; font-size: 16px; font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 20px; font-size: 16px; color: #5c554a; }

.help-page { max-width: 860px; margin: 0 auto; padding: 32px 40px 96px; }
.page-title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 30px; font-weight: 900; line-height: 1.5; color: #2b2a26; }
.row-list { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid #e5ddcd; }
.row-list a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 8px; border-bottom: 1px solid #e5ddcd; color: #2b2a26; text-decoration: none; }
.row-list a::after { content: "›"; color: #8a8170; }
.row-list a:hover { background: #fff; color: #24405c; }

.article-layout { max-width: 1120px; margin: 0 auto; padding: 32px 40px 96px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.article-main { flex: 999 1 560px; min-width: 0; max-width: 760px; }
.article-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 88px; }
.lead { margin: 0 0 28px; color: #3a352b; }

.toc-box { margin: 0 0 40px; padding: 22px 28px; background: #f2ebdd; border-radius: 12px; }
.toc-box-title { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.toc-box ul { margin: 0; padding: 0; list-style: none; }
.toc-box li { margin: 0; }
.toc-box a { display: block; padding: 10px 0; text-decoration: none; line-height: 1.7; }
.toc-box a:hover { text-decoration: underline; }
.toc-box .toc-level-2 { margin-top: 12px; font-weight: 700; }
.toc-box .toc-level-2:first-child { margin-top: 0; }
.toc-box .toc-level-3 { margin-left: 12px; padding-left: 16px; border-left: 2px solid #d9cfbb; }
.toc-box .toc-level-3 a { padding: 6px 0; font-size: 16px; }
.toc-box a.toc-numbered, .side-toc a.toc-numbered { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 10px; }
.toc-number { display: flex; align-items: center; justify-content: center; min-height: 28px; border-radius: 6px; background: #24405c; color: #fff; font-size: 16px; line-height: 1.75; font-weight: 700; }
.side-toc a[aria-current="true"] .toc-number { background: #fff; color: #24405c; }

.article-body h2 { margin: 56px 0 18px; padding-bottom: 8px; border-bottom: 3px solid #24405c; font-size: 24px; font-weight: 900; line-height: 1.5; color: #24405c; scroll-margin-top: 88px; }
.article-body h3 { margin: 36px 0 12px; padding-left: 14px; border-left: 5px solid #c9a95f; font-size: 20px; font-weight: 700; line-height: 1.5; scroll-margin-top: 88px; }
.article-body p { margin: 0 0 16px; }
.article-body ol, .article-body ul { margin: 0 0 16px; padding-left: 1.6em; }
.article-body li { margin: 0 0 8px; }
.article-body strong { font-weight: 700; }
.article-body table { width: 100%; table-layout: fixed; margin: 24px 0; border-collapse: collapse; background: #fff; font-size: 16px; }
.article-body th, .article-body td { padding: 14px 16px; border: 1px solid #d9cfbb; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.article-body th { background: #f2ebdd; font-weight: 700; }
.article-body th:first-child { width: 38%; }
.article-body img[src*="/articles/mobile-"] { max-width: 300px; }
.article-body img { display: block; margin: 8px 0 24px; border: 1px solid #ddd3c1; border-radius: 10px; box-shadow: 0 4px 14px rgba(43,42,38,.08); }
.article-body blockquote { margin: 0 0 20px; padding: 14px 20px; background: #fff7e3; border: 1px solid #ecd9a8; border-radius: 10px; }
.article-body blockquote p:last-child { margin-bottom: 0; }

.side-title { margin: 0 0 10px; font-size: 17px; font-weight: 700; }
.side-related ul, .side-toc ul { margin: 0; padding: 0; list-style: none; }
.side-related li a { display: block; padding: 6px 0; font-size: 16px; line-height: 1.6; }
.side-toc { padding: 18px 16px; background: #fff; border: 1px solid #ece5d6; border-radius: 12px; box-shadow: 0 4px 14px rgba(43,42,38,.04); }
.side-toc .side-title { padding: 0 8px 8px; border-bottom: 1px solid #ece5d6; }
.side-toc a { display: block; padding: 8px; border-radius: 8px; color: #2b2a26; font-size: 16px; line-height: 1.6; text-decoration: none; }
.side-toc a:hover { background: #f5f0e6; }
.side-toc a[aria-current="true"] { background: #24405c; color: #fff; }

#search { --pagefind-ui-scale: 1; --pagefind-ui-primary: #24405c; --pagefind-ui-text: #2b2a26; --pagefind-ui-background: #fff; --pagefind-ui-border: #d9cfbb; --pagefind-ui-tag: #f2ebdd; --pagefind-ui-font: 'Zen Kaku Gothic New', sans-serif; }

.footer { background: #1a2f45; color: #d6cbb4; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.footer-nav a { color: #d6cbb4; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-copy { color: #a99c85; }

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-side { position: static; }
  .side-toc { display: none; }
}
@media (max-width: 720px) {
  .header { position: static; }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 20px; }
  .header-actions { display: contents; }
  .logo-img { height: 24px; }
  .search-form-header { grid-column: 1 / -1; width: 100%; }
  .hero { padding: 40px 20px 44px; }
  .hero-title { font-size: 26px; }
  .search-form-hero button { padding: 0 20px; }
  .help-top { padding: 40px 20px 64px; }
  .category-grid { grid-template-columns: minmax(0, 1fr); }
  .help-page, .article-layout { padding: 24px 20px 64px; }
  .page-title { font-size: 25px; }
  .toc-box { padding: 18px 16px; }
  .article-body h2 { font-size: 21px; }
  .article-body th, .article-body td { padding: 10px; }
  .footer-inner { padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
}
.section-block { margin-top: 36px; }
.section-heading a { color: inherit; text-decoration: none; }
.section-heading a:hover { text-decoration: underline; }
.section-heading { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.5; color: #24405c; scroll-margin-top: 80px; }
.section-block .row-list { margin-top: 12px; }
