/* ==============================
   スケジュール機能専用スタイル
   ============================== */
#schedules-container {
  margin-top: 30px;
}

/* indexビュー（予定一覧） */
/* ページタイトル */
.schedule-title {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #1f2937;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* 下線アクセント */
.schedule-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 50px; /* 線の長さ */
  background: linear-gradient(90deg, #81c784, #66bb6a);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.schedule-table th,
.schedule-table td {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 8px;
  text-align: left;
  word-break: break-word;
  font-size: 15px;
}

.schedule-table th {
  display: none;
}

.schedule-table tr:hover {
  background-color: #f3f4f6;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.schedule-col-date { width: 20%; }
.schedule-col-item { width: 35%; }
.schedule-col-memo { width: 45%; }

/* new, editフォーム（予定登録・編集） */
/* モーダル内フォーム用調整 */
.no-record-modal-container .schedule-form-container {
  max-width: none;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
}

.schedule-form-group {
  margin-bottom: 1rem;
}

.schedule-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 15px;
}

.schedule-form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #99c;
  border-radius: 4px;
  font-size: 15px;
  background-color: #fff;
  color: #000;
}

.schedule-form-input:focus {
  box-shadow: none;
  outline: none;
  border-color: #6fcf97;
}

.schedule-form-actions {
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

/* 通常のボタン・リンク */
.schedule-form-actions a,
.schedule-form-actions input[type="submit"] {
  padding: 10px 20px;
  font-size: 15px;
  border: none;
  border-radius: 4px;
  background: #4CAF50;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.schedule-form-actions button {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  background: #e53935;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.schedule-form-actions a:hover,
.schedule-form-actions input[type="submit"]:hover {
  background: #45a049;
}

.schedule-form-actions button:hover {
  background: #c62828;
}

.schedule-checkbox-wrapper {
 display: inline-flex;
 vertical-align: middle;
 line-height: 1;
 align-items: center;
 gap: 5px;
 margin-bottom: 6px;
 width: fit-content;
}

/* カスタムチェックボックス */
.schedule-form-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;

}

/* チェック時 */
.schedule-form-checkbox:checked {
  background-color: #4caf50;
  border-color: #4caf50;
}

/* フォーカス時 */
.schedule-form-checkbox:focus {
  box-shadow: 0 0 0 2px #4caf50;
}

.schedule-show-actions {
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.schedule-show-modern {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 24px;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeIn 0.25s ease;
}

.schedule-show-title {
  font-size: 1.6rem;
  text-align: center;
  color: #333;
  margin-bottom: 20px;
  font-weight: bold;
}

.schedule-show-detail p {
  display: flex;
  align-items: center;
  margin: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.schedule-show-detail .icon {
  color: #4caf50;
  margin-right: 10px;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.schedule-show-detail strong {
  width: 90px;
  color: #555;
  font-weight: 600;
}

.schedule-show-detail span {
  color: #222;
  flex: 1;
}

.schedule-show-action {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.schedule-action-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s;
  cursor: pointer;
}

.schedule-action-btn.edit {
  background-color: #4caf50;
}

.schedule-action-btn.close {
  background-color: #9e9e9e;
}

.schedule-action-btn:hover {
  opacity: 0.9;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* ==============================
   スケジュール共通：新規作成ボタン
   ============================== */
.schedule-create-btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  border: 1px solid #6fcf97;
  border-radius: 6px;
  background-color: #fff;
  color: #4caf50;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.schedule-create-btn:hover {
  background-color: #6fcf97;
  color: #fff;
}

/* クリック時の押し感 */
.schedule-create-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* カレンダー */
.day {
  border: 1px solid #ccc;
  padding: 5px;
  min-height: 80px;
}

.calendar-container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 10px;
}

.calendar-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.calendar-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-nav {
  padding: 6px 12px;
  background: #f5f5f5;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid #ddd;
}

.simple-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* 7列均等 */
  width: 100%;
  border-collapse: collapse;
}

.day-cell {
  border: 1px solid #ddd;
  min-height: 100px;
  padding: 4
}

/* 他の月の日付 */
.other-month {
  background-color: #f5f5f5;
  color: #9ca3af;
}

.event-link {
  display: block;
  margin: 2px 0;
  padding: 2px 4px;
  background-color: #2563eb;
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
}

.event-link:hover {
  background-color: #1d4ed8;
}

/* 複数子供の場合（青固定） */
.event-link.multiple-children {
  background-color: #3b82f6; /* 青 */
  color: #fff;
}

/* 単独子供の場合は従来通りインデックスやIDで色を設定 */
.event-link.child-color-0 { background-color: #f59e0b; } /* オレンジ */
.event-link.child-color-1 { background-color: #10b981; } /* 緑 */
.event-link.child-color-2 { background-color: #8b5cf6; } /* 紫 */
.event-link.child-color-3 { background-color: #f43f5e; } /* 赤など必要に応じて追加 */
.event-link.child-color-4 { background-color: #facc15; } /* 黄など */

/* ユーザー予定 */
.event-link.user-event { background-color: #6b7280; } /* グレー */

/* 共通スタイル */
.event-link {
  display: block;
  margin: 2px 0;
  padding: 2px 4px;
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
}

.event-link:hover {
  filter: brightness(0.9);
}
