.register-img {
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 50%;
}

.register {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.register div {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.register-btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.register-btn:hover {
    background-color: #0056b3;
}

/* PCレイアウトの改善（1024px以上の画面幅） */
@media screen and (min-width: 1024px) {
    body {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        justify-items: center;
        min-height: 100vh;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .register-img {
        grid-column: 1 / -1;
        text-align: center;
        padding: 20px 0;
    }

    .register {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 20px;
    }

    .header-img {
        grid-column: 1 / -1;
        text-align: center;
        padding: 20px 0;
        background-color: #f8f9fa;
        border-bottom: 1px solid #ced4da;
    }

    .header-img img {
        width: auto;
        max-width: 300px;
        margin: 0 auto;
    }

    .header-img h1 {
        font-size: 2.5rem;
        margin-top: 10px;
    }

    .dashboard {
        grid-column: 1 / -1;
        position: sticky;
        top: 0;
        height: calc(100vh - 100px); /* ヘッダーの高さを考慮 */
        overflow-y: auto;
        padding: 20px;
        background-color: #f8f9fa;
        border-right: 1px solid #ced4da;
    }

    main {
        grid-column: 1 / -1;
        padding: 20px;
        overflow-y: auto;
    }

    .user-info {
        position: static;
        max-width: none;
        box-shadow: none;
        background-color: transparent;
        padding: 0;
    }

    .mypage {
        position: static;
        max-width: none;
        background-color: transparent;
        padding: 0;
        margin-bottom: 20px;
    }

    .form-container {
        max-width: 800px;
        margin: 0 auto;
    }

    .user-table,
    .paid-table {
        font-size: 1rem;
        width: 100%;
    }

    .btn-request {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .uploadform {
        width: 100%;
        max-width: 800px;
        margin: 20px auto;
    }

    .register input {
        max-width: 400px;
    }

    footer {
        grid-column: 1 / -1;
        position: static;
    }

    .hamburger-menu {
        display: none !important;
    }

    .user-info {
        display: block;
    }

    .form-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .form-container h1 {
        grid-column: 1 / 3;
    }

    .table-container {
        overflow-x: auto;
        margin-bottom: 20px;
    }

    .dashboard {
        display: flex;
        flex-direction: column;
    }

    .dashboard a {
        width: 100%;
        margin-bottom: 10px;
        padding: 10px;
        background-color: #f8f9fa;
        border: 1px solid #ced4da;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .dashboard a:hover {
        background-color: #007bff;
        color: #fff;
    }
}

/* グローバルスタイルの調整 */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

.btn,
button,
input[type="submit"] {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    background-color: #0056b3;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    text-align: left;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
}

.user-table,
.paid-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
}

.user-table th,
.paid-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #dee2e6;
}

.user-table td,
.paid-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.user-table tr:hover,
.paid-table tr:hover {
    background-color: #f5f5f5;
}
@media screen and (max-width: 768px) {
    .register-img {
        width: 90%;
        margin-top: 50px;
        margin-bottom: 10px;
    }

    .register div {
        width: 80%;
        max-width: 400px;
        margin-bottom: 20px;
    }
}
