:root {
  --color-primary: #22adad;
  --color-primary-dark: #1a8f8f;
  --color-primary-light: #3cc4c4;
  --color-secondary: #17a2b8;
  --color-tertiary: #20c997;
  --color-quaternary: #6f42c1;
  --color-success: #4caf50;
  --color-cta: #ff6b35;
  --color-cta-dark: #e55a2b;
  --color-navy: #1e293b;
  --color-navy-dark: #0f172a;
  --color-white: #ffffff;
  --color-gray: #64748b;
  --color-gray-light: #f1f5f9;
  --color-gray-bg: #f8fafc;
  --color-border: #e2e8f0;
  --header-height-mobile: 70px;
  --header-height-desktop: 90px;
  --mobile-footer-height: 72px;
}

/* =====================================
   Booking Modal Styles
====================================== */
.booking-step--flex{
  display: flex;
	gap: 20px;
	padding: 20px 50px;
  flex-direction: column;
	position: relative;
	h4 {
		font-size: 20px;
		font-weight: bold;
    text-align: center;
	}
}
.booking-step--list{
	display: flex;
	flex-direction: column;
	gap: 5px;
	li{
		text-indent: -1em;
		padding-left: 1em;
		list-style-type: none;
    font-size: 14px;
	}
	.check{
		color: var(--color-primary);
	}
}
.booking-step--zoom{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 30px;
	li {
		list-style-type: none;
	}
	img {
		width: 60px;
	}
}
.booking-step--textt{
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  /* 非表示（初期状態） */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* 5秒後に自動表示 */
  animation: bookingAutoShow 0.4s ease 5s forwards;
}

.booking-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: none;
}

/* ユーザーが閉じた後はauto-showを無効化 */
.booking-modal.modal-closed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

