@charset "UTF-8";
/**
 * 診療予定カレンダー（フロントエンド）
 */
/* モーダルオーバーレイ */
.schedule-calendar-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.schedule-calendar-modal.is-active {
  display: flex;
}

/* モーダルオーバーレイ背景 */
.schedule-calendar-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* モーダルコンテンツ */
.schedule-calendar-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10001;
}
@media (max-width: 768px) {
  .schedule-calendar-modal-content {
    max-height: 85vh;
    margin: 20px 0;
  }
}

/* モーダルヘッダー */
.schedule-calendar-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 2px solid #f0f0f0;
  background: #fff;
}
@media (max-width: 768px) {
  .schedule-calendar-modal-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }
}
.schedule-calendar-modal-header .schedule-calendar-modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  color: #707070;
}
.schedule-calendar-modal-header .schedule-calendar-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  line-height: 1;
  transition: color 0.2s;
}
.schedule-calendar-modal-header .schedule-calendar-modal-close:hover {
  color: #707070;
}

/* ナビゲーション */
.schedule-calendar-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: #f9f9f9;
}
.schedule-calendar-navigation .schedule-calendar-year-month {
  font-size: 20px;
  font-weight: bold;
  color: #707070;
}
.schedule-calendar-navigation button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #fe6f56;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0;
  width: 40px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.schedule-calendar-navigation button i {
  color: #fff;
  font-size: 16px;
}
.schedule-calendar-navigation button:hover:not(:disabled) {
  background: #E2614D;
  color: #fff;
}
.schedule-calendar-navigation button:hover:not(:disabled) i {
  color: #fff;
}
.schedule-calendar-navigation button:disabled {
  background: #ddd;
  color: #999;
  cursor: not-allowed;
}
.schedule-calendar-navigation button:disabled i {
  color: #999;
}
.schedule-calendar-navigation button:focus {
  outline: 2px solid #999;
  outline-offset: 2px;
}

/* カレンダー本体 */
.schedule-calendar-body {
  padding: 24px;
}

/* カレンダーテーブル */
.schedule-calendar-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  table-layout: fixed;
}
.schedule-calendar-table thead {
  background: transparent;
  color: #707070;
  border-bottom: 2px solid #fe6f56;
}
.schedule-calendar-table thead th {
  padding: 12px 8px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  width: 14.285%;
}
.schedule-calendar-table thead th.sunday {
  color: #fe6f56;
}
.schedule-calendar-table thead th.saturday {
  color: #5B9BD5;
}
.schedule-calendar-table tbody td {
  padding: 0 6px;
  border: 1px solid #ddd;
  vertical-align: top;
  min-height: 80px;
  background: #fff;
  width: 14.285%;
}
@media (max-width: 768px) {
  .schedule-calendar-table tbody td {
    padding: 0 4px;
    min-height: 60px;
  }
}
.schedule-calendar-table tbody td.empty-cell {
  background: #f5f5f5;
}
.schedule-calendar-table tbody td.sunday {
  background: #fff5f5;
}
.schedule-calendar-table tbody td.saturday {
  background: #f0f8ff;
}
.schedule-calendar-table tbody td.closed-day {
  background: #f5f5f5;
}
.schedule-calendar-table tbody td .day-number {
  font-size: 16px;
  font-weight: bold;
  color: #707070;
  margin-bottom: 4px;
}
.schedule-calendar-table tbody td .day-number.sunday-number {
  color: #fe6f56;
}
.schedule-calendar-table tbody td .day-number.saturday-number {
  color: #5B9BD5;
}
.schedule-calendar-table tbody td .day-number.holiday-number {
  color: #fe6f56;
}
.schedule-calendar-table tbody td .doctors {
  margin: 4px 0;
}
.schedule-calendar-table tbody td .doctors .doctor-name {
  display: inline-block;
  padding: 2px 8px;
  margin: 2px;
  background: #ff9e8c;
  color: #fff;
  border-radius: 3px;
  font-size: 12px;
}
.schedule-calendar-table tbody td .note {
  margin-top: 4px;
  font-size: 11px;
  color: #666;
  font-style: italic;
}
.schedule-calendar-table tbody td .closed {
  font-size: 14px;
  color: #999;
}

