/* 固定ヘッダー */
header {
    background-color: #f8f9fa;
    color: #333333;
    padding: 10px 20px; /* 上下のパディングを縮小 */
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative; /* 他の要素と重ならないようにする */
    width: 100%;
    z-index: 1000;
}

header img.logo {
    max-width: 120px; /* ロゴのサイズを少し小さく調整 */
    vertical-align: middle;
}

header h1 {
    font-size: 1.5em; /* タイトルのフォントサイズを調整 */
    margin: 5px 0; /* タイトルの上下のマージンを調整 */
}

/* ナビゲーションメニュー */
nav {
    background-color: #f8f9fa;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    z-index: 999;
    position: relative; /* 他の要素と重ならないようにする */
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #ccc;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333333;
    font-weight: bold;
    padding: 10px 20px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #e2e6ea;
    color: #0056b3;
}

/* 検索ボックス */
.search-box {
    padding: 10px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
    position: relative; /* 他の要素と重ならないようにする */
    z-index: 998;
}

/* 検索ボックス内の要素のスタイル */
.search-box input {
    width: 80%;
    padding: 10px;
    border: 2px solid #0056b3;
    border-radius: 5px;
    font-size: 1em;
    background-color: #f8f9fa;
    color: #333333;
    margin-bottom: 20px;
}

.search-box button {
    background-color: #0056b3;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.search-box button:hover {
    background-color: #004099;
    transform: scale(1.05);
}

/* コンテンツのスタイル */
body {
    font-family: 'Arial', sans-serif;
    background-color: #FFFFFF;
    color: #333333;
    margin: 0;
    padding-top: 20px; /* 上部にマージンを設定 */
}

.main-content {
    padding-top: 180px; /* ナビゲーションと検索ボックスの下にコンテンツを配置 */
}

/* フォーム */
form {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

label {
    font-size: 1.2em;
    margin-bottom: 5px;
    display: block;
    color: #0056b3;
}

input[type="text"], input[type="password"], textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #0056b3;
    border-radius: 5px;
    font-size: 1em;
    background-color: #f8f9fa;
    color: #333333;
}

input[type="text"]::placeholder, textarea::placeholder {
    color: #777777;
}

button {
    background-color: #0056b3;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

button:hover {
    background-color: #004099;
    transform: scale(1.05);
}

/* フッター */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    color: #333333;
    margin-top: 20px;
    border-top: 1px solid #ccc;
}

/* 見出しのスタイル */
h2 {
    color: #0056b3;
    text-align: center;
    margin-top: 20px;
}

/* リーンキャンバスの表のスタイル */
table.lean-canvas {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table.lean-canvas th, table.lean-canvas td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

table.lean-canvas th {
    background-color: #f4f4f4;
    font-weight: bold;
}

table.lean-canvas td {
    background-color: #fafafa;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    form, .search-box {
        width: 90%;
    }

    input[type="text"], input[type="password"], textarea, button {
        width: 100%;
    }
}
