/* =========================================================
   介護予防・短期集中運動型デイサービス(/kaigoyobou/)固有 ── 元:mock/kaigoyobou-v4.html の「kaigoyobou page」
   STEP・カード・流れ・枠などは共通部品(base.css の .oc-steps・.oc-offer・.oc-howto・.oc-cover・.oc-flow)
   モックの .info は .kg-info、.sp-br は .kg-br(ほかの部品と名前がぶつからないように)
   タイトルの上の小見出しは共通部品(base.css の .oc-ph__kicker)
   ========================================================= */

/* 480px 以下だけの改行(タイトル・カードの見出し) */
br.kg-br{display:none}
@media (max-width:480px){ br.kg-br{display:inline} }

/* プログラムの内容(期間・回数など) */
.kg-info{max-width:640px; margin:clamp(28px,4vw,40px) 0 0; padding:4px 0; background:#fff; border-radius:8px; box-shadow:0 0 0 1px rgba(27,32,135,.14)}
.kg-info .ir{display:grid; grid-template-columns:8.5em 1fr; gap:12px; padding:15px 20px; border-top:1px solid rgba(33,33,33,.07)}
.kg-info .ir:first-child{border-top:0}
.kg-info dt{font-family:var(--mincho); font-weight:500; font-size:1rem}
.kg-info dd{margin:0; font-size:.98rem; line-height:1.7}
.kg-info dd small{display:block; font-size:14px; color:var(--ink-soft); margin-top:2px} /* 第45回 7:12.8px → 14px */
@media (max-width:720px){
  .kg-info .ir{grid-template-columns:6.5em 1fr; padding:13px 14px; gap:8px}
  .kg-info dt{font-size:.94rem}
}

/* ご利用までの流れ:STEP を4つ横に並べる(960px 以下は縦) */
.oc-steps.steps4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:960px){ .oc-steps.steps4{grid-template-columns:minmax(0,1fr)} }
/* 第43回 B(院長 10/29):1列になる 821〜960px でも、縦のときの形にする(base.css の .oc-steps の 820px 以下と同じ:矢印は上の真ん中で下向き・1枚目の上と最後の下だけ角を丸く・左の線)。前は横のときの「>」が左の端に出ていた(10/08 からのずれ) */
@media (min-width:821px) and (max-width:960px){
  .oc-steps.steps4 .oc-step,.oc-steps.steps4 .oc-step:first-child,.oc-steps.steps4 .oc-step:last-child{border-radius:0}
  .oc-steps.steps4 .oc-step:first-child{border-radius:8px 8px 0 0}
  .oc-steps.steps4 .oc-step:last-child{border-radius:0 0 8px 8px}
  .oc-steps.steps4 .oc-step + .oc-step{border-left:1px solid rgba(27,32,135,.14); border-top:0}
  .oc-steps.steps4 .oc-step.first + .oc-step{border-left:1px solid rgba(27,32,135,.14)}
  .oc-steps.steps4 .oc-step + .oc-step::before{left:50%; top:-11px; transform:translateX(-50%) rotate(135deg)}
  .oc-steps.steps4 .oc-step .c{min-height:0}
}

/* ご利用までの流れ:STEP の並びのすぐ下の電話ボタン(base.css の .oc-telbtn・第10回) */
.kg-tel{margin-top:clamp(20px,3vw,28px)}
.kg-tel .oc-telbtn{margin-top:0}

/* ---------- アイコン(第11回。部品は base.css の .oc-ic / .oc-ic-s / .oc-steps--ic) ---------- */
/* ご利用までの流れ:721px 以上はアイコンを STEP の上に(見本 kaigoyobou-v6.html)。720px 以下は左(base.css) */
@media (min-width:721px){
  .oc-steps--ic.steps4 .oc-step{padding-left:clamp(18px,2.4vw,30px)}
  .oc-steps--ic.steps4 .oc-step > .oc-ic{position:static; margin-bottom:14px}
}
/* プログラムの内容の表:項目名の左に小さいアイコン。スマホは「曜日・時間」が折り返さない幅に */
.kg-info dt{display:flex; align-items:center; gap:8px}
@media (max-width:720px){ .kg-info .ir{grid-template-columns:9.4em 1fr} }
/* 「無料で体験できます」の帯:左にうすい赤の丸のアイコン */
.kg-offer-h{display:flex; align-items:center; gap:16px}
.kg-offer-h .oc-ic{width:60px; height:60px}
.kg-offer-h .oc-ic svg{width:34px; height:34px}
/* 第18回 E3:見学・体験の枠は「対象の方」のカードの中(1回 500円 の下)。カードの幅に合わせて1列・小さめ */
.oc-offer.kg-offer-in{margin-top:20px; grid-template-columns:1fr; gap:12px; padding:20px clamp(16px,2vw,22px)}
.kg-offer-in .big{font-size:clamp(1.2rem,1.05rem + .5vw,1.45rem)}
.kg-offer-in .kg-offer-h .oc-ic{width:48px; height:48px}
.kg-offer-in .kg-offer-h .oc-ic svg{width:28px; height:28px}
@media (max-width:720px){
  .kg-offer-h{gap:12px}
  .kg-offer-h .oc-ic{width:46px; height:46px}
  .kg-offer-h .oc-ic svg{width:28px; height:28px}
}

