@charset "UTF-8";

.phase2-page textarea {
  font-family: inherit;
}

.phase2-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.phase2-method-option {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 86px;
  padding: 12px 8px;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--phase2-line);
  border-radius: 10px;
  color: var(--phase2-muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.phase2-method-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.phase2-method-option__title {
  color: var(--phase2-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.phase2-method-option small {
  display: block;
  margin-top: 4px;
  color: var(--phase2-muted);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
}

.phase2-method-option.is-selected {
  border-color: var(--phase2-teal);
  background: var(--phase2-teal-soft);
  color: var(--phase2-teal-deep);
}

.phase2-method-option:focus-within {
  border-color: var(--phase2-teal);
  outline: 2px solid var(--phase2-teal);
  outline-offset: 2px;
}

.phase2-field.is-error .phase2-method-option {
  border-color: var(--phase2-required);
}

.phase2-method-placeholder {
  padding: 18px 14px;
  border: 1px dashed var(--phase2-teal-line);
  border-radius: 10px;
  background: var(--phase2-teal-soft);
  color: var(--phase2-muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.phase2-method-placeholder p {
  margin: 0;
}

.phase2-method-panel[data-method-block="tel"] {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--phase2-bg);
  color: var(--phase2-muted);
  font-size: 13px;
  line-height: 1.6;
}

.phase2-method-panel[data-method-block="tel"] p {
  margin: 0;
}

.phase2-reservation-frame {
  padding: 16px;
  border: 1px solid var(--phase2-line);
  border-radius: 10px;
  background: var(--phase2-bg);
}

.phase2-reservation-status {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--phase2-teal-line);
  border-radius: 8px;
  background: var(--phase2-teal-soft);
  color: var(--phase2-teal-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.phase2-reservation-status.is-loading::before {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border: 2px solid var(--phase2-teal-line);
  border-top-color: var(--phase2-teal-deep);
  border-radius: 50%;
  content: "";
  vertical-align: -2px;
  animation: phase2-reservation-spin 0.8s linear infinite;
}

.phase2-reservation-status.is-error {
  border-color: var(--phase2-required);
  background: var(--phase2-required-soft);
  color: #b43229;
}

.phase2-reservation-lead {
  margin: 8px 0 20px;
  color: var(--phase2-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.phase2-reservation-placeholder {
  /* 時間枠グリッド(.reserve-time__list)内では1マス幅にならないよう全列にまたがる */
  grid-column: 1 / -1;
  min-height: 72px;
  padding: 22px 12px;
  border: 1px dashed var(--phase2-teal-line);
  border-radius: 8px;
  background: var(--phase2-card);
  color: var(--phase2-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.reserve-calendar,
.reserve-fp,
.reserve-time {
  width: 100%;
}

.reserve-calendar__head {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
}

.reserve-month {
  margin: 0;
  color: var(--phase2-ink);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.reserve-week__btn {
  justify-self: start;
  padding: 7px 10px;
  border: 1px solid var(--phase2-teal-line);
  border-radius: 7px;
  background: var(--phase2-card);
  color: var(--phase2-teal-deep);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.reserve-week__btn:last-child {
  justify-self: end;
}

.reserve-calendar-week {
  display: flex;
  gap: 7px;
  max-width: 100%;
  padding: 2px 1px 7px;
  overflow-x: auto;
  text-align: center;
  scrollbar-width: thin;
}

.reserve-calendar-day {
  display: flex;
  min-width: 58px;
  min-height: 66px;
  padding: 7px 5px;
  flex: 0 0 58px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--phase2-line);
  border-radius: 9px;
  background: var(--phase2-card);
  color: var(--phase2-ink);
  cursor: pointer;
}

.reserve-calendar-weekday {
  color: var(--phase2-muted);
  font-size: 11px;
  font-weight: 700;
}

.reserve-calendar-date {
  font-size: 13px;
  font-weight: 700;
}

.reserve-calendar-day.is-active,
.reserve-calendar-day[aria-pressed="true"] {
  border-color: var(--phase2-teal-deep);
  background: var(--phase2-teal-deep);
  color: #fff;
}

.reserve-calendar-day.is-active .reserve-calendar-weekday,
.reserve-calendar-day[aria-pressed="true"] .reserve-calendar-weekday {
  color: #fff;
}

.reserve-calendar-day.is-sat:not(.is-active) .reserve-calendar-weekday {
  color: #2a6ca8;
}

.reserve-calendar-day.is-sun:not(.is-active) .reserve-calendar-weekday {
  color: #b43229;
}

.reserve-calendar-day:disabled,
.reserve-week__btn:disabled,
.reserve-arrow:disabled,
.reserve-fp-card:disabled,
.reserve-time__btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.reserve-calendar-day:disabled {
  border-color: var(--phase2-line);
  background: var(--phase2-bg);
  color: var(--phase2-muted);
}

.reserve-fp__head {
  margin-bottom: 9px;
}

.reserve-fp__count {
  margin: 0;
  color: var(--phase2-muted);
  font-size: 12px;
}

.reserve-fp__row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 7px;
  align-items: center;
}

.reserve-arrow {
  display: inline-flex;
  width: 34px;
  height: 34px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--phase2-teal-deep);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.reserve-fp__list {
  display: flex;
  gap: 9px;
  min-width: 0;
  padding: 2px 1px 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.reserve-fp-card-shell {
  display: flex;
  min-width: 132px;
  flex: 0 0 132px;
  flex-direction: column;
}

.reserve-fp-card {
  display: flex;
  width: 100%;
  min-height: 153px;
  padding: 9px;
  flex: 1;
  flex-direction: column;
  border: 1.5px solid var(--phase2-line);
  border-radius: 10px;
  background: var(--phase2-card);
  color: var(--phase2-ink);
  cursor: pointer;
}

.reserve-fp-card.is-selected,
.reserve-fp-card[aria-pressed="true"] {
  border-color: var(--phase2-teal-deep);
  background: var(--phase2-teal-soft);
  box-shadow: 0 0 0 2px rgba(20, 43, 71, 0.12);
}

.reserve-fp-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--phase2-line);
  border-radius: 8px;
  background-color: var(--phase2-bg);
  background-position: center;
  background-size: cover;
}

.reserve-fp-card__name {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.reserve-fp-card__profile {
  display: inline-flex;
  margin-top: 6px;
  padding: 5px 7px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--phase2-teal-line);
  border-radius: 999px;
  background: var(--phase2-card);
  color: var(--phase2-teal-deep);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.reserve-time__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.reserve-time__btn {
  display: inline-flex;
  min-height: 44px;
  padding: 9px 6px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--phase2-line);
  border-radius: 8px;
  background: var(--phase2-card);
  color: var(--phase2-ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.reserve-time__btn.is-selected,
.reserve-time__btn[aria-pressed="true"] {
  border-color: var(--phase2-teal-deep);
  background: var(--phase2-teal-deep);
  color: #fff;
}

.reserve-note {
  margin: 8px 0 0;
  color: var(--phase2-muted);
  font-size: 11px;
  line-height: 1.5;
}

.reserve-calendar-day:focus-visible,
.reserve-week__btn:focus-visible,
.reserve-arrow:focus-visible,
.reserve-fp-card:focus-visible,
.reserve-fp-card__profile:focus-visible,
.reserve-time__btn:focus-visible,
.phase2-reservation-retry:focus-visible,
.phase2-reservation-switch button:focus-visible {
  outline: 2px solid var(--phase2-teal-deep);
  outline-offset: 2px;
}

.phase2-reservation-feedback {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid var(--phase2-required);
  border-radius: 8px;
  background: var(--phase2-required-soft);
  color: #8d2d27;
  font-size: 12px;
  line-height: 1.55;
}

.phase2-reservation-feedback > p {
  margin: 0;
}

.phase2-reservation-retry {
  margin-top: 8px;
  padding: 7px 13px;
  border: 1px solid var(--phase2-teal-deep);
  border-radius: 7px;
  background: var(--phase2-card);
  color: var(--phase2-teal-deep);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.phase2-reservation-switch {
  margin-top: 8px !important;
  color: var(--phase2-muted);
}

.phase2-reservation-switch button {
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--phase2-teal-deep);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

@keyframes phase2-reservation-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phase2-reservation-status.is-loading::before {
    animation: none;
  }
}

.phase2-datetime-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--phase2-line);
}

.phase2-datetime-choice .phase2-segment {
  display: flex;
  min-height: 56px;
  padding: 10px 8px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1.35;
}

.phase2-datetime-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.phase2-datetime-row > select {
  min-width: 0;
}

.phase2-field--dynamic-required.is-ok > .phase2-label-row .phase2-badge--optional,
.phase2-field--optional-with-done.is-ok > .phase2-label-row .phase2-badge--optional {
  display: none;
}

.phase2-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.phase2-topic-chip {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 54px;
  padding: 10px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1.5px solid var(--phase2-line);
  border-radius: 9px;
  background: var(--phase2-card);
  color: var(--phase2-muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.phase2-topic-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.phase2-topic-chip.is-selected {
  border-color: var(--phase2-teal);
  background: var(--phase2-teal-soft);
  color: var(--phase2-teal-deep);
}

.phase2-topic-chip:focus-within {
  border-color: var(--phase2-teal);
  outline: 2px solid var(--phase2-teal);
  outline-offset: 2px;
}

.phase2-page textarea {
  width: 100%;
  padding: 13px 12px;
  border: 1.5px solid var(--phase2-input-line);
  border-radius: 10px;
  background: var(--phase2-card);
  color: var(--phase2-ink);
  font-size: 16px;
  line-height: 1.5;
}

.phase2-page textarea {
  min-height: 132px;
  resize: vertical;
}

.phase2-page textarea:focus {
  border-color: var(--phase2-teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

.phase2-page textarea::placeholder {
  color: var(--phase2-muted);
  opacity: 0.65;
}

.phase2-field.is-error textarea {
  border-color: var(--phase2-required);
  background: var(--phase2-required-soft);
}

.phase2-label-row .phase2-hint {
  margin: 0 0 0 auto;
  font-size: 11.5px;
  text-align: right;
}

.phase2-server-error {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--phase2-required);
  border-radius: 10px;
  background: var(--phase2-required-soft);
  color: #b43229;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.phase2-server-error:focus {
  outline: 2px solid var(--phase2-required);
  outline-offset: 2px;
}

.phase2-mini-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase2-mini-steps li {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 0 0 18px;
}

.phase2-mini-steps li:last-child {
  padding-bottom: 0;
}

.phase2-mini-steps li:not(:last-child)::after {
  position: absolute;
  top: 24px;
  bottom: 2px;
  left: 11px;
  width: 1px;
  background: var(--phase2-teal-line);
  content: "";
}

.phase2-mini-steps li > span {
  display: inline-flex;
  position: relative;
  z-index: 1;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: var(--phase2-teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.phase2-mini-steps p {
  margin: 1px 0 0;
  color: var(--phase2-ink);
  font-size: 12.5px;
  line-height: 1.4;
}

.phase2-mini-steps strong {
  display: block;
  font-weight: 700;
}

.phase2-mini-steps small {
  display: block;
  margin-top: 2px;
  color: var(--phase2-muted);
  font-size: 11px;
  font-weight: 400;
}

@media (max-width: 479px) {
  .phase2-method-option {
    min-height: 82px;
    padding: 10px 6px;
  }

  .phase2-method-option small {
    font-size: 10.5px;
  }

  .phase2-topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .phase2-reservation-frame {
    padding: 14px 12px;
  }

  .reserve-calendar__head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reserve-month {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  .reserve-week__btn {
    grid-row: 2;
    grid-column: 1;
  }

  .reserve-week__btn:last-child {
    grid-column: 2;
  }

  .reserve-fp__row {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 5px;
  }

  .reserve-arrow {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .reserve-fp-card-shell {
    min-width: 122px;
    flex-basis: 122px;
  }

  .reserve-time__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .phase2-datetime-choice {
    flex-direction: column;
  }

  .phase2-datetime-choice .phase2-segment {
    width: 100%;
  }

  .phase2-datetime-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
