:root {
  --bg: #f7f0de;
  --paper: rgba(255, 255, 255, 0.78);
  --panel: #f9f9f6;
  --line: rgba(120, 196, 223, 0.26);
  --text: #294b61;
  --muted: #677d8b;
  --sky: #9fe8ff;
  --sky-deep: #6bcaf2;
  --yellow: #fbe7a1;
  --yellow-deep: #f5d86e;
  --pink: #f6d2d8;
  --shadow: rgba(100, 170, 200, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Zen Maru Gothic", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.page-shell {
  padding: 0;
}

.gallery {
  display: flex;
  flex-direction: column;
}

.image-card {
  position: relative;
  line-height: 0;
}

.image-card:has(.access-hours-grid) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-card:has(.access-hours-grid) img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-header {
  position: fixed;
  top: 20px !important;
  right: 20px;
  z-index: 1000;

  width: max-content;
  max-width: calc(100vw - 40px);
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-header-row {
  display: contents;
}

.mobile-header-logo {
  display: none;
}

.top-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  gap: 3px;
  padding: 3px 6px;
  border-radius: 20px;
  background: rgba(219, 244, 250, 0.97);
  box-shadow: 0 10px 20px rgba(83, 72, 58, 0.08);
  
}

.top-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  color: #4f6a7d;
  font-size: clamp(0.95rem,1.6vw,1.2rem);
  font-weight: 700;
  line-height: 1.2;
  padding: clamp(8px,1vw,12px) clamp(12px,1.5vw,18px);
  border-radius: 20px;
  background: rgba(130,220,245,0.35);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.top-nav a:hover {
  background: rgba(130, 220, 245, 0.6);
  transform: translateY(-1px);
}

.top-contact-bar {
    display: flex ;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100% ;
    max-width: 100% ;
    gap: 8px ;
    box-sizing:border-box;
}
.top-contact-link {
  display:flex ;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  min-width: 0px;
  height: auto;
box-sizing: border-box;

  text-decoration: none;
  gap: 2px;
  padding: 10px 22px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(107, 202, 242, 0.2);
  box-shadow: 0 8px 18px rgba(83, 72, 58, 0.08);
  line-height: 1.3;
}

.top-contact-phone {
  background: linear-gradient(180deg, rgba(109, 200, 239, 0.96), rgba(130, 214, 245, 0.92));
}

.top-contact-reserve {
  background: linear-gradient(180deg, rgba(255, 244, 182, 0.96), rgba(245, 214, 110, 0.92));
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2d7190;
}

.contact-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: #294b61;
}

.button_wrapper {
  position: absolute;
  left: 50%;
  bottom: clamp(15px, 3vw, 40px);
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.button_wrapper .button,
.button_wrapper .button_green,
.button_wrapper .button_bule {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button_wrapper .button {
  padding: clamp(30px, 4.5vw, 50px) clamp(60px, 9vw, 100px);
  background: #ff8fa0;
  color: #fff;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  box-shadow: 0 8px 18px rgba(255, 122, 143, 0.2);
  transition: transform 0.2s;
}
.button_wrapper .button:hover {
  transform: translateY(-3px);
  background: #ff6b7c;
  color:#fff;
}
.button_green {
  position: absolute;
  top: 9%;
  right: 11%;
  padding: clamp(20px, 3vw, 30px) clamp(25px, 4vw, 40px);
  background: #7fe1b0;
  color: #fff;
  text-align: center;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  text-decoration:none;
  line-height: 1.4;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(127, 225, 176, 0.2);
}
.button_green:hover {
  transform: translateY(-3px);
  background: #66d099;
  color:#fff;
}

.button_wrapper .button,
.button_green{
  transition:0.2s;
}
.img13-card {
  position: relative !important;
}

.img13-card a {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: 2% !important;
  z-index: 10 !important;
  
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: clamp(14px, 2vw, 22px) clamp(30px, 5vw, 55px) !important;
  background: #5bc0e9 !important;
  color: #fff !important;

  font-size: clamp(1rem, 2vw, 1.3rem) !important;

  text-align:center !important;
  text-decoration: none !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 18px rgba(91, 192, 233, 0.2) !important;
  white-space: nowrap !important;
  transition: transform 0.2s !important;
}
.img13-card a:hover {
  transform: translateX(-50%) translateY(-2px) !important;

}
.button.button_bule {
  background: #5bc0e9;
  color: #fff;
}

#access {
  background: transparent;
  padding: 0;
}

#access > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

#access iframe{
  display: block;
  width: 500px !important;
  height: 250px !important;
  display: block;
  margin: 0 auto;
  border: none;
}

