:root {
  --plugin-yellow: #ffda4a;
  --plugin-yellow-soft: #fff6c7;
  --plugin-green: #01a081;
  --plugin-green-dark: #00856d;
  --plugin-green-soft: #e5f6f1;
  --plugin-orange: #f56401;
  --plugin-ink: #352b25;
  --plugin-muted: #706861;
  --plugin-line: #eadfce;
  --plugin-cream: #fffaf0;
}

/* Booking Package */
.booking-plugin-wrap {
  position: relative;
  max-width: 1120px;
  margin: 42px auto 72px;
  color: var(--plugin-ink);
  font-family: "Noto Sans JP", sans-serif;
}

.booking-plugin-wrap .start_booking_package,
.booking-plugin-wrap .booking-package {
  width: 100% !important;
  max-width: 1120px !important;
  color: var(--plugin-ink) !important;
  font-family: inherit !important;
}

.booking-plugin-wrap .booking-package {
  overflow: hidden;
  border: 1px solid var(--plugin-line) !important;
  border-radius: 28px !important;
  background: #fff !important;
  box-shadow: 0 18px 44px rgba(53, 43, 37, .08);
}

.booking-plugin-wrap .calendarHeader {
  min-height: 86px !important;
  padding: 18px 24px !important;
  border: 0 !important;
  background: linear-gradient(105deg, var(--plugin-yellow-soft), var(--plugin-green-soft)) !important;
  color: var(--plugin-ink) !important;
}

.booking-plugin-wrap .calendarHeader .calendarData,
.booking-plugin-wrap #current_date_in_header {
  font-size: 25px !important;
  font-weight: 800 !important;
  letter-spacing: .03em;
}

.booking-plugin-wrap .calendarHeader .arrowLeft,
.booking-plugin-wrap .calendarHeader .arrowRight {
  display: grid !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  place-items: center;
  border: 0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: var(--plugin-green) !important;
  box-shadow: 0 5px 16px rgba(1, 160, 129, .14);
  overflow: hidden;
  font-size: 0 !important;
  line-height: 1 !important;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.booking-plugin-wrap #change_calendar_return > span,
.booking-plugin-wrap #change_calendar_next > span {
  display: none !important;
}

.booking-plugin-wrap #change_calendar_return .arrowFont,
.booking-plugin-wrap #change_calendar_next .arrowFont {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  place-items: center;
  font-size: 32px !important;
  line-height: 1 !important;
}

.booking-plugin-wrap .calendarHeader .arrowLeft:hover,
.booking-plugin-wrap .calendarHeader .arrowRight:hover {
  transform: translateY(-2px);
  background: var(--plugin-green) !important;
  color: #fff !important;
}

.booking-plugin-wrap .calendar {
  overflow: hidden;
  border: 0 !important;
  background: #fff !important;
}

.booking-plugin-wrap .calendar .week_slot {
  min-height: 52px !important;
  border-color: #f1e8db !important;
  background: #fff9dc !important;
  color: var(--plugin-ink) !important;
  font-weight: 700 !important;
}

.booking-plugin-wrap .calendar .week_slot.sun { color: var(--plugin-orange) !important; }
.booking-plugin-wrap .calendar .week_slot.sat { color: var(--plugin-green) !important; }

.booking-plugin-wrap .calendar .day_slot {
  min-height: 94px !important;
  border-color: #f0e8dd !important;
  background: #f7f5f2 !important;
  color: #aaa39c !important;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.booking-plugin-wrap .calendar .day_slot .dateField {
  padding: 13px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.booking-plugin-wrap .calendar .day_slot.available_day {
  position: relative;
  cursor: pointer;
  background: #fff !important;
  color: var(--plugin-ink) !important;
  box-shadow: inset 0 0 0 2px var(--plugin-yellow);
}

.booking-plugin-wrap .calendar .day_slot.available_day::after {
  position: absolute;
  right: 10px;
  bottom: 9px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--plugin-green-soft);
  color: var(--plugin-green-dark);
  content: "予約可";
  font-size: 11px;
  font-weight: 700;
}

.booking-plugin-wrap .calendar .day_slot.available_day:hover {
  z-index: 2;
  transform: translateY(-2px);
  background: var(--plugin-yellow-soft) !important;
  box-shadow: inset 0 0 0 3px var(--plugin-yellow), 0 8px 18px rgba(53, 43, 37, .1);
}

