/*
Theme Name: archive System
Theme URI:
Author: tn-works
Author URI:
Description: archive専用テーマ
Version: 1.0
License: All Rights Reserved
Text Domain: archive-system
*/

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Yu Gothic",
        "Meiryo",
        sans-serif;
    background: #ffffff;
    color: #222222;
}

* {
    box-sizing: border-box;
}
.login-page {
    width: 100%;
    min-height: 100vh;
    border: 2px solid #222222;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding-top: 85px;
    background: #ffffff;
}

.login-form {
    width: 330px;
}

.login-row {
    display: grid;
    grid-template-columns: 105px 1fr;
    align-items: center;
    margin-bottom: 7px;
}

.login-row label {
    padding-right: 10px;
    text-align: right;
    font-size: 15px;
}

.login-row input {
    width: 100%;
    height: 22px;
    padding: 1px 5px;

    border: 2px solid #333333;
    border-radius: 5px;

    font-size: 14px;
    background: #ffffff;
}

.login-button-area {
    margin-top: 38px;
    text-align: center;
}

.login-button-area button {
    min-width: 88px;
    height: 28px;
    padding: 2px 15px;

    border: 1px solid #333333;
    border-radius: 6px;

    background: #f3f3f3;
    color: #222222;
    font-size: 14px;
    cursor: pointer;
}

.login-button-area button:hover {
    background: #e5e5e5;
}

.login-error {
    margin-bottom: 15px;
    padding: 8px;

    border: 1px solid #cc0000;
    background: #fff2f2;
    color: #cc0000;

    font-size: 13px;
    text-align: center;
}
.member-page {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;

    border: 2px solid #222;
    background: #fff;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding-top: 90px;
}

.member-menu {
    width: 490px;

    display: grid;
    grid-template-columns: repeat(3, 155px);
    gap: 10px 15px;
}

.member-menu-button {
    width: 155px;
    height: 46px;

    display: flex;
    justify-content: center;
    align-items: center;

    box-sizing: border-box;

    border: 2px solid #17384b;
    border-radius: 9px;

    background: #fff;
    color: #222;

    font-size: 15px;
    text-decoration: none;
}

.member-menu-button:hover {
    background: #f0f4f6;
}

.member-menu-button:focus {
    outline: 2px solid #6b9fbd;
    outline-offset: 2px;
}

@media screen and (max-width: 600px) {
    .member-page {
        padding: 50px 20px;
    }

    .member-menu {
        width: 100%;
        max-width: 330px;

        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .member-menu-button {
        width: 100%;
    }
}
.archive-edit-page {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;

    border: 2px solid #222;
    background: #fff;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding-top: 34px;
}

.archive-edit-form {
    width: 540px;
}

.archive-form-row {
    display: grid;
    grid-template-columns: 215px 205px;
    align-items: center;

    margin-bottom: 5px;
}

.archive-form-row label {
    padding-right: 10px;

    text-align: right;
    font-size: 15px;
    color: #222;
}

.archive-form-row input[type="text"],
.archive-form-row input[type="number"] {
    width: 205px;
    height: 22px;
    box-sizing: border-box;

    padding: 1px 5px;

    border: 2px solid #333;
    border-radius: 5px;

    background: #fff;
    font-size: 14px;
}

.archive-file-row {
    margin-bottom: 7px;
}

.archive-file-row input[type="file"] {
    width: 205px;
    font-size: 14px;
}

.archive-form-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;

    margin-top: 17px;
}

.archive-form-buttons button {
    min-width: 88px;
    height: 28px;
    box-sizing: border-box;

    padding: 2px 14px;

    border: 1px solid #333;
    border-radius: 6px;

    background: #f3f3f3;
    color: #222;
    font-size: 14px;

    cursor: pointer;
}

.archive-form-buttons button:hover {
    background: #e5e5e5;
}

.archive-delete-button:hover {
    background: #ffe7e7;
}

@media screen and (max-width: 600px) {
    .archive-edit-page {
        padding: 35px 20px;
    }

    .archive-edit-form {
        width: 100%;
    }

    .archive-form-row {
        display: block;
        margin-bottom: 12px;
    }

    .archive-form-row label {
        display: block;
        margin-bottom: 4px;
        padding: 0;
        text-align: left;
    }

    .archive-form-row input[type="text"],
    .archive-form-row input[type="number"],
    .archive-file-row input[type="file"] {
        width: 100%;
    }

    .archive-form-buttons {
        flex-wrap: wrap;
    }
}
.archive-search-page {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;

    border: 2px solid #222;
    background: #fff;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding-top: 35px;
}

