/**
 * 共通スタイルシート
 * システム全体の基本スタイル、レスポンシブデザイン、モバイルメニュー
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1, h2 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.company-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  border-left: 5px solid #3498db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.company-info h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

.company-info p {
  margin: 8px 0;
  font-size: 16px;
  color: #495057;
  font-weight: 500;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.radio-group {
  display: flex;
  gap: 0;
  margin-top: 5px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.radio-group label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  margin-bottom: 0;
  padding: 12px 20px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  border-right: 1px solid #ddd;
}

.radio-group label:last-child {
  border-right: none;
}

.radio-group label:hover {
  background: #e9ecef;
}

.radio-group input[type="radio"] {
  display: none;
}

.radio-group input[type="radio"]:checked ~ span,
.radio-group input[type="radio"]:checked + span {
  background: #3498db !important;
  color: white !important;
}

.radio-group label:has(input[type="radio"]:checked) {
  background: #3498db !important;
  color: white !important;
}

.radio-group label span {
  transition: all 0.2s;
  pointer-events: none;
}

input, select, button {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

input[type="checkbox"] {
  width: auto;
  margin: 0;
}

button {
  background-color: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #2980b9;
}

button.secondary {
  background-color: #95a5a6;
}

button.secondary:hover {
  background-color: #7f8c8d;
}

button.danger {
  background-color: #e74c3c;
}

button.danger:hover {
  background-color: #c0392b;
}

button.success {
  background-color: #27ae60;
}

button.success:hover {
  background-color: #229954;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.slot-button {
  padding: 8px;
  font-size: 14px;
  width: auto;
}

/* 時間帯グループのスタイル */
.time-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.time-group {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid #3498db;
}

.time-group h4 {
  margin: 0 0 12px 0;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
}

.time-group-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.time-slot-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 14px;
  color: #495057;
}

