/* index.jsp */
body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    color: #111;
}

header {
    height: 3.5rem;
    background-color: #ea0000;
}

nav {
    max-width: 960px;
    margin: 0 auto;
    line-height: 3.5rem;
}

a,
button {
    transition: 0.3s;
}

nav a {
    margin-left: 0.75rem;
    color: #fff;
    text-decoration: none;
}

a:hover,
button:hover {
    opacity: 0.8;
}

main {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.home {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 7rem);
    padding: 1.75rem 0.75rem 2.75rem;
}

.home h1 {
    margin: 0;
    font-size: 3rem;
}

.home p {
    margin-bottom: 4.5rem;
    font-size: 1.25rem;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #111;
    text-decoration: none;
    background-color: #eac300;
    border-radius: 4px;
    box-shadow: 1px 2px 4px rgb(0 0 0 / 15%);
}

footer {
    height: 3.5rem;
    background-color: #fafafa;
}

.copyright {
    margin: 0;
    font-size: 0.875rem;
    line-height: 3.5rem;
    color: #555;
    text-align: center;
}

/* read.jsp */
.items {
    box-sizing: border-box;
    min-height: calc(100vh - 7rem);
    padding: 1.75rem 0 3.5rem;
}

.items h1 {
    margin: 0 0 1.75rem;
    font-size: 1.75rem;
}

.items-ui {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
}

.items-ui div {
    display: flex;
    align-items: flex-end;
}

.items-ui form {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media (max-width: 959px) {
    .items-ui {
        flex-direction: column;
        align-items: center;
    }

    .items-ui div {
        margin-bottom: 1.5rem;
    }
}

.search-form {
    display: flex;
    align-items: center;
}

.sort-button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: none;
}


.sort-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-box {
    box-sizing: border-box;
    width: 200px;
    max-width: 300px;
    height: 1.75rem;
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-family: "Noto Sans JP", sans-serif;
    background: #eee;
    border: none;
    outline: 0;
}

.items-table {
    width: 100%;
    margin: 0 auto;
    word-break: break-all;
    border-collapse: collapse;
}

.items-table tr {
    border-bottom: solid 1px #d9d9d9;
}

.items-table tr:first-child {
    border-bottom: solid 3px #d9d9d9;
}

.items-table th,
.items-table td {
    padding: 1rem 0.75rem 1rem 0;
    text-align: center;
}

.items-table th:first-child,
.items-table td:first-child {
    padding: 1rem 0.75rem;
    text-align: center;
}

.success {
    color: #28a745;
}

.edit-icon,
.delete-icon {
    height: 1.5rem;
    vertical-align: top;
}

/* create.jsp */
.registration {
    box-sizing: border-box;
    max-width: 320px;
    min-height: calc(100vh - 7rem);
    padding: 1.75rem 0.75rem 1.5rem;
    margin: 0 auto;
}

.registration h1 {
    margin: 0 0 1.75rem;
    font-size: 1.75rem;
}

.back {
    margin-bottom: 1.75rem;
    text-align: left;
}

.registration p {
    text-align: left;
}

.registration-form div {
    display: flex;
    flex-direction: column;
    max-width: 320px;
    margin-bottom: 1.5rem;
}

.registration-form label {
    margin-top: 0.75rem;
    text-align: left;
}

.registration-form label:first-child {
    margin-top: 0;
}

.registration-form input,
.registration-form select {
    box-sizing: border-box;
    height: 1.5rem;
}

.submit-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    color: #111;
    text-decoration: none;
    cursor: pointer;
    background-color: #eac300;
    border: none;
    border-radius: 4px;
    box-shadow: 1px 2px 4px rgb(0 0 0 / 15%);
}

/* delete.jsp */
.registration .deleteConfirm {
    color: red;
    text-align: center;
}