/* 新しいサイトでの小さな修正（今のWPのCSSは触らず、ここに足す） */

/* ヘッダーの「Price」のメニュー（自費・保険）：WPでは読み込み後にJavaScriptで隠していたため、
   ページを開いた直後に一瞬表示されていた。最初から隠しておく（表示はこれまでどおり common.js の fadeIn） */
#siteheader .nav_box li.hover .hover_nav { display: none; }

/* 詳細版（項目式）：画像を省いた「日常生活の注意点」は文章を全幅に（2026-11-03） */
#TREATMENT_DETAIL .tx-care.no-image { grid-template-columns: 1fr; }

/* 詳細版（項目式）CONCEPT：進め方の対比（矢印でつなぐ）と、詳しいコラムへのリンク（2026-11-03） */
#TREATMENT_DETAIL .tx-concept-flows { margin-top: 2em; }
#TREATMENT_DETAIL .tx-concept-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4em .2em; align-items: center; }
#TREATMENT_DETAIL .tx-concept-steps li { background: #fdf0f3; border-radius: 4px; padding: .35em .8em; font-size: 95%; }
#TREATMENT_DETAIL .tx-concept-steps li + li::before { content: "›"; color: #e6738f; margin: 0 .5em 0 -.1em; }
#TREATMENT_DETAIL .tx-concept-steps + p { margin-top: 1em; }
#TREATMENT_DETAIL .tx-advantages-grid + .tx-concept-links, #TREATMENT_DETAIL .tx-concept-flows + .tx-advantages-grid { margin-top: 2em; }
#TREATMENT_DETAIL .tx-concept-links { list-style: none; margin: 2em 0 0; padding: 1.2em 1.5em; border: 1px solid #dadada; border-radius: 5px; background: #fff; }
#TREATMENT_DETAIL .tx-concept-links li { padding: .3em 0; }
#TREATMENT_DETAIL .tx-concept-links a { color: #e6738f; text-decoration: underline; }
#TREATMENT_DETAIL .tx-concept-links a::before { content: "▶ "; font-size: 80%; }
@media (min-width: 768px) { #TREATMENT_DETAIL .tx-concept-keys { grid-template-columns: repeat(2, 1fr); } } /* 要点は2列（4つでも端数が出ない） */

/* 詳細版の目次（2026-11-03）：番号つき・2列のカード */
.tx-toc { padding: 36px 16px; background: #fff6f9; }
.tx-toc-inner { max-width: 880px; margin: 0 auto; background: #fff; border-radius: 14px; padding: 22px 16px 18px; box-shadow: 0 4px 18px rgba(230,115,143,.12); }
.tx-toc-head { text-align: center; margin: 0 0 16px; }
.tx-toc-en { display: block; color: #e6738f; font-style: italic; letter-spacing: .18em; font-size: 13px; }
.tx-toc-ja { display: block; font-size: 18px; font-weight: 700; margin-top: 2px; }
.tx-toc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tx-toc-list li { margin: 0; list-style: none; }
.tx-toc-list a { display: flex; align-items: center; gap: 8px; height: 100%; box-sizing: border-box; padding: 10px 26px 10px 10px; border: 1px solid #f7d5dd; border-radius: 10px; background: #fff; color: #333; text-decoration: none; font-size: 13px; line-height: 1.4; position: relative; transition: background .2s, border-color .2s; }
.tx-toc-list a::after { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; border-right: 2px solid #e6738f; border-bottom: 2px solid #e6738f; transform: translateY(-60%) rotate(45deg); }
.tx-toc-list a:hover { background: #fff6f9; border-color: #e6738f; }
.tx-toc-no { flex: 0 0 auto; color: #e6738f; font-weight: 700; font-size: 12px; font-family: "Helvetica Neue", Arial, sans-serif; }
.tx-toc-label { font-weight: 600; }
@media (min-width: 768px) {
  .tx-toc { padding: 56px 24px; }
  .tx-toc-inner { padding: 32px 36px 30px; }
  .tx-toc-ja { font-size: 22px; }
  .tx-toc-list { gap: 10px 14px; }
  .tx-toc-list a { font-size: 15px; padding: 13px 32px 13px 16px; gap: 12px; }
  .tx-toc-no { font-size: 15px; }
}
/* スマホは番号を上に・矢印なしで、見出しに幅を回す（2026-11-03） */
@media (max-width: 767px) {
  .tx-toc { padding: 28px 12px; }
  .tx-toc-inner { padding: 20px 12px 14px; }
  .tx-toc-list { gap: 7px; }
  .tx-toc-list a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 9px 10px; font-size: 13px; }
  .tx-toc-list a::after { display: none; }
  .tx-toc-no { font-size: 11px; }
}
/* 目次の開け閉め（2026-11-03 院長：スマホは閉じておく・字を少し小さく） */
.tx-toc-head { list-style: none; cursor: pointer; position: relative; margin: 0; padding: 2px 34px; user-select: none; }
.tx-toc-head::-webkit-details-marker { display: none; }
.tx-toc-count { font-size: 12px; font-weight: 400; color: #888; margin-left: 4px; }
.tx-toc-toggle { position: absolute; right: 4px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: #e6738f; }
.tx-toc-toggle::before, .tx-toc-toggle::after { content: ""; position: absolute; left: 7px; top: 12px; width: 12px; height: 2px; background: #fff; transition: transform .2s; }
.tx-toc-toggle::after { transform: rotate(90deg); }
.tx-toc-inner[open] .tx-toc-toggle::after { transform: rotate(0deg); }
.tx-toc-inner[open] .tx-toc-head { margin-bottom: 14px; }
@media (max-width: 767px) {
  .tx-toc { padding: 20px 12px; }
  .tx-toc-inner { padding: 14px 10px; }
  .tx-toc-en { font-size: 11px; }
  .tx-toc-ja { font-size: 16px; }
  .tx-toc-list { gap: 6px; }
  .tx-toc-list a { padding: 7px 9px; font-size: 12px; }
  .tx-toc-no { font-size: 10px; }
}
/* 目次の字を細めに（2026-11-03 院長「太いと主張が強い、さらっと」） */
.tx-toc-ja { font-weight: 500; letter-spacing: .1em; }
.tx-toc-label { font-weight: 400; }
.tx-toc-no { font-weight: 500; }
