/* =========================
   ペアルック親ページ
   matching-renewal.css
========================= */

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

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

#mh-matching-renewal a {
  text-decoration: none;
}

.sp-only {
  display: none;
}

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

.mh-matching-hero {
  position: relative;
  padding: 76px 20px 60px;
  background:
    linear-gradient(
      rgba(255, 255, 255, .72)
    ),
    url("https://www.mangohouse.jp/asset2023/images/1st_birthday/11.jpg") center center / cover no-repeat;
  overflow: hidden;
}

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


.mh-matching-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-matching-important {
  max-width: 760px;
  margin: 30px auto 0;
  padding: 20px 24px;
  background: rgba(255, 255, 255, .83);
  border-radius:10px;
  text-align: left;
  box-shadow: 8px 8px 0 rgb(135 135 135 / 12%);
}

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

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

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

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

.mh-matching-nav-section {
  margin-top: 40px;
}

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

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

/* =========================
   MAIN CARD
========================= */

.mh-matching-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.mh-matching-main-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--mh-border);
  border-top: 6px solid var(--mh-red);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(90, 47, 27, .08);
}

.mh-matching-main-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  overflow: hidden;
}

.mh-matching-main-card__image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
}

.mh-matching-label {
  display: inline-block;
  margin: 0 0 10px !important;
  padding: 3px 12px;
  background: var(--mh-cream);
  color: var(--mh-red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  border-left: 4px solid var(--mh-red);
}

.mh-matching-main-card h3 {
  margin: 0 0 10px;
  color: var(--mh-brown);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.45;
}

.mh-matching-main-card p {
  margin: 0 0 16px;
}

.mh-matching-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.mh-matching-list li {
  padding: 4px 10px;
  background: #fff0d2;
  color: var(--mh-brown);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

#mh-matching-renewal .more-btn {
  margin: 0;
  text-align: center;
}

#mh-matching-renewal .more-btn a {
  display: inline-block;
}

/* =========================
   SCENE
========================= */

.mh-matching-scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.mh-matching-scene-card {
  padding: 26px 20px;
  background: #fffaf4;
  border: 1px solid var(--mh-border);
  border-left: 6px solid var(--mh-red);
  border-radius: 14px;
}

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

.mh-matching-scene-card p {
  margin: 0;
}

/* =========================
   POINT
========================= */

.mh-matching-point-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.mh-matching-point-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  background: var(--mh-red);
  color: #fff;
  border-radius: 50%;
  font-weight: 900;
}

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

.mh-matching-point-card p {
  margin: 0;
}

/* =========================
   GUIDE
========================= */

.mh-matching-guide-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--mh-border);
  border-left: 6px solid var(--mh-red);
  border-radius: 14px;
}

.mh-matching-guide-box p {
  margin: 0;
}

.mh-matching-guide-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

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

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

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

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

/* PCボタンつぶれ対策 */
@media screen and (min-width: 768px) {
  #mh-matching-renewal .more-btn {
    width: auto !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  #mh-matching-renewal .more-btn a {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    min-width: 220px !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
}

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

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

  .mh-matching-hero {
    padding: 50px 16px 44px;
  }

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

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

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

  .mh-matching-card-grid,
  .mh-matching-scene-grid,
  .mh-matching-point-grid {
    grid-template-columns: 1fr;
  }

  .mh-matching-main-card {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .mh-matching-main-card__image {
    min-height: auto;
    padding: 20px;
  }

  .mh-matching-main-card__image img {
    width: 150px;
    height: 150px;
  }

  .mh-matching-guide-box {
    padding: 22px 18px;
  }

  .mh-matching-guide-btns {
    display: block;
  }

  #mh-matching-renewal .more-btn {
    width: 100%;
    margin-top: 12px;
  }

  #mh-matching-renewal .more-btn a {
    width: 100%;
    display: block;
    white-space: normal;
  }

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

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