@charset "UTF-8";
/* 共通ヘッダー：専門外来の追従バナー */
body:has(.floating-specialty) .header-flex {
  padding-right: 0;
}

body:has(.floating-specialty) .header-right {
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  height: auto;
  min-width: 0;
}

.floating-specialty {
  display: grid;
  grid-template-columns: repeat(2, 210px);
  gap: 10px;
  flex: 0 0 auto;
}

.floating-specialty_top {
  display: none;
}

.floating-specialty__item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
  height: 80px;
  padding: 6px 7px;
  border: 1px solid currentColor;
  border-radius: 0 0 5px 5px;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.floating-specialty__item:hover {
  opacity: 0.85;
}

.floating-specialty__item--aligner {
  color: #00987d;
  background: #f2fffc;
}

.floating-specialty__item--implant {
  color: #0050a2;
  background: #f2f9ff;
}

.floating-specialty__icon {
  display: block;
  width: 20px;
  height: 20px;
}

.floating-specialty__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.floating-specialty__copy,
.floating-specialty__lead,
.floating-specialty__title {
  display: block;
  min-width: 0;
}

.floating-specialty__copy {
  line-height: 1.3;
}

.floating-specialty__lead {
  font-size: 12px;
  font-weight: 400;
}

.floating-specialty__title {
  font-size: 20px;
  font-weight: 400;
}

@media screen and (min-width: 841px) {
  body:has(.floating-specialty) .header-tel-box {
    padding-inline: 8px;
  }
  body:has(.floating-specialty) .header-tel-box-text {
    white-space: normal;
  }
  body:has(.floating-specialty) .header-tel-box-text .sp-br {
    display: block;
  }
  body:has(.floating-specialty) .header-tel--pink .header-tel-box {
    width: 180px;
  }
  body:has(.floating-specialty) .header-tel--blue .header-tel-box {
    width: 180px;
  }
  body:has(.floating-specialty) .header-tel--green .header-tel-box {
    width: 145px;
  }
}
@media screen and (min-width: 841px) and (max-width: 1156px) {
  body:has(.floating-specialty) .site-header,
  body:has(.floating-specialty) .header-flex {
    height: 170px;
  }
  body:has(.floating-specialty) .header-tel {
    order: 1;
  }
  .floating-specialty {
    order: 2;
    margin-left: auto;
  }
}
@media screen and (min-width: 769px) and (max-width: 840px) {
  .floating-specialty {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  body:has(.floating-specialty) .site-header {
    height: 55px;
  }
  body:has(.floating-specialty) .header-right {
    gap: 5px;
    flex-wrap: nowrap;
  }
  .floating-specialty {
    position: fixed;
    top: auto;
    right: auto;
    bottom: 66px;
    left: 10px;
    z-index: 1001;
    width: calc(100% - 20px);
    height: 35px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) max-content;
    gap: 10px;
    background: transparent;
  }
  .floating-specialty_top {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    padding-block: 3px;
    text-decoration: none;
  }
  .floating-specialty_top .back-to-top__text {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .floating-specialty_top .back-to-top__line {
    height: 29px;
    margin-left: 0;
  }
  .floating-specialty_top .back-to-top__line::before {
    width: 8px;
  }
  .floating-specialty__item {
    display: flex;
    justify-content: center;
    gap: 3px;
    height: 35px;
    padding: 3px 4px;
    border-radius: 3px;
  }
  .floating-specialty__icon {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
  }
  .floating-specialty__copy {
    flex: 0 1 auto;
  }
  .floating-specialty__copy {
    line-height: 1.25;
  }
  .floating-specialty__lead,
  .floating-specialty__title {
    font-size: clamp(8px, 2.56vw, 10px);
  }
  .floating-specialty__pc-break {
    display: none;
  }
  body:has(.floating-specialty) .p-fixed-bottom__item::before {
    display: none;
  }
  body:has(.floating-specialty) .p-fixed-bottom {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  body:has(.floating-specialty) .p-fixed-bottom__text {
    font-size: clamp(7px, 2.31vw, 10px);
  }
}
