/* sptop-1024：スマホで、文例までを近くする（2026-10-24 案2。場面別の文例・疾患別の文例のページだけ）
   ・説明の文（lead）は2行まで。〈続きを読む〉で全部出す
   ・見出しの横の絵（この場面の主なテーマ／疾患の絵）は出さない
   ・「最終更新・ご利用にあたって」「サービス内容とサービス種別の書き分け」「このページの内容（目次）」は、ボタンでたたむ
   パソコン・タブレット（761px〜）と印刷は何も変えない（印刷の紙の幅は760px より狭いので screen に限る）。たたむのは JS が動く端末だけ（html.spf-js。動かなければ全部見えたまま）。
   ボタンはHTMLに最初から入っている（読み込みの途中で画面がずれないように）。 */
.spf-btn { display: none; }

@media screen and (max-width: 760px) {
  html body .scn-hero .scn-ill,
  html body .kh-hero .kh-hero-ill { display: none !important; }

  html.spf-js .spf-btn { display: flex; }
  html.spf-js .spf-btn[hidden] { display: none !important; }

  /* 説明の文は2行まで */
  html.spf-js .scn-hero-t:has(> .spf-l[aria-expanded="false"]) > .lead,
  html.spf-js .kh-hero-t:has(> .spf-l[aria-expanded="false"]) > .lead {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  html.spf-js .spf-l {
    align-items: center;
    gap: 4px;
    margin: 2px 0 0;
    padding: 6px 2px;
    min-height: 36px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }

  /* たたむ */
  html.spf-js .spf-n[aria-expanded="false"] ~ .fresh-note,
  html.spf-js .spf-n[aria-expanded="false"] ~ .fresh,
  html.spf-js .spf-n[aria-expanded="false"] ~ .notice,
  html.spf-js .spf-s[aria-expanded="false"] ~ .svc-note,
  html.spf-js .spf-c[aria-expanded="false"] ~ .toc { display: none !important; }

  html.spf-js .spf-f {
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0;
    padding: 10px 14px;
    min-height: 46px;
    border: 1px solid #ddd3cd;
    border-radius: 12px;
    background: #fff;
    color: #3d3530;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
  }
  html.spf-js .spf-f .spf-lab { display: block; font-weight: 700; }
  html.spf-js .spf-f .spf-lab small { display: block; font-weight: 400; font-size: 13px; color: #6b5f58; }
  html.spf-js .spf-f .spf-x { flex: none; font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
}
