/* Footer ================================== */

.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 {
  min-height: calc(1.4em + 9px);
  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__sub {
  display: block;
  font-size: 0.75em;
}

.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-copy { margin-top: 64px; font-size: 12px; }
  .footer-col__title { font-size: 16px; }
  .footer-col__list { font-size: 14px; }
}
@media (min-width: 1024px) {
  .footer-sitemap { gap: 40px; }
  .footer-copy { margin-top: 96px; }
}

/* Header ================================== */

.site-header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100;  
  background: var(--wp--preset--color--white);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1440px;
  height: 94px;
  margin: 0 auto;
  padding: 0 24px 14px;
}

.site-header__logo {
  display: block;
  flex: none;
  line-height: 0;
}
.site-header__logo img {
  display: block;
  width: auto;
  height: 80px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 10px;
}
.site-header__nav a {
  display: block;
  line-height: 0;
  transition: opacity 0.4s ease;
}
.site-header__nav img {
  display: block;
  width: auto;
  height: clamp(40px, 5.77vw - 19.08px, 64px);
}

.site-header__menu-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.site-header__menu-btn span {
  display: block;
  width: 30px;
  height: 3px;
  background: #000;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .site-header { top: 0; }
}
@media (hover: hover) {
  .site-header__nav a:hover {
    opacity: 0.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header__nav a {
    transition: none;
  }
}

@media (max-width: 1023px) {
  .site-header__inner {
    height: 70px;
    padding: 0 16px 0 12px;
  }
  .site-header__logo img {
    height: 48px;
  }
  .site-header__nav {
    display: none;
  }
}


/* Drawer ================================== */

body.menu-open { overflow: hidden; }

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; }

/* 閉じるボタンの帯：パネルの上部に固定 */
.drawer-head {
    position: absolute;
    top: 12px;
    left: 16px;
    z-index: 1;
}

/* 閉じるボタン */
.site-drawer .drawer-close {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    appearance: none;
    cursor: pointer;
}
.site-drawer .drawer-close svg {
    display: block;
    width: 20px;
    height: 20px;
}

.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 li > span { display: block; padding: 10px 0; font-size: 13px; line-height: 1.4; }
.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; }
}

