/* 利用規約ページ（account.css の .guide を土台にした、読みやすさ優先の追加スタイル） */
.terms .terms-meta { font-size: 11px; color: var(--dim); margin: -18px 0 26px; }
.terms .terms-summary { margin: 0 0 26px; }
.terms .terms-summary ul { margin: 10px 0 0; padding-left: 20px; }
.terms .terms-summary li { margin: 8px 0; }
.terms .terms-summary strong { color: #7a2a1f; }
.terms .terms-toc { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 30px; }
.terms .terms-toc h3 { color: var(--gold); margin-bottom: 8px; }
.terms .terms-toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.terms .terms-toc li { margin: 0; padding: 5px 0; font-size: 12px; break-inside: avoid; }
.terms .terms-toc a { text-decoration: none; color: #3a342a; font-size: inherit; }
.terms .terms-toc a:hover { color: var(--green); text-decoration: underline; }
.terms .terms-preamble { font-size: 13px; color: #3a342a; }
.terms .terms-article { scroll-margin-top: 24px; }
.terms .terms-article h2 { font-size: 17px; font-family: 'Noto Serif JP', serif; font-weight: 600; }
.terms .terms-article > p { font-size: 13px; color: #3a342a; }
.terms .terms-article ol { margin: 0; }
.terms .terms-article li { line-height: 1.9; }
.terms ol.terms-items { list-style: none; counter-reset: terms-item; padding-left: 0; margin: 8px 0 4px; }
.terms ol.terms-items > li { counter-increment: terms-item; position: relative; padding-left: 2.6em; margin: 6px 0; }
.terms ol.terms-items > li::before { content: "(" counter(terms-item) ")"; position: absolute; left: 0; color: var(--gold); font-variant-numeric: tabular-nums; }
.terms .terms-key { margin-top: 40px; padding: 4px 24px 22px; border: 1px solid #e3c9a0; border-radius: 14px; background: linear-gradient(120deg, #fbf3e6, #fff 72%); box-shadow: 0 18px 40px -30px rgba(110, 84, 24, .45); }
.terms .terms-key h2 { border-top: 0; margin-top: 18px; padding-top: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.terms .terms-key strong { color: #7a2a1f; }
.terms .terms-badge { display: inline-flex; align-items: center; font: 700 10px 'Noto Sans JP', sans-serif; letter-spacing: 1px; color: #fff; background: #a8322b; border-radius: 4px; padding: 3px 8px; }
.terms .terms-closing { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: #3a342a; }
.terms .terms-back { margin-top: 28px; }
@media (max-width: 680px) {
  .terms .terms-meta { font-size: 13px; margin-top: -10px; }
  .terms .terms-toc { padding: 18px; }
  .terms .terms-toc ol { columns: 1; }
  .terms .terms-toc li { padding: 0; font-size: 14px; }
  .terms .terms-toc a { display: inline-flex; align-items: center; min-height: 40px; }
  .terms .terms-preamble, .terms .terms-article > p { font-size: 14px; }
  .terms .terms-article h2 { font-size: 18px; }
  .terms .terms-key { padding: 2px 16px 18px; }
  /* 文中の条文リンクは段落内で折り返す（account.css の .notice a のタップ領域指定を打ち消す） */
  .terms .terms-summary a { display: inline; min-height: 0; }
  .terms .terms-closing { font-size: 14px; }
}
@media print {
  header, .terms-toc, .terms-back { display: none; }
  body { background: #fff; }
  .terms .terms-key { box-shadow: none; }
}
