body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    text-align: center;
}

.container {
    width: 80%;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#searchBox {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.user-card {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: #f9f9f9;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.user-card:hover {
    background: #ddd;
}

.user-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 30px;  /* アイコンと情報の間隔を30pxに増やす */
}

.user-info {
    flex: 1;
    text-align: left;
}

.user-info h3 {
    margin: 0 0 8px 0;  /* 名前と年齢情報の間隔も調整 */
    font-size: 18px;
}

.user-info p {
    margin: 0;
    color: #666;
}
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.register-button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.register-button:hover {
    background-color: #45a049;
}

.search-bar {
    flex: 1;
    margin-left: 0px;
}

#search {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.back-button-container {
    margin-bottom: 20px;
}

.header {
    display: flex;
    justify-content: flex-start; /* 左寄せをデフォルトに */
    align-items: center;
    margin-bottom: 20px;
    position: relative; /* 子要素の絶対位置指定の基準に */
}

.header h1 {
    margin: 0;
}
.back-button-wrapper {
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.back-button {
    padding: 10px 20px;
    background-color: #666;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #555;
}

/* 既存のaction-barのスタイルを調整 */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}
/* フェードイン・フェードアウト */
.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
  }
  .fade-in.show {
    opacity: 1;
  }
  
  .fade-out {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
  }
  .fade-out.hide {
    opacity: 0;
  }
  