body {
    margin: 0;
    /* bodyのデフォルトmarginを削除 */
    overflow-y: auto;
    /* 縦スクロールを禁止 */
}

.contact-form {
    background-image: linear-gradient(45deg, #e0f2f7, #ffffff);
    /* グラデーションを指定 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.header {
    background-color: rgba(217, 217, 217, 0.5);
    width: 100%;
    height: 96.8px;
    /* 121px * 0.8 */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    min-height: 92px;
    /* 115px * 0.8 */
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    position: relative;
    min-width: 192px;
    /* 240px * 0.8 */
    height: 48px;
    /* 60px * 0.8 */
    overflow: hidden;
    width: 200px;
    /* 250px * 0.8 */
    margin-left: 40px;
    /* 50px * 0.8 */
}


.icon-image {
    max-width: 100%;
    max-height: 100%;
}

.header-border {
    background-color: #626c73;
    height: 4.8px;
    width: 100%;
}

.form-container {
    display: flex;
    flex-grow: 1;
    /* main要素が利用できるスペースを最大限使うように修正 */
    width: 100%;
    flex-direction: column;
    align-items: center;
    font-family: Noto Sans JP, sans-serif;
    color: #000;
    justify-content: center;
    /* 垂直方向中央揃え */
    padding: 80px 0;
    overflow-y: auto;
    /* form-container内でのみ縦スクロールを許可 */
    -webkit-overflow-scrolling: touch;
    /* スムーズスクロール */
    padding: 96.8px 0;
    /* ヘッダーの高さ分padding-topを追加 */
}


.form-card {
    border-radius: 25px;
    background-color: #f5f5f5;
    display: flex;
    width: 775px;
    max-width: 90%;
    /* 幅を最大90%に */
    flex-direction: column;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
    /* 行間を調整 */
    padding: 40px;
    /* 左右のpaddingを調整 */
    box-sizing: border-box;
    /* paddingを含めて要素の幅を計算 */
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    /* 下マージンを追加 */
}

.form-subtitle {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    /* 下マージンを追加 */
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    /* 下マージンを追加 */
}

.form-label {
    font-size: 18px;
    margin-bottom: 5px;
    /* ラベルと入力欄の間隔を調整 */
}

.form-input,
.form-textarea {
    border-radius: 10px;
    background-color: #fff;
    padding: 10px;
    /* paddingを追加 */
    box-sizing: border-box;
    /* paddingを含めて要素の幅を計算 */
    width: 100%;
    font-size: 16px;
    border: 1px solid #ccc;
    max-width: 100%;
    /* 枠線を追加 */

}

.form-textarea {
    min-height: 120px;
    /* 高さを調整 */
}

.submit-button {
    align-self: center;
    border-radius: 10px;
    background-color: #589fc2;
    padding: 15px 45px;
    /* paddingを調整 */
    font-size: 16px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    /* カーソルをポインターに変更 */
    border: none;
    /* デフォルトのボーダーを削除 */
    width: auto;
    /* 幅を自動調整 */
}


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer {
    width: 100%;
    margin-top: auto;
}

.footer-border {
    background-color: #626c73;
    height: 4.8px;
    width: 100%;
    margin-top: auto;
}

.copyright {
    background-color: rgba(217, 217, 217, 0.5);
    color: #000;
    text-align: right;
    font: 500 19.2px/42.4px Noto Sans JP, sans-serif;
    padding: 14.4px 19.2px;
    margin: 0%;
}

.footer-border {
    background-color: #626c73;
    height: 4.8px;
    width: 100%;
    margin: 0;
}