@charset "utf-8";



/* ===========================================================
   2. モーダル共通
=========================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  z-index: 999999;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.modal-overlay.is-active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-body {
  position: relative;
  width: 84%;
  max-width: 900px;
  max-height: 84vh;
  padding: 50px 30px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: left;
  cursor: default;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: 0.1s;
}

.modal-overlay.is-active .modal-body {
  opacity: 1;
  transform: translateY(0);
}

.modal-close-icon {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 10;
  color: #aaa;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close-icon:hover {
  color: #333;
}

/* ===========================================================
   3. モーダル内部コンテンツ
=========================================================== */
.modal-content-inner,
.reserve-guide-area {
  font-family: var(--font-shopporimin), serif;
  color: #333;
}

.modal-ttl {
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid #13316A;
  color: #13316A;
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
}

.modal-intro {
  margin-bottom: 25px;
  font-size: 1rem;
  line-height: 1.8;
}

.modal-intro strong {
  color: #13316A;
}

.caution-box {
  margin-top: 40px;
  margin-bottom: 25px;
  padding: 20px;
  border: 1px solid #f44336;
  border-radius: 8px;
  background-color: rgb(244 67 54 / 6%);
}

.caution-title {
  display: block;
  margin-bottom: 8px;
  color: #f44336;
  font-weight: bold;
}

.modal-list {
  margin-bottom: 20px;
  padding: 0;
  list-style: none;
}

.modal-list>li {
  position: relative;
  margin-bottom: 20px;
  padding-left: 1.5em;
  line-height: 1.7;
}

.modal-list>li::before {
  content: "●";
  position: absolute;
  top: 0;
  left: 0;
  color: #13316A;
  line-height: 1.7;
}

.sub-note {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.time-table {
  display: inline-block;
  margin: 10px 0;
  padding: 6px 14px;
  border-left: 4px solid #13316A;
  border-radius: 4px;
  background: #f4f4f4;
  font-size: 0.95rem;
}

.time-table .label {
  margin-right: 10px;
  color: #13316A;
  font-weight: bold;
}

.reserve-guide-area .red {
    color: #F44336;
}

/* ===========================================================
   4. モーダル内ボタン（予防管理など）
=========================================================== */
.modal-selection-area {
  margin: 30px 0;
  text-align: center;
}

.modal-sub-ttl {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: #13316A;
  font-weight: bold;
}

.modal-choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border: 2px solid #13316A;
  border-radius: 10px;
  background: #fff;
  color: #13316A;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-choice span {
  margin-top: 5px;
  color: #666;
  font-size: 12px;
  font-weight: normal;
}

.btn-choice:hover {
  background: #f0f4f8;
}

.btn-choice.is-selected {
  background: #13316A;
  color: #fff;
}

.btn-choice.is-selected span {
  color: #eee;
}

/* ===========================================================
   5. 予約ガイドエリア
=========================================================== */
.reserve-guide-area {
	max-width: 900px;
    margin: 40px auto;
    /*padding: 50px;*/
    background: #fff;
    border-radius: 10px;
}

.reserve-caution-box {
  margin: 30px 0;
  padding: 20px;
  border: 1px solid #d54e21;
  border-radius: 8px;
  background-color: #fdf2f0;
}

.reserve-caution-box .caution-title {
  display: block;
  margin-bottom: 5px;
  color: #d54e21;
  font-weight: bold;
}

.reserve-selection-area {
  margin-bottom: 30px;
  text-align: center;
}

.reserve-sub-ttl {
  margin-bottom: 20px;
  color: #13316A;
  font-size: 1.1rem;
  font-weight: bold;
}

.reserve-choice-buttons {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
}

.btn-reserve-choice {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  border: 2px solid #13316A;
  border-radius: 10px;
  background: #fff;
  color: #13316A;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-reserve-choice span {
  margin-top: 5px;
  color: #666;
  font-size: 0.75rem;
  font-weight: normal;
}

.btn-reserve-choice:hover,
.btn-reserve-choice.is-selected {
  background: #13316A;
  color: #fff;
}

.btn-reserve-choice:hover span,
.btn-reserve-choice.is-selected span {
  color: #fff;
}

.reserve-footer-notes .sub-note {
  color: #666;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 815px) {

/* --- */
.reserve-guide-area {
    padding: 20px;
	margin: 0;
}
  .modal-body {
    width: 88%;
    max-height: 85vh;
    padding: 45px 15px 30px;
  }

  .modal-ttl {
    font-size: 1.2rem;
  }

  .modal-intro {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .modal-list>li {
    margin-bottom: 15px;
    font-size: 0.9rem;
  }

  .caution-box {
    padding: 15px;
    font-size: 0.85rem;
  }

  .reserve-choice-buttons {
    flex-direction: column;
  }

  .btn-reserve-choice {
    width: 100%;
    font-size: 1rem;
  }

  .btn-choice {
    padding: 15px;
    font-size: 16px;
  }

}

/* ===========================================================
   予約セグメント用プレースホルダー（今すぐ相談ボタン）
   parts-contact_v4.php（three.or.jp CTAパーツ）のカレンダー枠用
=========================================================== */
.reservation-placeholder {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  min-height: 230px;
  margin: 0 auto;
  padding: 24px 16px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;

  background: #fff;
  border: solid 2px #13316A;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
}
.reservation-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/reservation-calendar-placeholder.png") center center / contain no-repeat;
    opacity: 0.24;
    filter: blur(3px);
    transform: scale(1.02);
    pointer-events: none;
}
.reservation-placeholder p {
  margin: 0;
  color: #13316A !important;
  font-size: 18px !important;
	font-family: inherit !important;
}

.btn-show-reservation-modal {
  width: min(280px, 90%);
  padding: 12px 18px;
  border: 2px solid #13316A;
  border-radius: 5px;
  background: #fff;
  color: #13316A;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-show-reservation-modal:hover {
  background: #13316A;
  color: #fff;
}
