@charset "UTF-8";
/* ==========================================================================
   大切なお知らせ モーダル（トップページ）
   PC = index.html / SP = sp/index.html 共用
   ========================================================================== */

.notice-modal,
.notice-modal *,
.notice-modal *:before,
.notice-modal *:after {
  box-sizing: border-box;
}

.notice-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.notice-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.notice-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.notice-modal__body {
  position: relative;
  z-index: 1;
  width: 900px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 60px 0 54px;
  border-radius: 10px;
  background: #fdeffd;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック",
    "MS P Gothic", sans-serif;
  font-weight: 600;
  color: #111111;
  text-align: center;
}

/* 閉じるボタン
   ---------------------------------------------------------------------- */
.notice-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.notice-modal__close:before,
.notice-modal__close:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 21px;
  background: #ab69a8;
}

.notice-modal__close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.notice-modal__close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* 見出し（大切なお知らせ）
   ---------------------------------------------------------------------- */
.notice-modal__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 640px;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 0;
  border-top: 1px solid #ab69a8;
  border-bottom: 1px solid #ab69a8;
  font-size: 24px;
  line-height: 1.1;
  color: #ab69a8;
}

.notice-modal__head-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* タイトル
   ---------------------------------------------------------------------- */
.notice-modal__title {
  margin: 20px 0 0;
  font-size: 32px;
  line-height: 1.1;
  color: #111111;
}

.notice-modal__title-num {
  font-size: 40px;
  color: #ab69a8;
}

.notice-modal__title-unit {
  color: #ab69a8;
}

/* リード（ピンク帯）
   ---------------------------------------------------------------------- */
.notice-modal__lead {
  position: relative;
  z-index: 0;
  /* 幅はカンプの754pxが下限。フォント差で文字が入りきらない環境では帯ごと伸びる */
  width: fit-content;
  min-width: min(754px, 100%);
  max-width: 100%;
  margin: 9px auto 0;
  padding: 10px;
  border-radius: 5px;
  background: #fed1fe;
  /* 狭いウィンドウではモーダルごと縮むため、1行を保てるサイズまで追従させる */
  font-size: min(32px, 3.9vw);
  line-height: 1.4;
  color: #111111;
  white-space: nowrap;
}

.notice-modal__lead-em {
  color: #82287e;
}

.notice-modal__br-sp {
  display: none;
}

.notice-modal__marker {
  position: relative;
  display: inline-block;
  padding: 0 4px;
  margin: 0 -4px;
}

.notice-modal__marker:after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  border-radius: 10px;
  background: #fff9d6;
}

/* 診療時間ボックス
   ---------------------------------------------------------------------- */
.notice-modal__hours {
  width: 495px;
  max-width: 100%;
  margin: 17px auto 0;
  padding: 20px 10px;
  border: 1px solid #ab69a8;
  background: #ffffff;
}

.notice-modal__hours-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  color: #111111;
}

.notice-modal__hours-list {
  /* 固定幅にするとフォント差で折り返すため、中身なりの幅にする（カンプ実寸429px相当） */
  width: fit-content;
  max-width: 100%;
  margin: 16px auto 0;
  text-align: left;
}

.notice-modal__hours-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.notice-modal__hours-row + .notice-modal__hours-row {
  margin-top: 10px;
}

.notice-modal__badge {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 5px;
  background: #ab69a8;
  font-size: 16px;
  line-height: 1.1;
  color: #ffffff;
}

.notice-modal__time {
  font-size: 20px;
  line-height: 1.1;
}

.notice-modal__hours-note {
  font-size: 16px;
  line-height: 1.1;
}

/* 注意書き（カレンダーアイコン）
   ---------------------------------------------------------------------- */
.notice-modal__caution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  /* 同上。<br>で指定した2行がそのまま収まる幅になる（カンプ実寸445px相当） */
  width: fit-content;
  max-width: 100%;
  margin: 15px auto 0;
  text-align: left;
}

.notice-modal__caution-icon {
  width: 53px;
  height: 46px;
  flex-shrink: 0;
}

.notice-modal__caution-text {
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid #c1b0c0;
  font-size: 18px;
  line-height: 1.4;
  color: #111111;
}

/* ボタン
   ---------------------------------------------------------------------- */
.notice-modal__buttons {
  display: flex;
  gap: 20px;
  width: 640px;
  max-width: 100%;
  margin: 20px auto 0;
}

.notice-modal__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 58px;
  padding: 20px 30px;
  border-radius: 40px;
  background: #ab69a8;
  font-size: 18px;
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
}

.notice-modal__btn:hover {
  opacity: 0.8;
  color: #ffffff;
  text-decoration: none;
}

.notice-modal__btn:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 0;
  height: 0;
  margin-top: -5px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 10px solid #ffffff;
}

.notice-modal__btn--calendar {
  background: #96926a;
}

/* SP
   ---------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
  .notice-modal {
    padding: 16px;
  }

  .notice-modal__body {
    width: 100%;
    max-width: 336px;
    padding: 40px 24px;
  }

  .notice-modal__close {
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
  }

  .notice-modal__close:before,
  .notice-modal__close:after {
    height: 13px;
  }

  .notice-modal__head {
    width: 100%;
    padding: 6px 0;
    font-size: 20px;
  }

  .notice-modal__head-icon {
    width: 22px;
    height: 22px;
  }

  .notice-modal__title {
    margin-top: 16px;
    font-size: 18px;
  }

  .notice-modal__title-num {
    font-size: 26px;
  }

  .notice-modal__lead {
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    /* カンプは左右10px。1行目が実測で約3px溢れるため左右のみ4pxに */
    padding: 10px 4px;
    font-size: 18px;
    white-space: normal;
  }

  .notice-modal__br-sp {
    display: inline;
  }

  .notice-modal__marker:after {
    height: 5px;
  }

  .notice-modal__hours {
    width: 100%;
    margin-top: 12px;
    padding: 20px 10px;
  }

  .notice-modal__hours-title {
    font-size: 14px;
  }

  .notice-modal__hours-list {
    /* カンプは198px。※注記が折り返すため+6px */
    width: 204px;
    margin-top: 16px;
  }

  .notice-modal__badge {
    padding: 6px 12px;
    font-size: 14px;
  }

  .notice-modal__time {
    font-size: 18px;
  }

  .notice-modal__hours-note {
    width: 100%;
    margin-top: -4px;
    font-size: 14px;
  }

  .notice-modal__caution {
    /* カンプもモーダル左右余白より10pxずつ外側にはみ出す。折り返し回避で+4pxずつ */
    width: calc(100% + 28px);
    max-width: none;
    gap: 8px;
    margin: 12px -14px 0;
  }

  .notice-modal__caution-icon {
    width: 32px;
    height: 28px;
  }

  .notice-modal__caution-text {
    padding-left: 8px;
    font-size: 13px;
  }

  .notice-modal__buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
  }

  .notice-modal__btn {
    min-height: 47px;
    padding: 16px 30px;
    font-size: 15px;
  }
}
