/*
 * 店舗・地域で共有するフッター。
 * 対象HTML: .portal-footer.supplied-footer 内の既存共通PHP出力と #portal-footer。
 * 固定CTAのスタイルは /common/shop/css/store.css で管理する。
 */
.portal-footer.supplied-footer {
  --footer-accent: var(--red, #ff0036);
  --footer-link: var(--blue, #00a1ec);
  --footer-dark: #3e3a39;
  --footer-width: min(1200px, calc(100% - 64px));
  color: var(--ink, #303337);
  background: #fff;
}

.portal-footer.supplied-footer *,
.portal-footer.supplied-footer *::before,
.portal-footer.supplied-footer *::after {
  box-sizing: border-box;
}

.portal-footer.supplied-footer :is(.feature_list, .site_banner_box ul, .sns-bk, .footer-link-group ul) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-footer.supplied-footer a {
  text-decoration: none;
}

.portal-footer.supplied-footer a:focus-visible {
  outline: 3px solid var(--footer-accent);
  outline-offset: 3px;
}

/* エリア・沿線・こだわり検索。既存の sp_search.php が出力するテキストリンク。 */
.portal-footer.supplied-footer .search_shop_bk {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 36px;
}

.portal-footer.supplied-footer .search_shop_bk a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 64px;
  padding: 14px 20px;
  border-radius: 7px;
  background: var(--footer-link);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.portal-footer.supplied-footer .search_shop_bk a::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* Asreetおすすめ特集。 */
.portal-footer.supplied-footer .top_feature_bk {
  margin-bottom: 36px;
}

.portal-footer.supplied-footer .midashi_bk {
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 5px solid var(--footer-accent);
}

.portal-footer.supplied-footer .block_title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.portal-footer.supplied-footer .block_text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.portal-footer.supplied-footer .feature_list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.portal-footer.supplied-footer .feature_list li {
  min-width: 0;
}

.portal-footer.supplied-footer .feature_list a {
  display: block;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: #f1f1f1;
}

.portal-footer.supplied-footer .feature_list img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 166 / 159;
  object-fit: cover;
}

.portal-footer.supplied-footer .feature_text {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 60px;
  padding: 10px 28px 10px 12px;
  background: rgb(23 23 23 / 82%);
  color: #fff;
}

.portal-footer.supplied-footer .feature_text::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 13px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.portal-footer.supplied-footer .feature_text h3 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.portal-footer.supplied-footer .feature_text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

/* 共通バナー。 */
.portal-footer.supplied-footer .site_banner_box {
  margin-bottom: 36px;
}

.portal-footer.supplied-footer .site_banner_box ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.portal-footer.supplied-footer .site_banner_box li {
  min-width: 0;
}

.portal-footer.supplied-footer .site_banner_box a,
.portal-footer.supplied-footer .site_banner_box img {
  display: block;
  width: 100%;
}

.portal-footer.supplied-footer .site_banner_box img {
  height: auto;
  aspect-ratio: 1041 / 336;
  object-fit: contain;
}

.portal-footer.supplied-footer .aibot-bk {
  margin-bottom: 28px;
}

/* サイトマップ。 */
.portal-footer.supplied-footer #portal-footer {
  padding: 30px 0 100px;
  background: var(--footer-dark);
  color: #fff;
}

.portal-footer.supplied-footer #portal-footer .footer_bk.portal-footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  width: var(--footer-width);
  max-width: 100%;
  margin: 0 auto;
}

.portal-footer.supplied-footer #portal-footer :is(.footer_logo, .footer_text, .copy_bk) {
  grid-column: 1 / -1;
}

.portal-footer.supplied-footer .footer_logo .catch {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.5;
}

.portal-footer.supplied-footer .link_bk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portal-footer.supplied-footer .link_bk p {
  margin: 0;
}

.portal-footer.supplied-footer .link_bk img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.portal-footer.supplied-footer .sns-bk {
  display: flex;
  align-items: center;
  gap: 18px;
}

.portal-footer.supplied-footer .sns-bk a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.portal-footer.supplied-footer .footer-link-group {
  min-width: 0;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 32%);
}

.portal-footer.supplied-footer .footer-link-group :is(h4, .footer-link-title) {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.portal-footer.supplied-footer .footer-link-group ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.portal-footer.supplied-footer .footer-link-group a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.portal-footer.supplied-footer .footer_text {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / 32%);
  color: #d0cccb;
  font-size: 12px;
  line-height: 1.5;
}

.portal-footer.supplied-footer .footer_text p {
  margin: 0;
}

.portal-footer.supplied-footer .copy_bk {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
}

@media (hover: hover) {
  .portal-footer.supplied-footer .search_shop_bk a:hover {
    background: #0089cd;
  }

  .portal-footer.supplied-footer :is(.feature_list a, .site_banner_box a):hover {
    opacity: .88;
  }

  .portal-footer.supplied-footer .footer-link-group a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

@media (max-width: 1099px) {
  .portal-footer.supplied-footer .feature_list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-footer.supplied-footer .site_banner_box ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .portal-footer.supplied-footer {
    --footer-width: calc(100% - 32px);
  }

  .portal-footer.supplied-footer .search_shop_bk {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 30px;
  }

  .portal-footer.supplied-footer .search_shop_bk a {
    min-height: 54px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .portal-footer.supplied-footer .block_title {
    font-size: 18px;
  }

  .portal-footer.supplied-footer .block_text {
    font-size: 12px;
  }

  .portal-footer.supplied-footer .feature_list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .portal-footer.supplied-footer .feature_text {
    min-height: 0;
    padding: 8px 20px 8px 8px;
  }

  .portal-footer.supplied-footer .feature_text::after {
    right: 7px;
    width: 6px;
    height: 6px;
  }

  .portal-footer.supplied-footer .feature_text h3 {
    font-size: 13px;
  }

  .portal-footer.supplied-footer .feature_text p {
    font-size: 11px;
  }

  .portal-footer.supplied-footer .site_banner_box ul {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portal-footer.supplied-footer #portal-footer .footer_bk.portal-footer-inner {
    grid-template-columns: 1fr;
  }

  .portal-footer.supplied-footer .link_bk {
    gap: 12px;
  }

  .portal-footer.supplied-footer .link_bk > p {
    max-width: 48%;
  }

  .portal-footer.supplied-footer .sns-bk {
    gap: 12px;
  }

  .portal-footer.supplied-footer .footer-link-group ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
  }
}

/* ページトップ削除時に失われていた共通幅を復元。外部PHPのHTMLはそのまま。 */
.portal-footer.supplied-footer > :is(.search_shop_bk,.top_feature_bk,.site_banner_box,.aibot-bk) {
  width:var(--footer-width);
  max-width:100%;
  margin-left:auto;
  margin-right:auto;
}
