@import url('https://cdn.jsdelivr.net/npm/pretendard@1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  color-scheme: light;

  /* surfaces */
  --bg: #FFFFFF;
  --card: #F1F4F1;
  --subtle: #F1F4F0;
  --border: #DCE2DA;
  --divider: #EBEBEB;

  /* text */
  --text: #1A1F1A;
  --text-secondary: #3A3F39;
  --text-weak: #6A6F69;

  /* brand */
  --brand: #23C067;
  --brand-strong: #157A40;
  --on-brand: #1A1F1A;
  --brand-tint: rgba(35, 192, 103, .1);
  --brand-tint-strong: rgba(35, 192, 103, .18);

  /* system */
  --r-card: 16px;
  --r-control: 12px;
  --r-pill: 999px;
  --shadow-float: 0 10px 28px rgba(26, 31, 26, .1);
  --shadow-card: 0 1px 2px rgba(26, 31, 26, .04);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #12160F;
    --card: #1B2018;
    --subtle: #1B2018;
    --border: #2E362B;
    --divider: #2E362B;

    --text: #EDF0EA;
    --text-secondary: #C2C9BD;
    --text-weak: #8D958A;

    --brand: #2FCE74;
    --brand-strong: #74D69C;
    --on-brand: #1A1F1A;
    --brand-tint: rgba(47, 206, 116, .14);
    --brand-tint-strong: rgba(47, 206, 116, .22);

    --shadow-float: 0 10px 28px rgba(0, 0, 0, .35);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .2);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--brand-tint-strong); color: var(--text); }
.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; }

