@charset "UTF-8";
/* マンジャロ: cta Figma 112:1991 (981x378) */
.mj-main .mj-cta {
  display: block;
  font-family: var(--glp-font-mincho);
}
.mj-main .mj-cta__banner {
  position: relative;
  display: block;
  height: 378px;
  border: 3px solid transparent; /* 線幅 3px（Figma の stroke）。色は outline で枠の外側に描く */
  border-radius: 10px;
  outline: 3px solid #8c6427; /* Figma の線は外側（981x378 の外に 3px）。border に色を付けると内側の写真に食い込む */
  outline-offset: 0;
  overflow: hidden;
  overflow: clip;
  overflow-clip-margin: border-box; /* 透明な border の下まで写真を見せる（未対応ブラウザは padding 端で切れるだけ） */
  background: #fffdf6;
}
.mj-main .mj-cta__bg {
  position: absolute;
  inset: -3px; /* 透明 border の下まで敷く */
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  max-width: none;
  object-fit: cover;
}
.mj-main .mj-cta__photo {
  position: absolute;
  top: -72.34px; /* Figma の位置（フレーム基準 -69.34 / 570.5）から border 3px を引いた値 */
  left: 567.5px;
  width: 502px;
  height: auto;
  max-width: none;
}
.mj-main .mj-cta__main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 601px;
  height: 100%;
  margin-left: -3px; /* Figma の中央列はフレーム左端から 601px（981 − 右余白380） */
  padding: 12px 0 19px;
}

/* 「まずは医師にご相談ください」リボン */
.mj-main .mj-cta__tag {
  position: relative;
  margin: 0;
  padding: 0;
}
.mj-main .mj-cta__tag span {
  display: block;
  width: 400px;
  height: 50px;
  margin: 3px 0 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 50px;
  letter-spacing: 0.8px;
  text-align: center;
  color: #fff;
  background: linear-gradient(266deg, #8c6427 0.5%, #bf8937 99.5%);
  outline: 1px solid #cba100;
  outline-offset: 3px;
}

/* 見出しコピー */
.mj-main .mj-cta__copy {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  align-items: center;
  gap: 15px; /* Figma の 21px だと代替フォント（Shippori）の字面が 6px 下がるので詰める。箱の高さは padding-bottom で保つ */
  width: 563px;
  margin: 10px 0 0; /* Figma: リボン下端から 10px */
  padding: 17px 40px 17px 45px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  box-shadow: 0 2px 1px #fdf7d9;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #414141;
}
.mj-main .mj-cta__copy-line {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  white-space: nowrap;
}
.mj-main .mj-cta__copy-line:first-child { height: 27px; line-height: 27px; } /* Figma の行枠 27 / 38px（大小の字が混ざると行ボックスが伸びるため高さも固定） */
.mj-main .mj-cta__copy-line--em { height: 38px; line-height: 38px; }
.mj-main .mj-cta__copy-line .b { font-size: 28px; }
.mj-main .mj-cta__copy-line--em { font-size: 30px; }
.mj-main .mj-cta__copy-line .gold {
  font-size: 40px;
  background: linear-gradient(169deg, #8c6427 26%, #ca913a 44%, #8c6427 81%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 下端から ボタン → 15px → 案内 の順に積む（Figma の位置） */
.mj-main .mj-cta__group {
  display: block;
  width: 530px;
  margin-top: auto;
}
.mj-main .mj-cta__ask {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 25.2px;
  letter-spacing: 0.8px;
  text-align: center;
  color: #8c6427;
}
.mj-main .mj-cta__pills {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mj-main .mj-cta__pill {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 150px; /* Figma: 150 / 160 / 190px */
  height: 40px;
  margin: 0;
  padding: 0 0 0 35px;
  border-radius: 50px;
  background: linear-gradient(0deg, rgba(255, 253, 241, 0.8), rgba(255, 255, 255, 0.8));
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  font-size: 20px;
  font-weight: 800;
  line-height: 25.2px;
  letter-spacing: 0.8px;
  white-space: nowrap;
  color: #bf8937;
}
.mj-main .mj-cta__pill:nth-child(2) { width: 160px; padding-left: 23px; gap: 5px; }
.mj-main .mj-cta__pill:nth-child(3) { width: 190px; padding-left: 22px; }
.mj-main .mj-cta__pill img { width: 25px; height: auto; max-height: 33px; }

.mj-main .mj-cta__btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  padding: 22px 25px;
  border: 1px solid #ffe8c6;
  border-radius: 50px;
  background: linear-gradient(267deg, #8c6427 0.5%, #bf8937 99.5%);
  box-shadow: inset 0 5px 3px rgba(203, 167, 114, 0.5), inset 0 -5px 4px rgba(0, 0, 0, 0.25), 0 3px 2px rgba(0, 0, 0, 0.25);
  font-family: var(--glp-font-jp);
  font-size: 24px;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: 0.72px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.mj-main .mj-cta__btn:hover { opacity: 0.85; }
.mj-main .mj-cta__btn img {
  width: 20px; /* 回転後に Figma の 11x20 になる。並びの幅は 11px に保つ */
  height: auto;
  margin: 0 -4.5px;
  transform: rotate(-90deg);
}

@media screen and (max-width: 768px) {
  .mj-main .mj-cta { padding-left: 16px; padding-right: 16px; }
  .mj-main .mj-cta__banner { height: auto; border-width: 2px; outline-width: 2px; border-radius: 8px; }
  .mj-main .mj-cta__photo {
    position: relative;
    top: auto;
    left: auto;
    order: 2;
    display: block;
    width: 70%;
    margin: -20px 0 0 auto;
  }
  .mj-main .mj-cta__banner { display: flex; flex-direction: column; }
  .mj-main .mj-cta__main {
    order: 1;
    width: 100%;
    height: auto;
    margin-left: 0;
    padding: 20px 12px 8px;
  }
  /* SP の文字サイズを既存ページ（genetic_testing 系）にそろえる */
  .mj-main .mj-cta__tag span { width: auto; max-width: 100%; padding: 0 24px; height: 40px; font-size: 15px; line-height: 40px; }
  .mj-main .mj-cta__copy { align-self: stretch; width: auto; gap: 8px; margin-top: 16px; padding: 12px 8px; align-items: center; }
  .mj-main .mj-cta__copy-line { font-size: 15px; white-space: normal; text-align: center; }
  .mj-main .mj-cta__copy-line:first-child,
  .mj-main .mj-cta__copy-line--em { height: auto; line-height: 1.4; }
  .mj-main .mj-cta__copy-line .b { font-size: 16px; }
  .mj-main .mj-cta__copy-line--em { font-size: 16px; }
  .mj-main .mj-cta__copy-line .gold { font-size: 20px; }
  .mj-main .mj-cta__ask { font-size: 14px; line-height: 1.6; }
  .mj-main .mj-cta__pills { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .mj-main .mj-cta__group { width: auto; }
  .mj-main .mj-cta__pills { justify-content: center; }
  .mj-main .mj-cta__pill,
  .mj-main .mj-cta__pill:nth-child(2),
  .mj-main .mj-cta__pill:nth-child(3) { width: auto; height: 34px; padding: 0 12px; font-size: 14px; gap: 4px; }
  .mj-main .mj-cta__pill img { width: 18px; }
  .mj-main .mj-cta__btn { margin: 16px 0 0; padding: 16px 20px; font-size: 15px; gap: 10px; }
  .mj-main .mj-cta__btn img { width: 16px; margin: 0 -3.5px; }
}
