/* NarouReader 配布サイト */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f6f8fa;
  --text: #1f2328;
  --muted: #57606a;
  --border: #d0d7de;
  --link: #0969da;
  --green: #146c2e;
  --green-dark: #11602a;
  --blue: #0550ae;
  --blue-dark: #04428f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--link);
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

h2 {
  font-size: 1.35rem;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

main section {
  padding: 28px 0;
}

main ul,
main ol {
  margin: 0;
  padding-left: 1.4em;
}

main li {
  margin: 6px 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}

/* ヒーロー */
.hero {
  padding: 44px 0 36px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.lead {
  font-size: 1.08rem;
  margin: 0 auto;
  max-width: 38em;
}

.dl-lead {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 14px auto 0;
  max-width: 38em;
}

.dl-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 16px;
}

.dl {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.dl:hover {
  text-decoration: none;
}

.dl-android {
  background: var(--green);
}

.dl-android:hover {
  background: var(--green-dark);
}

.dl-ios {
  background: var(--blue);
}

.dl-ios:hover {
  background: var(--blue-dark);
}

.dl-type {
  font-weight: 400;
  font-size: 0.9em;
}

.dl-small {
  padding: 9px 18px;
  font-size: 0.95rem;
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 auto;
  max-width: 34em;
}

.hero-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  margin: 14px 0 0;
  padding: 0;
  font-size: 0.95rem;
}

/* スクリーンショット */
.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.shots figure {
  margin: 0;
  text-align: center;
}

.shots img {
  width: min(250px, 68vw);
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.shots figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
}

/* インストール方法 */
.os-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 760px) {
  .os-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.os-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  scroll-margin-top: 16px;
}

.os-card h3 {
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.os-card .dl {
  margin-bottom: 14px;
}

.os-dl {
  margin: 0 0 14px;
}

/* フッター */
.site-footer {
  margin-top: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
}

.footer-brand {
  margin: 0;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
}

@media (max-width: 480px) {
  .dl {
    width: 100%;
    max-width: 22em;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
