/* サービスページの見た目。色・文字は tokens.css の名前だけを使う（正本 design-rules_chanmii.md） */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--action);
  font-weight: 600;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 10;
  background: var(--bg);
  padding: 8px 12px;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 760px;
}

/* 上の帯 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-header .logo img {
  height: 60px;
  width: auto;
}
.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink);
  font: var(--t-link);
}

/* 節 */
section {
  padding: 112px 0;
}
section.tinted {
  background: var(--surface);
}
.eyebrow {
  font: var(--t-link);
  color: var(--action);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
h2.title {
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 20px;
}
.lead-text {
  font-size: 17px;
  color: var(--ink-sub);
  margin: 0 0 56px;
  max-width: 640px;
}
.center {
  text-align: center;
}
.center .lead-text {
  margin-left: auto;
  margin-right: auto;
}

/* 頭 */
.hero {
  padding: 88px 0 96px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 24px;
}
.hero .sub {
  font-size: 18px;
  color: var(--ink-sub);
  margin: 0 0 36px;
}
.hero .phones {
  position: relative;
  display: flex;
  justify-content: center;
}

/* 端末の枠（モックの画面を入れる） */
.phone {
  width: 260px;
  border: 8px solid var(--ink);
  border-radius: 40px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 24px 48px var(--shadow-sheet);
}
.phone img {
  width: 100%;
}
.phone.small {
  width: 220px;
}

/* ストアのボタン（今はリンクが無いので押せない） */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.center .stores {
  justify-content: center;
}
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 180px;
  height: 56px;
  padding: 0 20px;
  border-radius: var(--r-button);
  background: var(--ink);
  color: var(--bg);
  cursor: default;
}
.store .small {
  font-size: 12px;
  line-height: 1.3;
}
.store .name {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}
.store-note {
  font: var(--t-sub);
  color: var(--ink-sub);
  margin: 12px 0 0;
}

/* はじめに */
.intro .wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
}
.intro p {
  font-size: 18px;
  line-height: 2;
  margin: 0;
}

/* 分かること */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 96px;
}
.feature:first-of-type {
  margin-top: 0;
}
.feature.reverse .feature-text {
  order: 2;
}
.feature .num {
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  color: var(--action);
  margin: 0 0 16px;
}
.feature h3 {
  font-size: 28px;
  line-height: 1.4;
  margin: 0 0 16px;
}
.feature p {
  margin: 0 0 12px;
  font-size: 17px;
}
.feature .phone {
  margin: 0 auto;
}

/* 点数の付け方 */
.formula {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px;
  text-align: center;
  margin: 0 0 48px;
}
.formula .eq {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.7;
  margin: 0 0 8px;
}
.formula .eq span {
  white-space: nowrap;
}
.formula .note {
  color: var(--ink-sub);
  margin: 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
}
.card h3 {
  font: var(--t-section);
  margin: 0 0 12px;
}
.card p {
  margin: 0 0 8px;
}
.card ul {
  margin: 0;
  padding-left: 1.3em;
}
.grades {
  list-style: none;
  margin: 0;
  padding: 0;
}
.grades li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.grades li:last-child {
  border-bottom: 0;
}
.grades .range {
  margin-left: auto;
  color: var(--ink-sub);
}
.dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
}
.dot.g1 {
  background: var(--score-1);
}
.dot.g2 {
  background: var(--score-2);
}
.dot.g3 {
  background: var(--score-3);
}
.dot.g4 {
  background: var(--score-4);
}
.basis {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 4px;
  font-weight: 700;
}
.basis .b {
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 6px 16px;
  background: var(--bg);
}
.basis .b small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-sub);
  line-height: 1.2;
}
.pledge {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin: 48px 0 0;
}
.disclaimer {
  font: var(--t-sub);
  color: var(--ink-sub);
  margin: 24px 0 0;
}

/* 使い方 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  text-align: center;
}
.steps .step {
  display: inline-block;
  font: var(--t-link);
  color: var(--bg);
  background: var(--action);
  border-radius: 999px;
  padding: 4px 16px;
  margin: 0 0 16px;
}
.steps h3 {
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.steps p {
  margin: 0 0 24px;
  color: var(--ink-sub);
}
.steps .phone {
  margin: 0 auto;
}

/* 会員 */
.member .wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}
.free-now {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-tag);
  padding: 4px 12px;
  font-weight: 700;
  margin: 0 0 16px;
}
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px 24px;
}
.plan.recommended {
  border: 2px solid var(--action);
}
.plan .kind {
  font-weight: 700;
  margin: 0;
}
.plan .price {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0;
}
.plan .per {
  color: var(--ink-sub);
  margin: 0;
}
.plan .tag {
  font: var(--t-tag);
  color: var(--action);
  font-weight: 700;
}
.member table {
  width: 100%;
  border-collapse: collapse;
}
.member th,
.member td {
  text-align: left;
  vertical-align: top;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.member th {
  width: 5em;
  font-weight: 700;
  padding-right: 16px;
}

/* よくある質問 */
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font: var(--t-body);
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--ink-sub);
  border-bottom: 1.5px solid var(--ink-sub);
  transform: rotate(45deg);
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  top: 31px;
}
.faq details p {
  margin: 0 0 20px;
}

/* 運営会社・お問い合わせ */
.company dl {
  display: grid;
  grid-template-columns: 8em 1fr;
  margin: 0;
}
.company dt,
.company dd {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.company dt {
  font-weight: 700;
}
.contact-mail {
  font-size: 22px;
}

/* 下の帯 */
.site-footer {
  background: var(--surface);
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.site-footer .logo img {
  height: 64px;
  width: auto;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.site-footer a {
  color: var(--ink);
  font-weight: 400;
}
.copyright {
  width: 100%;
  font: var(--t-sub);
  color: var(--ink-sub);
  margin: 16px 0 0;
}

/* 規約の頁 */
.doc {
  padding: 64px 0 96px;
}
.doc h1 {
  font-size: 34px;
  line-height: 1.35;
  margin: 0 0 32px;
}
.doc h2 {
  font: var(--t-section);
  margin: 48px 0 12px;
}
.doc p,
.doc li {
  font: var(--t-text);
}
.doc ol {
  padding-left: 1.6em;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
}
.doc th,
.doc td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  font: var(--t-text);
}
.doc th {
  background: var(--surface);
}
.doc .back {
  margin: 48px 0 0;
}

/* スマホの幅 */
@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  section {
    padding: 72px 0;
  }
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding: 48px 0 64px;
  }
  .hero .wrap,
  .intro .wrap,
  .feature,
  .grid-2,
  .member .wrap {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero .phones {
    order: 2;
  }
  h2.title {
    font-size: 28px;
  }
  .intro .wrap {
    justify-items: center;
    text-align: left;
  }
  .intro img {
    width: 160px;
  }
  .feature {
    gap: 32px;
    margin-top: 72px;
  }
  .feature.reverse .feature-text {
    order: 0;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .member .wrap {
    justify-items: center;
  }
  .member .wrap > div {
    width: 100%;
  }
  .member img {
    width: 160px;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .company dl {
    grid-template-columns: 1fr;
  }
  .company dt {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .formula {
    padding: 24px 16px;
  }
  .formula .eq {
    font-size: 18px;
  }
}
