/* 🌸 カレンダーUI＋フォーム切替対応 最新完全版CSS */

/* 🌸 カレンダー本体 */
.calendar {
  font-family: 'メイリオ', 'Hiragino Kaku Gothic Pro', sans-serif;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
  border: 2px solid #f9c;
  border-radius: 12px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  background-color: #fffafc;
}

/* 🌸 タブヘッダー部分 */
.form-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  padding-left: 0;
  border-bottom: none;
}
.form-tab {
  font-weight: bold;
  font-size: 14px;
  padding: 6px 16px;
  cursor: pointer;
  font-family: 'メイリオ', sans-serif;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.05);
  border-bottom: none;
}
.form-tab[data-tab="icon-tab"] {
  background: #ffe4f0;
  border: 2px solid #ff99cc;
  color: #c2185b;
  border-top-left-radius: 10px;
}
.form-tab[data-tab="icon-tab"].active {
  background: #fff0f5;
}
.form-tab[data-tab="event-tab"] {
  background: #e6f4ff;
  border: 2px solid #99caff;
  color: #1865b2;
  border-top-right-radius: 10px;
}
.form-tab[data-tab="event-tab"].active {
  background: #f0f8ff;
}

/* 🌸 タブの中身（mofu_calendarとは無関係！） */
#icon-tab, #event-tab {
  display: none;
  padding: 12px;
  border-radius: 0 0 8px 8px;
}
#icon-tab.active {
  display: block;
  background: #fff0f5;
  border: 2px dashed #ff99cc;
}
#event-tab.active {
  display: block;
  background: #f0f8ff;
  border: 2px dashed #99caff;
}

/* 🌸 フォームUI共通 */
.icon-member-form {
  margin-top: 0;
}
.form-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}
.form-buttons-right {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
}
.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 13px;
}
input[type="text"], input[type="date"], .custom-icon-select {
  height: 32px;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}

/* 🌸 アイコンプルダウン */
.custom-icon-select {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  position: relative;
}
.selected-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10;
  min-width: 140px;
  max-height: 150px;
  overflow-y: auto;
  flex-direction: column;
}
.icon-options div {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
}
.icon-options div:hover {
  background-color: #ffeef5;
}

