/* =========================
   配送・送料ページ
   既存ボタン more-btn 使用版
========================= */

#mh-delivery-renewal {
  --mh-red: #a32328;
  --mh-dark-red: #7f171c;
  --mh-yellow: #f6c343;
  --mh-cream: #fff6e6;
  --mh-orange: #f39800;
  --mh-brown: #5a2f1b;
  --mh-text: #333;
  --mh-border: #f0d7b2;
  color: var(--mh-text);
  font-family: inherit;
  line-height: 1.8;
  overflow: hidden;
}

#mh-delivery-renewal * {
  box-sizing: border-box;
}

#mh-delivery-renewal img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sp-only {
  display: none;
}

/* HERO */
.mh-delivery-hero {
  position: relative;
  padding: 76px 20px 60px;
  background:
    linear-gradient(
      rgba(255, 255, 255, .74)
    ),
    url("https://www.mangohouse.jp/asset2023/images/postage/delivery.jpg") center center / cover no-repeat;
  border-radius: 0;
  overflow: hidden;
}

.mh-delivery-hero__inner {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.mh-delivery-kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 20px;
  background: var(--mh-red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  border-radius: 4px;
  transform: rotate(-1deg);
  box-shadow: 6px 6px 0 rgba(163, 35, 40, .12);
}

.mh-delivery-hero h1 {
  margin: 0;
  color: var(--mh-red);
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .04em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}

.mh-delivery-lead {
  max-width: 820px;
  margin: 22px auto 0;
  padding: 16px 20px;
  background: rgba(255, 255, 255, .82);
  border-radius: 8px;
  font-size: 16px;
  text-align: left;
}

.mh-delivery-important {
  max-width: 760px;
  margin: 30px auto 0;
  padding: 20px 24px;
  background: rgba(255, 255, 255, .94);
  border: 2px solid var(--mh-red);
  border-left: 8px solid var(--mh-red);
  text-align: left;
  box-shadow: 8px 8px 0 rgba(163, 35, 40, .12);
}

.mh-delivery-important p {
  margin: 0;
}

.mh-delivery-important__main {
  margin-bottom: 8px !important;
  color: var(--mh-red);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
}

.mh-delivery-hero__btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 30px auto 0;
  flex-wrap: wrap;
}

.mh-delivery-hero__btns .more-btn,
.mh-delivery-last .more-btn {
  margin: 0;
}

#mh-delivery-renewal .more-btn a {
  text-decoration: none;
}

/* COMMON */
.mh-delivery-section {
  max-width: 1080px;
  margin: 72px auto 0;
  padding: 0 20px;
}

.mh-delivery-title {
  text-align: center;
  margin-bottom: 30px;
}

.mh-delivery-title p {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--mh-orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  border-bottom: 3px solid var(--mh-yellow);
}

.mh-delivery-title h2 {
  margin: 0;
  color: var(--mh-red);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
}

/* CHECK CARD */
.mh-delivery-check {
  display: grid;
  gap: 18px;
}

.mh-delivery-check--4 {
  grid-template-columns: repeat(4, 1fr);
}

.mh-delivery-check__item {
  position: relative;
  padding: 30px 22px;
  background: #fff;
  border: 1px solid var(--mh-border);
  border-top: 6px solid var(--mh-red);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(90, 47, 27, .08);
}

.mh-delivery-check__item h3 {
  margin: 0 0 10px;
  color: var(--mh-brown);
  font-size: 20px;
  font-weight: 900;
}

.mh-delivery-check__item p {
  margin: 0;
  font-size: 15px;
}

/* METHOD CARD */
.mh-delivery-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mh-delivery-method-card {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--mh-border);
  border-top: 6px solid var(--mh-red);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(90, 47, 27, .08);
}

.mh-delivery-icon-area {
  width: 100%;
  min-height: 110px;
  margin: 0 0 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffaf4;
  border: 1px solid var(--mh-border);
  border-radius: 12px;
}