.access-hours-grid .access-panel>iframe{
  width: 100% !important;
  max-width: 500%;
  min-width: 0 !important;
  height: 170px !important;
  display: block !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}
.access-hours-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(116, 190, 216, 0.42);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(79, 145, 170, 0.16);
}

.access-hours-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  width: calc(100% - 72px);
  max-width: 1120px;
  margin: 36px auto;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid rgba(116, 190, 216, 0.38);
  border-radius: 24px;
  box-sizing: border-box;
  box-shadow: 0 14px 34px rgba(79, 145, 170, 0.14);
}

.info-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(116, 190, 216, 0.24);
  border-radius: 18px;
  box-sizing: border-box;
}

.access-panel {
  justify-content: flex-start;
  padding: 18px;
}

.hours-panel {
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  background: rgba(238, 249, 252, 0.88);
  box-shadow: none;
}

.info-panel h3,
.hours-panel h3 {
  margin: 0 0 12px;
  color: #2d7190;
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
}

.access-hours-grid .access-panel > iframe {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 280px !important;
  margin: 0 0 14px !important;
  border: 0;
  border-radius: 14px;
  box-sizing: border-box;
}

.info-list {
  margin: 0;
  display: grid;
  gap: 6px;
}

.info-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 7px 4px;
  border-bottom: 1px dashed rgba(120, 196, 223, 0.44);
  text-align: left;
}

.info-list div:last-child {
  border-bottom: 0;
}

.info-list dt {
  margin: 0;
  color: #677d8b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.info-list dd {
  margin: 0;
  color: #294b61;
  font-size: clamp(0.92rem, 1.2vw, 1.12rem);
  line-height: 1.55;
  font-weight: 500;
  word-break: break-word;
}

.info-list dd a {
  color: #294b61;
  text-decoration: none;
}

.hours-content {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-sizing: border-box;
  box-shadow: 0 8px 20px rgba(80, 150, 180, 0.08);
}

.hours-time-wrapper {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.hours-time-label {
  color: #294b61;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 700;
  white-space: nowrap;
}

.hours-panel .hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  justify-items: center;
}

.hours-list li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.hours-list .day {
  color: #294b61;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hours-list .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
}

