/* ==========================================================================
   rh-footer.css — フッター（Figma 355:4506）
   ========================================================================== */
html .rh-footer { background: var(--rh-pale); padding-top: 56px; }
html .rh-footer__logo img { width: 180px; height: auto; }
html .rh-footer__cols {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px 24px;
  padding-top: 32px;
}
html .rh-footer__col section + section { margin-top: 34px; }
html .rh-footer__cols h3 { color: var(--rh-link); font-size: 16px; font-weight: 700; line-height: 1.5; margin-bottom: 14px; }
html .rh-footer__cols a { display: block; padding: 6px 0; color: var(--rh-ink); font-size: 13px; font-weight: 700; line-height: 21px; transition: color .2s; }
/* 子の項目は字下げ＋青い短線（Figma フッター） */
html .rh-footer__cols ul ul a { position: relative; padding-left: 22px; font-weight: 400; }
html .rh-footer__cols ul ul a::before { content: ""; position: absolute; left: 6px; top: 50%; width: 10px; height: 2px; background: var(--rh-blue); }
html .rh-footer__cols a:hover { color: var(--rh-blue); }
html .rh-footer__banners { display: flex; gap: 17px; padding: 30px 0 56px; max-width: 694px; }
html .rh-footer__banners li { flex: 1; }
html .rh-footer__banners img { display: block; width: 100%; height: 58.5px; object-fit: cover; }
html .rh-footer__copy { background: var(--rh-blue); color: var(--rh-white); text-align: center; line-height: 28px; }
html .rh-footer__copy small { font-family: var(--rh-en-serif); font-size: 11px; }
/* プライバシーポリシーのリンク（バナーの下・コピーライトの上。最終確認 10/15） */
html .rh-footer__legal { margin-top: -36px; padding-bottom: 16px; text-align: center; font-size: 12px; line-height: 1.5; }
html .rh-footer__legal a { color: var(--rh-ink); text-decoration: underline; text-underline-offset: 3px; }
html .rh-footer__legal a:hover { color: var(--rh-blue); }
@media (max-width: 767px) { html .rh-footer__legal { margin-top: -16px; } }

@media (max-width: 1100px) {
  html .rh-footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  html .rh-footer { padding-top: 40px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); } /* 下部の浮いたボタンの分 */
  html .rh-footer__cols { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  html .rh-footer__banners { flex-wrap: wrap; gap: 10px; padding-bottom: 32px; }
  html .rh-footer__banners li { flex: 0 0 calc(50% - 5px); }
  html .rh-footer__banners img { height: auto; aspect-ratio: 730 / 276; }
}

/* 法人・事業用建築の入口（5列目の下。画像なし。白地＋青い枠のカードで、文字リンクの列の中で目に入るように） */
html .rh-footer__cols .rh-footer__biz { position: relative; display: block; margin-top: 28px; padding: 12px 36px 12px 14px; background: var(--rh-white); border: 1px solid var(--rh-blue); border-radius: 3px; color: var(--rh-ink); transition: background-color .2s; }
html .rh-footer__cols .rh-footer__biz:hover { background: var(--rh-soft); color: var(--rh-ink); }
html .rh-footer__biz span { display: block; font-size: 13px; line-height: 1.5; }
html .rh-footer__biz small { display: block; margin-bottom: 3px; color: var(--rh-link); font-family: var(--rh-en-sans); font-size: 10px; font-weight: 300; line-height: 1; }
html .rh-footer__biz em { display: block; margin-top: 3px; color: var(--rh-card-lead); font-size: 11px; font-style: normal; font-weight: 400; }
html .rh-footer__biz .rh-chev-circle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 767px) {
  html .rh-footer__cols .rh-footer__biz { margin-top: 20px; }
}

/* 会社の連絡先（WP だけ。今の本番のフッターにある情報。ロゴの下・メニューの上） */
html .rh-footer__offices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; margin-top: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--rh-line); }
html .rh-footer__office h3 { margin: 0 0 6px; color: var(--rh-ink); font-family: var(--rh-serif); font-size: 16px; font-weight: 600; line-height: 1.5; }
html .rh-footer__office p { margin: 0; color: var(--rh-ink); font-size: 13px; line-height: 1.8; letter-spacing: .02em; }
html .rh-footer__office a { color: inherit; text-decoration: none; }
@media (hover: hover) { html .rh-footer__office a:hover { color: var(--rh-blue); text-decoration: underline; text-underline-offset: 3px; } }
@media (max-width: 1100px) { html .rh-footer__offices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { html .rh-footer__offices { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; padding-bottom: 24px; } }
