﻿/*========================================
#region 基本設定
========================================*/
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

/*========================================
#region フォーム関連
========================================*/
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.form-control:focus,
.form-check-input:focus,
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


/*========================================
#region 共通ボタンスタイル
========================================*/
.common-action-button {
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.fixed-bottom-right {
    position: fixed;
    bottom: 10px;
    right: 20px;
    /*z-index: 1000;*/
    z-index: 10; /* モーダルより低く設定 */
}

/*========================================
#region 個別ボタン色設定
========================================*/
.logout-button {
    background-color: #dc3545;
}

    .logout-button:hover {
        background-color: #c82333;
    }

.menu-return-button {
    background-color: #007bff;
}

    .menu-return-button:hover {
        background-color: #0056b3;
    }

/*========================================
#region ログイン情報表示
========================================*/
.login-info-fixed {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 14px;
    color: #333;
    background-color: #f8f8f8;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .login-info-fixed .kubun-icon {
        width: 28px;
        height: 28px;
    }

/*========================================
#region アイコン関連
========================================*/
.kubun-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

#screen-size-display {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: #eee;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 9999;
}


/*========================================
#region 十字マーク
========================================*/

.cross-marker {
    position: absolute;
    width: 50px;
    height: 50px;
    pointer-events: none;
    color: red;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    line-height: 40px;
}
    .cross-marker::before,
    .cross-marker::after {
        content: "";
        position: absolute;
        background-color: red;
    }

    .cross-marker::before {
        top: 8px;
        left: 0;
        width: 20px;
        height: 4px;
    }

    .cross-marker::after {
        top: 0;
        left: 8px;
        width: 4px;
        height: 20px;
    }

/*========================================
#region 画像の拡大縮小
========================================*/

#imageContainer {
    transition: transform 0.2s ease;
}

/*========================================
#region クリック座標テーブルの列幅固定
========================================*/
#coordinateTable {
    table-layout: fixed;
    width: 200px;
}

    #coordinateTable th:nth-child(1),
    #coordinateTable td:nth-child(1) {
        width: 30px;
    }

    #coordinateTable th:nth-child(2),
    #coordinateTable td:nth-child(2) {
        width: 60px;
    }

    #coordinateTable th:nth-child(3),
    #coordinateTable td:nth-child(3) {
        width: 60px;
    }

    #coordinateTable th,
    #coordinateTable td {
        padding: 2px;
        font-size: 0.85em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/**************************************************************/

/* 共通ボタン幅 */
.modal-button {
    width: 100px; /* ← 幅を統一 */
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* 閉じるボタン（グレー系） */
.close-button {
    background-color: #6c757d;
    color: white;
}

    .close-button:hover {
        background-color: #5a6268;
    }

.full-width-button {
    width: 100%;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background-color: #6c757d;
    color: white;
}

    .full-width-button:hover {
        background-color: #5a6268;
    }