.hours-list .is-open {
  background: linear-gradient(180deg, #a6edff 0%, #69d9f4 100%);
  color: #fff;
  box-shadow: 0 5px 14px rgba(105, 217, 244, 0.24);
}

.hours-list .is-closed {
  background: #fff;
  color: #69cbe5;
  border: 1px solid rgba(105, 203, 229, 0.45);
}

.button-stack {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 0;
}

.soft-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.soft-btn:hover {
  transform: translateY(-2px);
}

.soft-btn.primary {
  background: linear-gradient(180deg, #a8ebff 0%, #7adcf9 100%);
  color: #1e536d;
  box-shadow: 0 12px 20px rgba(122, 220, 249, 0.2);
}

.soft-btn.secondary {
  background: linear-gradient(180deg, #fff7c8 0%, #fce390 100%);
  color: #2a4f6d;
  box-shadow: 0 12px 20px rgba(252, 227, 144, 0.18);
}

@media (max-width: 1200px) {
  .access-hours-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 35px 18px 28px;
  }

  .info-panel h3,
  .hours-panel h3 {
    font-size: clamp(2rem, 2.5vw, 2.4rem);
    margin-bottom: 14px;
  }

  .access-panel .map-link {
    min-height: 160px;
    margin-bottom: 14px;
  }

  .hours-time-label {
    font-size: 1.2rem;
  }

  .hours-list .day {
    font-size: 1.1rem;
  }

  .hours-list .status {
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }

  .info-list dd {
    font-size: 1.1rem;
  }

  .hours-panel .hours-list {
    gap: 6px;
    margin-bottom: 14px;
  }

  .soft-btn {
    padding: 14px 16px;
    font-size: 1rem;
  }
}

@media (max-width: 1024px) {
  .access-hours-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 30px 16px 24px;
  }

  .info-panel h3,
  .hours-panel h3 {
    font-size: clamp(1.8rem, 2.2vw, 2.2rem);
    margin-bottom: 12px;
  }

  .access-panel .map-link {
    min-height: 140px;
    margin-bottom: 12px;
  }

  .hours-time-label {
    font-size: 1.1rem;
  }

  .hours-list .day {
    font-size: 1rem;
  }

  .hours-list .status {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
  }

  .info-list dd {
    font-size: 1.05rem;
  }

  .hours-time-wrapper {
    gap: 16px;
    margin-bottom: 14px;
  }

  .hours-panel .hours-list {
    gap: 6px;
    margin-bottom: 12px;
  }

  .soft-btn {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
}

@media (max-width: 900px) {
  .access-hours-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 25px 14px 20px;
  }

  .info-panel h3,
  .hours-panel h3 {
    font-size: clamp(1.6rem, 2vw, 2rem);
    margin-bottom: 10px;
  }

  .access-panel .map-link {
    min-height: 120px;
    margin-bottom: 10px;
  }

  .hours-time-label {
    font-size: 1rem;
  }

  .hours-list .day {
    font-size: 0.95rem;
  }

  .hours-list .status {
    width: 22px;
    height: 22px;
    font-size: 0.85rem;
  }

  .info-list dd {
    font-size: 1rem;
  }

  .hours-time-wrapper {
    gap: 12px;
    margin-bottom: 10px;
    flex-direction: column;
    align-items: center;
  }

  .hours-panel .hours-list {
    gap: 4px;
    margin-bottom: 10px;
  }

  .soft-btn {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .access-hours-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px 12px 18px;
  }

  .info-panel h3,
  .hours-panel h3 {
    font-size: clamp(1.4rem, 1.8vw, 1.8rem);
    margin-bottom: 10px;
  }

  .access-panel .map-link {
    min-height: 100px;
    margin-bottom: 10px;
  }

  .hours-time-label {
    font-size: 0.95rem;
  }

  .hours-list .day {
    font-size: 0.9rem;
  }

  .hours-list .status {
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
  }

  .info-list dd {
    font-size: 0.95rem;
  }

  .hours-time-wrapper {
    gap: 10px;
    margin-bottom: 8px;
    flex-direction: column;
    align-items: center;
  }

  .hours-panel .hours-list {
    gap: 3px;
    margin-bottom: 10px;
  }

  .soft-btn {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .access-hours-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px 10px 14px;
  }

  .info-panel h3,
  .hours-panel h3 {
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    margin-bottom: 8px;
  }

  .access-panel .map-link {
    min-height: 80px;
    margin-bottom: 8px;
  }

  .hours-time-label {
    font-size: 0.85rem;
  }

  .hours-list .day {
    font-size: 0.8rem;
  }

  .hours-list .status {
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
  }

  .info-list dd {
    font-size: 0.85rem;
  }

  .hours-time-wrapper {
    gap: 8px;
    margin-bottom: 6px;
  }

  .hours-panel .hours-list {
    gap: 2px;
    margin-bottom: 8px;
  }

  .soft-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}

/* WEB予約・総合サイト専用 */
.access-action-btn {
  position: relative;
  width: calc(100% + 28px);
  min-height: 104px;
  margin-left: -14px;
  padding: 20px 82px 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.58);
  font-size: 1.2rem;
}

.access-action-btn .button-label {
  line-height: 1.4;
  text-align: center;
}

.access-action-btn .button-icon {
  position: absolute;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: currentColor;
}

.access-action-btn .button-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid #fff;
}

@media (max-width: 768px) {
  .access-action-btn {
    width: calc(100% + 16px);
    min-height: 82px;
    margin-left: -8px;
    padding: 16px 60px 16px 18px;
    font-size: 0.95rem;
  }

  .access-action-btn .button-icon {
    right: 16px;
    width: 36px;
    height: 36px;
  }

  .access-action-btn .button-icon::after {
    border-top-width: 7px;
    border-bottom-width: 7px;
    border-left-width: 10px;
  }
}

/* 色と背景のみ変更 */
.access-action-btn.primary {
  border: 2px solid #6bcaf2;
  background: rgba(255, 255, 255, 0.58);
}

