/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

/* 予約ページ */
.reserve-page {
  min-height: 100vh;
}

.reserve-header {
  text-align: center;
  margin-bottom: 2rem;
}

.reserve-header__title {
  font-family: "Newsreader", serif;
  font-size: clamp(1.375rem, 5.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #1b1c1c;
  margin-bottom: 0.75rem;
  white-space: nowrap;
}

.reserve-header__lead {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #5b403d;
  max-width: 36rem;
  margin: 0 auto;
}

.reserve-form-card {
  background: #ffffff;
  border: 1px solid #e4beba;
  border-radius: 0.5rem;
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .reserve-form-card {
    padding: 2.5rem 2.5rem;
  }
}

.reserve-section + .reserve-section {
  margin-top: 2.5rem;
}

.reserve-section__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1b1c1c;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e4beba;
}

.reserve-field {
  margin-bottom: 1.25rem;
}

.reserve-field__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1b1c1c;
  margin-bottom: 0.5rem;
}

.reserve-field__required {
  color: #af101a;
  margin-left: 0.125rem;
}

/* 日付・時間（分離UI） */
.reserve-datetime {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .reserve-datetime {
    grid-template-columns: 1fr 1fr;
  }
}

.reserve-datetime__sublabel {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #5b403d;
  margin-bottom: 0.35rem;
}

.reserve-datetime__hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #8f6f6c;
}

.reserve-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%238f6f6c'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.25rem;
  padding-right: 2.25rem;
  cursor: pointer;
}

.reserve-input,
.reserve-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #1b1c1c;
  background-color: #faf6f5;
  border: 1px solid #e4beba;
  border-radius: 0.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.reserve-input::placeholder,
.reserve-textarea::placeholder {
  color: #8f6f6c;
  opacity: 0.7;
}

.reserve-input:focus,
.reserve-textarea:focus {
  outline: none;
  border-color: #af101a;
  box-shadow: 0 0 0 2px rgba(175, 16, 26, 0.12);
}

.reserve-textarea {
  min-height: 8rem;
  resize: vertical;
}

.reserve-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .reserve-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* 症状チェックボックス */
.reserve-symptoms-hint {
  margin: -0.25rem 0 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #5b403d;
}

.reserve-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .reserve-checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .reserve-checkbox-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.reserve-checkbox {
  position: relative;
  display: block;
  cursor: pointer;
}

.reserve-checkbox__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.reserve-checkbox__box {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  background-color: #faf6f5;
  border: 1px solid #e4beba;
  border-radius: 0.25rem;
  font-size: 0.9375rem;
  color: #1b1c1c;
  transition: border-color 0.2s, background-color 0.2s;
}

.reserve-checkbox__mark {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid #8f6f6c;
  border-radius: 0.125rem;
  background: #fff;
  transition: border-color 0.2s, background-color 0.2s;
}

.reserve-checkbox__input:checked + .reserve-checkbox__box {
  border-color: #af101a;
  background-color: #fff5f3;
}

.reserve-checkbox__input:checked + .reserve-checkbox__box .reserve-checkbox__mark {
  border-color: #af101a;
  background-color: #af101a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.reserve-checkbox__input:focus-visible + .reserve-checkbox__box {
  outline: 2px solid #af101a;
  outline-offset: 2px;
}

/* 送信 */
.reserve-submit-wrap {
  margin-top: 2.5rem;
  text-align: center;
}

.reserve-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 28rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-color: #d32f2f;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(211, 47, 47, 0.2);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.reserve-submit:hover {
  background-color: #af101a;
  box-shadow: 0 6px 12px rgba(211, 47, 47, 0.25);
  transform: translateY(-1px);
}

.reserve-consent {
  margin-top: 1rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #5b403d;
}

.reserve-consent a {
  color: #1b1c1c;
  text-decoration: underline;
}

.reserve-consent a:hover {
  color: #af101a;
}

