/* 学生 — 面談枠カレンダー・時間選択 */
.yce-iv-picker {
  font-size: 0.8125rem;
  color: #0D1B3E;
}

.yce-iv-empty {
  font-size: 0.75rem;
  color: #92400E;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 0.65rem;
  padding: 0.65rem 0.75rem;
  line-height: 1.45;
}

.yce-iv-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.yce-iv-cal-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0D1B3E;
}

.yce-iv-cal-nav {
  width: 2rem;
  height: 2rem;
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  background: #fff;
  color: #003087;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.yce-iv-cal-nav:hover:not(:disabled) {
  background: #F0F4FF;
}

.yce-iv-cal-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.yce-iv-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #E2E8F0;
}

.yce-iv-cal-weekday {
  background: #F8FAFC;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #718096;
  padding: 0.4rem 0;
}

.yce-iv-cal-weekday.is-sun { color: #DC2626; }
.yce-iv-cal-weekday.is-sat { color: #2563EB; }

.yce-iv-cal-cell {
  min-height: 2.75rem;
  background: #fff;
  border: none;
  padding: 0.3rem 0.15rem 0.25rem;
  text-align: center;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}

.yce-iv-cal-cell--empty {
  background: #F8FAFC;
}

.yce-iv-cal-daynum {
  font-size: 0.75rem;
  font-weight: 700;
  color: #CBD5E0;
  line-height: 1.2;
}

.yce-iv-cal-mark {
  font-size: 0.625rem;
  line-height: 1;
  color: #CBD5E0;
}

.yce-iv-cal-cell.is-available {
  cursor: pointer;
}

.yce-iv-cal-cell.is-available .yce-iv-cal-daynum {
  color: #0D1B3E;
}

.yce-iv-cal-cell.is-available .yce-iv-cal-mark {
  color: #059669;
  font-weight: 800;
}

.yce-iv-cal-cell.is-available:hover {
  background: #F0FDF4;
}

.yce-iv-cal-cell.is-selected {
  background: #ECFDF5;
  outline: 2px solid #059669;
  outline-offset: -2px;
}

.yce-iv-cal-cell.is-selected .yce-iv-cal-daynum {
  color: #047857;
}

.yce-iv-cal-note {
  font-size: 0.6875rem;
  color: #718096;
  margin: 0.5rem 0 0;
  text-align: center;
}

.yce-iv-dates-strip {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.65rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.yce-iv-dates-strip::-webkit-scrollbar { display: none; }

.yce-iv-date-chip {
  flex: 0 0 auto;
  min-width: 3.25rem;
  padding: 0.45rem 0.35rem;
  border: 1px solid #E2E8F0;
  border-radius: 0.65rem;
  background: #fff;
  text-align: center;
  cursor: pointer;
}

.yce-iv-date-chip-dow {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  color: #718096;
  line-height: 1.2;
}

.yce-iv-date-chip-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0D1B3E;
  line-height: 1.3;
}

.yce-iv-date-chip.is-selected {
  border-color: #059669;
  background: #ECFDF5;
}

.yce-iv-date-chip.is-selected .yce-iv-date-chip-dow,
.yce-iv-date-chip.is-selected .yce-iv-date-chip-num {
  color: #047857;
}

.yce-iv-time-section {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #EEF2F8;
}

.yce-iv-time-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0D1B3E;
  margin: 0 0 0.35rem;
}

.yce-iv-time-hint {
  font-size: 0.6875rem;
  color: #718096;
  margin: 0 0 0.55rem;
  line-height: 1.4;
}

.yce-iv-timeline-wrap {
  margin-bottom: 0.65rem;
}

.yce-iv-timeline {
  position: relative;
  height: 1.25rem;
  border-radius: 0.35rem;
  overflow: hidden;
  background: repeating-linear-gradient(
    -45deg,
    #E2E8F0,
    #E2E8F0 3px,
    #F1F5F9 3px,
    #F1F5F9 6px
  );
}

.yce-iv-timeline-seg {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #fff;
  border-left: 1px solid rgba(5, 150, 105, 0.25);
  border-right: 1px solid rgba(5, 150, 105, 0.25);
}

.yce-iv-timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-size: 0.5625rem;
  color: #A0AEC0;
  font-weight: 600;
}

.yce-iv-time-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.yce-iv-time-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #E2E8F0;
  border-radius: 0.65rem;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0D1B3E;
  cursor: pointer;
  text-align: left;
}

.yce-iv-time-btn:hover:not(:disabled) {
  border-color: #059669;
  background: #F0FDF4;
}

.yce-iv-time-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.yce-iv-time-btn.is-placeholder {
  color: #A0AEC0;
  font-weight: 600;
}

