#sliderWrap {
  --slide-height: 500px;
  height: var(--slide-height);
}
#homeSlides:not(.slick-initialized) > li { display: none; }
#homeSlides:not(.slick-initialized) > li:first-child { display: block; margin: 0 auto; }
#homeSlides > li, #homeSlides .slick-slide, #homeSlides picture, #homeSlides img {
  display: block;
  width: min(1200px, 100vw);
  height: var(--slide-height);
}
#homeSlides img { object-fit: contain; }
@media (max-width: 767px) {
  #sliderWrap { --slide-height: min(59.1vw, 300px); }
  #menu .home-trial { width: min(100%, 520px); height: auto; margin: 24px auto; }
  #menu .home-trial .imgBox { position: relative; width: 100%; }
  #menu .home-trial picture, #menu .home-trial picture img { display: block; width: 100%; height: auto; }
  #menu .home-trial .imgBox::after { top: -3.7%; left: 49%; width: 9.5%; height: 10.4%; }
  #menu .home-trial .btn { top: 68.9%; left: 42%; width: 53.2%; height: auto; }
  #menu .home-trial .btn img { display: block; width: 100%; height: auto; }
}
@media (max-width: 359px) {
  #bannerWrap .bannerList .imgBox { width: 100%; height: auto; aspect-ratio: 340 / 181; }
  #bannerWrap .bannerList .imgBox a { top: 63%; left: 17.6%; width: 64.8%; }
  #bannerWrap .bannerList .imgBox a img { width: 100%; height: auto; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  #menu #clinic-hallux { max-width: min(100%, calc(100vw - 24px)); margin-inline-start: 0; }
}

@media (max-width: 767px) {
  #facilitiesWrap .h2facilities h2 img,
  #menuWrap .h2menu h2 img {
    display: block;
    max-width: 85%;
    height: auto;
    margin-inline: auto;
  }
  #facilitiesWrap .h2facilities h2 img { width: 189px; }
  #menuWrap .h2menu h2 img { width: 277px; }
}

@media (max-width: 767px) {
  #facilitiesWrap .groupList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 12px;
    justify-items: center;
  }
  #facilitiesWrap .groupList::before,
  #facilitiesWrap .groupList::after { display: none; }
  #facilitiesWrap .groupList > li {
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0;
    padding: 16px;
    background: #fff;
    border: 1px dashed #aa8660;
    border-radius: 5px;
    text-align: center;
  }
  #facilitiesWrap .groupList figure,
  #facilitiesWrap .groupList figcaption,
  #facilitiesWrap .groupList dl,
  #facilitiesWrap .groupList dd {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  #facilitiesWrap .groupList figure { height: 100%; }
  #facilitiesWrap .groupList .imgBox {
    width: 100%;
    max-width: 276px;
    height: auto;
    margin: 0 auto 10px;
  }
  #facilitiesWrap .groupList .imgBox img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }
  #facilitiesWrap .groupList dt {
    height: auto;
    padding: 0;
    margin: 0 0 4px;
    font-size: 20px;
    line-height: 1.35;
  }
  #facilitiesWrap .groupList dt br { display: none; }
  #facilitiesWrap .groupList .address {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  #facilitiesWrap .groupList .phone {
    margin: 5px 0 10px;
    font-size: 18px;
    line-height: 1.4;
  }
  #facilitiesWrap .groupList .phone a { font-size: 20px; }
  #facilitiesWrap .groupList .link { margin: auto 0 0; }
  #facilitiesWrap .groupList .link a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 230px;
    height: auto;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    background: #ff6025;
    border: 0;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
  }
}

@media (max-width: 767px) {
  #menuWrap .menuList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 12px;
    justify-items: center;
  }
  #menuWrap .menuList::before,
  #menuWrap .menuList::after { display: none; }
  #menuWrap .menuList > li {
    width: 100%;
    max-width: 420px;
    height: auto;
    padding: 16px;
    margin: 0;
    box-sizing: border-box;
    background: #fff;
    border: 1px dashed #aa8660;
    border-radius: 5px;
  }
  #menuWrap .menuList figure {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    text-align: center;
  }
  #menuWrap .menuList .imgBox {
    width: 158px;
    height: auto;
    max-width: 100%;
    padding: 0;
    margin: 0 auto 10px;
    background: none;
  }
  #menuWrap .menuList .imgBox img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border: 0;
    border-radius: 5px;
  }
  #menuWrap .menuList dt {
    width: 100%;
    max-width: 276px;
    height: auto;
    margin: 0 auto;
    padding: 0;
    border: 1px solid #e0cf9c;
    border-radius: 4px;
    background: #fff4c9;
  }
  #menuWrap .menuList dt a {
    display: block;
    align-content: center;
    min-height: 44px;
    padding: 5px 8px;
    font-size: 18px;
    line-height: 1.35;
    text-align: center;
  }
  #menuWrap .menuList dd { height: auto; margin: 0; padding: 6px 0 0; }
  #menuWrap .menuList dd p { margin: 0; font-size: 15px; line-height: 1.5; text-align: center; }
}