/* フッター */
.reserve-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e4beba;
  text-align: center;
}

.reserve-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reserve-footer__nav a {
  font-size: 0.8125rem;
  color: #5b403d;
  text-decoration: underline;
}

.reserve-footer__nav a:hover {
  color: #af101a;
}

.reserve-footer__copy {
  font-size: 0.8125rem;
  color: #5b403d;
}

/* 週間予約カレンダー */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reserve-datetime__hint--top {
  margin-top: 0;
  margin-bottom: 1rem;
}

.reserve-calendar {
  margin-bottom: 1rem;
}

.calendar-loading {
  text-align: center;
  padding: 2rem;
  color: #5b403d;
  font-size: 0.9375rem;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.calendar-range {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1b1c1c;
  min-width: 12rem;
  text-align: center;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e4beba;
  border-radius: 0.25rem;
  background: #fff;
  color: #5b403d;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.calendar-nav:hover:not(:disabled) {
  border-color: #af101a;
  color: #af101a;
}

.calendar-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border: 1px solid #e4beba;
  border-radius: 0.25rem;
  background: #fff;
}

.calendar-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.calendar-table th,
.calendar-table td {
  border: 1px solid #e8e8e8;
  text-align: center;
  vertical-align: middle;
}

.calendar-table__time-col {
  width: 4.5rem;
  background: #fafafa;
}

.calendar-table__time {
  padding: 0.5rem 0.35rem;
  font-weight: 500;
  color: #5b403d;
  background: #fafafa;
  white-space: nowrap;
}

.calendar-table__day {
  padding: 0.5rem 0.25rem;
  background: #f8fbff;
  font-weight: 600;
  color: #1b1c1c;
}

.calendar-table__day--sat {
  color: #2563eb;
}

.calendar-table__day--sun {
  color: #d32f2f;
}

.calendar-table__date {
  display: block;
  font-size: 0.75rem;
}

.calendar-table__wd {
  font-size: 0.6875rem;
}

.calendar-cell {
  padding: 0.25rem;
  height: 2.5rem;
  background: #f5f5f5;
}

.calendar-cell--open,
.calendar-cell--few {
  background: #fff;
}

.calendar-cell__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2rem;
  margin: 0 auto;
  border: 1px solid #d0d0d0;
  border-radius: 0.125rem;
  background: #fff;
  font-size: 1rem;
  line-height: 1;
  color: #4c9edd;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.calendar-cell--few .calendar-cell__btn {
  color: #e6a800;
}

.calendar-cell__btn:hover {
  border-color: #af101a;
  background: #fff5f3;
}

.calendar-cell--selected .calendar-cell__btn {
  border-color: #af101a;
  background: #fff5f3;
  box-shadow: inset 0 0 0 1px #af101a;
}

.calendar-cell__disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  color: #c5c5c5;
  font-size: 1rem;
}

.calendar-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.75rem;
  color: #5b403d;
}

.calendar-legend__mark {
  display: inline-block;
  width: 1.25rem;
  text-align: center;
  margin-right: 0.25rem;
  font-weight: 700;
}

.calendar-legend__mark--open {
  color: #4c9edd;
}

.calendar-legend__mark--few {
  color: #e6a800;
}

.calendar-legend__mark--closed {
  color: #c5c5c5;
}

.calendar-mock-notice {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: #8f6f6c;
}

.calendar-selection {
  padding: 1rem;
  background: #f6f3f2;
  border-radius: 0.25rem;
  border: 1px solid #e4beba;
}

.calendar-selection__item {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: #1b1c1c;
}

.calendar-selection__item:last-child {
  margin-bottom: 0;
}

.calendar-selection__item--empty span {
  color: #8f6f6c;
}

.calendar-selection__clear {
  margin-left: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.8125rem;
  color: #af101a;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 375px) {
  .reserve-form-card {
    padding: 1.5rem 1rem;
  }
}
