/* ================================
   Footer (Bizpost)
================================ */

/* nav */
.footerMainNav {
  margin: var(--L) auto;
}

/* list */
.footerMainNav__list {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

/* item */
.footerMainNav__item {
  flex: 1;
  text-align: center;
}

/* link */
.footerMainNav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: var(--S) var(--XS);
  color: var(--color-text-primary);
  font-weight: 700;
  text-decoration: none;
}

.footerMainNav__link:hover {
  text-decoration: none;
  opacity: 0.7;
}

/* icon */
.footerMainNav__icon {
  display: block;
  margin: 0 auto;
}

/* label */
.footerMainNav__label {
  font-size: 18px;
  color: var(--color-texticon-primary);
}

/* border（既存 footer.main の思想に合わせる） */
.footerMainNav__item + .footerMainNav__item {
  border-left: 1px solid var(--color-separate-secondary);
}

/* footer.common .group small {
  color: #fff;
} */

/* ================================
   TAB
================================ */
@media screen and (max-width: 1330px) {
  .footerMainNav__bottomWrap {
    padding: 0 var(--M);
  }
}

/* ================================
   SP
================================ */
@media screen and (max-width: 767px) {

  .footerMainNav {
    margin: 0;
  }

  .footerMainNav__list {
    display: block;
  }

  .footerMainNav__item {
    text-align: left;
  }

  .footerMainNav__item + .footerMainNav__item {
    border-left: none;
    border-top: 1px solid var(--color-separate-secondary);
  }

  .footerMainNav__link {
    position: relative;
    flex-direction: row;
    padding-right: 40px; /* 矢印分の余白 */
  }

  /* SP用 右矢印 */
  .footerMainNav__link::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 28px;
    height: 36px;
    transform: translateY(-50%);
    background-image: url("/bizpost/assets/img/components/footer/arrow.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
  }

  .footerMainNav__icon {
    margin: 0;
  }
}

/* ================================
   SP Fixed Menu
   コンポーネントですが、フッダー付随なのでここに書きます
================================ */
.spFixedMenu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-separate-secondary);
  box-shadow: 0 -2px 4px rgba(11, 42, 58, 0.1);
}

.spFixedMenu__inner {
  padding: var(--X3S) var(--XS);
}


/* actions */
.spFixedMenu__actions {
  display: flex;
  align-items: center;
  gap: var(--X3S);
}

.spFixedMenu__title {
  flex: 1;
  min-width: 0;
  font-size: var(--font-xs);
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}

/* 共通ボタン */
.spFixedMenu__btn {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--X4S);
  padding: var(--X4S) var(--X3S);
  border-radius: var(--radius-m);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
}

/* 資料 */
.spFixedMenu__btn--doc {
  flex: 0.8;
  min-width: 74px;
  background: #3D86BA;
  color: #fff;
  /* padding: var(--X4S) var(--X2S); */
}

/* 申込・相談 */
.spFixedMenu__btn--contact {
  flex: 1.6;
  min-width: 176px;
  background: #CC0101;
  color: #fff;
  flex-direction: column;
}

/* アイコン */
.spFixedMenu__btnIcon {
  width: 24px;
  height: 24px;
  display: block;
}

/* ラベル */
.spFixedMenu__btnLabel {
  font-size: var(--font-xs);
  line-height: 1.2;
}

/* 注釈（小さめ） */
.spFixedMenu__btnSub {
  font-size: var(--font-xxs);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* PCでは非表示 */
@media screen and (min-width: 768px) {
  .spFixedMenu {
    display: none !important;
  }
}


@media (max-width: 768px) {
  .StickContactBtns ~ footer {
    padding-bottom: 80px;
  }
}

/* 旧サイトのCSSの影響でフッダー部分の文字の大きさが揃わないので固定値で上書き */
/* font-xsとかだと基準値がずれて当たらない */
@media (max-width: 768px) {
  footer.common .inner nav.sub ul li {
    font-size: 14px;
  }

  footer.common .group small {
    font-size: 12px
  }
}

/* 幅767pxの時、フッターのロゴ（赤枠内のロゴ）が少し上側に寄っていたため、中心に来るよう調整 */
footer.common .inner .groupLink .link a {
  display: flex;
  align-items: center;
  padding: 0 1em 0 32px; 
  min-height: 100px;
}