body {
    font-family: "メイリオ", Meiryo, sans-serif;
    background-color: #e0f0ff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

h2 {
    color: #2c4f80;
    margin-bottom: 20px;
}

label {
    display: block;
    margin: 10px 0 5px;
    color: #2c4f80;
    text-align: left;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #2c4f80;
    border-radius: 5px;
    box-sizing: border-box;
}

.error-message {
    color: red;
    margin-top: 10px;
}



/********************* index.html start ********************/
.login-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 350px;
}
/********************** index.html end *********************/



/******************* menuList.html start ******************/
/* menuList.html */

.menu-item {
    padding: 10px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px auto;
    cursor: pointer;
    border-radius: 12px;
    transition: background-color 0.4s, color 0.4s;
    width: 300px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.button-style {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    color: white;
    background-color: #2c4f80;
    cursor: pointer;
}
.button-style:hover {
    background-color: #1e3a60;
}
.button-style-width-100 {
    width: 100px;
    margin-top: 2%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    color: white;
    background-color: #2c4f80;
    cursor: pointer;
}
.button-style-size-fix:hover {
    background-color: #2c4f80;
}
/******************** menuList.html end *******************/



/*************** sendPushMessage.html start **************/
.send-push-message-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.send-push-message-message-body {
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
}
/***************** sendPushMessage.html end ***************/



/************ sendPushMessageHistory.html start ***********/
.table-wrapper {
  padding: 20px;
  background-color: #e6f2ff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  max-width: 90%; /* 表示領域を画面幅の90%まで拡大 */
  width: 100%; 
  overflow-x: auto; 
}

.table-wrapper table {
  width: 100%;
  max-height: 600px; /* 表示領域の高さを拡大 */
  table-layout: fixed;
  display: block;
  overflow-y: auto;
}

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #b3d9ff; /* 境界線 */
  min-width: 150px; /* 列幅調整 */
}

th {
  background-color: #99c2ff; /* 濃い青 */
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

tr:nth-child(odd) {
  background-color: #d9eaff; /* 奇数行 */
}

tr:hover {
  background-color: #b3d9ff; /* ホバー時 */
  transition: background-color 0.3s ease;
}

.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px; /* 好みに合わせて */
}

.no-data {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}

/************* sendPushMessageHistory.html end ************/



/****************** createUser.html start *****************/
.create-user-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 350px;
}

.create-user-input-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.create-user-input-container input {
    width: 100%;
    padding: 12px;
    border: 1px solid #2c804f;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

.create-user-input-container input::placeholder {
    font-size: 14px;
    text-align: left;
    color: #666;
}

.create-user-note {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}
/******************* createUser.html end ******************/



/***************** initPassword.html start ****************/
.init-password-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 350px;
}

.init-password-input-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.init-password-input-container input {
    width: 100%;
    padding: 12px;
    border: 1px solid #2c804f;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

.init-password-input-container input::placeholder {
    font-size: 14px;
    text-align: left;
    color: #666;
}

.init-password-note {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}
/****************** initPassword.html end *****************/



/********** sendPushMessageToRecipient.html start *********/
/* 宛先指定画面のスタイル改善 */
.send-push-message-to-recipient-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    padding: 10px;
    background: white;
    border-radius: 5px;
    box-sizing: border-box;
}

.send-push-message-to-recipient-selection-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 15px;
    height: 65%;
    margin: 10px 0;
}

.send-push-message-to-recipient-user-list, 
.send-push-message-to-recipient-selected-list {
    flex: 1;
    height: 100%;
    min-height: 250px;
    overflow-y: auto;
    border: 1px solid #2c4f80;
    border-radius: 5px;
    padding: 10px;
    background: #f8fcff;
}

.send-push-message-to-recipient-user-list h3,
.send-push-message-to-recipient-selected-list h3 {
    position: sticky;
    top: 0;
    background: #f8fcff;
    margin: 0 0 10px 0;
    padding: 5px 0;
    border-bottom: 1px solid #b3d9ff;
    font-size: 16px;
}

.send-push-message-to-recipient-user-list div, 
.send-push-message-to-recipient-selected-list div {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
}

.send-push-message-to-recipient-user-list div:hover, 
.send-push-message-to-recipient-selected-list div:hover {
    background: #e6f2ff;
}

.send-push-message-to-recipient-user-list div.selected, 
.send-push-message-to-recipient-selected-list div.selected {
    background: #b3d9ff;
    color: #2c4f80;
    font-weight: bold;
}

.send-push-message-to-recipient-button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.send-push-message-to-recipient-move-button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    color: white;
    background-color: #2c4f80;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.send-push-message-to-recipient-move-button:hover {
    background-color: #1e3a60;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.send-push-message-to-recipient-submit-button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    color: white;
    background-color: #2c4f80;
    cursor: pointer;
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
}

