/* ▼ FullCalendar カスタムスタイル */

/* 日付セル背景 */
#calendarBirthday .fc-daygrid-day {
  background-color: #f2efe7;
}

/* ヘッダー文字 */
#calendarBirthday .fc-col-header-cell-cushion {
  color: #f2efe7;
  font-size: 12px !important;
  padding: 4px 0 !important;
}
#calendarBirthday th.fc-day-sun .fc-col-header-cell-cushion { color: #e18984; }
#calendarBirthday th.fc-day-sat .fc-col-header-cell-cushion { color: #99CEEF; }

/* ツールバー調整 */
#calendarBirthday .fc-header-toolbar { margin-bottom: 4px !important; }
#calendarBirthday .fc-toolbar.fc-header-toolbar { background:none; border:none; box-shadow:none; padding:0; }
#calendarBirthday .fc-toolbar-title { font-size:1.3em; font-weight:bold; color:#340e12; }

/* タイトル（「2025年8月」など）の見た目を最小限に。
    font-weight が二重で指定されていますが、重複していても害はありません。 */
#calendarBirthday .fc-toolbar-title {
background: none !important;
margin: 0 !important;
padding: 0 !important;
font-size: 20px;   /* ヘッダー文字より一回り大きく */
font-weight: bold;  /* 強調 */
color: #340e12;     /* テーマの濃色 */
}

/* ボタン */
#calendarBirthday .fc-button {
   background-color: #fff; /* 白背景 */
   color: #340e12; /* テキストは濃色 */
   border: 1px solid #ccc; /* 薄い枠線 */
   border-radius: 20px; /* 丸み */
   padding: 0.3em 0.9em; /* 余白 */
   font-size: 0.9em; /* 少し小さめで軽快に */
   transition: all 0.2s ease; /* ホバーアニメーション */
   box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#calendarBirthday .fc-today-button {
   background-color: #fef3cb; /* 今日のハイライトと同じ色 */
   color: #340e12;
   font-weight: bold; /* 太字 */
   border: none;
   border-radius: 999px; /* 楕円形にするため大きく指定 */
   min-width: 48px; /* 横幅を広めに確保 */
   height: 32px;
   padding: 0 12px; /* 左右余白を広めに */
   display: inline-flex;
   align-items: center;
   justify-content: center;
   border: 1px solid #ddd;
   font-size: 0.9em;
   box-shadow: none; /* フラット */
   transition: background-color 0.2s ease, color 0.2s ease;
}
#calendarBirthday .fc-today-button:hover { 
   background-color: #340e12;
   color: #fff;
   border-color: #340e12;
}

/* 矢印ボタン */
#calendarBirthday .fc-prev-button, #calendarBirthday .fc-next-button {
   background-color: #f2efe7; /* 背景色 */
   color: #340e12; /* テキスト色 */
   font-weight: bold; /* 太字 */
   border-radius: 999px; /* 楕円形にするため大きく指定 */
   min-width: 48px; /* 横幅を広めに確保 */
   height: 32px;
   padding: 0 12px; /* 左右余白を広めに */
   display: inline-flex;
   align-items: center;
   justify-content: center;
   border: 1px solid #ddd;
   font-size: 0.9em;
   box-shadow: none; /* フラット */
   transition: background-color 0.2s ease, color 0.2s ease;
}
#calendarBirthday .fc-prev-button:hover, #calendarBirthday .fc-next-button:hover {
  background:#340e12; color:#fff;
}
#calendarBirthday .fc-prev-button .fc-icon, #calendarBirthday .fc-next-button .fc-icon { display:none; }
#calendarBirthday .fc-prev-button::before { content:"＜ 前"; }
#calendarBirthday .fc-next-button::before { content:"次 ＞"; }

/* 前ボタンとタイトルの間に余白を作る */
#calendarBirthday .fc-prev-button {
margin-right: 11px; /* お好みで調整（pxやemも可） */
}

/* 曜日ヘッダー背景 */
#calendarBirthday .fc-col-header { background:#745b5d !important; }
#calendarBirthday .fc-col-header-cell.fc-day-sat { color:#007bff; }
#calendarBirthday .fc-col-header-cell.fc-day-sun { color:#d9534f; }

/* 日付数字 */
#calendarBirthday .fc-daygrid-day-number { color:#666; }
#calendarBirthday td.fc-day-sat .fc-daygrid-day-number { color:#007bff; }
#calendarBirthday td.fc-day-sun .fc-daygrid-day-number { color:#d9534f; }

/* 今日 */
#calendarBirthday td.fc-day-today { background:#fff3cd !important; }

/* ==========================
   FullCalendar 基本デザイン
========================== */
.fc-daygrid-day {
  background-color: #f8f8f8;
}

/* ==========================
   モーダル用スタイル
========================== */
.modal-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 2147483646 !important; /* 非常に高い値（ほぼ最前面） */
  pointer-events: auto; 
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  z-index: 1001;
}

.modal-overlay.active .modal-content {
  transform: translate(-50%, -50%) scale(1);
}

/* ==========================
   Modal (overlay + popup)
========================== */
#modalOverlayBirthday{
  display:none;
  position:fixed !important;
  top:0; left:0;
  width:100%; height:100%;
  background:rgba(0,0,0,0.3);
  opacity:0;
  transition:opacity .3s ease;
  z-index:2147483646 !important; /* 非常に高い値（ほぼ最前面） */
  pointer-events: auto !important;
}
#birthdayModal{
  display:none;
  position: fixed !important;
  top:50%; 
  left:50%;
  transform:translate(-50%, -50%);
  background:#f2efe7;
  border:1px solid #ccc;
  padding:20px;
  width:320px;
  max-width:90vw;
  border-radius:8px;
  box-shadow:0 4px 8px rgba(0,0,0,.2);
  opacity:0;
  transition:opacity .3s ease;
  z-index: 2147483647 !important;    /* overlay より前面 */
  overflow: auto;
}

/* イベント名 */
#birthdayModalTitle {
  font-size: 18px; /* お好みで調整 */
  font-weight: bold;
}

/* イベント日付 */
#birthdayModalDate {
  margin-top: 28px;
  font-size: 16px; /* お好みで調整 */
}

/* リンク文字 */
#birthdayModalLink {
  font-size: 16px; /* お好みで調整 */
  display: inline-block;
  color: #1176d4;
}

@media screen and (max-width:600px){
  .google-calendar-events-list .event-date-header,
  .google-calendar-events-list li { width:95%; }
}


