.oimall-footer {
  padding: 64px 0 96px;
  background: var(--oim-brown);
  color: #fff;
}

.oimall-footer-inner {
  width: min(1152px, calc(100% - 48px));
  margin: 0 auto;
}

.oimall-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.oimall-footer-logo {
  display: block;
  width: auto;
  height: 40px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.oimall-footer-desc {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  opacity: 0.8;
}

.oimall-footer-links-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.oimall-footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oimall-footer-link {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.oimall-footer-link:hover {
  color: var(--oim-yellow);
}

.oimall-footer-copyright-wrap {
  width: min(1152px, calc(100% - 48px));
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.oimall-footer-copyright {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.55;
}


/* ========================================
  ページ上部へ戻る固定ボタン
======================================== */

.oim-page-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  width: 54px;
  height: 54px;
  padding: 5px 0 4px;
  border: 0;
  border-radius: 50%;
  background: #176fa8;
  color: #ffffff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

.oim-page-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.oim-page-top:hover {
  background: #084d7c;
}

.oim-page-top:focus-visible {
  outline: 3px solid rgba(23, 111, 168, 0.35);
  outline-offset: 3px;
}

.oim-page-top svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.oim-page-top span {
  display: block;
  margin-top: -3px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
}


/* ========================================
  タブレット・PC
======================================== */

@media (min-width: 768px) {
  .oimall-footer {
    padding-bottom: 64px;
  }

  .oimall-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .oimall-footer-links-wrap {
    grid-column: span 2;
  }
}


/* ========================================
  スマートフォン
======================================== */

@media (max-width: 767px) {
  .oim-page-top {
    right: 14px;
    bottom: 18px;
    width: 48px;
    height: 48px;
  }

  .oim-page-top svg {
    width: 20px;
    height: 20px;
  }
}


/* ========================================
  動きを減らす設定
======================================== */

@media (prefers-reduced-motion: reduce) {
  .oim-page-top {
    transition: none;
  }
}