:root {
  --plum-950: #321624;
  --plum-900: #482035;
  --plum-800: #5b2940;
  --plum-700: #71334f;
  --rose-600: #cf3f7d;
  --rose-500: #df4d8d;
  --rose-100: #fde7f0;
  --rose-50: #fff4f8;
  --sage-700: #2f7053;
  --sage-100: #e9f6ee;
  --amber-700: #87580f;
  --amber-100: #fff4d9;
  --ink: #2b2227;
  --muted: #6f6268;
  --line: #eadde3;
  --paper: #fffdfd;
  --surface: #fff7fa;
  --surface-2: #f9eef3;
  --shadow-sm: 0 8px 24px rgba(77, 31, 52, .08);
  --shadow-md: 0 18px 56px rgba(77, 31, 52, .14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --header-h: 76px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 6%, rgba(223, 77, 141, .09), transparent 24rem),
    linear-gradient(180deg, #fffafb 0, #fffdfd 34rem);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

button, input { font: inherit; }

a { color: var(--rose-600); text-underline-offset: .2em; }

:focus-visible {
  outline: 3px solid #1877c9;
  outline-offset: 3px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon, .choice-icon, .flow-arrow {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--plum-900);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.scroll-progress {
  position: fixed;
  z-index: 1001;
  inset: 0 0 auto;
  height: 4px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--rose-500);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid rgba(234, 221, 227, .9);
  background: rgba(255, 253, 253, .94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--rose-500), #c93777);
  font-family: Georgia, serif;
  font-size: 21px;
}

.brand strong, .brand small { display: block; }
.brand strong { line-height: 1.25; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.version-badge {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.menu-button {
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--plum-800);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.page-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
}

.manual-nav {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(255, 250, 252, .8);
}

.nav-inner { padding: 30px 20px 36px; }
.nav-title { margin: 0 10px 12px; color: var(--plum-900); font-size: 14px; font-weight: 800; }
.manual-nav nav { display: grid; gap: 3px; }

.manual-nav nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 10px;
  border-radius: 10px;
  color: #5f5057;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.manual-nav nav a span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--plum-700);
  background: #fff;
  font-size: 11px;
}

.manual-nav nav a:hover { background: var(--rose-100); }
.manual-nav nav a.is-active { color: var(--plum-900); background: var(--rose-100); }
.manual-nav nav a.is-active span { border-color: var(--rose-500); color: #fff; background: var(--rose-500); }

.nav-group {
  margin: 20px 10px 5px;
  color: #8c7781;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.nav-help {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid #efdae4;
  border-radius: 14px;
  color: var(--plum-800);
  background: #fff6f9;
  font-size: 12px;
  line-height: 1.65;
}

.nav-help .icon { margin-bottom: 5px; }
.nav-help p { margin: 0; }

main {
  min-width: 0;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 44px clamp(24px, 4vw, 64px) 80px;
}

.guide-section {
  margin: 0 0 82px;
  scroll-margin-top: calc(var(--header-h) + 22px);
}

.guide-section.search-hidden { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-height: 0;
  margin-bottom: 34px;
  padding: clamp(34px, 5vw, 68px);
  border: 1px solid #f0dde5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,243,248,.96)),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-copy { max-width: 760px; }

.eyebrow, .section-number {
  margin: 0 0 10px;
  color: var(--rose-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.hero h1 {
  margin: 0;
  color: var(--plum-950);
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.25;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.35;
}

.button-primary { color: #fff; background: var(--rose-600); box-shadow: 0 10px 24px rgba(207, 63, 125, .2); }
.button-primary:hover { background: #b9346d; }
.button-secondary, .button-light { border-color: var(--line); color: var(--plum-800); background: #fff; }
.button-secondary:hover, .button-light:hover { border-color: #ddb9ca; background: #fff7fa; }
.button-light { min-height: 42px; padding: 8px 14px; font-size: 14px; }

.hero-card {
  position: relative;
  padding: 32px 28px 26px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(150deg, var(--plum-800), var(--plum-950));
  box-shadow: var(--shadow-md);
}

.hero-card-number {
  position: absolute;
  top: -22px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 5px solid #fff;
  border-radius: 18px;
  background: var(--rose-500);
  font-size: 24px;
  font-weight: 900;
}

.hero-card h2 { margin: 0 0 18px; font-size: 22px; }
.plain-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.plain-steps li { display: flex; align-items: center; gap: 12px; }
.plain-steps span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; background: rgba(255,255,255,.13); font-size: 13px; font-weight: 800; }

.search-panel {
  margin: 0 0 64px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.search-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--plum-900);
  font-size: 14px;
  font-weight: 800;
}

.search-panel input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #d9c9d0;
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
}

.search-panel input:focus { border-color: var(--rose-500); }
.search-panel p { margin: 8px 2px 0; color: var(--muted); font-size: 13px; }
.search-panel p:empty { margin: 0; }

.search-empty {
  margin: -36px 0 64px;
  padding: 28px;
  border: 1px dashed #d8c3cd;
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.search-empty .icon { width: 30px; height: 30px; color: var(--rose-500); }
.search-empty p { margin: 10px auto 0; max-width: 620px; }

.section-heading { max-width: 840px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; color: var(--plum-950); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.35; letter-spacing: -.02em; }
.section-heading > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 18px; }

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rule-card {
  position: relative;
  min-height: 215px;
  padding: 28px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.rule-card > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--plum-800);
  font-size: 16px;
  font-weight: 900;
}

.rule-card h3 { margin: 0 0 8px; color: var(--plum-950); font-size: 19px; }
.rule-card p { margin: 0; color: var(--muted); font-size: 15px; }

.login-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.choice-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.choice-icon {
  width: 46px;
  height: 46px;
  padding: 10px;
  flex: 0 0 46px;
  border-radius: 14px;
  color: var(--rose-600);
  background: var(--rose-100);
}

.choice-card h3 { margin: 0 0 5px; font-size: 20px; }
.choice-card p { margin: 0 0 9px; color: var(--muted); font-size: 15px; }
.choice-card a { font-weight: 800; }

.step-list {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.step-list li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 22px 24px;
}

.step-list li + li { border-top: 1px solid var(--line); }

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #fff;
  background: var(--rose-600);
  font-weight: 900;
}

.step-list h3 { margin: 1px 0 5px; font-size: 18px; }
.step-list p { margin: 0; color: var(--muted); font-size: 15px; }
.compact-steps { grid-template-columns: repeat(3, 1fr); }
.compact-steps li { grid-template-columns: 42px 1fr; }
.compact-steps li + li { border-top: 0; border-left: 1px solid var(--line); }

.manual-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.shot-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: #fff;
  cursor: zoom-in;
}

.shot-canvas { position: relative; display: block; }
.shot-canvas img { display: block; width: 100%; }

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 4px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--rose-600);
  box-shadow: 0 3px 12px rgba(63, 20, 40, .35);
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 900;
}

.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(50, 22, 36, .86);
  font-size: 12px;
  font-weight: 800;
}

.manual-shot figcaption {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 13px;
}

.manual-shot figcaption strong { color: var(--rose-600); }

.legend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.legend-grid.three { grid-template-columns: repeat(3, 1fr); }

.legend-grid > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.legend-grid > div > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: var(--rose-600);
  font-size: 12px;
  font-weight: 900;
}

