@charset "UTF-8";

/* prescription page */
.mp-prescription-page .mp-main {
  background: var(--mp-white);
}

.mp-prescription-products,
.mp-prescription-category {
  width: var(--mp-content-width);
  margin-right: auto;
  margin-left: auto;
}

.mp-prescription-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 256px;
  overflow: hidden;
  color: var(--mp-white);
  background: var(--mp-blue);
}

.mp-prescription-hero::before,
.mp-prescription-hero::after {
  position: absolute;
  content: "";
  background: url("../../images/guide/_レイヤー_1 (2).svg") center / contain no-repeat;
}

.mp-prescription-hero::before {
  top: 91px;
  left: 0;
  width: 320px;
  height: 239px;
}

.mp-prescription-hero::after {
  display: none;
}

.mp-prescription-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 13px;
  transform: translateY(22px);
}

.mp-prescription-hero__inner::before {
  width: 64px;
  height: 47px;
  content: "";
  background: url("../../images/guide/_レイヤー_1 (1).svg") center / contain no-repeat;
}

.mp-prescription-hero h1 {
  margin: 0;
  color: var(--mp-white);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
}

.mp-prescription-products {
  padding: 47px 0 67px;
}

.mp-prescription-products__intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  grid-template-areas:
    "note"
    "title";
  margin-bottom: 16px;
}

.mp-prescription-products__intro h2,
.mp-prescription-category h2 {
  margin: 0;
  color: var(--mp-white);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.35;
}

.mp-prescription-products__intro h2,
.mp-prescription-category h2 {
  min-height: 75px;
  display: flex;
  align-items: center;
  padding: 0 36px;
  background: #bca300;
}

.mp-prescription-products__intro h2 {
  grid-area: title;
}

.mp-prescription-products__intro p {
  grid-area: note;
  justify-self: end;
  margin: 0;
  color: var(--mp-blue);
  font-size: 14px;
  line-height: 1.4;
}

.mp-prescription-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 58px 17px;
}

.mp-prescription-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--mp-blue);
}

.mp-prescription-card--gold {
  color: #bca300;
}

.mp-prescription-card__image {
  display: grid;
  place-items: center;
  height: 200px;
  margin-bottom: 17px;
  overflow: hidden;
  background: #f1f1f1;
}

.mp-prescription-card__image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height:200px;
  object-fit: contain;
}

.mp-prescription-card__lead {
  min-height: 1.6em;
  margin: 0 0 8px;
  padding-inline: 18px;
  padding-bottom: 8px;
  color: #bca300;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.mp-prescription-card h3 {
  min-height: 2.9em;
  margin: 0 0 10px;
  padding-inline: 18px;
  color: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
}

.mp-prescription-card ul {
  display: grid;
  align-content: start;
  gap: 0px;
  min-height: 80px;
  margin: 0 0 13px;
  padding: 0 18px;
  list-style: none;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 12px;
  line-height: 1.6;
}

.mp-prescription-card li::before {
  content: "・";
}

.mp-prescription-card__note {
  min-height: 1.6em;
  margin: 0 0 2px;
  font-size: 12px;
  line-height: 1.5;
}

