
/* ========================================
   🎮 GAME UI STYLE
   Fortnite風
   ======================================== */

* {
    box-sizing: border-box;
}


/* ========================================
   🌌 全体
   ======================================== */

body {
    margin: 0;
    padding: 40px;

    font-family:
        "Arial Black",
        "Yu Gothic",
        "Meiryo",
        sans-serif;

    color: #17213b;

    background:
        linear-gradient(
            135deg,
            #78d8ff 0%,
            #b9efff 45%,
            #d8c7ff 100%
        );

    min-height: 100vh;
}


/* ========================================
   🏆 タイトル
   ======================================== */

h1 {
    max-width: 1100px;

    margin: 0 auto 30px;

    padding: 22px 30px;

    color: #ffffff;

    font-size: 34px;
    font-weight: 900;

    text-align: center;

    letter-spacing: 2px;

    background:
        linear-gradient(
            135deg,
            #1769ff 0%,
            #5134d9 100%
        );

    border: 4px solid #ffffff;

    /*
        ゲームUIっぽい斜めカット
    */
    clip-path: polygon(
        3% 0,
        100% 0,
        97% 100%,
        0 100%
    );

    box-shadow:
        0 8px 0 #172b78,
        0 12px 25px rgba(30, 55, 150, 0.35);

    text-shadow:
        3px 3px 0 #162b69;
}


/* ========================================
   🏠 ナビゲーション
   ======================================== */

nav {
    display: inline-block;

    margin-right: 10px;
    margin-bottom: 15px;
}

nav a {
    display: inline-block;

    padding: 10px 22px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 900;

    text-decoration: none;

    background:
        linear-gradient(
            135deg,
            #2875ff,
            #164ac7
        );

    border: 3px solid #ffffff;

    clip-path: polygon(
        8% 0,
        100% 0,
        92% 100%,
        0 100%
    );

    box-shadow:
        0 5px 0 #142b75;

    transition:
        transform 0.15s,
        filter 0.15s;
}

nav a:hover {
    transform: translateY(-3px);

    filter: brightness(1.2);
}


/* ========================================
   👤 ログイン情報
   ======================================== */

nav + nav + div {
    max-width: 1100px;

    margin: 5px auto 25px;

    padding: 12px 18px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    background:
        linear-gradient(
            90deg,
            #172c72,
            #2758c9
        );

    border-left: 6px solid #ffd928;

    box-shadow:
        0 5px 12px rgba(25, 50, 120, 0.25);
}


/* ========================================
   🟢 メッセージ
   ======================================== */

.message {
    max-width: 1100px;

    margin: 0 auto 18px;

    padding: 14px 20px;

    color: #164d32;

    font-size: 14px;
    font-weight: 800;

    background:
        linear-gradient(
            90deg,
            #d7ffec,
            #f0fff8
        );

    border: 3px solid #28c985;

    clip-path: polygon(
        1% 0,
        100% 0,
        99% 100%,
        0 100%
    );

    box-shadow:
        0 4px 10px rgba(0, 100, 70, 0.15);
}


/* ========================================
   🎮 メイン画面
   ======================================== */

form {
    max-width: 1100px;

    margin: 0 auto;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.96),
            rgba(231,241,255,0.96)
        );

    border: 5px solid #1c5ce7;

    clip-path: polygon(
        1.5% 0,
        100% 0,
        98.5% 100%,
        0 100%
    );

    box-shadow:
        0 10px 0 #18398c,
        0 18px 35px rgba(30, 60, 150, 0.3);
}


/* ========================================
   📝 フォーム
   ======================================== */

.form-row {
    margin-bottom: 18px;
}


/* ========================================
   🔵 ラベル
   ======================================== */

