/* ==========================
/* イベントページ用カスタムカレンダースタイル
/* ========================== */

/* フォーカス時のスタイル（入力フィールド自体） */
.h-conditional-search__date-item:focus {
  outline: 2px solid var(--h-dark-green);
  outline-offset: 2px;
  border-color: var(--h-dark-green);
}

/* カスタムカレンダーポップアップのスタイル */
.h-custom-calendar {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: var(--h-white-color);
  border: 1px solid var(--h-border-gray);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 16px;
  min-width: 280px;
}

/* SP時のカレンダー位置調整はJavaScriptで動的に処理 */

.h-custom-calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.h-custom-calendar__nav-button {
  width: 26px;
  height: 26px;
  background-color: var(--h-light-gray);
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-custom-calendar__nav-button img {
  width: 12px;
  height: 12px;
  display: block;
}

.h-custom-calendar__nav-button:hover {
  opacity: 0.8;
}

.h-custom-calendar__month-year {
  font-size: 14px;
  font-weight: bold;
  color: var(--h-text-color);
  display: flex;
  align-items: center;
  line-height: 1;
}

.h-custom-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.h-custom-calendar__weekday {
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: var(--h-text-color);
  padding: 4px 0;
}

.h-custom-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.h-custom-calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  color: var(--h-text-color);
  background: transparent;
  border: none;
  padding: 0;
}

.h-custom-calendar__day:hover {
  background-color: var(--h-light-gray);
}

.h-custom-calendar__day:focus {
  color: black;
  outline: 2px solid #007bff;
  background-color: #e6f0ff;
}

.h-custom-calendar__day--other-month {
  color: var(--h-text-gray);
}

.h-custom-calendar__day--today {
  color: var(--h-dark-green);
  font-weight: 900;
}

.h-custom-calendar__day--selected {
  background-color: var(--h-green);
  color: var(--h-white-color);
  border-radius: 50%;
}

.h-custom-calendar__day--selected:hover {
  background-color: var(--h-dark-green);
  opacity: 0.8;
}

.h-custom-calendar__day--today.h-custom-calendar__day--selected {
  background-color: var(--h-green);
  color: var(--h-white-color);
}

.h-custom-calendar__day--today.h-custom-calendar__day--selected:hover {
  background-color: var(--h-dark-green);
  opacity: 0.8;
}

