/* 初めての方へ：色素ボタンの指定改行は387px以下で有効 */
body:has(.medical-artmake) .pigment__button .c-btn__text br {
  display: none;
}

@media screen and (max-width: 387px) {
  body:has(.medical-artmake) .pigment__button .c-btn__text br {
    display: inline;
  }
}

/* 初めての方へ：色素カード本文の指定改行は全画面幅で有効 */
body:has(.medical-artmake) .pigment__text br {
  display: inline;
}

@media screen and (max-width: 768px) {
  body:has(.medical-artmake) .pigment__text {
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: left;
  }
}

/* 初めての方へ：申し込みカード本文の個別改行 */
body:has(.medical-artmake) .apply__card .apply__text br {
  display: none;
}

@media screen and (max-width: 631px) {
  body:has(.medical-artmake) .apply__card .apply__text br {
    display: inline;
  }
}

/* 初めての方へ：Preparationのリード文の文字設定 */
body:has(.medical-artmake) .preparation .section-title__lead {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 0.05em;
  color: #333333;
}

/* 初めての方へ：Preparationのリード文は478px以下で指定改行 */
body:has(.medical-artmake) .preparation .section-title__lead br {
  display: none;
}

@media screen and (max-width: 478px) {
  body:has(.medical-artmake) .preparation .section-title__lead br {
    display: inline;
  }
}

/* 初めての方へ：注意事項の注記を左寄せ */
@media screen and (max-width: 579px) {
  body:has(.medical-artmake) .caution__note {
    text-align: left;
  }
}

/* 初めての方へ：Checkセクションの説明文を左寄せ */
@media screen and (max-width: 1159px) {
  body:has(.medical-artmake) .check .section-title__description {
    text-align: left;
  }
}

/* 初めての方へ：申し込みのリード文の改行 */
body:has(.medical-artmake) .apply__lead br {
  display: none;
}

@media screen and (max-width: 399px) {
  body:has(.medical-artmake) .apply__lead br {
    display: inline;
  }
}

/* 初めての方へ：注意事項の説明文を左寄せ */
@media screen and (max-width: 687px) {
  body:has(.medical-artmake) .caution__description {
    text-align: left;
  }
}

/* 初めての方へ：注意事項の見出しの改行 */
body:has(.medical-artmake) .caution__title br {
  display: none;
}

@media screen and (max-width: 472px) {
  body:has(.medical-artmake) .caution__title br {
    display: inline;
  }
}

/* 初めての方へ：施術前の相談リード文の改行 */
body:has(.medical-artmake) .medical-artmake > .medical-artmake__inner > .section-title__lead br {
  display: none;
}

@media screen and (max-width: 459px) {
  body:has(.medical-artmake) .medical-artmake > .medical-artmake__inner > .section-title__lead br {
    display: inline;
  }
}

@media screen and (max-width: 768px) {
  body:has(.medical-artmake) .section-title__lead {
    font-size: 1rem;
  }
}

/* 初めての方へ：スマートフォンでも各セクション見出しを1行に収める */
@media screen and (max-width: 768px) {
  body:has(.medical-artmake) .section-title__ja {
    font-size: min(1.875rem, (100vw - 40px) / var(--firstvisit-title-length, 18.5));
    letter-spacing: 0;
    white-space: nowrap;
  }
  body:has(.medical-artmake) .section-title__ja br {
    display: none;
  }
  .medical-artmake .section-title__ja {
    --firstvisit-title-length: 11.5;
  }
  .caution .section-title__ja {
    --firstvisit-title-length: 15.5;
  }
  .apply .section-title__ja,
  .flow .section-title__ja {
    --firstvisit-title-length: 12.5;
  }
  .check .section-title__ja {
    --firstvisit-title-length: 17.5;
  }
  .preparation .section-title__ja,
  .aftercare .section-title__ja {
    --firstvisit-title-length: 10.5;
  }
  .last .section-title__ja {
    --firstvisit-title-length: 3.5;
  }
}

/* 初めての方へ：狭い画面では導入文を左寄せ */
@media screen and (max-width: 849px) {
  body:has(.medical-artmake) .concept-intro__text {
    text-align: left;
  }
}

/* 初めての方へ：導入見出し（共通パーツへの影響を限定） */
body:has(.medical-artmake) .concept-intro__title {
  color: #665f53;
  white-space: normal;
}

