body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .body-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100svh;
    flex-direction: column;
}
  .user-select {
    background: white;
    /* border-radius: 12px; */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    padding: 0px 20px;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  header{
    width: 100%;
  }
  .header {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 10px;
    width: 100%;
    justify-content: space-between;
  }  
  .header-left {
    display: flex;
  }
  .back-button {
    font-size: 28px;
    color: #1877f2;
    cursor: pointer;
    margin-right: 10px;
  }
  .user-select h2 {
    font-size: 22px;
    color: #1877f2;
    margin: 0;
  }
  .search-box {
    margin-bottom: 15px;
    position: relative;
  }
  .search-box input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 40px 12px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 30px;
    background-color: #f7f9fc;
    transition: border 0.2s ease;
  }
  .search-box input:focus {
    border-color: #1877f2;
    outline: none;
  }
  .search-box::after {
    content: '\e8b6';
    font-family: 'Material Icons';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 24px;
    pointer-events: none;
  }
  .user-list {
    flex: 1;
    overflow-y: auto;
  }
  .user {
    display: flex;
    align-items: center;
    /* gap: 15px; */
    padding: 12px 16px;
    margin-bottom: 12px;
    background: #f7f9fc;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  .user:hover {
    background: #e3eefe;
}
.partner-left-box{
    width: 8%;
      @media screen and (max-width: 600px) {
          width:25%;
        }
}
.partner-center-box{
    width: 82%;
}
.partner-right-box{
    width: 10%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
  }
  .username {
    font-weight: bold;
    font-size: 18px;
    color: #333;
  }

.contact-badge {
    background-color: #F02849;
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-last-message {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.gray-text {
    color: #999;
}


 /* スライドアウト */
 .slide-wrapper {
  max-width: 400px;
  width: 100%;
  margin: auto;
  overflow: hidden;
}
body.slide-out .user-select {
  animation: slideOutLeft 0.4s forwards;
}
@keyframes slideOutLeft {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(-100%); opacity: 0; }
}

/* クリアボタンのスタイル */
.search-clear-button {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

.search-clear-button:hover {
    color: #333;
}

/* 検索結果が見つからない場合のメッセージスタイル */
.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin: 10px;
}

/* ユーザーリストアイテムの微調整 */
.user {
    transition: all 0.2s;
}

.user:hover {
    background-color: #f0f8ff;
}

/* 多言語対応のためのスタイル */
.no-results[data-i18n] {
    min-height: 20px;
}
#menu-container{
    position: absolute;
    left: 0;
}