/* slidein用 */
.slidein {
  opacity: 0;
  transition:
    opacity 1.5s ease,
    transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 右 → 左 */
.slidein.right {
  transform: translateX(60px);
}

/* 左 → 右 */
.slidein.left {
  transform: translateX(-60px);
}

/* 表示状態 */
.slidein.is-show {
  opacity: 1;
  transform: translateX(0);
}
.slidein.bottom {
  transform: translateY(60px);
}
.js-type {
  display: inline-block;
  white-space: nowrap;
  position: relative;
}

.js-type::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  background: currentColor;
  margin-left: 6px;
  transform: translateY(2px);
  -webkit-animation: blink 0.8s step-end infinite;
  animation: blink 0.8s step-end infinite;
  opacity: 0;
}

.js-type.is-typing::after {
  opacity: 1;
}
.header-wrap__hero-titletop,
.header-wrap__hero-titleleft,
.header-wrap__hero-titleright {
  min-height: 1em; /* 1行分を確保 */
}

/* TO / THE は2行分 */
.header-wrap__hero-titleleft {
  min-height: 2.4em;
}

@-webkit-keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* footer用 */
footer {
  border-top: 1px solid #ccc;
  background-color: #fff;
  padding-top: 60px;
}
.footer-logo {
  width: 40%;
}
.footer-logo a img {
  width: 100%;
}
.footer-wrap__main__body {
  max-width: 1200px;
  display: flex;
  margin: 60px auto 120px auto;
  justify-content: space-around;
  align-items: center;
}
.footer-wrap__main__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 45%;
}
.footer-wrap__hour {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border: 11px solid #dfdfdf;
  border-radius: 50%;
  gap: 15px;
}
.footer-wrap__center {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 60px 0;
}
.footer-wrap__contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  width: 210px;
  padding: 20px 0;
}
.footer-wrap__contact-ins .icon {
  position: absolute;
  width: 18px; /* ← ここで大きさ制御 */
  height: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.footer-wrap__contact-ins .text {
  text-align: center;
  width: 100%;
}
.footer-wrap__contactimg {
  width: 100%;
}
.footer-wrap__contactimg img {
  width: 100%;
}
.footer-wrap__main__right {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* map専用コンテナで高さ確保 */
.footer-map {
  aspect-ratio: 1 / 1;
  position: relative;
  width: 100%;
}

.footer-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.footer-banner__img {
  width: 75%;
}
.footer-banner__img img {
  width: 100%;
  height: auto;
  display: block;
}
.footer-banner__txt {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 10px;
  margin-bottom: 5px;
}
.header-wrap__contact-ins {
  font-weight: 200;
  display: flex;
  justify-content: space-around;
  padding: 9% 5%;
  background-color: rgb(255, 255, 255);
  width: 180px;
  text-decoration: none;
  color: rgb(136, 136, 136);
  border: 1px solid #ccc;
}
.footer-wrap__address {
  font-size: 20px;
  color: #888888;
  margin-bottom: 10px;
}
.footer-wrap__address {
  font-size: 20px;
  color: #888888;
  margin-bottom: 15px;
}
/* ===== 診療時間テーブル ===== */
.clinic-hours {
  width: 100%;
  border-collapse: collapse; /* 罫線を1本に */
  table-layout: fixed; /* 列幅を安定させる */
  border: 1px solid #d9d9d9;
  font-size: 15px;
  color: #555;
  background: #fff;
}

.clinic-hours th,
.clinic-hours td {
  padding: 14px 10px;
  text-align: center;
  vertical-align: middle;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid #d9d9d9;
}
/* ▲ 土曜（三角） */
.clinic-hours .triangle {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid #8a8a8a;
}

/* 1列目（診療時間） */
.clinic-hours .col-time {
  width: 150px; /* ここで左列の幅を調整 */
}
.clinic-hours tbody th {
  font-weight: 500;
  color: #666;
  text-align: center;
}

/* ヘッダー */
.clinic-hours thead th {
  font-weight: 600;
  color: #777;
  background: #fff;
  text-align: center;
}

/* ●（診療） */
.clinic-hours .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8a8a8a;
}

/* 休診（-） */
.clinic-hours .off {
  color: #777;
}

/* スマホで横スクロールさせたい場合（任意）
.table-scroll{ overflow-x:auto; }
.table-scroll .clinic-hours{ min-width: 560px; }
*/
.footer-wrap__copy {
  text-align: center;
  padding: 40px 0 50px 0;
  background: linear-gradient(135deg, #e6e6e6 0%, #ffffff 100%);
}
.footer-wrap__main__spmap {
  display: none;
}
.footer-wrap__contact-ins .icon svg {
  width: 100%;
  height: 100%;
}
.footer-wrap__studay {
  margin-top: 10px;
  color: #888888;
  font-size: 18px;
}
.footer-spbanner {
  display: none;
}
@media screen and (max-width: 1280px) {
  .footer-wrap__main__body {
    width: 95%;
  }
  .footer-wrap__main__right {
    width: 50%;
  }
  .footer-wrap__main__right img {
    width: 100%;
  }
}
@media screen and (max-width: 1000px) {
  .footer-wrap__main__right {
    display: none;
  }
  .footer-wrap__center {
    margin: 40px 0;
  }
  .footer-wrap__main__left {
    width: 90%;
    margin: 0 auto;
  }
  .footer-wrap__main__spmap {
    display: block;
    width: 80%;
    margin: 0 auto 60px auto;
    aspect-ratio: 1 / 1; /* 正方形 */
    position: relative;
  }
  .footer-banner__txt {
    margin-top: 30px;
  }
  .footer-wrap__main__spmap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  .footer-wrap__copy {
    font-size: 12px;
  }
  .footer-wrap__address {
    margin-top: 15px;
    margin-bottom: 15px;
  }
  .footer-spbanner {
    display: block;
  }
}
@media screen and (max-width: 650px) {
  .footer-wrap__main__spmap {
    width: 100%;
  }
}
@media screen and (max-width: 540px) {
  footer {
    padding-top: 0;
  }
  .footer-wrap__main__left {
    width: 95%;
  }
  .footer-wrap__hour {
    width: 140px;
    height: 140px;
    gap: 10px;
    font-size: 14px;
  }
  .footer-wrap__center {
    justify-content: space-between;
  }
  .footer-wrap__contact {
    width: 50%;
  }
  .footer-wrap__contact a {
    width: 100%;
    padding: 20px 10px;
    font-size: 14px;
  }
  .footer-wrap__address {
    font-size: 15px;
  }
  .clinic-hours .col-time {
    width: 120px;
  }
  .clinic-hours {
    font-size: 14px;
  }
  .footer-wrap__main__spmap {
    display: block;
    width: 100%;
  }
  .footer-wrap__main__spmap {
    width: 100%;
  }
  .footer-banner__img {
    width: 100%;
  }
}
@media screen and (max-width: 360px) {
  .footer-wrap__contact-ins .icon {
    width: 15px;
    height: 15px;
  }
  .footer-wrap__contact {
    width: 45%;
  }
  .footer-wrap__contact a {
    padding: 15px 0 15px 10px;
  }
  .footer-wrap__hour {
    width: 120px;
    height: 120px;
  }
  .footer-wrap__hour-text {
    font-size: 12px;
  }
  .footer-wrap__hour-a.m {
    font-size: 12px;
  }
  .footer-wrap__hour-p.m {
    font-size: 12px;
  }
  .clinic-hours .col-time {
    width: 100px;
  }
  .clinic-hours th,
  .clinic-hours td {
    padding: 10px 5px;
  }
}