body:has(.medical-artmake) .concept-intro__title br {
  display: none;
}

@media screen and (max-width: 768px) {
  body:has(.medical-artmake) .concept-intro__title {
    font-size: 24px;
    line-height: 1.6;
    letter-spacing: 0;
    text-wrap: wrap;
  }
  body:has(.medical-artmake) .concept-intro__title br {
    display: inline;
  }
}

/* 初めての方へ：長い見出しは文字サイズを保ち、指定位置で改行 */
body:has(.medical-artmake) .caution .section-title__ja br,
body:has(.medical-artmake) .pigment .section-title__ja br,
body:has(.medical-artmake) .check .section-title__ja br,
body:has(.medical-artmake) .last .section-title__lead br,
body:has(.medical-artmake) .aftercare .section-title__lead br {
  display: none;
}

@media screen and (max-width: 768px) {
  body:has(.medical-artmake) .caution .section-title__ja,
  body:has(.medical-artmake) .pigment .section-title__ja,
  body:has(.medical-artmake) .check .section-title__ja {
    font-size: 26px;
    line-height: 1.6;
    white-space: normal;
  }
  body:has(.medical-artmake) .last .section-title__lead,
  body:has(.medical-artmake) .aftercare .section-title__lead {
    font-size: 20px;
    white-space: normal;
  }
  body:has(.medical-artmake) .caution .section-title__ja br,
  body:has(.medical-artmake) .pigment .section-title__ja br,
  body:has(.medical-artmake) .check .section-title__ja br,
  body:has(.medical-artmake) .last .section-title__lead br,
  body:has(.medical-artmake) .aftercare .section-title__lead br {
    display: inline;
  }
}

/* Medical Artmake */
.medical-artmake {
  margin-top: 60px;
  background-color: #fff;
  color: #333;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
}

@media screen and (min-width: 769px) {
  .medical-artmake {
    margin-top: 80px;
  }
}

@media screen and (min-width: 1024px) {
  .medical-artmake {
    margin-top: 100px;
  }
}

/* インナー */
.medical-artmake__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1250px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media screen and (min-width: 769px) {
  .medical-artmake__inner {
    padding-inline: 25px;
  }
}

/* 画像・テキストエリア */
.medical-artmake__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 30px;
  margin-top: 40px;
}

@media screen and (min-width: 769px) {
  .medical-artmake__body {
    gap: 50px;
    margin-top: 50px;
  }
}

@media screen and (min-width: 1024px) {
  .medical-artmake__body {
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
    gap: 100px;
    margin-top: 60px;
  }
}