/* ---------- 運動の機能のかんたんチェック(第11回。動きは assets/js/page-kaigoyobou.js。演出なし) ---------- */
.oc-sc{max-width:720px; margin-top:clamp(24px,3.5vw,36px)}
.oc-sc-lead{margin:0; font-size:.95rem; line-height:1.9}
.oc-sc-noscript{margin:14px 0 0; padding:16px 18px; border-radius:8px; background:var(--cream2); font-size:.92rem; line-height:1.8}
.oc-sc-q{scroll-margin-top:calc(var(--oc-header-h) + env(safe-area-inset-top,0px) + 16px); margin:14px 0 0; padding:18px clamp(16px,2.6vw,24px); border:0; background:#fff; border-radius:8px; box-shadow:0 0 0 1px rgba(27,32,135,.14); min-width:0}
.oc-sc-q legend{float:left; width:100%; padding:0; margin:0 0 12px; font-size:1rem; line-height:1.75; letter-spacing:.02em}
.oc-sc-n{display:block; margin-bottom:2px; font-size:.76rem; letter-spacing:.14em; color:var(--blue)}
.oc-sc-opts{clear:both; display:grid; grid-template-columns:1fr 1fr; gap:10px}
/* 答えのボタン:ふつう=白い地・紺のうすい枠/選んだ=紺の枠 2px+うすい紺の地+紺の文字+左にチェック印+うすい影/同じ問いで選ばなかった方=うすく
   紺のベタ塗りは使わない。選んだ見た目は JS が付ける .is-checked(:has() に頼らない) */
.oc-sc-opt{position:relative; display:flex; align-items:center; justify-content:center; gap:8px; min-height:52px; padding:0 12px; border:1.5px solid rgba(27,32,135,.22); border-radius:999px; background:#fff; color:var(--ink); font-size:1rem; letter-spacing:.1em; cursor:pointer; -webkit-tap-highlight-color:transparent; user-select:none}
.oc-sc-opt input{position:absolute; opacity:0; width:1px; height:1px; margin:0; pointer-events:none}
.oc-sc-mark{display:none; width:14px; height:8px; margin-top:-4px; border-left:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(-45deg)}
.oc-sc-opt.is-checked{border:2px solid var(--blue); background:#DFE2F4; color:var(--blue); font-weight:500; box-shadow:0 3px 10px rgba(27,32,135,.12)}
.oc-sc-opt.is-checked .oc-sc-mark{display:block}
.oc-sc-q.is-answered .oc-sc-opt:not(.is-checked){color:#A9A9B2; border-color:rgba(27,32,135,.12)}
.oc-sc-opt.is-focus{outline:2px solid var(--blue); outline-offset:2px}
/* 結果(aria-live)。3問以上はうすい赤の地+うすい赤の枠 */
.oc-sc-res{margin-top:18px; padding:22px clamp(18px,3vw,28px); border-radius:8px; background:#fff; box-shadow:0 0 0 1px rgba(33,33,33,.07)}
.oc-sc-res.is-hit{background:#FFF8F6; box-shadow:0 0 0 1.5px rgba(231,50,39,.45)}
.oc-sc-left{margin:0; font-size:.92rem; color:var(--ink-soft)}
.oc-psec .oc-sc-h{margin:0 0 8px; font-size:1.25rem; letter-spacing:.06em}
.oc-sc-cnt{margin:0 0 10px; font-size:.86rem; color:var(--ink-soft)}
.oc-sc-cnt b{margin:0 .15em; font-family:var(--mincho); font-weight:500; font-size:1.5rem; color:var(--ink)}
.oc-sc-msg{margin:0; font-size:.94rem; line-height:1.9}
.oc-sc-sub{margin:8px 0 0; font-size:.82rem; line-height:1.85; color:var(--ink-soft)} /* 第18回 B4:結果のかっこ書き(注記と同じ大きさ) */
.oc-sc-tel .oc-telbtn{margin-top:16px}
.oc-sc-reset{display:inline-flex; align-items:center; min-height:44px; margin-top:6px; padding:0; appearance:none; border:0; background:none; font:inherit; font-size:15px; color:var(--ink-soft); text-decoration:underline; text-underline-offset:3px; cursor:pointer}
.oc-sc-reset:focus-visible{outline:2px solid var(--blue); outline-offset:3px}
.oc-sc-note{margin:24px 0 0; font-size:15px; line-height:1.8; color:var(--ink-soft)} /* 第45回 3・8:※は 15px・行間 1.8/「はじめからやり直す」との間 24px */
/* 第20回 作業B(B-16):375px 以下でプログラムの表の左の列を約 110px に(右の列を中身の幅で広げない) */
@media (max-width:375px){ .kg-info .ir{grid-template-columns:110px minmax(0,1fr)} }
/* 第20回 作業B(B-16):320px 前後で「基本チェックリスト」のあとに「で」だけが1行になっていた → 見出しを1段小さく */
@media (max-width:360px){ .oc-cover h3{font-size:.98rem; letter-spacing:.02em} }

/* ---------- 第45回(院長 10/31)見え方の直し ----------
   3:※は 15px・行間 1.8・※ごとに少しすき間(.kg-nt)/基本チェックリストの補足は 14px
   7:小さい灰色の注意書きは 15px。このページだけに当てる */
.oc-note{font-size:15px; line-height:1.8}
.kg-nt{display:block}
.kg-nt + .kg-nt{margin-top:8px}
.oc-cover__note{font-size:14px}
