/* 2026-10-12: common corrections in the designer's annotated PDF.
   The 1920-unit artboard supplies the desktop scale; phones reflow below. */
.carousel-control{display:grid;place-items:center;padding:0}
.inner-hero{background-image:url('assets/hero-inner-approved.webp')}
.medical-card h3{display:flex;align-items:center;justify-content:center;gap:calc(10 * var(--u))}
.medical-card h3 .medical-organ-icon{width:auto;height:calc(44 * var(--u));margin:0;flex-shrink:0}
.sp-step-number img{width:100%;height:auto}
.carousel-chevron{display:block;width:25%;height:25%;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateX(-18%) rotate(-45deg)}
.carousel-control.prev .carousel-chevron{transform:translateX(18%) rotate(135deg)}
.feature-number{width:calc(218 * var(--u));height:calc(61 * var(--u));top:calc(-30 * var(--u));padding:0;background:linear-gradient(transparent 48%,#fff 48%);display:flex;align-items:center;justify-content:center}
.feature-number img{height:100%;width:auto;max-width:none}
.medical-card:after,.feature-card:after{content:"";display:block;transform:translateY(-50%);background-color:transparent;background-repeat:no-repeat;background-position:center;background-size:100% 100%;border-radius:0;pointer-events:none}
.medical-card:after{width:calc(58 * var(--u));height:calc(114 * var(--u));right:0;top:calc(400 * var(--u));background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 114'%3E%3Cpath d='M58 0a57 57 0 0 0 0 114' fill='%23eae6e3'/%3E%3Cpath d='m25 29 28 28-28 28' fill='none' stroke='white' stroke-width='4'/%3E%3C/svg%3E")}
.feature-card:after{width:calc(58 * var(--u));height:calc(114 * var(--u));right:0;top:50%;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 114'%3E%3Cpath d='M58 0a57 57 0 0 0 0 114' fill='white'/%3E%3Cpath d='m27 37 20 20-20 20' fill='none' stroke='%23a2c4d1' stroke-width='3'/%3E%3C/svg%3E")}
.sp-biography-english{left:calc(220 * var(--u));bottom:calc(-40 * var(--u));width:calc(714.763 * var(--u));height:calc(174.122 * var(--u));font-size:0;letter-spacing:normal}
.sp-biography-english img{width:100%;height:100%;max-width:none}
.inner-hero[data-page="internal-medicine"] h1{left:50%;right:auto;width:45%;max-width:45%;font-size:calc(48 * var(--u));white-space:normal;word-break:normal;overflow-wrap:normal;line-height:1.65}
.approved-gallery{padding:calc(245 * var(--u)) 0 calc(150 * var(--u))}
.page-equipment .approved-gallery{padding-bottom:calc(290 * var(--u))}
.approved-gallery-grid{width:calc(1100 * var(--u));max-width:calc(100% - 36px);margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:calc(48 * var(--u)) calc(28 * var(--u))}
.approved-gallery figure{padding:calc(20 * var(--u)) calc(20 * var(--u)) 0;background:linear-gradient(#fff,#88aebb)}
.approved-gallery figure img{width:100%;aspect-ratio:1.36;object-fit:cover}
.approved-gallery figcaption{color:#fff;text-align:center;font-size:calc(22 * var(--u));padding:calc(18 * var(--u)) 0 calc(20 * var(--u));line-height:1.45}
.approved-clinic-section{padding:calc(25 * var(--u)) 0 calc(155 * var(--u))}
.approved-clinic-container{width:calc(1100 * var(--u));max-width:calc(100% - 36px);margin:0 auto}
.approved-clinic-section p{font-size:calc(16 * var(--u));line-height:1.9;margin:0}
.approved-clinic-container>p{text-align:center;margin-bottom:calc(55 * var(--u))}
.approved-clinic-section .data-table{display:block;margin:calc(55 * var(--u)) 0 0}
.approved-clinic-section .data-row{display:grid;grid-template-columns:33% 67%;border:1px solid #eee;border-bottom:0}
.approved-clinic-section .data-row:last-child{border-bottom:1px solid #eee}
.approved-clinic-section .data-label{padding:calc(27 * var(--u)) calc(25 * var(--u));display:flex;align-items:center;justify-content:flex-start;background:#f4f1ef;color:#555;font-size:calc(18 * var(--u));text-align:left}
.approved-clinic-section .data-value{padding:calc(26 * var(--u)) calc(30 * var(--u));font-size:calc(16 * var(--u));background:white;color:#222}
.clinic-heading-artwork{height:calc(45.24 * var(--u));width:auto;margin:auto;max-width:100%}
.approved-indoor{background:linear-gradient(#dfe8ec,#88acbb);margin-top:calc(65 * var(--u));padding:0 0 calc(185 * var(--u))}
.approved-indoor .section-heading{position:relative;top:calc(-67 * var(--u));margin-bottom:calc(-8 * var(--u))}
.approved-indoor .section-heading .en{font-size:calc(130 * var(--u));white-space:nowrap}
.approved-indoor .clinic-heading-artwork{width:100%;height:auto}
.approved-indoor .indoor-view{aspect-ratio:1.5}
.approved-indoor .indoor-view button,.approved-indoor .indoor-view img{height:100%;object-fit:cover}
.page-faq .faq-list{width:calc(1100 * var(--u));padding:calc(90 * var(--u)) 0 calc(180 * var(--u))}
.page-faq .faq-item{padding:0;margin-bottom:calc(78 * var(--u));border:0}
.page-faq .faq-question{margin:0 0 calc(37 * var(--u));font-size:calc(16 * var(--u));font-weight:600;color:#293e57;background:linear-gradient(90deg,#fff,#84aab9)}
.faq-toggle{width:100%;display:flex;gap:calc(30 * var(--u));align-items:center;border:0;background:none;padding:calc(20 * var(--u)) calc(35 * var(--u));text-align:left;min-height:calc(95 * var(--u));color:inherit;font:inherit}
.faq-number{font-family:Didot,"Times New Roman",serif;font-size:calc(40 * var(--u));font-weight:400;color:#293e57;line-height:1;margin:0;flex-shrink:0}
.faq-number img{height:calc(42 * var(--u));width:auto}
.faq-mark{margin-left:auto;font-family:Arial,sans-serif;color:white;font-size:calc(32 * var(--u));font-weight:700;line-height:1}
.faq-answer{padding:0 calc(77 * var(--u));color:#293e57}
.page-faq .faq-item p{line-height:1.65}
.access-main>.container{width:calc(1100 * var(--u))}
.access-main .access-page-map img{height:auto;aspect-ratio:2202/808}
.access-main .train{display:flex;align-items:center;justify-content:center;gap:calc(15 * var(--u))}
.access-main .access-train-icon{width:calc(64 * var(--u));height:calc(64 * var(--u));object-fit:contain}
.feature-page-intro{padding:calc(205 * var(--u)) 0 0}
.feature-page-intro .section-heading{font-size:calc(36 * var(--u));margin-bottom:0}
.approved-feature-row{padding:calc(100 * var(--u)) 0;min-height:calc(600 * var(--u))}
.approved-feature-row:nth-of-type(even){background:linear-gradient(#ecf2f4,#bed2d9)}
.approved-feature-inner{width:calc(1100 * var(--u));max-width:calc(100% - 36px);margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:calc(50 * var(--u));align-items:center}
.approved-feature-row:nth-of-type(even) .approved-feature-photo{order:2}
.approved-feature-photo img{width:100%;height:calc(350 * var(--u));object-fit:cover}
.approved-feature-label{color:#a0b2bd;font-family:Didot,"Times New Roman",serif;font-size:calc(44 * var(--u));line-height:1.2;margin-bottom:calc(20 * var(--u))}
.approved-feature-label img{width:auto;height:calc(53 * var(--u));max-width:100%}
.approved-feature-copy h2{font-size:calc(36 * var(--u));line-height:1.25;color:#5d83b5;margin:0 0 calc(35 * var(--u))}
.approved-feature-copy p{font-size:calc(16 * var(--u));line-height:1.65;margin:0}
@media(min-width:768px){
 .inner-hero[data-page="equipment"] h1{left:calc(1175 * var(--u));right:auto}
 .inner-hero[data-page="clinic"] h1{left:calc(1470 * var(--u));right:auto}
 .inner-hero[data-page="features"] h1{left:calc(1015 * var(--u));right:auto}
 .inner-hero[data-page="access"] h1{left:calc(880 * var(--u));right:auto}
 .inner-hero[data-page="faq"] h1{left:calc(715 * var(--u));right:auto}
 .inner-hero[data-page="symptom-positive-fecal-test"] h1{font-size:calc(48 * var(--u));max-width:46%;left:49%;line-height:1.6}
 .section-heading .en{font-size:calc(48 * var(--u));letter-spacing:normal}
 .section-heading .jp{font-size:calc(24 * var(--u))}
 .heading-artwork{height:calc(45.24 * var(--u))}
 .medical-card h3{font-size:calc(30 * var(--u))}
 .medical-card p,.feature-card p,.page-faq .faq-item p{font-size:calc(16 * var(--u));line-height:1.95}
 .feature-card h3{font-size:calc(30 * var(--u));white-space:pre-line}
 .sp-biography-table{font-size:calc(16 * var(--u))}
 .sp-fees-intro p,.sp-fees-after p,.sp-endo-fees .sp-endo-value p{font-size:calc(16 * var(--u))}
 .footer-address,.copyright{font-size:calc(16 * var(--u))}
}
@media(min-width:768px) and (max-width:1100px){
 .sp-biography-english{left:30%;bottom:calc(-30 * var(--u));width:calc(650 * var(--u));height:auto}
 .medical-card p,.feature-card p,.approved-clinic-section p,.approved-feature-copy p,.page-faq .faq-item p{font-size:14px;line-height:1.8}
 .approved-feature-copy h2{font-size:23px}
 .approved-feature-row{min-height:0;padding:42px 0}
 .approved-clinic-section .data-label{font-size:15px}
}
@media(max-width:767px){
 .page-faq .faq-list{width:calc(100% - 32px);padding:30px 0 50px}
 .page-faq .faq-item{margin-bottom:30px}
 .page-faq .faq-question{font-size:16px;margin-bottom:20px}
 .faq-toggle{min-height:66px;padding:14px 10px;gap:14px}
 .faq-number{font-size:28px}
 .faq-number img{height:30px}
 .faq-mark{font-size:23px}
 .faq-answer{padding:0 16px}
 .access-main>.container{width:calc(100% - 32px)}
 .access-main .access-train-icon{width:35px;height:35px}
 .medical-card h3 .medical-organ-icon{height:30px}
 .inner-hero[data-page="symptom-positive-fecal-test"] h1{font-size:21px;left:42%;max-width:55%;top:25%}
 .medical-card p,.feature-card p,.page-faq .faq-item p,.special-doctor p,.special-endoscopy p{font-size:16px;line-height:1.85}
 .feature-number{width:130px;height:42px;top:-21px}
 .medical-card:after{width:25px;height:50px;top:230px}
 .feature-card:after{width:25px;height:50px}
 .feature-card h3{white-space:normal}
 .sp-biography-english{left:auto;right:-3px;bottom:-5px;width:230px;height:auto}
 .sp-biography-table{font-size:14px}
 .inner-hero[data-page="internal-medicine"] h1{left:7%;top:32%;width:88%;max-width:88%;font-size:25px;line-height:1.55}
 .approved-gallery,.page-equipment .approved-gallery{padding:50px 0 65px}
 .approved-gallery-grid{width:calc(100% - 32px);max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}
 .approved-gallery figure{padding:7px 7px 0}
 .approved-gallery figcaption{font-size:14px;padding:12px 0}
 .approved-clinic-section{padding:10px 0 60px}
 .approved-clinic-container,.approved-feature-inner{width:calc(100% - 32px);max-width:none}
 .approved-clinic-section p,.approved-clinic-section .data-value,.approved-feature-copy p{font-size:16px;line-height:1.85}
 .approved-clinic-container>p{margin-bottom:25px;text-align:left}
 .approved-clinic-section .data-table{margin-top:25px}
 .approved-clinic-section .data-row{display:block}
 .approved-clinic-section .data-label{font-size:17px;padding:14px 16px}
 .approved-clinic-section .data-value{padding:16px}
 .clinic-heading-artwork{height:auto;max-height:36px;max-width:95%}
 .approved-indoor{margin-top:28px;padding:0 0 55px}
 .approved-indoor .section-heading{top:-23px;margin-bottom:5px}
 .approved-indoor .section-heading .en{font-size:44px}
 .approved-indoor .clinic-heading-artwork{max-height:none;width:100%}
 .feature-page-intro{padding-top:48px}
 .feature-page-intro .section-heading{font-size:23px;padding:0 16px}
 .approved-feature-row{padding:38px 0;min-height:0}
 .approved-feature-inner{display:flex;flex-direction:column;gap:25px;align-items:stretch}
 .approved-feature-row:nth-of-type(even) .approved-feature-photo{order:0}
 .approved-feature-photo img{height:auto;aspect-ratio:1.5;object-fit:cover}
 .approved-feature-label{font-size:30px;margin-bottom:12px}
 .approved-feature-label img{height:38px}
 .approved-feature-copy h2{font-size:24px;margin-bottom:20px;line-height:1.5}
}

/* Use the original cropped portrait without changing its proportions. */
.feature-card:first-child>img{height:auto;aspect-ratio:505.001/493.333;object-fit:cover}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important;border:0!important}
.article-page .inner-hero h1.hero-artwork-title{left:calc(var(--title-x) * var(--u));top:calc(var(--title-y) * var(--u));right:auto;bottom:auto;width:calc(var(--title-width) * var(--u));max-width:none;margin:0;line-height:0;transform:none;text-shadow:none}
.original-japanese-title{width:100%;height:auto;filter:drop-shadow(0 0 8px #fff) drop-shadow(0 0 14px #fff)}
@media(min-width:768px){
 .medical-grid{column-gap:0}
 .medical-card{padding-left:calc(50 * var(--u));padding-right:calc(49 * var(--u))}
 .medical-card>img{height:calc(321.134 * var(--u));width:auto;max-width:100%;margin:0 auto;object-fit:contain}
 .medical-card:after{top:calc(382 * var(--u))}
}
@media(max-width:767px){
 .article-page .inner-hero h1.hero-artwork-title{left:auto;right:20px;top:50%;width:min(calc(var(--title-width) * .45px),82vw);max-width:none;transform:translateY(-50%)}
 .original-japanese-title{filter:drop-shadow(0 0 6px #fff) drop-shadow(0 0 10px #fff)}
}