/* 画像 */
.medical-artmake__image {
  display: block;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

@media screen and (min-width: 1024px) {
  .medical-artmake__image {
    margin-inline: 0;
  }
}

/* テキストエリア */
.medical-artmake__content {
  min-width: 0;
}

/* 本文 */
.medical-artmake__text {
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
  .medical-artmake__text {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .medical-artmake__text {
    font-size: 16px;
  }
}

/* 段落間の余白 */
.medical-artmake__text + .medical-artmake__text {
  margin-top: 20px;
}

@media screen and (min-width: 1024px) {
  .medical-artmake__text + .medical-artmake__text {
    margin-top: 30px;
  }
}

/* Caution セクション */

/* Caution 背景画像 */
.caution {
  position: relative;
  isolation: isolate;
  margin-top: 80px;
  padding-bottom: 80px;
  background-color: #fff;
}

@media screen and (min-width: 769px) {
  .caution {
    margin-top: 100px;
    padding-bottom: 100px;
  }
}

@media screen and (min-width: 1024px) {
  .caution {
    margin-top: 120px;
    padding-bottom: 125px;
  }
}

/* Caution 背景画像 */
.caution::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("/system_panel/uploads/images/top-reason_bg.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

/* PC */
@media screen and (min-width: 1024px) {
  .caution::before {
    top: -100px;
    bottom: 0;
    background-size: 100% 100%;
  }
}

/* インナー */
.caution__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1250px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media screen and (min-width: 769px) {
  .caution__inner {
    padding-inline: 25px;
  }
}

/* 白いボックス */
.caution__box {
  box-sizing: border-box;
  width: 100%;
  margin-top: 40px;
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}

@media screen and (min-width: 769px) {
  .caution__box {
    margin-top: 50px;
    padding: 50px 40px;
  }
}

@media screen and (min-width: 1024px) {
  .caution__box {
    margin-top: 60px;
    padding: 60px 40px;
  }
}

/* ボックス内見出し */
.caution__title {
  margin: 0;
  color: #665f53;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.667;
  letter-spacing: 0.05em;
  text-align: center;
}

@media screen and (min-width: 769px) {
  .caution__title {
    font-size: 26px;
  }
}

@media screen and (min-width: 1024px) {
  .caution__title {
    font-size: 30px;
  }
}

.caution__description {
  margin-top: 40px;
}

/* チェック一覧 */
.caution__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  max-width: 900px;
  margin: 30px auto 0;
  text-align: left;
}

@media screen and (min-width: 769px) {
  .caution__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 10px;
  }
}

@media screen and (min-width: 1024px) {
  .caution__list {
    max-width: 900px;
    column-gap: 60px;
    margin-top: 40px;
  }
}

/* チェック項目 */
.caution__item {
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.025em;
  /* 自然に折り返す */
  position: relative;
  min-width: 0;
  margin: 0;
  padding-left: 30px;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Caution チェック項目 */

/* チェック画像 */
.caution__item::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  display: block;
  width: 18px;
  height: 18px;
  background-image: url("/system_panel/uploads/images/check.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* 注記 */
.caution__note {
  margin: 30px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.05em;
  text-align: center;
}

@media screen and (min-width: 769px) {
  .caution__note {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .caution__note {
    margin-top: 40px;
    font-size: 16px;
  }
}

/* Apply セクション */
.apply {
  position: relative;
  padding-block: 80px;
  background-color: #fff;
  color: #333;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
  isolation: isolate;
}

@media screen and (min-width: 769px) {
  .apply {
    padding-block: 100px;
  }
}

@media screen and (min-width: 1024px) {
  .apply {
    padding-block: 120px;
  }
}

/* Apply 左右のあしらい */

/* 左右共通 */
.apply::before,
.apply::after {
  content: "";
  position: absolute;
  z-index: 0;
  display: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

/* 左側のあしらい */
.apply::before {
  top: 90px;
  left: 2%;
  width: 150px;
  height: 220px;
  background-image: url("/system_panel/uploads/images/staff_deco.png");
}

/* 右側のあしらい */
.apply::after {
  right: 4%;
  bottom: 248px;
  width: 220px;
  height: 180px;
  background-image: url("/system_panel/uploads/images/staff_deco2.png");
}

/* PC：あしらいを表示 */
@media screen and (min-width: 1440px) {
  .apply::before,
  .apply::after {
    display: block;
  }
}

/* コンテンツをあしらいより手前に */
.apply__inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 1275px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* インナー */
@media screen and (min-width: 769px) {
  .apply__inner {
    padding-inline: 25px;
  }
}

/* Apply リード文 */
.apply__lead {
  margin: 30px 0 0;
  color: #665f53;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.667;
  letter-spacing: 0.05em;
  text-align: center;
}

/* タブレット */
@media screen and (min-width: 769px) {
  .apply__lead {
    font-size: 24px;
  }
}

/* PC */
@media screen and (min-width: 1024px) {
  .apply__lead {
    font-size: 30px;
    line-height: 50px;
  }
}

/* カード一覧 */
.apply__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 25px;
  margin-top: 50px;
}

@media screen and (min-width: 769px) {
  .apply__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }
}

@media screen and (min-width: 1024px) {
  .apply__cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 35px;
    margin-top: 60px;
  }
}

/* カード */
.apply__card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 300px;
  padding: 27px 15px;
  border: 1px solid #c0b1a3;
  background-color: #fff;
}

@media screen and (min-width: 769px) {
  .apply__card {
    min-height: 320px;
  }
}

@media screen and (min-width: 1024px) {
  .apply__card {
    min-height: 336px;
  }
}

/* 数字 */
.apply__number {
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0;
  border: 1px solid #665f53;
  border-radius: 50%;
  color: #665f53;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
  text-align: center;
}

/* Apply カードタイトル */
.apply__title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3em;
  /* 2行分の高さ */
  margin: 33px 0 0;
  color: #665f53;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
}

@media screen and (min-width: 769px) {
  .apply__title {
    font-size: 22px;
  }
}

@media screen and (min-width: 1024px) {
  .apply__title {
    font-size: 24px;
  }
}

