/* 文字の大きさは --fs の1か所で持ち、ほかは rem で書く。既定は「大」 */
:root {
  --fs: 1.375;
  --accent: #5c4a8c;
  --accent-soft: #f1eef8;
  --ink: #1d1d1f;
  --sub: #4f4f55;
  --line: #e2e0ea;
  --bg: #ffffff;
  --bg-soft: #f7f6fa;
  --hit: #fff4cc;
}
html {
  font-size: calc(16px * var(--fs));
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  line-height: 1.75;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
}
.wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 上の帯 */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.brand img {
  width: 1.6rem;
  height: 1.6rem;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  font-size: 0.82rem;
}
.nav a {
  color: var(--sub);
  text-decoration: none;
}
.sizes {
  display: inline-flex;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  overflow: hidden;
}
.sizes button {
  border: none;
  border-left: 1px solid var(--line);
  background: #fff;
  color: var(--sub);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.1rem 0.6rem;
  cursor: pointer;
}
.sizes button:first-child {
  border-left: none;
}
.sizes button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

/* 見出し */
.hero {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
  text-align: center;
}
.hero h1 {
  font-size: min(3rem, 8.2vw);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
}
.hero .lead {
  font-size: 1.1rem;
  color: var(--sub);
  margin: 0 0 1.8rem;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.3rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.btn-main {
  background: var(--accent);
  color: #fff;
}
.btn-sub {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: #fff;
}
.note {
  font-size: 0.82rem;
  color: var(--sub);
}
.hero .note {
  margin-top: 0.8rem;
}

section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
h2 {
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 0 0 1rem;
}
h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.5rem;
}
p {
  margin: 0 0 1rem;
}
.shot {
  margin: 1.2rem 0;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  overflow: hidden;
  background: #fff;
}
.shot figcaption {
  padding: 0.4rem 0.8rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 0.82rem;
  color: var(--sub);
}

/* 表記ゆれの例 */
.examples {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.examples li {
  padding: 0.6rem 0.8rem;
  border-radius: 0.6rem;
  background: var(--accent-soft);
}
.examples .q {
  font-weight: 700;
}
.examples .a {
  display: block;
  font-size: 0.9rem;
  color: var(--sub);
}
.examples mark {
  background: var(--hit);
  color: inherit;
  padding: 0 0.15em;
}

.points {
  margin: 0;
  padding-left: 1.2rem;
}
.points li {
  margin-bottom: 0.5rem;
}
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  position: relative;
  padding: 0 0 1rem 2.4rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.7rem;
}
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.spec th,
.spec td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.spec th {
  width: 9rem;
  color: var(--sub);
  font-weight: 400;
}
.faq dt {
  font-weight: 700;
  margin-top: 1.2rem;
}
.faq dd {
  margin: 0.3rem 0 0;
  color: var(--ink);
}
.download {
  padding: 1.2rem;
  border-radius: 0.8rem;
  background: var(--bg-soft);
}
.download .hash {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  color: var(--sub);
}
.contact {
  padding: 1.5rem;
  border-radius: 0.8rem;
  background: var(--accent-soft);
}
footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--sub);
}
footer p {
  margin: 0 0 0.4rem;
}

/* 利用規約のページ */
.doc h1 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
}
.doc h2 {
  font-size: 1.15rem;
  margin: 1.8rem 0 0.5rem;
}
.doc ol {
  padding-left: 1.4rem;
}

@media (max-width: 40rem) {
  .hero {
    padding-top: 2rem;
  }
  .sizes {
    margin-left: 0;
  }
  .spec th {
    width: 6rem;
  }
}