.mh-delivery-icon {
  width: auto;
  max-width: 210px;
  max-height: 90px;
  object-fit: contain;
}

.mh-delivery-method-card h3 {
  margin: 0 0 10px;
  color: var(--mh-brown);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.4;
}

.mh-delivery-fee {
  display: inline-block;
  margin: 0 0 14px;
  padding: 3px 12px;
  background: var(--mh-cream);
  color: var(--mh-red);
  font-size: 14px;
  font-weight: 900;
  border-left: 4px solid var(--mh-red);
}

.mh-delivery-method-card p {
  margin: 0 0 12px;
}

.mh-delivery-list {
  margin: 0;
  padding-left: 1.4em;
}

.mh-delivery-list li {
  margin: 5px 0;
}

.mh-delivery-list a {
  color: var(--mh-red);
  font-weight: 700;
  text-decoration: underline;
}

/* DELIVERY MAP */
.mh-delivery-map-box {
  max-width: 980px;
  margin: 0 auto;
}

.mh-delivery-section-lead {
  margin: 0 auto 18px;
  font-weight: 700;
}

.mh-delivery-example {
  margin: 20px 0;
  padding: 20px;
  background: #fffaf4;
  border-left: 6px solid var(--mh-red);
  border-radius: 12px;
}

.mh-delivery-example p {
  margin: 0;
}

.mh-delivery-example p + p {
  margin-top: 10px;
}

.mh-delivery-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 22px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--mh-border);
  border-radius: 12px;
}

.mh-delivery-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.mh-delivery-chip {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.mh-delivery-chip--red {
  background: #d94b3d;
}

.mh-delivery-chip--orange {
  background: #f39a2b;
}

.mh-delivery-chip--green {
  background: #61a65b;
}

.mh-delivery-chip--blue {
  background: #4a86c5;
}

.mh-delivery-map-figure {
  margin: 22px 0 0;
}

.mh-delivery-map-figure figcaption {
  margin-top: 10px;
  color: #6b5a4d;
  font-size: 14px;
  text-align: center;
}

/* お届け目安マップ 拡大表示 */
.mh-delivery-map-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: default;
}

.mh-delivery-map-open img {
  width: 100%;
  height: auto;
  border: 1px solid var(--mh-border);
  border-radius: 14px;
  background: #fff;
}

.mh-delivery-map-zoom {
  display: none;
}

.mh-delivery-map-modal {
  display: none;
}

/* BOX */
.mh-delivery-box {
  max-width: 900px;
  margin: 0 auto 22px;
  padding: 26px;
  background: #fff;
  border: 1px solid #ead8c2;
  border-left: 6px solid var(--mh-red);
  border-radius: 14px;
}

.mh-delivery-box p {
  margin: 0;
}

.mh-delivery-box p + p {
  margin-top: 16px;
}

.mh-delivery-box--cream {
  background: #fffaf4;
}

/* TABLE */
.mh-delivery-table-wrap {
  max-width: 900px;
  margin: 0 auto 22px;
  overflow-x: auto;
}

.mh-delivery-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--mh-border);
}

.mh-delivery-table th,
.mh-delivery-table td {
  padding: 14px 16px;
  border: 1px solid var(--mh-border);
  text-align: left;
  vertical-align: top;
}

.mh-delivery-table th {
  background: var(--mh-red);
  color: #fff;
  font-weight: 900;
}

.mh-delivery-table td {
  background: #fff;
}

.mh-delivery-table tbody tr:nth-child(even) td {
  background: #fffaf4;
}

/* CAUTION */
.mh-delivery-caution {
  margin-top: 22px;
  padding: 20px;
  background: #fff6e6;
  border-left: 6px solid var(--mh-red);
  border-radius: 10px;
}