/* Apply 説明文 */
.apply__text {
  width: 100%;
  min-width: 0;
  margin: 30px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
  .apply__text {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .apply__text {
    font-size: 16px;
  }
}

/* Apply カード レスポンシブ調整 */

/* 768px以下：1列表示 */
@media screen and (max-width: 768px) {
  .apply__cards {
    max-width: 600px;
    margin-inline: auto;
  }
  .apply__text {
    text-align: center;
  }
}

/* 768px〜1023px：2列表示 */
@media screen and (min-width: 769px) and (max-width: 1023px) {
  .apply__text {
    text-align: center;
  }
}

/* ボタン位置 */
.apply .c-btn {
  margin-top: 60px;
}

@media screen and (min-width: 1024px) {
  .apply .c-btn {
    margin-top: 70px;
  }
}

/* Flow セクション */
.flow {
  padding-block: 80px;
  background-color: #f0eeee;
  color: #333;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
}

@media screen and (min-width: 769px) {
  .flow {
    padding-block: 100px;
  }
}

@media screen and (min-width: 1024px) {
  .flow {
    padding-block: 120px;
  }
}

/* インナー */
.flow__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1250px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media screen and (min-width: 769px) {
  .flow__inner {
    padding-inline: 25px;
  }
}

/* ステップ一覧 */
.flow__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 1000px;
  margin: 50px auto 0;
}

@media screen and (min-width: 769px) {
  .flow__list {
    gap: 50px;
    margin-top: 60px;
  }
}

@media screen and (min-width: 1024px) {
  .flow__list {
    gap: 60px;
    margin-top: 80px;
  }
}

/* 各ステップ */
.flow__item {
  width: 100%;
  min-width: 0;
}

/* 数字・ステップタイトル */

/* 数字・タイトルの見出しエリア */
.flow__item-heading {
  width: auto;
  margin-bottom: 20px;
  margin-left: 30px;
}

/* 数字とタイトルを横並び */
.flow__item-heading-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-width: 0;
}

@media screen and (min-width: 769px) {
  .flow__item-heading-inner {
    gap: 20px;
  }
}

/* 数字 */
.flow__number {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 3.4375rem;
  height: 3.4375rem;
  margin: 0;
  border: 1px solid #665f53;
  border-radius: 50%;
  color: #665f53;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
}

@media screen and (min-width: 1024px) {
  .flow__number {
    width: 60px;
    height: 60px;
    font-size: 32px;
  }
}

/* ステップタイトル */
.flow__title {
  margin: 0;
  color: #665f53;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.785;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
  .flow__title {
    font-size: 24px;
  }
}

@media screen and (min-width: 1024px) {
  .flow__title {
    font-size: 28px;
  }
}

@media screen and (max-width: 768px) {
  .flow__item-heading {
    margin-left: 0;
  }
  .flow__item-heading-inner {
    justify-content: flex-start;
    text-align: left;
  }
}

@media screen and (max-width: 375px) {
  .flow__title {
    flex: 1;
    min-width: 0;
    text-align: left;
  }
}

/* 白い説明ボックス */
.flow__box {
  box-sizing: border-box;
  width: 100%;
  min-height: 170px;
  padding: 30px 20px;
  background-color: #fff;
}

@media screen and (min-width: 769px) {
  .flow__box {
    padding: 35px 30px;
  }
}

@media screen and (min-width: 1024px) {
  .flow__box {
    padding: 42px 115px 55px 45px;
  }
}

/* 説明文 */
.flow__text {
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
  .flow__text {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .flow__text {
    font-size: 16px;
  }
}

/* Check セクション */
.check {
  margin-top: 80px;
  background-color: #fff;
  color: #333;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
  position: relative;
  isolation: isolate;
}

@media screen and (min-width: 769px) {
  .check {
    margin-top: 100px;
  }
}

@media screen and (min-width: 1024px) {
  .check {
    margin-top: 120px;
  }
}

/* Check セクション 左右のあしらい */

/* 左右共通 */
.check::before,
.check::after {
  content: "";
  position: absolute;
  z-index: 0;
  display: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

/* 左上：ドットの装飾 */
.check::before {
  top: 60px;
  left: 3%;
  width: 180px;
  height: 180px;
  background-image: url("/system_panel/uploads/images/concept_deco1.png");
}

/* 右下：植物の装飾 */
.check::after {
  right: 3%;
  bottom: 80px;
  width: 220px;
  height: 220px;
  background-image: url("/system_panel/uploads/images/concept_deco2.png");
}

/* PCで表示 */
@media screen and (min-width: 1440px) {
  .check::before,
  .check::after {
    display: block;
  }
}

/* コンテンツを装飾より手前に配置 */
.check__inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 1250px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* インナー */
@media screen and (min-width: 769px) {
  .check__inner {
    padding-inline: 25px;
  }
}

/* カード一覧 */
.check__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 25px;
  margin-top: 50px;
}

@media screen and (min-width: 769px) {
  .check__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }
}

