/* =========================================================
   Jizai Navi Design (ジザイナビ) — ご利用規約・お支払いに関する規定ページ
   Class prefix: .tm-
   ========================================================= */

body.tm-body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--cream);
  line-height: 1.9;
}

/* ---------- Header ---------- */
.tm-navbar {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(244, 241, 232, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28, 47, 77, 0.08);
}
.tm-nav-container {
  max-width: 1000px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.tm-logo { display: flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; }
.tm-logo-text {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em;
}
.tm-logo .logo-full-img { height: 30px; width: auto; object-fit: contain; display: block; }
.tm-back { font-size: 0.88rem; color: var(--navy); text-decoration: none; }
.tm-back i { margin-right: 6px; }
.tm-back:hover { color: var(--green-dark); }

/* ---------- Hero ---------- */
.tm-hero {
  padding: 70px 24px 56px;
  text-align: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
}
.tm-hero-container { max-width: 760px; margin: 0 auto; }
.tm-tag {
  font-family: var(--font-serif); letter-spacing: 0.2em; color: #8fd6ae;
  font-size: 0.85rem; margin-bottom: 18px;
}
.tm-hero h1 {
  font-family: var(--font-serif); font-size: 2rem; font-weight: 700;
  margin-bottom: 22px; line-height: 1.6;
}
.tm-hero-lead { color: #cfd6e4; font-size: 0.98rem; margin-bottom: 18px; }
.tm-updated { color: #9fb0c9; font-size: 0.85rem; }

/* ---------- Main ---------- */
.tm-main { padding: 64px 24px 100px; }
.tm-container { max-width: 880px; margin: 0 auto; }

.tm-intro {
  background: #fff; border-radius: var(--radius-md); padding: 28px 30px;
  box-shadow: var(--shadow-card); margin-bottom: 40px;
  border-left: 4px solid var(--green);
}
.tm-intro p { color: var(--text-sub); font-size: 0.96rem; }

/* ---------- 目次 ---------- */
.tm-toc {
  background: #fff; border-radius: var(--radius-md); padding: 28px 30px;
  box-shadow: var(--shadow-card); margin-bottom: 56px;
}
.tm-toc h2 {
  font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy);
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.tm-toc h2 i { color: var(--green-dark); }
.tm-toc ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: 8px; }
.tm-toc ol li a { color: var(--navy); font-size: 0.94rem; text-decoration: none; }
.tm-toc ol li a:hover { color: var(--green-dark); text-decoration: underline; }

/* ---------- 各条項 ---------- */
.tm-article { margin-bottom: 64px; scroll-margin-top: 90px; }
.tm-article:last-of-type { margin-bottom: 0; }
.tm-article-head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 18px;
  border-bottom: 2px solid rgba(28,47,77,0.1); padding-bottom: 16px;
}
.tm-article-num {
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700;
  color: var(--green-dark); flex-shrink: 0;
}
.tm-article-head h2 { font-family: var(--font-serif); font-size: 1.35rem; color: var(--navy); font-weight: 700; }
.tm-article-lead { color: var(--text-sub); font-size: 0.95rem; margin-bottom: 24px; }
.tm-subhead {
  font-family: var(--font-serif); font-size: 1.05rem; color: var(--navy);
  margin: 32px 0 14px; display: flex; align-items: center; gap: 10px;
}
.tm-subhead i { color: var(--green-dark); }
.tm-article > .tm-subhead:first-of-type { margin-top: 0; }

/* ---------- テーブル ---------- */
.tm-table-wrap { overflow-x: auto; margin-bottom: 26px; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.tm-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
.tm-table th, .tm-table td {
  padding: 18px 20px; text-align: left; font-size: 0.92rem; vertical-align: top;
  border-bottom: 1px solid rgba(28,47,77,0.08);
}
.tm-table thead th {
  background: var(--navy); color: #fff; font-weight: 600; font-size: 0.86rem;
}
.tm-table tbody tr:last-child td { border-bottom: none; }
.tm-table-note { font-size: 0.8rem; color: var(--text-sub); }

.tm-plan-badge {
  display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 0.8rem;
  font-weight: 600; margin: 2px 4px 2px 0;
}
.tm-plan-badge--ume { background: rgba(74,155,116,0.12); color: var(--green-dark); }
.tm-plan-badge--take { background: rgba(28,47,77,0.1); color: var(--navy); }
.tm-plan-badge--matsu { background: rgba(58,125,93,0.16); color: var(--green-dark); }
.tm-plan-badge--tsuru { background: rgba(184,134,11,0.14); color: var(--gold-dark); }

/* ---------- 松プラン：お支払い選択肢（2択） ---------- */
.tm-matsu-option {
  padding: 10px 0;
}
.tm-matsu-option + .tm-matsu-option {
  border-top: 1px dashed rgba(28,47,77,0.15);
}
.tm-matsu-option p { margin: 0; font-size: 0.92rem; color: var(--text-main); }
.tm-matsu-option-num {
  display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--navy);
  background: rgba(28,47,77,0.08); padding: 2px 9px; border-radius: 20px;
  margin-bottom: 6px; letter-spacing: 0.03em;
}
.tm-matsu-option--discount .tm-matsu-option-num {
  background: rgba(58,125,93,0.16); color: var(--green-dark);
}
.tm-discount-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; font-weight: 700; font-size: 0.78rem;
  padding: 3px 11px; border-radius: 20px; margin-left: 6px;
  box-shadow: 0 2px 6px rgba(58,125,93,0.35);
  vertical-align: middle;
}
.tm-discount-badge i { font-size: 0.72rem; }

