/*--------------------------------------------------
  全体
--------------------------------------------------*/
:root {
    --rbc-font-set: 'Noto Sans JP', "Arial";
    --rbc-font-weight-regular: 400;
    --rbc-font-weight-bold: 700;
}

.rbc-font-weight-regular {
    font-weight: var(--rbc-font-weight-regular);
}

.rbc-font-weight-bold {
    font-weight: var(--rbc-font-weight-bold);
}

html {
    font-size: 14px;
    font-family: var(--rbc-font-set);
    font-weight: var(--rbc-font-weight-regular);
    color: var(--rbc-color-txt-black);
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.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;
}

input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}

footer {
    font-size: clamp(12px, 2vw, 14px);
}

/*--------------------------------------------------
  処理結果メッセージエリア
--------------------------------------------------*/
.result-msg {
    color: var(--rbc-color-txt-black);
    border: solid 1px var(--rbc-color-txt-black);
}

.error-msg {
    color: var(--rbc-color-accent);
    border: solid 1px var(--rbc-color-accent);
}

/*--------------------------------------------------
  試験トップリンク
--------------------------------------------------*/
.shikentop-rink {
    font-size: 18px;
    width: 75%;
    display: inline-block;
    text-align: left;
}

/* 試験トップリンク */
@media (min-width: 768px) {
    .shikentop-rink {
        font-size: 18px;
        display: inline-block;
        text-align: left;
        width: auto;
    }
}

/*--------------------------------------------------
  試験トップボタン
--------------------------------------------------*/
.shikentop-button {
    width: 75%;
    height: auto;
    min-height: 140px;
    border: 2px solid black;
    background-color: white;
    display: flex;
    flex-direction: column;
    padding: 15px;
    cursor: pointer;
    border-radius: 10px;
}

.shikentop-button-title {
    font-size: 24px;
    text-align: left;
    margin-bottom: 10px;
    font-weight: bold;
    text-indent: 5px;
    color :black;
}

.shikentop-button-title-disabled {
    font-size: 24px;
    text-align: left;
    margin-bottom: 10px;
    font-weight: bold;
    text-indent: 5px;
    color: rgba(16, 16, 16, 0.3);
}

.shikentop-button-title-small {
    font-size: 20px;
    text-align: left;
    margin-bottom: 10px;
    font-weight: bold;
    text-indent: 5px;
    color: black;
}

.shikentop-button-title-small-disabled {
    font-size: 20px;
    text-align: left;
    margin-bottom: 10px;
    font-weight: bold;
    text-indent: 5px;
    color: rgba(16, 16, 16, 0.3);
}

.shikentop-button-blueline {
    border-bottom: 4px solid var(--rbc-color-main);
    width: 100%;
    border-radius: 2px 2px 2px 2px;
    margin-bottom: 4px;
}

.shikentop-button-blueline-disabled {
    border-bottom: 4px solid lightblue;
    width: 100%;
    border-radius: 2px 2px 2px 2px;
    margin-bottom: 4px;
}

.shikentop-button-subtitle {
    font-size: 16px;
    text-align: left;
    line-height: 1.4;
    font-weight: 500;
    color:black;
}

.shikentop-button-subtitle-disabled {
    font-size: 16px;
    text-align: left;
    line-height: 1.4;
    font-weight: 500;
    color: rgba(16, 16, 16, 0.3);
}

/*--------------------------------------------------
  試験トップ ガイド
--------------------------------------------------*/
.top-explanation {
    display: inline-block;
    font-size: 18px;
    width: 75%;
    text-align: left;
}

@media (min-width: 438px) {
    .top-explanation {
        display: inline-block;
        font-size: 18px;
        text-align: left;
        width: auto;
    }
}

/*--------------------------------------------------
  理美区分選択画面 ラジオボタン
--------------------------------------------------*/
.radio-group {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .radio-group input[type="radio"] {
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }

.original-color-changed .form-check-input:checked {
    background-color: var(--rbc-color-main);
    border-color: var(--rbc-color-main);
}

/*--------------------------------------------------
  市区郡テキストボックス
--------------------------------------------------*/
.jusyo-custom-text-box-shi {
    text-align: left;
    height: 40px;
    width: 700px;
    max-width: 100%;
    resize: none;
}

@media (max-width: 500px) {
    .jusyo-custom-text-box-shi {
        height: 80px;
    }
}

.jusyo-custom-text-box {
    text-align: left;
    height: 80px;
    width: 700px;
    max-width: 100%;
    resize: none;
}

@media (max-width: 500px) {
    .jusyo-custom-text-box {
        height: 120px;
    }
}

/*--------------------------------------------------
  試験結果項目表示制御
--------------------------------------------------*/
.list-group-flush .list-group-item {
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
}

.list-group-flush .list-group-item {
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

    .list-group-flush .list-group-item:hover {
        background-color: #f8f9fa;
    }

    .list-group-flush .list-group-item.selected {
        background-color: #FFECEC;
        color: black;
    }

/*--------------------------------------------------
  ファイル選択欄制御
--------------------------------------------------*/
.file-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
}

.file-name-text {
    flex-grow: 1;
    text-overflow: ellipsis;
    overflow: hidden;
}

.remove-file-btn {
    font-size: 18px;
    background-color: transparent;
    color: black;
    border: none;
    padding: 0 5px;
    margin-left: 10px;
    cursor: pointer;
    display: inline-block;
    width: auto;
    text-align: center;
}

    .remove-file-btn:hover {
        color: gray;
    }

.upload-preview-area {
    border: 1px solid black;
    border-radius: 10px;
}

/*--------------------------------------------------
  顔写真アップロードポップアップ
--------------------------------------------------*/
.f-popup-modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.5);
}