@media screen and (min-width: 1024px) {
  .check__cards {
    gap: 40px;
    margin-top: 70px;
  }
}

/* カード */
.check__card {
  container-type: inline-size;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 290px;
  padding: 35px 25px;
  background-color: #f8f8f8;
  background-image: url("/system_panel/uploads/images/concerns_bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media screen and (min-width: 769px) {
  .check__card {
    padding: 45px 30px;
  }
}

@media screen and (min-width: 1024px) {
  .check__card {
    padding: 55px 45px 65px 35px;
  }
}

/* カード内の数字とタイトル */
.check__card-heading {
  display: flex;
  width: fit-content;
  max-width: 100%;
  padding-bottom: 3px;
  border-bottom: 1px solid #665f53;
  flex-direction: row;
  align-items: baseline;
  gap: 18px;
}

/* 数字 */
.check__number {
  flex: 0 0 auto;
  margin: 0;
  color: #c0b1a3;
  font-family: "Mrs Saint Delafield", cursive;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
}

/* カードタイトル */
.check__card-title {
  min-width: 0;
  margin: 0;
  color: #333;
  font-size: min(20px, (100cqi - 50px) / 12.6);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@media screen and (min-width: 769px) {
  .check__card-title {
    font-size: min(22px, (100cqi - 50px) / 12.6);
  }
}

@media screen and (min-width: 1024px) {
  .check__card-title {
    font-size: min(24px, (100cqi - 50px) / 12.6);
  }
}

/* カード説明文 */
.check__card-text {
  margin: 30px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
  .check__card-text {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .check__card-text {
    font-size: 16px;
  }
}

/* 注記 */
.check__note {
  margin: 48px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.05em;
  text-align: left;
}

@media screen and (min-width: 769px) {
  .check__note {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .check__note {
    font-size: 16px;
  }
}

/* Preparation セクション */
.preparation {
  padding-block: 80px;
  background-color: #fff;
  background-image: url("/system_panel/uploads/images/top-reason_bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #333;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
}

@media screen and (min-width: 769px) {
  .preparation {
    padding-block: 100px;
  }
}

@media screen and (min-width: 1024px) {
  .preparation {
    padding-block: 120px;
  }
}

/* インナー */
.preparation__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1250px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media screen and (min-width: 769px) {
  .preparation__inner {
    padding-inline: 25px;
  }
}

/* カード一覧 */
.preparation__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 0;
}

@media screen and (min-width: 769px) {
  .preparation__list {
    gap: 25px;
    margin-top: 50px;
  }
}

@media screen and (min-width: 1024px) {
  .preparation__list {
    gap: 25px;
    margin-top: 60px;
  }
}

/* Preparation カード */
.preparation__item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 100px;
  padding: 16px 20px;
  background-color: #fff;
}

@media screen and (min-width: 769px) {
  .preparation__item {
    padding-inline: 30px;
  }
}

@media screen and (min-width: 1024px) {
  .preparation__item {
    padding-inline: 40px;
  }
}

/* 数字・テキストの横並び */
.preparation__item-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

/* 数字 */
.preparation__number {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 60px;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0;
  border: 1px solid #665f53;
  border-radius: 50%;
  color: #665f53;
  font-size: 32px;
  line-height: 1;
}

/* 説明文 */
.preparation__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #333;
  font-size: 16px;
  line-height: 1.875;
  letter-spacing: 0.05em;
}

/* 注記 */
.preparation__note {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.05em;
}

@media screen and (min-width: 769px) {
  .preparation__note {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .preparation__note {
    margin-top: 53px;
    font-size: 16px;
  }
}

/* Aftercare セクション */
.aftercare {
  margin-top: 80px;
  background-color: #fff;
  color: #333;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
}

@media screen and (min-width: 769px) {
  .aftercare {
    margin-top: 100px;
  }
}

@media screen and (min-width: 1024px) {
  .aftercare {
    margin-top: 120px;
  }
}

/* インナー */
.aftercare__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1250px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media screen and (min-width: 769px) {
  .aftercare__inner {
    padding-inline: 25px;
  }
}

/* 説明文 */
.aftercare__description {
  margin: 40px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.05em;
  text-align: center;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
  .aftercare__description {
    font-size: 15px;
    margin-top: 50px;
  }
}

@media screen and (min-width: 1024px) {
  .aftercare__description {
    margin-top: 67px;
    font-size: 16px;
  }
}

/* カテゴリー一覧 */
.aftercare__groups {
  display: flex;
  flex-direction: column;
  gap: 45px;
  margin-top: 60px;
}

@media screen and (min-width: 769px) {
  .aftercare__groups {
    gap: 55px;
    margin-top: 70px;
  }
}

@media screen and (min-width: 1024px) {
  .aftercare__groups {
    gap: 62px;
    margin-top: 80px;
  }
}

/* カテゴリー */
.aftercare__group {
  width: 100%;
}

/* Aftercare 見出し */
.aftercare__group-title {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 460px;
  min-height: 50px;
  margin: 0;
  padding: 10px 20px;
  /* 背景と角丸 */
  background-color: #c0b1a3;
  border-radius: 100px;
  /* 文字 */
  color: #fff;
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.025em;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* SP */
@media screen and (max-width: 768px) {
  .aftercare__group-title {
    max-width: 100%;
    min-height: 45px;
    padding: 10px 15px;
    font-size: clamp(12px, 3.5vw, 16px);
  }
}

/* Aftercare 見出し幅の個別調整 */

/* 01 眉アートメイク */
.aftercare__group:nth-child(1) .aftercare__group-title {
  max-width: 360px;
}

/* 02 リップアートメイク */
.aftercare__group:nth-child(2) .aftercare__group-title {
  max-width: 410px;
}

/* 03 アイラインアートメイク */
.aftercare__group:nth-child(3) .aftercare__group-title {
  max-width: 460px;
}

/* アフターケア一覧 */
.aftercare__list {
  display: flex;
  flex-direction: column;
  margin-top: 25px;
}

@media screen and (min-width: 1024px) {
  .aftercare__list {
    margin-top: 33px;
  }
}

/* 1行ごとの項目 */
.aftercare__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 20px;
  border-bottom: 1px dashed #c0b1a3;
}

@media screen and (min-width: 769px) {
  .aftercare__item {
    padding-block: 25px;
  }
}

@media screen and (min-width: 1024px) {
  .aftercare__item {
    gap: 28px;
    padding-block: 34px;
  }
}

.aftercare__item:first-child {
  padding-top: 0;
}

/* 数字 */
.aftercare__number {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  margin: 0;
  border-radius: 50%;
  background-color: #665f53;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

/* 説明文 */
.aftercare__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #333;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.667;
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
  .aftercare__text {
    font-size: 16px;
  }
}

@media screen and (min-width: 1024px) {
  .aftercare__text {
    font-size: 18px;
    line-height: 30px;
  }
}

/* 注記 */
.aftercare__note {
  margin: 44px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.025em;
}

@media screen and (min-width: 769px) {
  .aftercare__note {
    font-size: 16px;
  }
}

@media screen and (min-width: 1024px) {
  .aftercare__note {
    font-size: 18px;
    line-height: 30px;
  }
}

/* Pigment セクション */
.pigment {
  padding-block: 80px;
  margin-top: 80px;
  background-color: #f0eeee;
  color: #333;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
}

@media screen and (min-width: 769px) {
  .pigment {
    padding-block: 100px;
    margin-top: 100px;
  }
}

@media screen and (min-width: 1024px) {
  .pigment {
    padding-block: 120px;
    margin-top: 120px;
  }
}

/* インナー */
.pigment__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1250px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media screen and (min-width: 769px) {
  .pigment__inner {
    padding-inline: 25px;
  }
}

/* Pigment カード一覧 */
.pigment__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 50px;
  width: 100%;
  max-width: 1100px;
  margin: 60px auto 0;
}

/* 769px以上：3列 */
@media screen and (min-width: 769px) {
  .pigment__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 50px;
  }
}

/* 1024px以上 */
@media screen and (min-width: 1024px) {
  .pigment__cards {
    margin-top: 80px;
  }
}

/* 1200px以上 */
@media screen and (min-width: 1200px) {
  .pigment__cards {
    grid-template-columns: repeat(3, minmax(0, 260px));
    justify-content: space-between;
    column-gap: 30px;
  }
}

/* 各カード */
.pigment__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
}

