/* =========　基本レイアウト　==============*/
.contact-head {
  text-align: center;
  margin: 1em;
}
.contact-head h2 {
  font-size: clamp(30px, 3.8vw, 64px);
}
.contact-head h2 span {
  font-size: clamp(16px, 1.9vw, 32px);
}
.contact-head p {
  font-size: clamp(12px, 1.43vw, 24px);
}
#contactForm {
  text-align: left;
}
.form-grid {
  display: grid;
  grid-template-columns: 1.7fr 3fr;
  align-items: center;
  gap: 1em;
  padding: 1em 0;
  border-bottom: 1px solid #000;
  font-size: clamp(12px, 1.9vw, 15px);
}
.form-grid > label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  justify-content: center;
  padding: 0.5rem 0;
  padding-right: 1em;
  border-right: 1px solid #000;
  font-weight: bold;
}
.form-grid > label .required {
  display: block;
  margin: 0 0 0.5em 0;
}
.form-grid > div > .inputs {
  padding-left: 1em;
}
.form-grid .inputs {
  text-align: left;
}
.form-grid .checkbox-group,
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.form-grid .checkbox-group label {
  font-weight: normal;
}
.form-grid .inputs input[type="checkbox"] {
  margin-right: 4px;
}

.form-grid .inputs input[type="text"],
.form-grid .inputs input[type="email"],
.form-grid .inputs input[type="tel"],
.form-grid .inputs textarea {
  width: 100%;
  border: none;
  background-color: #f5f5f5;
  padding: 0.75rem;
  box-sizing: border-box;
}
.form-grid .inputs.short input[type="text"] {
  width: 30%;
  text-align: right;
}
@media (max-width: 768px) {
  .form-grid .inputs.short input[type="text"] {
    width: 75%;
  }
}
.form-grid .inputs input[type="text"]:focus,
.form-grid .inputs input[type="email"]:focus,
.form-grid .inputs input[type="tel"]:focus,
.form-grid .inputs textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(203, 176, 112, 0.25);
}
.form-grid select {
  padding: 0.75rem;
  box-sizing: border-box;
}

.send-button {
  padding: 1em;
}
.send-button button {
  padding: 0.5em 1em;
}
/* =========　thanks　==============*/
#thanks a {
  text-decoration: none;
}
#thanks .thanks-item {
  padding: 3em 0;
}
/* =========　バリデーション　==============*/
.required {
  font-size: 0.6em;
  color: #fff;
  background: red;
  padding: 0.1em 0.5em;
  margin-left: 0.5em;
  border-radius: 4px;
}

.input-error {
  border: 1px solid red;
}
.error-msg {
  color: red;
  font-size: 0.9em;
  margin-top: 8px;
}
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* × マークの位置・見た目 */
.flatpickr-day.full-booked-day .day-mark {
  position: absolute;
  right: 2px;
  bottom: 2px;
  font-size: 10px;
  color: #c00;
}

/* 満席の時間帯 option（背景グレー） */
#res_time option.time-full {
  background-color: #e0e0e0;
  color: #777;
}

/* 満席日の見た目調整 */
.flatpickr-day.full-booked-day {
  position: relative;
  opacity: 1 !important;
  color: #333 !important;
}

.flatpickr-day.full-booked-day::after {
  content: "満席";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  line-height: 1;
  color: #c00;
  pointer-events: none;
}

.flatpickr-day.full-booked-day.flatpickr-disabled,
.flatpickr-day.full-booked-day:hover {
  background: #f5f5f5 !important;
  cursor: default !important;
}
