*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:"Noto Sans JP","Yu Gothic",Meiryo,sans-serif;color:#075b9f;background:#eef9ff}
a{text-decoration:none;color:inherit}
.site-header{height:95px;background:#fff;position:relative;z-index:20;border-bottom:1px solid #e8f2f8}
.header-inner{max-width:1240px;height:95px;margin:0 auto;padding:0 20px;display:flex;align-items:center;gap:32px}
.brand{width:390px;display:flex;align-items:center;flex:none}
.header-logo{width:229px;height:113px;display:block;object-fit:contain;transform:translate(15px,2px)}
.global-nav{height:100%;display:flex;align-items:center;gap:42px;flex:1}
.global-nav a{height:100%;display:flex;align-items:center;position:relative;font-size:16px;font-weight:600;white-space:nowrap;color:#075b9f}
.global-nav .active{color:#0878c8}
.global-nav .active:after{content:"";position:absolute;left:0;right:0;bottom:16px;height:3px;border-radius:3px;background:#0878c8}
.header-tools{display:flex;gap:24px;white-space:nowrap;font-size:15px;font-weight:600;color:#0569b6}
.hero{height:365px;position:relative;overflow:hidden;background:#dff3ff}
.hero-photo{position:absolute;inset:0;overflow:hidden}
.hero-photo img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 25%}
.hero-copy{position:absolute;z-index:5;left:max(calc((100% - 1240px)/2 + 45px),8%);top:41px}
.hero-copy h1{margin:0;color:#075b9f;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:44px;line-height:1.45;letter-spacing:.07em;font-weight:600;text-shadow:0 1px 0 rgba(255,255,255,.7)}
.hero-copy p{margin:15px 0 0;color:#075b9f;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:17px;line-height:1.75;font-weight:600}
.mountain{position:absolute;z-index:4;left:-5%;width:110%;pointer-events:none}
.mountain-back{bottom:28px;height:85px;background:rgba(109,190,224,.36);clip-path:polygon(0 52%,10% 22%,20% 44%,30% 10%,40% 37%,52% 18%,62% 48%,74% 20%,84% 42%,94% 15%,100% 34%,100% 100%,0 100%)}
.mountain-front{bottom:0;height:66px;background:rgba(185,229,244,.92);clip-path:polygon(0 57%,12% 32%,24% 54%,37% 25%,49% 48%,62% 30%,75% 54%,87% 31%,100% 49%,100% 100%,0 100%)}
.hero-wave{position:absolute;z-index:6;left:-5%;bottom:-35px;width:110%;height:78px;background:#eef9ff;border-radius:50% 50% 0 0/75% 75% 0 0}
.visit-section{max-width:1240px;margin:0 auto;padding:11px 20px 21px}
.section-heading{display:flex;gap:14px;align-items:flex-start;margin-bottom:18px}
.section-heading>span{width:7px;height:61px;border-radius:5px;background:#f8c694;flex:none}
.section-heading h2{font-size:29px;line-height:1.2;margin:0 0 5px;font-weight:700}
.section-heading p{margin:0;font-size:14px;line-height:1.5}
.visit-grid{display:grid;grid-template-columns:minmax(0,1fr) 335px;gap:26px;align-items:start}
.main-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.feature-card{background:#fff;border-radius:11px;overflow:hidden;min-height:237px;box-shadow:0 1px 7px rgba(22,112,168,.08);transition:.2s;border-bottom:3px solid transparent}
.feature-card:hover{transform:translateY(-4px);box-shadow:0 10px 22px rgba(0,92,153,.16);border-bottom-color:#f8c694}
.card-image{height:78px;overflow:hidden}
.card-image img{width:100%;height:100%;display:block;object-fit:cover}
.card-body{position:relative;padding:23px 17px 15px;min-height:159px}
.icon{position:absolute;left:2px;top:-28px;width:56px;height:56px;display:flex;align-items:center;justify-content:center}.icon img{width:56px;height:56px;display:block}
.card-body h3{margin:1px 0 8px;font-size:18px;color:#066bb2}
.card-body p{margin:0;font-size:12.5px;line-height:1.7;color:#376d98}
.arrow{position:absolute;right:12px;bottom:11px;width:28px;height:28px;border-radius:50%;background:#0878c8;color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700}
.side-cards{display:flex;flex-direction:column;gap:15px}
.side-card{height:99px;border-radius:12px;background:#dff3ff;display:grid;grid-template-columns:48px 1fr 27px;align-items:center;gap:12px;padding:14px 16px;transition:.2s}
.side-card:hover{transform:translateY(-3px);background:#ccecff}
.side-icon{width:38px;height:38px;display:flex;align-items:center;justify-content:center}.side-icon img{width:38px;height:38px;display:block}
.side-card h3{margin:0 0 4px;font-size:17px}
.side-card p{margin:0;font-size:11.5px;line-height:1.55;color:#39749e}
.side-card>span{width:25px;height:25px;border-radius:50%;background:#0878c8;color:#fff;display:flex;align-items:center;justify-content:center}
.lower{max-width:1240px;margin:0 auto;padding:0 20px 45px;display:grid;grid-template-columns:1.12fr .98fr;gap:18px}
.news,.request{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 7px rgba(22,112,168,.07)}
.news{padding:14px 19px}
.box-title{display:flex;align-items:center;border-bottom:1px solid #dceef8;padding-bottom:9px}
.box-title h2{font-size:19px;margin:0 0 0 8px}.box-title a{margin-left:auto;font-size:12px}
.news ul{list-style:none;margin:0;padding:0}.news li{height:37px;border-bottom:1px solid #e5f0f7;display:grid;grid-template-columns:82px 1fr 70px;align-items:center;font-size:12px}
.news time{color:#467ca4}
.news b{font-weight:700;border-radius:5px;text-align:center;padding:3px 4px}
/* お知らせ区分：GASの区分に応じて色分け */
.news b.news-category.category-info{background:#0878c8;color:#fff;border:1px solid #0878c8}
.news b.news-category.category-important{background:#e58a19;color:#fff;border:1px solid #e58a19}
.news b.news-category.category-emergency{background:#d93636;color:#fff;border:1px solid #d93636}
.request{display:grid;grid-template-columns:53% 47%;min-height:156px}.request img{width:100%;height:100%;object-fit:cover}.request>div{padding:20px}.request h2{font-size:17px;margin:0 0 9px}.request p{font-size:11.5px;line-height:1.7;margin:0 0 12px}.request span{display:inline-block;border:1px solid #f8c694;background:#fff8f1;color:#075b9f;border-radius:20px;padding:7px 15px;font-size:12px;font-weight:600}
@media(max-width:1050px){.brand{width:270px}.global-nav{gap:22px}.main-cards{grid-template-columns:repeat(2,1fr)}.visit-grid{grid-template-columns:1fr 300px}}
@media(max-width:800px){.site-header,.header-inner{height:auto}.header-inner{padding:12px 18px;flex-wrap:wrap}.brand{width:100%}.global-nav{order:3;width:100%;height:48px;justify-content:space-between;gap:8px}.global-nav a{font-size:13px}.header-tools{position:absolute;right:18px;top:18px;font-size:12px}.hero{height:310px}.hero-copy{left:7%;top:42px}.hero-copy h1{font-size:31px}.hero-copy p{font-size:14px}.visit-grid{grid-template-columns:1fr}.side-cards{display:grid;grid-template-columns:1fr 1fr}.lower{grid-template-columns:1fr}}
@media(max-width:560px){.main-cards{grid-template-columns:1fr}.side-cards{grid-template-columns:1fr}.hero{height:275px}.hero-copy h1{font-size:26px}.hero-copy p{font-size:12px}.section-heading h2{font-size:25px}.section-heading p{font-size:12px}.lower{padding-bottom:25px}.request{grid-template-columns:1fr}.request img{height:145px}}

.site-footer{background:#fff;border-top:1px solid #e0eef6}
.footer-inner{max-width:1240px;margin:0 auto;padding:26px 20px 30px;display:grid;grid-template-columns:370px 1fr;gap:42px;align-items:start}
.footer-info{padding-right:38px;border-right:1px solid #bdd0dc}
.footer-info img{width:250px;height:auto;display:block;margin-bottom:14px}
.footer-info p{margin:0 0 8px;color:#3a617d;font-size:13px}
.footer-info a{color:#0871ba;font-weight:700;font-size:18px}
.footer-right{min-height:105px;display:flex;flex-direction:column}
.footer-nav{display:flex;flex-wrap:wrap;gap:8px 0;margin-top:17px}
.footer-nav a{font-size:12px;color:#496b83;padding:0 14px;border-right:1px solid #adc1cf}
.footer-nav a:first-child{padding-left:0}
.footer-nav a:last-child{border-right:0}
.copyright{margin:auto 0 0;text-align:right;color:#496b83;font-size:12px}
@media(max-width:800px){.footer-inner{grid-template-columns:1fr}.footer-info{border-right:0;border-bottom:1px solid #d6e4ed;padding:0 0 20px}.copyright{text-align:left;margin-top:22px}}
@media(max-width:560px){.footer-info img{width:220px}}

.box-title>span{color:#f8c694;font-weight:700}

/* お知らせ5件＋診療変更・休診情報2件 */
.lower-right{display:flex;flex-direction:column;gap:18px;min-width:0}
.lower-right .request{width:100%}
.medical-change{padding:14px 19px;border-top:4px solid #f08b95}
.medical-change .box-title>span{color:#e25f6d;font-size:13px}
.medical-change .box-title h2{color:#075b9f}
.news li.empty-message{display:flex;align-items:center;height:37px;color:#66869d}
.medical-change .news-category{background:#d85b69;color:#fff}

/* 診療変更・休診情報：空欄時・2件表示時の高さと折返しを調整 */
.medical-change{min-height:118px}
.medical-change .news li{grid-template-columns:82px minmax(0,1fr) 70px}
.medical-change .news li.empty-message,.medical-change li.empty-message{height:48px;white-space:nowrap;overflow:visible}
.medical-change li.empty-message span{white-space:nowrap}
@media(max-width:560px){.medical-change li.empty-message,.medical-change li.empty-message span{white-space:normal}}
