.chsp-booking-intro, #spyoyaku_btn a.chsp-booking-header, .chsp-persistent-label { display: none; }
.chsp-booking-heading { scroll-margin-top: calc(var(--chsp-header-height, 60px) + 18px); }

@media (max-width: 769px), (orientation: landscape) and (max-width: 1024px) and (max-height: 600px) {
  /* iOS sizes the native date control as a content box, including its calendar icon padding. */
  .yoyaku-slide .yoyaku-form input[type="date"][name="show-date"] { width: -webkit-fill-available; }
  #spyoyaku_btn.chsp-has-event-booking > .yoyakuslide-menu-trigger { display: none !important; }
  #spyoyaku_btn.chsp-has-event-booking > .chsp-booking-header {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    height: 100%;
    padding: 0 4px;
    text-align: center;
    line-height: 1.35;
    font-size: 12px;
    color: #fff;
    background: #a63811;
    text-decoration: none;
    box-sizing: border-box;
  }
  #info_main .chsp-booking-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: min(100%, 360px);
    min-height: 48px;
    margin: 12px auto 20px;
    padding: 10px 20px;
    border-radius: 4px;
    background: #a63811;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
  }

  .chsp-booking-heading:focus-visible, .chsp-booking-intro:focus-visible, .chsp-booking-header:focus-visible { outline: 3px solid #13568b; outline-offset: 2px; }

}

@media (max-width: 767px) {
  .ch-mail-page { padding-top: calc(28px + var(--chsp-header-height, 60px)) !important; }

  .event-day-item.chsp-event-card { display: flex; flex-direction: column; position: relative; height: auto; }
  .event-day-item.chsp-event-card > h2 { order: 0; padding: 14px 12px 4px; margin: 0; }
  .event-day-item.chsp-event-card > .event-day-category { order: 1; padding: 0 12px 10px; margin: 0; }
  .info_top .info_main .event-day-item.chsp-event-card > figure { order: 2; margin: 0; height: auto !important; aspect-ratio: auto !important; }
  .info_top .info_main .event-day-item.chsp-event-card > figure img {
    display: block;
    position: static;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: min(98vw, 390px);
    aspect-ratio: auto !important;
    object-fit: contain;
    margin: 0 auto;
    transform: none;
  }
  .event-day-item.chsp-event-card > ul { order: 3; margin: 0; }
  .event-day-item.chsp-event-card .event-day-link { display: none !important; }
  .event-day-item.chsp-event-card .event-day-link-sp { display: block; }
  .event-day-item.chsp-event-card .event-day-link-sp a {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
  }
  .event-day-item.chsp-event-card .event-day-link-sp a:focus-visible { outline: 3px solid #13568b; outline-offset: -3px; }

  .chsp-persistent-label {
    display: block;
    margin: 12px 0 4px;
    color: #222;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
  }
  .yoyaku-slide-nav .chsp-persistent-label + .wpcf7-form-control-wrap :is(input,textarea)::placeholder { opacity: 0; }
  .yoyaku-slide-nav p:has(> .chsp-persistent-label) > br { display: none; }
  .yoyaku-slide-nav .yoyaku-form select, .chsp-contact select, #info_main .yoyaku-form select {
    min-height: 44px;
    max-width: 100%;
    font-size: 16px;
  }
  .chsp-contact .wpcf7-checkbox, .chsp-contact .wpcf7-radio,
  #info_main .yoyaku-form .wpcf7-radio, #info_main .yoyaku-form .wpcf7-checkbox {
    display: grid !important;
    gap: 6px;
    text-align: left;
  }
  .chsp-contact :is(.wpcf7-checkbox,.wpcf7-radio) .wpcf7-list-item,
  #info_main .yoyaku-form :is(.wpcf7-checkbox,.wpcf7-radio) .wpcf7-list-item {
    display: block !important;
    width: auto;
    margin: 0 !important;
  }
  .chsp-contact :is(.wpcf7-checkbox,.wpcf7-radio) label,
  #info_main .yoyaku-form :is(.wpcf7-checkbox,.wpcf7-radio) label {
    display: flex !important;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 7px 12px;
    box-sizing: border-box;
    border: 1px solid #928d87;
    border-radius: 4px;
    background: #fff;
    color: #222;
    line-height: 1.5;
    text-align: left;
  }
  .chsp-contact :is(.wpcf7-checkbox,.wpcf7-radio) label:has(input:checked),
  #info_main .yoyaku-form :is(.wpcf7-checkbox,.wpcf7-radio) label:has(input:checked) {
    border-color: #a63811;
    box-shadow: inset 0 0 0 1px #a63811;
    background: #fff5ef;
  }
  .chsp-contact :is(.wpcf7-checkbox,.wpcf7-radio) label > input,
  #info_main .yoyaku-form :is(.wpcf7-checkbox,.wpcf7-radio) label > input {
    flex: 0 0 auto;
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #9c320d;
  }
  .chsp-form-validation:not(.chsp-attempted) .chsp-unvisited .wpcf7-not-valid-tip,
  .chsp-error-list:not(.chsp-attempted) > .chsp-unvisited-error { display: none; }
  .chsp-form-validation:not(.chsp-attempted) .chsp-unvisited :is(input,select,textarea).wpcf7-not-valid {
    border: 1px solid #777 !important;
    background-color: #fff !important;
  }
  .chsp-error-list { text-align: left; }
  .chsp-error-list > li > a { display: block; padding: 7px 0; color: #802b16; text-decoration: underline; }
}