/* Booking Package keeps its generic `available_day` class on manually paused
   dates. Treat those dates as closed so a paused day never advertises itself
   as bookable. */
.booking-plugin-wrap .calendar .day_slot.available_day.closingDay {
  cursor: default !important;
  background: #f7f5f2 !important;
  color: #aaa39c !important;
  box-shadow: none;
}

.booking-plugin-wrap .calendar .day_slot.available_day.closingDay::after {
  display: none;
}

.booking-plugin-wrap .calendar .day_slot.available_day.closingDay:hover {
  transform: none;
  background: #f7f5f2 !important;
  box-shadow: none;
}

.booking-plugin-wrap .calendar .day_slot.today {
  box-shadow: inset 0 0 0 2px var(--plugin-orange) !important;
}

.booking-plugin-wrap .calendar .day_slot.pastDay { opacity: .62; }

.booking-plugin-wrap .title,
.booking-plugin-wrap #booking-package_serviceTitle,
.booking-plugin-wrap #booking-package_inputFormPanel > div:first-child {
  padding: 24px 28px !important;
  border: 0 !important;
  background: linear-gradient(105deg, var(--plugin-yellow-soft), var(--plugin-green-soft)) !important;
  color: var(--plugin-ink) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  text-align: center;
}

.booking-plugin-wrap .list,
.booking-plugin-wrap .schedule,
.booking-plugin-wrap .course {
  border-color: var(--plugin-line) !important;
  background: #fff !important;
  color: var(--plugin-ink) !important;
}

.booking-plugin-wrap .list:hover,
.booking-plugin-wrap .schedule:hover,
.booking-plugin-wrap .course:hover {
  background: var(--plugin-yellow-soft) !important;
}

.booking-plugin-wrap #booking-package_inputFormPanel .row {
  display: grid !important;
  grid-template-columns: minmax(190px, 28%) 1fr;
  align-items: center;
  gap: 22px;
  min-height: 92px;
  padding: 20px 28px !important;
  border-color: #f0e8dd !important;
  background: #fff !important;
}

/* Keep Booking Package's generated fields in the requested reading order. */
.booking-plugin-wrap #booking-package_inputFormPanel {
  display: flex !important;
  flex-direction: column;
}

.booking-plugin-wrap #booking-package_inputFormPanel > * { order: 20; }
.booking-plugin-wrap #reservationHeader { order: 0; }
.booking-plugin-wrap #booking-package_inputFormPanel > .row:nth-child(2) { order: 1; }
.booking-plugin-wrap #booking-package_totalCost {
  display: none !important;
  order: 2;
}
.booking-plugin-wrap #booking-package_inputFormPanel > .row:has(#booking_package_input_first_name) { order: 3; }
.booking-plugin-wrap #booking-package_inputFormPanel > .row:has(#booking_package_input_email) { order: 4; }
.booking-plugin-wrap #booking-package_inputFormPanel > .row:has(#booking_package_input_last_name) { order: 5; }
.booking-plugin-wrap #booking-package_inputFormPanel > .row:has(#booking_package_input_phone) { order: 6; }
.booking-plugin-wrap #booking-package_inputFormPanel > .row:has(#booking_package_input_grade) { order: 7; }
.booking-plugin-wrap #booking-package_inputFormPanel > .row:has(#booking_package_input_programming_experience) { order: 8; }
.booking-plugin-wrap #booking-package_inputFormPanel > .row:has(#booking_package_input_notes) { order: 9; }
.booking-plugin-wrap #booking-package_inputFormPanel > .row:has(.form_checkbox) { order: 10; }
.booking-plugin-wrap #booking_package_captchaPanel { order: 11; }
.booking-plugin-wrap #paymentPanel { order: 12; }
.booking-plugin-wrap #nextAndReturnPanel { order: 13; }

.booking-plugin-wrap #booking-package_inputFormPanel .row:nth-child(even) {
  background: #fffdf8 !important;
}

.booking-plugin-wrap #booking-package_inputFormPanel .row .name {
  color: var(--plugin-ink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

.booking-plugin-wrap #booking-package_inputFormPanel .row .name a {
  color: var(--plugin-green-dark) !important;
  text-decoration-color: var(--plugin-yellow) !important;
  text-decoration-thickness: 2px;
}

