@charset "UTF-8";
/*
  shared/_site_footer.html.erb 専用CSS
  スコープ: .site_footer 配下のみ
*/

/* ---------

枠

------------*/
.site_footer {
  padding: 72px 0 56px;
  background: #393939;
  color: #fff;
}
.site_footer_inner {
  width: 1148px;
  margin-inline: auto;
}
.site_footer_main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* ---------

ロゴカード

------------*/
.site_footer_brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 257px;
  height: 153px;
  padding-top: 6px;
  border-radius: 8px;
  background: #fff;
}
.site_footer_brand_head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.site_footer_catch {
  color: #1C9898;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0.06em;
}
.site_footer_logo {
  display: block;
  width: 162px;
  height: auto;
}
.site_footer_contact {
  width: 194px;
  color: #707F86;
  line-height: 1.4;
}
/* 電話番号の行だけ、下の受付時間の「（」より少し右から始める */
.site_footer_tel {
  display: block;
  padding-left: 8px;
  color: inherit;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  pointer-events: none;
  cursor: default;
}
.site_footer_tel_label {
  font-size: 1.4rem;
  letter-spacing: 0.07em;
}
.site_footer_tel_colon {
  font-size: 1.4rem;
  letter-spacing: 0;
}
.site_footer_hours {
  display: block;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

/* ---------

リンク

------------*/
.site_footer_body {
  display: flex;
  flex-direction: column;
  width: 756px;
}
.site_footer_func {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.site_footer_func_ttl {
  flex-shrink: 0;
  color: #D2D2D2;
  font-size: 1.4rem;
  line-height: 1.15;
}
.site_footer_func_rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site_footer_func_list {
  display: flex;
  gap: 16px;
}
/* 区切り線は項目の幅に含める（右余白15px＋線1px）。線を外側に足すと、Figmaより項目の幅が1pxずつ広がる */
.site_footer_func_list li {
  flex-shrink: 0;
  padding: 2px 15px 0 0;
  border-right: 1px solid #939393;
}
.site_footer_func_list li:last-child {
  padding-right: 0;
  border-right: none;
}
.site_footer_func_link {
  display: block;
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.15;
  white-space: nowrap;
}
.site_footer_menu {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid #4A4A4A;
}
.site_footer_menu_link {
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.15;
}
.site_footer_func_link:hover,
.site_footer_menu_link:hover,
.site_footer_cta_link:hover,
.site_footer_sublink_link:hover {
  text-decoration: underline;
}

/* ---------

CVリンク3個

------------*/
.site_footer_cta {
  display: flex;
  gap: 40px;
  padding: 28px 0;
}
.site_footer_cta_link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 0.03em;
}
/* 元の色に関係なく白で揃えるため */
.site_footer_cta_icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* ---------

運営会社などのリンク

------------*/
.site_footer_sublink {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid #4A4A4A;
}
.site_footer_sublink_link {
  color: #A2A2A2;
  font-size: 1.2rem;
  line-height: 1.15;
}

/* ==========================================================

SP

========================================================== */
@media (max-width: 768px) {
  /* 左右の余白と中身の最大幅は、直前のセクション（closing_cta）に揃える */
  .site_footer {
    padding: 48px 24px 40px;
  }
  .site_footer_inner {
    width: 100%;
    max-width: 600px;
  }
  .site_footer_main {
    flex-direction: column;
    align-items: stretch;
  }

  .site_footer_brand {
    width: 100%;
    max-width: 330px;
    margin-inline: auto;
    height: auto;
    padding: 24px 16px;
  }
  /* 文字の高さは変えず、タップできる範囲だけを上下に広げて44px以上にする */
  .site_footer_tel {
    position: relative;
    pointer-events: auto;
    cursor: pointer;
  }
  .site_footer_tel::after {
    content: '';
    position: absolute;
    inset: -11px 0;
  }

  .site_footer_body {
    width: auto;
  }
  /*
    SPでは、CTAをロゴカードのすぐ下に出す。
    リンクは文字の幅だけにする（このあとの機能・メニューのリンクも同じ）。行の幅いっぱいに広げると、
    右下に固定表示されるTOPへ戻るボタンと重なった部分がタップできなくなる
  */
  .site_footer_cta {
    order: -1;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    padding: 18px 0;
    border-top: 1px solid #4A4A4A;
    border-bottom: 1px solid #4A4A4A;
  }
  .site_footer_cta_link {
    min-height: 48px;
  }

  .site_footer_func {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 32px;
  }
  .site_footer_func_ttl {
    text-align: center;
  }
  /* PCで段ごとに分けた2つのリストを、1つの3列リストに見せる（1つ目が6個なので、ちょうど2段で切り替わる） */
  .site_footer_func_rows {
    gap: 0;
  }
  .site_footer_func_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  /* 区切り線は、セルの高さではなく文字の高さ分だけ、列の境目に引く */
  .site_footer_func_list li {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 0;
    border-right: none;
  }
  .site_footer_func_list li::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 18px;
    background: #939393;
    transform: translateY(-50%);
  }
  .site_footer_func_list li:nth-child(3n)::after,
  .site_footer_func_list li:last-child::after {
    content: none;
  }
  .site_footer_func_link {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 1.2rem;
  }

  .site_footer_menu {
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 16px;
    padding-bottom: 0;
    border-bottom: none;
  }
  .site_footer_menu_link {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .site_footer_sublink {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 16px;
    margin-top: 24px;
    padding-top: 8px;
  }
  .site_footer_sublink_link {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 1.1rem;
  }
}
