/* ========================================
   全体
======================================== */

* {
    box-sizing: border-box;
}


body {
    margin: 0;
    padding: 0;

    font-family:
        "Yu Gothic",
        "Meiryo",
        sans-serif;

    background: #eef5ff;

    color: #222;
}


/* ========================================
   メインコンテナ
======================================== */

.container {
    width: 80%;
    max-width: 1200px;

    margin: 60px auto;

    padding: 60px;

    background: white;

    border-radius: 25px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12);

    text-align: center;
}


/* ========================================
   タイトル
======================================== */

h1 {
    margin-top: 0;
    margin-bottom: 25px;

    font-size: 42px;

    color: #0874d1;
}


h2 {
    margin-top: 30px;
    margin-bottom: 20px;

    font-size: 28px;

    color: #333;
}


.subtitle {
    margin-bottom: 40px;

    font-size: 25px;

    color: #333;
}


/* ========================================
   管理メニュー
======================================== */

.menu-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 30px;

    margin-top: 40px;

}


/* メニューボタン */

.menu-button {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 120px;

    padding: 20px;

    background: #0874d1;

    color: white;

    text-decoration: none;

    border-radius: 18px;

    font-size: 30px;

    font-weight: bold;

    transition:
        background 0.2s,
        transform 0.2s,
        box-shadow 0.2s;

}


/* マウスを乗せたとき */

.menu-button:hover {

    background: #0562b3;

    transform:
        translateY(-3px);

    box-shadow:
        0 8px 15px
        rgba(0, 0, 0, 0.15);

}


/* ========================================
   フォーム
======================================== */

.form-area {

    width: 80%;

    max-width: 700px;

    margin: 30px auto;

    text-align: left;

}


.form-area label {

    display: block;

    margin-top: 20px;

    margin-bottom: 8px;

    font-size: 20px;

    font-weight: bold;

}


.form-area input {

    width: 100%;

    padding: 15px;

    border:
        1px solid #ccc;

    border-radius: 8px;

    font-size: 18px;

}


/* 入力欄をクリックしたとき */

.form-area input:focus {

    outline: none;

    border:
        2px solid #0874d1;

}


/* ========================================
   通常ボタン
======================================== */

button {

    margin-top: 20px;

    padding:
        14px 25px;

    background: #0874d1;

    color: white;

    border: none;

    border-radius: 8px;

    font-size: 18px;

    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.2s;

}


button:hover {

    background: #0562b3;

    transform:
        translateY(-2px);

}


button:disabled {

    background: #aaa;

    cursor: not-allowed;

    transform: none;

}


/* ========================================
   結果表示
======================================== */

.result {

    width: 80%;

    max-width: 700px;

    margin: 40px auto;

    padding: 30px;

    border-radius: 15px;

    background: #f5f9ff;

    border:
        2px solid #0874d1;

}


.result p {

    font-size: 19px;

    text-align: left;

    margin: 15px 0;

}


/* ========================================
   リンク
======================================== */

a {

    color: #0874d1;

    font-weight: bold;

}


a:hover {

    color: #0562b3;

}


/* ========================================
   登録済み持ち物一覧
======================================== */

#items {

    width: 100%;

    margin-top: 25px;

    overflow-x: auto;

}


/* 件数 */

#count {

    font-size: 20px;

    font-weight: bold;

    text-align: left;

    margin:
        20px 0;

}


/* ========================================
   テーブル
======================================== */

table {

    width: 100%;

    border-collapse: collapse;

    background: white;

    font-size: 17px;

}


th {

    padding: 15px;

    background: #0874d1;

    color: white;

    font-weight: bold;

    white-space: nowrap;

}


td {

    padding: 14px;

    border:
        1px solid #ccc;

    text-align: center;

}


/* 偶数行 */

tbody tr:nth-child(even) {

    background: #f5f9ff;

}


/* マウスを乗せた行 */

tbody tr:hover {

    background: #e8f2ff;

}


/* ========================================
   一覧画面の操作ボタン
======================================== */

td button {

    margin:
        3px;

    padding:
        8px 12px;

    font-size: 14px;

}


/* ========================================
   QRコード
======================================== */

#qr_image {

    display: block;

    margin:
        20px auto;

    max-width: 250px;

}


/* ========================================
   QR画像表示ページ
======================================== */

img {

    max-width: 100%;

}


/* ========================================
   エラー表示
======================================== */

#error {

    margin:
        20px auto;

    padding:
        15px;

    max-width: 600px;

    background: #ffe5e5;

    color: #d00000;

    border:
        1px solid #ffaaaa;

    border-radius: 8px;

    font-weight: bold;

}


/* ========================================
   横線
======================================== */

hr {

    margin:
        40px 0;

    border: none;

    border-top:
        1px solid #ddd;

}


/* ========================================
   スマートフォン対応
======================================== */

@media (max-width: 800px) {

    .container {

        width: 94%;

        margin:
            20px auto;

        padding:
            30px 20px;

    }


    h1 {

        font-size: 32px;

    }


    h2 {

        font-size: 24px;

    }


    .subtitle {

        font-size: 20px;

    }


    /* メニューを1列にする */

    .menu-grid {

        grid-template-columns: 1fr;

        gap: 20px;

    }


    .menu-button {

        min-height: 90px;

        font-size: 24px;

    }


    .form-area {

        width: 100%;

    }


    .result {

        width: 100%;

    }


    table {

        font-size: 14px;

    }


    th,
    td {

        padding: 8px;

    }

}/* ========================================
   忘れ物一覧
======================================== */

#lost-items {
    width: 100%;
    margin-top: 25px;
    overflow-x: auto;
}


#lost-items table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}


#lost-items th {
    padding: 15px;

    background: #0874d1;
    color: white;

    font-weight: bold;

    white-space: nowrap;
}


#lost-items td {
    padding: 14px;

    border: 1px solid #ccc;

    text-align: center;
}


#lost-items tbody tr:nth-child(even) {
    background: #f5f9ff;
}


#lost-items tbody tr:hover {
    background: #e8f2ff;
}


#lost-items td button {
    margin: 3px;

    padding: 8px 12px;

    font-size: 14px;
}
/* ========================================
   返却処理
======================================== */

#result hr {
    margin: 30px 0;

    border: none;

    border-top:
        1px solid #ddd;
}


#item_status {
    font-weight: bold;
}


/* ========================================
   返却完了
======================================== */

.return-complete {
    padding: 20px;

    margin-top: 20px;

    background: #e8f7e8;

    border:
        2px solid #4caf50;

    border-radius: 10px;

    color: #267326;

    font-weight: bold;
}