.price-match,
.price-match *,
.price-match *::before,
.price-match *::after {
  box-sizing: border-box;
}

.price-match {
  --price-match-orange: #e97808;
  --price-match-orange-light: #ff9830;
  --price-match-cream: #faf2de;
  --price-match-text: #222222;
  --price-match-highlight: #fff100;
  --price-match-person: url("https://vaxal-kyutooki.com/wp-content/uploads/notice-1.png");
  --price-match-pattern: url("https://vaxal-kyutooki.com/wp-content/uploads/notice-bg-image.jpg") center / cover no-repeat;
  width: 100vw;
  max-width: none;
  min-width: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background:
    var(--price-match-pattern),
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.22) 0 3px, transparent 3.5px) 0 0 / 18px 18px,
    radial-gradient(circle at 85% 52%, rgba(255, 255, 255, 0.18) 0 3px, transparent 3.5px) 0 0 / 20px 20px,
    linear-gradient(115deg, var(--price-match-orange) 0%, var(--price-match-orange) 64%, var(--price-match-orange-light) 100%);
  color: var(--price-match-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.price-match__inner {
  display: flex;
  justify-content: center;
  padding: clamp(44px, 4.6vw, 88px) 20px;
}

.price-match__card {
  position: relative;
  display: flex;
  width: min(100%, 1248px);
  padding: 80px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  border-radius: 10px;
  background: var(--price-match-cream);
}

.price-match__header {
  position: relative;
  z-index: 2;
  display: flex;
  width: fit-content;
  max-width: calc(100% - 250px);
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding-right: 210px;
  text-align: center;
}

.price-match__title {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 12px;
  row-gap: 0;
  align-items: center;
  justify-items: center;
  margin: 0;
  color: var(--price-match-text);
  font-family: "MOBO-Bold", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(28px, 2.4vw, 46px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: normal;
}

.price-match__title-line {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  white-space: nowrap;
}

.price-match__title-line--middle,
.price-match__title-line--second {
  display: block;
}

.price-match__title-line--middle {
  align-self: end;
  padding-bottom: 5px;
  line-height: normal;
}

.price-match__title-line--second {
  grid-column: 1 / -1;
}

.price-match__title-normal {
  display: inline-flex;
  align-items: flex-end;
  padding-bottom: 5px;
  font-size: clamp(28px, 2.4vw, 46px);
  line-height: normal;
}

.price-match__emphasis {
  position: relative;
  display: inline-flex;
  height: clamp(66px, 5.3vw, 96px);
  align-items: flex-end;
  color: var(--price-match-orange);
  line-height: normal;
  white-space: nowrap;
}

.price-match__dot-char {
  position: relative;
  display: inline-flex;
  height: 100%;
  align-items: flex-end;
  color: var(--price-match-orange);
  font-weight: 700;
  line-height: normal;
  vertical-align: bottom;
}

.price-match__dot-char::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--price-match-orange);
  content: "";
  transform: translateX(-50%);
}

.price-match__yen {
  font-size: clamp(40px, 3.35vw, 64px);
}

.price-match__demo {
  font-size: clamp(35px, 2.95vw, 56px);
}

.price-match__accent {
  position: relative;
  display: block;
  width: 78px;
  height: 103px;
  flex: 0 0 78px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='78' height='103' viewBox='0 0 78 103' fill='none'%3E%3Cpath d='M2.50019 92.2484L56.5972 2.5' stroke='%23E47911' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M20.9644 95.6423L74.6294 56.0957' stroke='%23E47911' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.price-match__accent--left {
  transform: scaleX(-1);
}

.price-match__message {
  position: relative;
  z-index: 3;
  display: flex;
  align-self: stretch;
  padding: 46px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border-radius: 10px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.1);
}

.price-match__message p {
  margin: 0;
  color: var(--price-match-text);
  text-align: center;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: normal;
}

.price-match__message span,
.price-match__message em {
  color: var(--price-match-orange);
  font-style: normal;
}

