/* ==============================
   共通スタイル - 全ページで使用
   ============================== */

/* 基本設定 */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
}

/* サイドバー共通 */
.sidebar {
  width: 250px;
  background-color: #4689FF;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  height: 100%;
  position: relative;
}

.sidebar h2 {
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 8px 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.sidebar a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* コンテナ共通 */
.container {
  display: flex;
  height: calc(100vh - 60px);
  margin-top: 60px;
  overflow: hidden;
}

/* PC/モバイル表示制御 */
.pc-content {
  display: block;
}

.container.pc-content {
  display: flex;
}

.mobile-container {
  display: none;
}

/* メインコンテンツ共通 */
.main-content {
  flex: 1;
  padding: 30px;
  background-color: #f0f2f5;
  box-sizing: border-box;
  overflow-y: auto;
  height: 100%;
}

/* コンテンツカード共通 */
.content-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.content-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.content-header h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #333;
}

.content-header p {
  color: #666;
  margin: 0;
}

/* ボタン共通スタイル */
.button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #4689FF;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #3478ee;
}

.button-secondary {
  background-color: #6c757d;
}

.button-secondary:hover {
  background-color: #5a6268;
}

.button-small {
  padding: 4px 12px;
  font-size: 14px;
}

/* テーブル共通スタイル */
.data-list {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.data-list th,
.data-list td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.data-list th {
  background-color: #f5f5f5;
  font-weight: bold;
  color: #333;
}

.data-list tr:hover {
  background-color: #f9f9f9;
}

/* モバイル共通 */
.mobile-container {
  display: none;
  padding: 20px 5px 70px;
  margin: 0 auto;
  max-width: 100%;
}

.mobile-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.footer-menu {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-menu-item a {
  display: block;
  padding: 12px 5px;
  color: #333;
  text-decoration: none;
  font-size: 12px;
}

/* レスポンシブ基本設定 */
@media screen and (min-width: 1025px) {
  .mobile-container {
    display: none !important;
  }
  
  .pc-content {
    display: block !important;
  }
}

@media screen and (max-width: 1024px) {
  .pc-content {
    display: none !important;
  }
  
  .mobile-container {
    display: block !important;
  }
  
  body {
    background-color: #F3F3F3;
  }
}