/* 注釈 */
.schedule-calendar-note {
  padding: 20px 24px;
  background: #f9f9f9;
  border-top: 2px solid #f0f0f0;
}
.schedule-calendar-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* モーダルフッター（下部閉じるボタン） */
.schedule-calendar-modal-footer {
  padding: 20px 24px;
  text-align: center;
  border-top: 2px solid #f0f0f0;
  display: none;
}
@media (max-width: 768px) {
  .schedule-calendar-modal-footer {
    display: block;
    padding: 12px 24px;
  }
}
.schedule-calendar-modal-footer .schedule-calendar-modal-close-bottom {
  background: #fe6f56;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  max-width: 200px;
}
.schedule-calendar-modal-footer .schedule-calendar-modal-close-bottom:hover {
  background: #E2614D;
}

/* body.modal-open */
body.modal-open {
  overflow: hidden;
}

/* 埋め込みカレンダー */
.schedule-calendar-embedded-section {
  padding: 60px 0 30px;
}
.schedule-calendar-embedded-section .schedule-calendar-embedded-section__inner {
  width: 1200px;
  margin: 0 auto;
  padding: 180px 0 0;
}
@media (max-width: 1199px) {
  .schedule-calendar-embedded-section .schedule-calendar-embedded-section__inner {
    width: 90%;
  }
}
@media (max-width: 1024px) {
  .schedule-calendar-embedded-section .schedule-calendar-embedded-section__inner {
    padding-top: 200px;
  }
}
@media (max-width: 768px) {
  .schedule-calendar-embedded-section .schedule-calendar-embedded-section__inner {
    padding-top: 240px;
  }
}

.schedule-calendar-embedded {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.schedule-calendar-embedded-header {
  padding: 30px 24px 20px;
  text-align: center;
  border-bottom: 2px solid #f0f0f0;
}
.schedule-calendar-embedded-header .schedule-calendar-embedded-title {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
  color: #707070;
  letter-spacing: 0.05em;
}

.schedule-calendar-empty,
.schedule-calendar-error {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 16px;
}

.schedule-calendar-error {
  color: #fe6f56;
}

/* 埋め込みカレンダーのみ：tdに上下paddingを追加 */
.schedule-calendar-embedded .schedule-calendar-table tbody td {
  padding: 8px 6px;
}
@media (max-width: 768px) {
  .schedule-calendar-embedded .schedule-calendar-table tbody td {
    padding: 6px 4px;
  }
}

/* レスポンシブ */
@media (max-width: 768px) {
  .schedule-calendar-embedded-section {
    padding: 40px 0 20px;
  }
  .schedule-calendar-embedded {
    border-radius: 8px;
  }
  .schedule-calendar-embedded-header {
    padding: 24px 16px 16px;
  }
  .schedule-calendar-embedded-header .schedule-calendar-embedded-title {
    font-size: 20px;
  }
  .schedule-calendar-empty,
  .schedule-calendar-error {
    padding: 30px 16px;
    font-size: 14px;
  }
  .schedule-calendar-modal-content {
    border-radius: 0;
    max-height: 100vh;
  }
  .schedule-calendar-modal-header {
    padding: 10px;
  }
  .schedule-calendar-modal-header .schedule-calendar-modal-title {
    font-size: 18px;
  }
  .schedule-calendar-navigation {
    padding: 10px;
  }
  .schedule-calendar-navigation .schedule-calendar-year-month {
    font-size: 16px;
  }
  .schedule-calendar-body {
    padding: 10px 16px 8px 16px;
  }
  .schedule-calendar-table {
    font-size: 12px;
  }
  .schedule-calendar-table thead th {
    padding: 8px 4px;
    font-size: 12px;
  }
  .schedule-calendar-table tbody td {
    padding: 0 4px;
  }
  .schedule-calendar-table tbody td .day-number {
    font-size: 14px;
  }
  .schedule-calendar-table tbody td .doctors .doctor-name {
    font-size: 8px;
    padding: 1px 4px;
  }
  .schedule-calendar-table tbody td .doctors .doctor-name .sensei-break::before {
    content: "\a";
    white-space: pre;
  }
  .schedule-calendar-table tbody td .note {
    font-size: 10px;
  }
  .schedule-calendar-table tbody td .closed {
    font-size: 12px;
  }
  .schedule-calendar-note {
    padding: 10px 16px;
  }
  .schedule-calendar-note p {
    font-size: 12px;
  }
}