.legend-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.legend-grid strong { display: block; color: var(--ink); font-size: 14px; }

.flow-diagram {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff, var(--rose-50));
}

.flow-diagram > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 2px 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border: 1px solid #ecd9e2;
  border-radius: 15px;
  background: #fff;
}

.flow-diagram > div .icon { grid-row: 1 / 3; width: 38px; height: 38px; padding: 8px; border-radius: 12px; color: var(--rose-600); background: var(--rose-100); }
.flow-diagram strong { align-self: end; }
.flow-diagram span { align-self: start; color: var(--muted); font-size: 13px; }
.flow-arrow { width: 30px; height: 30px; margin: auto; color: var(--rose-500); }

.two-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.notice {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 13px;
  align-items: start;
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 16px;
}

.notice .icon { width: 28px; height: 28px; margin-top: 2px; }
.notice p { margin: 0; }
.notice.warning { border: 1px solid #f1d799; color: #674711; background: var(--amber-100); }
.notice.info { border: 1px solid #c7e4d3; color: #285c45; background: var(--sage-100); }

.task-table {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.task-row {
  display: grid;
  grid-template-columns: minmax(160px, .35fr) 1fr;
}

.task-row + .task-row { border-top: 1px solid var(--line); }
.task-row > span { padding: 16px 18px; }
.task-row > span + span { border-left: 1px solid var(--line); }
.task-row:not(.task-head) > span:first-child { color: var(--plum-900); background: #fff8fa; font-weight: 800; }
.task-head { color: #fff; background: var(--plum-800); font-size: 14px; font-weight: 800; }

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.check-list .icon { width: 25px; height: 25px; padding: 4px; border-radius: 8px; color: var(--sage-700); background: var(--sage-100); }

code {
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--plum-900);
  background: var(--rose-100);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: .9em;
}

.task-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.task-card-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.task-card-grid .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: var(--rose-600); background: var(--rose-100); }
.task-card-grid h3 { margin: 12px 0 6px; font-size: 18px; }
.task-card-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.home-screen-guides article { padding: 24px; }
.home-screen-guides h3 { margin-bottom: 14px; }
.device-steps { display: grid; gap: 10px; margin: 0; padding-left: 1.4em; color: var(--muted); font-size: 15px; }
.device-steps li { padding-left: 3px; }
.notification-steps { margin-top: 18px; }

.member-section {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #f0dfe6;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fffafb, #fff);
}

.portrait-shot { max-width: 900px; margin-inline: auto; }

.first-registration-steps { margin-bottom: 26px; }
.first-registration-shot { max-width: 390px; margin: 0 auto; }
.registration-subheading { margin: 36px 0 16px; color: var(--plum-950); font-size: 24px; }
.example-label { margin: 16px 0 10px; color: var(--plum-900); font-weight: 700; }
.first-registration-home { margin-top: 38px; }
.first-registration-home > h3 { margin: 0 0 8px; color: var(--plum-950); font-size: 23px; }
.first-registration-home > p { margin: 0; color: var(--muted); }
.first-registration-home > p:last-child { margin-top: 18px; }
.first-registration-home a { color: var(--rose-600); font-weight: 700; }
.first-registration-home .home-screen-guides h4 { margin: 12px 0 14px; font-size: 18px; }
.android-choice-shot { max-width: 720px; margin: 20px auto 0; }
.required-guide { padding: clamp(20px, 3vw, 30px); border: 2px solid var(--rose-500); border-radius: 20px; background: var(--rose-50); }
.first-registration-home.required-guide > .required-label { display: inline-flex; gap: 7px; align-items: center; margin: 0 0 10px; padding: 5px 11px; border-radius: 999px; color: #fff; background: var(--plum-800); font-size: 14px; font-weight: 800; }
.required-label .icon { width: 17px; height: 17px; }
.first-registration-home.required-guide > h3 { font-size: clamp(26px, 3vw, 34px); text-wrap: balance; }
.first-registration-home.required-guide > .required-instruction { color: var(--plum-950); font-size: 18px; font-weight: 800; }
.first-registration-home.required-guide > .example-label { margin-top: 18px; color: var(--plum-900); font-weight: 700; }

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.faq-list summary {
  position: relative;
  padding: 17px 54px 17px 20px;
  color: var(--plum-950);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--rose-600); background: var(--rose-100); transform: translateY(-50%); font-size: 20px; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > div { padding: 0 20px 18px; color: var(--muted); }
.faq-list details p { margin: 0; }

.support-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--plum-800);
}

.support-card .icon { width: 48px; height: 48px; padding: 11px; border-radius: 15px; background: rgba(255,255,255,.12); }
.support-card h3 { margin: 0 0 5px; }
.support-card p { margin: 0; color: rgba(255,255,255,.86); }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 90px;
  padding: 30px 0 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand strong { color: var(--ink); }
.footer-brand .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }

.back-to-top {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: var(--plum-800);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s, transform .2s;
}

.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top .icon { transform: rotate(-90deg); }
@media (max-width: 1439px) {
  .back-to-top { display: none; }
}

.image-dialog {
  width: min(96vw, 1420px);
  height: min(94vh, 1020px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #f3ebef;
  box-shadow: 0 24px 90px rgba(30, 10, 20, .35);
}

.image-dialog::backdrop { background: rgba(28, 12, 20, .78); backdrop-filter: blur(5px); }
.image-dialog[open] { display: flex; flex-direction: column; }
.dialog-bar { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 10px 14px 10px 20px; color: #fff; background: var(--plum-900); }
.dialog-bar p { margin: 0; font-size: 14px; font-weight: 800; }
.dialog-bar button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; font-weight: 800; }
.dialog-scroll { flex: 1 1 auto; min-height: 0; width: 100%; overflow: auto; padding: 18px; }
.dialog-canvas { width: max(100%, 1100px); margin: 0 auto; }
.dialog-canvas.is-portrait { width: min(100%, 420px); }
.dialog-canvas.is-compact { width: max(100%, 640px); }
.dialog-canvas img { display: block; width: 100%; max-width: none; border-radius: 10px; box-shadow: var(--shadow-sm); }
.dialog-canvas .pin { width: 42px; height: 42px; font-size: 17px; }

@media (max-width: 1120px) {
  .page-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .nav-inner { padding-inline: 14px; }
  main { padding-inline: 34px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-card { max-width: 520px; }
  .rule-grid { grid-template-columns: 1fr; }
  .rule-card { min-height: 0; }
  .legend-grid { grid-template-columns: repeat(2, 1fr); }
  .compact-steps { grid-template-columns: 1fr; }
  .compact-steps li + li { border-top: 1px solid var(--line); border-left: 0; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .site-header { min-height: var(--header-h); padding: 9px 14px; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
  .header-actions .version-badge, .hide-small { display: none; }
  .menu-button { display: inline-flex; }
  .page-shell { display: block; }
  .manual-nav { position: fixed; z-index: 95; top: var(--header-h); right: 0; bottom: 0; left: 0; height: auto; border-right: 0; background: rgba(50, 22, 36, .48); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .manual-nav.is-open { visibility: visible; opacity: 1; }
  .nav-inner { width: min(88vw, 360px); height: 100%; overflow-y: auto; padding: 24px 16px 32px; background: #fffafd; transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow-md); }
  .manual-nav.is-open .nav-inner { transform: translateX(0); }
  main { padding: 26px 18px 64px; }
  .guide-section { margin-bottom: 66px; }
  .hero { padding: 32px 24px; border-radius: 22px; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .hero-lead { font-size: 16px; }
  .login-choice-grid, .two-shot-grid, .task-card-grid { grid-template-columns: 1fr; }
  .flow-diagram { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .legend-grid, .legend-grid.three { grid-template-columns: 1fr 1fr; }
  .member-section { padding: 26px 18px; margin-inline: -4px; }
}

@media (max-width: 520px) {
  .brand strong { font-size: 14px; }
  .brand small { font-size: 10px; }
  .menu-button { min-height: 42px; padding: 7px 11px; }
  .hero { gap: 34px; padding: 28px 20px; }
  .hero h1 { font-size: 34px; }
  .admin-hero-title span { display: block; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-card { padding: 28px 20px 22px; }
  .hero-card-number { right: 18px; }
  .search-panel { padding: 18px; }
  .section-heading h2 { font-size: 29px; }
  .section-heading > p:last-child { font-size: 16px; }
  .choice-card { align-items: flex-start; padding: 20px; }
  .step-list li { grid-template-columns: 40px 1fr; gap: 11px; padding: 18px 16px; }
  .step-number { width: 36px; height: 36px; border-radius: 11px; }
  .pin { width: 28px; height: 28px; border-width: 3px; font-size: 11px; }
  .zoom-hint { right: 8px; bottom: 8px; padding: 5px 8px; }
  .legend-grid, .legend-grid.three { grid-template-columns: 1fr; }
  .task-row { grid-template-columns: 1fr; }
  .task-row > span + span { border-top: 1px solid var(--line); border-left: 0; }
  .task-head { display: none; }
  .task-row > span { padding: 13px 15px; }
  .registration-methods .task-row > span::before { display: block; margin-bottom: 2px; color: var(--muted); content: attr(data-label); font-size: 12px; font-weight: 700; }
  .required-guide { padding: 20px 16px; }
  .support-card { grid-template-columns: 42px 1fr; padding: 20px; }
  .support-card .icon { width: 40px; height: 40px; padding: 9px; }
  .back-to-top { right: 14px; bottom: 14px; }
  .dialog-bar { gap: 8px; padding-left: 12px; }
  .dialog-bar p { flex: 1; font-size: 12px; line-height: 1.4; }
  .dialog-bar button { flex: 0 0 auto; }
  .dialog-scroll { padding: 10px; }
  .dialog-canvas { width: 1050px; }
}

@media (max-width: 340px) {
  .hero h1 { font-size: 30px; line-height: 1.35; letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header, .manual-nav, .scroll-progress, .search-panel, .back-to-top, .zoom-hint, .image-dialog { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .page-shell { display: block; max-width: none; }
  main { max-width: none; padding: 0; }
  .hero, .guide-section, .member-section { break-inside: avoid; box-shadow: none; }
  .manual-shot { box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}
.keep-together { display: inline-block; }
/* Task-oriented administrator instructions; shared member layouts stay intact. */
.manual-task{border-top:1px solid var(--line,#eadde4);padding-top:28px;margin-top:32px;scroll-margin-top:100px}
.manual-task>h3{margin-top:0}.manual-task h4{font-size:1.05rem;margin:16px 0 8px}
.manual-task .step-list h4{margin-top:0}.manual-task[id],h3[id],h4[id]{scroll-margin-top:100px}
.screen-entry{margin:16px 0 24px}.screen-entry .button{max-width:100%;white-space:normal;text-align:center}
.lesson-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0 28px}
.lesson-mode-grid a{display:flex;flex-direction:column;gap:6px;border:1px solid #d7b9c9;background:#fff8fb;border-radius:14px;padding:18px;text-decoration:none;min-width:0}
.lesson-mode-grid a:hover{background:#f8e7ef}.lesson-mode-grid strong{font-size:1.1rem}.lesson-mode-grid span{color:#62515a;font-size:.94rem;line-height:1.7}
.manual-branches{display:grid;gap:12px;margin:20px 0}.manual-branches>article{padding:18px;border:1px solid #dfccd5;border-radius:12px;background:#fffafb}.manual-branches h4{margin-top:0}
.manual-nav .nav-sub{padding-left:20px;font-size:.87rem}.manual-nav .nav-sub span{min-width:30px}
@media(max-width:600px){.lesson-mode-grid{grid-template-columns:1fr}.manual-task{padding-top:22px;margin-top:24px}.manual-branches>article{padding:14px}.manual-task>h3{line-height:1.6}}