/* ---------- icons: authored linear SVGs, rendered via mask so they inherit currentColor ---------- */
.icon { display: inline-block; flex: none; width: 18px; height: 18px; background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.icon-search { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); }
.icon-close { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3C/svg%3E"); }
.icon-chevron-down { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }
.icon-check { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 13 10 18 19 7'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 13 10 18 19 7'/%3E%3C/svg%3E"); }
.icon-arrow-right { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='13 6 19 12 13 18'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='13 6 19 12 13 18'/%3E%3C/svg%3E"); }
.icon-arrow-left { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'/%3E%3Cpolyline points='11 6 5 12 11 18'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'/%3E%3Cpolyline points='11 6 5 12 11 18'/%3E%3C/svg%3E"); }
.icon-download { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpolyline points='7 11 12 16 17 11'/%3E%3Cline x1='5' y1='20' x2='19' y2='20'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpolyline points='7 11 12 16 17 11'/%3E%3Cline x1='5' y1='20' x2='19' y2='20'/%3E%3C/svg%3E"); }
.icon-expand { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 3 3 3 3 9'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cpolyline points='3 15 3 21 9 21'/%3E%3Cpolyline points='15 21 21 21 21 15'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 3 3 3 3 9'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cpolyline points='3 15 3 21 9 21'/%3E%3Cpolyline points='15 21 21 21 21 15'/%3E%3C/svg%3E"); }
.icon-external { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E"); }
.icon-info { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cline x1='12' y1='11' x2='12' y2='16'/%3E%3Ccircle cx='12' cy='7.5' r='.75' fill='black' stroke='none'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cline x1='12' y1='11' x2='12' y2='16'/%3E%3Ccircle cx='12' cy='7.5' r='.75' fill='black' stroke='none'/%3E%3C/svg%3E"); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; height: 72px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--divider); background: var(--bg); }
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; height: 36px; width: auto; }
@media (prefers-color-scheme: dark) {
  .brand-logo { background: #fff; padding: 6px 10px; border-radius: 10px; }
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-search, .service-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: var(--r-control); cursor: pointer; font-size: 14px; font-weight: 600; }
.header-search { padding: 0 14px; color: var(--text-secondary); border: 1px solid transparent; background: transparent; }
.header-search:hover { background: var(--subtle); }
.header-search[aria-expanded="true"] { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-strong); }
.service-link { padding: 0 16px; color: var(--text); border: 1px solid var(--border); background: var(--card); }
.service-link:hover { border-color: var(--brand); color: var(--brand-strong); }
.header-search:focus-visible, .service-link:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px;
}

.search-wrap { position: relative; }
.search-panel { position: absolute; z-index: 35; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 32px)); }
.search-box { width: 100%; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-radius: var(--r-control); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-float); }
.search-icon { color: var(--text-weak); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.search-box input::placeholder { color: var(--text-weak); }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.search-box kbd { padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-weak); background: var(--subtle); font-size: 12px; font-family: inherit; }

/* ---------- home hero ---------- */
.hero-shell { padding: clamp(40px, 7vw, 80px) clamp(20px, 8vw, 140px) clamp(24px, 4vw, 40px); display: flex; justify-content: center; text-align: center; background: var(--bg); }
.hero-copy { width: min(760px, 100%); }
.hero-copy h1 { margin: 0; color: var(--text); font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; line-height: 1.25; letter-spacing: -.03em; }
.hero-copy > p:last-child { max-width: 560px; margin: 14px auto 0; color: var(--text-secondary); font-size: 17px; line-height: 1.6; }

/* ---------- manual list ---------- */
.manual-shell { max-width: 1240px; margin: 0 auto; padding: 24px 32px 120px; }
.section-heading { margin-bottom: 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 0; color: var(--text); font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.section-heading > div > p { margin: 8px 0 0; color: var(--text-secondary); font-size: 16px; }
.section-heading-actions { display: flex; align-items: center; gap: 16px; }
.result-count { margin: 0; color: var(--text-weak); font-size: 14px; }
.result-count strong { color: var(--brand-strong); font-size: 18px; }
.select-mode-btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--r-control); background: var(--card); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; }
.select-mode-btn:hover { border-color: var(--brand); color: var(--brand-strong); }
.select-mode-btn.is-active { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-strong); }

.category-groups { display: grid; gap: 40px; }
.manual-group { position: relative; display: grid; grid-template-columns: 240px 1fr; gap: 26px; padding-bottom: 64px; border-bottom: 2px solid var(--brand); }
.manual-group:last-child { border-bottom: 0; padding-bottom: 0; }
.group-divider-character { position: absolute; bottom: 0; height: 56px; width: auto; pointer-events: none; }
.group-divider-character.align-right { right: 8px; }
.group-divider-character.align-left { left: 8px; }
.group-label > span { display: inline-flex; min-width: 34px; height: 24px; align-items: center; justify-content: center; padding: 0 8px; border-radius: var(--r-pill); color: var(--brand-strong); background: var(--brand-tint); font-size: 11px; font-weight: 800; }
.group-label h3 { margin: 12px 0 4px; color: var(--text); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.group-label p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.manual-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.manual-card { position: relative; min-height: 180px; padding: 20px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-card); transition: transform .16s ease, border-color .16s ease, background-color .16s ease; }
.manual-card:hover, .manual-card:focus-visible { transform: translateY(-2px); border-color: var(--brand); background: var(--brand-tint); }
.manual-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.card-index { color: var(--text-weak); font-size: 12px; font-weight: 700; }
.manual-card div { margin-top: auto; }
.manual-card strong { display: block; color: var(--text); font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.manual-card p { margin: 6px 0 0; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.manual-card em { margin-top: 12px; display: inline-block; color: var(--brand-strong); font-size: 12px; font-style: normal; font-weight: 700; }
.manual-card .arrow { margin-top: 14px; color: var(--brand-strong); }
.card-check { display: none; position: absolute; z-index: 1; top: 14px; right: 14px; width: 26px; height: 26px; align-items: center; justify-content: center; border: 2px solid var(--border); border-radius: 50%; background: var(--card); }
.category-groups.select-mode .card-check { display: flex; }
.category-groups.select-mode .manual-card { cursor: pointer; }
.manual-card.is-selected { border-color: var(--brand); background: var(--brand-tint-strong); }
.manual-card.is-selected .card-check { border-color: var(--brand); background: var(--brand); }
.card-check::after { content: ''; display: block; width: 12px; height: 12px; background-color: var(--on-brand); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 13 10 18 19 7'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 13 10 18 19 7'/%3E%3C/svg%3E"); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; opacity: 0; }
.manual-card.is-selected .card-check::after { opacity: 1; }

.select-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; padding: 16px 24px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); color: var(--text); background: var(--card); border-top: 1px solid var(--border); box-shadow: var(--shadow-float); }
.select-bar strong { font-size: 15px; font-weight: 700; }
.select-bar-actions { display: flex; gap: 10px; }
.select-bar button { min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-control); font-size: 14px; font-weight: 700; cursor: pointer; }
.select-bar .select-all { color: var(--text); background: var(--card); border-color: var(--border); }
.select-bar .select-all:hover { border-color: var(--brand); color: var(--brand-strong); }
.select-cancel { color: var(--text-secondary); background: var(--subtle); }
.select-download { color: var(--on-brand); background: var(--brand); }
.select-download:disabled { opacity: .5; cursor: not-allowed; }
body.has-select-bar .manual-shell { padding-bottom: 160px; }
.empty-state { padding: 64px 24px; text-align: center; border: 1px dashed var(--border); border-radius: var(--r-card); background: var(--subtle); }
.empty-state strong { color: var(--text); font-size: 20px; font-weight: 800; }
.empty-state p { margin: 7px 0 20px; color: var(--text-secondary); }
.empty-state button { min-height: 44px; padding: 0 18px; border: 1px solid var(--border); border-radius: var(--r-control); color: var(--text); background: var(--card); font-weight: 700; cursor: pointer; }
.empty-state button:hover { border-color: var(--brand); color: var(--brand-strong); }

/* ---------- article view ---------- */
.article-view { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 280px minmax(0,1fr); }
.article-sidebar { position: sticky; top: 72px; align-self: start; height: calc(100vh - 72px); padding: 40px 28px; border-right: 1px solid var(--divider); background: var(--bg); overflow-y: auto; }
.back-home { margin-bottom: 8px; min-height: 48px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--r-control); color: var(--text); background: var(--card); font-size: 15px; font-weight: 700; }
.back-home:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-tint); }
.pdf-download-btn { margin-top: 20px; min-height: 46px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--r-control); color: var(--text); background: var(--card); font-size: 14px; font-weight: 700; cursor: pointer; }
.pdf-download-btn:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-tint); }
.pdf-download-btn:disabled { opacity: .6; cursor: progress; }
.sidebar-label { margin: 32px 0 8px; display: inline-flex; padding: 5px 10px; border-radius: var(--r-pill); color: var(--brand-strong); background: var(--brand-tint); font-size: 12px; font-weight: 700; }
.sidebar-title { margin: 0 0 22px; display: block; color: var(--text); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.article-sidebar nav { display: grid; gap: 4px; }
.article-sidebar nav a { min-height: 44px; padding: 10px 12px; border-left: 2px solid transparent; border-radius: 0 var(--r-control) var(--r-control) 0; color: var(--text-secondary); font-size: 14px; }
.article-sidebar nav a:hover, .article-sidebar nav a.is-current { color: var(--brand-strong); border-color: var(--brand); background: var(--brand-tint); font-weight: 700; }
.mobile-toc { display: none; }
.article-content { min-width: 0; }
.article-hero { padding: clamp(48px, 6vw, 84px) clamp(24px, 6vw, 88px); display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: center; gap: 56px; background: var(--subtle); }
.article-hero h1 { margin: 0; color: var(--text); font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; line-height: 1.28; letter-spacing: -.02em; }
.lead { max-width: 680px; margin: 20px 0 0; color: var(--text-secondary); font-size: 17px; line-height: 1.6; }
.article-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-meta span { padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); color: var(--brand-strong); background: var(--card); font-size: 12px; font-weight: 700; }
.hero-roadmap { padding: 24px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-card); }
.hero-roadmap > p { margin: 0 0 14px; color: var(--brand-strong); font-size: 13px; font-weight: 800; }
.hero-roadmap ol { margin: 0; padding: 0; display: grid; gap: 2px; list-style: none; }
.hero-roadmap li a { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; margin: 0 -8px; border-radius: var(--r-control); color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.hero-roadmap li a:hover, .hero-roadmap li a:focus-visible { background: var(--brand-tint); color: var(--brand-strong); }
.hero-roadmap li a span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--on-brand); background: var(--brand); font-size: 11px; font-weight: 800; }
.video-block { margin: 56px clamp(24px, 6vw, 88px) 0; }
.video-block h2 { margin: 0 0 16px; color: var(--text); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.video-card { margin: 0; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--card); overflow: hidden; }
.video-card figcaption { padding: 12px 16px 0; color: var(--brand-strong); font-size: 13px; font-weight: 800; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video-card.is-vertical .video-frame { aspect-ratio: 9 / 16; max-width: 320px; margin: 0 auto; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card figcaption + .video-frame { margin-top: 10px; }
.intro-panel { margin: 56px clamp(24px, 6vw, 88px) 0; padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 16px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--subtle); }
.intro-panel-icon { width: 24px; height: 24px; margin-top: 2px; color: var(--brand-strong); }
.intro-panel-label { display: block; color: var(--brand-strong); font-size: 13px; font-weight: 800; }
.intro-panel p { margin: 6px 0 0; color: var(--text); font-size: 17px; font-weight: 700; line-height: 1.5; }
.guide-section { padding: 88px clamp(24px, 6vw, 88px); display: grid; grid-template-columns: minmax(280px,.78fr) minmax(470px,1.22fr); align-items: start; gap: 56px; border-bottom: 1px solid var(--divider); }
.guide-section.alt { background: var(--subtle); }
.section-copy h2 { margin: 0; color: var(--text); font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.section-copy > p:not(.step-kicker) { margin: 18px 0 0; color: var(--text-secondary); font-size: 16px; }
.section-copy ol { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: steps; display: grid; gap: 14px; }
.section-copy ol li { display: flex; gap: 12px; align-items: flex-start; counter-increment: steps; color: var(--text-secondary); font-size: 16px; }
.section-copy ol li::before { content: counter(steps); flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--on-brand); background: var(--brand); font-size: 12px; font-weight: 800; }
.completion-note { margin: 28px 0 0; padding: 16px; display: grid; gap: 4px; border: 1px solid var(--border); border-radius: var(--r-control); background: var(--brand-tint); }
.completion-note strong { color: var(--brand-strong); font-size: 13px; }
.completion-note span { color: var(--text-secondary); font-size: 14px; }
.check-list { margin: 28px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-secondary); font-size: 16px; }
.check-list li::before { content: ''; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; background-color: var(--brand-strong); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 13 10 18 19 7'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 13 10 18 19 7'/%3E%3C/svg%3E"); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.phone-gallery { padding: 28px; display: grid; align-items: start; justify-content: center; gap: 24px 18px; border-radius: 24px; background: var(--subtle); overflow: hidden; }
.phone-gallery.three { grid-template-columns: repeat(2, minmax(0,230px)); }
.phone-gallery.two { grid-template-columns: repeat(2, minmax(0,230px)); }
.phone-gallery figure { margin: 0; min-width: 0; position: relative; }
.visual-step figcaption { min-height: 70px; margin-bottom: 12px; display: grid; align-content: start; gap: 5px; }
.visual-step figcaption span { color: var(--brand-strong); font-size: 12px; font-weight: 800; }
.visual-step figcaption strong { color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.5; }
.phone-gallery img { width: 100%; max-height: 520px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--card); }
.phone-gallery .detail-crop img { max-height: 410px; border-radius: 12px; }
.phone-gallery.one { grid-template-columns: minmax(0,260px); }
.zoomable-image { width: 100%; min-height: 52px; aspect-ratio: 660 / 1435; padding: 0; position: relative; display: block; border: 0; border-radius: var(--r-card); color: inherit; background: var(--card); cursor: zoom-in; }
.zoomable-image img { height: 100%; object-fit: contain; }
.wide-figure { grid-column: 1 / -1; }
.zoomable-image.has-aspect img { width: 100%; height: 100%; }
.screen-number { position: absolute; z-index: 2; left: -8px; top: -10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--text); background: var(--card); border: 1px solid var(--border); font-size: 12px; font-weight: 800; }
.zoomable-image .zoom-hint { position: absolute; z-index: 3; right: 9px; bottom: 9px; min-height: 34px; padding: 6px 12px 6px 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill); color: #fff; background: rgba(0,0,0,.7); font-size: 12px; font-weight: 700; }
.zoomable-image:hover .zoom-hint, .zoomable-image:focus-visible .zoom-hint { background: var(--brand-strong); }
.hero-device .zoomable-image { position: relative; z-index: 1; }
.image-dialog { width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--border); border-radius: 20px; color: var(--text); background: var(--card); box-shadow: var(--shadow-float); }
.image-dialog::backdrop { background: rgba(8,18,13,.7); backdrop-filter: blur(4px); }
.dialog-close { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--r-control); color: var(--text); background: var(--card); font-weight: 700; cursor: pointer; }
.dialog-close:hover { border-color: var(--brand); color: var(--brand-strong); }
.dialog-stage { max-height: calc(100dvh - 160px); padding: 18px; display: grid; place-items: start center; overflow: auto; overscroll-behavior: contain; background: var(--subtle); }
.dialog-stage img { width: min(760px, 180vw); max-width: none; max-height: none; object-fit: contain; border-radius: 14px; background: var(--card); }
.image-dialog[open] { display: block; }
.dialog-toolbar { min-height: 68px; padding: 10px 12px 10px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--divider); }
.dialog-toolbar strong { font-size: 17px; font-weight: 800; }
.image-dialog > p { margin: 0; padding: 14px 22px 18px; color: var(--text-secondary); font-size: 14px; }
.notice { margin-top: 28px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--r-control); background: var(--subtle); color: var(--text-secondary); }
.notice strong { color: var(--brand-strong); white-space: nowrap; }
.definition-list { margin: 28px 0 0; padding: 0; display: grid; gap: 0; list-style: none; border-top: 1px solid var(--divider); }
.definition-list li { padding: 15px 0; display: grid; grid-template-columns: 90px 1fr; gap: 16px; border-bottom: 1px solid var(--divider); }
.definition-list strong { color: var(--brand-strong); }
.definition-list span { color: var(--text-secondary); }
.article-footer { margin: 0 clamp(24px, 6vw, 88px) 90px; padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border: 1px solid var(--border); border-radius: var(--r-card); color: var(--text); background: var(--card); }
.article-footer p { margin: 0; color: var(--text-weak); font-size: 12px; font-weight: 700; }
.article-footer h2 { margin: 5px 0 0; font-size: 22px; font-weight: 800; }
.article-footer a { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; gap: 10px; border-radius: var(--r-control); color: var(--on-brand); background: var(--brand); font-size: 14px; font-weight: 700; }
.article-footer a:hover { background: var(--brand-strong); color: #fff; }

@media screen and (max-width: 1080px) {
  .manual-group { grid-template-columns: 1fr; }
  .manual-cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .article-view { grid-template-columns: 220px minmax(0,1fr); }
  .article-hero { grid-template-columns: 1fr 260px; gap: 40px; }
  .guide-section { grid-template-columns: 1fr; gap: 44px; }
  .phone-gallery { min-height: 500px; }
}

@media screen and (max-width: 760px) {
  .site-header { height: 64px; padding-inline: 18px; }
  .brand-logo { height: 30px; }
  .header-search span:last-child { display: none; }
  .header-search, .service-link { min-height: 48px; }
  .service-link { padding-inline: 14px; font-size: 13px; }
  .hero-shell { padding: 36px 18px 32px; }
  .search-box { height: 56px; }
  .search-box kbd { display: none; }
  .manual-shell { padding: 20px 18px 80px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .category-groups { gap: 32px; }
  .manual-group { padding-bottom: 52px; }
  .group-divider-character { height: 44px; }
  .manual-cards { grid-template-columns: 1fr; }
  .manual-card { min-height: 150px; padding: 20px; }
  .manual-card strong { font-size: 17px; }
  .manual-card p { font-size: 15px; }
  .article-view { display: block; }
  .article-sidebar { position: static; height: auto; padding: 14px 18px; border-right: 0; border-bottom: 1px solid var(--divider); overflow: visible; }
  .sidebar-label, .sidebar-title { display: none; }
  .article-sidebar .back-home { margin-bottom: 12px; }
  .desktop-toc { display: none !important; }
  .mobile-toc { display: block; }
  .mobile-toc summary { min-height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--border); border-radius: var(--r-control); background: var(--card); cursor: pointer; list-style: none; }
  .mobile-toc summary::-webkit-details-marker { display: none; }
  .mobile-toc summary::after { content: ''; width: 18px; height: 18px; background-color: var(--brand-strong); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; transition: transform .16s ease; }
  .mobile-toc[open] summary::after { transform: rotate(180deg); }
  .mobile-toc summary span { font-size: 16px; font-weight: 700; }
  .mobile-toc summary strong { margin-left: auto; color: var(--brand-strong); font-size: 14px; }
  .mobile-toc nav { margin-top: 8px; padding: 8px; display: grid; gap: 4px; border: 1px solid var(--border); border-radius: var(--r-control); background: var(--card); }
  .mobile-toc nav a { min-height: 48px; padding: 13px 14px; border: 0; border-radius: 10px; background: var(--subtle); font-size: 15px; }
  .article-hero { padding: 40px 18px 56px; grid-template-columns: 1fr; }
  .hero-roadmap { padding: 20px; }
  .intro-panel { margin: 36px 18px 0; padding: 20px; grid-template-columns: 1fr; }
  .guide-section { padding: 64px 18px; }
  .completion-note { padding: 16px; }
  .phone-gallery { width: 100%; min-height: auto; padding: 24px 18px; border-radius: 20px; overflow: visible; justify-content: stretch; }
  .phone-gallery.three, .phone-gallery.two, .phone-gallery.one { grid-template-columns: minmax(0,1fr); }
  .phone-gallery figure { width: min(100%, 360px); margin-inline: auto; }
  .phone-gallery img { width: 100%; max-height: none; }
  .visual-step figcaption { min-height: auto; margin-bottom: 12px; }
  .article-footer { margin: 0 18px 60px; padding: 24px; align-items: flex-start; flex-direction: column; }
  .article-footer a { width: 100%; min-height: 50px; justify-content: center; font-size: 15px; }
  .image-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; }
  .dialog-stage { max-height: calc(100dvh - 174px); padding: 10px; }
  .dialog-stage img { width: min(760px, 190vw); }
  .image-dialog > p { font-size: 15px; }
}

