/* =========================================
   取引マニュアルページ専用スタイル
   style.css の CSS変数を継承
   ========================================= */

.sp-only { display: none; }
@media (max-width: 760px) { .sp-only { display: inline; } }

/* パンくず */
.breadcrumb {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  padding: 12px 0;
}

.breadcrumb a {
  color: var(--navy);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--text-mute);
}

.breadcrumb span:not(.breadcrumb-sep) {
  color: var(--text-sub);
}

/* ヒーロー */
.tx-hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%);
  padding: 64px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.tx-hero-eyebrow {
  display: inline-block;
  padding: 5px 14px;
  background: var(--navy);
  color: white;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.tx-hero-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(24px, 4vw, 38px);
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.tx-hero-lead {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 2;
  max-width: 720px;
  margin: 0 auto;
}

/* 目次 */
.tx-toc-section {
  padding: 56px 0 24px;
  background: white;
}

.tx-toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  max-width: 720px;
  margin: 0 auto;
}

.tx-toc-title {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy-pale);
  letter-spacing: 0.04em;
}

.tx-toc-list {
  list-style: none;
  counter-reset: toc;
  padding: 0;
}

.tx-toc-list li {
  counter-increment: toc;
  padding: 6px 0 6px 36px;
  position: relative;
}

.tx-toc-list li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 6px;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.05em;
}

.tx-toc-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.tx-toc-list a:hover { color: var(--navy); }

/* セクション共通 */
.tx-section {
  padding: 72px 0;
  background: white;
}

.tx-section-alt {
  background: var(--bg-soft);
}

.tx-section-eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tx-section-eyebrow-light {
  color: var(--gold);
}

.tx-section-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.tx-section-title-light {
  color: white;
}

.tx-section-lead {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.95;
  margin-bottom: 32px;
  max-width: 760px;
}

.tx-subsection-title {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  color: var(--navy);
  margin: 40px 0 20px;
  padding-left: 16px;
  border-left: 4px solid var(--gold);
  letter-spacing: 0.04em;
}

/* 契約書カード */
.tx-doc-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.tx-doc-card-sm {
  margin-top: 20px;
}

.tx-doc-card-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  background: var(--navy-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tx-doc-card-label {
  font-size: 11px;
  color: var(--text-mute);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.tx-doc-card-name {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 4px;
  font-weight: 700;
}

.tx-doc-card-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}

.tx-doc-card-desc a {
  color: var(--navy);
  text-decoration: underline;
}

.tx-doc-card-btn {
  background: var(--navy);
  color: white !important;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.tx-doc-card-btn:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

@media (max-width: 680px) {
  .tx-doc-card {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .tx-doc-card-btn {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }
}

/* チェックリスト */
.tx-check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.tx-check-list li {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.tx-check-num {
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  background: var(--navy-pale);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.tx-check-text {
  font-size: 14.5px;
  color: var(--text-sub);
  line-height: 1.85;
  padding-top: 4px;
}

.tx-check-text strong {
  color: var(--text);
}

/* 取引のステップ */
.tx-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tx-step {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  position: relative;
  transition: all 0.2s;
}
.tx-step:hover {
  box-shadow: var(--shadow-md);
  border-color: #c9d8ec;
}

.tx-step-num {
  font-family: "Noto Serif JP", serif;
  font-size: 32px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(16,38,73,0.2);
}

.tx-step-final .tx-step-num {
  background: linear-gradient(135deg, var(--gold) 0%, #a8853d 100%);
  box-shadow: 0 4px 12px rgba(168,133,61,0.3);
}

.tx-step-title {
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.tx-step-body p {
  font-size: 14.5px;
  color: var(--text-sub);
  line-height: 1.95;
  margin-bottom: 12px;
}

.tx-step-body p:last-child { margin-bottom: 0; }

.tx-step-body strong {
  color: var(--text);
  font-weight: 700;
}

.tx-step-body a {
  color: var(--navy);
  text-decoration: underline;
}

.tx-step-tip {
  background: var(--bg-soft);
  border-left: 3px solid var(--navy-light);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13.5px !important;
  margin-top: 16px !important;
}

@media (max-width: 680px) {
  .tx-step {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 16px;
  }
  .tx-step-num {
    width: 56px;
    height: 56px;
    font-size: 26px;
  }
}

/* コールアウト */
.tx-callout {
  background: #fefaf2;
  border: 1px solid #f0e3c0;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0;
}

.tx-callout-warn {
  background: #fdf5f5;
  border-color: #f3d6d6;
}

.tx-callout-title {
  font-family: "Noto Serif JP", serif;
  font-size: 15px !important;
  font-weight: 700;
  color: #8a6920 !important;
  margin-bottom: 12px !important;
  letter-spacing: 0.04em;
}

.tx-callout-warn .tx-callout-title {
  color: #c93838 !important;
}

.tx-callout-list {
  padding-left: 24px;
  margin: 0;
}

.tx-callout-list li {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.85;
  padding: 4px 0;
}

.tx-callout-list strong {
  color: var(--text);
  font-weight: 700;
}

.tx-callout-bullets {
  list-style: disc;
  padding-left: 24px;
  margin: 0;
}

.tx-callout-bullets li {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.85;
  padding: 3px 0;
}

.tx-callout-bullets-tight {
  margin-top: 12px;
}

.tx-callout-bullets strong {
  color: var(--text);
  font-weight: 700;
}

/* 通常の箇条書き */
.tx-bullet-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.tx-bullet-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 14.5px;
  color: var(--text-sub);
  line-height: 1.85;
}

.tx-bullet-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--navy);
  border-radius: 50%;
}

/* 必要書類グリッド */
.tx-doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.tx-doc-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
}
.tx-doc-section:hover {
  box-shadow: var(--shadow-md);
}

.tx-doc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.tx-doc-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tx-doc-tag-seller {
  background: var(--navy);
  color: white;
}

.tx-doc-tag-buyer {
  background: var(--gold);
  color: white;
}

.tx-doc-type {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tx-doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tx-doc-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}
.tx-doc-list li:last-child { border-bottom: none; }

.tx-doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 12px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
  border-radius: 1px;
}

.tx-doc-list li small {
  display: block;
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 2px;
}

.tx-doc-list a {
  color: var(--navy);
  text-decoration: underline;
}

.tx-doc-help {
  display: inline-block;
  font-size: 11px !important;
  margin-left: 6px;
  padding: 2px 8px;
  background: var(--navy-pale);
  color: var(--navy) !important;
  border-radius: 999px;
  text-decoration: none !important;
}

.tx-doc-note {
  background: var(--bg-soft);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--text-sub);
  margin-top: 16px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .tx-doc-grid { grid-template-columns: 1fr; }
}

/* 費用テーブル */
.tx-fee-table-wrap {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
  border: 1px solid var(--line);
}

.tx-fee-table {
  width: 100%;
  border-collapse: collapse;
}

.tx-fee-table th {
  background: var(--navy);
  color: white;
  padding: 16px 24px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tx-fee-table th:last-child { text-align: right; }

.tx-fee-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--text);
}

