.header-request {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 5rem;
    background-color: #f4f4f4;
}

.title-request {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}


.pfrm {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 0;
}

/*	問合せフォーム
 */
.request_form {
    padding: 0 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.request_form h2 {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #000000;
}

.form_grp {
    margin-bottom: 15px;
}

.form_grp label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form_grp input {
    width: 95%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 1em;
}

.form_grp textarea {
    width: 95%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 1.3em;
    resize: vertical;
    height: 100px;
}

.form_grp button {
    width: auto;
    background-color: #a0a0a0;
    color: white;
    border: none;
    margin: 10px 20px;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.box_center {
    text-align: center;
}

.box_inline {
    display: inline-block;
    margin: 10px 0;
}

.form_grp button:hover {
    background-color: #606060;
}


a {
    text-decoration: underline;
}

/*	確認画面
 */
.confirm_table {
    width: 100%;
    border-collapse: collapse; /* 1pxにする */
    /*border: 1px solid #aaaaaa;*/
    margin-bottom: 40px;
}

.confirm_table td {
    padding: 10px;
    border: 1px solid #aaaaaa;
}

.confirm_table th {
    padding: 10px;
    background-color: #f4f4f4;
    text-align: center;
    border: 1px solid #aaaaaa;
    width: 30%;
}

/*	送信完了画面
 */
.confirm_end {
    margin: auto;
    padding: 0 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.confirm_end button {
    background-color: #0088ff;
    color: white;
    width: 100px;
    border: none;
    margin: 10px 20px;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.confirm_end button:hover {
    background-color: #0055bb;
}

/* Popup form responsive footer fix */
html,
body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

body *,
body *::before,
body *::after {
    box-sizing: border-box;
}

/* フォーム本体をポップアップの表示幅内へ収める */
main,
form,
.form-container,
.form_content,
.form_area {
    min-width: 0;
    max-width: 100%;
}

input,
select,
textarea {
    max-width: 100%;
}

/* フォーム画面のフッターは固定高にしない */
footer {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    overflow: visible;
}

footer .menu_foot {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto !important;
    min-height: 0;
    padding: 18px 20px;
    overflow: visible;
}

footer .menu_foot > ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

footer .menu_foot > ul > li {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* ロゴと長い組織名をポップアップ幅内で折り返す */
footer .logoplus {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

footer .logoplus .logo {
    display: block;
    flex: 0 0 auto;
    width: auto;
    max-width: 90px;
    height: auto;
    margin: 0;
}

footer .logoplus > div {
    flex: 1 1 280px;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.45;
}

footer .cp_rght,
footer .cprght_text {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.45;
}

@media screen and (max-width: 680px) {
    footer .menu_foot {
        height: auto !important;
        padding: 16px 14px 20px;
    }

    footer .logoplus {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .logoplus > div {
        flex: 0 1 auto;
        width: 100%;
        text-align: center;
    }
}

/* Popup form vertical scroll adjustment */
html {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 0;
}

footer {
    position: static;
    margin-top: 0;
    margin-bottom: 0;
}

footer .menu_foot {
    padding-bottom: 22px;
}

/* 最終行をスクロールバー下端へ密着させない */
footer .cp_rght {
    padding-bottom: 4px;
}

@media screen and (max-height: 760px) {
    header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    form {
        margin-top: 10px;
        margin-bottom: 14px;
    }

    textarea {
        min-height: 96px;
        max-height: 140px;
    }

    footer .menu_foot {
        padding-top: 14px;
        padding-bottom: 18px;
    }
}