.access-action-btn.secondary {
  border: 2px solid #f5d86e;
  background: rgba(255, 255, 255, 0.58);
}

/* IMG.17〜IMG.21 スライド専用 */
.pediatric-slide {
  position: relative;
  width: 100%;
  background: var(--bg);
  line-height: 0;
  overflow: hidden;
}

.pediatric-slide__image {
  display: block;
  width: 100%;
  height: auto;
}

.pediatric-slide__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #4f6a7d;
  font-family: Arial, sans-serif;
  font-size: 42px;
  line-height: 42px;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 6px 14px rgba(83, 72, 58, 0.12);
}

.pediatric-slide__arrow:hover {
  background: #fff;
}

.pediatric-slide__arrow--prev {
  left: 20px;
}

.pediatric-slide__arrow--next {
  right: 20px;
}

@media (max-width: 640px) {
  .pediatric-slide__arrow {
    width: 38px;
    height: 38px;
    font-size: 30px;
    line-height: 30px;
  }

  .pediatric-slide__arrow--prev {
    left: 10px;
  }

  .pediatric-slide__arrow--next {
    right: 10px;
  }
}

/* IMG.10直下の電話・Web予約ボタン */
.img10-contact-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 18px 16px 22px;
  background: var(--bg);
  line-height: 1.4;
}

.img10-contact-button {
  flex: 1 1 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(83, 72, 58, 0.1);
}