.archive-search-form {
    width: 540px;
}

.archive-search-row {
    display: grid;
    grid-template-columns: 215px 215px;
    align-items: center;

    margin-bottom: 5px;
}

.archive-search-row label {
    padding-right: 10px;

    text-align: right;
    font-size: 15px;
    color: #222;
}

.archive-search-row input[type="text"] {
    width: 215px;
    height: 22px;
    box-sizing: border-box;

    padding: 1px 5px;

    border: 2px solid #333;
    border-radius: 5px;

    background: #fff;
    font-size: 14px;
}

.archive-search-row select {
    width: 125px;
    height: 22px;
    box-sizing: border-box;

    padding: 0 4px;

    border: 2px solid #333;
    border-radius: 5px;

    background: #fff;
    color: #222;
    font-size: 14px;
}

.archive-search-button-area {
    margin-top: 24px;
    text-align: center;
}

.archive-search-button-area button {
    min-width: 88px;
    height: 28px;
    box-sizing: border-box;

    padding: 2px 15px;

    border: 1px solid #333;
    border-radius: 6px;

    background: #f3f3f3;
    color: #222;
    font-size: 14px;
    cursor: pointer;
}

.archive-search-button-area button:hover {
    background: #e5e5e5;
}

@media screen and (max-width: 600px) {
    .archive-search-page {
        padding: 35px 20px;
    }

    .archive-search-form {
        width: 100%;
    }

    .archive-search-row {
        display: block;
        margin-bottom: 12px;
    }

    .archive-search-row label {
        display: block;
        margin-bottom: 4px;
        padding: 0;
        text-align: left;
    }

    .archive-search-row input[type="text"],
    .archive-search-row select {
        width: 100%;
    }
}
.archive-results-page {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;

    border: 2px solid #222;
    background: #fff;

    padding: 34px 24px;
}

.archive-results-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.archive-results-summary {
    margin-bottom: 10px;
    font-size: 14px;
    text-align: left;
}

.archive-results-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.archive-results-table {
    width: 100%;
    min-width: 1050px;

    border-collapse: collapse;
    table-layout: fixed;

    font-size: 12px;
    color: #222;
}

.archive-results-table th,
.archive-results-table td {
    box-sizing: border-box;
    border: 1px solid #222;

    padding: 6px 5px;
    text-align: center;
    vertical-align: middle;

    overflow-wrap: anywhere;
}

.archive-results-table th {
    height: 34px;
    background: #f4f4f4;
    font-weight: normal;
}

.archive-results-table td {
    height: 96px;
    background: #fff;
}

.archive-results-table a {
    color: #222;
    text-decoration: none;
}

.archive-results-table a:hover {
    text-decoration: underline;
}

.archive-results-table img {
    display: block;

    width: 110px;
    height: 75px;

    margin: 0 auto;

    border: 1px solid #777;
    object-fit: cover;
}

.column-id {
    width: 40px;
}

.column-number {
    width: 135px;
}

.column-title {
    width: 160px;
}

.column-type {
    width: 55px;
}

.column-episode,
.column-sheet {
    width: 50px;
}

.column-release,
.column-created {
    width: 130px;
}

.column-exhibition {
    width: 70px;
}

.column-thumbnail {
    width: 165px;
}

.no-thumbnail {
    color: #777;
}

.archive-no-results {
    padding: 50px 20px;
    border: 1px solid #aaa;
    text-align: center;
}

.archive-pagination {
    margin-top: 22px;
    text-align: center;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    min-width: 32px;
    height: 32px;

    margin: 0 2px;
    padding: 0 8px;

    justify-content: center;
    align-items: center;

    box-sizing: border-box;

    border: 1px solid #444;
    border-radius: 4px;

    background: #fff;
    color: #222;
    text-decoration: none;
}

.archive-pagination .page-numbers.current {
    background: #333;
    color: #fff;
}

.archive-pagination a.page-numbers:hover {
    background: #eee;
}

.archive-results-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;

    margin-top: 22px;
}

.archive-results-button {
    min-width: 120px;
    min-height: 32px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    padding: 3px 14px;

    box-sizing: border-box;

    border: 1px solid #333;
    border-radius: 6px;

    background: #f3f3f3;
    color: #222;

    font-size: 14px;
    text-decoration: none;
}

.archive-results-button:hover {
    background: #e5e5e5;
}

@media screen and (max-width: 700px) {
    .archive-results-page {
        padding: 24px 12px;
    }

    .archive-results-buttons {
        flex-direction: column;
        align-items: center;
    }

    .archive-results-button {
        width: 180px;
    }
}
