/* マイページ - 設定タブ専用CSS */

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d3d7e5;
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--mint);
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #e5e9f5;
  border-radius: 12px;
  margin-bottom: 12px;
}

.notification-group {
  margin-bottom: 12px;
}

.notification-group .notification-item {
  margin-bottom: 0;
  border-radius: 0;
}

.notification-group .notification-item:first-child {
  border-radius: 12px 12px 0 0;
  border-bottom: none;
}

.notification-group .notification-item:last-child {
  border-radius: 0 0 12px 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.notification-label {
  font-size: var(--fs-13);
  color: var(--text-sub);
}

.notification-select {
  min-width: 140px;
  padding: 8px 12px;
  border: 1px solid #dde1f3;
  border-radius: 8px;
  font-size: var(--fs-12);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-sub);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.notification-select:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(90, 208, 199, 0.1);
}

.memo-textarea {
  width: 100%;
  min-height: 200px;
  padding: 14px 16px;
  border: 1px solid #dde1f3;
  border-radius: 12px;
  font-size: var(--fs-13);
  font-family: inherit;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.memo-textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(90, 208, 199, 0.1);
}

/* 自分の立ち位置（働き方）のpillスタイル - 扶養ページのトンマナに合わせる */
#mypage-tab-settings .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

#mypage-tab-settings .pill {
  transition: all 0.2s ease;
  cursor: pointer;
}

#mypage-tab-settings .pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(140, 160, 190, 0.2);
}

#mypage-tab-settings .pill.active {
  background: linear-gradient(135deg, rgba(94, 200, 216, 0.15), rgba(143, 140, 243, 0.12));
  border-color: rgba(94, 200, 216, 0.4);
  color: var(--text-main);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(94, 200, 216, 0.25);
}

/* スマホ版（768px以下）の最適化 */
@media (max-width: 768px) {
  .notification-item {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
  }

  .notification-group {
    margin-bottom: 8px;
  }

  .notification-group .notification-item:first-child {
    border-radius: 10px 10px 0 0;
  }

  .notification-group .notification-item:last-child {
    border-radius: 0 0 10px 10px;
  }

  .notification-label {
    font-size: var(--fs-12);
  }

  .toggle-switch {
    width: 44px;
    height: 24px;
  }

  .notification-select {
    min-width: 110px;
    padding: 6px 10px;
    font-size: var(--fs-11);
  }

  .toggle-slider:before {
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
  }

  input:checked + .toggle-slider:before {
    transform: translateX(20px);
  }

  #mypage-tab-settings .pill-row {
    gap: 8px;
    margin-top: 6px;
  }

  .settings-note {
    font-size: var(--fs-11);
    margin-top: 6px;
    line-height: 1.4;
  }
}
