/* Contact Page Styles */

/* Page Title Glitch Effect - Contact用の画像に上書き */
.page-title::before,
.page-title::after {
    background-image: url('../img/common/footer_menu04.svg?v=20251030');
}

/* Contact Form Section */
.contact-form-section {
    padding: 20px 0;
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #909090;
    padding: 60px;
}

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

.contact-kinds .faxInfo {
    margin-bottom: 15px;
    color: var(--text-white);
    font-size: 14px;
}

.contact-kinds .lineInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-kinds .lineInfo span {
    display: block;
}

.contact-kinds .lineInfo img {
    width: 200px;
    height: auto;
}

.form-intro {
    text-align: center;
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Contact Form 7 - fieldset内のpタグをラベルとしてスタイリング */
.wpcf7 fieldset {
    border: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.wpcf7 fieldset > p:first-child,
fieldset > p.required {
    font-size: 14px;
    color: var(--primary-orange);
    font-weight: 500;
    margin-bottom: 10px;
}

/* 必須マークのスタイル */
.wpcf7 fieldset > p.required::after {
    content: ' *';
    color: var(--primary-orange);
}

/* Form Inputs */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 15px 20px;
    background-color: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: var(--primary-orange);
    background-color: rgba(50, 50, 50, 0.9);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.wpcf7 textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.8;
}

/* Checkbox Styling */
.wpcf7 .wpcf7-list-item {
    display: inline-block;
    margin: 0 20px 10px 0;
}

.wpcf7 .wpcf7-list-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 25px;
    background-color: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
    color: var(--text-white);
    font-size: 14px;
}

.wpcf7 .wpcf7-list-item label:hover {
    border-color: var(--primary-orange);
    background-color: rgba(50, 50, 50, 0.9);
}

.wpcf7 .wpcf7-list-item input[type="checkbox"] {
    display: none;
}

.wpcf7 .wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label {
    color: var(--primary-orange);
    background-color: rgba(255, 69, 0, 0.2);
    border-color: var(--primary-orange);
}

/* File Upload */
.wpcf7 input[type="file"] {
    padding: 12px 30px;
    background-color: rgba(40, 40, 40, 0.8);
    border: 1px solid var(--primary-orange);
    border-radius: 25px;
    color: var(--text-white);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    max-width: 200px;
    margin-bottom: 10px;
}

.wpcf7 input[type="file"]:hover {
    background-color: rgba(255, 69, 0, 0.2);
}

.wpcf7 input[type="file"]::-webkit-file-upload-button {
    display: none;
}

.wpcf7 input[type="file"]::file-selector-button {
    display: none;
}

.wpcf7 .inquiry-file {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Privacy Policy Box */
.wpcf7 .privacypolicy {
    margin-top: 60px;
}

.wpcf7 .privacypolicy > div {
    padding: 20px;
    background-color: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.wpcf7 .privacypolicy p,
.wpcf7 .privacypolicy dt,
.wpcf7 .privacypolicy dd,
.wpcf7 .privacypolicy li {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.8;
}

.wpcf7 .privacypolicy dt {
    font-weight: bold;
    color: var(--primary-orange);
    margin-top: 15px;
}

.wpcf7 .privacypolicy dd {
    margin-left: 0;
    margin-bottom: 10px;
}

.wpcf7 .privacypolicy ul {
    margin-left: 20px;
    list-style: disc;
}

/* Privacy Policy Checkbox */
.wpcf7 .pp-check {
    margin-top: 15px;
}

.wpcf7 .pp-check .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
}

.wpcf7 .pp-check input[type="checkbox"] {
    display: block;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-orange);
}

.wpcf7 .pp-check .wpcf7-list-item-label {
    font-size: 14px;
    color: var(--text-white);
}

/* Submit Button */
.wpcf7 input[type="submit"] {
    min-width: 250px;
    padding: 18px 60px;
    font-size: 16px;
    background-color: var(--primary-orange);
    color: var(--text-white);
    border: none;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto 0;
    display: block;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #ff6a33;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.3);
}

/* Response Output */
.wpcf7 .wpcf7-response-output {
    margin: 2em 0.5em 1em;
    padding: 0.2em 1em;
    border: 2px solid var(--primary-orange);
    color: var(--text-white);
}

/* Validation Errors */
.wpcf7 .wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
}

.wpcf7 .wpcf7-validation-errors {
    border-color: #dc3232;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .form-wrapper {
        padding: 30px 20px;
    }

    .form-intro {
        font-size: 14px;
    }

    .wpcf7 fieldset {
        margin: 0 0 25px 0;
    }

    .wpcf7 .wpcf7-list-item {
        display: block;
        margin: 0 0 10px 0;
    }

    .wpcf7 .wpcf7-list-item label {
        width: 100%;
        justify-content: center;
    }

    .contact-kinds .lineInfo img {
        width: 150px;
    }

    .wpcf7 input[type="submit"] {
        width: 100%;
        min-width: auto;
    }
}
