/* =========================
   基本設定
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        Meiryo,
        sans-serif;

    color: #333333;
    background-color: #ffffff;
}


/* =========================
   ヘッダー
========================= */

header {
    text-align: center;
    line-height: 80px;
    background-color: #dddddd;
    font-size: 24px;
    font-weight: 700;
}


/* =========================
   メイン
========================= */

main {
    padding: 60px 20px;
}


/* =========================
   フォーム全体
========================= */

.contact-form-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 0;
    border: 1px solid #cccccc;
    background-color: #ffffff;
}

.contact-image {
    text-align: center;
    margin: 0 auto;
}

.contact-image img {
    display: block;
    width: 100%;
    max-width: 768px; /* 最大幅はお好みで変更 */
    height: auto;
    margin: 0 auto;
}

/* =========================
   フォーム項目
========================= */

.form-item:first-child {
    margin-top: 0;
}

.form-item {
    width: 70%;
    margin: 30px auto 0;
}


/* =========================
   ラベル
========================= */

.form-item label {
    display: block;
    font-size: 16px;
    color: #333333;
}


/* =========================
   必須・任意
========================= */

.form-hissu {
    color: #ffffff;
    font-size: 13px;
    margin-left: 15px;
    padding: 3px 5px;
    background-color: red;
}

.form-free {
    color: #ffffff;
    font-size: 13px;
    margin-left: 15px;
    padding: 3px 5px;
    background-color: #8DC39F;
}


/* =========================
   テキスト入力
========================= */

.form-item > input {
    width: 100%;
    height: 50px;
    border-radius: 20px;
    border: 1px solid #cccccc;
    margin-top: 10px;
    padding: 0 15px;
    font-size: 16px;
    background-color: #ffffff;
}


/* =========================
   プレースホルダー
========================= */

.form-item input::placeholder,
.form-item textarea::placeholder {
    color: #999999;
}


/* =========================
   住所
========================= */

.form-flex {
    display: flex;
    flex-direction: column;
}

.form-flex input {
    width: 100%;
    height: 50px;
    border-radius: 20px;
    border: 1px solid #cccccc;
    margin-top: 10px;
    padding: 0 15px;
    font-size: 16px;
}


/* =========================
   お問い合わせ内容
========================= */

.form-item textarea {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 10px;
    padding: 15px;
    border-radius: 20px;
    border: 1px solid #cccccc;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
}


/* =========================
   フォーカス時
========================= */

.form-item input:focus,
.form-item textarea:focus {
    outline: none;
    border-color: #8DC39F;
}


/* =========================
   個人情報チェック
========================= */

.last-check {
    display: flex;
    align-items: center;
    vertical-align: middle;
}

.last-check > input {
    width: auto;
    height: auto;
    margin: 0 10px 0 0;
    flex-shrink: 0;
}

.last-check label {
    display: block;
}

.last-check a {
    color: #333333;
    text-decoration: underline;
}


/* =========================
   送信ボタン
========================= */

.form-item.send-btn {
    max-width: 200px;
    margin: 40px auto 0;
}

.form-item.send-btn input {
    width: 100%;
    height: 50px;
    border: 1px solid #8DC39F;
    border-radius: 0;
    background-color: #8DC39F;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.form-item.send-btn input:hover {
    background-color: #ffffff;
    color: #8DC39F;
    border: 1px solid #8DC39F;
}


/* =========================
   フッター
========================= */

footer {
    text-align: center;
    line-height: 100px;
    background-color: #dddddd;
}


/* =========================
   プライバシーポリシー
========================= */

.privacy-policy {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    line-height: 1.9;
    color: #333;
}

.privacy-policy h2 {
    margin-bottom: 30px;
    text-align: center;
}

.privacy-policy h3 {
    margin-top: 35px;
    margin-bottom: 20px;
}

.privacy-policy p {
    margin-bottom: 15px;
}

.privacy-policy ul {
    padding-left: 25px;
}

.privacy-policy li {
    margin-bottom: 15px;
}

/* =========================
   スマートフォン
   768px以下
========================= */

@media screen and (max-width: 768px) {

    header {
        line-height: 60px;
        padding: 10px 15px;
        font-size: 20px;
    }

    main {
        padding: 30px 15px;
    }

    .contact-form-inner {
        width: 100%;
        padding: 30px 15px;
        border: none;
    }

    .form-item {
        width: 95%;
        margin: 20px auto 0;
    }

    .form-item > input {
        height: 40px;
        border-radius: 15px;
        margin-top: 5px;
    }

    .form-flex input {
        height: 40px;
        border-radius: 15px;
        margin-top: 5px;
    }

    .form-item textarea {
        border-radius: 15px;
        margin-top: 5px;
    }

    .form-hissu,
    .form-free {
        margin-left: 5px;
    }

    .last-check {
        align-items: flex-start;
    }

    .last-check > input {
        margin: 3px 5px 0 0;
    }

    .last-check label {
        font-size: 14px;
    }

    .form-item.send-btn {
        width: 80%;
        margin: 30px auto 0;
    }

    .privacy-policy {
        margin: 30px 15px;
        padding: 25px 20px;
    }

    footer {
        line-height: 80px;
    }
}
