.pagetitle h1 {
    margin: 0;
}

.section>.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 0;
}


/* 中央寄せのユーティリティクラス */
.text-center {
    text-align: center;
}


form>div {
    display: flex;
    padding: 15px 0;
    align-items: start;
    gap: 10px;
    align-items:center;
}

form label {
    min-width: 30%;
    position: relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

label {
    display: block;
    margin-block: 5px;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    /* パディングとボーダーを幅に含める */
    flex-grow: 1;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 1em;
    font-size: 18px;
    color: #fff;
    /* 背景色を赤に変更 */
    background-color: #000080;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0b5ed7;
    color: #fff;
}

.contact-heading {
    text-align: center;
}

.contact-intro {
    text-align: center;
}

.btn-call {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-call a {
    font-size: 2.5rem;
    color: #000080 !important;
}
.btn-call span {
    font-weight:400;
}

.logo-container {
    margin-top: 3rem;
}

form {
    /*max-width: 600px;*/
    /* フォームの最大幅を設定 */
    margin: 0 auto;
    /* ページ中央に配置 */
    padding: 20px;
    /* フォーム内の余白 */
    background: #fff;
}


.required-mark {
    color: #fff;
    background: #cc0000;
    font-size: 0.8em;
    font-weight: normal;
    padding: 3px 10px;
    margin-left: 8px;
    /*position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);*/
}


/*==================================================
  ヘッダータイトルリンク
==================================================*/
.page-title-link {
    text-decoration: none;
    /* 下線を非表示にする */
    color: inherit;
    /* 親要素の文字色を継承する */
}

/*==================================================
  共通レスポンシブデザイン
==================================================*/
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        /* コンテンツの両端に余白を追加 */
    }

    /* 中央寄せのユーティリティクラス解除 */
    .text-center {
        text-align: left;
    }
}

/*==================================================
  モバイル調整 (768px以下)
==================================================*/
@media (max-width: 768px) {

    form>div:not(.privacy-check) {
        display: block;
        padding: 15px 0;
    }

    form label {
        min-width: 100%;
    }

    .section>.container {
        padding: 15px;
    }

    .contact-intro {
        text-align: left;
    }

    .btn-call a {
        font-size: 1.5rem;
    }


}

/*
  
    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav li {
        margin: 5px 0;
    }
    }

*/

/* Contactページ */
@media (max-width: 768px) {
    h1 {
        font-size: 24px;
    }

    p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {

    /* フォームの最大幅を画面幅の90%に設定 */
    form {
        max-width: 90%;
        padding: 15px;
        /* パディングを少し小さくする */
    }

    /* 入力欄とボタンの幅を100%に設定 */
    input[type="text"],
    input[type="email"],
    textarea,
    button[type="submit"] {
        width: 100%;
        box-sizing: border-box;
        /* 幅にパディングとボーダーを含める */
    }
}