.img10-phone-button {
  color: #1e536d;
  background: linear-gradient(180deg, #a8ebff 0%, #7adcf9 100%);
}

.img10-reserve-button {
  color: #5f531f;
  background: linear-gradient(180deg, #fff7c8 0%, #fce390 100%);
}

.img10-contact-button:hover {
  transform: translateY(-3px);
}

@media (max-width: 480px) {
  .img10-contact-buttons {
    gap: 8px;
    padding: 14px 10px 18px;
  }

  .img10-contact-button {
    min-height: 58px;
    padding: 10px 6px;
    font-size: 0.8rem;
  }
}

/* IMG_2.jpg上の予約ボタン */
.hero-card {
  position: relative;
}

.hero-card .home-reserve-button {
  position: absolute;
  left: 10%;
  bottom: 8%;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width:22vw;
  max-width:260px;
  min-width: 140px;
  height: 6vw;
  max-height: 60px;
  min-height: 40px;
  padding: clamp(10px,1.5vw,18px) clamp(25px, 4vw, 55px);
  border-radius: 999px;
  background: #ff8fa0;
  color: #fff;
  box-shadow: 0 6px 16px rgba(83, 72, 58, 0.2);
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s;
}

.hero-card .home-reserve-button:hover {
  transform:tremslateY(-2px);
}

.hero-card .home-reserve-button:hover{
  background: #ff6b7c;
  color:#fff;
}
@media (max-width: 600px) {
  .hero-card .home-reserve-button {
    width: auto !important;
    min-width: 72px !important;
    max-width: 45% !important;
    height: auto !important;
    min-height: 26px !important;
    padding: 4px 8px !important;
    font-size: 0.76rem !important;
  }
}

.img13-card a.button_bule{
  max-width: 90% !important;
  padding: 12px 18px !important;
  position: absolute;
  left: 50%;
  bottom: -10px !important;
  transform: translateX(-40%);
 white-space: normal !important;
  background: #a8bac5!important;
  color:#ffffff !important;
  border-radius: 30px !important;
  padding:clamp(22px,3.5vw,35px) clamp(30px,5vw,50px) !important;
  border:none !important;
  transition: 0.2s;
  font-size: clamp(0.85rem, 2.2vw, 1.15rem) !important;
}

.img13-card .button_bule:hover{
  background: #8fa6b3!important;
  color:#fff !important;
  transform: translateX(-40%) translateY(-2px);
}

/*ボタン全体を少し大きくする*/
.soft-btn{
 padding: 12px 10px;
 font-size: clamp(0.85rem, 2.2vw, 1.15rem);
min-height: 64px;
  box-sizing:border-box;
}

@media screen and (max-width:768px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  *,::before,::after{
    box-sizing: border-box !important;
  }
  img, table, iframe {
    max-width: 100% !important;
    height: auto !important;
  }
header,nav,.header,.nav{
  width:100% !important;
  padding: 5px !important;
}

  header nav a, nav a, .nav a, a {
    font-size: 12px !important;
    padding: 4px 8px !important;
  }

  a[class*="btn"], button, .btn, .button,
  [class*="reservasion"],[class*="tel"],[class*="contact"],[class*="web"]{
    font-size: 13px !important;
    padding: 8px 10px !important;
    max-width: 90% !important;
    margin: 5px auto !important;
    height:auto !important;
    box-sizing: border-box !important;
  }
}

@media (max-width:768px) {
  .top-contact-link{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    white-space: nowrap;

    width: 105px;
    min-width: 105px;
    height: 75px;

    padding: 5px;
    box-sizing: border-box;
    
    text-decoration: none;
    gap: 2px;
    border-radius: 999px;

    color: var(--text);
    line-height: 1.3;
  }
}

@media (max-width: 600px) {
  #home,
  #strength,
  #pediatric,
  #fee,
  #news,
  #access {
    scroll-margin-top: 110px;
  }

  .img13-card .button_bule {
    width: fit-content !important;
    min-width: 0 !important;
    max-width: calc(100% - 24px) !important;
    height: auto !important;
    padding: 6px 14px !important;
    font-size: clamp(0.85rem, 2.2vw, 1rem) !important;
    line-height: 1.2;
  }
}

@media (max-width: 767.98px) {
  .top-header {
    position: static;
    top: auto !important;
    right: auto;
    left: auto;
    width: 100% !important;
    max-width: 100% !important;
    padding: 66px 8px 8px !important;
    align-items: stretch;
    gap: 0;
    transform: none;
    background: #fbf6e3;
  }

  .page-shell {
    padding-top: 0;
  }

  .top-nav {
    position: fixed;
    top: 8px;
    right: 8px;
    left: 8px;
    z-index: 1100;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-flow: row;
    width: auto !important;
    height: 54px;
    max-width: 100%;
    margin: 0;
    padding: 4px 6px !important;
    border-radius: 20px;
    background: #dbf4fa;
  }

  .top-header .top-nav a {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 3px 1px !important;
    font-size: clamp(0.58rem, 2.8vw, 0.78rem) !important;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mobile-header-row {
    display: flex;
    position: static;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    align-items: stretch;
    gap: 4px;
    padding: 0;
    background-color: transparent;
  }

  .mobile-header-logo {
    display: block;
    flex: 0 0 auto;
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    height: 48px !important;
    object-fit: contain;
    object-position: left center;
    margin-top: 0;
    transform: none;
    transform-origin: left center;
  }

  .top-header .top-contact-bar {
    display: flex;
    position: fixed;
    top: 90px;
    right: 8px;
    z-index: 1101;
    transform: translateY(-50%);
    flex: 0 0 auto;
    width: 152px !important;
    min-width: 0;
    max-width: 100% !important;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    margin: 0 !important;
    padding: 0 !important;
  }

  .top-header .top-contact-link {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none !important;
    min-height: 36px;
    height: auto !important;
    margin: 0 !important;
    padding: 1px 2px !important;
    border-radius: 14px;
  }

  .top-header .contact-label {
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(0.52rem, 2.2vw, 0.58rem) !important;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .top-header .contact-number {
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(0.56rem, 2.4vw, 0.64rem) !important;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }

  .hero-card {
    background: var(--bg);
    overflow: hidden;
    margin-top: 4px;
  }

  /* モバイルヘッダーにロゴを分離するため、画像内のロゴ帯を切り取る */
  .hero-card > img {
    margin-top: -8.9vw;
  }

  .hero-card .home-reserve-button {
    bottom: 1%;
  }

  #home,
  #strength,
  #pediatric,
  #fee,
  #news,
  #access {
    scroll-margin-top: 112px;
  }
}

/* アクセス・診療時間セクション */
#access {
  background: var(--bg);
}

#access > img {
  display: none;
}

.access-hours-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: calc(100% - 72px);
  max-width: 1120px;
  margin: 36px auto;
  padding: 18px;
  gap: 18px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  line-height: 1.5;
}

