/* マスター画面TOPのスタイル */

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  min-width: 1200px;
}

/* マスター専用ヘッダー */
.master-header {
  background-color: #000;
  color: #fff;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left .logo {
  display: flex;
  align-items: center;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.group-login-btn {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 12px 40px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.group-login-btn:hover {
  background-color: #f0f0f0;
  color: #eb6ea5;
}
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.group-login-btn:hover {
  background-color: #f0f0f0;
  color: #eb6ea5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.warning-message {
  background-color: #fff;
  color: #000;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 600px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.warning-title {
  color: #ff0000;
  font-weight: bold;
  font-size: 18px;
  margin: 0 0 8px 0;
}

.warning-text {
  font-size: 12px;
  line-height: 1.5;
  color: #ff0000;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.master-info {
  text-align: right;
}

.master-label {
  font-size: 12px;
  color: #999;
  margin: 0 0 4px 0;
}

.master-email {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

.logout-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.logout-icon:hover {
  background-color: rgba(255,255,255,0.2);
}

.logout-icon:hover i {
  color: #eb6ea5 !important;
}

/* メニューバー */
.master-menu-bar {
  background-color: #fff;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hamburger-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-right: 20px;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
}

.hamburger-menu:hover span {
  background-color: #666;
}

.menu-label {
  font-size: 16px;
  color: #333;
}

.divider {
  margin: 0 15px;
  color: #ccc;
}

.selected-menu {
  color: #666;
  font-style: italic;
}

.alert-icon {
  margin-left: auto;
  background: none;
  border: none;
  color: #ffcc00;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 5px;
}

.alert-icon:hover {
  transform: scale(1.5);
}

.alert-icon img {
  transition: transform 0.3s ease;
  display: block;
}

/* サイドメニュー */
.side-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background-color: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  transition: left 0.3s ease;
  z-index: 10000;
  overflow-y: auto;
}

.side-menu.active {
  left: 0;
}

.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid #e0e0e0;
  background-color: #000;
  color: #fff;
}

.side-menu-header h3 {
  margin: 0;
  font-size: 20px;
}

.close-menu {
  background: none;
  border: none;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  border-radius: 50%;
}

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

.side-menu-content {
  padding: 10px 0;
}

.side-menu-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.side-menu-item:hover {
  background-color: #f5f5f5;
}

.side-menu-item img {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  object-fit: contain;
}

.side-menu-item span {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
  z-index: 9999;
}

.side-menu-overlay.active {
  display: block;
}

/* メインコンテンツ */
#content {
  padding: 40px;
  max-width: auto;
  margin: 0 auto;
}

.content-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* アイコングリッド */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  max-width: 1200px;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.icon-item:hover {
  transform: translateY(-5px);
}

.icon-box {
  width: 120px;
  height: 120px;
  background-color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.icon-item:hover .icon-box {
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.icon-box img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  margin: auto;
}

.icon-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-align: center;
  margin: 0;
}

/* メニュー注釈 */
.menu-note {
  text-align: center;
  margin: 40px 0;
  padding: 20px;
  background-color: #fff9e6;
  border-radius: 8px;
  border: 1px dashed #ffcc00;
}

.menu-note p {
  font-size: 14px;
  color: #666;
  margin: 5px 0;
}

/* アカウント一覧テーブル */
.account-list-section {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 40px;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
  .icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .master-header {
    flex-direction: column;
    gap: 15px;
  }
  
  .header-center {
    margin: 0;
    width: 100%;
  }
  
  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .icon-box {
    width: 90px;
    height: 90px;
  }
  
  .icon-box img {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  #content {
    padding: 20px;
  }
}