.send-push-message-to-recipient-submit-button:hover {
    background-color: #1e3a60;
}

.send-push-message-to-recipient-search-box {
    width: 100%;
    padding: 8px;
    border: 1px solid #2c4f80;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-size: 14px;
}

/* 見出しのスタイルを調整 */
.send-push-message-to-recipient-container h2 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
}
/*********** sendPushMessageToRecipient.html end **********/



/*************** initCreateApiKey.html start **************/
.create-apikey-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 350px;
}

.create-apikey-input-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.create-apikey-input-container input {
    width: 100%;
    padding: 12px;
    border: 1px solid #2c804f;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

.create-apikey-input-container input::placeholder {
    font-size: 14px;
    text-align: left;
    color: #666;
}
.execute-create-apikey-button {
    background-color: #2c4f80;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.execute-create-apikey-button:hover {
    background-color: #1e3a60;
}
/**************** initCreateApiKey.html end ***************/



/********************** ヘッダ start **********************/
.header {
    font-size: 15px;
    color: #003366;
    margin-bottom: 10px;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: #87ceeb;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/********************** ヘッダ  end  **********************/



/****************** ログインボタン start ******************/
.login-button {
    background-color: #2c4f80;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.login-button:hover {
    background-color: #1e3a60;
}
/****************** ログインボタン  end  ******************/



/**************** 削除対象選択ボタン start ****************/
.delete-button {
    background-color: #808080;
    width: 80px;
    color: white;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 12px;
}

.delete-button:hover {
    background-color: #A9A9A9;
}
/***************** 削除対象選択ボタン end *****************/



/******************* 初期化ボタン start *******************/
.initialize-button {
    background-color: #808080;
    width: 80px;
    color: white;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 12px;
}

.initialize-button:hover {
    background-color: #A9A9A9;
}
/******************** 初期化ボタン end ********************/



/*************** メニューに戻るボタン start ***************/
.back-button {
    background-color: #808080;
    width: 160px;
    color: white;
    border: none;
    position: absolute;
    padding: 10px 20px;
    right: 140px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 12px;
}

.back-button:hover {
    background-color: #A9A9A9;
}
/**************** メニューに戻るボタン end ****************/



/***************** ログアウトボタン start *****************/
.logout-button {
    background-color: #808080;
    width: 120px;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 5px 10px;
    cursor: pointer;
    border-radius: 12px;
}

.logout-button:hover {
    background-color: #A9A9A9;
}

/***************** ログアウトボタン  end  *****************/



/**************** 削除対象選択ボタン start ****************/
.delete-target-choice {
    background-color: #2c4f80;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    width: 10%;
}

.delete-target-choice:hover {
    background-color: #1e3a60;
}
/***************** 削除対象選択ボタン end *****************/



/******************** 削除ボタン start ********************/
.delete-target-choice {
    background-color: #2c4f80;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.delete-target-choice:hover {
    background-color: #1e3a60;
}
/********************* 削除ボタン end *********************/



/**************** アップロードボタン start ****************/
.execute-create-user-button {
    background-color: #2c4f80;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.execute-create-user-button:hover {
    background-color: #1e3a60;
}
/***************** アップロードボタン end *****************/



/******************* 初期化ボタン start *******************/
.execute-init-password-button {
    background-color: #2c4f80;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.execute-init-password-button:hover {
    background-color: #1e3a60;
}
/******************** 初期化ボタン end ********************/



/***************** 宛先を指定ボタン start *****************/
/* ボタンのスタイルに position: relative を追加 */
.open-modal-button-style {
    position: relative; 
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    color: white;
    background-color: #2c4f80;
    cursor: pointer;
}
.open-modal-button-style:hover {
    background-color: #1e3a60;
}
.open-modal-button-style-width-100 {
    width: 100px;
    margin-top: 2%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    color: white;
    background-color: #2c4f80;
    cursor: pointer;
}
.open-modal-button-style-size-fix:hover {
    background-color: #2c4f80;
}
/****************** 宛先を指定ボタン end ******************/



/************ 宛先指定件数表示用スタイル start ************/
.recipient-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 4px;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}

.recipient-badge.show {
  display: flex;
}/************* 宛先指定件数表示用スタイル end *************/



/******************* モーダル画面 start *******************/
/* モーダル全体の背景 */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* モーダルの中身 */
.modal-content {
    background-color: white;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    max-height: 800px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* モーダル表示時のスタイル */
.modal.show {
    visibility: visible;
    opacity: 1;
}

/* 閉じるボタン */
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1010;
}

.close:hover {
    color: red;
}

/* iframe のスタイル */
#modalFrame {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
}
/******************** モーダル画面 end ********************/