/* 円形部分 */
.pigment__circle {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 260px;
  max-width: 100%;
  height: 255px;
  padding: 20px;
  border: 1px solid #665f53;
  border-radius: 50%;
  text-align: center;
}

/* 768px〜1199px */
@media screen and (min-width: 769px) and (max-width: 1199px) {
  .pigment__circle {
    width: min(100%, 260px);
    height: auto;
    aspect-ratio: 260/255;
    gap: 10px;
    padding: 10px;
  }
  .pigment__number {
    font-size: 32px;
  }
  .pigment__title {
    font-size: 14px;
  }
  .pigment__text {
    font-size: 14px;
  }
}

/* 円の中の数字 */
.pigment__number {
  margin: 0;
  color: #665f53;
  font-family: "Shippori Mincho", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
}

@media screen and (min-width: 1024px) {
  .pigment__number {
    font-size: 50px;
  }
}

/* 円の中のタイトル */
.pigment__title {
  margin: 0;
  color: #665f53;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 1024px) {
  .pigment__title {
    font-size: 18px;
  }
}

/* 円の下の説明文 */
.pigment__text {
  width: 100%;
  margin: 30px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.05em;
  text-align: left;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
  .pigment__text {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .pigment__text {
    margin-top: 40px;
    font-size: 16px;
  }
}

/* ボタン */
.pigment__button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  min-height: 60px;
  margin: 60px auto 0;
}

