/* site-chrome.css（WP版）— フッター＆ヘッダー/ドロワー リニューアルの独立CSS
 * 2026-07-29 に footer.php / header.php の inline <style> をそのまま切り出し（内容同一・
 *  変更は @font-face の URL を PHP 出力→相対パス ../renewal/fonts/ にした1点のみ）。
 * 【置き場所】assets/renewal/ は build-renewal.py がクリーン再生成する＝手管理ファイルは
 *  消えるため、本ディレクトリ assets/site-chrome/ に置く（ビルド不可侵）。
 * 【読み込み】header.php <head> の <link>（wp_head の後）＝サイト全域・全ページ共通。
 * 【同期】静的サイト版の正本 = 静的リポジトリ assets/css/site-chrome.css §1-3。
 *  旧デザインページの base.css（#mobile-menu 全画面版 / .btn-trigger 22px版）への上書きは
 *  nav#mobile-menu / #menu-button の高詳細度セレクタで担保（WP版のみの差分）。 */

/* ================= Footer（footer.php から移設） ================= */
/* Footer renewal（Figma 2300:22365）。静的版: assets/css/site-chrome.css §3 と同期 */
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../renewal/fonts/notosansjp-jp-400.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../renewal/fonts/notosansjp-jp-700.woff2") format("woff2");
}
.site-footer, .site-footer * { box-sizing: border-box; }
.site-footer {
  background: #11162b;
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
}
.site-footer a { color: inherit; text-decoration: none; transition: opacity .4s ease; }
@media (hover: hover) {
  .site-footer a:hover { opacity: .6; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer a { transition: none; }
}
.site-footer__inner {
  max-width: 1308px;
  margin: 0 auto;
  padding: 40px 24px 112px; /* SP下部=固定CTAバナーのクリアランス */
}
.footer-sitemap { display: flex; flex-direction: column; gap: 32px; }
.footer-col { min-width: 0; flex: 1; }
.footer-col__title {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #50587d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.footer-col__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12px;
  line-height: 1.4;
}
.footer-col:nth-child(1) .footer-col__list,
.footer-col:nth-child(2) .footer-col__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 16px;
}
.footer-cards {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.site-footer .footer-card {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  min-height: auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  color: #131936;
  font-size: 12px;
  line-height: 1.21;
}
.footer-card__icon { width: 36px; height: 36px; flex: none; }
.footer-card__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.footer-card__sub { font-size: 10px; }
.footer-copy {
  display: block;
  margin: 48px 0 0;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .site-footer__inner { padding: 48px 24px; }
  .footer-sitemap { flex-direction: row; gap: 24px; }
  .footer-cards { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
  .footer-copy { margin-top: 64px; font-size: 12px; }
  .footer-col__title { font-size: 16px; }
  .footer-col__list { font-size: 14px; }
  .site-footer .footer-card { font-size: 14px; min-height: 83px; }
  .footer-card__sub { font-size: 12px; }
  .footer-col:nth-child(1) .footer-col__list,
  .footer-col:nth-child(2) .footer-col__list { display: flex; }
}
@media (min-width: 1024px) {
  .footer-sitemap { gap: 40px; }
  .footer-cards { grid-template-columns: repeat(4, 1fr); margin-top: 64px; }
  .footer-copy { margin-top: 96px; }
}

/* ================= Header / Drawer（header.php から移設） ================= */
/* Header/Drawer renewal（Figma 2298:15541）。静的版: site-chrome.css §1-2 と同期 */
/* ヘッダー背景は PC/SP とも白（当初SPのみ→PCも白に統一） */
#site-header { background: #ffffff; }
/* ハンバーガー（Figma: バー40×4×3・gap8・角丸4・黒）。base.css の旧規則を上書き */
#menu-button {
    position: static;
    width: auto;
    height: auto;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: auto;
    transition: none;
}
#menu-button span {
    position: static;
    display: block;
    width: 30px;
    height: 3px;
    background: #000000;
    border-radius: 4px;
    transition: none;
}
body.menu-open { overflow: hidden; }
/* ドロワー＝スクリム＋右パネル。base.css の旧 #mobile-menu(全画面紺) を上書き */
nav#mobile-menu.site-drawer {
    position: fixed;
    inset: 0;
    height: auto;
    width: 100%;
    z-index: 1000;
    background: rgba(19, 25, 54, .8);
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: opacity .3s ease, visibility .3s ease;
}
body.menu-open nav#mobile-menu.site-drawer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.site-drawer__panel {
    position: absolute;
    top: 0; right: 0;
    height: 100%;
    width: min(393px, 100%);
    background: #131936;
    color: #ffffff;
    font-family: "Noto Sans JP", sans-serif;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 70px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-sizing: border-box;
}
.site-drawer__panel *, .site-drawer__panel *::before, .site-drawer__panel *::after { box-sizing: border-box; }
body.menu-open .site-drawer__panel { transform: translateX(0); }
.site-drawer a { color: #ffffff; text-decoration: none; transition: opacity .4s ease; }
@media (hover: hover) {
    .site-drawer a:hover { opacity: .6; }
}
.site-drawer a:focus-visible,
.site-drawer button:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
/* ✕はハンバーガーと同座標（ヘッダーinnerと同枠 max1280/高70/右pad16）。帯はクリック透過 */
.drawer-head {
    position: absolute; top: 0; left: 0; right: 0;
    max-width: 1280px; height: 70px; margin: 0 auto; padding-right: 29px;
    display: flex; align-items: center; justify-content: flex-end;
    pointer-events: none; z-index: 1;
}
.drawer-close {
    appearance: none; border: none; background: transparent;
    cursor: pointer; padding: 12px; margin: -12px; line-height: 0; width: auto; max-width: none;
    pointer-events: auto;
}
.drawer-close svg { width: 20px; height: 20px; display: block; }
.drawer-acc { border-top: 1px solid #50587d; padding: 12px 32px; }
.drawer-acc__head {
    appearance: none; border: none; background: transparent; cursor: pointer;
    width: 100%; max-width: none; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 10px 0; margin: 0; color: #ffffff; font-family: inherit;
    font-size: 15px; font-weight: 700; line-height: 1.4; text-align: left; border-radius: 0;
}
.drawer-acc__chevron { flex: none; width: 20px; height: 20px; transition: transform .3s ease; }
.drawer-acc:not(.is-closed) .drawer-acc__chevron { transform: rotate(180deg); }
.drawer-acc__body { display: grid; grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s ease, visibility .3s ease; }
.drawer-acc.is-closed .drawer-acc__body { grid-template-rows: 0fr; visibility: hidden; }
.drawer-acc__body > .drawer-acc__list { overflow: hidden; min-height: 0; }
.drawer-acc__list {
    list-style: none; margin: 0; padding: 0 0 0 16px;
    display: flex; flex-direction: column; gap: 4px;
}
.drawer-acc__list a { display: block; padding: 10px 0; font-size: 13px; font-weight: 400; line-height: 1.4; }
.drawer-bottom { border-top: 1px solid #50587d; padding: 24px 32px; display: flex; flex-direction: column; gap: 24px; }
.site-drawer .drawer-card {
    display: flex; align-items: center; gap: 16px;
    background: #ffffff; border-radius: 12px; padding: 16px;
    color: #131936; font-size: 12px; line-height: 1.21;
}
.drawer-card__icon { width: 36px; height: 36px; flex: none; }
.drawer-card__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
@media (prefers-reduced-motion: reduce) {
    nav#mobile-menu.site-drawer,
    .site-drawer__panel,
    .drawer-acc__chevron,
    .drawer-acc__body,
    .site-drawer a { transition: none; }
    .site-drawer__panel { transform: none; }
}