.tx-fee-table td:last-child {
  text-align: right;
}

.tx-fee-table td small {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 2px;
}

.tx-fee-table-total {
  background: var(--bg-tint);
}

.tx-fee-table-total td {
  font-size: 16px;
  color: var(--navy);
  border-bottom: none;
}

.tx-fee-note {
  margin-top: 16px;
  padding: 16px 20px;
  background: white;
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.85;
  border: 1px solid var(--line);
}

.tx-fee-note strong {
  color: var(--navy);
  font-weight: 700;
}

/* トラブルグリッド */
.tx-trouble-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.tx-trouble-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: all 0.2s;
}
.tx-trouble-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #f3d6d6;
}

.tx-trouble-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: "Noto Serif JP", serif;
  font-size: 36px;
  font-weight: 700;
  color: #f3d6d6;
  line-height: 1;
}

.tx-trouble-title {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 14px;
  padding-right: 56px;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.tx-trouble-card > p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.95;
  margin-bottom: 16px;
}

.tx-trouble-action {
  background: var(--bg-soft);
  border-left: 3px solid var(--success);
  padding: 14px 18px;
  border-radius: 4px;
}

.tx-trouble-action-label {
  font-size: 11px !important;
  color: var(--success) !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 6px !important;
}

.tx-trouble-action p:last-child {
  font-size: 13.5px !important;
  margin-bottom: 0 !important;
  line-height: 1.85;
}

.tx-trouble-action strong {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 760px) {
  .tx-trouble-grid { grid-template-columns: 1fr; }
}

/* 大事なポイント */
.tx-points {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.tx-points::before {
  content: "縁";
  position: absolute;
  font-family: "Noto Serif JP", serif;
  font-size: 480px;
  font-weight: 700;
  color: white;
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.tx-points .tx-section-eyebrow {
  color: var(--gold);
}

.tx-points-list {
  display: grid;
  gap: 16px;
  max-width: 800px;
  margin: 32px 0 48px;
  position: relative;
}

.tx-points-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  backdrop-filter: blur(10px);
}

.tx-points-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.tx-points-card p {
  font-size: 14.5px;
  line-height: 1.95;
  margin: 0;
  color: rgba(255,255,255,0.95);
}

.tx-points-card strong {
  color: var(--gold);
  font-weight: 700;
}

.tx-final-cta {
  text-align: center;
  position: relative;
  padding: 32px 0 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.tx-final-cta p {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.95);
}

/* レスポンシブ */
@media (max-width: 760px) {
  .tx-section { padding: 56px 0; }
  .tx-hero { padding: 48px 0 40px; }
  .tx-toc { padding: 24px; }
  .tx-points { padding: 56px 0; }
  .tx-trouble-num { font-size: 28px; }
}
