/* Contact Form Styles */
/* コンタクトフォーム用スタイル */

/* Section Styles */
.contact-section {
    padding: 0;
    width: 100%;
}

.contact-top-section {
    padding-top: 0;
}

.contact-section-boxed {
    max-width: 800px;
    margin: 0 auto;
}

.contact-section-height-default {
    min-height: auto;
}

.contact-section + .contact-section {
    padding-top: 0;
}

/* Container Styles */
.contact-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.contact-column-gap-default {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Column Styles */
.contact-column {
    display: flex;
    flex-direction: column;
}

.contact-col-100 {
    width: 100%;
    flex: 0 0 100%;
}

.contact-top-column {
    margin-bottom: 0;
}

/* Widget Styles */
.contact-widget-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-element-populated {
    padding: 0;
}

.contact-widget {
    margin-bottom: 0;
}

.contact-widget-container {
    padding: 5px 0;
}

.contact-widget-heading {
    text-align: center;
}

.contact-element-13c4990.contact-widget-heading {
    text-align: right;
}

.contact-element-subtitle .contact-widget-container {
    padding: 0 0 15px 0;
}

/* Heading Styles */
.contact-heading-title {
    font-family: "Noto Sans JP", Sans-serif;
    color: #120A0A;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

.contact-heading-title.contact-size-default {
    font-size: 20px;
}

.contact-widget-heading h1.contact-heading-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-widget-heading h2.contact-heading-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-heading-subtitle {
    font-family: "Noto Sans JP", Sans-serif;
    color: #120A0A;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.contact-widget-heading p.contact-heading-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-widget-heading p.contact-heading-title a {
    color: #120A0A;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-widget-heading p.contact-heading-title a:hover {
    color: #007cba;
}

/* Element Utilities */
.contact-element {
    position: relative;
}

/* Form Wrapper */
.contact-form-fields-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Error Messages */
.contact-error-messages {
    background-color: #fee;
    border: 2px solid #dc3545;
    border-radius: 5px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.contact-error-messages ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.contact-error-messages li {
    color: #dc3545;
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

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

.contact-labels-above {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Field Groups */
.contact-field-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-column {
    width: 100%;
}

.contact-col-100 {
    width: 100%;
}

/* Field Labels */
.contact-field-label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* Required Field Indicator */
.contact-field-required .contact-field-label::after {
    content: " *";
    color: #dc3545;
    font-weight: 700;
}

.contact-mark-required {
    position: relative;
}

/* Input Fields */
.contact-field {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-field:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.contact-field::placeholder {
    color: #999;
}

.contact-field-textual {
    font-family: inherit;
}

.contact-size-sm {
    font-size: 0.95rem;
}

/* Radio and Checkbox Groups */
.contact-field-subgroup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.contact-subgroup-inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}

.contact-field-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-field-option input[type="radio"],
.contact-field-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007cba;
}

.contact-field-option label {
    font-size: 0.95rem;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    margin: 0;
}

.contact-field-option:hover label {
    color: #007cba;
}

/* Field Type Specific Styles */
.contact-field-type-text,
.contact-field-type-email,
.contact-field-type-tel {
    margin-bottom: 4px;
}

.contact-field-type-radio,
.contact-field-type-checkbox {
    margin-bottom: 4px;
}

/* Submit Button */
.contact-field-type-submit {
    margin-top: 16px;
}

.e-form__buttons {
    display: flex;
    justify-content: center;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background-color: #297842;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.contact-button:hover {
    background-color: #1f5a32;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 120, 66, 0.3);
}

.contact-button:active {
    transform: translateY(0);
}

.contact-size-md {
    padding: 14px 40px;
    font-size: 1.1rem;
}

.contact-button-icon {
    display: inline-block;
    margin-right: 4px;
}

.contact-button-text {
    display: inline-block;
}

/* Validation States */
.contact-field:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.contact-field:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

.contact-field:required:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-section {
        padding: 0;
    }
    
    .contact-top-section {
        padding-top: 0;
    }
    
    .contact-container {
        padding: 0 20px;
    }
    
    .contact-widget-heading h1.contact-heading-title {
        font-size: 18px;
    }
    
    .contact-widget-heading h2.contact-heading-title {
        font-size: 18px;
    }
    
    .contact-widget-heading p.contact-heading-title {
        font-size: 18px;
    }
    
    .contact-heading-subtitle {
        font-size: 15px;
    }
    
    .contact-form-fields-wrapper {
        padding: 30px 15px;
    }
    
    .contact-labels-above {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .contact-section {
        padding: 0;
    }
    
    .contact-top-section {
        padding-top: 0;
    }
    
    .contact-container {
        padding: 0 15px;
    }
    
    .contact-widget-wrap {
        gap: 0;
    }
    
    .contact-element-populated {
        padding: 0;
    }
    
    .contact-widget-heading h1.contact-heading-title {
        font-size: 16px;
    }
    
    .contact-widget-heading h2.contact-heading-title {
        font-size: 16px;
    }
    
    .contact-widget-heading p.contact-heading-title {
        font-size: 16px;
    }
    
    .contact-heading-subtitle {
        font-size: 14px;
    }
    
    .contact-form-fields-wrapper {
        padding: 20px 10px;
    }
    
    .contact-labels-above {
        gap: 18px;
    }
    
    .contact-field-label {
        font-size: 0.95rem;
    }
    
    .contact-field {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .contact-subgroup-inline {
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-button {
        width: 100%;
        min-width: unset;
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .contact-size-md {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Accessibility */
.contact-field:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.contact-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Loading State */
.contact-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #6c757d;
}

.contact-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Confirm Page Styles */
.contact-confirm-title {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.contact-confirm-title h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 12px;
}

.contact-confirm-title p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.contact-confirm-value {
    padding: 12px 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.contact-confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #ddd;
}

.contact-button-secondary {
    background-color: #6c757d;
}

.contact-button-secondary:hover {
    background-color: #5a6268;
}

/* Responsive for Confirm Page */
@media (max-width: 767px) {
    .contact-confirm-title h2 {
        font-size: 1.5rem;
    }
    
    .contact-confirm-title p {
        font-size: 0.9rem;
    }
    
    .contact-confirm-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-confirm-buttons form {
        width: 100%;
    }
    
    .contact-confirm-buttons .contact-button {
        width: 100%;
    }
}

/* Complete Page Styles */
.contact-complete-message {
    text-align: center;
    padding: 60px 20px;
}

.contact-complete-icon {
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-complete-message h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.contact-complete-message p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
}

.contact-complete-buttons {
    margin-top: 40px;
}

.contact-complete-buttons .contact-button {
    display: inline-flex;
}

/* Responsive for Complete Page */
@media (max-width: 767px) {
    .contact-complete-message {
        padding: 40px 15px;
    }
    
    .contact-complete-message h2 {
        font-size: 1.5rem;
    }
    
    .contact-complete-message p {
        font-size: 1rem;
    }
    
    .contact-complete-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .contact-complete-buttons .contact-button {
        width: 100%;
    }
}