.mh-delivery-caution--simple {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.mh-delivery-caution p {
  margin: 0;
}

.mh-delivery-caution strong {
  color: var(--mh-red);
}

/* FAQ */
.mh-delivery-faq {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.mh-delivery-faq__item {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--mh-border);
  border-left: 6px solid var(--mh-red);
  border-radius: 14px;
}

.mh-delivery-faq__item h3 {
  margin: 0 0 8px;
  color: var(--mh-brown);
  font-size: 19px;
  font-weight: 900;
}

.mh-delivery-faq__item p {
  margin: 0;
}

/* LAST CTA */
.mh-delivery-last {
  position: relative;
  margin: 74px auto 0;
  padding: 54px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--mh-red), var(--mh-dark-red));
  color: #fff;
  overflow: hidden;
}

.mh-delivery-last::before {
  content: "";
  position: absolute;
  inset: auto -10% -50px -10%;
  height: 120px;
  background: rgba(255, 255, 255, .08);
  transform: rotate(-3deg);
}

.mh-delivery-last > p:first-child {
  position: relative;
  margin: 0 0 24px;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.5;
}

.mh-delivery-last__btns {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mh-delivery-last .more-btn {
  position: relative;
  display: inline-block;
}

/* SP */
@media screen and (max-width: 767px) {
  .sp-only {
    display: block;
  }

  .mh-delivery-hero {
    padding: 50px 16px 44px;
    border-radius: 0;
    background:
      linear-gradient(
        rgba(255, 255, 255, .78)
      ),
      url("https://www.mangohouse.jp/asset2023/images/postage/delivery.jpg") center center / cover no-repeat;
  }

  .mh-delivery-lead {
    font-size: 15px;
    padding: 14px 16px;
  }

  .mh-delivery-important {
    padding: 18px;
  }

  .mh-delivery-important__main {
    font-size: 18px;
  }

  .mh-delivery-hero__btns {
    display: block;
  }

  .mh-delivery-hero__btns .more-btn,
  .mh-delivery-last .more-btn {
    width: 100%;
    margin-top: 12px;
  }

  .mh-delivery-hero__btns .more-btn:first-child {
    margin-top: 0;
  }

  .mh-delivery-hero__btns .more-btn a,
  .mh-delivery-last .more-btn a {
    width: 100%;
  }

  .mh-delivery-section {
    margin-top: 50px;
    padding: 0 16px;
  }

  .mh-delivery-check--4,
  .mh-delivery-method-grid {
    grid-template-columns: 1fr;
  }

  .mh-delivery-check__item,
  .mh-delivery-method-card {
    padding: 22px 18px;
  }

  .mh-delivery-icon-area {
    min-height: 96px;
    margin-bottom: 16px;
    padding: 12px;
  }

  .mh-delivery-icon {
    max-width: 190px;
    max-height: 78px;
  }

  .mh-delivery-legend {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mh-delivery-map-open {
    cursor: pointer;
  }

  .mh-delivery-map-open img {
    border-radius: 8px;
  }

  .mh-delivery-map-zoom {
    display: inline-block;
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 12px;
    background: rgba(163, 35, 40, .92);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
  }

  .mh-delivery-map-modal.is-open {
    display: block;
  }

  .mh-delivery-map-modal__bg {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, .72);
  }

  .mh-delivery-map-modal__content {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 10001;
    width: min(94vw, 900px);
    max-height: 88vh;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 14px 10px 10px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .32);
  }

  .mh-delivery-map-modal__scroll {
    max-height: calc(88vh - 24px);
    overflow: auto;
    border-radius: 8px;
  }

  .mh-delivery-map-modal__scroll img {
    width: 100%;
    min-width: 760px;
    height: auto;
    display: block;
  }

  .mh-delivery-map-modal__close {
    position: absolute;
    right: -10px;
    top: -10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--mh-red);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  }

  body.mh-map-modal-open {
    overflow: hidden;
  }

  .mh-delivery-box,
  .mh-delivery-faq__item {
    padding: 20px;
  }

  .mh-delivery-table th,
  .mh-delivery-table td {
    padding: 12px;
    font-size: 14px;
  }

  .mh-delivery-caution {
    padding: 16px;
  }

  .mh-delivery-last {
    padding: 48px 16px;
  }

  .mh-delivery-last__btns {
    display: block;
  }
}