.faceup-popup {
    height: auto !important;
    max-height: 80% !important;
    width: 90% !important;
    max-width: 400px !important;
    border-radius: 0;
    padding: 20px;
    border: 1px solid black;
}

.modal-dialog-centered {
    justify-content: center;
    max-width: 100%;
}

.faceup-popup-btn {
    height: 50px;
    width: 120px;
}

.f-upload-select-group-btn {
    display: flex;
    justify-content: center;
}

.face-popup-picture-image {
    height: 200px;
    width: 170px;
    border: 1px solid black;
    border-radius: 0px;
}

/*--------------------------------------------------
  英訳文証明書発行申請
--------------------------------------------------*/

/*ドロップダウンリストにスクロールバーを追加*/
.dropdown-menu.scroll-bar {
  max-height: 200px;
  overflow-y: auto;
}

/*--------------------------------------------------
  その他
--------------------------------------------------*/

/* 画面共通太字化 */
.custom-font-sizeup {
    font-weight: 500;
}

/* チェックボックスサイズ変更 */
.original-checkbox .form-check-input {
    transform: scale(1.4);
}

/* 「全角」右端表示用 */
.form-label-zenkaku {
    text-align: left;
    position: relative;
    left: 650px;
}

@media (max-width: 991px) {
    .form-label-zenkaku {
        text-align: left;
        position: relative;
        left: 500px;
    }
}

@media (max-width: 767px) {
    .form-label-zenkaku {
        text-align: right;
        position: static;
        left: 0px;
    }
}

/* フォーカス時ボタン色変更抑制 */
.no-rounded {
    border-radius: 10px 10px 10px 10px !important;
}

/* 試験結果情報リスト */
.shiken-jouhou-title {
    background-color: var(--rbc-color-main);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 24px;
    font-weight: 500;
}

/* 試験結果メニュー表示縦幅制御 */
.menu-container {
    max-height: 250px;
    overflow-y: auto;
}

/* 試験結果メニュー表示制御 */
.custom-area-border-nonetop {
    border: solid 0.5px var(--rbc-color-txt-darkgray);
    border-top: none
}

/* 決定ボタン制御 */
.next-btn {
    border: none;
}

/* 共通ボタン制御 */
.custom-normal-btn {
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-padding-y: 0.375rem;
    --bs-btn-border-color: transparent;
    display: inline-block;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    color: var(--rbc-color-txt-white);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    border: 1px solid var(--rbc-color-main);
    background-color: var(--rbc-color-main);
}

    /* 共通ボタン制御 */
    .custom-normal-btn:active {
        border: 1px solid black;
    }

/* プレビュー画像エリア */
.face-upload-preview-area {
    height: 200px;
    width: 170px;
    border: 1px solid black;
    border-radius: 8px;
}

/* 共通改行 */
.custom-text-newline {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* 共通改行不可 */
.noline-breaks-text {
    white-space: nowrap;
}

/* 共通「必須」マーク */
.mandatory-mark-label {
    background-color: red;
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
}

/* 横並び */
.side-by-side {
    display: flex;
    align-items: center;
}

/* 連絡先ラベル用 */
.renrakusaki-lavel-text {
    width: 50px;
    min-width: 50px;
    text-align: center;
}

/* 連絡先番号ラベル用 */
.renrakusaki-lavel-bangou {
    text-align: left;
    margin-left: 15px;
}

/* 歩行困難等記載項目 */
.application-custom-textbox {
    text-align: left;
    height: 40px;
    resize: none;
}

@media (max-width: 768px) {
    .application-custom-textbox {
        height: 70px;
    }
}

/* バリデーションエラー時のコントロール表示 */
.form-control.is-rbc-invalid,
.form-select.is-rbc-invalid,
.form-check-input.is-rbc-invalid {
  border-color: var(--bs-form-invalid-border-color);
}

/* ※など改行とインデントが必要な文章 */
.indent-required-text {
  padding-left: 1em;
  text-indent: -1em;
}

/* 「・」などの記号で改行とインデントが必要な文章 */
.indent-required-bullet-text {
  padding-left: 1em;
  text-indent: -0.5em;
}

.result-table-thead {
    padding-top: 5px;
    padding-bottom: 5px;
    Text-align: center;
    position: sticky;
    top: 0;
    color: white;
    background-color: var(--rbc-color-main);
    z-index: 10;
}

.result-table-col {
    position: relative;
    white-space: nowrap;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-top: none;
    border-bottom: none;
}

.result-table-tb {
    text-align: center;
    border: solid 1px #ccc;
    padding: 0px 5px;
}

/* 文字列の改行をそのまま表示する用（Html.Rawの代用） */
.white-pre-wrap {
    white-space: pre-wrap;
}

