/* 既存の画像・文章・配色を保った、まつい院の指定箇所のみの調整。 */
.matsui-name-crop{display:block;position:relative;aspect-ratio:458/53;overflow:clip}
.matsui-name-crop img{display:block;position:absolute;top:0;left:0;width:100%;max-width:none!important;height:auto!important}
.matsui-mobile-name,.matsui-mobile-hero{display:block;overflow:clip;line-height:0}
.matsui-mobile-name{aspect-ratio:462/47;position:relative}
.matsui-mobile-name img{position:absolute;top:0;left:0}
.matsui-mobile-hero{display:flow-root}
.matsui-mobile-name img,.matsui-mobile-hero img{display:block;width:100%;max-width:none!important;height:auto!important}
.matsui-mobile-hero img{margin-top:-16.8831168831%!important}
.matsui-contact{max-width:607px!important;margin-left:auto!important;margin-right:auto!important;left:0!important;text-align:center}
.matsui-contact .wp-block-image{margin-bottom:14px!important}
.matsui-contact .wp-block-image img{display:block;width:100%;height:auto}
.matsui-web-booking{display:flex;align-items:center;justify-content:center;gap:22px;width:100%;min-height:76px;padding:14px 24px;border:2px solid #ffb516;border-radius:7px;background:#ffb516;color:#fff!important;text-decoration:none!important;font-size:clamp(20px,2.5vw,29px);font-weight:800;line-height:1.4;box-shadow:0 3px 0 #ed9316}
.matsui-web-booking:hover{background:#f5a509;border-color:#f5a509}
.matsui-web-booking:focus-visible{outline:3px solid #333;outline-offset:4px}
.matsui-booking-arrow{font-size:1.5em;line-height:1}
.floating-banner .swell-block-columns__inner{justify-content:center}
.floating-banner .swell-block-column{flex-basis:100%!important;width:100%!important;max-width:300px!important}
.floating-banner a{display:block}
@media(max-width:767px){.matsui-contact{max-width:607px!important}.matsui-web-booking{min-height:62px;padding:12px 18px}.floating-banner .swell-block-column{max-width:245px!important}}

/* 既存のLINE登録バナーを残した、スマホ下部の紹介特典Web予約導線。 */
@media(max-width:560px){
 body.matsui-friend-booking{padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))}
 .floating-banner.matsui-floating-actions{width:100%;margin:0!important;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));background:#fff;box-shadow:0 -2px 10px #00000014}
 .matsui-floating-actions .swell-block-columns__inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;align-items:center;margin:0!important}
 .matsui-floating-actions .swell-block-column{width:100%!important;max-width:none!important;min-width:0;margin:0!important;padding:0!important}
 .matsui-floating-actions .wp-block-image{margin:0!important;line-height:0}
 .matsui-floating-actions .wp-block-image img{display:block;width:100%;height:auto}
 .matsui-floating-actions a:focus-visible{outline:3px solid #333;outline-offset:2px}
 .matsui-floating-actions .matsui-floating-booking{display:flex;align-items:center;justify-content:center;gap:10px;aspect-ratio:672/252;min-height:52px;padding:4px 8px;border:2px solid #ed9316;border-radius:7px;background:#ffb516;color:#4b2f00!important;text-decoration:none!important;box-shadow:0 2px 0 #ed9316;text-align:center;line-height:1.2;font-weight:800}
 .matsui-floating-booking-text{display:flex;flex-direction:column;gap:2px;font-size:clamp(13px,3.6vw,18px)}
 .matsui-floating-booking-text strong{font-size:1.22em;font-weight:800}
 .matsui-floating-booking-arrow{font-size:28px;line-height:1}
 .matsui-floating-actions .matsui-floating-booking:hover{background:#ffc33d}
}

.post_content .matsui-referral-name{margin-bottom:0}
.post_content .matsui-referral-hero{margin-bottom:clamp(24px,5vw,50px)}
.matsui-referral-art{display:block;width:100%;height:auto}

.matsui-cases{background:#fffba6}
.post_content .matsui-cases h2{max-width:800px;margin:0 auto 24px;padding:0;border:0;background:none}
.matsui-cases h2 img{display:block;width:100%;height:auto}
.matsui-case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.matsui-case-card{overflow:hidden;border-radius:12px;background:#fff;color:#26394a}
.matsui-case-card img{display:block;width:100%;height:auto}
.matsui-case-body{padding:16px}
.post_content .matsui-case-card h3{margin:0 0 .6em;padding:0;border:0;background:none;font-size:1rem}
.post_content .matsui-case-quote{margin:0 0 .8em;font-size:1.125rem;font-weight:800;line-height:1.5}
.matsui-case-card summary{cursor:pointer;color:#744300;font-weight:700}
.matsui-case-card details p{margin:.8em 0}
.matsui-case-card small{display:block;margin-top:12px;color:#555;font-size:.8125rem}
.post_content .matsui-case-more{margin:24px 0 0;text-align:center}
.matsui-case-more a{display:inline-block;padding:.65em 1em;border:2px solid #eea21d;border-radius:8px;background:#fff;color:#754300;font-weight:800}
@media(max-width:767px){.matsui-case-grid{grid-template-columns:1fr}}

.post_content .matsui-symptom-grid{width:92%;margin-inline:auto}
.matsui-symptom-grid__inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:5.75%;row-gap:clamp(20px,8.8vw,48px)}
.post_content .matsui-symptom-grid__inner > .swell-block-column{width:auto;min-width:0;margin:0;padding:0}
.post_content .matsui-symptom-grid figure{margin:0}
.matsui-symptom-grid figure img{display:block;width:100%;height:auto}

.post_content .matsui-reasons{background:#fffba6;margin-bottom:clamp(28px,5vw,50px);padding:clamp(16px,4vw,38px)}
.post_content .matsui-reasons h2{max-width:800px;margin:0 auto 20px;padding:0;border:0;background:none}
.matsui-reasons h2 img{display:block;width:100%;height:auto}
.matsui-reasons-list{display:grid;gap:16px}
.matsui-reason{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:20px;padding:16px;border-radius:12px;background:#fff;color:#26394a}
.matsui-reason img{display:block;width:100%;height:auto}
.post_content .matsui-reason h3{margin:0 0 .6em;padding:0;border:0;background:none;font-size:clamp(18px,2.25vw,24px)}
.matsui-reason h3 span{color:#8b4e00}
.post_content .matsui-reason p{margin:0 0 .6em}
.post_content .matsui-reason p:last-child{margin-bottom:0}
@media(max-width:767px){.matsui-reason{grid-template-columns:1fr;gap:12px}}

.post_content .matsui-referral-flow{background:#fffba6;margin-bottom:clamp(28px,5vw,50px);padding:clamp(16px,4vw,38px)}
.post_content .matsui-referral-flow h2{max-width:800px;margin:0 auto 20px;padding:0;border:0;background:none}
.matsui-referral-flow h2 img{display:block;width:100%;height:auto}
.post_content .matsui-flow-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0;padding:0;list-style:none}
.post_content .matsui-flow-step{position:relative;overflow:hidden;margin:0;border-radius:12px;background:#fff;color:#26394a}
.matsui-flow-step::before{content:none!important}
.matsui-flow-number{display:inline-grid;place-items:center;width:1.7em;height:1.7em;margin-inline-end:.45em;border-radius:50%;background:#ffb615;color:#26394a;font-weight:900}
.matsui-flow-step img{display:block;width:100%;height:auto}
.matsui-flow-step > div{padding:14px}
.post_content .matsui-flow-step h3{margin:0 0 .35em;padding:0;border:0;background:none;font-size:1.125rem}
.post_content .matsui-flow-step p{margin:0}
@media(max-width:767px){.post_content .matsui-flow-steps{grid-template-columns:1fr}}

.post_content .matsui-clinic-info{max-width:960px;margin:0 auto 48px;padding-inline:clamp(14px,4vw,32px)}
.matsui-clinic-address{padding:clamp(16px,4vw,34px);border:3px solid #bd7a15;border-radius:24px;background:white;color:#222}
.post_content .matsui-clinic-address h2{margin:0 0 6px;padding:0;border:0;background:none;font-size:clamp(23px,4.7vw,38px)}
.matsui-clinic-address address{font-style:normal;font-weight:700}
.post_content .matsui-clinic-phone{display:block;width:fit-content;margin:12px auto 0;color:#8b5700;font-size:clamp(25px,6vw,50px);font-weight:900}
.post_content .matsui-clinic-info h3{margin:22px 0 8px;padding:0;border:0;background:none}
.post_content .matsui-clinic-info .wp-block-table{margin:0 0 12px}
.matsui-clinic-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.matsui-clinic-photos img{display:block;width:100%;height:auto}
