/* ========================================
   お問い合わせフォーム
======================================== */
.contact-section {
    padding: 80px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
}

.contact-form-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 60px rgba(10, 18, 60, 0.08);
}

.form-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.required {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 8px;
}

.optional {
    display: inline-block;
    background: var(--accent-gray);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    color: var(--primary-color);
    transition: all 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 18, 60, 0.1);
}

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

.form-hint {
    font-size: 12px;
    color: var(--accent-gray);
    margin-top: 6px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
}

.form-checkbox-label {
    font-size: 14px;
    color: var(--accent-gray);
}

.form-checkbox-label a {
    color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 50%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background-size: 150% 150%;
    background-position: 0% 50%;
}

.submit-btn:hover {
    background-position: 100% 50%;
    box-shadow: 0 8px 30px rgba(10, 18, 60, 0.3);
}

/* ========================================
   サイドバー
======================================== */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(10, 18, 60, 0.06);
}

.sidebar-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card-title .icon {
    width: 20px;
    height: 20px;
}

.sidebar-card-title .icon img {
    width: 100%;
    height: 100%;
}

.flow-list {
    list-style: none;
    counter-reset: flow;
}

.flow-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.flow-item:last-child {
    margin-bottom: 0;
}

.flow-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.flow-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.flow-content p {
    font-size: 13px;
    color: var(--accent-gray);
}

.company-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--accent-gray);
}

.company-info-item:last-child {
    margin-bottom: 0;
}

.company-info-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.company-info-icon img {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 991px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .contact-form-wrapper {
        padding: 30px 20px;
    }
}

/* ========================================
   Contact Form 7 スタイル上書き
======================================== */
.contact-form-cf7 .wpcf7-form p {
    margin-bottom: 20px;
}

.contact-form-cf7 .wpcf7-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-form-cf7 .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    color: var(--primary-color);
    transition: all 0.3s;
    box-sizing: border-box;
}

.contact-form-cf7 .wpcf7-form-control:not(.wpcf7-submit):focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 18, 60, 0.1);
}

.contact-form-cf7 textarea.wpcf7-form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form-cf7 .wpcf7-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 50%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background-size: 150% 150%;
    background-position: 0% 50%;
}

.contact-form-cf7 .wpcf7-submit:hover {
    background-position: 100% 50%;
    box-shadow: 0 8px 30px rgba(10, 18, 60, 0.3);
}

.contact-form-cf7 .wpcf7-not-valid-tip {
    color: #e53935;
    font-size: 12px;
    margin-top: 6px;
}

.contact-form-cf7 .wpcf7-response-output {
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    margin-top: 20px;
}

.contact-form-cf7 .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}
