/* =========================================================
   MoriPay - Terms
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #f5f6f7;
  -webkit-font-smoothing: antialiased;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.main { padding: 48px 16px 80px; }

.terms {
  max-width: 900px;
  margin: 0 auto;
}

.terms__head {
  text-align: center;
  margin-bottom: 32px;
}
.terms__title {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  color: #1a1a1a;
}
.terms__toc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.terms__inner {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 48px 44px;
}

.terms__heading {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 28px;
}

.terms__lead {
  color: #444;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid #e5e5e5;
}

.terms__section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid #e5e5e5;
}
.terms__section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.terms__inner h2 {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px;
}

.terms__inner h3 {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
  color: #222;
  margin: 28px 0 14px;
}

.terms__inner h4 {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin: 18px 0 6px;
}

.terms__inner p {
  font-size: 16px;
  margin-bottom: 16px;
  color: #444;
}
.terms__inner p:last-child { margin-bottom: 0; }

.terms__inner ol,
.terms__inner ul {
  margin: 0 0 16px;
  padding-left: 1.6em;
}
.terms__inner li {
  font-size: 16px;
  margin-bottom: 10px;
}
.terms__inner li:last-child { margin-bottom: 0; }

.terms__list--plain {
  list-style: none;
  padding-left: 0;
}

.terms__detail {
  font-size: 15px;
  color: #555;
  margin-top: 4px;
}

.terms__note {
  font-size: 14px;
  line-height: 1.7;
  color: #888;
}

.terms__updated {
  font-size: 13px;
  text-align: right;
  color: #999;
  margin-top: 40px;
}

@media (max-width: 600px) {
  .header__inner { padding: 0 16px; }
  .header__nav ul { gap: 16px; }

  .main { padding: 32px 12px 60px; }

  .terms__inner {
    padding: 32px 20px;
    border-radius: 10px;
  }

  .terms__title   { font-size: 24px; }
  .terms__heading { font-size: 20px; }
  .terms__inner h2 { font-size: 18px; }
  .terms__inner h3 { font-size: 16px; }
}