:root {
  color-scheme: light;
  --brand: #5f819a;
  --brand-dark: #315f7d;
  --accent: #fcce65;
  --ink: #1d2730;
  --muted: #65737d;
  --line: #dce4e9;
  --surface: #f5f8fa;
  --white: #fff;
  --blue: #0878d1;
  --green: #248a3d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; }

.guide-header {
  border-top: 6px solid var(--accent);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.guide-header-inner,
.guide-main,
.guide-footer {
  width: min(100% - 40px, 1080px);
  margin-inline: auto;
}
.guide-header-inner { padding: 32px 0 34px; }
.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
}
.guide-header h1 {
  width: 100%;
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.3;
  text-wrap: balance;
}
.guide-main { padding: 48px 0 72px; }
.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.status-pill,
.preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.status-pill { color: var(--brand-dark); background: #eaf2f6; }
.status-pill::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3aa66b;
  content: "";
}
.preview-pill { color: #7a5900; background: #fff5d7; }
.lead { max-width: 800px; font-size: 18px; }
.guide-section { margin-top: 48px; padding-top: 4px; }
.guide-section h2 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand);
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.4;
}
.purpose-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.purpose-card,
.link-card,
.pending-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}
.purpose-card { padding: 24px; }
.purpose-card .number {
  display: block;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.purpose-card h3 { margin: 0 0 8px; font-size: 18px; }
.purpose-card p { margin: 0; color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li {
  position: relative;
  min-height: 54px;
  margin-bottom: 14px;
  padding: 14px 18px 14px 64px;
  border-left: 3px solid var(--line);
  background: rgba(255, 255, 255, .7);
  counter-increment: steps;
}
.steps li::before {
  position: absolute;
  top: 12px;
  left: 16px;
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--white);
  background: var(--brand);
  content: counter(steps);
  font-weight: 700;
  place-items: center;
}
.link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.link-card { display: flex; flex-direction: column; padding: 24px; }
.link-card .link-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.link-card h3 { margin: 5px 0 8px; }
.link-card p { flex: 1; margin: 0 0 16px; color: var(--muted); }
.primary-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}
.primary-link.is-disabled {
  cursor: not-allowed;
  opacity: .58;
}
.link-note { margin-top: 12px; color: #8a5f00; font-size: 13px; }
.store-frame-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 16px 50px rgba(40, 60, 72, .1);
}
.store-frame {
  display: block;
  width: 100%;
  height: 980px;
  border: 0;
  background: var(--white);
}
.frame-actions {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.frame-actions a { font-weight: 700; text-decoration: none; }
.pending-card { padding: 28px; border-left: 6px solid var(--accent); }
.pending-card strong { display: block; margin-bottom: 8px; font-size: 21px; }
.pending-card p { margin: 0; color: var(--muted); }
.test-task-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 14px;
  list-style: none;
  counter-reset: test-tasks;
}
.test-task-list > li {
  position: relative;
  min-height: 60px;
  padding: 17px 20px 17px 68px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  counter-increment: test-tasks;
}
.test-task-list > li::before {
  position: absolute;
  top: 14px;
  left: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--brand);
  content: counter(test-tasks);
  font-weight: 700;
  place-items: center;
}
.task-shape-lines { margin-top: 12px; color: var(--ink); }
.task-note { color: var(--muted); font-size: 15px; }
.contact-card { margin-top: 44px; padding: 24px; }
.contact-card p { margin: 0; }
.guide-footer {
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.store-body { background: #f2f2f7; }
.store-nav {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
}
.store-nav-inner,
.store-page,
.store-footer {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}
.store-nav-inner {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.store-nav strong { font-size: 15px; }
.store-nav a { color: var(--blue); font-size: 14px; text-decoration: none; }
.store-page { padding: 34px 0 64px; }
.mock-notice {
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid #edd58e;
  border-radius: 12px;
  color: #755500;
  background: #fff8df;
  font-size: 14px;
}
.app-summary {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 26px;
  border-radius: 22px;
  background: var(--white);
}
.app-icon {
  width: 160px;
  height: 160px;
  border-radius: 35px;
  background: #579fcf;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
}
.app-title h1 { margin: 0; font-size: clamp(32px, 5vw, 46px); line-height: 1.1; }
.app-title .subtitle { margin: 8px 0 4px; color: var(--muted); font-size: 18px; }
.app-title .developer { margin: 0; color: var(--blue); font-size: 15px; }
.get-wrap { text-align: center; }
.get-button {
  display: inline-grid;
  min-width: 86px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-size: 17px;
  font-weight: 700;
  place-items: center;
}
.get-wrap small { display: block; margin-top: 5px; color: var(--muted); }
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
}
.fact { padding: 18px; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.fact strong { display: block; margin-top: 4px; font-size: 17px; }
.store-section {
  margin-top: 22px;
  padding: 26px;
  border-radius: 22px;
  background: var(--white);
}
.store-section h2 { margin: 0 0 18px; font-size: 25px; }
.screenshot-row {
  display: grid;
  grid-auto-columns: minmax(560px, 720px);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x mandatory;
}
.shot {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(160deg, #e6f5f7, #dceaf4);
  scroll-snap-align: start;
}
.shot figcaption {
  min-height: 114px;
  padding: 20px 18px 14px;
  color: #17334a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}
.shot figcaption small { display: block; margin-top: 8px; color: #4e718a; font-size: 13px; font-weight: 400; }
.shot img { display: block; width: 100%; height: auto; }
.mock-shot { margin: 0; border: 1px solid var(--line); background: var(--white); }
.description-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, .7fr); gap: 28px; }
.description-grid p { margin-top: 0; }
.feature-list { margin: 18px 0 0; padding-left: 1.3em; }
.feature-list li { margin-bottom: 8px; }
.version-box { padding: 20px; border-radius: 16px; background: var(--surface); }
.version-box h3 { margin: 0 0 8px; }
.privacy-card { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 16px; background: var(--surface); }
.privacy-icon { display: grid; width: 54px; height: 54px; flex: 0 0 auto; border-radius: 50%; color: var(--green); background: #dff4e5; font-size: 24px; place-items: center; }
.privacy-card p { margin: 0; }
.info-list { margin: 0; }
.info-list div { display: grid; grid-template-columns: minmax(130px, .45fr) minmax(0, 1fr); gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); }
.info-list div:first-child { border-top: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; text-align: right; }
.store-footer { padding: 0 0 44px; color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .guide-header-inner,
  .guide-main,
  .guide-footer,
  .store-nav-inner,
  .store-page,
  .store-footer { width: min(100% - 28px, 1120px); }
  .purpose-grid,
  .link-grid,
  .description-grid { grid-template-columns: 1fr; }
  .store-frame { height: 760px; }
  .app-summary { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 20px; }
  .app-icon { width: 112px; height: 112px; border-radius: 26px; }
  .get-wrap { grid-column: 1 / -1; text-align: left; }
  .get-wrap small { display: inline; margin-left: 8px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .fact:nth-child(4) { border-top: 1px solid var(--line); }
  .store-section { padding: 20px 16px; }
  .screenshot-row { grid-auto-columns: minmax(280px, 88vw); }
  .test-task-list > li { padding: 58px 16px 16px; }
  .test-task-list > li::before { top: 14px; left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
