body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

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

.screen {
  width: 100%;
  min-height: 100vh;
  padding: 20px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo img {
  height: 40px;
  margin-bottom: 10px;
}

.nav-tabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  justify-content: space-around;
}

.nav-item {
  flex: 1;
  text-align: center;
}

.nav-link {
  display: block;
  padding: 10px;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-link.active {
  color: #007bff;
  border-bottom: 2px solid #007bff;
}

.content-screen {
  padding: 20px;
}

/* お知らせスタイル */
.notice-container {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 20px;
}

.notice-item {
  display: flex;
  margin-bottom: 15px;
}

.notice-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  overflow: hidden;
}

.notice-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notice-content {
  flex: 1;
  background: #f0f0f0;
  border-radius: 10px;
  padding: 10px;
  position: relative;
}

.notice-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 12px;
  color: #666;
}

.notice-text {
  font-size: 14px;
}

/* 利用者一覧テーブル */
.user-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.user-table th, .user-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.user-table th {
  background-color: #f2f2f2;
}

.user-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* 予約カレンダー */
#calendar {
  margin: 20px 0;
  background: #fff;
  padding: 10px;
  border-radius: 5px;
}

.fc-day-available {
  background-color: #d4edda !important;
}

.fc-day-limited {
  background-color: #fff3cd !important;
}

.fc-day-unavailable {
  background-color: #f8d7da !important;
}

.fc-day-selected {
  background-color: #cce5ff !important;
}

/* 予約リスト */
.reservation-list {
  list-style: none;
  padding: 0;
}

.reservation-item {
  background: #fff;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border-left: 4px solid #007bff;
}

.reservation-item.temporary {
  border-left-color: #dc3545;
  color: #dc3545;
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 5px;
  width: 80%;
  max-width: 500px;
}

.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* パスコード入力 */
.passcode-container {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.passcode {
  width: 50px;
  height: 50px;
  font-size: 24px;
  text-align: center;
}

/* トーク */
.talk-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 10px;
  background: #f0f0f0;
}

.talk-message {
  max-width: 70%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
}

.talk-message.from-facility {
  align-self: flex-start;
  background: #fff;
}

.talk-message.from-me {
  align-self: flex-end;
  background: #dcf8c6;
}

.talk-header {
  display: flex;
  margin-bottom: 5px;
  font-size: 12px;
  color: #666;
}

.talk-input {
  display: flex;
  padding: 10px;
  background: #fff;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.talk-input input {
  flex: 1;
  margin-right: 10px;
}

/* 情報ボックス */
.info-box {
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .user-table {
    font-size: 12px;
  }
  
  .passcode {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .modal-content {
    width: 95%;
    margin: 5% auto;
  }
}
