/* =========================================================
   レスポンシブ（XDはPCのみのため推測で対応）
   ========================================================= */
@media (max-width:1439px){
  .info__cols,.info__btns{grid-template-columns:repeat(3,minmax(0,410px));column-gap:25px}
  .info-card{min-width:0}
}
@media (max-width:1360px){
  .gnav__item+.gnav__item::before{margin:0 14px}
  .h-btn{width:152px;padding:0 20px 0 10px;font-size:11px;white-space:nowrap}
  .h-btn .ico-chev{right:9px}
  .features__grid,.facility__grid{grid-template-columns:repeat(2,minmax(0,625px));column-gap:25px}
  .event .l-inner{grid-template-columns:200px minmax(0,648px) minmax(0,337px)}
  .ev-main{padding-left:30px;padding-right:24px}
  .ev-main__wrap{gap:24px}
  .ev-main__ttl{width:auto}
  .mega__inner{grid-template-columns:300px 1fr;padding-inline:40px}
  .mega__big{grid-template-columns:repeat(4,minmax(0,199px))}
  .mega__small{grid-template-columns:repeat(4,minmax(0,207px))}
  .p-dept{grid-template-columns:240px minmax(0,1002px);column-gap:50px;padding-right:40px}
  .side__box{width:240px;padding-left:30px}
  .dept-list{grid-template-columns:repeat(4,minmax(0,229.8px));column-gap:20px}
  .p-dept .lgrid{grid-template-columns:repeat(3,minmax(0,312px));column-gap:24px}
}
@media (max-width:1240px){
  :root{--header-h:72px}
  .header__logo{left:20px;top:14px;width:190px}
  .header__logo img{width:190px;height:auto}
  .header__top,.gnav,.mega,.mega-overlay{display:none}
  .sp-btns{position:absolute;right:12px;top:12px;display:flex;gap:8px}
  .sp-btns a,.sp-btns button{display:grid;place-items:center;width:48px;height:48px;border-radius:10px;background:var(--blue-pale);color:var(--blue);font-size:10px;font-weight:700;line-height:1}
  .sp-btns svg{width:22px;height:22px}
  .burger{position:relative}
  .burger span{position:absolute;left:14px;width:20px;height:2px;border-radius:2px;background:var(--blue);transition:transform .35s var(--ease),opacity .2s var(--ease)}
  .burger span:nth-child(1){top:17px}.burger span:nth-child(2){top:23px}.burger span:nth-child(3){top:29px}
  .is-drawer .burger span:nth-child(1){transform:translateY(6px) rotate(45deg)}
  .is-drawer .burger span:nth-child(2){opacity:0}
  .is-drawer .burger span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
  .drawer{position:fixed;inset:var(--header-h) 0 0;z-index:95;display:block;overflow-y:auto;background:rgba(255,255,255,.98);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);padding:16px 20px 60px;opacity:0;visibility:hidden;transform:translateY(-10px);transition:opacity .35s var(--ease),transform .35s var(--ease),visibility 0s linear .35s}
  .is-drawer .drawer{opacity:1;visibility:visible;transform:none;transition:opacity .35s var(--ease),transform .35s var(--ease),visibility 0s}
  .is-drawer{overflow:hidden}
  .drawer__tel{display:flex;align-items:center;justify-content:center;gap:6px;height:56px;border-radius:12px;background:var(--blue-pale);font-size:24px;font-weight:700}
  .drawer__tel svg{width:24px;height:24px}
  .drawer__tel small{font-size:11px;color:#fff;background:var(--blue);border-radius:10px;padding:3px 8px;margin-left:4px}
  .drawer__acc{margin-top:12px;border-top:1px solid #eee}
  .drawer__acc>li{border-bottom:1px solid #eee}
  .drawer__acc button{display:flex;align-items:center;justify-content:space-between;width:100%;height:58px;padding:0 6px;font-size:16px;font-weight:700;text-align:left}
  .drawer__acc button::after{content:"";width:10px;height:10px;border-right:2px solid var(--blue);border-bottom:2px solid var(--blue);transform:rotate(45deg) translateY(-3px);transition:transform .35s var(--ease)}
  .drawer__acc button[aria-expanded="true"]::after{transform:rotate(-135deg) translateY(-3px)}
  .drawer__sub{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s var(--ease)}
  .drawer__sub>ul{overflow:hidden;display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;padding:0 6px}
  .drawer__acc button[aria-expanded="true"]+.drawer__sub{grid-template-rows:1fr}
  .drawer__acc button[aria-expanded="true"]+.drawer__sub>ul{padding-bottom:16px}
  .drawer__sub a{position:relative;display:block;padding:6px 0 6px 14px;font-size:14px}
  .drawer__sub a::before{content:"";position:absolute;left:2px;top:15px;width:4px;height:4px;border-radius:50%;background:#e29c9c}
  .drawer__links{display:grid;gap:8px;margin-top:20px}
  .drawer__links a{display:flex;align-items:center;justify-content:center;height:50px;border-radius:10px;background:var(--blue-pale);color:var(--blue);font-size:14px;font-weight:700;text-align:center;line-height:1.3}
  .drawer__search{display:flex;margin-top:16px;height:46px;border:1px solid #ddd;border-radius:8px;overflow:hidden}
  .drawer__search input{flex:1;border:0;padding:0 14px;font:inherit;font-size:16px}
  .drawer__search button{width:52px;background:var(--gray-text);display:grid;place-items:center}
  .drawer__search svg{width:16px;height:16px}
  .l-inner{width:calc(100% - 48px)}

  .mv{height:auto;overflow:visible;background:none}
  .mv__visual{position:relative;height:min(62vw,560px)}
  .mv__lead{text-shadow:0 0 6px #fff,0 0 12px #fff,0 0 18px rgba(255,255,255,.9)}
  .mv__lead{left:24px;top:24px;font-size:14px;line-height:28px}
  .mv__catch{left:24px;top:auto;bottom:70px;font-size:clamp(28px,5.2vw,55px);line-height:1.2}
  .mv__sub{left:26px;top:auto;bottom:46px;font-size:12px}
  .quick{position:relative;top:auto;right:auto;width:auto;height:auto;margin:-28px 0 0;padding:28px 24px 32px;border-radius:20px 20px 0 0}
  .quick__grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:720px;margin:0 auto}
  .quick__nav{max-width:520px;margin:0 auto 18px}
  .pickup{padding-top:70px}
  .pickup .l-inner,.news .l-inner{grid-template-columns:minmax(0,1fr);row-gap:24px}
  .pickup .news-row{margin-bottom:0}
  .info{padding-top:80px}
  .info__cols{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:20px}
  .info__cols>:last-child{grid-column:1/-1}
  .info__btns{display:none}
  .info-card__btn{display:flex}
  .bus{left:0;width:auto;max-width:800px}
  .bus__img{left:auto;right:96px}
  .bus__bubble{left:auto;right:-6px}
  .features__grid,.facility__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fcard{padding:16px;height:auto;min-height:150px}
  .fcard__img{width:120px;height:94px}
  .fcard__body{padding-left:20px}
  .fcard__ttl{font-size:18px}
  .fcard__txt{font-size:13px;margin-top:6px}
  .news__side{display:flex;align-items:flex-end;justify-content:space-between}
  .news__side .pill{margin-top:0}
  .news__tabs{padding-left:0}
  .news__tab{flex:1;width:auto}
  .event .l-inner{grid-template-columns:minmax(0,1fr);row-gap:28px}
  .ev-side{padding-left:0}
  .event__side{display:flex;align-items:flex-end;justify-content:space-between}
  .event__side .pill{margin-top:0}
  .ev-main{height:auto;padding-bottom:36px}
  .ev-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .ev-links{margin-top:0}
  .links__row{flex-wrap:wrap}
  .footer__main{width:calc(100% - 48px);grid-template-columns:1fr;row-gap:30px}
  .footer__nav ul{display:flex;flex-wrap:wrap;column-gap:28px}
  .p-dept{grid-template-columns:minmax(0,1fr);padding:60px 24px 160px}
  .p-dept__main{min-width:0;padding-top:0}
  .side{display:none}
  .page-head{padding-left:24px}
  .breadcrumb{padding-left:24px}
  .p-patient{padding-top:100px;padding-bottom:160px}
  .p-patient .lgrid{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:20px}
  .dept-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .p-dept .lgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .p-dept .band-sec{margin-top:110px}
}
@media (max-width:767px){
  .u-pc{display:none}.u-sp{display:initial}
  .header__logo{width:160px;top:17px}
  .header__logo img{width:160px}
  .sp-btns a,.sp-btns button{width:44px;height:44px}
  .sp-btns{top:14px}
  :root{--header-h:72px}
  .mv__visual{height:118vw}
  .mv__img img{object-position:28% 50%}
  .mv__lead{font-size:13px;line-height:24px;top:18px}
  .mv__catch{white-space:normal;width:calc(100% - 40px);bottom:70px;font-size:clamp(22px,7.4vw,40px);letter-spacing:-.05em;white-space:nowrap}
  .mv__sub{font-size:11px;bottom:44px}
  .quick{padding:24px 16px 28px}
  .quick__ttl{font-size:20px}
  .quick__ttl img{width:28px;height:27px}
  .quick__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .qbtn{height:112px;padding-top:20px}
  .qbtn__ico{transform:scale(.82)}
  .qbtn__label{font-size:13px;bottom:12px}
  .quick__nav a{font-size:12px}
  .sec-ttl__ja{font-size:24px;line-height:34px}
  .sec-ttl__en{font-size:12px;padding-bottom:5px}
  .news-row{flex-wrap:wrap;padding:14px 4px;gap:6px 10px}
  .news-row__date{width:auto;padding-left:0;font-size:13px}
  .news-row .tag{width:auto;padding:0 12px;height:26px;font-size:12px}
  .news-row__ttl{flex:0 0 100%;margin-left:0;white-space:normal;font-size:14px;line-height:1.7}
  .pickup .news-row{padding-bottom:14px}
  .info__cols{grid-template-columns:minmax(0,1fr)}
  .info-card{height:auto;padding-bottom:16px}
  .hours{font-size:13px}.hours .rcv,.hours .tm{font-size:14px}.hours thead th{font-size:13px}.hours th,.hours td{height:48px}
  .hours .grp{width:44px}.hours .ampm{width:48px}.hours .rcv{width:auto}
  .closed__note{white-space:normal}
  .closed__list{font-size:15px}
  .substitute{height:auto}
  .bus{padding-bottom:0;margin-top:70px}
  .bus__link{height:auto;min-height:84px;padding:18px 120px 18px 20px}
  .bus__txt{font-size:16px;line-height:1.5}
  .bus__link .arrow-box{display:none}
  .bus__img{left:auto;right:-8px;top:auto;bottom:-16px;width:150px}
  .bus__bubble{left:auto;right:6px;top:-60px;width:84px;height:84px;font-size:11px;line-height:15px}
  .features{margin-top:70px;padding:50px 0}
  .bg-expand::before,.js .bg-expand.is-in::before{border-radius:36px}
  .js .bg-expand::before{clip-path:inset(0 6% round 36px)}
  .js .bg-expand.is-in::before{clip-path:inset(0 0 round 36px)}
  .features__grid,.facility__grid{grid-template-columns:minmax(0,1fr);row-gap:14px}
  .fcard{border-radius:16px;padding:14px 12px 14px 14px;min-height:0}
  .fcard__img{width:96px;height:76px}
  .fcard__body{padding-left:14px}
  .fcard__ttl{font-size:16px;line-height:1.5}
  .fcard__txt{font-size:12px;line-height:1.6;margin-top:4px}
  .news__side,.event__side{gap:12px}
  .news__side .pill,.event__side .pill{width:auto;flex:none;padding:0 16px 0 18px;height:38px;font-size:13px}
  .sec-ttl{white-space:nowrap}
  .sec-ttl__en{display:none}
  .news{padding-top:90px}
  .news__tab{height:44px;font-size:13px}
  .news__tabs{gap:4px}
  .event{margin-top:80px;padding:50px 0}
  .ev-main{padding:60px 18px 28px}
  .ev-main__wrap{flex-direction:column;align-items:center}
  .ev-main__flyer{width:70%}
  .ev-main__ttl{font-size:19px;line-height:28px}
  .btn-blue{width:100%;max-width:295px}
  .ev-side{grid-template-columns:minmax(0,1fr)}
  .ev-video{height:auto;padding-bottom:16px}
  .ev-video__thumb{width:calc(100% - 40px)}
  .ev-video__cap{padding:8px 20px 0}
  .facility{padding-top:80px}
  .fac__img{height:52vw}
  .fac__name{font-size:17px;line-height:1.5}
  .links{padding:80px 0 60px}
  .links__wrap{gap:10px}
  .links__row{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .links__row a{width:100%;height:auto;aspect-ratio:203/68}
  .footer__top{padding:48px 20px 34px}
  .footer__logo{width:min(300px,80%)}
  .footer__addr{font-size:13px}
  .footer__tel{font-size:30px;line-height:44px}
  .footer__tel svg{width:26px;height:26px}
  .footer__main{padding-top:36px}
  .footer__sns{grid-template-columns:1fr;row-gap:6px}
  .footer__btns{grid-template-columns:1fr}
  .footer__copy{padding-top:50px}
  .page-head{padding-top:50px}
  .page-head__ttl{font-size:30px;line-height:44px}
  .page-head__desc{font-size:15px}
  .band{height:70px;font-size:22px;padding-left:22px;border-radius:14px}
  .p-patient{padding-top:60px}
  .p-patient .lgrid,.p-dept .lgrid{grid-template-columns:1fr;margin-top:20px}
  .p-patient section+section{margin-top:80px}
  .lgrid a{height:auto;min-height:66px;padding:12px 6px 12px 8px;font-size:16px}
  .lgrid br{display:none}
  .h2{font-size:22px;line-height:30px;padding-left:22px}
  .h2::before{width:10px;height:30px}
  .dept-lead{font-size:15px;line-height:30px}
  .btn-row{flex-direction:column;gap:12px}
  .btn-card{width:100%}
  .doc{padding:30px 20px}
  .doc__head{flex-direction:column;align-items:flex-start;gap:8px}
  .doc__name{font-size:20px;line-height:1.5}
  .doc__dl>div{grid-template-columns:80px 1fr;font-size:14px;line-height:24px}
  .tbl-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .schedule{min-width:760px}
  .dept-list{grid-template-columns:1fr 1fr;column-gap:16px}
  .dept-list a{height:60px;font-size:15px}
  .p-dept .band-sec{margin-top:80px}
  .dept-sec+.dept-sec{margin-top:80px}
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0s!important;animation-delay:0s!important;scroll-behavior:auto!important}
  .js [data-reveal],.js [data-stagger]>*,.js .bg-expand>.l-inner,.js .mv__catch .ch,.js .mv__lead span,.js .mv__sub,.js .quick,.js .bus__img,.js .page-head__anim{opacity:1!important;transform:none!important;filter:none!important}
  .js .bg-expand::before{clip-path:none!important;opacity:1!important}
  .mv__img img{animation:none!important}
}
