/* お問い合わせページのスタイル */
.contact-page-container {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-title {
    display: inline-flex;
    align-items: center;
    font-size: 28px;
    color: #825725;
    position: relative;
    margin-bottom: 20px;
}

.contact-title i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: #825725;
}

.contact-description {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-description p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-description ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.contact-description ul li {
    list-style-type: disc;
    margin-bottom: 8px;
    line-height: 1.5;
}

.notice-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
}

.contact-form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Contact Form 7のスタイル調整 */
.wpcf7-form {
    width: 100%;
}

.wpcf7-form .form-group {
    margin-bottom: 20px;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

/* 名前フィールドのレイアウト修正 */
.wpcf7-form .name-inputs {
    display: flex;
    gap: 10px;
    width: 100%;
}

.wpcf7-form .name-inputs .name-field {
    flex: 1;
    display: block;
}

.wpcf7-form .name-inputs p {
    margin: 0;
    padding: 0;
}

/* Contact Form 7のデフォルトスタイルを上書き */
.wpcf7-form .name-inputs input {
    width: 100%;
    box-sizing: border-box;
}

/* Contact Form 7が自動生成するpタグの余白を削除 */
.wpcf7-form .name-inputs p {
    margin: 0;
}

/* wpcf7-formタグの中のpタグのマージンを調整 */
.wpcf7-form p {
    margin: 0 0 10px;
}

/* 名前フィールドのラッパー */
.name-field {
    width: 100%;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wpcf7-form .radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpcf7-form .radio-label {
    display: flex;
    align-items: center;
}

.wpcf7-form .privacy-scroll {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.wpcf7-form .submit-btn {
    background-color: #F08A43;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.wpcf7-form .submit-btn:hover {
    background-color: #d35400;
}

.wpcf7-form .required {
    color: red;
}

/* エラーメッセージのスタイル */
.wpcf7-not-valid-tip {
    color: #f00;
    font-size: 0.8em;
    margin-top: 5px;
}

.wpcf7-response-output {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ddd;
}

/* サンクスページのスタイル */
.thanks-page-container {
    text-align: center;
}

.thanks-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.thanks-message {
    margin-bottom: 30px;
}

.thanks-text {
    font-size: 24px;
    color: #825725;
    margin-bottom: 20px;
    font-weight: bold;
}

.thanks-actions {
    margin-top: 40px;
}

.home-btn {
    display: inline-block;
    background-color: #F08A43;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.home-btn:hover {
    background-color: #d35400;
    text-decoration: none;
    color: white;
}

/* アイコンスタイル */
.contact-title i.fa-check-circle {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-right: 10px;
}

/* レスポンシブ対応 */

/* laptop（1024px）は無くても問題無し */

/* タブレット（768px） */
@media (max-width: 768px) {
    .name-group .name-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-form-container {
        padding: 20px;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .thanks-content {
        padding: 30px 20px;
    }
    
    .thanks-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 24px;
    }
    
    .contact-description {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .thanks-content {
        padding: 20px 15px;
    }
    
    .thanks-text {
        font-size: 18px;
    }
    
    .home-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* アンカーリンクのスクロール調整 */
html {
    scroll-behavior: smooth;
}

/* アンカーリンクでジャンプした時のハイライト効果 */
#privacy-policy:target {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% {
        background-color: rgba(255, 140, 0, 0.2);
    }
    100% {
        background-color: transparent;
    }
}