/* ==========================================================================
   meirune — guide.css: the ご利用ガイド free page. Loaded after base.css by the
   mr.css.guide part in the head of the フリーページ layout.
   ========================================================================== */

/* ==========================================================================
   Free page: ご利用ガイド (.mr-guide, in guide.html)

   The breadcrumb, container and title type are shared with the listing pages; this
   adds the jump-link box and the sections. Jump links are plain anchors, so each
   section carries a scroll-margin that clears the sticky header.
   ========================================================================== */

.mr-guide {
  padding: 32px 0;
}

.mr-guide,
.mr-guide * {
  box-sizing: border-box;
}

.mr-guide__title {
  margin-bottom: 40px;
  text-align: center;
}

.mr-guide__nav {
  padding: 20px 10px;
  background: #d6cfc4;
}

.mr-guide__nav-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A white tile per section; the chevron is a rotated corner pointing down. */
.mr-guide__nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 44px;
  padding: 0 14px;
  background: #fff;
  color: var(--mr-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  transition: opacity var(--mr-ease);
}

.mr-guide__nav-link::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--mr-ink);
  border-bottom: 2px solid var(--mr-ink);
  transform: translateY(-2px) rotate(45deg);
}

.mr-guide__nav-link:hover {
  opacity: 0.7;
}

/* Clears the sticky header (121px below md, 122px at md) with room to spare. */
.mr-guide__section {
  margin-top: 20px;
  scroll-margin-top: 140px;
}

.mr-guide__heading {
  margin: 0;
  padding: 10px;
  background: #d6cfc4;
  color: var(--mr-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.mr-guide__body {
  margin-top: 20px;
  padding: 0 10px;
}

/* The copy has no sub headings: each block is a run of paragraphs and the gap between
   blocks does the grouping. */
.mr-guide__block + .mr-guide__block {
  margin-top: 1.9em;
}

.mr-guide__block p {
  margin: 0;
  color: var(--mr-ink);
  font-size: 12px;
  line-height: 1.9;
}

.mr-guide__block p + p {
  margin-top: 0.4em;
}

@media (min-width: 768px) {
  .mr-guide {
    padding: 44px 0;
  }

  .mr-guide__title {
    margin-bottom: 28px;
  }

  .mr-guide__nav {
    padding: 28px;
  }

  .mr-guide__nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }

  .mr-guide__nav-link {
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 104px;
    padding: 14px 10px;
    font-size: 13px;
    text-align: center;
  }

  .mr-guide__nav-link::after {
    width: 11px;
    height: 11px;
    transform: rotate(45deg);
  }

  .mr-guide__section {
    margin-top: 44px;
  }

  .mr-guide__heading {
    padding: 12px 18px;
    font-size: 14px;
  }

  .mr-guide__body {
    margin-top: 40px;
    padding: 0 20px;
  }

  .mr-guide__block p {
    font-size: 13px;
  }
}

@media (min-width: 1280px) {
  .mr-guide {
    padding: 58px 0;
  }

  .mr-guide__title {
    margin-bottom: 34px;
  }

  .mr-guide__nav {
    padding: 34px;
  }

  .mr-guide__nav-list {
    gap: 20px;
  }

  .mr-guide__nav-link {
    gap: 16px;
    min-height: 128px;
    font-size: 14px;
  }

  .mr-guide__section {
    margin-top: 52px;
    scroll-margin-top: 150px;
  }

  .mr-guide__heading {
    padding: 14px 20px;
    font-size: 15px;
  }

  .mr-guide__block p {
    font-size: 14px;
  }
}

@media (min-width: 1600px) {
  .mr-guide {
    padding: 70px 0;
  }

  .mr-guide__title {
    margin-bottom: 100px;
  }

  .mr-guide__nav {
    padding: 40px;
  }

  .mr-guide__nav-list {
    gap: 24px;
  }

  .mr-guide__nav-link {
    gap: 18px;
    min-height: 150px;
    font-size: 20px;
    line-height: 1.6;
  }

  .mr-guide__nav-link::after {
    width: 13px;
    height: 13px;
  }

  .mr-guide__section {
    margin-top: 68px;
    scroll-margin-top: 165px;
  }

  .mr-guide__heading {
    padding: 16px 24px;
    font-size: 20px;
  }

  .mr-guide__block p {
    font-size: 20px;
    line-height: 1.6;
  }
}
