/* フッター（参考 .l-footer）：白い地。ロゴと住所・札、診療時間の表、予約の箱（上に絵がのぞく）、
   お支払い方法の枠、サイトの案内、右下の丸いページ先頭ボタン。追従の予約ボタンもここに置く */
.ft {
  position: relative;
  background: var(--white);
  padding-bottom: 44px;
}
.ft__inner { padding-top: 57px; padding-bottom: 75px; }

.ft__info-header { margin-bottom: 40px; }
.ft__logo .logo__mark { width: 40px; height: 34px; }
.ft__logo .logo__cloud { fill: var(--white); }
.ft__logo .logo__ja { font-size: 19px; }
.ft__logo .logo__en { font-size: 9px; }
.ft__addr-wrap { margin-top: 20px; }
.ft__addr { font-size: 13px; line-height: 1.8; }
.ft__tags { display: flex; flex-wrap: wrap; column-gap: 15px; margin-top: 4px; }
.ft__tags li { font-size: 12px; font-weight: 700; }

/* 診療時間の表（参考 .c-time-table01） */
.ft__time { margin: 0 -25px; }
.time {
  width: 100%;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.3;
}
.time tr { border-bottom: 1px solid var(--line); }
.time th,
.time td { height: 50px; vertical-align: middle; text-align: center; }
.time thead th { font-size: 13px; white-space: nowrap; }
.time th:first-child { width: 115px; padding: 0 0 2px 25px; text-align: left; }
.time th:last-child,
.time td:last-child { width: 57px; padding-right: 25px; }
.time tbody th .en { display: block; font-size: 13px; letter-spacing: 0.02em; white-space: nowrap; }
.time tbody th small { display: block; margin-top: 3px; font-size: 10px; font-weight: 400; }
.time__open,
.time__close,
.time__tri { position: relative; display: inline-block; width: 13px; height: 13px; vertical-align: middle; }
.time__open { border-radius: 50%; background: var(--yellow); }
.time__close::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform: translateY(-50%);
}
.time__tri { background: var(--yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.time__notes { margin-top: 8px; padding: 0 25px; font-size: 11px; line-height: 1.8; }
.time__note-tri { position: relative; padding-left: 16px; }
.time__note-tri::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 12px;
  height: 10px;
  background: var(--yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* 予約の箱 */
.ft__cv {
  position: relative;
  margin-top: 40px;
  padding: 29px 28px;
  background: var(--panel);
}
.ft__chara {
  position: absolute;
  top: 0;
  right: 6px;
  width: 50px;
  height: 64px;
  transform: translateY(-78%);
}
.ft__chara-body { fill: var(--white); stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; }
.ft__chara-eye { fill: var(--ink); }
.ft__chara-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.ft__chara-cheek { fill: var(--yellow); opacity: 0.8; }
.ft__cv-head {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.46;
  letter-spacing: 0.2em;
  text-align: center;
}
.ft__cv-head span { display: inline; }
.ft__cv-num a {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 6px;
  max-width: 270px;
  height: 60px;
  margin: auto;
  padding-top: 4px;
  border: 2px solid var(--ink);
  border-radius: 50px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ft__cv-num svg { width: 20px; height: 20px; margin-top: -4px; }
.ft__cv-web { margin-top: 20px; }
.ft__cv-web a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 270px;
  height: 50px;
  margin: auto;
  border-radius: 50px;
  background: var(--sky-deep);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.15em;
  transition: background-color 0.3s ease, letter-spacing 0.3s ease;
}
.ft__cv-cal { position: absolute; top: 50%; left: 22px; width: 22px; height: 22px; transform: translateY(-50%); }
.ft__cv-ext { position: absolute; top: 50%; right: 19px; width: 12px; height: 12px; transform: translateY(-50%); }

/* お支払い方法 */
.ft__pay {
  margin-top: 19px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  text-align: center;
}
.ft__pay-head { flex: none; font-size: 15px; font-weight: 700; letter-spacing: 0.15em; white-space: nowrap; }
.ft__pay-txt { margin-top: 4px; font-size: 13px; font-weight: 700; }
.ft__pay-note { font-size: 11px; color: var(--ink-sub); }

/* サイトの案内（スマホは出さない。参考と同じ） */
.ft__nav { display: none; }

.ft__meta { margin-top: 41px; text-align: center; }
.ft__note { font-size: 11px; line-height: 1.8; color: var(--ink-sub); }
.ft__privacy { margin-top: 18px; font-size: 12px; }
.ft__cr { margin-top: 8px; color: var(--ink-sub); font-size: 10px; letter-spacing: 0.1em; }

.ft__top { position: absolute; right: 10px; bottom: 89px; }
.ft__top a {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--yellow);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.ft__top svg { position: absolute; top: calc(50% - 2px); left: 50%; width: 14px; height: 10px; transform: translate(-50%, -50%); }

/* 追従の予約ボタン：スマホは画面下の帯（FV を過ぎると下から出る） */
.fix { position: fixed; z-index: 1500; transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease; }
.fix svg { flex: none; }
.fix__sub { display: none; }
@media (max-width: 1279px) {
  .fix {
    left: 0;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -3px 15px rgba(59, 70, 86, 0.1);
    transform: translateY(100%);
  }
  .fix.is-show { transform: none; }
  .fix__list { display: flex; }
  .fix__item { width: 50%; height: 44px; }
  .fix__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 6px;
    height: 100%;
    background: var(--white);
  }
  .fix__item svg { width: 16px; height: 16px; }
  .fix__num { font-size: 17px; line-height: 1; padding-top: 3px; letter-spacing: 0.02em; white-space: nowrap; }
  .fix__item--web a { background: var(--sky-deep); color: #fff; }
  .fix__web { font-size: 14px; font-weight: 700; letter-spacing: 0.15em; }
}

@media (min-width: 1024px) {
  .ft { padding-bottom: 44px; }
  .ft__inner { padding-top: 120px; padding-bottom: 80px; }
  .ft__info { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .ft__info-header { display: flex; align-items: center; width: 100%; margin-bottom: 46px; }
  .ft__logo { margin-right: 51px; }
  .ft__logo .logo__mark { width: 50px; height: 42px; }
  .ft__logo .logo__ja { font-size: 24px; }
  .ft__logo .logo__en { font-size: 11px; }
  .ft__addr-wrap { margin: 0; }
  .ft__addr { font-size: 15px; line-height: 1.5; margin-bottom: 5px; }
  .ft__tags { column-gap: 13px; }
  .ft__tags li { font-size: 13px; }

  .ft__time { width: 47%; max-width: 500px; margin: 0; }
  .time { border: 1px solid var(--line); border-bottom: 0; font-size: 14px; }
  .time thead th { height: 53px; font-size: 15px; }
  .time tbody th,
  .time tbody td { height: 61px; }
  .time th:first-child { width: 150px; padding-left: 30px; }
  .time th:last-child,
  .time td:last-child { width: 67px; padding-right: 30px; }
  .time tbody th .en { font-size: 14px; }
  .time tbody th small { font-size: 12px; }
  .time__open,
  .time__close,
  .time__tri { width: 16px; height: 16px; }
  .time__notes { display: flex; flex-wrap: wrap; column-gap: 20px; margin-top: 12px; padding: 0; font-size: 13px; }
  .time__note-tri { padding-left: 18px; }
  .time__note-tri::before { top: 5px; width: 14px; height: 13px; }

  .ft__cv { width: 49%; max-width: 530px; height: 175px; margin: 0; padding: 24px 50px 25px; }
  .ft__chara { right: 20px; width: 74px; height: 94px; transform: translateY(-82%); }
  .ft__cv-tel { display: flex; justify-content: space-between; align-items: center; }
  .ft__cv-head { margin: 0; padding-top: 4px; font-size: 14px; line-height: 1.43; text-align: left; }
  .ft__cv-head span { display: block; white-space: nowrap; }
  .ft__cv-num a {
    max-width: none;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: min(2.8vw, 34px);
    letter-spacing: 0.05em;
  }
  .ft__cv-num svg { width: 28px; height: 28px; }
  .ft__cv-web { max-width: 410px; margin: 17px auto 0; }
  .ft__cv-web a { max-width: 100%; height: 64px; font-size: 18px; }
  .ft__cv-web a:hover { background: var(--ink); letter-spacing: 0.3em; }
  .ft__cv-cal { left: 30px; width: 28px; height: 28px; }
  .ft__cv-ext { right: 26px; width: 14px; height: 14px; }

  .ft__pay {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 30px;
    width: 90%;
    margin: 45px auto 0;
    padding: 20px 30px;
  }
  .ft__pay-txt { margin: 0; font-size: 15px; white-space: nowrap; }

  .ft__nav {
    display: block;
    margin-top: 60px;
    padding: 76px 0 26px;
    border-top: 1px solid var(--ink);
  }
  .ft__nav-group { display: flex; justify-content: space-between; }
  .ft__nav-parent { font-size: 15px; font-weight: 700; line-height: 1.6; }
  .ft__nav-parent + .ft__nav-parent { margin-top: 32px; }
  .ft__nav-parent a { display: inline-flex; align-items: center; column-gap: 6px; transition: color 0.3s ease; }
  .ft__nav-ext { width: 12px; height: 12px; color: var(--sky-deep); }
  .ft__nav-child { margin-top: 10px; }
  .ft__nav-child--col2 { display: grid; grid-template-columns: auto auto; column-gap: 30px; }
  .ft__nav-child li { font-size: 13px; line-height: 2.4; }
  .ft__nav-child a { position: relative; padding-left: 12px; transition: color 0.3s ease; }
  .ft__nav-child a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 1px;
    background: var(--ink-sub);
  }
  .ft__nav a:hover { color: var(--sky-deep); }

  .ft__meta { display: flex; align-items: center; margin-top: 40px; text-align: left; line-height: 1; }
  .ft__cr { order: 1; margin: 0; font-size: 11px; }
  .ft__note { order: 2; margin-left: 30px; font-size: 12px; line-height: 1.6; }
  .ft__privacy { order: 3; margin: 0 0 0 auto; font-size: 12px; }
  .ft__privacy a:hover { color: var(--sky-deep); }

  .ft__top { right: 65px; bottom: 55px; }
  .ft__top a { width: 60px; height: 60px; }
  .ft__top a:hover { background: var(--sky-deep); color: #fff; }

}
@media (min-width: 1280px) {
  .ft { padding-bottom: 0; }
  /* PC：右の丸いボタン。のせると横に伸びて文字が出る */
  .fix {
    top: calc(50% - 65px);
    right: 65px;
    opacity: 0;
    visibility: hidden;
  }
  .fix.is-show { opacity: 1; visibility: visible; }
  .fix__list { display: flex; flex-direction: column; align-items: flex-end; row-gap: 10px; width: 260px; }
  .fix__item a {
    display: flex;
    align-items: center;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 60px;
    background: var(--white);
    box-shadow: 0 3px 6px rgba(59, 70, 86, 0.1);
    transition: width 0.3s ease;
  }
  .fix__item a:hover,
  .fix__item a:focus-visible { width: 260px; }
  .fix__item svg { width: 22px; height: 22px; margin: 0 19px; }
  .fix__txt { display: flex; flex-direction: column; align-items: center; flex: none; width: 180px; line-height: 1; }
  .fix__sub { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.15em; white-space: nowrap; }
  .fix__num { font-size: 23px; letter-spacing: 0.05em; white-space: nowrap; }
  .fix__item--web a { background: var(--sky-deep); color: #fff; }
  .fix__web { font-size: 16px; font-weight: 700; letter-spacing: 0.15em; }
}
@media (min-width: 1024px) and (max-width: 1365px) {
  .ft__top { bottom: 130px; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .fix { right: 12px; }
}