.tm-matsu-discount-box h3 { flex-wrap: wrap; }
.tm-discount-highlight {
  font-weight: 800; color: var(--green-dark);
  background: linear-gradient(180deg, transparent 60%, rgba(74,155,116,0.28) 60%);
  padding: 0 2px;
}

/* ---------- 松プラン：お支払い方法（銀行振込 推奨） ---------- */
.tm-recommend-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(28,47,77,0.08); color: var(--navy);
  font-weight: 700; font-size: 0.74rem;
  padding: 3px 11px; border-radius: 20px; margin-left: 8px;
  vertical-align: middle; white-space: nowrap;
}
.tm-recommend-badge i { font-size: 0.7rem; color: var(--green-dark); }

.tm-recommend-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 14px 0;
}
.tm-recommend-note i {
  color: var(--navy); font-size: 1rem; margin-top: 2px; flex-shrink: 0;
}
.tm-recommend-note p { font-size: 0.88rem; color: var(--text-main); margin: 0; }
.tm-recommend-note p strong { color: var(--navy); }

/* ---------- ノートボックス ---------- */
.tm-note-box {
  background: #fff; border-radius: var(--radius-md); padding: 24px 28px;
  box-shadow: var(--shadow-card);
}
.tm-note-box--accent { border-left: 4px solid var(--green); }
.tm-note-box h3 {
  font-family: var(--font-serif); font-size: 1.02rem; color: var(--navy);
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.tm-note-box h3 i { color: var(--green-dark); }
.tm-note-box p, .tm-note-box li { color: var(--text-main); font-size: 0.92rem; }
.tm-note-box ul { padding-left: 0; margin-top: 4px; }
.tm-note-box ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.tm-note-box ul li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 2px; color: var(--green-dark); font-size: 0.8rem;
}
.tm-note-small { color: var(--text-sub); font-size: 0.82rem; margin-top: 10px; }

/* ---------- リスト（アイコン付き） ---------- */
.tm-list { display: grid; gap: 22px; }
.tm-list > li {
  display: flex; gap: 18px; background: #fff; border-radius: var(--radius-md);
  padding: 22px 26px; box-shadow: var(--shadow-card);
}
.tm-list > li > i {
  font-size: 1.3rem; color: var(--green-dark); flex-shrink: 0; margin-top: 4px;
}
.tm-list h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; font-weight: 700; }
.tm-list p { font-size: 0.92rem; color: var(--text-main); }

.tm-list--simple { gap: 12px; }
.tm-list--simple li {
  background: #fff; border-radius: var(--radius-md); padding: 16px 22px;
  box-shadow: var(--shadow-card); font-size: 0.92rem; color: var(--text-main);
  display: block;
}

/* ---------- 2カラムカード ---------- */
.tm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 26px; }
.tm-card {
  background: #fff; border-radius: var(--radius-md); padding: 24px 26px;
  box-shadow: var(--shadow-card);
}
.tm-card h3 {
  font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
  font-weight: 700;
}
.tm-card--free h3 i { color: var(--green-dark); }
.tm-card--free { border-top: 4px solid var(--green); }
.tm-card--paid h3 i { color: #b8863b; }
.tm-card--paid { border-top: 4px solid #d9a441; }
.tm-card p { font-size: 0.9rem; color: var(--text-main); margin-bottom: 10px; }
.tm-card ul { padding-left: 0; }
.tm-card ul li {
  position: relative; padding-left: 20px; font-size: 0.88rem; color: var(--text-sub);
  margin-bottom: 6px;
}
.tm-card ul li::before {
  content: "―"; position: absolute; left: 0; color: var(--text-sub);
}

/* ---------- CTA ---------- */
.tm-cta-band {
  background: #fff; border-radius: var(--radius-lg); padding: 48px 32px;
  text-align: center; margin-top: 76px; box-shadow: var(--shadow-card);
}
.tm-cta-band h2 { font-family: var(--font-serif); color: var(--navy); font-size: 1.3rem; margin-bottom: 12px; }
.tm-cta-band p { color: var(--text-sub); margin-bottom: 24px; font-size: 0.94rem; }
.tm-cta-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tm-btn {
  display: inline-flex; align-items: center; padding: 13px 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; text-decoration: none; border: 2px solid transparent;
  transition: all 0.25s ease;
}
.tm-btn-primary { background: var(--navy); color: #fff; }
.tm-btn-primary:hover { background: var(--navy-light); transform: translateY(-2px); }
.tm-btn-secondary { background: transparent; border-color: var(--navy); color: var(--navy); }
.tm-btn-secondary:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.tm-footer { background: var(--navy-dark); color: #cfd6e4; padding: 26px 24px; }
.tm-footer-content {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.84rem;
}
.tm-footer-link { color: #cfd6e4; text-decoration: none; }
.tm-footer-link i { margin-right: 6px; }
.tm-footer-link:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .tm-hero { padding: 56px 20px 44px; }
  .tm-hero h1 { font-size: 1.5rem; }
  .tm-main { padding: 48px 18px 80px; }
  .tm-grid-2 { grid-template-columns: 1fr; }
  .tm-article-head { gap: 12px; }
  .tm-article-head h2 { font-size: 1.15rem; }
  .tm-table th, .tm-table td { padding: 14px 16px; font-size: 0.86rem; }
  .tm-footer-content { flex-direction: column; text-align: center; }
}
