/* style.css */

/* ヘッダー */
header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

/* フッター */
footer {
    background-color: #333;
    color: #fff;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
}

/* メインコンテンツとサイドバー */
main {
    display: flex;
    justify-content: space-between;
}

/* サイドバー */
aside {
    background-color: #f4f4f4;
    padding: 20px;
    width: 25%;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

/* メインコンテンツ */
section {
    flex: 1;
    padding: 30px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

/* 追加の修正 */
form {
    margin: 0;
}

/* 追加の修正 */
label {
    display: inline-block; /* インラインブロック要素に変更 */
    width: 20%; /* ラベルの幅を設定 */
    margin-bottom: 5px;
    font-weight: bold;
}

/* 追加の修正 */
input,
select {
    width: calc(60% - 10px); /* ラベルの幅を考慮して幅を狭める */
    margin: 5px auto; /* 上下5px、左右中央寄せ */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: inline-block; /* インラインブロック要素に変更 */
    box-sizing: border-box; /* 幅にパディングとボーダーを含める */
}

/* 追加の修正 */
textarea {
    width: calc(60% - 10px); /* ラベルの幅を考慮して幅を狭める */
    height: 200px; /* テキストエリアの高さを設定 */
    margin: 5px auto; /* 上下5px、左右中央寄せ */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: inline-block; /* インラインブロック要素に変更 */
    box-sizing: border-box; /* 幅にパディングとボーダーを含める */
}

/* 追加の修正 */
input[type="submit"] {
    background-color: #333;
    color: #fff;
    cursor: pointer;
    padding: 10px 20px; /* 横幅を広げる */
    border: none;
    border-radius: 5px;
    display: block; /* ボタンをブロック要素にする */
    margin: 0 auto; /* 左右中央寄せ */
}

input[type="submit"]:hover {
    background-color: #555;
}

/* テーブルの見栄えを整える */
table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #f2f2f2;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f2f2f2;
}

/* 追加の修正 */
select {
    width: calc(60% - 10px); /* ラベルの幅を考慮して幅を狭める */
    margin: 5px auto; /* 上下5px、左右中央寄せ */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: inline-block; /* インラインブロック要素に変更 */
    box-sizing: border-box; /* 幅にパディングとボーダーを含める */
}