label {
    display: block;

    margin-bottom: 7px;

    color: #243b7b;

    font-size: 15px;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* ========================================
   🎯 入力欄
   ======================================== */

input[type="text"],
input[type="password"],
input[type="number"] {
    width: 300px;

    padding: 11px 14px;

    color: #17213b;

    font-size: 14px;
    font-weight: 700;

    background: #ffffff;

    border: 3px solid #83a9ed;

    outline: none;

    box-shadow:
        inset 0 3px 6px rgba(30, 60, 120, 0.08);

    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.15s;
}

input[type="text"]:focus {
    border-color: #286cff;

    transform: scale(1.02);

    box-shadow:
        0 0 0 4px rgba(40, 108, 255, 0.18);
}


/* ========================================
   🎯 SELECT
   ======================================== */

select {
    width: 300px;

    padding: 11px 14px;

    color: #17213b;

    font-size: 14px;
    font-weight: 700;

    background: #ffffff;

    border: 3px solid #83a9ed;

    outline: none;

    box-shadow:
        inset 0 3px 6px rgba(30, 60, 120, 0.08);
}

select:focus {
    border-color: #286cff;

    box-shadow:
        0 0 0 4px rgba(40, 108, 255, 0.18);
}


/* ========================================
   🏆 テーブル
   ======================================== */

table {
    width: 100%;

    margin-bottom: 30px;

    border-collapse: separate;
    border-spacing: 0;

    overflow: hidden;

    background: #ffffff;

    border: 4px solid #2765dc;

    box-shadow:
        0 7px 0 #193d91,
        0 12px 20px rgba(30, 60, 140, 0.2);
}

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


/* ========================================
   👑 テーブルヘッダー
   ======================================== */

th {
    padding: 14px 15px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 900;

    text-align: left;

    background:
        linear-gradient(
            135deg,
            #2467e9,
            #4a38c9
        );

    border-bottom: 3px solid #ffd52e;

    text-shadow:
        2px 2px 0 #1b3070;
}


/* ========================================
   📊 テーブル本体
   ======================================== */

td {
    padding: 13px 15px;

    color: #25365f;

    font-size: 14px;
    font-weight: 700;

    border-bottom: 2px solid #d7e2f7;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #eaf3ff;

    transform: scale(1.005);
}


/* ========================================
   🔎 詳細リンク
   ======================================== */

td a {
    display: inline-block;

    padding: 6px 15px;

    color: #ffffff;

    font-weight: 900;

    text-decoration: none;

    background:
        linear-gradient(
            135deg,
            #286cff,
            #6338dc
        );

    border: 2px solid #ffffff;

    box-shadow:
        0 3px 0 #263b91;

    clip-path: polygon(
        8% 0,
        100% 0,
        92% 100%,
        0 100%
    );

    transition:
        transform 0.15s,
        filter 0.15s;
}

td a:hover {
    transform: translateY(-2px);

    filter: brightness(1.2);
}


/* ========================================
   💛 保存ボタン
   ======================================== */

button {
    padding: 11px 28px;

    color: #222b45;

    font-size: 15px;
    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            #ffe229,
            #ffb800
        );

    border: 4px solid #ffffff;

    clip-path: polygon(
        8% 0,
        100% 0,
        92% 100%,
        0 100%
    );

    cursor: pointer;

    box-shadow:
        0 5px 0 #b47700,
        0 8px 15px rgba(130, 90, 0, 0.25);

    transition:
        transform 0.15s,
        filter 0.15s;
}

button:hover {
    transform: translateY(-3px);

    filter: brightness(1.08);
}

button:active {
    transform: translateY(2px);

    box-shadow:
        0 2px 0 #b47700;
}


/* ========================================
   💥 削除ボタン
   ======================================== */

button[name="delete"] {
    padding: 7px 17px;

    color: #ffffff;

    font-size: 13px;

    background:
        linear-gradient(
            135deg,
            #ff416c,
            #d71949
        );

    border: 3px solid #ffffff;

    box-shadow:
        0 4px 0 #8c1531;
}

button[name="delete"]:hover {
    filter: brightness(1.15);
}


/* ========================================
   😢 データなし
   ======================================== */

form > div:not(.form-row) {
    padding: 25px;

    color: #53658d;

    font-size: 14px;
    font-weight: 800;

    text-align: center;

    background: #edf4ff;

    /* border: 3px dashed #7c9edb; */
}


/* ========================================
   🕹️ フッター
   ======================================== */

footer {
    max-width: 1100px;

    margin: 35px auto 0;

    padding: 20px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    text-align: center;

    background:
        linear-gradient(
            90deg,
            #172c72,
            #3156bb,
            #172c72
        );

    border-top: 4px solid #ffd928;

    box-shadow:
        0 -5px 15px rgba(20, 50, 120, 0.2);
}


/* ========================================
   🎮 スクロールバー
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #d9e7ff;
}

::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            #286cff,
            #6638d8
        );

    border: 2px solid #d9e7ff;
}

::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            #ffcf22,
            #ff9f00
        );
}