@media print {
  @page { size: A4 landscape; margin: 14mm 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .article-sidebar, .image-dialog, .article-footer, .zoom-hint, .screen-number, .video-block { display: none !important; }
  body, .article-view { display: block; }
  .article-hero { grid-template-columns: 1fr; padding: 0 0 24px; background: #fff; }
  .article-hero h1 { break-after: avoid; }
  .hero-roadmap { box-shadow: none; }
  .intro-panel { margin: 16px 0; break-inside: avoid; break-after: page; }
  .guide-section { padding: 28px 0; grid-template-columns: 1fr; gap: 24px; border-bottom: none; break-before: page; }
  .section-copy { break-inside: avoid; break-after: avoid; }
  .section-copy h2 { break-after: avoid; }
  .phone-gallery { padding: 16px; }
  .visual-step { break-inside: avoid; }
  .phone-gallery .visual-step:nth-child(3n):not(:last-child) { break-after: page; }
  .zoomable-image { cursor: default; }
  .phone-gallery img { max-height: 420px; box-shadow: none; }
  h1, h2 { outline: none; }
}

.pdf-export { position: fixed; left: -9999px; top: 0; width: 1600px; padding: 56px 64px; box-sizing: border-box; background: #fff; }
.pdf-export .zoom-hint { display: none !important; }
.pdf-export .article-hero { padding: 0; background: #fff; }
.pdf-export .intro-panel { margin: 72px 0 0; }
.pdf-export .video-qr-card { margin: 32px 0 0; padding: 24px; border: 1px solid #DCE2DA; border-radius: 16px; background: #F1F4F0; }
.pdf-export .video-qr-card strong { display: block; margin-bottom: 16px; color: #1A1F1A; font-size: 18px; font-weight: 800; }
.pdf-export .video-qr-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.pdf-export .video-qr-item { display: flex; align-items: center; gap: 14px; }
.pdf-export .video-qr-item img { width: 84px; height: 84px; border-radius: 8px; background: #fff; }
.pdf-export .video-qr-item p { margin: 0; max-width: 160px; color: #157A40; font-size: 14px; font-weight: 700; line-height: 1.4; }
.pdf-export .guide-section { padding: 0; border-bottom: none; background: #fff; }
.pdf-export .pdf-continued-title { margin: 0 0 32px; color: #1A1F1A; font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.pdf-export .phone-gallery.showcase { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 32px; background: #F1F4F0; }
.pdf-export .phone-gallery.showcase .visual-step:not(.wide-figure) { flex: 0 0 320px; }
.pdf-export .phone-gallery.showcase .visual-step:not(.wide-figure) img { max-height: 640px; }
.pdf-export .phone-gallery.showcase .wide-figure { flex: 1 1 480px; max-width: 820px; }
.pdf-export .phone-gallery.showcase .wide-figure img { max-height: none; }
.pdf-export .zoomable-image { cursor: default; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