.mp-prescription-card__prices {
  display: grid;
  align-content: start;
  gap: 3px;
  min-height: 51px;
  margin-top: auto;
  padding-inline: 18px;
  color: #bca300;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

.mp-prescription-card__prices p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.mp-prescription-card__price-number {
  font-size: 30px;
  padding-left: 3px;
}

.mp-prescription-card__price-symbol {
  font-size: 16px;
  font-weight: 400;
}

.mp-prescription-card__price-small {
  font-size: 12px;
  font-weight: 400;
}

.mp-prescription-card__prices .mp-prescription-card__price-group {
  align-items: center;
  gap: 8px;
  width: 100%;
}

.mp-prescription-card__price-group--label-note {
  align-items: flex-start;
}

.mp-prescription-card__price-group--pc-stack {
  align-items: flex-end;
}

.mp-prescription-card__price-group--pc-stack .mp-prescription-card__price-label-group {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

.mp-prescription-card__price-label-group {
  display: grid;
  gap: 2px;
}

.mp-prescription-card__price-label-note {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

.mp-prescription-card__price-with-note {
  display: grid;
  flex: 1;
  justify-items: start;
  gap: 2px;
}

.mp-prescription-card__price-note {
  justify-self: end;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  text-align: right;
}

@media screen and (min-width: 768px) {
  .mp-prescription-card--gold.mp-prescription-card--title-lines-1 .mp-prescription-card__price-note {
        margin-right: -18px;
      }
}

.mp-prescription-card__price-labels {
  display: grid;
  gap: 1px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

.mp-prescription-card__price-labels--month {
  display: flex;
  gap: 5px;
  align-items: baseline;
}

.mp-prescription-card > a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 55px;
  margin-top: 14px;
  color: var(--mp-white) !important;
  background: #bca300;
  font-size: 15px;
  line-height: 1;
}

.mp-prescription-card > a::after {
  position: absolute;
  right: 16px;
  content: "→";
  font-size: 23px;
}

.mp-prescription-category {
  padding: 44px 0 70px;
}

@media screen and (min-width: 1024px) {
  .mp-prescription-category {
    scroll-margin-top: 120px;
  }
}

.mp-prescription-category.mp-prescription-category--orange {
  padding-bottom: 120px;
}

.mp-prescription-category.mp-prescription-category--gray {
  padding-bottom: 40px;

}

.mp-prescription-category h2 {
  margin-bottom: 20px;
}

.mp-prescription-category--blue h2,
.mp-prescription-card--blue > a {
  background: #48A8E0;
}

.mp-prescription-card--blue,
.mp-prescription-card--blue .mp-prescription-card h3,
.mp-prescription-card--blue .mp-prescription-card__lead,
.mp-prescription-card--blue .mp-prescription-card__prices {
  color: #48A8E0;
}

.mp-prescription-category--orange h2,
.mp-prescription-card--orange > a {
  background: #C07601;
}

.mp-prescription-card--orange h3,
.mp-prescription-card--orange .mp-prescription-card__lead,
.mp-prescription-card--orange .mp-prescription-card__prices {
  color: #C07601;
}

.mp-prescription-category--purple h2,
.mp-prescription-card--purple > a {
  background: #9C7EB2;
}

.mp-prescription-card--purple h3,
.mp-prescription-card--purple .mp-prescription-card__lead,
.mp-prescription-card--purple .mp-prescription-card__prices {
  color: #9C7EB2;
}

.mp-prescription-category--gray h2,
.mp-prescription-card--gray > a {
  background: #AD9C8C;
}

.mp-prescription-card--gray h3,
.mp-prescription-card--gray .mp-prescription-card__lead,
.mp-prescription-card--gray .mp-prescription-card__prices {
  color: #AD9C8C;
}

.mp-prescription-page .mp-line-cta {
  margin-bottom: 82px;
}

@media screen and (max-width: 767px) {
  .mp-prescription-products,
  .mp-prescription-category {
    width: 100%;
  }

  .mp-prescription-hero {
        min-height: 256px;
      }

  .mp-prescription-hero::before {
        top: 116px;
        left: 0px;
        width: 208px;
        height: 155px;
      }

  .mp-prescription-hero::after {
        display: none;
      }

  .mp-prescription-hero__inner {
        gap: 8px;
        transform: translateY(4px);
      }

  .mp-prescription-hero__inner::before {
        width: 64px;
        height: 47px;
      }

  .mp-prescription-hero h1 {
        font-size: 40px;
      }

  .mp-prescription-products {
        padding: 26px 0 10px;
      }

  .mp-prescription-products__intro {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 25px;
      }

  .mp-prescription-products__intro h2,
      .mp-prescription-category h2 {
        min-height: 50px;
        padding: 18px var(--mp-content-gutter);
        font-size: 28px;
      }

  .mp-prescription-products__intro p {
        justify-self: stretch;
        padding: 0 var(--mp-content-gutter);
        font-size: 15px;
        line-height: 1.8;
      }

  .mp-prescription-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 14px;
        padding: 0 var(--mp-content-gutter);
      }

  .mp-prescription-card__image {
        height: clamp(132px, 35vw, 170px);
        margin-bottom: 10px;
      }

  .mp-prescription-card__image > img {
        height: clamp(132px, 35vw, 170px) !important;
      }

  .mp-prescription-card__lead {
        min-height: calc(13px * 1.55 * 2.5);
        margin-bottom: 4px;
        font-size: 13px;
        line-height: 1.55;
        padding-left: 0;
        padding-right: 0;
      }

  .mp-prescription-products .mp-prescription-card__lead {
        display: flex;
        align-items: flex-start;
      }

  .mp-prescription-card h3 {
        min-height: calc((16px * 1.55) + 8px);
        margin-bottom: 8px;
        padding-right: 0;
        padding-left: 0;
        padding-bottom: 8px;
        font-size: 16px;
        line-height: 1.55;
      }

  .mp-prescription-card--title-lines-2 h3 {
        min-height: calc((16px * 1.55 * 2) + 8px);
      }

  .mp-prescription-card ul {
        display: block;
        gap: 1px;
        min-height: 58px;
        margin-bottom: 10px;
        padding-right: 0;
        padding-left: 0;
        padding-bottom: 8px;
        font-size: 12px;
        line-height: 1.5;
      }

  .mp-prescription-products .mp-prescription-card--item-lines-1 ul {
        min-height: calc((12px * 1.5 * 1) + 8px);
      }

  .mp-prescription-products .mp-prescription-card--item-lines-2 ul {
        min-height: calc((12px * 1.5 * 2) + 8px);
      }

  .mp-prescription-products .mp-prescription-card--item-lines-3 ul {
        min-height: calc((12px * 1.5 * 3) + 8px);
      }

  .mp-prescription-products .mp-prescription-card--item-lines-4 ul {
        min-height: calc((12px * 1.5 * 4) + 8px);
      }

  .mp-prescription-products .mp-prescription-card h3,
      .mp-prescription-products .mp-prescription-card ul {
        border-bottom: 1px solid #D9D9D9;
      }

  .mp-prescription-card li {
        display: inline-block;
        margin-right: 0.7em;
      }

  .mp-prescription-card__note {
        font-size: 10px;
      }

  .mp-prescription-card__prices {
        min-height: 46px;
        padding-right: 0;
        padding-left: 0;
      }

  .mp-prescription-card__prices p {
        font-size: 14px;
        line-height: 1.35;
        align-items: flex-start;
      }

  .mp-prescription-card__prices .mp-prescription-card__price-group {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
      }

  .mp-prescription-card__price-labels {
        display: flex;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
      }

  .mp-prescription-card__price-labels--month {
        display: grid;
        gap: 2px;
        width: auto;
      }

  .mp-prescription-card__prices .mp-prescription-card__price-group--label-note {
        flex-direction: row;
        align-items: flex-end;
        gap: 8px;
      }

  .mp-prescription-card__price-group--label-note .mp-prescription-card__price-label-group {
        flex: 0 0 auto;
      }

  .mp-prescription-card__price-group--label-note .mp-prescription-card__price-with-note {
        flex: 1;
        justify-items: start;
      }

  .mp-prescription-card--gold .mp-prescription-card__price-group--note {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: flex-start;
        gap: 2px 8px;
      }

  .mp-prescription-card--gold .mp-prescription-card__price-group--note .mp-prescription-card__price-label-group {
        grid-column: 1;
        grid-row: 2;
        flex: 0 0 auto;
      }

  .mp-prescription-card--gold .mp-prescription-card__price-group--note .mp-prescription-card__price-with-note {
        display: contents;
      }

  .mp-prescription-card--gold .mp-prescription-card__price-group--note .mp-prescription-card__price-with-note > span:first-child {
        grid-column: 2;
        grid-row: 2;
      }

  .mp-prescription-card--gold .mp-prescription-card__price-group--note .mp-prescription-card__price-note {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: auto;
        margin-right: 0;
        text-align: left;
      }

  .mp-prescription-card--orange .mp-prescription-card__prices .mp-prescription-card__price-group {
        flex-direction: row;
        align-items: flex-end;
        gap: 0px;
      }

  .mp-prescription-card--orange .mp-prescription-card__price-group--note {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: flex-start;
        gap: 2px 8px;
      }

  .mp-prescription-card--orange .mp-prescription-card__price-group--note .mp-prescription-card__price-label-group {
        grid-column: 1;
        grid-row: 2;
        flex: 0 0 auto;
      }

  .mp-prescription-card--orange .mp-prescription-card__price-group--note .mp-prescription-card__price-with-note {
        display: contents;
        padding-top: 0;
      }

  .mp-prescription-card--orange .mp-prescription-card__price-group--note .mp-prescription-card__price-with-note > span:first-child {
        grid-column: 2;
        grid-row: 2;
      }

  .mp-prescription-card--orange .mp-prescription-card__price-group--note .mp-prescription-card__price-note {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: auto;
        margin-right: 0;
        text-align: left;
      }

  .mp-prescription-card--orange .mp-prescription-card__price-labels {
        display: grid;
        flex: 0 0 auto;
        gap: 2px;
        width: auto;
        line-height: 1.25;
      }

  .mp-prescription-card--orange .mp-prescription-card__price-with-note {
        padding-top: calc(14px * 1.25 + 2px);
      }

  .mp-prescription-card--orange .mp-prescription-card__price-group--label-note .mp-prescription-card__price-with-note {
        padding-top: 0;
      }

  .mp-prescription-card > a {
        min-height: 47px;
        margin-top: 6px;
        font-size: 15px;
      }

  .mp-prescription-card > a::after {
        right: 9px;
        font-size: 16px;
      }

  .mp-prescription-category {
        padding: 50px 0 10px;
      }

  .mp-prescription-category.mp-prescription-category--orange {
        padding-bottom: 12px;
      }

  .mp-prescription-category.mp-prescription-category--gray {
        padding-bottom: 20px;
      }

  .mp-prescription-category h2 {
        margin-bottom: 30px;
      }

  .mp-prescription-card__price-number {
        font-size: 23px;
      }

  .mp-prescription-page .mp-line-cta {
        margin-bottom: 49px;
      }
}
