/* baserCMS 5 のフォームに旧テーマの表スタイルを適用 */
#contentsBody .bs-mail-form-body {
    width: 100%;
    margin: auto;
    border: 0;
    border-collapse: separate;
    background: #fff;
}

#contentsBody .bs-mail-form-body th.col-head {
    padding: 8px 10px;
    text-align: right;
    font-size: 15px;
    font-weight: 500;
    border: 0;
    border-bottom: 2px solid #ffb300;
}

#contentsBody .bs-mail-form-body td.col-input {
    padding: 10px 30px;
    text-align: left;
    vertical-align: top;
    border: 0;
    border-bottom: 2px solid rgba(179, 145, 133, 0.5);
}

#contentsBody .bs-mail-form-body th :is(.required, .normal) {
    display: inline-block;
    margin: 0 5px;
    padding: 4px 5px;
    color: #fff;
    background: #c30;
    border-radius: 3px;
    font-size: 10px;
    font-weight: normal;
    line-height: 1.25;
    vertical-align: middle;
    white-space: nowrap;
}

#contentsBody .bs-mail-form-body th .normal {
    background: #ccc;
}

#contentsBody .bs-mail-form-body :is(input, textarea, select) {
    max-width: calc(100% - 6px);
}

#contentsBody .bs-mail-form-auth-captcha {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: 10px;
    width: 430px;
    max-width: 100%;
    margin: 10px auto;
    text-align: left;
}

#contentsBody .bs-mail-form-auth-captcha > div:first-child {
    display: contents;
}

#contentsBody .bs-mail-form-auth-captcha .auth-captcha-image {
    grid-area: 1 / 1 / span 2;
    max-width: min(45vw, 210px);
    height: auto;
    margin: 0;
    float: none;
}

#contentsBody .bs-mail-form-auth-captcha input[type="text"] {
    grid-area: 1 / 2;
    min-width: 0;
    max-width: calc(100% - 6px);
}

#contentsBody .bs-mail-form-auth-captcha > div:nth-child(2) {
    grid-area: 2 / 2;
}

#contentsBody .bs-mail-form-submit {
    text-align: center;
    margin: 20px 0;
}

@media (max-width: 600px) {
    #contentsBody .bs-mail-form-body {
        table-layout: fixed;
    }

    #contentsBody .bs-mail-form-body :is(th.col-head, td.col-input) {
        display: block;
        width: auto;
        padding: 8px 10px;
        text-align: left;
    }
}

/* 固定ヘッダーを管理バーの直下に配置 */
body {
    --ytr-toolbar-offset: 0px;
}

body:has(> #ToolBar) {
    --ytr-toolbar-offset: 40px;
}

#header .logo {
    top: var(--ytr-toolbar-offset);
}

#header .nav-contact ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 13px;
    padding: 0;
    list-style: none;
    height: 80px;
}

#header .nav-contact :is(li, h2) {
    float: none;
    margin: 0;
    white-space: nowrap;
}

#header .nav-contact .i-mail a {
    display: flex;
    align-items: center;
    height: 80px;
}

#header .nav-contact .fa {
    width: auto;
}

@media (min-width: 901px) {
    #header #glbMenus {
        top: var(--ytr-toolbar-offset);
    }

    #header .sumanav {
        position: absolute;
    }

    #header .nav-contact {
        width: auto;
    }
}

@media (max-width: 900px) {
    #header .nav-contact,
    #header .sumanav {
        top: var(--ytr-toolbar-offset);
    }

    #header .sumanav {
        height: calc(100% - var(--ytr-toolbar-offset));
    }

    #header .menu-trigger {
        top: calc(26px + var(--ytr-toolbar-offset));
    }

    #header .nav-contact ul {
        width: auto;
        margin-left: 75px;
        gap: 8px;
    }

    #header .nav-contact h2 {
        font-size: clamp(18px, 6vw, 24px);
    }
}

/* 管理バーの Font Awesome 固定幅を GUIDE の矢印に適用させない */
#contentsBody .guide_waku + .fa-arrow-down {
    display: block;
    width: 100%;
    text-align: center;
}
