/* v33：歯科訪問診療ページだけの試作（右案）。文字の大きさ・行間は v32 と同じ */

/* 冒頭（PC）：v32 と同じ、左に見出しと電話、右に絵 */
.v33-hero { grid-template-areas: "title art" "contact art"; grid-template-rows: 1fr 1fr; row-gap: 14px; }
.v33-title { grid-area: title; align-self: end; }
.v33-hero .vh-illust { grid-area: art; }
.v33-contact { grid-area: contact; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; align-self: start; }
.v33-contact .vh-tel { margin-top: 0; }
.v33-contact .btn { margin-top: 0; }

/* 4項目 */
.v33-guide { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.v33-guide > div { display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.v33-guide dt { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--head); font-weight: 700; font-size: 18px; line-height: 1.4; color: var(--gr-ink); }
.v33-ico { flex: none; display: block; width: 40px; height: 40px; object-fit: contain; }
.v33-guide dd { margin: 0; font-size: 16px; line-height: 1.8; }
.v33-guide dd.v23-go { margin-top: 0; padding-top: 2px; }
/* カードの要点は、どの幅でも語の単位で折り返す */
.v33-w { display: inline-block; }
.v33-more { margin-top: 20px; }

/* PC も2列：4列では費用が6行に細切れになり語も割れるので採用しない（参考画像あり） */

/* 冒頭（タブレット・スマホ）：見出し → 絵 → 電話・受付時間・フォーム。v19 が1列に切り替える幅に合わせる */
@media (max-width: 920px) {
  .v33-hero { grid-template-columns: 1fr; grid-template-areas: "title" "art" "contact"; grid-template-rows: auto; gap: 12px; }
  .v33-title { align-self: auto; }
  .v33-contact .vh-tel, .v33-contact .btn { margin-top: 0; }
}
@media (max-width: 600px) {
  .v33-contact { display: block; }
  .v33-contact .btn { display: flex; width: 100%; margin-top: 12px; }
}

/* スマホ：1列。アイコンは見出しの左 */
@media (max-width: 600px) {
  .v33-guide { grid-template-columns: 1fr; gap: 10px; }
  .v33-guide > div { padding: 14px 16px 6px; }
  .v33-ico { width: 32px; height: 32px; }
}

/* 文字を大きく拡大したとき（幅 260px 以下に相当）：はみ出さないことを優先 */
@media (max-width: 260px) {
  .v33-w { display: inline; }
}

/* 指導費：項目名・金額・回数の順に縦に並べる。文字は小さくせず、狭いときは折り返す */
.cost dl.cost-stack { display: block; }
.cost-stack > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cost-stack dt, .cost-stack dd { padding: 0; border-bottom: 0; text-align: left; }
.cost-stack dd { margin-top: 2px; overflow-wrap: anywhere; }
.cost-stack dd.cost-lim { font-weight: 400; color: var(--ink-sub); }

/* 費用の3枚：PC では見出し・説明・項目・注記の位置を横にそろえる */
@media (min-width: 921px) {
  @supports (grid-template-rows: subgrid) {
    .cost-grid { row-gap: 0; }
    .cost { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
    .cost dl { align-self: start; }
    .cost .cn { margin: 0; }
  }
}
