@charset "UTF-8";

/* ===== Variables ===== */
:root {
  --brand-dark:  #1A3C6E;
  --brand-mid:   #1A6FAA;
  --brand-light: #E3EEF8;
  --brand-pale:  #F5F9FD;
  --accent:      #5B9BD5;
  --text-body:   #2d3748;
  --text-muted:  #64748b;
  --border:      #dce8f4;
  --white:       #ffffff;
}

/* ===== Page ===== */
#_content {
  padding: 60px 24px 80px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-body);
  background: var(--brand-pale);
}

#_content > div {
  margin: 0 auto;
  width: 100%;
  max-width: 860px;
}

/* ===== Page Title ===== */
h1 {
  margin: 0 0 48px;
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--brand-dark);
  letter-spacing: 0.08em;
}

h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--brand-mid);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ===== Card Wrapper ===== */
.agreement-body {
  background: var(--white);
  border-radius: 12px;
  box-shadow:
    0 1px 3px rgba(26, 60, 110, 0.06),
    0 4px 24px rgba(26, 60, 110, 0.08);
  padding: 48px 56px 64px;
  border: 1px solid var(--border);
}

/* ===== Chapter Section ===== */
.chapter {
  margin-top: 48px;
}

.chapter:first-child {
  margin-top: 0;
}

/* ===== Chapter Title (h2) ===== */
.chapter-title {
  margin: 0 0 24px;
  padding: 14px 20px 14px 22px;
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  background: var(--brand-dark);
  border-radius: 6px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  position: relative;
}

.chapter-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: 6px 0 0 6px;
}

/* ===== Article ===== */
.article {
  margin-top: 28px;
  padding-bottom: 4px;
}

/* ===== Article Label ===== */
.article-label {
  display: inline-block;
  margin: 0 0 6px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-mid);
  background: var(--brand-light);
  border-left: 3px solid var(--brand-mid);
  border-radius: 0 4px 4px 0;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* ===== Article Number ===== */
.article-no {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 14px;
}

/* ===== Paragraphs ===== */
.article p {
  margin: 0 0 8px;
  padding-left: 1em;
}

.article p:last-child {
  margin-bottom: 0;
}

.article-label,
.article-no {
  padding-left: 0;
}

/* ===== Lists ===== */
.article ul {
  margin: 4px 0 8px;
  padding-left: 2em;
  list-style: none;
}

.article ul li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 4px;
  line-height: 1.8;
}

.article ul li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--brand-mid);
  font-weight: 700;
}

/* ===== Links ===== */
p a {
  color: var(--brand-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s, border-color 0.2s;
}

p a:hover {
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* ===== Addendum ===== */
.addendum {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
  #_content {
    padding: 32px 16px 60px;
  }

  h1 {
    font-size: 22px;
    margin-bottom: 32px;
  }

  .agreement-body {
    padding: 28px 20px 40px;
    border-radius: 8px;
  }

  .chapter-title {
    font-size: 15px;
    padding: 12px 16px 12px 18px;
  }

  .article-label {
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .agreement-body {
    padding: 20px 16px 32px;
  }

  .article ul {
    padding-left: 1em;
  }
}