.price-match__message .price-match__keep,
.price-match__message .price-match__message-line {
  color: var(--price-match-text);
}

.price-match__message .price-match__keep {
  white-space: nowrap;
}

.price-match__message .price-match__keep > span {
  color: var(--price-match-orange);
}

.price-match__message-line {
  white-space: nowrap;
}

.price-match__message p:nth-child(2) {
  line-height: 1.8;
}

.price-match__message p:nth-child(3) em {
  font-weight: 900;
}

.price-match__message strong {
  padding: 0 3px 2px;
  background: linear-gradient(transparent 58%, var(--price-match-highlight) 58%);
  font-weight: 900;
}

.price-match__person {
  position: absolute;
  top: 0;
  right: 96px;
  z-index: 1;
  width: 210px;
  height: 270px;
  background-image: var(--price-match-person);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  pointer-events: none;
}

@media (max-width: 767px) {
  .price-match {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    background-size: auto, 16px 16px, 17px 17px, auto;
  }

  .price-match__inner {
    padding: 24px 16px;
  }

  .price-match__card {
    display: flex;
    width: min(100%, 360px);
    min-height: 0;
    padding: 32px 10px 32px;
    align-items: center;
    gap: 18px;
    border-radius: 6px;
  }

  .price-match__header {
    width: 100%;
    max-width: none;
    align-self: stretch;
    align-items: flex-end;
    gap: 0;
    padding-right: 0;
    overflow: visible;
  }

  .price-match__title {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 28px;
    font-style: normal;
    line-height: normal;
  }

  .price-match__title-line {
    flex-wrap: nowrap;
    gap: 4px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .price-match__title-line--middle,
  .price-match__title-line--second {
    display: block;
  }

  .price-match__title-line--middle {
    align-self: auto;
    padding-bottom: 0;
    line-height: 1.2;
  }

  .price-match__title-normal {
    padding-bottom: 0;
    text-align: center;
    font-size: 28px;
    font-style: normal;
    line-height: 1.2;
  }

  .price-match__emphasis {
    height: 46px;
    line-height: 1.2;
  }

  .price-match__dot-char::before {
    top: -4px;
    width: 6px;
    height: 6px;
  }

  .price-match__dot-char {
    height: 100%;
    line-height: 1.2;
  }

  .price-match__yen {
    color: #e47911;
    font-size: 38px;
    font-style: normal;
    line-height: 1.2;
  }

  .price-match__demo {
    color: #e47911;
    font-size: 28px;
    font-style: normal;
    line-height: 1.2;
  }

  .price-match__accent {
    position: relative;
    width: 34px;
    height: 106px;
    flex-basis: 40px;
    background: none;
    overflow: visible;
  }

  .price-match__accent::before {
    position: absolute;
    top: 0;
    display: block;
    width: 43px;
    height: 106px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='106' viewBox='0 0 50 106' fill='none'%3E%3Cpath d='M11.58 100.146L33.333 2' stroke='%23E47911' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M24.714 92.551L46.293 49.304' stroke='%23E47911' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    content: "";
  }

  .price-match__accent--left::before {
    right: 0;
  }

  .price-match__accent--right::before {
    left: 0;
  }

  .price-match__message {
    width: min(100%, 340px);
    padding: 20px 10px;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }

  .price-match__message p {
    font-size: 22px;
    line-height: normal;
    text-align: left;
  }

  .price-match__message p:nth-child(3) {
    align-self: flex-start;
    width: calc(100% - 104px);
    max-width: 222px;
    text-align: left;
  }

  .price-match__message-line {
    display: block;
    white-space: nowrap;
  }

  .price-match__person {
    top: auto;
    right: 8px;
    bottom: 0;
    z-index: 4;
    width: 120px;
    height: 157px;
    aspect-ratio: 115 / 131;
  }
}

@media (max-width: 374px) {
  .price-match__message p:nth-child(2),
  .price-match__message p:nth-child(3) {
    font-size: 20px;
  }

  .price-match__message p:nth-child(3) {
    width: calc(100% - 112px);
  }
}
