/* =============================================
   SITEMAP PAGE  (page-sitemap.html)
   Patterns: sitemap-banner, sitemap-listing.
   ============================================= */

/* Photo banner ------------------------------------------------ */
/* Self-contained — does not rely on the global
   `.wp-block-group .wp-block-cover__image-background` reset in main.css. */
.ib-sitemap-banner .wp-block-cover__image-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  box-shadow: none;
  object-fit: cover;
  object-position: center 19%;
}

.ib-sitemap-banner{
  position: relative;
}

.ib-sitemap-banner::after {
  background: linear-gradient(360deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 59.36%);
  content: "";
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* Card ------------------------------------------------------- */
/* Pulled up so it straddles the banner's bottom edge. */
.ib-sitemap-section {
  position: relative;
  z-index: 1;
  margin-top: -160px;
  padding-bottom: 28px;
}

.ib-sitemap-card {
  margin: 0 auto;
  border-radius: 20px;
}

.ib-sitemap-card__inner .ib-sitemap-card__title{
  font-size: 32px;
}

.ib-sitemap-card__title {
  text-align: center;
  margin: 0 0 20px;
}

/* Inner box. Gradient border via two backgrounds instead of `border-image`,
   which ignores border-radius and would square off the corners:
   layer 1 = the white fill clipped to padding-box, layer 2 = the gradient
   clipped to border-box, showing through the transparent 1px border. */
.ib-sitemap-card__inner {
  margin: 0 70px;
  margin-top: -80px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 40px 80px;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, #0071BC 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Link list -------------------------------------------------- */
.ib-sitemap-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  row-gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ib-sitemap-list__link {
  display: block;
  color: var(--wp--preset--color--primary)!important;
  text-decoration: none;
  padding: 20px 0;
  border-bottom: 1px dashed #9CC7E8;
  font-family: var(--wp--preset--font-family--noto-sans-jp)!important;
}
.ib-sitemap-list__link::first-letter {
  text-transform: uppercase;
}

.ib-sitemap-list__link:hover,
.ib-sitemap-list__link:focus-visible {
  opacity: 0.7;
}

/* Responsive -------------------------------------------------- */
@media screen and (max-width: 767px) {
  .ib-sitemap-banner.wp-block-cover {
    min-height: 240px !important;
  }

  .ib-sitemap-section {
    margin-top: -80px;
    padding-bottom: 40px;
  }

  .ib-sitemap-card__title {
    font-size: 28px!important;
    margin-bottom: 10px;
  }

  .ib-sitemap-card__inner {
    padding: 20px 16px;
    margin: 0;
    margin-top: -60px;
  }

  .ib-sitemap-list {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
}