/* 🌸 登録・削除ボタン */
.edit-btn {
  background: linear-gradient(145deg, #ffc1da, #ff9ac2);
  color: white;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-family: "Comic Sans MS", cursive;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
  font-size: 13px;
  transition: all 0.2s ease;
}
.edit-btn:hover {
  background: linear-gradient(145deg, #ffaecb, #ff74af);
  transform: scale(1.05);
}
.delete-btn {
  background: linear-gradient(145deg, #a4caff, #75aefb);
  color: white;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-family: "Comic Sans MS", cursive;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
  font-size: 13px;
  transition: all 0.2s ease;
}
.delete-btn:hover {
  background: linear-gradient(145deg, #93bcfd, #6599f5);
  transform: scale(1.05);
}


/* === calendar_20250430000818 === */

/* 🌸 カレンダー全体のスタイル */
.calendar {
  font-family: 'メイリオ', 'Hiragino Kaku Gothic Pro', sans-serif;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
  border: 2px solid #f9c;
  border-radius: 12px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  background-color: #fffafc; /* やさしいピンク背景 */
}

/* 曜日ヘッダー */
.calendar th {
  background-color: #ffe0f5;
  color: #b03060;
  padding: 6px;
  border: 1px solid #ddd;
  font-weight: bold;
}

/* 通常のセル */
.calendar td {
  vertical-align: top;
  height: 80px;
  width: 14.2%;
  border: 1px solid #ddd;
  padding: 4px;
  font-size: 12px;
  background: #ffffff;
  position: relative;
}

/* 日曜と土曜の背景色 */
.calendar .sunday {
  background-color: #fff0f5;
}
.calendar .saturday {
  background-color: #e6f0ff;
}

/* イベント帯 */
.calendar .event {
  background-color: #ffccf5;
  color: #a02e60;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 6px;
  margin-top: 4px;
  display: inline-block;
  text-align: center;
}

/* アイコン（絵文字など） */
.calendar .icon {
  display: block;
  text-align: center;
  font-size: 18px;a
  margin-top: 2px;
}

/* 🌸 日曜・祝日（赤文字） */
.sunday,
.holiday-name {
  color: #d33;
  font-weight: bold;
}

/* 🌊 土曜日（青文字） */
.saturday {
  color: #339;
  background-color: #e6f0ff;
}

/* 🎌 祝日名のスタイル */
.holiday-name {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

.holiday-name {
  font-size: 11px;
  margin-left: 4px;
  color: #d33;
  font-weight: bold;
  display: inline; /* ← 横並びに！ */
}
.saturday {
  color: #339;
  background-color: #e6f0ff;
}
.sunday {
  color: #d33;
  background-color: #fff0f5;
}

/* 🌸 モーダルスタイル（シンプル版） */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}
.modal-content {
  background: #fff;
  width: 320px;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #999;
}
.icon-select img {
  width: 32px;
  margin: 4px;
  border: 2px solid transparent;
  cursor: pointer;
}
.icon-select img.selected {
  border-color: #f9c;
}
.event-bar {
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 6px;
  margin-top: 4px;
  background-color: #f9c;
  text-align: center;
}
.calendar-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 4px;
}

.color-sample {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  margin: 3px;
  cursor: pointer;
  border: 2px solid transparent;
}
.color-sample.selected {
  border-color: #000;
}
.event-bar {
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 6px;
  margin-top: 4px;
  position: relative;
  text-align: center;
}
.event-bar .delete-btn {
  position: absolute;
  top: 0; right: 4px;
  font-size: 12px;
  color: #900;
  cursor: pointer;
}

.icon-member-form {
  margin-top: 20px;
  background: #fff0f5;
  padding: 10px;
  border: 2px dashed #ff99cc;
  border-radius: 8px;
}



/* === calendar_20250430001512 === */

/* 🌸 カレンダー全体のスタイル */
.calendar {
  font-family: 'メイリオ', 'Hiragino Kaku Gothic Pro', sans-serif;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
  border: 2px solid #f9c;
  border-radius: 12px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  background-color: #fffafc; /* やさしいピンク背景 */
}

/* 曜日ヘッダー */
.calendar th {
  background-color: #ffe0f5;
  color: #b03060;
  padding: 6px;
  border: 1px solid #ddd;
  font-weight: bold;
}

/* 通常のセル */
.calendar td {
  vertical-align: top;
  height: 80px;
  width: 14.2%;
  border: 1px solid #ddd;
  padding: 4px;
  font-size: 12px;
  background: #ffffff;
  position: relative;
}

/* 日曜と土曜の背景色 */
.calendar .sunday {
  background-color: #fff0f5;
}
.calendar .saturday {
  background-color: #e6f0ff;
}

/* イベント帯 */
.calendar .event {
  background-color: #ffccf5;
  color: #a02e60;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 6px;
  margin-top: 4px;
  display: inline-block;
  text-align: center;
}

/* アイコン（絵文字など） */
.calendar .icon {
  display: block;
  text-align: center;
  font-size: 18px;a
  margin-top: 2px;
}

/* 🌸 日曜・祝日（赤文字） */
.sunday,
.holiday-name {
  color: #d33;
  font-weight: bold;
}

/* 🌊 土曜日（青文字） */
.saturday {
  color: #339;
  background-color: #e6f0ff;
}

/* 🎌 祝日名のスタイル */
.holiday-name {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

.holiday-name {
  font-size: 11px;
  margin-left: 4px;
  color: #d33;
  font-weight: bold;
  display: inline; /* ← 横並びに！ */
}
.saturday {
  color: #339;
  background-color: #e6f0ff;
}
.sunday {
  color: #d33;
  background-color: #fff0f5;
}

/* 🌸 モーダルスタイル（シンプル版） */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}
.modal-content {
  background: #fff;
  width: 320px;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #999;
}
.icon-select img {
  width: 16px;
  height: 16px;
  margin: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  object-fit: contain; /* ←縦長・横長防止 */
}
.icon-select img.selected {
  border-color: #f9c;
}
.event-bar {
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 6px;
  margin-top: 4px;
  background-color: #f9c;
  text-align: center;
}
.calendar-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 4px;
}

.color-sample {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  margin: 3px;
  cursor: pointer;
  border: 2px solid transparent;
}
.color-sample.selected {
  border-color: #000;
}
.event-bar {
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 6px;
  margin-top: 4px;
  position: relative;
  text-align: center;
}
.event-bar .delete-btn {
  position: absolute;
  top: 0; right: 4px;
  font-size: 12px;
  color: #900;
  cursor: pointer;
}

.icon-member-form {
  margin-top: 20px;
  background: #fff0f5;
  padding: 10px;
  border: 2px dashed #ff99cc;
  border-radius: 8px;
}



/* === color fix === */


/* 🌸 最終優先：土日祝の色表示を明示的に固定 */
.calendar .sunday {
  color: #d33 !important;
  background-color: #fff0f5 !important;
  font-weight: bold !important;
}
.calendar .saturday {
  color: #339 !important;
  background-color: #e6f0ff !important;
  font-weight: bold !important;
}
.calendar .holiday-name {
  color: #d33 !important;
  font-weight: bold !important;
  display: inline !important;
  font-size: 11px !important;
  margin-left: 4px !important;
}

/* 🌸 二重枠防止：外枠はタブ本体だけに付ける */
#icon-tab.active,
#event-tab.active {
  border-radius: 10px;
  padding: 12px;
  margin-top: 0;
}

/* 🌸 内側フォームの背景と枠を消してスッキリ */
.icon-member-form,
.event-form {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* 🌸 タブアクティブ時の角丸を調整して一体化 */
.form-tab[data-tab="icon-tab"].active {
  border-top-left-radius: 10px;
  border-top-right-radius: 0;
}
.form-tab[data-tab="event-tab"].active {
  border-top-right-radius: 10px;
  border-top-left-radius: 0;
}

#icon-tab.active,
#event-tab.active {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* 🌸 カスタムもふアラート専用モーダル（装備Navi風） */
#mofuAlertModal .modal-content {
  width: 420px;
  background: #fffafc;
  border: 4px solid #ff66b2;
  border-radius: 20px;
  padding: 30px 30px 20px 30px;
  font-family: "Comic Sans MS", cursive;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

/* 🌸 もふもふモーダルタイトル（装備Navi風見出し） */
.mofu-modal-title {
  font-size: 24px;
  font-weight: 700;
  font-family: "Comic Sans MS", cursive;
  color: #d63384;
  text-align: center;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

/* 🌸 OKボタン */
#mofuAlertModal .edit-btn {
  background: linear-gradient(145deg, #ff99cc, #ff66b2);
  color: white;
  font-weight: bold;
  font-size: 14px;
  padding: 8px 24px;
  border-radius: 30px;
  border: none;
  margin-top: 24px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

/* 🌸 もふアラート専用アイコン拡大 */
#mofuAlertModal .calendar-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin: 0 4px;
}
