/* スポイラー要素のスタイル設定 */
.spoiler {
  display: none;
  /* 初期状態で表示しない */
  padding: 10px;
  /* 内側の余白を10pxに設定 */
}

/*-------------------------------------
  閉じている状態（デフォルト）
--------------------------------------*/
body.light-mode .spoiler-toggle.closed .text,
body.light-mode .spoiler-toggle.closed .icon {
  color: black;
}

body.dark-mode .spoiler-toggle.closed .text,
body.dark-mode .spoiler-toggle.closed .icon {
  color: white;
}

/*-------------------------------------
  閉じている状態でホバー
--------------------------------------*/
body.light-mode .spoiler-toggle.closed:hover .text,
body.light-mode .spoiler-toggle.closed:hover .icon {
  color: gray;
}
body.dark-mode .spoiler-toggle.closed:hover .text,
body.dark-mode .spoiler-toggle.closed:hover .icon {
  color: white; 
}

/*-------------------------------------
  開いている状態（デフォルト）
--------------------------------------*/
.spoiler-toggle.open .text,
.spoiler-toggle.open .icon {
  color: gray;
}

/*-------------------------------------
  開いている状態でホバー
--------------------------------------*/
body.light-mode .spoiler-toggle.open:hover .text,
body.light-mode .spoiler-toggle.open:hover .icon {
  color: gray;  
}
body.dark-mode .spoiler-toggle.open:hover .text,
body.dark-mode .spoiler-toggle.open:hover .icon {
  color: #b7b7b7; 
}

/* メール、パスワード、テキスト入力フィールドののスタイル */
input[type="email"],
input[type="password"],
input[type="button"],
input[type="text"] {
  display: block;
  /* ブロック要素として表示 */
  margin-top: 5px;
  /* 上部に5pxのマージンを設定 */
  margin-bottom: 20px;
  /* 下部に20pxのマージンを設定 */
}

/* メールアドレス変更ボタンのスタイル */
#changeEmailButton {
  display: block;
  /* ブロック要素として表示 */
  margin-top: 20px;
  /* 上部に20pxのマージンを設定 */
}

/* パスワードリセットボタンのスタイル */
#resetPasswordButton {
  display: block;
  /* ブロック要素として表示 */
  margin-top: 15px;
  /* 上部に15pxのマージンを設定 */
}

/* 送信ボタンのスタイル */
button[type="submit"] {
  display: block;
  /* ブロック要素として表示 */
  margin-top: 25px;
  /* 上部に25pxのマージンを設定 */
}

/* ボタンの基本スタイル */
button {
  padding: 10px 10px;
  /* 内側の余白を上下左右10pxに設定 */
}

/* 誕生日登録フォームのスタイル */
#birthdaySection {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #f9f9f9;
  max-width: 400px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#birthdaySection label {
  display: block;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
}

#birthdayInput {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #bbb;
  border-radius: 6px;
  box-sizing: border-box;
  margin-bottom: 15px;
}

#saveBirthdayButton {
  padding: 12px 24px;
  font-size: 16px;
  background: linear-gradient(to bottom, #4caf50, #388e3c);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

#saveBirthdayButton:hover {
  background: linear-gradient(to bottom, #66bb6a, #43a047);
}

/* 誕生日メッセージスタイル */
#birthdayMessage {
  margin-top: 20px;
  padding: 15px 20px;
  background-color: #fff8e1;
  border-left: 6px solid #ffb300;
  border-radius: 8px;
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#birthdayMessage strong {
  color: #d84315;
  font-weight: bold;
}

html.dark-mode #birthdaySection {
  background-color: #2b2b2b !important;
  border: 1px solid #666 !important;
}

html.light-mode #birthdaySection {
  background-color: #f9f9f9 !important;
  border: 1px solid #ccc !important;
}

/* =========================
   スイッチ（トグル）部品
   ========================= */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin: 8px 0 10px 2px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #c7c7c7;
  border-radius: 24px;
  transition: background 0.2s;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 2.5px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.09);
}

.switch input:checked+.slider {
  background-color: #2a78d0;
}

.switch input:checked+.slider:before {
  transform: translateX(20px);
}

.switch input:disabled+.slider {
  background: #eee;
  opacity: 0.6;
}

/* ---- モード別スイッチ色調整 ---- */
body.dark-mode .slider {
  background-color: #444;
}

body.dark-mode .switch input:checked+.slider {
  background-color: #2a78d0;
}

body.dark-mode .slider:before {
  background-color: #181818;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

body.light-mode .slider {
  background-color: #c7c7c7;
}

body.light-mode .switch input:checked+.slider {
  background-color: #2a78d0;
}

body.light-mode .slider:before {
  background-color: #fff;
}

/* =========================
   設定カード（項目ごと）
   ========================= */
.settings-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7em 0;
  background: var(--c-bg);
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  min-width: 220px;
}

.settings-label {
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 6px;
  color: var(--c-fg);
}

.settings-desc {
  font-size: 0.97rem;
  margin-top: 2px;
  color: #888;
  display: block;
  min-height: 1.6em;
}

/* ---- ダークモード見やすさ ---- */
body.dark-mode .settings-card {
  background: #282828;
  border: 1px solid #353535;
}

body.dark-mode .settings-label {
  color: #f1f1f1;
}

body.dark-mode .settings-desc {
  color: #bbb;
}

body.dark-mode .header-content,
body.dark-mode footer {
  background: #bbb !important;
  color: #191919 !important;
}

.dark-mode input[type="date"] {
  background: #aaa !important;
  color: #181818 !important;
  border: 1px solid #181818 !important;
}

