/* 全体リセット */
body, h1, h2, h3, p, ul, li, a, input, textarea, select, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}


/* メインコンテンツ */
.main-content {
    max-width: 1512px;
    width: 100%;
    position: relative;
    padding-top: 80px;
  }

.contact-page {
    max-width: 1000px;
    margin: 80px auto;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 60px 80px;
}

.contact-title {
    font-size: 32px;
    margin-bottom: 50px;
    text-align: center;
    color: #9BB181;
    font-family: var(--font-primary);
}

.form-error {
    margin-bottom: 24px;
    padding: 16px 20px;
    background-color: #fff3f3;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    color: #c00;
    font-size: 15px;
    font-family: var(--font-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.form-group label {
    font-size: 16px;
    color: #555;
    padding-right: 60px;
    font-weight: 500;
    font-family: var(--font-primary);
}

.required {
    position: absolute;
    right: 0;
    top: 0;
    color: #ff4d4d;
    font-size: 14px;
    font-family: var(--font-secondary);
}

/* ハニーポット: ボット対策用フィールド（人間には見せない） */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.honeypot input {
    position: absolute;
    left: -9999px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s ease;
    height: 55px;
    font-family: var(--font-secondary);
}

.form-group textarea {
    width: 100%;
    padding: 20px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s ease;
    min-height: 300px;
    resize: vertical;
    line-height: 1.8;
    font-family: var(--font-secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(155, 177, 129, 0.76);
    outline: none;
    box-shadow: 0 0 0 3px rgba(155, 177, 129, 0.1);
}

/* 送信ボタン */
.submit-button {
    padding: 20px 100px;
    font-size: 18px;
    color: #fff;
    background-color: rgba(155, 177, 129, 1);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 60px auto 0;
    width: fit-content;
    font-weight: 500;
    letter-spacing: 0.1em;
    font-family: var(--font-primary);
}

.submit-button:hover {
    background-color: rgba(155, 177, 129, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 177, 129, 0.2);
}

/* 完了メッセージのスタイル */
.completion-message {
    text-align: center;
    padding: 60px 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.completion-message h2 {
    color: #9BB181;
    margin-bottom: 20px;
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.6;
}

.completion-message p {
    margin-bottom: 15px;
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* レスポンシブ対応 */
@media screen and (max-width: 849px) {
    .contact-page {
        margin: 40px 20px;
        padding: 30px 20px;
    }

    .contact-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .form-group {
        gap: 8px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group select {
        height: 50px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .form-group textarea {
        min-height: 200px;
        padding: 16px;
        font-size: 14px;
    }

    .submit-button {
        width: 100%;
        padding: 16px 40px;
        font-size: 16px;
        margin-top: 40px;
    }

    .completion-message {
        margin: 20px;
        padding: 30px 20px;
    }

    .completion-message h2 {
        font-size: 24px;
    }

    .completion-message p {
        font-size: 15px;
    }
}

@media (max-width: 849px) {
    .main-content {
        padding-top: 60px; /* スマホ表示時はヘッダーが小さくなるため調整 */
    }
}
