/* Responsive additions written for the static rebuild. */
html{scroll-behavior:smooth}body{overflow-wrap:anywhere}img{max-width:100%;height:auto}a:focus-visible,summary:focus-visible{outline:3px solid #714030;outline-offset:4px}a[href^="tel:"]{pointer-events:auto!important}.skip{position:fixed;left:12px;top:-100px;z-index:100000;background:#fff;padding:12px}.skip:focus{top:12px}
#navBG>ul.dropmenu>li{width:20%}#navBG>ul.dropmenu>li:not(:first-child){width:calc(20% - 4px)}#navBG>ul.dropmenu>li:focus-within ul{display:block}
.mobile-menu{display:none}#footer2{box-sizing:border-box;padding-left:15px;padding-right:15px}#iwakitop{font-family:"Hiragino Maru Gothic ProN","Yu Gothic",Meiryo,sans-serif}#iwakitop .menuwrap ul li{color:#79685d}#footer2>ul.fnav li{color:#fff3f3}#iwakitop .hourswrap table{table-layout:fixed}#iwakitop .hourswrap th{white-space:nowrap}#iwakitop .accesswrap .googlemap{max-width:100%}
.restored-page{max-width:960px;margin:0 auto 60px;line-height:1.9}.restored-page article{background:white;padding:35px}.restored-page article h1{font-size:24px;line-height:1.5;color:#b8364b;margin-bottom:15px}.restored-page article time{display:block;margin-bottom:25px;color:#765b50}.restored-page article p{margin:1em 0}.breadcrumb{margin:10px 0 25px}.news-list{list-style:none;background:white;padding:25px}.news-list li{padding:15px 0;border-bottom:1px dotted #bcaeaa}.news-list time{font-size:13px}.restored-page table{max-width:100%}.restored-page [id]{box-sizing:border-box}.restored-page iframe{max-width:100%}
@media(max-width:979px){
#headerBG{min-width:0}#header{height:auto!important;min-height:0!important;width:92%!important;padding:25px 0!important}#header h1.logo{position:static!important;margin:0 auto!important;padding:0!important;width:min(418px,95%)}#header h1.logo img{width:100%;height:auto}#header ul.address{position:static!important;margin:18px 0 0!important;text-align:center!important}#headerBG>h3{font-size:clamp(11px,2.6vw,16px);line-height:1.7;padding:8px 4px;letter-spacing:0}
.mobile-menu{display:block;width:92%;margin:0 auto 22px;position:relative;z-index:50;background:#fff;border:1px solid #ed7979;border-radius:8px}.mobile-menu summary{padding:13px 16px;font-size:16px;font-weight:bold;color:#9e3446;cursor:pointer}.mobile-menu div{display:grid;grid-template-columns:1fr 1fr;padding:8px 12px 18px;gap:4px 10px}.mobile-menu a{display:block;padding:10px 4px;line-height:1.5;border-bottom:1px solid #f2d9df;font-size:14px}
#iwakitop{width:92%;max-width:960px;margin:0 auto!important}#iwakitop>.whitewrap>.inner{box-sizing:border-box;width:100%;max-width:760px;padding:24px 18px}#iwakitop .messagewrap .inner{padding:16px 10px}#iwakitop .messagewrap h3{font-size:16px;line-height:1.8}#iwakitop .messagewrap h2{font-size:19px;line-height:1.8;margin-top:8px}#iwakitop .yoyakuwrap,#iwakitop .hourswrap{margin-top:30px}#iwakitop .yoyakuwrap h4,#iwakitop .hourswrap h4{font-size:21px;padding:12px 8px;letter-spacing:1px}#iwakitop .yoyakuwrap p{font-size:16px;line-height:1.9;text-align:left}#iwakitop .hourswrap table{margin-top:24px}#iwakitop .hourswrap th,#iwakitop .hourswrap td{font-size:clamp(11px,2.8vw,20px);letter-spacing:0;padding:7px 0}#iwakitop .hourswrap td b{font-size:clamp(15px,3.7vw,25px)}#iwakitop .newswrap{margin-top:36px}#iwakitop .newswrap li a{font-size:15px;line-height:1.8;padding:13px 0}
#iwakitop .menuwrap{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:35px}#iwakitop .menuwrap>.inner,#iwakitop .accesswrap>.inner{width:auto!important;min-width:0}#iwakitop .menuwrap h3{font-size:22px}#iwakitop .menuwrap ul{padding:20px}#iwakitop .menuwrap ul li{font-size:17px;line-height:1.9}#iwakitop .menuwrap ul li a{display:inline-block;padding:6px 0}#iwakitop .banerwrap{width:100%;max-width:680px;margin-top:20px}#iwakitop .banerwrap img{width:100%}#iwakitop .accesswrap{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:40px}#iwakitop .accesswrap .googlemap{width:100%;height:300px}#iwakitop .accesswrap .tell img{width:100%}#iwakitop .accesswrap th,#iwakitop .accesswrap td{font-size:12px}#iwakitop .endcopy{padding:35px 0 0}#iwakitop .endcopy h5{font-size:15px;letter-spacing:1px}#footer2{width:92%;padding:30px 0}#footer2>ul.address li:nth-child(1){font-size:26px;letter-spacing:4px}#footer2>ul.address li:nth-child(3){font-size:22px}.restored-page{width:92%}.restored-page article{padding:20px}.restored-page article h1{font-size:21px}.restored-page [id]{max-width:100%;width:100%;padding:20px}.restored-page .inner{padding:15px!important}.restored-page .history>dt,.restored-page .history>dd{float:none;width:auto}.restored-page table{display:block;overflow-x:auto}
}
@media(max-width:600px){#iwakitop .menuwrap,#iwakitop .accesswrap{grid-template-columns:1fr;gap:0}#iwakitop .menuwrap ul{padding:20px 24px}#iwakitop .menuwrap h3{font-size:21px}#iwakitop .menuwrap .inner{margin:0}#iwakitop .accesswrap>.inner+ .inner{margin-top:35px}#iwakitop .accesswrap th,#iwakitop .accesswrap td{font-size:13px}#iwakitop .accesswrap h3{font-size:21px}#iwakitop .accesswrap .wifi p{padding:0 12px}#iwakitop .accesswrap p.txt{font-size:14px;line-height:1.8}#iwakitop .hourswrap th{width:34%}#iwakitop .hourswrap td{width:auto}#iwakitop>.whitewrap>.inner{padding:20px 12px}.mobile-menu div{grid-template-columns:1fr}.restored-page article h1{font-size:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* v2: Keep the four footer groups inside the available content width. */
#footer2{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.65fr) minmax(0,1.2fr) minmax(0,1fr);gap:28px 22px;max-width:1030px;width:92%;box-sizing:border-box;padding:45px 0}
#footer2>ul.address,#footer2>ul.fnav1,#footer2>ul.fnav2,#footer2>ul.fnav3{float:none;width:auto;margin:0;min-width:0}
#footer2>ul.address li:nth-child(1){font-size:28px;line-height:1.5;letter-spacing:3px;white-space:nowrap}
#footer2>ul.address li:nth-child(2){margin-top:15px;line-height:1.7}
#footer2>ul.address li:nth-child(3){font-size:22px;line-height:1.65;letter-spacing:0;white-space:nowrap}
#footer2>ul.fnav li{font-size:14px;line-height:1.8;margin-left:0;color:#fff}
#footer2>ul.fnav li h5{font-size:19px;line-height:1.6;margin:0 0 8px}
#footer2>p.copy{grid-column:1/-1;width:100%;box-sizing:border-box;margin:8px 0 0;padding:22px 0 0;border-top:1px solid rgba(255,255,255,.4);font-size:11px;line-height:1.8}
@media(min-width:601px) and (max-width:979px){#footer2{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}#footer2>ul.address li{text-align:left!important}#footer2>ul.address li:nth-child(1){font-size:26px}}
@media(max-width:600px){#footer2{grid-template-columns:minmax(0,1fr);gap:25px;padding:30px 0}#footer2>ul.address li{text-align:center}#footer2>ul.address li:nth-child(1){font-size:26px}#footer2>ul.fnav1{padding-top:25px;border-top:1px solid rgba(255,255,255,.4)}#footer2>ul.fnav li{font-size:15px}#footer2>p.copy{text-align:left}}

/* v3: Align the IVF photographs and their own descriptions. */
#baseMAIN .ivf-step{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px;align-items:start;clear:both}
#baseMAIN .ivf-step>div.imgL,#baseMAIN .ivf-step>div.txtR{float:none!important;width:auto!important;min-width:0;margin:0!important;padding:0!important}
#baseMAIN .ivf-step>div.imgL img{display:block;width:100%;height:auto}
#baseMAIN .ivf-step>div.txtR p{margin-top:0;line-height:1.9}
#cause .inner>ul{list-style:none;margin-left:0;padding-left:0}
@media(max-width:700px){#baseMAIN .ivf-step{grid-template-columns:minmax(0,1fr);gap:16px}}

/* v4: rebuild IVF media groups from the original static content. */
.ivf-rebuilt #panBG,.ivf-rebuilt #baseBG{min-width:0;width:100%;clear:both}
.ivf-rebuilt #pan{width:92%;max-width:960px;box-sizing:border-box}
.ivf-rebuilt #baseBOX{box-sizing:border-box;width:92%;max-width:960px;padding:28px;margin:0 auto}
.ivf-rebuilt #baseMAIN{padding:28px;min-width:0;display:flow-root;font-size:15px;line-height:1.9}
.ivf-rebuilt #baseMAIN>*{max-width:100%;box-sizing:border-box}
.ivf-rebuilt #baseMAIN>p{float:none!important;clear:both;width:auto!important}
.ivf-rebuilt #baseMAIN .ivf-media-row{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px;align-items:start;clear:both;margin:24px 0}
.ivf-rebuilt #baseMAIN .ivf-media-row>div{float:none!important;width:auto!important;min-width:0;height:auto!important;padding:0!important;margin:0!important;position:static;box-sizing:border-box}
.ivf-rebuilt #baseMAIN .ivf-media-visual{text-align:center;font-size:14px;line-height:1.8}
.ivf-rebuilt #baseMAIN .ivf-media-visual img{display:block;width:auto!important;height:auto!important;max-width:100%;max-height:440px;object-fit:contain;margin:0 auto}
.ivf-rebuilt #baseMAIN .ivf-media-description p{padding:0!important;margin:0 0 16px!important;line-height:1.9;text-indent:0!important}
.ivf-rebuilt #baseMAIN .ivf-media-description p.blue{font-size:18px;font-weight:bold;color:#2778be}
.ivf-rebuilt #baseMAIN video{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:4/3;background:#222;object-fit:contain}
.ivf-rebuilt #baseMAIN .ivf-section-title{text-align:center;font-size:21px;line-height:1.7;letter-spacing:1px;color:#d94a70;margin:30px auto 24px;font-weight:bold;overflow-wrap:anywhere}
.ivf-rebuilt #baseMAIN .line{margin:22px 0;height:28px;clear:both}
.ivf-rebuilt #baseMAIN [class^="spa"]{height:20px;clear:both}
.ivf-rebuilt #baseMAIN .s02_ul01{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;width:100%;padding:0;list-style:none}
.ivf-rebuilt #baseMAIN .s02_ul01>li{float:none;width:auto;box-sizing:border-box;padding:22px;margin:0}
.ivf-rebuilt #baseMAIN [class$="imgC"],.ivf-rebuilt #baseMAIN [class*="imgC1"],.ivf-rebuilt #baseMAIN [class*="imgC2"],.ivf-rebuilt #baseMAIN .img660{width:min(100%,600px);margin-left:auto;margin-right:auto;box-sizing:border-box}
.ivf-rebuilt #baseMAIN .s03_imgC img{max-height:380px;max-width:100%;width:auto;height:auto}
.ivf-rebuilt #baseMAIN a{overflow-wrap:anywhere}
@media(max-width:700px){
.ivf-rebuilt #baseBOX{padding:12px;width:94%}.ivf-rebuilt #baseMAIN{padding:18px;font-size:16px;line-height:1.9}
.ivf-rebuilt #baseMAIN .ivf-media-row{grid-template-columns:minmax(0,1fr);gap:16px;margin:22px 0}
.ivf-rebuilt #baseMAIN .ivf-media-visual img{max-height:360px}
.ivf-rebuilt #baseMAIN .ivf-section-title{font-size:19px;letter-spacing:0}
.ivf-rebuilt #baseMAIN .s02_ul01{grid-template-columns:minmax(0,1fr)}
.ivf-rebuilt #baseMAIN [class*="box"],.ivf-rebuilt #baseMAIN [class*="box"] p{max-width:100%;box-sizing:border-box}
.ivf-rebuilt #baseMAIN .s05_box01{width:100%;padding:18px 12px}
.ivf-rebuilt #baseMAIN .s03_imgC img{max-height:320px}
}

/* v5: One bullet per list item; keep wide results tables inside mobile screens. */
#price ul,#general ul{list-style:none}
.results-table-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto;box-sizing:border-box;-webkit-overflow-scrolling:touch}
.results-table-scroll:focus-visible{outline:3px solid #b13e5c;outline-offset:3px}
.results-table-hint{display:none}
@media(max-width:979px){
.restored-page .results-table-scroll table{display:table;min-width:760px;width:100%;max-width:none;overflow:visible}
.results-table-hint{display:block;margin:15px 0 8px;font-size:14px;color:#79554d}
}
@media(max-width:600px){
#general ul,#general h5,#general h5+p{margin-left:0!important}
#general p,#general ul,#general li,#price p,#price ul,#price li{font-size:16px;line-height:1.85}
#price h3,#general h3{flex-wrap:wrap}
#price h3:before,#price h3:after,#general h3:before,#general h3:after{width:22px;margin-left:4px;margin-right:4px}
}
