/* 本文（ブロックエディタで作成するコンテンツ）のスタイル */
.entry-content{font-size:17px;line-height:1.95}
.entry-content>*:first-child{margin-top:0}
.entry-content h2{font-family:var(--maru);font-size:clamp(22px,2.5vw,27px);color:var(--ink);margin:56px 0 18px;padding:4px 0 4px 18px;border-left:6px solid var(--accent);line-height:1.5}
.entry-content h3{font-family:var(--maru);font-size:20px;color:var(--ink);margin:36px 0 12px;padding-bottom:6px;border-bottom:2px dotted var(--accent)}
.entry-content h4{font-size:17px;margin:24px 0 8px;color:var(--accent)}
.entry-content p{margin:0 0 1.1em}
.entry-content ul,.entry-content ol{margin:0 0 1.2em;padding-left:1.4em}
.entry-content li{margin:.2em 0}
.entry-content ul li::marker{color:var(--accent)}
.entry-content strong{color:#1d2833;background:linear-gradient(transparent 65%,var(--accent-l) 65%)}
.entry-content a{text-decoration:underline;text-underline-offset:3px}
.entry-content table{width:100%;border-collapse:collapse;margin:0 0 1.6em;font-size:15.5px;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 0 0 1px var(--line)}
.entry-content th,.entry-content td{border:1px solid var(--line);padding:10px 12px;vertical-align:top;line-height:1.7}
.entry-content thead th,.entry-content tr:first-child th{background:var(--accent-l)}
.entry-content th{font-weight:700;text-align:left}
.entry-content figure{margin:0 0 1.6em}
.entry-content img{height:auto;border-radius:14px}
.entry-content .wp-block-table{overflow-x:auto}
.entry-content .wp-block-columns{gap:24px}
.entry-content .box,.entry-content .wp-block-group.has-background{border-radius:16px;padding:20px 24px}
.entry-content hr{border:0;border-top:1px solid var(--line);margin:40px 0}
@media (max-width:768px){
  .entry-content{font-size:16px}
  .entry-content table{display:block;overflow-x:auto;white-space:normal}
  .entry-content th,.entry-content td{min-width:5em}
}
.entry-content .photo-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;margin:8px 0 40px}
.entry-content .photo-row figure{margin:0;background:#fff;border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.entry-content .photo-row img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:0;display:block}
.entry-content .photo-row figcaption{font-size:14px;padding:8px 12px;color:var(--muted)}
.entry-content .doc-photo{float:right;width:min(280px,40%);margin:0 0 20px 28px}
.entry-content .doc-photo img{width:100%;aspect-ratio:4/5;object-fit:cover}
.entry-content h2{clear:both}
@media (max-width:768px){.entry-content .doc-photo{float:none;width:70%;margin:0 auto 20px}}
@media (max-width:768px){.entry-content .photo-row{grid-template-columns:repeat(2,1fr);gap:10px}.entry-content .photo-row figcaption{font-size:12.5px;padding:6px 8px}}

/* ===== 画像コンポーネント ===== */
.entry-content figure.ill{float:right;width:min(260px,38%);margin:4px 0 16px 24px;text-align:center}
.entry-content figure.ill img{width:100%;height:auto;border-radius:14px;background:#fff}
.entry-content h2+figure.ill,.entry-content h3+figure.ill{margin-top:0}
.entry-content h2,.entry-content h3,.entry-content .cards,.entry-content .photo-row,.entry-content table,.entry-content .steps-flow,.entry-content .flow,.entry-content figure.pic{clear:both}
.entry-content figure.pic{margin:8px auto 32px;max-width:720px;background:#fff;border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
.entry-content figure.pic img{width:100%;height:auto;border-radius:0;display:block}
.entry-content figure figcaption{font-size:14px;color:var(--muted);padding:8px 14px;line-height:1.6}
.entry-content .cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;margin:12px 0 36px}
.entry-content .card-item{background:#fff;border-radius:18px;overflow:hidden;box-shadow:var(--shadow);border-top:5px solid var(--accent);display:flex;flex-direction:column}
.entry-content .card-item>img,.entry-content .card-item>a>img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:0;display:block;background:var(--accent-l)}
.entry-content .card-item img[src$=".png"]{object-fit:contain;background:#fff;padding:10px}
.entry-content .card-item h4{font-family:var(--maru);font-size:18px;color:var(--ink);margin:14px 18px 6px}
.entry-content .card-item p{font-size:15px;margin:0 18px 16px;line-height:1.75}
.entry-content .card-item a{text-decoration:none}
/* 手順 */
.entry-content ol.steps-flow{list-style:none;counter-reset:st;padding:0;margin:16px 0 40px}
.entry-content ol.steps-flow>li{counter-increment:st;position:relative;background:#fff;border-radius:18px;box-shadow:var(--shadow);padding:20px 24px 20px 76px;margin:0 0 28px;overflow:hidden}
.entry-content ol.steps-flow>li::before{content:counter(st);position:absolute;left:20px;top:18px;width:40px;height:40px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-family:var(--maru);font-weight:700;font-size:19px}
.entry-content ol.steps-flow>li:not(:last-child)::after{content:"";position:absolute;left:50%;bottom:-22px;border:10px solid transparent;border-top-color:var(--accent);transform:translateX(-50%)}
.entry-content ol.steps-flow>li{overflow:visible}
.entry-content ol.steps-flow h4{font-family:var(--maru);font-size:18px;margin:6px 0 6px;color:var(--ink)}
.entry-content ol.steps-flow p{margin:0 0 .6em;font-size:15.5px}
.entry-content ol.steps-flow figure.ill{width:min(160px,30%);margin:0 0 8px 16px}
/* 1日の流れ */
.entry-content ol.flow{list-style:none;padding:0 0 0 0;margin:16px 0 40px;position:relative}
.entry-content ol.flow::before{content:"";position:absolute;left:46px;top:8px;bottom:8px;width:4px;background:var(--accent-l);border-radius:4px}
.entry-content ol.flow>li{position:relative;display:grid;grid-template-columns:96px 1fr;gap:4px 20px;margin:0 0 22px;align-items:start}
.entry-content ol.flow .time{grid-row:1/span 3;position:relative;z-index:1;justify-self:center;background:var(--accent);color:#fff;font-family:var(--maru);font-weight:700;border-radius:999px;padding:4px 12px;font-size:16px;margin-top:2px}
.entry-content ol.flow h4{font-family:var(--maru);font-size:18px;margin:2px 0 0;color:var(--ink)}
.entry-content ol.flow p{margin:0;font-size:15.5px}
.entry-content ol.flow figure{margin:10px 0 0;max-width:340px;border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.entry-content ol.flow figure img{border-radius:0;width:100%;height:auto;display:block}
@media (max-width:768px){
  .entry-content figure.ill{float:none;width:min(240px,70%);margin:0 auto 16px}
  .entry-content .cards{grid-template-columns:repeat(2,1fr);gap:10px}
  .entry-content .card-item h4{font-size:15.5px;margin:10px 12px 4px}
  .entry-content .card-item p{font-size:13.5px;margin:0 12px 12px}
  .entry-content ol.steps-flow>li{padding:18px 16px 16px 64px}
  .entry-content ol.steps-flow>li::before{left:14px}
  .entry-content ol.steps-flow figure.ill{float:none;width:60%;margin:8px 0 0}
  .entry-content ol.flow::before{left:34px}
  .entry-content ol.flow>li{grid-template-columns:72px 1fr;gap:4px 12px}
  .entry-content ol.flow .time{font-size:14px;padding:3px 8px}
}
/* お問い合わせフォーム */
.contact-form{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:32px 36px;margin:24px 0}
.cf-note{font-size:14.5px;color:var(--muted);background:var(--cream);border-radius:12px;padding:12px 16px}
.cf-row{margin:0 0 20px;border:0;padding:0}
.cf-row>label,.cf-row legend{display:block;font-weight:700;margin-bottom:6px}
.cf-row .req{display:inline-block;margin-left:8px;font-size:12px;background:#d0485f;color:#fff;border-radius:4px;padding:0 6px;vertical-align:2px;font-weight:700}
.cf-row input[type=text],.cf-row input[type=email],.cf-row input[type=tel],.cf-row select,.cf-row textarea{width:100%;font:inherit;font-size:17px;padding:12px 14px;border:1.5px solid #cfd6de;border-radius:10px;background:#fff}
.cf-row input:focus,.cf-row select:focus,.cf-row textarea:focus{outline:3px solid var(--blue-l);border-color:var(--blue)}
.cf-row label.inline{display:inline-flex;align-items:center;gap:6px;margin-right:20px;font-weight:500}
.cf-row input[type=radio],.cf-row input[type=checkbox]{width:20px;height:20px}
.cf-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.cf-submit{text-align:center;margin-top:28px}
.cf-submit .btn{font-size:18px;padding:.9em 3em;cursor:pointer}
.cf-errors{background:#fdecef;border:1px solid #f3b6c1;color:#a3283d;border-radius:12px;padding:12px 16px;margin-bottom:16px}
.cf-errors ul{margin:0;padding-left:1.2em}
.cf-done{background:var(--green-l);border-radius:14px;padding:24px;text-align:center}
.cf-done-title{font-family:var(--maru);font-weight:700;font-size:22px;color:#1f7a5e;margin:0 0 8px}
@media (max-width:768px){.contact-form{padding:22px 16px}}
.entry-content ol.flow>li>*:not(.time){grid-column:2}
.entry-content ol.flow figure{max-width:300px}
.entry-content figure.pic{max-width:520px}
.entry-content figure.pic img{max-height:420px;object-fit:contain;background:#fff}
.entry-content ol.flow figure img{max-height:220px;object-fit:contain;background:#fff}
.entry-content .cards{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
/* 回り込み画像のはみ出し防止 */
.entry-content{display:flow-root}
.entry-content ol.steps-flow>li,.entry-content .card-item,.entry-content td,.entry-content figure.pic{display:flow-root}
.entry-content ul>li:has(> figure.ill)::after,.entry-content ol:not(.steps-flow)>li:has(> figure.ill)::after{content:"";display:block;clear:both}
.entry-content ol.steps-flow>li{overflow:visible}
/* 診療時間表はスマホでも横スクロールさせない */
@media (max-width:768px){
  .entry-content table.hours{display:table;width:100%;white-space:normal}
  .entry-content table.hours th,.entry-content table.hours td{min-width:0;padding:8px 1px}
}
.entry-content ol.steps-flow>li:has(> figure.ill){display:grid;grid-template-columns:1fr 150px;column-gap:20px;align-content:start}
.entry-content ol.steps-flow>li:has(> figure.ill)>*{grid-column:1}
.entry-content ol.steps-flow>li>figure.ill{grid-column:2;grid-row:1/span 20;float:none;width:100%;margin:0;align-self:center}
@media (max-width:768px){
  .entry-content ol.steps-flow>li:has(> figure.ill){grid-template-columns:1fr}
  .entry-content ol.steps-flow>li>figure.ill{grid-column:1;grid-row:auto;width:55%;margin:8px 0 0}
}
