@charset "utf-8";

/* --- 2. 隙間を完全に殺すための強制リセット --- */
.hrf-site-header {
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

.hrf-main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* --- 4. Content Layout --- */
.hrf-section-contact {
    padding: 60px 0 80px; /* 上下の余白を微調整 */
    background: #fff;
}

/* --- 5. Form Styles --- */
.wpcf7 {
    max-width: 700px;
    margin: 0 auto;
}

/* 注意書き：赤文字 */
.form-notice {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    color: #ff0000; 
    margin-bottom: 20px;
    text-align: right;
    font-weight: 700;
}

/* ラベルと入力欄の隙間を極限まで狭める */
.wpcf7-form label {
    display: block;
    font-weight: bold;
    font-family: 'Noto Sans JP', sans-serif;
    margin-bottom: 2px !important; /* 文字と箱を密着させる */
    color: #333;
}

.wpcf7-form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.wpcf7-form-control:focus {
    border-color: #001d3d;
    outline: none;
}

.wpcf7-textarea {
    height: 160px;
}

/* --- エラーメッセージ（赤枠・赤文字） --- */
.wpcf7-response-output {
    margin: 25px auto 0 !important;
    padding: 15px !important;
    border: 2px solid #ff0000 !important; 
    background-color: #fff5f5 !important; 
    color: #ff0000 !important; 
    font-weight: 700;
    text-align: center;
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 項目直下のエラー */
.wpcf7-not-valid-tip {
    color: #ff0000;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 5px;
    display: block;
}

.wpcf7-not-valid {
    border-color: #ff0000 !important;
}

/* --- 6. Submit Button & Turnstile --- */
.submit-box {
    text-align: center;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center; /* 内部要素を中央に強制 */
}

/* Turnstile（ロボット確認）を中央寄せ */
.cf7-cf-turnstile {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto 15px !important;
}

/* 送信ボタン：完全中央 */
.wpcf7-submit {
    display: block !important;
    margin: 0 auto !important;
    width: 280px;
    background: #000;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif; 
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 0;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    letter-spacing: 0.1em;
}

.wpcf7-submit:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* --- 7. Responsive --- */
@media screen and (max-width: 768px) {
    .hrf-section-contact { padding: 40px 20px; }
    .wpcf7-submit { width: 100%; min-width: 0; }
}