/* v23 比較用試作（トップ・歯科訪問診療だけ）。v19.css のあとに読む。v22 の内容の方向を引き継ぎ、重複と順番を整理。色・書体・写真は v21 のまま */

/* ---------- 改善5：見やすさ・操作しやすさ ---------- */
/* 白い文字をのせる緑を少し濃く（白との明暗の差 4.2 → 4.8。目安 4.5 以上） */
:root { --gr: #388049; }
/* キーボードで移動したとき、いまの場所がはっきり見えるように */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--or-ink); outline-offset: 3px; border-radius: 4px; }
.visit-band a:focus-visible { outline-color: #fff; }
/* 「→」の付いたリンクは、指で押せる高さ（44px）を確保 */
.more { min-height: 44px; }
.visit-points dd a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- 改善1：ご予約・ご相談（トップ） ---------- */
.v22-book { padding: 28px 0 8px; }
.v22-book-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; margin-bottom: 14px; }
.v22-book-head h2 { font-size: 26px; letter-spacing: .05em; display: flex; align-items: center; gap: 12px; }
.v22-book-head p { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.75; }
.v22-tag { font-family: var(--body); font-size: 14px; font-weight: 700; letter-spacing: .04em; color: #6e3f12; background: var(--or-soft); border: 1px solid #f2c999; padding: 2px 12px; border-radius: 999px; }
.v22-doors { display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.v22-door { padding: 20px 24px 18px; position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.v22-door + .v22-door { border-left: 1px solid var(--line); }
.v22-door::before { content: ""; position: absolute; left: 24px; top: 0; width: 40px; height: 4px; border-radius: 0 0 4px 4px; background: var(--or); }
.v22-door-v::before { background: var(--gr); }
.v22-today::before { background: #c9b39c; }
.v22-door h3 { font-size: 19px; line-height: 1.5; }
.v22-door h3 span { display: block; font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--ink-sub); }
.v22-door h3 span.wd-open, .v22-door h3 span.wd-sat, .v22-door h3 span.wd-closed { font-weight: 700; }
.v22-door h3 span.wd-open { color: #2b6439; }
.v22-door h3 span.wd-sat { color: #2d5786; }
.v22-door h3 span.wd-closed { color: #a3312b; }
.v22-door h3 span.wd-change { color: #8a4510; font-weight: 700; }
.v22-door h3 b { font-weight: inherit; }
.v22-tel { display: inline-block; font-family: var(--head); font-size: 30px; font-weight: 700; letter-spacing: .03em; color: var(--ink-head); text-decoration: none; line-height: 1.3; padding: 6px 0 2px; }
.v22-door-v .v22-tel { color: var(--gr-ink); }
.v22-door-note { font-size: 14px; line-height: 1.7; color: var(--ink-sub); margin: 0 0 8px; }
.v22-form { display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 18px; margin: 4px 0 8px; border: 2px solid var(--or); border-radius: 12px; background: #fff; color: var(--ink-head); font-weight: 700; text-decoration: none; line-height: 1.35; }
.v22-form small { font-size: 12px; font-weight: 400; color: var(--ink-sub); }
.v22-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; font-weight: 700; color: var(--ink-head); text-decoration: none; }
.v22-link::after { content: "→"; margin-left: 6px; color: var(--or-ink); }
.v22-door-v .v22-link::after { color: var(--gr-ink); }
.v22-today .today-v { margin-top: 8px; }
.v22-formrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 14px; }
.v22-formrow p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink); flex: 1 1 20em; }
.v22-formrow .v22-form { margin: 0; }
.v22-flow-h { font-size: 19px; margin: 36px 0 6px; }
.v22-flow-lead { margin: 0 0 20px; }
.v22-flow h4 { font-family: var(--head); color: var(--ink-head); font-size: 18px; line-height: 1.45; margin: 0 0 6px; }
.v22-book .newsbar { margin-top: 32px; border-top: 1px solid var(--line); }

/* 訪問の帯：見出しは「何のことか」、標語は下の1行 */
.v22-h-sub { display: block; font-size: 17px; font-weight: 500; color: #e3f1df; letter-spacing: .04em; margin-top: 2px; }
.v22-visit-lead { font-family: var(--head); font-size: 18px; color: #fff; margin: -6px 0 16px; }

/* ---------- 改善3：安心して通っていただくために（トップ） ---------- */
.v22-feat { padding-top: 72px; padding-bottom: 36px; }
.v22-feat .feat { margin-bottom: 0; }

/* ---------- 改善4：歯科訪問診療 まず知っておきたいこと・ケアマネジャーの方へ ---------- */
.v22-sum { padding-top: 56px; }
.v22-sum-list, .v22-partner { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.v22-sum-list > div, .v22-partner > div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.v22-sum-list dt, .v22-partner dt { font-family: var(--head); font-weight: 700; color: var(--gr-ink); line-height: 1.6; }
.v22-sum-list dd, .v22-partner dd { margin: 0; font-size: 16px; line-height: 1.8; }
.v22-sum-list dd a { display: inline-block; margin-left: 6px; font-weight: 700; color: var(--gr-ink); padding: 2px 0; }
.v22-sum-cta { margin-top: 24px; padding: 18px 24px; background: var(--gr-soft); border-radius: var(--r); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.v22-sum-cta p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-weight: 700; color: var(--ink-head); }
.v22-sum-cta p a { font-family: var(--head); font-size: 28px; color: var(--gr-ink); text-decoration: none; }
.v22-sum-cta p span { font-weight: 400; font-size: 14px; color: var(--ink-sub); }
.v22-sum-cta .btn { min-height: 52px; }

@media (max-width: 920px) {
  .v22-doors { grid-template-columns: 1fr; }
  .v22-door + .v22-door { border-left: 0; border-top: 1px solid var(--line); }
  .v22-sum-list, .v22-partner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .v22-book { padding-top: 16px; }
  .v22-book-head h2 { font-size: 23px; }
  .v22-door { padding: 14px 18px 8px; }
  .v22-door::before { left: 18px; }
  .v22-door h3 { font-size: 18px; }
  .v22-door h3 span { font-size: 13px; }
  .v22-door:first-child h3 span { display: inline; margin-left: 8px; } /* 外来の説明は短いので見出しと同じ行に（スマホの最初の画面に訪問の番号も入れるため） */
  .v22-tel { font-size: 28px; padding: 2px 0 0; }
  .v22-door-note { margin-bottom: 2px; }
  .v22-book-head { margin-bottom: 10px; }
  .v22-formrow .v22-form { width: 100%; }
  .v22-flow-h { font-size: 18px; margin-top: 28px; }
  .v22-book .newsbar { padding-left: 0; padding-right: 0; }
  .v22-feat { padding-top: 48px; padding-bottom: 24px; }
  .v22-sum { padding-top: 40px; }
  .v22-sum-list > div, .v22-partner > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .v22-sum-cta { padding: 16px; }
  .v22-sum-cta .btn { width: 100%; }
}


/* ---------- v23 トップ ---------- */
.v23-firstvisit { margin-top: 20px; padding: 14px 20px; border-left: 4px solid var(--or); background: var(--card); border-radius: 0 10px 10px 0; }
.v23-firstvisit h2, .v23-firstvisit h3 { font-size: 18px; margin-bottom: 2px; }
.v23-firstvisit p { margin: 0; }
.v23-feat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px var(--gut); }
.v23-feat-list figure { margin: 0 0 12px; position: relative; }
.v23-feat-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.v23-feat-list figcaption { position: absolute; left: 10px; bottom: 8px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(63, 49, 41, .72); padding: 1px 10px; border-radius: 999px; }
.v23-feat-list h3 { font-size: 19px; margin-bottom: 6px; }
.v23-feat-list p { font-size: 15.5px; line-height: 1.85; margin: 0; }

/* ---------- v23 歯科訪問診療 ---------- */
.v23-guide { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.v23-guide > div { padding: 16px 0 6px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.v23-guide dt { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--gr-ink); }
.v23-guide dd { margin: 0; font-size: 16px; line-height: 1.8; }
.v23-guide dd.v23-go { margin-top: auto; }
.v23-go a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink-head); text-decoration: none; }
.v23-go a::after { content: "→"; margin-left: 6px; color: var(--gr-ink); }
.v23-sub { font-size: 19px; margin: 32px 0 10px; }
.v23-cost-more { margin-top: 24px; }
.v23-links { margin: 12px 0 0; padding-left: 1.2em; }
.v23-links li { margin: 4px 0; }
.v23-links a { display: inline-block; padding: 6px 0; font-weight: 700; color: var(--gr-ink); }
/* 並びを変えたので、区切りの地の色を交互に（生成り ⇄ 薄い緑） */
.page-homevisit #target, .page-homevisit #area, .page-homevisit #flow { background: var(--gr-soft); }
.page-homevisit #feature, .page-homevisit #cost { background: transparent; }
.page-homevisit #flow .flow li::before { box-shadow: 0 0 0 6px var(--gr-soft); }

@media (max-width: 920px) {
  .v23-feat-list { grid-template-columns: 1fr 1fr; }
  .v23-guide { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .v23-feat-list { grid-template-columns: 1fr; gap: 24px; }
  .v23-firstvisit { padding: 12px 16px; }
  .v23-guide > div { padding-top: 12px; }
}

/* ---------- v26：ページの入口（既存のページ内メニューと同じ丸い形。写真のカードは使わない） ---------- */
.v26-entry { margin-top: 18px; }
.v26-entry a { display: inline-flex; align-items: center; min-height: 44px; }
.v26-sp { display: none; }
@media (max-width: 920px) {
  .v26-pc { display: none; }
  .v26-sp { display: flex; margin-top: 20px; }
}

/* ---------- v27：入口に「→」（特徴の印と区別）。スマホ・タブレットは時間の欄から表・アクセスへ ---------- */
.v26-entry a::after { content: "→"; margin-left: 6px; color: var(--or-ink); }
.v27-narrow-only { display: none; }
@media (max-width: 920px) {
  .v27-narrow-only { display: inline-flex; }
}

/* ---------- v28：スマホの折り返し（iPhone の Safari を含む） ---------- */
.v22-tag { white-space: nowrap; }
/* 幅のごく狭い画面では、費用の表の項目名と金額を上下に（金額の途中で折り返さないように） */
@media (max-width: 360px) {
  .cost dl { grid-template-columns: 1fr; }
  .cost dt { border-bottom: 0; padding-bottom: 0; }
  .cost dd { text-align: left; }
}
/* 「ご予約・ご相談」と「完全予約制」の印は、狭い画面では2行に（見出しの途中で切らない） */
.v22-book-head h2 { flex-wrap: wrap; row-gap: 4px; }
/* 窓口の見出しは横幅いっぱいを使う（説明が細い幅で3行に折れて、電話番号が下がらないように） */
.v22-door h3 { align-self: stretch; }
/* 窓口の説明の中の小さなまとまりは、行の中に並べる（親の「ブロック表示」を受け継がない） */
.v22-door h3 span .ph { display: inline-block; }

/* v29：訪問の帯の電話番号は1行に独立させる（v22 で足した押しやすさの指定が、番号の独立を打ち消していた） */
.visit-points dd a.visit-tel { display: flex; }
/* v29：ケアマネジャー欄のリンクは行の中に流す（inline-block だと2行になったとき行頭の黒丸が2行目に付いていた） */
.v23-links a { display: inline; padding: 0; line-height: 2; }
/* 折り返し用の部品（inline-block）には親リンクの下線が届かないので、部品にも同じ下線を引く */
.v23-links a .ph, .v23-links a .v30-nb { text-decoration: underline; }
