﻿/*  ボーダーライン  */
.dlrequest-border-line,
.dlrequest-form-line {
    border-bottom: 1px solid #ccc;
}

.dlrequest-form-line {
    width: 100%;
    margin-bottom: 20px;
}

/* 上部エラー */
.dlrequest-err-container {
    margin-top: 20px;
}

.dlrequest-btn-group {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* 依頼ボタン */
.btn-request {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 300px;
    border: 1px solid #36990f;
    background-color: #36990f;
    color: white;
    font-weight: bold;
    border-radius: 25px;
    padding: 3px 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

/* 項目名＋必須/任意 */
.dlrequest-input-label-group {
    width: 280px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: .5em;
}

    .dlrequest-input-label-group span:first-child {
        display: inline-block;
        width: 210px; /* 項目名の表示位置を揃えるため固定 */
    }

/* 共通 */
.dlrequest-form-row span.label {
    display: inline-block;
    font-size: 70%;
    padding: 3px 6px 2px;
    line-height: 100%;
    border-radius: 5px;
}

.dlrequest-input-group .form-control {
    max-width: 100%;
    box-sizing: border-box;
    background-color: #d5e6cf !important;
    border-radius: 4px !important;
}

/* 必須 */
.label-danger {
    color: #fff;
    background: #e14b4b;
}

/* 任意 */
.label-primary {
    color: #fff;
    background: #5eb1db;
}

/* 受注内容記載 */
.dlrequest-form-container {
    margin-top: 20px;
}

/* flex-responsive: PCでは横並び、モバイルでは縦並びにする  */
.dlrequest-flex-responsive {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* flex-static: PCでもモバイルでも常に横並びにする  */
.dlrequest-flex-static {
    display: flex;
    align-items: center;
    gap: 10px;
}
    /* 入力欄 */
    .dlrequest-flex-static .form-control {
        width: 182px;
    }

@media (max-width: 991px) {
    /* 縦並びに変更 */
    .dlrequest-form-container,
    .dlrequest-output-condition-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dlrequest-flex-responsive {
        flex-direction: column;
        align-items: flex-start;
    }

    .dlrequest-input-group {
        width: 100%;
        max-width: 520px;
    }

    .dlrequest-textbox-width {
        width: 100%;
        max-width: 520px;
    }
}

/* リクエスト内容記載 */
.dlrequest-output-condition-container .caption-label {
    margin-top: 10px;
}

.dlrequest-output-condition-container .err-area {
    margin-left: 260px;
}

.dlrequest-output-condition-container .box-bottom {
    margin-bottom: 10px;
}

.dlrequest-form-row .form-group {
    margin-bottom: 20px;
}

/* 入力エリア全体の幅 */
.dlrequest-input-group {
    width: 520px;
}

/* TextBoxの幅 */
.dlrequest-textbox-width {
    width: 400px;
}

/* ---------- 完了画面 ---------- */
/* メッセージ */
.dlrequest-message {
    font-size: 24px;
    margin-top: 50px;
}

/* 注意書き */
.dlrequest-notice {
    margin: 20px 0px;
    display: block;
    font-weight: bold;
}
    .dlrequest-notice .indent {
        display: block;
        padding-left: 1.5em; /* 複数行になった際に2行目以降の開始位置を揃える */
    }

/* 人物画像 */
.dlrequest-ppl-image {
    max-height: 200px;
    margin: 20px 0px;
}

/* reCAPTCHA  */
.dlrequest-recaptcha-area {
    margin-top: 20px;
    margin-bottom: 15px;
}

.dlrequest-recaptcha-err {
    margin-top: 8px;
    text-align: center;
    color: red;
    font-weight: bold;
}

.dlrequest-message-label {
    font-size: 16px;
    margin-top: 40px;
    margin-bottom: 40px;
}
/* =========================================================
   Mobile responsive fix
   PC layout is unchanged; these rules only apply <= 991px.
   ========================================================= */
@media (max-width: 991px) {
    .dlrequest-input-group {
        width: 100%;
        max-width: 520px;
        box-sizing: border-box;
    }

    .dlrequest-textbox-width {
        width: 100%;
        max-width: 520px;
        box-sizing: border-box;
    }

    /* Fixed left offset can overflow/misalign on mobile. */
    .dlrequest-output-condition-container .err-area {
        margin-left: 0;
    }
}

/* Very narrow smartphones: keep the two date inputs on one line,
   but let each input shrink to fit the available width. */
@media (max-width: 480px) {
    .dlrequest-flex-static {
        width: 100%;
        min-width: 0;
    }

        .dlrequest-flex-static .form-control {
            width: calc((100% - 40px) / 2);
            min-width: 0;
            box-sizing: border-box;
        }

    .dlrequest-btn-group {
        width: 100%;
        box-sizing: border-box;
    }

    .btn-request {
        width: 100%;
        max-width: 300px;
        box-sizing: border-box;
    }
}

/* =========================================================
   Mobile + text zoom / accessibility hardening
   Prevent horizontal clipping when text/browser zoom is large.
   ========================================================= */
@media (max-width: 991px) {
    .dlrequest-form-container,
    .dlrequest-output-condition-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        align-items: stretch;
    }

        .dlrequest-form-container > *,
        .dlrequest-output-condition-container > *,
        .dlrequest-input-group,
        .dlrequest-textbox-width,
        .dlrequest-flex-responsive,
        .dlrequest-flex-static,
        .form-group,
        .form-control {
            max-width: 100%;
            min-width: 0;
            box-sizing: border-box;
        }

    .dlrequest-flex-responsive {
        flex-wrap: wrap;
    }

    label,
    .caption-label,
    .err-area,
    .dlrequest-notice,
    .dlrequest-message-label {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    input,
    select,
    textarea {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .dlrequest-btn-group {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* On narrow effective viewports (including high browser zoom),
   stack the date range instead of forcing two date boxes on one row. */
@media (max-width: 480px) {
    .dlrequest-flex-static {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
    }

        .dlrequest-flex-static .form-control {
            width: 100%;
            max-width: 100%;
        }

        .dlrequest-flex-static label,
        .dlrequest-flex-static span {
            align-self: center;
        }

    .btn-request {
        width: 100%;
        max-width: 300px;
    }
}
