/* =====================================================================
   施術ページを読みやすくする組み（tools/readable.py が作る塊に当てる）
   章の帯・目次・続きを読む・リスクの枠・リード・表の縞
   ===================================================================== */

/* リード：冒頭の短い一文は大きめの明朝 */
.entry .readable > .lead{ margin:0 0 28px; font-family:var(--jph); font-size:19px; line-height:1.9; letter-spacing:.06em; color:var(--ink); }

/* 章：h2 ごとの塊。1章おきに、画面幅いっぱいの帯（少し濃いアイボリー）を敷く */
.entry .ch{ position:relative; padding:56px 0 48px; }
.entry .ch > h2:first-child, .entry .ch > :first-child h2:first-of-type{ margin-top:0; }
.entry .ch--band{ background:var(--bg-alt); box-shadow:0 0 0 100vmax var(--bg-alt); clip-path:inset(0 -100vmax); }
.entry .ch + .ch:not(.ch--band){ border-top:0; }
/* 帯の中の見出しは、帯の上端から少しあける */
.entry .ch--band > h2:first-child{ margin-top:0; }

/* 目次：白い箱に2列。章へ飛ぶ */
.entry .toc{ margin:8px 0 8px; padding:22px 26px; background:#fff; border:1px solid var(--hair); }
.entry .toc__h{ margin:0 0 10px; font-family:var(--jph); color:var(--brown); font-size:14px; letter-spacing:.1em; }
.entry .toc__list{ display:grid; grid-template-columns:1fr 1fr; gap:6px 28px; margin:0; padding:0; list-style:none; counter-reset:toc; }
.entry .toc__list li{ position:relative; padding-left:28px; font-size:14px; line-height:1.8; counter-increment:toc; }
.entry .toc__list li::before{ content:counter(toc, decimal-leading-zero); position:absolute; left:0; top:.1em; font-family:var(--en); font-size:12px; color:var(--brown); }
.entry .toc__list a{ color:var(--ink); text-decoration:none; border-bottom:1px solid transparent; }
.entry .toc__list a:hover{ color:var(--brown); border-bottom-color:var(--gold); }
html{ scroll-padding-top:90px; }

/* 続きを読む：長い章の後半を畳む（details。JS なしで開閉する） */
.entry .fold{ margin:8px 0 0; grid-column:1 / -1; width:100%; }
.entry .fold__btn{ list-style:none; cursor:pointer; display:flex; justify-content:center; align-items:center; gap:10px;
  width:max-content; min-width:240px; margin:0 auto; padding:11px 30px; background:#fff; border:1px solid var(--brown);
  color:var(--brown); font-family:var(--jph); font-size:14px; letter-spacing:.1em; }
.entry .fold__btn::-webkit-details-marker{ display:none; }
.entry .fold__btn::after{ content:"＋"; font-size:13px; }
.entry .fold[open] > .fold__btn::after{ content:"－"; }
.entry .fold__btn:hover{ background:var(--brown); color:#fff; }
.entry .fold__close{ display:none; }
.entry .fold[open] > .fold__btn .fold__open{ display:none; }
.entry .fold[open] > .fold__btn .fold__close{ display:inline; }
.entry .fold[open] > .fold__btn{ order:2; margin-top:20px; }
.entry .fold[open]{ display:flex; flex-direction:column; }
.entry .fold__body{ order:1; padding-top:8px; }
/* 畳んだ側の手前を少しぼかして「続きがある」と分かるように */
.entry .fold:not([open])::before{ content:""; display:block; height:36px; margin:-36px 0 12px; background:linear-gradient(to bottom, rgba(246,243,237,0), var(--bg)); pointer-events:none; position:relative; }
.entry .ch--band .fold:not([open])::before{ background:linear-gradient(to bottom, rgba(239,234,225,0), var(--bg-alt)); }

/* 主なリスク・副作用：白い箱に金の見出し帯で、はっきり分ける */
.entry .callout--risk{ margin:28px 0 1.6em; padding:0 22px 16px; background:#fff; border:1px solid var(--hair); border-top:3px solid var(--gold); }
.entry .callout--risk > :is(h3,h4,p[class*="ttl-"]):first-child{
  margin:0 -22px 14px; padding:12px 22px; border:0; background:var(--gold-soft);
  font-family:var(--jph); font-size:15px; font-weight:600; color:var(--ink);
}
.entry .callout--risk > :is(h3,h4,p[class*="ttl-"]):first-child::before{ content:"!"; font-family:Arial, sans-serif; font-weight:700; display:inline-block; width:20px; height:20px; margin-right:8px; border-radius:50%; background:var(--brown); color:#fff; font-size:12px; line-height:20px; text-align:center; vertical-align:2px; }
.entry .callout--risk p, .entry .callout--risk li{ font-size:14px; line-height:1.9; }
.entry .callout--risk > :last-child{ margin-bottom:0; }

/* よくある質問の章：箱にして、質問どうしの間を詰める */
.entry .ch--faq .faq-module{ background:#fff; border:1px solid var(--hair); padding:0 22px; }
.entry .ch--faq .faq-accordion:last-child{ border-bottom:0; }

/* 表：1行おきに薄い色。見出しの列は幅を固定 */
.entry table tr:nth-child(even) td{ background:#fbfaf6; }
.entry table th{ white-space:nowrap; }
@media (max-width:760px){ .entry table th{ white-space:normal; } }

/* 段落のあいだを少し広げ、行の長さを読みやすく */
.entry .ch p{ max-width:100%; }

@media (max-width:760px){
  .entry .readable > .lead{ font-size:17px; }
  .entry .ch{ padding:44px 0 36px; }
  .entry .toc__list{ grid-template-columns:1fr; }
  .entry .callout--risk{ padding:0 16px 14px; }
  .entry .callout--risk > :is(h3,h4,p[class*="ttl-"]):first-child{ margin:0 -16px 12px; padding:11px 16px; }
}

/* --- GPT の確認（1回目）を受けて --- */
/* 目次：1項目ごとに区切り線、折り返しを読みやすく */
.entry .toc__list li{ padding:6px 0 6px 28px; line-height:1.5; border-top:1px solid #e6dfd2; }
.entry .toc__list li::before{ top:.55em; }
/* 主なリスク・副作用：左の太線と太い見出しで、ほかの枠と見分ける */
.entry .callout--risk{ border-left:4px solid var(--cta); }
.entry .callout--risk > :is(h3,h4,p[class*="ttl-"]):first-child{ font-size:16px; font-weight:700; }
/* 文章だけの段落は行を短く（全幅のまま 1 行が長くなりすぎない） */
.entry .ch > p, .entry .ch .fold__body > p{ max-width:46em; }
/* 章の境目：帯の色に加えて細い線 */
.entry .ch--band{ border-top:1px solid #ddd5c6; border-bottom:1px solid #ddd5c6; }
/* 続きを読む：畳んだ先の最初の見出しを小さく添える */
.entry .fold__btn{ flex-wrap:wrap; max-width:100%; text-align:center; }
.entry .fold__hint{ display:block; width:100%; margin-top:2px; font-family:var(--jp); font-size:11px; letter-spacing:.02em; color:var(--ink-soft); }
.entry .fold__btn:hover .fold__hint{ color:#fff; }
.entry .fold__open{ display:flex; flex-direction:column; align-items:center; }
