/* =========================
   お支払い方法ページ
   既存ボタン more-btn 使用版
========================= */

#mh-payment-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-payment-renewal * {
  box-sizing: border-box;
}

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

.sp-only {
  display: none;
}

/* =========================
   HERO
========================= */

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

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

.mh-payment-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-payment-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-payment-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-payment-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-payment-important p {
  margin: 0;
}

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

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

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

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

/* =========================
   COMMON
========================= */

.mh-payment-section {
  max-width: 1080px;
  margin: 72px auto 0;
  padding: 0 20px;
}

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

.mh-payment-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-payment-title h2 {
  margin: 0;
  color: var(--mh-red);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
}

/* =========================
   CHECK CARD
========================= */

.mh-payment-check {
  display: grid;
  gap: 18px;
}

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

.mh-payment-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-payment-check__item h3 {
  margin: 0 0 10px;
  color: var(--mh-brown);
  font-size: 20px;
  font-weight: 900;
}

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

/* =========================
   METHOD CARD ICON 上配置版
========================= */

.mh-payment-method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.mh-payment-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-payment-method-card--fee {
  border-top-color: var(--mh-orange);
}

.mh-payment-icon-area {
  width: 100%;
  min-height: 78px;
  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-payment-icon {
  width: auto;
  max-width: 220px;
  max-height: 58px;
  object-fit: contain;
}

.mh-payment-icon--wide {
  max-width: 250px;
  max-height: 62px;
}

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

.mh-payment-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-payment-fee--warn {
  color: var(--mh-brown);
  border-left-color: var(--mh-orange);
}

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

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

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

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

/* =========================
   BOX
========================= */

.mh-payment-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px;
  background: #fff;
  border: 1px solid #ead8c2;

  border-radius: 14px;
}

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

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

.mh-payment-box--cream,
.mh-payment-box--red {
  background: #fffaf4;
}

.mh-payment-box__lead {
  margin-bottom: 20px !important;
  font-weight: 700;
}

/* 枠なしセクション用のリード文 */
.mh-payment-section-lead {
  max-width: 900px;
  margin: 0 auto 20px;
  font-weight: 700;
}

/* =========================
   TABLE
========================= */

.mh-payment-table-wrap {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
}

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

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

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

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

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

/* =========================
   CAUTION
========================= */

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

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

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

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

/* =========================
   FLOW
========================= */

.mh-payment-flow {
  display: grid;
  gap: 20px;
}

.mh-payment-flow__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: stretch;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--mh-border);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(90, 47, 27, .07);
}

.mh-payment-flow__num {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mh-red), var(--mh-dark-red));
  color: #fff;
  border-radius: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}

.mh-payment-flow__body h3 {
  margin: 0 0 6px;
  color: var(--mh-brown);
  font-size: 21px;
  font-weight: 900;
}

.mh-payment-flow__body p {
  margin: 0;
}

/* =========================
   LAST CTA
========================= */

.mh-payment-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-payment-last::before {
  content: "";
  position: absolute;
  inset: auto -10% -50px -10%;
  height: 120px;
  background: rgba(255, 255, 255, .08);
  transform: rotate(-3deg);
}

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

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

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

/* =========================
   SP
========================= */

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

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

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

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

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

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

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

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

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

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

  .mh-payment-check--2,
  .mh-payment-method-grid {
    grid-template-columns: 1fr;
  }

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

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

  .mh-payment-icon {
    max-width: 200px;
    max-height: 52px;
  }

  .mh-payment-icon--wide {
    max-width: 220px;
    max-height: 56px;
  }

  .mh-payment-box {
    padding: 20px;
  }

  .mh-payment-section-lead {
    margin-bottom: 18px;
  }

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

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

  .mh-payment-flow__item {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .mh-payment-flow__num {
    min-height: 48px;
  }

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

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