.access-hours-grid .access-panel,
.access-hours-grid .hours-panel {
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.access-hours-grid .access-panel > iframe {
  height: 280px !important;
  max-width: 100% !important;
  border-radius: 14px;
}

.access-hours-grid .hours-content {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.access-hours-grid .access-action-btn {
  width: 100% !important;
  min-height: 64px;
  margin: 0 !important;
  padding: 14px 18px !important;
  border-radius: 999px;
  max-width: none !important;
  font-size: clamp(0.95rem, 1.5vw, 1.12rem) !important;
  line-height: 1.4;
}

.access-hours-grid .access-action-btn .button-icon {
  display: none;
}

.access-hours-grid .access-action-btn.primary {
  background: linear-gradient(180deg, #a8ebff 0%, #7adcf9 100%);
}

.access-hours-grid .access-action-btn.secondary {
  background: linear-gradient(180deg, #fff7c8 0%, #fce390 100%);
}


@media (min-width: 768px) and (max-width: 1024px) {
  .access-hours-grid {
    width: calc(100% - 40px);
    margin: 24px auto;
    padding: 14px;
    gap: 12px;
  }

  .access-hours-grid .access-panel,
  .access-hours-grid .hours-panel {
    padding: 14px;
  }

  .access-hours-grid .access-panel > iframe {
    height: 230px !important;
  }

  .access-hours-grid .hours-time-wrapper {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .access-hours-grid .hours-time-label {
    font-size: 1.05rem;
  }

  .access-hours-grid .info-list div {
    grid-template-columns: 72px 1fr;
  }
}

@media (max-width: 767px) {
  .image-card:has(.access-hours-grid) {
    display: block;
  }

  .image-card:has(.access-hours-grid) img {
    height: 100%;
  }

  .access-hours-grid {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    margin: 16px auto;
    padding: 12px;
    gap: 12px;
    border-radius: 18px;
  }

  .access-hours-grid .access-panel,
  .access-hours-grid .hours-panel {
    padding: 12px;
  }

  .access-hours-grid .info-panel h3,
  .access-hours-grid .hours-panel h3 {
    margin-bottom: 10px;
    font-size: 1.45rem;
  }

  .access-hours-grid .access-panel > iframe {
    height: 220px !important;
  }

  .access-hours-grid .info-list div {
    grid-template-columns: 76px 1fr;
  }

  .access-hours-grid .info-list dd {
    font-size: 0.9rem;
  }

  .access-hours-grid .hours-time-wrapper {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .access-hours-grid .hours-time-label {
    font-size: 1.05rem;
  }

  .access-hours-grid .hours-list .day {
    font-size: 0.88rem;
  }

  .access-hours-grid .hours-list .status {
    width: 24px;
    height: 24px;
  }

  .access-hours-grid .access-action-btn {
    min-height: 56px;
    padding: 12px 14px !important;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 768px) and (hover: hover) and (pointer: fine) {
  .button_wrapper .button {
    padding: clamp(30px, 4.5vw, 50px) clamp(60px, 9vw, 100px) !important;
    font-size: clamp(1.5rem, 3.2vw, 2.2rem) !important;
  }

  .button_green {
    padding: clamp(20px, 3vw, 30px) clamp(25px, 4vw, 40px) !important;
    font-size: clamp(1.4rem, 2.8vw, 1.9rem) !important;
  }
}

@media (max-width: 767.98px) and (hover: hover) and (pointer: fine) {
  .top-header .top-contact-bar {
    width: 240px !important;
    max-width: calc(100vw - 16px) !important;
  }

  .top-header .top-contact-link {
    min-height: 52px !important;
    padding: 6px 4px !important;
  }

  .top-header .contact-label {
    font-size: 0.68rem !important;
  }

  .top-header .contact-number {
    font-size: 0.75rem !important;
  }
}

@media (min-width: 768px) and (max-width: 1200px) and (hover: hover) and (pointer: fine) {
  .top-header .top-contact-bar {
    width: 380px !important;
    max-width: calc(100vw - 40px) !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .top-header .top-contact-link {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
    max-width: none !important;
    height: auto !important;
    min-height: 0;
    margin: 0 !important;
    padding: 6px 8px !important;
    white-space: nowrap;
  }

  .top-header .contact-label,
  .top-header .contact-number {
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .img13-card a.button_bule {
    bottom: -6px !important;
    padding: 6px 16px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    transform: translateX(-50%) !important;
  }

  .img13-card .button_bule:hover {
    transform: translateX(-50%) translateY(-2px) !important;
  }
}