@media screen and (min-width: 1024px) {
  .pigment__button {
    margin-top: 70px;
  }
}

/* Last セクション */
.last {
  position: relative;
  isolation: isolate;
  padding-block: 80px;
  background-color: #fff;
  color: #333;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
}

@media screen and (min-width: 769px) {
  .last {
    padding-block: 100px;
  }
}

@media screen and (min-width: 1024px) {
  .last {
    padding-block: 120px;
  }
}

/* Last セクション 左右のあしらい */

/* 左右共通 */
.last::before,
.last::after {
  content: "";
  position: absolute;
  z-index: 0;
  display: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

/* 左側のあしらい */
.last::before {
  top: 50%;
  left: 3%;
  width: 280px;
  height: 180px;
  background-image: url("/system_panel/uploads/images/menu_deco_left.png");
  transform: translateY(-50%);
}

/* 右側のあしらい */
.last::after {
  top: 50%;
  right: 3%;
  width: 280px;
  height: 180px;
  background-image: url("/system_panel/uploads/images/menu_deco_right.png");
  transform: translateY(-50%);
}

/* PCのみ表示 */
@media screen and (min-width: 1440px) {
  .last::before,
  .last::after {
    display: block;
  }
}

/* コンテンツをあしらいより手前に配置 */
.last__inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 1250px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* インナー */
@media screen and (min-width: 769px) {
  .last__inner {
    padding-inline: 25px;
  }
}

/* LINEボタン */

/* ボタンを中央配置・上の余白50px */
.last__button-wrap {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

/* Last専用のLINEボタン */
.last .contact__button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  max-width: 320px;
  min-height: 60px;
  padding: 10px 20px;
}

@media screen and (min-width: 769px) {
  .last .contact__button {
    min-height: 60px;
    padding: 10px 20px;
  }
}

/* LINEアイコン */
.last .contact__button::before {
  position: static;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  transform: none;
}

/* LINEで相談のテキスト */
.last .contact__button-text {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  color: #fff;
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 2.5;
  letter-spacing: 0.05em;
}

/* Keep content clear of the fixed desktop buttons. */
@media screen and (min-width: 1024px) and (max-width: 1399px) {
  .medical-artmake__inner,
  .caution__inner,
  .apply__inner,
  .flow__inner,
  .check__inner,
  .preparation__inner,
  .aftercare__inner,
  .pigment__inner,
  .last__inner {
    width: calc(100% - 135px);
    margin-inline-end: 110px;
  }
  .apply__cards {
    column-gap: clamp(20px, (100vw - 1024px) / 10 + 20px, 35px);
  }
  .pigment__cards {
    column-gap: 30px;
  }
}
