.h_link a {
    text-decoration: none;
}
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.body_base {
    background: linear-gradient(135deg, #777777, #292929);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.body_main {
    background: rgba(0, 0, 0, 0);
    flex-grow: 1;
    margin-top: 10px;
}

.body_top_div {
    width: 100%;
    height: 60px;
    font-size: 14px;
}

.body_top_row {
    color: white;
    display: flex;           /* 横並びにする */
    align-items: center;     /* 高さを揃える */
    justify-content: space-between; /* 左と右に分ける */
    padding-top: 9px;
}

.body_top_info {
    margin-left: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: 14px; 
}

.body_top_hr {
    color: #737373;
    size: 2;
    width: 100%;
    position: relative;
    top: 58px;
}

.search_area_div {
    width: 100%;
    height: 60px;
    font-size: 14px;
}

.search_area_div select {
    height: 21px;
    font-size: 14px;
}

.search_area_hr {
    color: #737373;
    size: 2;
    width: 100%;
    position: relative;
    top: 58px;
}


.header_table {
    background: linear-gradient(to top, #c9c9c9, #777777);
    width: 100%;
}

.h_screenname {
    font-size: 30px;
    color: inherit;
    text-align: left;
    color: #000000;
    margin-left: 30px;
}

.h_systemname {
    text-align: right;
    width: 260px;
    color: #000000;
    margin-right: 10px;
    font-family: "Times New Roman";
    font-size :18px;
    margin-top: 3px;
}

.h_link {
    text-align: right;
    width: 130px;
    margin-right: 0px;
}

.footer_hr {
    color: #737373;
    size: 2;
    width: 100%;
}

.footer_div {
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    color: white;
    font-family: "Times New Roman";
    font-size :16px;
    /*
    min-height: 50px;
    max-height: 50px;
    position: relative;
    bottom: auto;
    */
}

/* ラベル右側の「：」部分 */
.label-colon {
    display: inline-block;
    width: 12px;
    text-align: center;
    margin-right: 5px;
}

/* 必須マーク（赤い＊） */
.required {
    color: #d1242f;
    margin-left: 2px;
    font-size: 15px;
    font-weight: bold;
    vertical-align: super;
}

/* 入力フィールド＋コロンを横並びにするラッパー */
.input-group {
    display: flex;
    align-items: center;
    gap: 4px;
}


/* 登録日、更新日（各登録画面 共通） */
.register-dates-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 18px;
    margin-bottom: 10px;
}

.register-dates-box {
    display: inline-block;
    font-size: 12px;
}

.register-dates-row {
    display: table;
    border-collapse: collapse;
}

.register-dates-label,
.register-dates-value {
    display: table-cell;
    padding: 2px 10px;
    border: 1px solid #737373;
    white-space: nowrap;
    font-size: 14px;
}

.register-dates-label {
    background-color: #d3d3d3;
}

.register-dates-value {
    background-color: #ffffff;
    width: 96px;
    text-align: center;
    box-sizing: border-box;
}

/* 入力値チェックエラー時の背景色 */
input.input-error-bg,
select.input-error-bg,
textarea.input-error-bg {
    background: rgba(255, 216, 255, 1);
}

.body_guidance {
    width: 100%;
    height: 70px;
}

.guidance-area {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.guidance-left,
.guidance-right {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.guidance-left button,
.guidance-right button {
    min-width: 90px;
    height: 40px;
    border: 1px solid rgb(100, 100, 100);
    border-radius: 7px;
    background: linear-gradient(to bottom,
            #ffffff 10%,
            #fbfbfb 25%,
            #e6e6e6 50%,
            #cccccc 75%);
    color: #000;
    cursor: pointer;
    margin: 0 8px;
    font-size: 15px;
    /* ：テキストの選択（青色反転）を禁止する */
    user-select: none;
    -webkit-user-select: none;
    /* Safari/Chrome用 */
    -moz-user-select: none;
    /* Firefox用 */
    -ms-user-select: none;
    /* 古いEdge/IE用 */
}

/* カーソルを合わせたとき（少し暗くする） */
.guidance-left button:hover,
.guidance-right button:hover {
    filter: brightness(0.92);
}

/* ボタンを押したとき（影を消して右下にずらす） */
.guidance-left button:active,
.guidance-right button:active {
    transform: translate(2px, 2px);
}

.guidance-center {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    margin-bottom: 20px;
}

.guidance-message {
    color: #ffff66;
    text-align: left;
    /* ul（黒丸）左揃え */
}

.btn {
    min-width: 80px;
    height: 35px;
    border: 1px solid rgb(100, 100, 100);
    border-radius: 7px;
    background: linear-gradient(to bottom,
            #ffffff 10%,
            #fbfbfb 25%,
            #e6e6e6 50%,
            #cccccc 75%);
    color: #000;
    cursor: pointer;
    padding: 0px 10px;
    margin: 3px 4px;
    font-size: 14px;
    /* ：テキストの選択（青色反転）を禁止する */
    user-select: none;
    -webkit-user-select: none;
    /* Safari/Chrome用 */
    -moz-user-select: none;
    /* Firefox用 */
    -ms-user-select: none;
    /* 古いEdge/IE用 */
}

/*カーソルを合わせたとき（ホバー時）に少し暗くする */
.btn:hover {
    filter: brightness(0.92);
    /* 1.0を基準に数値を下げると暗くなります */
}

/*ボタンを押したとき（アクティブ時）の動き */
.btn:active {
    transform: translate(2px, 2px);
    /* 影の分だけ右下にずらして「押した感」を出す */
}

/* 確認ダイアログ（戻る、設定、保存など） */
.app-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 3500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

.app-confirm-overlay.hidden {
    display: none;
}

.app-confirm-dialog {
    box-sizing: border-box;
    min-width: 460px;
    max-width: min(560px, calc(100vw - 32px));
    border: 1px solid #333;
    border-radius: 8px;
    background: rgb(240, 240, 240);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    padding: 18px 20px 16px;
}

.app-confirm-body {
    background: rgb(240, 240, 240);
}

.app-confirm-message {
    color: #000;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: pre-line;
}

.app-confirm-message.is-danger {
    color: #d00;
}

.app-confirm-footer {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 16px;
    background: rgb(240, 240, 240);
}

.app-confirm-footer .btn {
    min-width: 100px;
}

body.app-confirm-open {
    overflow: hidden;
}
/* =========================
   読み込み中（ローディング）
   ========================= */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* 最前面に表示 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-message {
    background-color: #cccccc; /* 画像に合わせたグレー背景 */
    color: black;
    padding: 8px 8px;
    border: 2px solid #000000; /* 黒枠 */
    font-size: 14px;
    /* ▼▼▼ 追加：テキストの選択（青色反転）を禁止する ▼▼▼ */
    user-select: none;
    -webkit-user-select: none; /* Safari/Chrome用 */
    -moz-user-select: none;    /* Firefox用 */
    -ms-user-select: none;     /* 古いEdge/IE用 */
}