.booking-plugin-wrap #booking-package_inputFormPanel .row .value {
  width: 100% !important;
}

.booking-plugin-wrap .form_text,
.booking-plugin-wrap input[type="text"],
.booking-plugin-wrap input[type="email"],
.booking-plugin-wrap input[type="password"],
.booking-plugin-wrap textarea,
.booking-plugin-wrap select {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 52px !important;
  padding: 12px 15px !important;
  border: 2px solid #dfd6ca !important;
  border-radius: 13px !important;
  background: #fff !important;
  color: var(--plugin-ink) !important;
  font: inherit !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.booking-plugin-wrap textarea { min-height: 130px !important; resize: vertical; }

.booking-plugin-wrap .form_text:focus,
.booking-plugin-wrap input:focus,
.booking-plugin-wrap textarea:focus,
.booking-plugin-wrap select:focus {
  outline: 0 !important;
  border-color: var(--plugin-green) !important;
  box-shadow: 0 0 0 4px rgba(1, 160, 129, .12) !important;
}

.booking-plugin-wrap input[type="checkbox"],
.booking-plugin-wrap .form_checkbox {
  width: 20px !important;
  height: 20px !important;
  min-height: 0 !important;
  margin-right: 9px !important;
  accent-color: var(--plugin-green);
}

.booking-plugin-wrap .book_now_button,
.booking-plugin-wrap .next_button,
.booking-plugin-wrap .return_button,
.booking-plugin-wrap .return_form_button,
.booking-plugin-wrap .booking_verification_button {
  min-width: 150px !important;
  min-height: 52px !important;
  margin: 20px 10px !important;
  padding: 13px 26px !important;
  border: 0 !important;
  border-radius: 999px !important;
  font: 700 16px/1.4 "Noto Sans JP", sans-serif !important;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.booking-plugin-wrap .book_now_button,
.booking-plugin-wrap .next_button,
.booking-plugin-wrap .booking_verification_button {
  background: var(--plugin-green) !important;
  color: #fff !important;
  box-shadow: 0 9px 22px rgba(1, 160, 129, .22);
}

.booking-plugin-wrap .return_button,
.booking-plugin-wrap .return_form_button {
  border: 2px solid var(--plugin-yellow) !important;
  background: #fff !important;
  color: var(--plugin-ink) !important;
}

.booking-plugin-wrap .book_now_button:hover,
.booking-plugin-wrap .next_button:hover,
.booking-plugin-wrap .booking_verification_button:hover,
.booking-plugin-wrap .return_button:hover,
.booking-plugin-wrap .return_form_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 24px rgba(53, 43, 37, .14);
}

/* Contact Form 7 */
.contact-plugin-wrap {
  margin: 0 !important;
  color: var(--plugin-ink);
  font-family: "Noto Sans JP", sans-serif;
}

.contact-plugin-wrap .wpcf7-form > p { margin: 0 0 24px !important; }

.contact-plugin-wrap .wpcf7-form > p > label {
  display: block;
  color: var(--plugin-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

.contact-plugin-wrap .wpcf7-form-control-wrap {
  display: block;
  margin-top: 8px;
}

.contact-plugin-wrap .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.contact-plugin-wrap .wpcf7 select,
.contact-plugin-wrap .wpcf7 textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 2px solid #dfd6ca;
  border-radius: 14px;
  background: #fffdf8;
  color: var(--plugin-ink);
  font: 500 16px/1.65 "Noto Sans JP", sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-plugin-wrap .wpcf7 select {
  appearance: none;
  padding-right: 46px;
  background-image: linear-gradient(45deg, transparent 50%, var(--plugin-green) 50%), linear-gradient(135deg, var(--plugin-green) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
}

.contact-plugin-wrap .wpcf7 textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-plugin-wrap .wpcf7 input:focus,
.contact-plugin-wrap .wpcf7 select:focus,
.contact-plugin-wrap .wpcf7 textarea:focus {
  outline: 0;
  border-color: var(--plugin-green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(1, 160, 129, .12);
}

.contact-plugin-wrap .wpcf7-list-item { margin: 0 !important; }

.contact-plugin-wrap input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0 9px 0 0;
  accent-color: var(--plugin-green);
  vertical-align: -4px;
}

.contact-plugin-wrap input[type="checkbox"] + span {
  font-size: 15px;
  font-weight: 600;
}

.contact-plugin-wrap .wpcf7-submit {
  min-width: 220px;
  min-height: 58px;
  padding: 15px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--plugin-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(1, 160, 129, .22);
  font: 700 16px/1.4 "Noto Sans JP", sans-serif;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.contact-plugin-wrap .wpcf7-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--plugin-green-dark);
  box-shadow: 0 12px 28px rgba(1, 160, 129, .27);
}

.contact-plugin-wrap .wpcf7-submit:disabled {
  background: #c8c1b8;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .72;
}

.contact-plugin-wrap .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: var(--plugin-orange);
  font-size: 13px;
  font-weight: 700;
}

.contact-plugin-wrap .wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 15px 18px;
  border: 2px solid var(--plugin-green);
  border-radius: 14px;
  background: var(--plugin-green-soft);
  color: var(--plugin-ink);
}

.contact-plugin-wrap .wpcf7 form.invalid .wpcf7-response-output,
.contact-plugin-wrap .wpcf7 form.unaccepted .wpcf7-response-output,
.contact-plugin-wrap .wpcf7 form.failed .wpcf7-response-output {
  border-color: var(--plugin-orange);
  background: #fff1e8;
}

@media (max-width: 700px) {
  .booking-plugin-wrap { margin: 28px -4px 52px; }

  .booking-plugin-wrap .booking-package { border-radius: 20px !important; }

  .booking-plugin-wrap .calendarHeader {
    min-height: 70px !important;
    padding: 12px !important;
  }

  .booking-plugin-wrap .calendarHeader .calendarData,
  .booking-plugin-wrap #current_date_in_header { font-size: 20px !important; }

  .booking-plugin-wrap .calendarHeader .arrowLeft,
  .booking-plugin-wrap .calendarHeader .arrowRight {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  .booking-plugin-wrap .calendar .week_slot { min-height: 42px !important; }
  .booking-plugin-wrap .calendar .day_slot { min-height: 62px !important; }

  .booking-plugin-wrap .calendar .day_slot .dateField {
    padding: 8px 5px !important;
    font-size: 14px !important;
  }

  .booking-plugin-wrap .calendar .day_slot.available_day::after {
    right: 4px;
    bottom: 4px;
    padding: 2px 4px;
    content: "○";
    font-size: 9px;
  }

  .booking-plugin-wrap #booking-package_inputFormPanel .row {
    display: block !important;
    min-height: 0;
    padding: 18px 16px !important;
  }

  .booking-plugin-wrap #booking-package_inputFormPanel .row .name { margin-bottom: 8px; }

  .booking-plugin-wrap .title,
  .booking-plugin-wrap #booking-package_serviceTitle,
  .booking-plugin-wrap #booking-package_inputFormPanel > div:first-child {
    padding: 19px 16px !important;
    font-size: 18px !important;
  }

  .booking-plugin-wrap .book_now_button,
  .booking-plugin-wrap .next_button,
  .booking-plugin-wrap .return_button,
  .booking-plugin-wrap .return_form_button,
  .booking-plugin-wrap .booking_verification_button {
    min-width: 132px !important;
    min-height: 50px !important;
    margin: 15px 5px !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
  }

  .contact-plugin-wrap .wpcf7-form > p { margin-bottom: 20px !important; }
  .contact-plugin-wrap .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
  .contact-plugin-wrap .wpcf7 select,
  .contact-plugin-wrap .wpcf7 textarea { font-size: 16px; }
  .contact-plugin-wrap .wpcf7-submit { width: 100%; }
}


/* Keep Booking Package action buttons inside the form card and hide the unused price row. */
.booking-plugin-wrap #booking-package_inputFormPanel #booking_package_totalCost {
  display: none !important;
}
.booking-plugin-wrap #booking-package_pay_locally .book_now_button,
.booking-plugin-wrap #nextAndReturnPanel .return_form_button {
  box-sizing: border-box !important;
  width: calc(100% - 32px) !important;
  max-width: calc(100% - 32px) !important;
  margin-right: 16px !important;
  margin-left: 16px !important;
}
