/* Contact Form Styles */
.contact-page {
    background: #fff;
    color: #000;
}

.contact-form-section {
    padding: 80px 0 120px;
    max-width: 800px;
    margin: 0 auto;
}

/* Page Title Red Color */
.contact-page .page_ttl .en {
    color: #b92530 !important;
}

.contact-page .page_ttl .ttl_txt {
    color: #b92530 !important;
}

.contact-page .lead .txt {
    color: #000;
}

@media screen and (max-width: 768px) {
    .contact-form-section {
        padding: 60px 20px 80px;
    }
}

/* Success Message */
.success-message {
    background: #f5f5f5;
    border: 2px solid #b92530;
    padding: 60px 40px;
    border-radius: 8px;
    text-align: center;
    margin: 40px 0;
}

.success-message p {
    font-size: 18px;
    line-height: 1.8;
    color: #000;
}

@media screen and (max-width: 768px) {
    .success-message {
        padding: 40px 20px;
    }
    
    .success-message p {
        font-size: 16px;
    }
}

/* Error Messages */
.error-messages {
    background: rgba(185, 37, 48, 0.1);
    border: 2px solid #b92530;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.error-messages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-messages li {
    color: #ff6b6b;
    font-size: 14px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.error-messages li:before {
    content: "※";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.error-messages li:last-child {
    margin-bottom: 0;
}

/* Contact Form */
.contact-form {
    background: #f9f9f9;
    padding: 60px 50px;
    border-radius: 8px;
    margin-top: 40px;
    border: 1px solid #e0e0e0;
}

@media screen and (max-width: 768px) {
    .contact-form {
        padding: 40px 20px;
    }
}

/* Form Row - 2 Column Layout for PC */
.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

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

.form-group-full {
    width: 100%;
}

.form-group-half {
    flex: 1;
    min-width: 0;
}

@media screen and (max-width: 768px) {
    .form-group-half {
        width: 100%;
    }
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #000;
    position: relative;
}

.form-group label.required:after {
    content: "必須";
    background: #b92530;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 10px;
    font-weight: normal;
}

.form-note {
    font-size: 13px;
    color: #6b6b6b !important;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Input Styles */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #000;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #b92530;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(185, 37, 48, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

/* Field Error Styles */
.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
}

.field-error {
    display: block;
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
}

.select-wrapper:after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #000;
    pointer-events: none;
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 45px;
}

/* Textarea */
.contact-form textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.8;
}

/* Form Submit */
.form-submit {
    text-align: center;
    margin-top: 50px;
}

.form-submit button {
    background: #b92530;
    border: 2px solid #b92530;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 20px 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-radius: 50px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.form-submit button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000;
    transition: left 0.3s ease;
    z-index: -1;
}

.form-submit button:hover:before {
    left: 0;
}

.form-submit button .ico.arw,
.form-submit button .ico.arw::before,
.form-submit button .ico.arw::after {
    filter: brightness(0) invert(1) !important;
}

.form-submit button:hover {
    border-color: #000;
    transform: translateY(-2px);
}

.form-submit button:hover .ico.arw,
.form-submit button:hover .ico.arw::before,
.form-submit button:hover .ico.arw::after {
    filter: brightness(0) invert(1) !important;
}

@media screen and (max-width: 768px) {
    .form-submit button {
        padding: 18px 40px;
        font-size: 14px;
        width: 100%;
    }
}

/* Animation */
.fade-on {
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.6s ease-in-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Down Button */
.page_down_btn {
    text-align: center;
    margin: 50px 0;
}

.page_down_btn a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 2px solid #b92530;
    border-radius: 50%;
    position: relative;
    animation: bounce 2s infinite;
}

.page_down_btn a:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 10px;
    height: 10px;
    border-right: 2px solid #b92530;
    border-bottom: 2px solid #b92530;
    margin-top: -5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

/* Button Styles Override for Contact Page */
.contact-page .btn.btn01 {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #b92530;
    border: 2px solid #b92530;
    padding: 20px 50px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-page .btn.btn01:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000;
    transition: left 0.3s ease;
    z-index: -1;
}

.contact-page .btn.btn01:hover:before {
    left: 0;
}

.contact-page .btn.btn01 .ico.arw,
.contact-page .btn.btn01 .ico.arw::before,
.contact-page .btn.btn01 .ico.arw::after {
    filter: brightness(0) invert(1) !important;
}

.contact-page .btn.btn01:hover {
    border-color: #000;
    transform: translateY(-2px);
    color: #fff;
}

.contact-page .btn.btn01:hover .ico.arw,
.contact-page .btn.btn01:hover .ico.arw::before,
.contact-page .btn.btn01:hover .ico.arw::after {
    filter: brightness(0) invert(1) !important;
}

