/* =======================
   共通：ヘッダー & フッター
   ======================= */

/* -----------------------
   HEADER
   ----------------------- */

.site-header {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px 4px;
  position: relative;
  z-index: 20;
}

/* メニュー開閉用チェックボックス（非表示） */
.menu-toggle {
  display: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.logo {
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: #145087;
  white-space: nowrap;
}

/* PC用ナビ（SPでは非表示） */
.site-nav--pc {
  display: none;
}

.site-nav--pc ul {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.site-nav--pc a {
  font-size: 12px;
  color: #145087;
  text-decoration: none;
}

.site-nav--pc a.is-current {
  font-weight: bold;
  border-bottom: 1px solid #145087;
}

/* MENUボタン（SP＆PC共通） */
.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: #ffffffdd;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(13, 71, 125, 0.08);
}

.menu-button__label {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #145087;
}

.menu-button__icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 12px;
}

.menu-button__icon .line {
  width: 16px;
  height: 1.5px;
  background: #145087;
  border-radius: 999px;
}

/* オーバーレイメニュー */
.site-nav-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  width: 50vw;
  max-width: 360px;
  background: rgba(10, 56, 102, 0.94);
  color: #fff;
  display: none;
  z-index: 200;
}

.overlay-close {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #ffffff;
}

.site-nav-overlay ul {
  list-style: none;
  padding: 80px 24px 24px;
  margin: 0;
}

.site-nav-overlay li + li {
  margin-top: 20px;
}

.site-nav-overlay a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.12em;
}

/* チェックONで表示 */
.menu-toggle:checked ~ .site-nav-overlay {
  display: block;
}

/* -----------------------
   FOOTER
   ----------------------- */

.site-footer {
  background: #145087;
  color: #ffffff;
  margin-top: 56px;
}

.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

.site-footer__brand {
  font-size: 1p5x;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}

/* ★ 2カラムを横並びにする */
.site-footer__nav-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 常に2列 */
  margin-bottom: 20px;
  align-items: end;
}

.site-footer__nav-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__nav-columns li + li {
  margin-top: 8px;
}

.site-footer__nav-columns a {
  font-size: 11px;
  color: #ffffff;
  text-decoration: none;
}

.site-footer__copy {
  display: block;
  font-size: 10px;
  opacity: 0.8;
}


/* -----------------------
   PC向けレイアウト調整
   ----------------------- */

@media (min-width: 768px) {
  .site-header {
    max-width: 960px;
    padding-top: 20px;
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
  }

  .site-nav--pc {
    display: block;
    margin-left: auto;
  }

  .menu-button {
    margin-left: 16px;
  }

  .site-nav-overlay {
    width: 25vw;
    max-width: 320px;
    padding: 80px 24px 24px;
  }

  .site-nav-overlay a {
    font-size: 14px;
    letter-spacing: 0.10em;
  }

  .site-footer__inner {
    padding-inline: 24px;
  }
}
