:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --text: #1F2328;
  --text-sub: #5B6068;
  --main: #0F766E;
  --main-dark: #115E59;
  --line: #D8D4CA;
  --notice: #FDF3E7;
  --radius: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--main-dark); }

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.wrap--narrow { max-width: 640px; }

/* ヘッダー・フッター */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
}
.brand small {
  color: var(--text-sub);
  font-weight: 400;
  font-size: 13px;
}
.header-link {
  font-size: 15px;
  white-space: nowrap;
}

.site-footer {
  margin-top: 56px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-block;
  padding: 10px 0;
  color: var(--text-sub);
  font-size: 15px;
}

/* 見出し・本文 */
h1, h2, h3 { line-height: 1.45; margin: 0 0 12px; }
h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }
.sub { color: var(--text-sub); font-size: 15px; }

section { padding: 40px 0 8px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #E6F2F0;
  color: var(--main-dark);
  font-size: 14px;
  font-weight: 700;
}

/* 最初の画面 */
.hero { padding: 40px 0 16px; }
.hero h1 { font-size: 24px; }
.hero h1 .accent { color: var(--main); }
.hero-lead { font-size: 17px; }
.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 760px) {
  .hero { padding-top: 64px; }
  .hero h1 { font-size: 36px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
}

/* 会員証のイメージ */
.cards-visual {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  padding: 8px 0 24px;
}
.member-card {
  position: relative;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(31, 35, 40, .08);
}
.member-card + .member-card { margin-top: -6px; margin-left: 22px; }
.member-card:nth-child(2) { margin-left: 44px; }
.member-card .shop {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.member-card .shop-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  flex: none;
}
.member-card .meta { color: var(--text-sub); font-size: 14px; margin-top: 4px; }
.stamps { display: flex; gap: 6px; margin-top: 10px; }
.stamps span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
}
.stamps span.on { background: var(--main); border-color: var(--main); }

/* カード・並び */
.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.card h3 { display: flex; align-items: center; gap: 8px; }
.card p:last-child { margin-bottom: 0; }
.icon-dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #E6F2F0;
  color: var(--main-dark);
  display: inline-grid;
  place-items: center;
  flex: none;
}
.icon-dot svg { width: 18px; height: 18px; }

.notice {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--notice);
}

.steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 0 0 14px 44px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}

/* 料金 */
.plan { display: flex; flex-direction: column; }
.plan .price {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0 12px;
}
.plan .price small { font-size: 15px; font-weight: 400; color: var(--text-sub); }
.plan--pro { border: 2px solid var(--main); }
.plan ul { margin: 0; padding-left: 1.2em; }
.plan li { margin-bottom: 6px; }

/* ストアボタン */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  min-width: 200px;
  padding: 8px 18px;
  border-radius: 12px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
}
.store-btn svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store-btn .label { display: flex; flex-direction: column; text-align: left; }
.store-btn .label small { font-weight: 400; font-size: 12px; opacity: .85; }
.store-btn .soon { display: none; }
.store-btn.is-soon {
  background: #E9E6DF;
  color: var(--text-sub);
  cursor: default;
}
.store-btn.is-soon .soon { display: inline; }
.store-btn.is-soon .avail { display: none; }

/* 受け皿ページでは、合うほうを幅いっぱいに大きく */
.has-primary .store-btn { flex: 1 1 100%; }
.has-primary .store-btn.is-primary { min-height: 60px; font-size: 18px; }
.has-primary .store-btn:not(.is-primary) {
  min-height: 48px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 15px;
}
.has-primary .store-btn.is-soon:not(.is-primary) { color: var(--text-sub); }

/* ボタン(本文中) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 12px;
  background: var(--main);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { background: var(--main-dark); }

/* 受け皿ページ */
.landing { padding: 28px 0 0; }
.landing .card { padding: 24px 20px; }
.landing h1 { font-size: 23px; }
.landing .qr-badge {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: #E6F2F0;
  display: grid;
  place-items: center;
  color: var(--main-dark);
}
.landing .qr-badge svg { width: 36px; height: 36px; }
@media (min-width: 640px) {
  .landing { padding-top: 48px; }
  .landing .card { padding: 36px 40px; }
  .landing h1 { font-size: 27px; }
}

/* 規約などの本文 */
.doc { padding: 32px 0 0; }
.doc h2 { font-size: 19px; margin-top: 28px; }
.doc .updated { color: var(--text-sub); font-size: 14px; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--surface);
}
a:focus-visible, .store-btn:focus-visible, .btn:focus-visible {
  outline: 3px solid #F59E0B;
  outline-offset: 2px;
}

/* 小さい画面ではヘッダーの読みがなを隠して1行に収める */
.brand { white-space: nowrap; }
@media (max-width: 400px) {
  .brand small { display: none; }
}
