/**
 * サイトフッター
 *
 * PC: [ロゴ＋クリニック名／住所／電話番号／診療時間] [ナビ2カラム] の
 *     2ブロックを横並びに配置（コンテナ幅1100px、左右padding無し。
 *     アクセスエリアと同じ考え方でコンテナ端に揃える）。
 *     ロゴ＋クリニック名は横並び、住所／電話番号／診療時間は縦並び。
 * SP: 全て1カラムに積み替え、ナビ2カラム → ロゴ・クリニック名・住所・
 *     電話番号・診療時間 の順で縦並び表示する（orderで表示順のみ入替え、
 *     HTMLの順序はPCと共通）。
 */

.site-footer {
  position: relative;
  background: var(--wp--preset--gradient--footer-gradient);
  /* イラスト（footer-illustration.png）の茎の部分がフッター下端で
     自然に切れるようにする */
  overflow: hidden;
}

.site-footer__inner {
  /* ヘッダー（.site-header__inner）と同じ幅に揃える */
  max-width: var(--wp--style--global--wide-size, 1200px);
  margin-inline: auto;
  padding: 63px var(--wp--custom--container--padding, 24px) 18px;
  box-sizing: border-box;
}

.site-footer__main {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* ── ロゴ＋クリニック名（横並び）＋ 住所／電話番号／診療時間（縦並び） ── */
.site-footer__brand-info {
  flex: 0 1 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* ── ロゴ＋クリニック名（横並び） ── */
.site-footer__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-footer__logo img {
  display: block;
  width: auto;
  max-width: 160px;
  height: auto;
  max-height: 56px;
}

.site-footer__site-name {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  color: #262626;
  text-decoration: none;
}

/* ── 住所／電話番号／診療時間 ── */
.site-footer__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.site-footer__address {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #262626;
}

.site-footer__access {
  display: block;
  font-size: 13px;
  color: var(--wp--preset--color--caption-text);
}

.site-footer__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: 20px;
  color: #262626;
  text-decoration: none;
}

.site-footer__tel-icon {
  display: flex;
  align-items: center;
}

.site-footer__tel-icon img {
  display: block;
  width: 18px;
  height: 18px;
}

.site-footer__hours {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #262626;
}

.site-footer__hours li {
  display: flex;
  gap: 16px;
}

.site-footer__hours-days {
  flex: 0 0 108px;
}

/* ── ナビゲーション2カラム ── */
.site-footer__nav-columns {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  gap: 80px;
  margin-left: auto;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #262626;
  text-decoration: none;
}

.footer-nav a::before {
  content: "−";
  position: absolute;
  left: 0;
  color: var(--wp--preset--color--caption-text);
}

.footer-nav a:hover {
  color: var(--wp--preset--color--primary-dark);
  text-decoration: underline;
}

/* 第二階層（子メニュー）。見た目（文字サイズ・色・「−」記号）は第一階層と同じにし、
   インデントだけを付ける。 */
.footer-nav .sub-menu {
  list-style: none;
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── 装飾（花のイラスト、右上〜下端にかけて配置） ──
   元画像は364x721（花＋長い茎）の縦長イラスト。花の部分がナビ欄の
   右上あたりに来るよう上寄せで配置し、茎の先は .site-footer の
   overflow:hidden で自然に切れるようにする。 */
.site-footer__decoration {
  position: absolute;
  top: -24px;
  right: -16px;
  width: 285px;
  z-index: 0;
  pointer-events: none;
}

.site-footer__decoration img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer__copyright {
  margin: 44px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--caption-text);
}

@media (max-width: 767px) {
  .site-footer__inner {
    padding-top: 40px;
  }

  /* SPでは [ロゴ＋クリニック名／住所／電話番号／診療時間] → [ナビ2カラム]
     の順に、すべて縦並びで表示する（PCの横並びをやめて1カラム化）。 */
  .site-footer__main {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  /* リンクエリア（ナビ2カラム）を先に、クリニック名・詳細情報を後に表示する */
  .site-footer__nav-columns {
    order: 1;
    margin-left: 0;
    gap: 32px;
  }

  .site-footer__brand-info {
    order: 2;
    flex-basis: auto;
    gap: 16px;
  }

  .site-footer__site-name {
    font-size: 22px;
  }

  .site-footer__tel {
    font-size: 18px;
  }

  /* ナビ最上段に花の頭がかぶらないよう、リスト中段あたりまで下げて配置する */
  .site-footer__decoration {
    width: 225px;
    top: 70px;
    right: -10px;
  }
}