.time-slot-card:hover {
  border-color: #3498db;
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.time-slot-card.selected {
  background: #3498db;
  border-color: #3498db;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.no-slots {
  color: #6c757d;
  text-align: left;
  padding: 8px;
}

#book-button {
  margin-top: 24px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
  margin-bottom: 0;
  cursor: pointer;
  white-space: nowrap;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.booking-item {
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fafafa;
}

.booking-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.status-pending {
  background-color: #f39c12;
  color: white;
}

.status-approved {
  background-color: #27ae60;
  color: white;
}

.status-rejected {
  background-color: #e74c3c;
  color: white;
}

.nav {
  background: linear-gradient(135deg, #3498db, #2980b9);
  padding: 20px 0;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 40px;
  width: auto;
  background: transparent;
}

.nav-title {
  color: white;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-title .service-name {
  font-size: 20px;
}

.nav-title .user-type {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
}

.nav h1 {
  color: white;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.nav a:hover {
  background: rgba(255,255,255,0.2);
}

/* ハンバーガーメニュー */
.hamburger-menu {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  transition: background-color 0.2s;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
  transform-origin: center;
}

.hamburger-menu:hover span {
  background: rgba(255,255,255,0.8);
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-content {
  padding: 0;
}

.mobile-menu-header {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 96px;
  box-sizing: border-box;
}

.mobile-menu-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.close-menu {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-menu:hover {
  background: rgba(255,255,255,0.2);
}

.mobile-nav-links {
  padding: 20px 0;
}

.mobile-nav-links a {
  display: block;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s;
}

.mobile-nav-links a:hover {
  background: #f8f9fa;
  color: #3498db;
}

.mobile-nav-links a.active {
  background: #e3f2fd;
  color: #3498db;
  border-left: 4px solid #3498db;
}

.mobile-nav-links a.logout-link {
  color: #e74c3c;
  border-top: 2px solid #f0f0f0;
  margin-top: 10px;
}

.mobile-nav-links a.logout-link:hover {
  background: #fdf2f2;
  color: #c0392b;
}

/* メニューインデント用スタイル */
.mobile-nav-links .menu-indent {
  background: #f8f9fa;
  border-left: 4px solid #3498db;
}

.mobile-nav-links .menu-indent a {
  padding-left: 40px;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #e9ecef;
}

.mobile-nav-links .menu-indent a:hover {
  background: #e9ecef;
  color: #3498db;
}

/* 親子メニュー用スタイル */
.mobile-nav-links .menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  color: #333;
  cursor: pointer;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s;
}

.mobile-nav-links .menu-item:hover {
  background: #f8f9fa;
  color: #3498db;
}

.mobile-nav-links .menu-item.active {
  background: #e3f2fd;
  color: #3498db;
  border-left: 4px solid #3498db;
}

.submenu-arrow {
  font-size: 12px;
  transition: transform 0.2s;
}

.submenu {
  display: none;
  background: #f8f9fa;
  border-left: 4px solid #3498db;
}

.submenu a {
  display: block;
  padding: 12px 20px 12px 40px;
  color: #555;
  text-decoration: none;
  font-weight: normal;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.2s;
}

.submenu a:hover {
  background: #e9ecef;
  color: #3498db;
}

/* メニューが開いている時のボディ */
body.menu-open {
  overflow: hidden;
}

/* オーバーレイ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* メニューオーバーレイ */
body.menu-open::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.hidden {
  display: none;
}

.message {
  padding: 6px;
  border-radius: 4px;
  margin-top:16px;
  margin-bottom: 16px;
  width: 100%;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.calendar-container {
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #3498db;
  color: white;
}

.calendar-nav {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.calendar-nav:hover {
  background: rgba(255,255,255,0.2);
}

#calendar-title {
  text-align: center;
  margin: 0;
  font-size: 18px;
  flex: 1;
  white-space: nowrap;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day-header {
  padding: 12px 8px;
  text-align: center;
  font-weight: 500;
  background: #ecf0f1;
  border-bottom: 1px solid #bdc3c7;
  font-size: 14px;
  color: #2c3e50;
}

.calendar-day-header.weekday {
  color: #2c3e50;
}

.calendar-day-header.saturday {
  color: #3498db;
}

.calendar-day-header.sunday {
  color: #e74c3c;
}

.calendar-day {
  min-height: 60px;
  border: 1px solid #ecf0f1;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
}

.calendar-day:hover {
  background: #f8f9fa;
}

.calendar-day.other-month {
  color: #bdc3c7;
  background: #fafafa;
}

.calendar-day.selected {
  background: #3498db;
  color: white;
}

.calendar-day.has-slots {
  background: #e8f5e8;
}

.calendar-day.has-slots:hover {
  background: #d4edda;
}

.calendar-day.selected.has-slots {
  background: #27ae60;
}

.day-number {
  font-weight: 500;
  margin-bottom: 4px;
}

.day-slots {
  font-size: 11px;
  color: #27ae60;
}

.calendar-day.other-month .day-slots {
  display: none;
}

.mobile-day-view {
  display: none;
}

.mobile-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #ecf0f1;
  color: #2c3e50;
}

.mobile-day-header > div {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.mobile-day-content {
  padding: 16px;
}

.mobile-day-info {
  text-align: center;
  margin-bottom: 20px;
}

.mobile-day-date {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
}

.mobile-day-header .calendar-nav {
  color: #2c3e50;
}

.mobile-day-weekday {
  font-size: 16px;
  color: #2c3e50;
}

/* 曜日の色分け */
.mobile-day-weekday.weekday {
  color: #2c3e50; /* 営業日（平日） */
}

.mobile-day-weekday.saturday {
  color: #3498db; /* 土曜日 */
}

.mobile-day-weekday.sunday {
  color: #e74c3c; /* 日曜日 */
}

.mobile-day-weekday.holiday {
  color: #e67e22; /* 祝日（非営業日） */
}

/* ユーザー管理画面用スタイル */
header {
  background: white;
  padding: 20px 0;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header nav {
  margin-top: 15px;
  display: flex;
  gap: 20px;
}

header nav a {
  text-decoration: none;
  color: #3498db;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

header nav a:hover {
  background-color: #ecf0f1;
}

header nav a.active {
  background-color: #3498db;
  color: white;
}

.users-stats {
  background: #ecf0f1;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-weight: 500;
}

.user-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.user-info h3 {
  margin-bottom: 8px;
  color: #2c3e50;
}

.user-info p {
  margin-bottom: 4px;
  font-size: 14px;
  color: #555;
}

.user-actions {
  display: flex;
  gap: 8px;
}

.delete-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  width: auto;
}

.delete-btn:hover {
  background-color: #c0392b;
}

.btn-cancel {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  width: auto;
  margin-top: 8px;
}

.btn-cancel:hover {
  background-color: #c0392b;
}

/* マイページ専用スタイル */
.user-details {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 20px;
  border-left: 4px solid #3498db;
}

.user-details p {
  margin-bottom: 12px;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.user-details p:last-child {
  margin-bottom: 0;
}

.user-details strong {
  color: #2c3e50;
  min-width: 120px;
  display: inline-block;
}

.mypage-nav {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.nav-tab {
  flex: 1;
  padding: 12px 20px;
  background: #f8f9fa;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  border-right: 1px solid #ddd;
}

.nav-tab:last-child {
  border-right: none;
}

.nav-tab:hover {
  background: #e9ecef;
}

.nav-tab.active {
  background: #3498db;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.booking-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.booking-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.booking-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.booking-info strong {
  font-size: 18px;
  color: #2c3e50;
}

.booking-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-approved {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.status-rejected {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.booking-item small {
  color: #6c757d;
  font-size: 14px;
}

.no-bookings {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-style: italic;
}

/* マイページタブナビゲーション */
.mypage-nav {
  display: flex;
  background: white;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.nav-tab {
  flex: 1;
  padding: 16px 20px;
  background: #f8f9fa;
  border: none;
  border-right: 1px solid #e9ecef;
  cursor: pointer;
  font-weight: 500;
  color: #6c757d;
  transition: all 0.2s;
  font-size: 16px;
}

.nav-tab:last-child {
  border-right: none;
}

.nav-tab:hover {
  background: #e9ecef;
  color: #495057;
}

.nav-tab.active {
  background: #3498db;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* 担当者プロフィールスタイル */
.staff-profile-container {
  max-width: 900px;
  margin: 0 auto;
}

/* 予約申込みボタン固定表示 */
#book-button {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 40px);
  max-width: 400px;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  transition: all 0.2s;
}

#book-button:hover {
  background: #2980b9;
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

#book-button.hidden {
  display: none;
}

/* 予約申込みボタンが表示される時のコンテンツ下部余白 */
body.booking-active {
  padding-bottom: 100px;
}

.staff-header {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  padding: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.staff-image-section {
  flex: 0 0 220px;
}

.staff-image-container {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid white;
}

.staff-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#no-image-placeholder {
  color: #6c757d;
  font-size: 16px;
  text-align: center;
}

.staff-basic-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.staff-name h3 {
  font-size: 32px;
  color: #2c3e50;
  margin: 0 0 12px 0;
  font-weight: 700;
}

.staff-details {
  display: flex;
  gap: 20px;
  font-size: 18px;
  color: #6c757d;
}

.staff-experience-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
}

.experience-label {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 10px;
}

.experience-value {
  font-size: 24px;
  font-weight: 700;
  color: #28a745;
}

.info-label {
  font-size: 16px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-content {
  background: white;
  padding: 15px 20px;
  border-radius: 10px;
  border-left: 5px solid #007bff;
  font-size: 16px;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.staff-details-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.staff-career, .staff-message, .staff-description {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  border-left: 6px solid #28a745;
}

.section-header h4 {
  margin: 0 0 20px 0;
  font-size: 20px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.section-content {
  font-size: 16px;
  line-height: 1.8;
  color: #495057;
}

.button {
  display: inline-block;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

@media (max-width: 768px) {
  .container {
    padding: 12px;
    max-width: 100%;
  }
  
  .card {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  /* ナビゲーション */
  .nav-container {
    padding: 0 12px;
  }
  
  .nav-brand {
    flex: 1;
  }
  
  .nav-title .service-name {
    font-size: 18px;
  }
  
  .nav-title .user-type {
    font-size: 12px;
  }
  
  /* デスクトップナビを非表示 */
  #nav-links {
    display: none;
  }
  
  /* ラジオボタングループ */
  .radio-group {
    flex-direction: column;
    gap: 0;
  }
  
  .radio-group label {
    padding: 16px 20px;
    text-align: center;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }
  
  .radio-group label:last-child {
    border-bottom: none;
  }
  
  /* フォーム要素 */
  input, select, button {
    font-size: 16px;
    padding: 14px;
  }
  
  /* スロットグリッド */
  .slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
  }
  
  .slot-button {
    padding: 12px 8px;
    font-size: 12px;
  }
  
  /* 時間グループ */
  .time-group-slots {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 6px;
  }
  
  .time-slot-card {
    padding: 10px 6px;
    font-size: 12px;
  }
  
  /* カレンダー */
  .calendar-grid {
    display: none !important;
  }
  
  .mobile-day-view {
    display: block !important;
  }
  
  .calendar-header {
    padding: 12px 16px;
  }
  
  #calendar-title {
    font-size: 16px;
  }
  
  .calendar-nav {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .mobile-day-header {
    padding: 12px 16px;
  }
  
  .mobile-day-date {
    font-size: 20px;
    display: inline-block;
    width: 60%;
    text-align: right;
  }
  
  .mobile-day-weekday {
    font-size: 14px;
    display: inline-block;
    width: 40%;
    text-align: left;
    color: #2c3e50;
  }
  
  .mobile-day-weekday.weekday {
    color: #2c3e50;
  }
  
  .mobile-day-weekday.saturday {
    color: #3498db;
  }
  
  .mobile-day-weekday.sunday {
    color: #e74c3c;
  }
  
  .mobile-day-weekday.holiday {
    color: #e67e22;
  }
  
  .mobile-day-content {
    padding: 12px;
  }
  
  /* ユーザーカード */
  .user-card {
    flex-direction: column;
    gap: 15px;
    padding: 16px;
  }
  
  .user-actions {
    align-self: stretch;
  }
  
  .user-actions .delete-btn {
    width: 100%;
  }
  
  /* ヘッダーナビ */
  header nav {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  
  header nav a {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  /* 予約情報 */
  .booking-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .booking-item {
    padding: 16px;
  }
  
  /* ユーザー詳細 */
  .user-details {
    padding: 16px;
  }
  
  .user-details strong {
    min-width: auto;
    display: block;
    margin-bottom: 4px;
  }
  
  /* タブナビゲーション */
  .mypage-nav {
    flex-direction: column;
  }
  
  .nav-tab {
    border-right: none;
    border-bottom: 1px solid #e9ecef;
    padding: 14px 20px;
  }
  
  .nav-tab:last-child {
    border-bottom: none;
  }
  
  /* 管理者タブ */
  .admin-nav-tabs {
    flex-direction: column;
  }
  
  .admin-tab {
    border-right: none;
    border-bottom: 1px solid #e9ecef;
    padding: 14px 20px;
  }
  
  .admin-tab:last-child {
    border-bottom: none;
  }
  
  /* チェックボックスグループ */
  .checkbox-group {
    flex-direction: column;
    gap: 8px;
  }
  
  .checkbox-group label {
    padding: 8px 0;
  }
  
  /* 担当者プロフィール（モバイル） */
  .staff-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
    gap: 25px;
  }
  
  .staff-image-section {
    flex: none;
  }
  
  .staff-image-container {
    width: 180px;
    height: 180px;
  }
  
  .staff-name h3 {
    font-size: 26px;
  }
  
  .staff-details {
    justify-content: center;
    font-size: 16px;
  }
  
  .staff-career, .staff-message, .staff-description {
    padding: 20px;
  }
  
  .section-header h4 {
    font-size: 18px;
  }
}


/* メッセージボード用スタイル */
.message-separator {
  text-align: center;
  margin: 20px 0;
}

.message-separator hr {
  margin: 0;
}

.message-separator small {
  background: white;
  padding: 0 8px;
  color: #6c757d;
  position: relative;
  top: -10px;
}

.message-item {
  margin-bottom: 8px;
}

.message-item.user {
  text-align: right;
}

.message-item.staff {
  text-align: left;
}

.message-content {
  display: inline-block;
  max-width: 70%;
  padding: 12px;
  border-radius: 8px;
}

.message-content.user {
  background: #007bff;
  color: white;
}

.message-content.staff {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #333;
}

.no-messages {
  color: #6c757d;
  text-align: center;
  margin: 20px 0;
}



/* トーストメッセージスタイル */
.toast-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: slideIn 0.3s ease-out;
}

.toast-message.success {
  background: #27ae60;
  color: white;
}

.toast-message.error {
  background: #e74c3c;
  color: white;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* フッタースタイル */
.footer {
  background: #2c3e50;
  color: white;
  margin-top: 40px;
  padding: 30px 0 20px 0;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #3498db;
}

.footer-copyright {
  border-top: 1px solid #34495e;
  padding-top: 15px;
}

.footer-copyright p {
  margin: 0;
  font-size: 14px;
  color: #bdc3c7;
}

@media (max-width: 768px) {
  .toast-message {
    top: 10px;
    right: 10px;
    left: 10px;
    right: 10px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer {
    padding: 25px 0 15px 0;
  }
}

/* フォームアクション用スタイル */
.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.form-actions button {
  flex: 1;
}

/* お知らせ表示用スタイル */
.announcements-area {
  margin-bottom: 20px;
}

.announcement-card {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border: 1px solid #2196f3;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.announcement-header h3 {
  margin: 0;
  color: #1976d2;
  font-size: 18px;
  font-weight: 600;
  flex: 1;
}

.btn-read {
  background: #2196f3;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  width: auto;
  flex-shrink: 0;
  margin-left: 12px;
}

.btn-read:hover {
  background: #1976d2;
}

.announcement-content {
  color: #424242;
  line-height: 1.6;
  font-size: 14px;
}

.announcement-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.announcement-item.unread {
  border-left: 4px solid #2196f3;
  background: #f8f9fa;
}

.announcement-item.read {
  opacity: 0.8;
}

.announcement-date {
  color: #757575;
  font-size: 12px;
  font-weight: normal;
}

.no-data {
  text-align: center;
  color: #757575;
  padding: 20px;
  font-style: italic;
}

.error-message {
  color: #f44336;
  text-align: center;
  padding: 20px;
}

@media (max-width: 768px) {
  .announcement-header {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn-read {
    align-self: flex-end;
    margin-left: 0;
  }
}

/* 重複ヘッダー防止 */
.nav:not(:first-of-type) {
  display: none !important;
}

header:not(:first-of-type) {
  display: none !important;
}