@keyframes bookingAutoShow {
  to {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.booking-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.booking-modal__container {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.3s ease;
  transition: max-width 0.3s ease;
}
@media (min-width: 768px) {
  .booking-modal__container[data-step="1"] {
    max-width: 580px;
  }
  .booking-modal__container[data-step="2"],
  .booking-modal__container[data-step="complete"] {
    max-width: 480px;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.booking-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.booking-modal__close:hover {
  background: #e0e0e0;
  color: #333;
}

/* Progress Bar */
.booking-modal__progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #eee;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.progress-step.active {
  opacity: 1;
}

.progress-step__number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ddd;
  color: #666;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.progress-step.active .progress-step__number {
  background: var(--color-primary);
  color: #fff;
}

.progress-step__label {
  font-size: 11px;
  color: #666;
  white-space: nowrap;
}

/* Booking Step Common */
.booking-step {
  padding: 24px;
}

.booking-step__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 8px;
}

.booking-step__subtitle {
  font-size: 14px;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 20px;
}

/* Step 1: Consultation Types */
.consultation-types {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consultation-type {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  position: relative;
}

.consultation-type:hover {
  border-color: var(--color-primary);
  background: rgba(34, 173, 173, 0.03);
}

.consultation-type.selected {
  border-color: var(--color-primary);
  background: rgba(34, 173, 173, 0.08);
}

.consultation-type__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 173, 173, 0.15), rgba(34, 173, 173, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.consultation-type__content {
  flex: 1;
}

.consultation-type__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.consultation-type__desc {
  display: block;
  font-size: 13px;
  color: #666;
}

.consultation-type__badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

/* Step 2: Weekly Calendar */
.booking-step--calendar {
  padding: 20px 0;
	padding-top: 0;
}

.week-calendar {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.week-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.week-nav {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.week-nav:hover:not(:disabled) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.week-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.week-label {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}

.week-calendar__grid {
  overflow-x: auto;
}

.week-grid__header {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
  position: sticky;
  top: 0;
}

.week-grid__time-label {
  flex-shrink: 0;
  width: 70px;
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-align: center;
  border-right: 1px solid #e0e0e0;
}

.week-grid__days {
  display: flex;
  flex: 1;
}

.week-day-header {
  flex: 1;
  min-width: 50px;
  padding: 8px 4px;
  text-align: center;
  border-right: 1px solid #eee;
}

.week-day-header:last-child {
  border-right: none;
}

.week-day-header__date {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
}

.week-day-header__day {
  display: block;
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

.week-day-header--saturday .week-day-header__date,
.week-day-header--saturday .week-day-header__day {
  color: #2196f3;
}

.week-day-header--sunday .week-day-header__date,
.week-day-header--sunday .week-day-header__day,
.week-day-header--holiday .week-day-header__date,
.week-day-header--holiday .week-day-header__day {
  color: #f44336;
}

.week-grid__body {
  max-height: 200px;
  overflow-y: auto;
}

.week-grid__row {
  display: flex;
  border-bottom: 1px solid #eee;
}

.week-grid__row:last-child {
  border-bottom: none;
}

.week-grid__time {
  flex-shrink: 0;
  width: 70px;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
  border-right: 1px solid #e0e0e0;
  background: #fafafa;
}

.week-grid__slots {
  display: flex;
  flex: 1;
}

.week-slot {
  flex: 1;
  min-width: 50px;
  padding: 10px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  border-right: 1px solid #eee;
}

.week-slot:last-child {
  border-right: none;
}

.week-slot:hover:not(.unavailable):not(.selected) {
  background: rgba(34, 173, 173, 0.1);
}

.week-slot.selected {
  background: rgba(34, 173, 173, 0.15);
}

.week-slot__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.week-slot__icon--available {
  border: 2px solid #4dd0e1;
  color: #4dd0e1;
}

.week-slot__icon--available::before {
  content: '◯';
  font-size: 10px;
}

.week-slot.selected .week-slot__icon--available {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.week-slot.selected .week-slot__icon--available::before {
  content: '✓';
  font-size: 14px;
  font-weight: 700;
}

.week-slot__icon--unavailable {
  color: #bbb;
}

.week-slot__icon--unavailable::before {
  content: '×';
  font-size: 18px;
}

.week-slot.unavailable {
  cursor: not-allowed;
  background: #f5f5f5;
}

.week-calendar__legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 12px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
}

.legend-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.legend-icon--available {
  border: 2px solid #4dd0e1;
  color: #4dd0e1;
}

.legend-icon--available::before {
  content: '◯';
  font-size: 8px;
}

.legend-icon--unavailable {
  color: #bbb;
}

.legend-icon--unavailable::before {
  content: '×';
  font-size: 14px;
}

/* Other Location Input */
.other-location-input {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

/* Booking Buttons */
.booking-step__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.booking-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.booking-btn--back {
  background: #f0f0f0;
  color: #666;
}

.booking-btn--back:hover {
  background: #e0e0e0;
}

.booking-btn--next,
.booking-btn--submit {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
}

.booking-btn--next:hover:not(:disabled),
.booking-btn--submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 173, 173, 0.4);
}

.booking-btn--next:disabled,
.booking-btn--submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.booking-btn--close {
  background: var(--color-primary);
  color: #fff;
  padding: 14px 40px;
}

/* Step 3: Form */
.booking-summary {
  background: linear-gradient(135deg, rgba(34, 173, 173, 0.1), rgba(34, 173, 173, 0.05));
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.booking-summary__type {
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.booking-summary__datetime {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
}

.booking-form__group {
  margin-bottom: 16px;
}

.booking-form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.booking-form__label .required {
  font-size: 11px;
  color: #fff;
  background: #e57373;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.booking-form__label .optional {
  font-size: 11px;
  color: #999;
  background: #eee;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.booking-form__input,
.booking-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s;
}

.booking-form__input:focus,
.booking-form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.booking-form__textarea {
  resize: vertical;
  min-height: 80px;
}

.booking-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.booking-form__sub {
  margin-top: 12px;
}

.booking-form__hint {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.booking-form__row {
  display: flex;
  gap: 12px;
}

.booking-form__row .booking-form__group {
  flex: 1;
}

/* Booking reCAPTCHA */
.booking-form__group--recaptcha {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 8px;
}

.booking-recaptcha-warning {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #e53e3e;
  text-align: center;
}

.booking-btn--submit:disabled {
  background-color: var(--color-gray);
  cursor: not-allowed;
  opacity: 0.6;
}

.booking-btn--submit:disabled:hover {
  background-color: var(--color-gray);
  transform: none;
}

/* Completion Step */
.booking-complete {
  text-align: center;
  padding: 20px 0;
}

.booking-complete__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--color-success);
}

.booking-complete__title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.booking-complete__message {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 24px;
}

.booking-complete__details {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.booking-complete__details-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.booking-complete__details-item:last-child {
  border-bottom: none;
}

.booking-complete__details-label {
  font-size: 13px;
  color: #666;
}

.booking-complete__details-value {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
}

/* Final CTA Button Update */
.final-cta__btn--primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: 18px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.final-cta__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(34, 173, 173, 0.4);
}

.final-cta__btn-sublabel {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}


@media (max-width: 767px) {
	.booking-step--flex{
		flex-direction: column;
		padding: 20px 5%;

		h4 {
			position: static;
			transform: translateX(0%);
		}
	}
  .week-calendar__header{
    padding: 10px 8px;
  }
  .week-grid__time-label {
    width: 50px;
    padding: 12px 5px;
    font-size: 14px;
  }
  .week-grid__time{
    width: 50px;
    font-size: 12px;
    padding: 12px 4px;
  }

  .week-day-header {
    min-width: 36px;
    padding: 8px 2px;
  }
  .week-slot {
    flex: 1;
    min-width: 36px;
  }
  .week-slot__icon{
    width: 20px;
    height: 20px;
  }
  .week-day-header__date{
    font-size: 16px;
  }


  .sp_br{
    display: none;
  }
}