body {
    font-family: Arial, sans-serif;
    padding: 0;
    box-sizing: border-box;
    display: flex;
	background-color: #f0f0f0;
    flex-direction: column;
    min-height: 100vh;
    max-width: 800px;
    margin: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
}

h1 {
    margin-bottom: 20px;
    font-size: 24px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input {
    /*margin-bottom: 15px;*/
    padding: 10px;
    font-size: 16px;
}

button {
	margin: 5px;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
	border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

.user-info {
    display: flex;
    gap: 10px;
    position: relative;
}

.user-info span {
    cursor: pointer;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    z-index: 1;
}

.dropdown button {
    background-color: white;
    border: none;
    padding: 10px;
    width: 100%;
    text-align: left;
}

.dropdown button:hover {
    background-color: #f2f2f2;
}

.current-time {
    text-align: center;
    font-size: 2.5em;
    margin: 20px 0;
}

main {
	position: relative; /* 親要素を基準にする */
    padding: 15px;
    flex-grow: 1;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.buttons button {
    padding: 3% 10%;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.month {
    margin-bottom: 20px;
}

.table-container {
    display: none;
    white-space: nowrap;
}

td input, td select {
    width: calc(100% - 10px);
    height: 40px;
    box-sizing: border-box;
    padding: 5px;
    margin: 0;
}

th, td {
	padding: 3px;
    border: 1px solid #ddd;
    height: 40px;
    text-align: center;
}

th {
    background-color: #f2f2f2;
}

.excel-output {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.employee-button {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    position: sticky;
    bottom: 0;
}

footer div {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

footer div:hover {
    background-color: #45a049;
}

.active-tab {
    background-color: #45a049;
}

@media (max-width: 600px) {
    header, .user-info, .current-time {
        align-items: center;
    }

    footer {
        align-items: center;
    }

    .buttons {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .buttons button {
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        table-layout: fixed;
    }
	
	#year-month {
		width: 39%;
	}
}

/*設定ボタン*/
.gear-container {
    position: absolute; /* 親要素に対して絶対配置 */
    bottom: 0; /* 下端に配置 */
    right: 0; /* 右端に配置 */
}
.gear-icon {
    font-size: 24px;
	cursor: pointer;
/*    color: #555;*/
}
.gear-label {
    font-size: 16px;
/*    color: #555;*/
}

.home-container {
    position: absolute; /* 親要素に対して絶対配置 */
    bottom: 0; /* 下端に配置 */
    right: 0; /* 右端に配置 */
}
.home-icon {
    font-size: 24px;
	cursor: pointer; /*add 20250522 カーソルを合わせたときに形を変更*/
}
.home-label {
    font-size: 16px;
}

/* 設定メニューウィンドウのスタイル */
.settings-menu {
    display: none;
    position: fixed;
	top: 160px;
	right: -161px;
	transform: translate(-50%, -50%);
	height: 80%;
	max-height: 200px;
	width: 100%; /* 画面幅に基づいて広がる */
	max-width: 300px; /* 最大幅を制限 */
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    /*z-index: 1000;*/
    overflow-y: auto;
}

/* 設定メニューウィンドウのスタイル */
.settings-menu-short {
    display: none;
    position: fixed;
	top: 160px;
	right: -161px;
	transform: translate(-50%, -50%);
	height: 80%;
	max-height: 150px;
	width: 100%; /* 画面幅に基づいて広がる */
	max-width: 300px; /* 最大幅を制限 */
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    /*z-index: 1000;*/
    overflow-y: auto;
	color: black;
}

/* 設定メニューウィンドウのスタイル */
.settings-menu-long {
    display: none;
    position: fixed;
	position: absolute;  /* 親要素内で固定 */
	top: 160px;
	right: -161px;
	transform: translate(-50%, -50%);
	height: 80%;
    max-height: 250px;
	width: 100%; /* 画面幅に基づいて広がる */
	max-width: 300px; /* 最大幅を制限 */
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    /*z-index: 1000;*/
    overflow-y: auto;
}

/* 画面幅が800px以上の場合の設定ウィンドウのスタイル */
@media (min-width: 801px) {
  .settings-menu {
    right: calc(-161px + ((100vw - 800px) / 2));
  }
}

/* 設定ウィンドウのスタイル */
.settings-window {
    display: none;
    position: fixed;
	top: 200px;
	right: -161px;
	transform: translate(-50%, -50%);
	height: 80%;
    max-height: 230px;
	width: 100%; /* 画面幅に基づいて広がる */
	max-width: 300px; /* 最大幅を制限 */
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    z-index: 2;
    overflow-y: auto;
}

/* 画面幅が800px以上の場合の設定ウィンドウのスタイル */
@media (min-width: 801px) {
  .settings-window{
    right: calc(-161px + ((100vw - 800px) / 2));
  }
}
/* 画面幅が800px以上の場合の設定ウィンドウのスタイル */
@media (min-width: 801px) {
  .settings-changePassword {
    right: calc(-161px + ((100vw - 800px) / 2));
  }
}
/* 画面幅が800px以上の場合の設定ウィンドウのスタイル */
@media (min-width: 801px) {
  .settings-menu {
    right: calc(-161px + ((100vw - 800px) / 2));
  }
}
/* 画面幅が800px以上の場合の設定ウィンドウのスタイル */
@media (min-width: 801px) {
  .settings-menu-long  {
    right: calc(-161px + ((100vw - 800px) / 2));
  }
}


/* 画面幅が800px以上の場合の設定ウィンドウのスタイル */
@media (min-width: 801px) {
  .settings-window {
    right: calc(-161px + ((100vw - 800px) / 2));
  }
}

/* 画面幅が800px以上の場合の設定ウィンドウのスタイル */
@media (min-width: 801px) {
  .settings-changePassword {
    right: calc(-161px + ((100vw - 800px) / 2));
  }
}

/* 画面幅が800px以上の場合の設定ウィンドウのスタイル */
@media (min-width: 801px) {
  .settings-menu-short {
    right: calc(-161px + ((100vw - 800px) / 2));
  }
}


.form-group {
    margin-bottom: 15px;
}
.form-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}
.text-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    cursor: text; /* テキスト入力向けのカーソル */
}
.time-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}
/*#intervalSelect {*/
/*    width: 100%;*/
/*    padding: 10px;*/
/*    font-size: 14px;*/
/*    border: 1px solid #ddd;*/
/*    border-radius: 5px;*/
/*    box-sizing: border-box;*/
/*}*/

input[type="number"]::-webkit-outer-spin-button, 
input[type="number"]::-webkit-inner-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

.button {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.submit-button {
    background-color: #4CAF50;
    color: white;
}
.submit-button:hover {
    background-color: #45a049;
}
.close-button {
    background-color: #f44336;
    color: white;
}
.close-button:hover {
    background-color: #e53935;
}
button:disabled {
	    background-color: #ccc; /* 灰色の背景 */
	    color: #666;            /* 暗い灰色の文字 */
	    cursor: default;
}
button:disabled:hover {
    background-color: #ccc; /* 灰色の背景 */
    color: #666;            /* 暗い灰色の文字 */
    cursor: default;
}



/*追加20250520*/

.home-container {
    position: absolute; /* 親要素に対して絶対配置 */
    bottom: 0; /* 下端に配置 */
    right: 0; /* 右端に配置 */
}
.home-icon {
    font-size: 24px;
}
.home-label {
    font-size: 16px;
}

/* 設定メニューウィンドウのスタイル */
.settings-menu-short {
    display: none;
    position: fixed;
	top: 160px;
	right: -161px;
	transform: translate(-50%, -50%);
	height: 80%;
	max-height: 150px;
	width: 100%; /* 画面幅に基づいて広がる */
	max-width: 300px; /* 最大幅を制限 */
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    /*z-index: 1000;*/
    overflow-y: auto;
	color: black;
}

/* 設定メニューウィンドウのスタイル */
.settings-menu-long {
    display: none;
    position: fixed;
	position: absolute;  /* 親要素内で固定 */
	top: 160px;
	right: -161px;
	transform: translate(-50%, -50%);
	height: 80%;
    max-height: 250px;
	width: 100%; /* 画面幅に基づいて広がる */
	max-width: 300px; /* 最大幅を制限 */
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    /*z-index: 1000;*/
    overflow-y: auto;
}
/* 画面幅が800px以上の場合の設定ウィンドウのスタイル */
@media (min-width: 801px) {
  .settings-window{
    right: calc(-161px + ((100vw - 800px) / 2));
  }
}
/* 画面幅が800px以上の場合の設定ウィンドウのスタイル */
@media (min-width: 801px) {
  .settings-changePassword {
    right: calc(-161px + ((100vw - 800px) / 2));
  }
}
/* 画面幅が800px以上の場合の設定ウィンドウのスタイル */
@media (min-width: 801px) {
  .settings-menu {
    right: calc(-161px + ((100vw - 800px) / 2));
  }
}
/* 画面幅が800px以上の場合の設定ウィンドウのスタイル */
@media (min-width: 801px) {
  .settings-menu-long  {
    right: calc(-161px + ((100vw - 800px) / 2));
  }
}

/* 画面幅が800px以上の場合の設定ウィンドウのスタイル */
@media (min-width: 801px) {
  .settings-menu-short {
    right: calc(-161px + ((100vw - 800px) / 2));
  }
}

/*add start 20250520*/
.time-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}
/*add end 20250520*/

#intervalSelect {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

/*追加20250520*/

/*追加20250528*/
.margin-left-right-tocenter {
	margin-right: auto;
	margin-left: auto;
	width: 90%;
}
.text-align-left {
	text-align: left;
}
.text-align-right {
	text-align: right;
}
