:root {
  --accent-color: #5d97c4;
  --accent-border: #bdd6e9;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: #20242a;
  background: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-container {
  width: min(1440px, calc(100% - 64px));
  margin-inline: auto;
}

.page-header {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--accent-color);
}

.page-header h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.25;
}

.manual-nav {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.manual-nav a,
.page-footer a {
  text-decoration-color: var(--accent-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.manual {
  padding-top: 72px;
  scroll-margin-top: 20px;
}

.manual + .manual {
  margin-top: 72px;
  border-top: 1px solid var(--accent-border);
}

.manual-header {
  display: flex;
  margin-bottom: 36px;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.manual-header h2,
.manual-header p,
.comparison-header h3,
.comparison-header p,
figure {
  margin: 0;
}

.manual-header h2 {
  padding-left: 14px;
  border-left: 3px solid var(--accent-color);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.3;
}

.manual-header p,
.comparison-header p {
  color: #606873;
  font-size: 14px;
}

.comparison-item {
  padding: 30px 0 42px;
  border-top: 1px solid #d8dce2;
}

.comparison-header {
  display: flex;
  margin-bottom: 18px;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.comparison-header h3 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
}

.comparison-header p {
  flex: none;
}

.screenshots {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.screenshots:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 6px;
}

figure {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8dce2;
}

figure:last-child {
  border-top: 2px solid var(--accent-color);
}

figcaption {
  padding: 10px 14px;
  font-weight: 700;
  line-height: 1.4;
  border-bottom: 1px solid #d8dce2;
}

figure a {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: clamp(320px, 34vw, 500px);
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  align-items: flex-start;
  justify-content: center;
  background: #f4f5f7;
}

figure a:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: -3px;
}

figure img {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
  object-position: top center;
}

.page-footer {
  margin-top: 96px;
  padding: 28px 0;
  color: #505760;
  border-top: 1px solid var(--accent-color);
  font-size: 14px;
}

.page-footer .page-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.page-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .page-container {
    width: min(100% - 32px, 1440px);
  }

  .page-header {
    padding: 36px 0 28px;
  }

  .manual-nav {
    gap: 8px 18px;
    font-size: 14px;
  }

  .manual {
    padding-top: 52px;
  }

  .manual + .manual {
    margin-top: 52px;
  }

  .manual-header,
  .comparison-header {
    display: block;
  }

  .manual-header p,
  .comparison-header p {
    margin-top: 6px;
  }

  .comparison-item {
    padding: 24px 0 34px;
  }

  .screenshots {
    grid-template-columns: none;
    grid-auto-columns: 100%;
    grid-auto-flow: column;
    gap: 12px;
    padding: 0 2px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .screenshots figure {
    scroll-snap-align: start;
  }

  figure a {
    height: 360px;
  }

  .page-footer {
    margin-top: 64px;
  }
}

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