/*
 * 全ページ統一フッター（pcw-footer）スタイル
 *
 * view/footer.php の $force_unified_footer フラグが true のとき、
 * フロントページ・home_2系以外の<footer>に .pcdo-unified-footer クラスが付き、本ファイルのスタイルが適用される。
 *
 * 戻し方:
 *   1. view/footer.php の $force_unified_footer を false にする
 *   2. もしくは functions.php の wp_enqueue_style('pcdo-pcw-footer', ...) 行を削除/コメントアウトする
 *
 * 出典: assets/css/home_2.css の `.pcdo-home2-main + footer` ブロックを `footer.pcdo-unified-footer` 縛りに置換
 */

footer.pcdo-unified-footer {
  --pcw-footer-blue: #1368b7;
  --pcw-footer-navy: #13304d;
  --pcw-footer-green: #20a363;
  --pcw-footer-amber: #f2b705;
  --pcw-footer-border: rgba(255, 255, 255, .18);
  --pcw-footer-muted: #c9d8e7;
  margin: 0;
  background: var(--pcw-footer-navy);
  color: #fff;
}

footer.pcdo-unified-footer .footer_nav_wrap {
  padding: 34px 0 26px;
  border-top: 6px solid var(--pcw-footer-blue);
  background: var(--pcw-footer-navy);
}

footer.pcdo-unified-footer .pcw-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

footer.pcdo-unified-footer .pcw-footer {
  display: grid;
  gap: 22px;
}

footer.pcdo-unified-footer .pcw-footer__primary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

footer.pcdo-unified-footer .pcw-footer__logo {
  display: block;
  width: 178px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
}

footer.pcdo-unified-footer .pcw-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

footer.pcdo-unified-footer .pcw-footer__copy p {
  margin: 0;
  color: var(--pcw-footer-muted);
  font-size: 15px;
  line-height: 1.75;
}

footer.pcdo-unified-footer .pcw-footer__copy .pcw-footer__lead {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

footer.pcdo-unified-footer .pcw-footer__contact {
  min-width: 210px;
  text-align: right;
}

footer.pcdo-unified-footer .pcw-footer__contact span,
footer.pcdo-unified-footer .pcw-footer__contact small {
  display: block;
  color: var(--pcw-footer-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

footer.pcdo-unified-footer .pcw-footer__contact a {
  display: block;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

footer.pcdo-unified-footer .pcw-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  text-align: left;
}

footer.pcdo-unified-footer .pcw-footer__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--pcw-footer-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

footer.pcdo-unified-footer .pcw-footer__nav a:hover,
footer.pcdo-unified-footer .pcw-footer__nav a:focus-visible {
  background: rgba(255, 255, 255, .16);
  text-decoration: none;
}

footer.pcdo-unified-footer .pcw-footer__nav--main {
  justify-content: center;
}

footer.pcdo-unified-footer .pcw-footer__nav--sub {
  justify-content: center;
  gap: 8px;
  padding-top: 4px;
}

footer.pcdo-unified-footer .pcw-footer__nav--sub a {
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: var(--pcw-footer-muted);
  font-size: 14px;
  font-weight: 700;
}

footer.pcdo-unified-footer .pcw-footer__nav .pcw-footer__cta {
  border-color: transparent;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .22);
}

footer.pcdo-unified-footer .pcw-footer__nav .pcw-footer__cta--business {
  background: var(--pcw-footer-amber);
  color: var(--pcw-footer-navy);
}

footer.pcdo-unified-footer .pcw-footer__nav .pcw-footer__cta--contact {
  background: var(--pcw-footer-green);
  color: #fff;
}

footer.pcdo-unified-footer .pcw-footer__nav .pcw-footer__cta:hover,
footer.pcdo-unified-footer .pcw-footer__nav .pcw-footer__cta:focus-visible {
  filter: brightness(.96);
}

footer.pcdo-unified-footer .footer_copyright_wrap {
  margin: 0;
  background: #0f2740;
  color: var(--pcw-footer-muted);
  text-align: center;
}

footer.pcdo-unified-footer .footer_copyright_wrap p {
  margin: 0;
  padding: 14px 12px;
  color: inherit;
  font-size: 12px;
  line-height: 1.7;
}

@media screen and (max-width: 834px) {
  footer.pcdo-unified-footer .footer_nav_wrap {
    padding: 28px 0 24px;
  }

  footer.pcdo-unified-footer .pcw-footer__primary {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }

  footer.pcdo-unified-footer .pcw-footer__contact {
    min-width: 0;
    text-align: left;
  }

  footer.pcdo-unified-footer .pcw-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer.pcdo-unified-footer .pcw-footer__nav a {
    width: 100%;
    min-height: 46px;
    font-size: 16px;
  }

  footer.pcdo-unified-footer .pcw-footer__nav--sub {
    display: flex;
    justify-content: flex-start;
  }

  footer.pcdo-unified-footer .pcw-footer__nav--sub a {
    width: auto;
  }
}

@media screen and (max-width: 480px) {
  footer.pcdo-unified-footer .pcw-footer__logo {
    width: 162px;
  }

  footer.pcdo-unified-footer .pcw-footer__copy .pcw-footer__lead {
    font-size: 18px;
  }

  footer.pcdo-unified-footer .pcw-footer__contact a {
    font-size: 24px;
  }

  footer.pcdo-unified-footer .pcw-footer__nav {
    grid-template-columns: 1fr;
  }
}
