/**
 * 利用規約ページ用スタイル
 */

/* 利用規約ページコンテナ（1カラム） */
.terms-page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* メインコンテンツエリア */
.terms-main-content {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

/* ページヘッダー */
.page-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 3px solid #f0f0f0;
}

.page-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

/* 利用規約コンテンツ */
.terms-content {
  padding: 0;
}

/* 施行日 */
.effective-date {
  color: #666;
  font-size: 14px;
  margin-bottom: 30px;
}

/* 重要事項ボックス */
.important-notice {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 30px;
}

.important-notice p {
  margin: 0;
  color: #991b1b;
  font-weight: 600;
  line-height: 1.6;
}

/* 条項 */
.terms-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.terms-section h2 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
}

.terms-section h3 {
  font-size: 18px;
  font-weight: bold;
  color: #444;
  margin-top: 25px;
  margin-bottom: 15px;
}

.terms-section p {
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

/* 条項番号付きリスト */
.terms-list {
  counter-reset: terms-counter;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.terms-list li {
  counter-increment: terms-counter;
  position: relative;
  padding-left: 40px;
  margin-bottom: 15px;
  line-height: 1.8;
  color: #555;
}

/* サブリスト */
.terms-section ul {
  margin: 15px 0;
  padding-left: 30px;
}

.terms-section ul li {
  margin-bottom: 8px;
  line-height: 1.8;
  color: #555;
}

/* 定義部分 */
.definition-box {
  background-color: #f9fafb;
  border-left: 3px solid #6b7280;
  padding: 15px 20px;
  margin: 20px 0;
}

.definition-box dl {
  margin: 0;
}

.definition-box dt {
  font-weight: bold;
  color: #374151;
  margin-bottom: 5px;
}

.definition-box dd {
  margin-left: 20px;
  color: #555;
  line-height: 1.8;
}

/* 同意ボタンエリア（必要な場合） */
.agreement-section {
  margin-top: 40px;
  padding: 30px;
  background-color: #f3f4f6;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.agreement-section p {
  margin-bottom: 20px;
  color: #555;
}

.agree-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--primary-color, #dc2626);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s;
}

.agree-button:hover {
  background-color: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

/* リンク */
.terms-content a {
  color: var(--primary-color, #dc2626);
  text-decoration: none;
  transition: all 0.3s;
}

.terms-content a:hover {
  text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .terms-page-container {
    padding: 20px 15px;
  }

  .terms-main-content {
    padding: 25px 20px;
    border-radius: 8px;
  }

  .page-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
  }

  .page-title {
    font-size: 24px;
  }

  .terms-section {
    padding: 15px;
    margin-bottom: 20px;
  }

  .terms-section h2 {
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .terms-section h3 {
    font-size: 16px;
  }

  .important-notice {
    padding: 15px;
  }

  .agreement-section {
    padding: 20px;
    margin-top: 30px;
  }

  .agree-button {
    padding: 12px 30px;
    font-size: 15px;
  }
}