.yce-iv-time-btn-chevron {
  color: #718096;
  font-size: 0.75rem;
}

.yce-iv-selected {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  font-size: 0.75rem;
  line-height: 1.45;
}

.yce-iv-selected strong {
  display: block;
  font-size: 0.8125rem;
  color: #003087;
  margin-bottom: 0.15rem;
}

/* 時間選択ボトムシート */
.yce-iv-sheet {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.yce-iv-sheet.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.yce-iv-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 62, 0.45);
}

.yce-iv-sheet-panel {
  position: relative;
  max-height: min(70dvh, 28rem);
  background: #fff;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -8px 30px rgba(13, 27, 62, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.yce-iv-sheet.is-open .yce-iv-sheet-panel {
  transform: translateY(0);
}

.yce-iv-sheet-handle {
  width: 2.5rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: #CBD5E0;
  margin: 0.5rem auto 0;
  flex-shrink: 0;
}

.yce-iv-sheet-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.65rem 1rem 0.5rem;
  border-bottom: 1px solid #EEF2F8;
  flex-shrink: 0;
}

.yce-iv-sheet-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0D1B3E;
  margin: 0;
}

.yce-iv-sheet-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  color: #718096;
  cursor: pointer;
  line-height: 1;
}

.yce-iv-sheet-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.yce-iv-sheet-item {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-bottom: 1px solid #EEF2F8;
  background: #fff;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0D1B3E;
  cursor: pointer;
}

.yce-iv-sheet-item:hover:not(:disabled) {
  background: #F0FDF4;
}

.yce-iv-sheet-item.is-disabled {
  color: #CBD5E0;
  cursor: not-allowed;
  font-weight: 500;
}

.yce-iv-sheet-item-sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #718096;
  margin-top: 0.15rem;
}

.yce-iv-sheet-item.is-disabled .yce-iv-sheet-item-sub {
  color: #CBD5E0;
}

/* サポーター枠登録 — 開始/終了時刻（コンパクトグリッド） */
.yce-iv-sheet--compact {
  justify-content: center;
  align-items: flex-end;
  padding: 0.5rem;
}

.yce-iv-sheet--compact .yce-iv-sheet-panel {
  width: 100%;
  max-width: 20rem;
  max-height: min(55dvh, 17.5rem);
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(13, 27, 62, 0.18);
  transform: translateY(1rem);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.yce-iv-sheet--compact.is-open .yce-iv-sheet-panel {
  transform: translateY(0);
  opacity: 1;
}

.yce-iv-sheet--compact .yce-iv-sheet-handle {
  display: none;
}

.yce-iv-sheet--compact .yce-iv-sheet-head {
  padding: 0.45rem 2rem 0.4rem;
  min-height: 0;
}

.yce-iv-sheet--compact .yce-iv-sheet-title {
  font-size: 0.8125rem;
}

.yce-iv-sheet--compact .yce-iv-sheet-close {
  right: 0.35rem;
  width: 1.65rem;
  height: 1.65rem;
  font-size: 1.1rem;
}

.yce-iv-sheet--compact .yce-iv-sheet-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.2rem;
  padding: 0.35rem 0.4rem 0.45rem;
}

@media (min-width: 400px) {
  .yce-iv-sheet--compact .yce-iv-sheet-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.yce-iv-sheet--compact .yce-iv-sheet-item {
  padding: 0.38rem 0.15rem;
  border: 1px solid #E8EDF7;
  border-radius: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.yce-iv-sheet--compact .yce-iv-sheet-item:hover:not(:disabled) {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.yce-iv-sheet--compact .yce-iv-sheet-item.is-disabled {
  font-size: 0.625rem;
  font-weight: 600;
  background: #F8FAFC;
  border-color: #EDF2F7;
}

.yce-iv-sheet--compact .yce-iv-sheet-item-sub {
  display: none;
}

@media (min-width: 640px) {
  .yce-iv-sheet--compact {
    align-items: center;
    padding: 1rem;
  }

  .yce-iv-sheet--compact .yce-iv-sheet-panel {
    max-width: 18.5rem;
    max-height: min(65vh, 16.5rem);
  }
}

/* サポーター — 枠登録（開始・終了の2ボタン） */
.yce-iv-time-row--dual {
  flex-wrap: wrap;
}

.yce-iv-time-row--dual .yce-iv-time-btn {
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 7rem;
}

.yce-iv-time-btn-prefix {
  font-size: 0.625rem;
  font-weight: 700;
  color: #718096;
  margin-right: 0.35rem;
}

.yce-iv-create-submit {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.65rem;
  background: #003087;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
}

.yce-iv-create-submit:hover:not(:disabled) {
  background: #00266a;
}

.yce-iv-create-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
