* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
  background-color: #fafafa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.terms-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px;
}

@media (min-width: 768px) {
  .terms-container {
    padding: 64px 32px;
  }
}

.terms-header {
  margin-bottom: 48px;
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 1px solid #e0e0e0;
}

.terms-header .company-info {
  margin-bottom: 24px;
}

.terms-header .company-info .company-name {
  font-size: 14px;
  font-weight: 500;
  color: #34495e;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .terms-header .company-info .company-name {
    font-size: 15px;
  }
}

.terms-header .company-info .service-name {
  font-size: 20px;
  font-weight: 700;
  color: #3498db;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .terms-header .company-info .service-name {
    font-size: 24px;
  }
}

.terms-header .terms-title {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .terms-header .terms-title {
    font-size: 32px;
  }
}

.terms-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 32px;
}

@media (min-width: 768px) {
  .terms-content {
    padding: 48px;
  }
}

.terms-article .term-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e0e0e0;
}

.terms-article .term-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.terms-article .term-heading {
  font-size: 18px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 16px;
  padding: 12px 0;
  position: relative;
}

@media (min-width: 768px) {
  .terms-article .term-heading {
    font-size: 20px;
  }
}

.terms-article .term-heading::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: #3498db;
}

.terms-article .term-subheading {
  font-size: 16px;
  font-weight: 600;
  color: #34495e;
  margin-top: 16px;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .terms-article .term-subheading {
    font-size: 17px;
  }
}

.terms-article .term-text {
  color: #333333;
  line-height: 1.9;
  margin-bottom: 16px;
}

.terms-article .term-text strong {
  color: #e74c3c;
  font-weight: 600;
  background-color: rgba(231, 76, 60, 0.05);
  padding: 2px 4px;
  border-radius: 3px;
}

.terms-article .term-list {
  list-style: none;
  counter-reset: term-counter;
  margin-left: 0;
  padding-left: 0;
}

.terms-article .term-list > li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  line-height: 1.9;
  counter-increment: term-counter;
}

.terms-article .term-list > li::before {
  content: counter(term-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: #3498db;
  font-size: 14px;
  min-width: 20px;
}

.terms-article .term-list > li strong {
  color: #e74c3c;
  font-weight: 600;
  background-color: rgba(231, 76, 60, 0.05);
  padding: 2px 4px;
  border-radius: 3px;
}

.terms-article .term-list.sub-list {
  margin-top: 16px;
  margin-left: 24px;
  counter-reset: sub-counter;
}

.terms-article .term-list.sub-list > li {
  counter-increment: sub-counter;
  padding-left: 24px;
  margin-bottom: 12px;
}

.terms-article .term-list.sub-list > li::before {
  content: "(" counter(sub-counter) ")";
  font-size: 13px;
  color: #34495e;
}

.terms-article .term-list.alpha-list {
  counter-reset: alpha-counter;
}

.terms-article .term-list.alpha-list > li {
  counter-increment: alpha-counter;
}

.terms-article .term-list.alpha-list > li::before {
  content: "(" counter(alpha-counter, lower-alpha) ")";
}

@media (max-width: 767px) {
  body {
    font-size: 14px;
  }
  .terms-article .term-heading {
    font-size: 16px;
  }
  .terms-article .term-subheading {
    font-size: 14px;
  }
  .terms-article .term-text,
  .terms-article .term-list > li {
    font-size: 14px;
    line-height: 1.8;
  }
}

@media print {
  body {
    background-color: white;
  }
  .terms-container {
    max-width: 100%;
    padding: 0;
  }
  .terms-content {
    box-shadow: none;
    padding: 0;
  }
  .term-section {
    page-break-inside: avoid;
  }
  .term-heading {
    page-break-after: avoid;
  }
}

.terms-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.terms-footer .footer-content .footer-company {
  font-size: 13px;
  font-weight: 600;
  color: #34495e;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.terms-footer .footer-content .footer-service {
  font-size: 16px;
  font-weight: 500;
  color: #3498db;
  margin-bottom: 16px;
}

.terms-footer .footer-content .footer-copyright {
  font-size: 12px;
  color: gray;
}
