/* 薬の料金比較 /price/{薬}/ (2026-11-20)。トークンは tdc-ds.css、見出し・統計帯は tdc-treatment-top.css を流用 */
.tdc-dp { color: var(--tdc-text); }
.tdc-dp .tdc-section__inner { max-width: 880px; }
.tdc-dp-head { margin: 18px 0 8px; }
.tdc-dp-head__conclusion {
  margin: 0 0 16px; padding: 14px 16px; border-left: 3px solid var(--tdc-terra);
  background: #fffaf3; border-radius: 0 10px 10px 0;
  font-size: 14.5px; line-height: 1.9; color: #4a403a;
}
.tdc-dp-head .tdc-page-head__lead { margin-top: 14px; }
.tdc-dp-preview { margin: 10px 0; padding: 10px 14px; border-radius: 8px; background: #fff4d8; color: #7a5a1c; font-size: 13px; }
.tdc-dp-lead { font-size: 14px; line-height: 1.85; color: #5a504a; margin: 0 0 16px; }
.tdc-dp-small { font-size: 12px; color: var(--tdc-sub); margin: 8px 0 0; }
.tdc-dp-empty { padding: 18px; text-align: center; color: var(--tdc-sub); background: #f8f5f2; border-radius: 10px; font-size: 13px; }

/* PR 表記 */
.tdc-dp-pr {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px;
  background: #8a8581; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  line-height: 1.5; vertical-align: middle; font-family: var(--tdc-sans);
}

/* ── PR枠 ── */
.tdc-dp-prbox {
  margin: 22px 0 8px; padding: 18px 18px 20px; border: 2px solid #e6d3c4; border-radius: 16px;
  background: linear-gradient(180deg, #fffaf5 0%, #fff 70%);
  font-family: var(--tdc-sans); font-size: 14px; line-height: 1.6;
}
.tdc-dp-prbox__tag { margin: 0 0 8px; font-size: 11.5px; color: var(--tdc-sub); }
.tdc-dp-prbox__tag .tdc-dp-pr { margin: 0 6px 0 0; }
.tdc-dp-prbox__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.tdc-dp-prbox__name { margin: 0; font-size: 20px; font-weight: 700; color: #2f2a27; }
.tdc-dp-prbox__name small { display: block; font-size: 11.5px; font-weight: 400; color: var(--tdc-sub); margin-top: 2px; }
.tdc-dp-prbox__price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: #5a504a; font-size: 12.5px; }
.tdc-dp-prbox__price strong { font-family: Georgia, "Times New Roman", serif; font-size: 28px; color: var(--tdc-rose); line-height: 1.1; }
.tdc-dp-prbox__badges, .tdc-dp-prbox__features { list-style: none !important; margin: 12px 0 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.tdc-dp-prbox__badges li { padding: 3px 10px; border-radius: 999px; background: #f3e7dc; color: #7a5a44; font-size: 12.5px; font-weight: 700; }
.tdc-dp-prbox__features { display: block; }
.tdc-dp-prbox__features li { position: relative; padding-left: 20px; margin: 4px 0; font-size: 13.5px; }
.tdc-dp-prbox__features li::before { content: "✓"; position: absolute; left: 2px; color: var(--tdc-terra); font-weight: 700; }
.tdc-dp-prbox__features li::marker, .tdc-dp-prbox__badges li::marker { content: ""; }
.tdc-dp-prbox__plans { margin-top: 14px; }
.tdc-dp-prbox__plans table, .tdc-dp-card__others table, .tdc-dp-table {
  width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; margin: 0;
}
.tdc-dp-prbox__plans th, .tdc-dp-prbox__plans td,
.tdc-dp-card__others th, .tdc-dp-card__others td,
.tdc-dp-table th, .tdc-dp-table td {
  padding: 7px 8px !important; border: 1px solid var(--tdc-line) !important; text-align: center; vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.tdc-dp-prbox__plans thead th, .tdc-dp-card__others thead th, .tdc-dp-table thead th {
  background: #f8efe8 !important; color: #6a5048; font-weight: 700; font-size: 12px;
}
.tdc-dp-prbox__plans td small, .tdc-dp-card__others td small { display: block; font-size: 11px; color: var(--tdc-sub); }
.tdc-dp-prbox__note { margin: 6px 0 0; font-size: 11.5px; color: var(--tdc-sub); }
.tdc-dp-prbox__cta, .tdc-dp-card__cta {
  display: flex !important; width: 100%; margin-top: 14px;
  background: var(--tdc-grad-cta); color: #fff !important; box-shadow: var(--tdc-shadow-cta);
}
.tdc-dp-prbox__cta { font-size: 15.5px; padding: 15px 18px; }

/* ── 用量タブ・操作 ── */
.tdc-dp-tabs { display: flex; gap: 8px; margin: 0 0 12px; }
.tdc-dp-tabs__btn {
  flex: 1 1 0; padding: 11px 10px; border: 1px solid var(--tdc-line); border-radius: 12px; background: #fff;
  font-family: var(--tdc-sans); font-size: 15px; font-weight: 700; color: #6a5f5a; cursor: pointer;
}
.tdc-dp-tabs__btn[aria-selected="true"] { background: var(--tdc-rose); border-color: var(--tdc-rose); color: #fff; }
.tdc-dp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 14px; padding: 12px 14px; background: #fdf8f5; border-radius: 12px; font-size: 13px; }
.tdc-dp-controls[hidden] { display: none; }
.tdc-dp-controls select { margin-left: 6px; padding: 6px 8px; border: 1px solid var(--tdc-line); border-radius: 8px; font-size: 13px; background: #fff; }
.tdc-dp-controls__filters { display: flex; flex-wrap: wrap; gap: 6px 14px; border: 0; margin: 0; padding: 0; }
.tdc-dp-controls__filters legend { float: left; margin-right: 8px; padding: 0; font-weight: 700; color: #6a5f5a; }
.tdc-dp-controls__filters label { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; cursor: pointer; }
.js-dp .tdc-dp-panel[data-inactive] { display: none; }

/* ── 一覧 ── */
.tdc-dp-panel { margin: 0 0 30px; }
.post_content .tdc-dp-panel__title {
  margin: 0 0 12px !important; font-size: 18px !important; padding: 8px 0 8px 12px !important;
  border-left: 4px solid var(--tdc-rose) !important; background: none !important; border-bottom: 0 !important;
}
.post_content .tdc-dp-panel__title::before, .post_content .tdc-dp-panel__title::after { display: none !important; }
.tdc-dp-group { margin: 0 0 22px; }
.tdc-dp-group[hidden] { display: none; }
.tdc-dp-group__title { margin: 0 0 10px; font-weight: 700; font-size: 15px; color: #4a403a; }
.tdc-dp-group__title span { margin-left: 8px; font-weight: 400; font-size: 12px; color: var(--tdc-sub); }
.tdc-dp-cards { display: grid; gap: 12px; }
.tdc-dp-card {
  padding: 14px 16px; border: 1px solid var(--tdc-line); border-radius: 14px; background: #fff;
  box-shadow: 0 6px 18px -14px rgba(168, 132, 127, .45);
}
.tdc-dp-card[hidden] { display: none; }
.tdc-dp-card.is-pr { border-color: #e6d3c4; }
.tdc-dp-card__head { display: flex; align-items: center; gap: 12px; }
.tdc-dp-card__rank {
  flex: 0 0 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #f8efe8; color: var(--tdc-rose); font-family: Georgia, serif; font-weight: 700; font-size: 20px; line-height: 1;
}
.tdc-dp-card__rank small { font-family: var(--tdc-sans); font-size: 10.5px; margin-left: 1px; }
.tdc-dp-card.is-unranked .tdc-dp-card__rank { background: #f1efed; color: var(--tdc-sub); }
.tdc-dp-card__id { flex: 1 1 auto; min-width: 0; }
.tdc-ds .tdc-dp-card__name { font-size: 16px !important; font-weight: 700; color: #2f2a27; }
.tdc-dp-card__op { font-size: 11.5px; color: var(--tdc-sub); margin-top: 2px !important; }
.tdc-dp-card__unit { flex: 0 0 auto; text-align: right; }
.tdc-dp-card__unit-label { display: block; font-size: 11px; color: var(--tdc-sub); }
.tdc-dp-card__unit-val { display: block; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 24px; color: var(--tdc-rose); line-height: 1.15; font-variant-numeric: tabular-nums; }
.tdc-dp-card__spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 12px 0 0 !important; background: var(--tdc-line); border: 1px solid var(--tdc-line); border-radius: 10px; overflow: hidden; }
.tdc-dp-card__spec > div { background: #fff; padding: 7px 8px; text-align: center; }
.tdc-dp-card__spec dt { font-size: 11px; color: var(--tdc-sub); font-weight: 400; }
.tdc-dp-card__spec dd { font-size: 14px; font-weight: 700; color: #3d352f; font-variant-numeric: tabular-nums; }
.tdc-dp-card__spec dd small { display: block; font-size: 11px; font-weight: 400; color: var(--tdc-sub); }
.tdc-dp-card__spec .is-total { background: #fffaf3; }
.tdc-dp-card__note { margin-top: 8px !important; font-size: 12px; color: #6a5f5a; }
.tdc-dp-card__others { margin-top: 10px; font-size: 13px; }
.tdc-dp-card__others summary { cursor: pointer; color: var(--tdc-rose); font-weight: 700; font-size: 13px; }
.tdc-dp-card__others table { margin-top: 8px; }
.tdc-dp-card__foot { margin-top: 10px; }
.tdc-dp-card__src { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--tdc-sub); }
.tdc-dp-card__src a { color: var(--tdc-rose); text-decoration: underline !important; }
.tdc-dp-card__cta { margin-top: 10px; padding: 11px 16px; font-size: 14px; }
.tdc-dp-card__cta:not(.is-ad) { background: #fff; color: var(--tdc-rose) !important; border: 1px solid var(--tdc-rose); box-shadow: none; }

/* ── 相場表 ── */
.tdc-dp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tdc-dp-table { min-width: 560px; }
.tdc-dp-table tbody th { background: #fdf8f5 !important; font-weight: 700; }

/* ── 関連・調査方法 ── */
.tdc-dp-related__list, .tdc-dp-method__list { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.tdc-dp-related__list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tdc-dp-related__list a {
  display: block; padding: 12px 14px; border: 1px solid var(--tdc-line); border-radius: 12px; background: #fff;
  color: #4a403a; font-weight: 700; text-decoration: none !important;
}
.tdc-dp-related__list a::after { content: " →"; color: var(--tdc-rose); }
.tdc-dp-method__list li { position: relative; padding-left: 16px; margin: 0 0 8px; font-size: 13.5px; line-height: 1.85; }
.tdc-dp-method__list li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--tdc-pink); }
.tdc-dp-method__list li::marker { content: ""; }
.tdc-dp-method__fix { font-size: 13px; color: #5a504a; }
.tdc-dp-method__fix a { color: var(--tdc-rose); }

@media (max-width: 600px) {
  .tdc-dp-head__conclusion { font-size: 14px; padding: 12px 13px; }
  .tdc-dp-prbox { padding: 15px 14px 16px; }
  .tdc-dp-prbox__name { font-size: 18px; }
  .tdc-dp-prbox__price strong { font-size: 25px; }
  .tdc-dp-card { padding: 12px 12px; }
  .tdc-dp-card__head { gap: 10px; }
  .tdc-dp-card__rank { flex-basis: 38px; height: 38px; font-size: 17px; }
  .tdc-ds .tdc-dp-card__name { font-size: 15px !important; }
  .tdc-dp-card__unit-val { font-size: 21px; }
  .tdc-dp-card__spec dd { font-size: 13px; }
  .tdc-dp-controls { gap: 8px 12px; }
  .tdc-dp-controls__filters legend { float: none; width: 100%; margin-bottom: 2px; }
}

/* 本文（about / points）の表 */
.tdc-dp .tdc-rich-text table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 13.5px; background: #fff; }
.tdc-dp .tdc-rich-text th, .tdc-dp .tdc-rich-text td { padding: 8px 10px !important; border: 1px solid var(--tdc-line) !important; text-align: left; vertical-align: top; line-height: 1.7; }
.tdc-dp .tdc-rich-text thead th { background: #f8efe8 !important; color: #6a5048; font-size: 12.5px; }
.tdc-dp .tdc-rich-text tbody th { background: #fdf8f5 !important; white-space: nowrap; width: 6.5em; }
.tdc-dp .tdc-rich-text .tdc-dp-small { font-size: 12px; color: var(--tdc-sub); }

/* ── テーマ装飾の打ち消し（2026-11-20 dev 確認） ── */
.tdc-dp-top { max-width: 880px; margin: 0 auto; }
.tdc-dp .tdc-dp-top, .tdc-dp .tdc-section, .tdc-dp .tdc-dp-prbox { text-align: left; }
.post_content .tdc-dp-cards, .post_content ol.tdc-dp-cards { padding: 0 !important; margin: 0 !important; list-style: none !important; }
.post_content .tdc-dp-cards > li { margin: 0 !important; list-style: none !important; }
.post_content .tdc-dp-cards > li::marker { content: ""; }
.post_content .tdc-dp-card__name { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
.post_content .tdc-dp-card__name::before, .post_content .tdc-dp-card__name::after { display: none !important; content: none !important; }
.tdc-dp .tdc-rich-text ul { list-style: disc !important; padding-left: 1.4em !important; margin: .6em 0 1em !important; }
.tdc-dp .tdc-rich-text ul li { margin: .35em 0; line-height: 1.8; }
.tdc-dp-prbox__features li { text-align: left; }
/* グリッドの子が長い文字で横にはみ出さないように（SP で右端が切れていた） */
.tdc-dp-cards { grid-template-columns: minmax(0, 1fr); }
.tdc-dp-card, .tdc-dp-card__spec > div { min-width: 0; }
.tdc-dp-card__spec dd, .tdc-dp-card__note { overflow-wrap: anywhere; }
.tdc-dp-card__cta, .tdc-dp-prbox__cta { white-space: normal; text-align: center; }
