:root {
  --ink: #12213a;
  --muted: #65738a;
  --line: #dfe5ee;
  --soft: #f4f7fb;
  --blue: #246bfe;
  --navy: #0e2848;
  --red: #ef3340;
  --green: #0b8d65;
  --shadow: 0 22px 60px rgba(18, 33, 58, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  line-height: 1.75;
  letter-spacing: .01em;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 99; padding: 10px 16px; color: #fff; background: var(--navy); }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 80px);
  border-bottom: 1px solid rgba(223, 229, 238, .9);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}
.brand img { width: 142px; max-height: 44px; object-fit: contain; }
.site-header nav { display: flex; gap: 26px; font-size: 14px; font-weight: 700; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--blue); }

main { overflow: hidden; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
  align-items: center;
  gap: clamp(24px, 6vw, 96px);
  width: min(1180px, calc(100% - 40px));
  min-height: 600px;
  margin: 0 auto;
  padding: 90px 0 74px;
}
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(46px, 7.2vw, 92px); line-height: 1.04; letter-spacing: -.045em; }
.lead { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 800; cursor: pointer; }
.button.primary { color: #fff; border-color: var(--blue); background: var(--blue); }
.button.secondary { color: var(--ink); background: #fff; }
.hero-visual { position: relative; align-self: end; min-height: 390px; }
.hero-visual::before { content: ""; position: absolute; inset: 20% 0 0; border-radius: 48% 48% 42% 42%; background: linear-gradient(145deg, #eaf2ff, #f7faff); }
.hero-visual img { position: absolute; right: 5%; bottom: 0; width: min(360px, 95%); max-height: 390px; object-fit: contain; }
.bubble { position: absolute; top: 0; left: 0; z-index: 2; padding: 13px 18px; border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; background: #fff; box-shadow: var(--shadow); font-weight: 900; }

.overview { width: min(1180px, calc(100% - 40px)); margin: 0 auto 110px; }
.overview h2 { margin: 0 0 24px; font-size: clamp(28px, 4vw, 44px); }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.overview-card { display: flex; align-items: center; gap: 18px; padding: 26px; border: 1px solid var(--line); border-radius: 24px; text-decoration: none; transition: .2s ease; }
.overview-card:hover { border-color: #a9c4ff; transform: translateY(-2px); box-shadow: var(--shadow); }
.overview-number { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; border-radius: 16px; color: #fff; background: var(--navy); font-size: 21px; font-weight: 900; }
.overview-card strong, .overview-card small { display: block; }
.overview-card strong { font-size: 20px; }
.overview-card small { margin-top: 2px; color: var(--muted); }

.guide-section { padding: 110px max(20px, calc((100vw - 1180px) / 2)); background: var(--soft); }
.guide-section + .guide-section { padding-top: 120px; background: #fff; }
.section-heading { margin-bottom: 52px; }
.section-heading h2 { margin: 0; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.15; letter-spacing: -.035em; }
.section-note { margin: 16px 0 0; color: var(--muted); font-size: 18px; }

.step { margin: 0 0 34px; padding: clamp(26px, 5vw, 58px); border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: 0 16px 50px rgba(18, 33, 58, .055); scroll-margin-top: 100px; break-inside: avoid; }
.step.compact { padding-bottom: 34px; }
.step-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.step-number { display: grid; flex: 0 0 68px; width: 68px; height: 68px; place-items: center; border-radius: 19px; color: #fff; background: var(--navy); font-size: 22px; font-weight: 900; letter-spacing: .04em; }
.step-label { margin: 0 0 2px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.step h3 { margin: 0; font-size: clamp(24px, 3vw, 36px); line-height: 1.3; }
.action-list { display: grid; gap: 6px; margin: 0 0 26px 25px; padding: 0; font-size: 17px; }
.one-line { margin: 18px 0 24px; font-size: 17px; }
.signup-choice { display: grid; gap: 9px; margin: 0 0 24px; padding: 20px 22px; border: 1px solid #bdd0fb; border-radius: 18px; background: #f4f8ff; }
.signup-choice > strong { color: var(--blue); font-size: 18px; }
.signup-choice > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.signup-choice span { padding: 7px 11px; border-radius: 10px; background: #fff; }
.signup-choice em { color: var(--muted); font-style: normal; font-weight: 800; }
.signup-choice small { color: var(--muted); }

.screen { position: relative; overflow: hidden; margin: 26px 0 0; border: 1px solid #d9e0ea; border-radius: 20px; background: #fafbfd; }
.image-stage { position: relative; overflow: hidden; }
.image-stage > img { width: 100%; height: auto; }
.screen.narrow { width: min(420px, 100%); }
.screen figcaption { padding: 12px 16px; color: var(--muted); border-top: 1px solid var(--line); background: #fff; font-size: 13px; }
.mark { position: absolute; z-index: 2; border: clamp(2px, .25vw, 4px) solid var(--red); border-radius: 8px; box-shadow: 0 0 0 4px rgba(239, 51, 64, .12); pointer-events: none; }
.tag { position: absolute; z-index: 3; padding: .3em .75em; border-radius: 999px; color: #fff; background: var(--red); box-shadow: 0 8px 20px rgba(239, 51, 64, .2); font-size: clamp(9px, 1.4vw, 14px); font-weight: 900; line-height: 1.5; pointer-events: none; }

.shot-signup .social-login { left: 31.8%; top: 23.1%; width: 35.3%; height: 21.9%; }
.shot-signup .social-login-tag { right: 20%; top: 14.2%; }
.shot-signup .email { left: 31.8%; top: 53.4%; width: 35.3%; height: 5.4%; }
.shot-signup .password { left: 31.8%; top: 64.6%; width: 35.3%; height: 5.8%; }
.shot-signup .signup { left: 31.8%; top: 96.4%; width: 35.3%; height: 3.5%; }
.shot-signup .signup-tag { right: 20%; top: 87.5%; }
.shot-login .login-email { left: 35.5%; top: 59.2%; width: 27.8%; height: 6%; }
.shot-login .login-password { left: 35.5%; top: 70.7%; width: 27.8%; height: 6%; }
.shot-login .login-submit { left: 35.5%; top: 78.6%; width: 27.8%; height: 6%; }
.shot-login .login-tag { left: 65%; top: 79%; }
.shot-manage .manage { left: 14.5%; top: 22%; width: 70%; height: 5.7%; }
.shot-manage .manage-tag { left: 52%; top: 16%; }
.shot-members .members { left: 14.5%; top: 27.6%; width: 70%; height: 5.5%; }
.shot-members .members-tag { left: 52%; top: 29.5%; }
.shot-invite-button .invite-open { right: .8%; top: 60.8%; width: 15%; height: 35%; }
.shot-invite-button .invite-open-tag { right: 17%; top: 27%; }
.shot-invite-email .invite-email { left: 3.1%; top: 54.7%; width: 95.4%; height: 27.3%; }
.shot-invite-email .invite-email-tag { right: 5%; top: 14%; }
.shot-role .scope { left: 45.2%; top: 28.8%; width: 47.4%; height: 6%; }
.shot-role .role { left: 27.2%; top: 56.3%; width: 64.3%; height: 8%; }
.shot-role .role-switch { left: 88.3%; top: 58.3%; width: 3.2%; height: 4.8%; }
.shot-role .create-policy { left: 84.9%; top: 67.2%; width: 8.1%; height: 5.8%; }
.shot-role .role-tag { right: 8.2%; top: 49%; }
.shot-role .policy-tag { right: 13.5%; top: 74%; }
.shot-send .send-email { left: 24.6%; top: 31.6%; width: 68%; height: 6%; }
.shot-send .send-role { left: 24.6%; top: 51.6%; width: 68%; height: 11.1%; }
.shot-send .send-button { left: 84.6%; top: 81.1%; width: 9%; height: 6%; }
.shot-send .send-tag { right: 7%; top: 72.5%; }

.example-email, .count-example {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  color: #243248;
  background: #fff;
  font-size: clamp(8px, 1.15vw, 15px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.role-email-example { left: 25.6%; top: 9.4%; width: 65.5%; height: 5.8%; padding-left: 1%; }
.count-example { left: 24.7%; top: 36.5%; width: 68%; height: 5.2%; padding-left: 1%; font-size: clamp(7px, .9vw, 12px); }
.send-email-example { left: 25.6%; top: 32.1%; width: 65.5%; height: 5.3%; padding-left: 1%; }

.mail-action { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: 20px; background: #eef4ff; }
.mail-action p { margin: 2px 0 0; color: var(--muted); }
.mail-icon { display: grid; flex: 0 0 56px; width: 56px; height: 56px; place-items: center; border-radius: 16px; color: #fff; background: var(--blue); font-size: 26px; }
.email-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -22px 0 42px; padding: 24px 28px; border-radius: 22px; color: #fff; background: var(--navy); }
.email-card span, .email-card strong { display: block; }
.email-card span { color: #adbed4; font-size: 13px; font-weight: 800; }
.email-card strong { font-size: clamp(17px, 2.5vw, 25px); overflow-wrap: anywhere; }
.email-card button { flex: 0 0 auto; padding: 11px 18px; border: 0; border-radius: 999px; color: var(--navy); background: #fff; font-weight: 900; cursor: pointer; }
.location-tip { display: grid; grid-template-columns: minmax(0, .8fr) minmax(300px, 1.2fr); gap: 18px; margin: 0 0 24px; padding: 20px; border: 1px solid #cfe0ff; border-radius: 20px; background: #f5f8ff; }
.location-copy { align-self: center; }
.location-copy span { display: block; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.location-copy strong { display: block; margin-top: 2px; font-size: 20px; }
.location-copy p { margin: 4px 0 0; color: var(--muted); }
.menu-map { display: grid; gap: 7px; padding: 15px 18px; border-radius: 15px; background: #fff; box-shadow: 0 8px 26px rgba(18, 33, 58, .06); }
.menu-map span { color: var(--muted); }
.menu-map b { color: var(--blue); font-size: 12px; }
.menu-map strong { padding: 9px 12px; border: 2px solid var(--red); border-radius: 10px; background: #fff6f6; }
.input-answer { display: inline-grid; gap: 1px; padding: 13px 18px; border-radius: 14px; background: #eef4ff; }
.input-answer span, .permission-answer span { color: var(--muted); font-size: 12px; font-weight: 800; }
.input-answer strong { overflow-wrap: anywhere; }
.permission-answer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.permission-answer > div { display: grid; padding: 15px 18px; border: 1px solid #bdd0fb; border-radius: 16px; background: #f4f8ff; }
.permission-answer strong { font-size: 17px; }
.warning { display: grid; gap: 3px; margin-top: 18px; padding: 16px 18px; border-left: 5px solid #f0a431; border-radius: 10px; background: #fff7e9; }
.warning span { color: #75531c; overflow-wrap: anywhere; }
.check-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li { padding: 14px 16px 14px 42px; border: 1px solid #bfe3d7; border-radius: 14px; background: #effaf6; position: relative; font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; left: 15px; color: var(--green); font-weight: 900; }

.finish { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 42px; width: min(980px, calc(100% - 40px)); margin: 110px auto; padding: 40px 50px; border-radius: 32px; color: #fff; background: var(--navy); }
.finish img { width: 210px; max-height: 230px; object-fit: contain; }
.finish h2 { margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1.2; }
.finish p:last-child { margin-bottom: 0; color: #d5dfeb; }
footer { display: grid; place-items: center; padding: 42px 20px; border-top: 1px solid var(--line); text-align: center; }
footer img { width: 130px; max-height: 42px; object-fit: contain; }
footer p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
footer .updated { margin-top: 0; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 40; padding: 12px 18px; border-radius: 12px; color: #fff; background: var(--navy); box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .site-header { min-height: 64px; padding: 10px 18px; }
  .brand img { width: 112px; }
  .site-header nav { gap: 14px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 64px 0 50px; }
  .hero-visual { min-height: 320px; margin-top: 12px; overflow: hidden; }
  .hero-visual img { right: 7%; width: 80%; max-height: 280px; }
  .hero-visual .bubble { top: 18px; }
  .overview-grid, .permission-answer, .check-list { grid-template-columns: 1fr; }
  .location-tip { grid-template-columns: 1fr; }
  .guide-section { padding-top: 76px; padding-bottom: 76px; }
  .step { padding: 24px 18px; border-radius: 22px; }
  .step-heading { align-items: flex-start; gap: 14px; }
  .step-number { flex-basis: 52px; width: 52px; height: 52px; border-radius: 15px; font-size: 17px; }
  .email-card { align-items: stretch; flex-direction: column; }
  .email-card button { align-self: flex-start; }
  .screen { border-radius: 12px; }
  .screen.narrow { width: min(330px, 100%); }
  .finish { grid-template-columns: 1fr; padding: 30px; text-align: center; }
  .finish img { margin: auto; }
}

@media (max-width: 480px) {
  .site-header nav a:first-child { display: none; }
  .hero { width: min(100% - 28px, 1180px); }
  .overview { width: min(100% - 28px, 1180px); }
  .overview-card { padding: 20px; }
  .overview-card strong { font-size: 17px; }
  .action-list, .one-line { font-size: 15px; }
  .signup-choice { padding: 16px; }
  .signup-choice > div { align-items: stretch; flex-direction: column; }
  .signup-choice em { text-align: center; }
  .tag { padding: .2em .55em; }
}

@media print {
  @page { size: A4; margin: 13mm; }
  body { color: #000; font-size: 10pt; }
  .site-header, .hero-actions, .toast { display: none !important; }
  .hero { min-height: auto; padding: 10mm 0 6mm; }
  .hero-visual { min-height: 60mm; }
  .overview { margin-bottom: 10mm; }
  .guide-section { padding: 12mm 0; background: #fff; }
  .step { margin-bottom: 8mm; padding: 7mm; border-color: #aaa; box-shadow: none; break-inside: avoid; }
  .step-heading { margin-bottom: 4mm; }
  .screen { break-inside: avoid; }
  .screen.narrow { width: 260px; margin-right: auto; margin-left: auto; }
  .finish { margin: 12mm auto; break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .mark, .tag, .step-number, .email-card { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
