/* ========================================
   terms.css - 利用規約ページ専用スタイル
   対象: terms/index.html (itf-oa.jp/terms/)
   ======================================== */

/* Header */
.terms-header {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.terms-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terms-header .site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0066cc;
  text-decoration: none;
}

.terms-header .site-logo:hover {
  text-decoration: none;
}

.site-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.site-logo-text {
  font-size: 1.125rem;
  font-weight: bold;
  white-space: nowrap;
}

.terms-header-back {
  font-size: 0.875rem;
  color: #666;
  text-decoration: none;
  padding: 6px 0;
}

.terms-header-back:hover {
  color: #0066cc;
  text-decoration: underline;
}

/* Hero */
.terms-hero {
  background: linear-gradient(135deg, #003d80 0%, #0066cc 60%, #0080e0 100%);
  color: #fff;
  padding: 40px 0 32px;
  text-align: center;
}

.terms-hero-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.terms-hero-meta {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* Content */
.terms-content {
  padding: 48px 0 64px;
  background-color: #fff;
}

.terms-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: #333;
}

.terms-body > p {
  margin-bottom: 16px;
}

/* 章見出し */
.terms-body h2 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #0066cc;
  margin: 48px 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0066cc;
}

/* 条見出し */
.terms-body h3 {
  font-size: 1.0625rem;
  font-weight: bold;
  color: #222;
  margin: 32px 0 12px;
}

/* 丸数字リスト（定義・列挙） */
.terms-list-circled {
  list-style: none;
  counter-reset: circled;
  padding-left: 0;
  margin: 12px 0 16px;
}

.terms-list-circled > li {
  counter-increment: circled;
  padding-left: 2em;
  position: relative;
  margin-bottom: 8px;
}

.terms-list-circled > li::before {
  content: counter(circled, decimal);
  position: absolute;
  left: 0;
  width: 1.6em;
  text-align: center;
  font-size: 0.8125rem;
  border: 1px solid #999;
  border-radius: 50%;
  line-height: 1.6em;
  height: 1.6em;
  top: 0.25em;
  color: #555;
}

/* ネストされた丸数字（第4条2項の①②など） */
.terms-list-circled .terms-list-circled {
  margin-top: 8px;
}

/* 番号付きリスト（項番号） */
.terms-list-numbered {
  list-style: none;
  counter-reset: clause;
  padding-left: 0;
  margin: 12px 0 16px;
}

.terms-list-numbered > li {
  counter-increment: clause;
  padding-left: 2em;
  position: relative;
  margin-bottom: 12px;
}

.terms-list-numbered > li::before {
  content: counter(clause);
  position: absolute;
  left: 0;
  font-weight: bold;
  color: #444;
}

/* テーブル */
.terms-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.terms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.terms-table th,
.terms-table td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
}

.terms-table th {
  background-color: #f0f4fa;
  font-weight: bold;
  color: #222;
  white-space: nowrap;
}

.terms-table td {
  color: #444;
}

/* 会社情報 */
.terms-company-info {
  margin-top: 40px;
  padding: 24px;
  background-color: #f7f8fa;
  border-radius: 8px;
  text-align: center;
}

.terms-company-info p {
  margin-bottom: 4px;
  font-size: 0.9375rem;
  color: #444;
}

.terms-copyright {
  margin-top: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: #888;
}

/* Footer */
.terms-footer {
  background-color: #1a1a2e;
  color: #999;
  padding: 32px 0;
  text-align: center;
}

.terms-footer .footer-service {
  font-size: 1rem;
  font-weight: bold;
  color: #ccc;
  margin-bottom: 4px;
}

.terms-footer .footer-company {
  font-size: 0.8125rem;
  color: #888;
  margin-bottom: 4px;
}

.terms-footer .footer-company-link {
  color: #aab;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.terms-footer .footer-company-link:hover {
  color: #ccd;
  border-bottom-color: #ccd;
  text-decoration: none;
}

.terms-footer .footer-links {
  font-size: 0.8125rem;
  margin-bottom: 8px;
}

.terms-footer .footer-copy {
  font-size: 0.75rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .site-logo-img { height: 34px; }
  .site-logo-text { font-size: 1rem; }
  .terms-header-back { font-size: 0.8125rem; }

  .terms-hero { padding: 32px 0 24px; }
  .terms-hero-title { font-size: 1.25rem; }

  .terms-content { padding: 32px 0 48px; }
  .terms-body h2 { font-size: 1.125rem; margin-top: 36px; }
  .terms-body h3 { font-size: 1rem; }

  .terms-table { font-size: 0.8125rem; }
  .terms-table th, .terms-table td { padding: 8px 10px; }
}
