/* ルールページ専用スタイル: 長文ルール本文と点数表の読みやすさを整える。 */
/* Responsive rule: mobile-first, desktop overrides use min-width 769px. */

.p-rule__body {
  max-width: 960px;
  margin: 0 auto;
  padding: 15px;
  border-radius: 8px;
  background-color: #fff;
}

@media (min-width: 769px) {
  .p-rule__body {
    padding: 30px;
    border-radius: 0;
  }
}

.p-rule__group {
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px dashed #e0e0e0;
}

.p-rule__group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.p-rule__group > .c-title {
  position: relative;
  margin: 0 auto 40px;
  padding-bottom: 50px;
  text-align: center;
}

.p-rule__group > .c-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  width: 90%;
  height: 12px;
  border-radius: 6px;
  background-color: #eee;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.p-rule__group > .c-title::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d9534f;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.c-title.-dot {
  margin-top: 20px;
  font-size: 1.1em;
  text-align: center;
}

@media (min-width: 769px) {
  .p-rule__group > .c-title::after {
    width: 150px;
  }

  .p-rule__group > .c-title::before {
    bottom: 1px;
    width: 10px;
    height: 10px;
  }

  .c-title.-dot {
    margin-top: 0;
    font-size: 1.9rem;
  }
}

.p-rule__contents .c-title {
  margin: 30px auto;
}

@media (min-width: 769px) {
  .c-title {
    margin-bottom: 0;
    font-size: inherit;
  }
}

.p-rule__text {
  margin-bottom: 1.5em;
  font-size: 0.95em;
  line-height: 1.8;
}

@media (min-width: 769px) {
  .p-rule__text {
    font-size: 1.05em;
  }
}

.p-rule__text ol {
  margin: 0;
  padding-left: 25px;
}

.p-rule__text li {
  position: relative;
  margin-bottom: 0.8em;
}

.p-rule__text ol li::marker {
  color: #5cb85c;
  font-weight: 700;
}

.p-rule__table {
  width: 100%;
  margin: 20px 0;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  border: 1px solid #ddd;
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85em;
}

@media (min-width: 769px) {
  .p-rule__table {
    overflow: hidden;
    white-space: normal;
    font-size: 0.95em;
  }
}

.p-rule__table th,
.p-rule__table td {
  padding: 8px 10px;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  text-align: left;
}

@media (min-width: 769px) {
  .p-rule__table th,
  .p-rule__table td {
    padding: 12px 15px;
  }
}

.p-rule__table th {
  background-color: #eef4f9;
  color: #444;
  font-weight: 700;
}

.p-rule__table th:last-child,
.p-rule__table td:last-child {
  border-right: none;
}

.p-rule__table tbody tr:last-child td {
  border-bottom: none;
}

.p-rule__table tbody tr:hover {
  background-color: #f9f9f9;
}

.p-rule__table.-full {
  margin-top: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.p-rule__text strong {
  color: #d9534f;
}

.p-rule__text em {
  padding: 2px 4px;
  border-radius: 3px;
  background-color: #ffffe0;
  font-style: normal;
}
