/* お問い合わせフォーム専用スタイル */
.access-map-googlemap {
    width: 100%;
    aspect-ratio: 16/9;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background-color: #fff;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

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

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-checkbox label {
    cursor: pointer;
}

.form-submit {
    margin-top: 2rem;
    text-align: center;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #718096;
}

.form-error {
    display: none;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #e53e3e;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #e53e3e;
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-input.error+.form-error,
.form-select.error+.form-error,
.form-textarea.error+.form-error {
    display: block;
}

.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

.form-progress-step {
    position: relative;
    flex: 1;
    text-align: center;
    padding-bottom: 1.5rem;
}

.form-progress-step::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #e2e8f0;
}

.form-progress-step.active::before {
    background-color: #4f46e5;
}

.form-progress-step.completed::before {
    background-color: #48bb78;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.form-required {
    color: #e53e3e;
    margin-left: 0.25rem;
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    background-color: #f0fff4;
    border-radius: 0.375rem;
    border: 1px solid #c6f6d5;
}

.form-success-icon {
    display: block;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: #48bb78;
}

.form-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2f855a;
}

.form-success-message {
    margin-bottom: 1.5rem;
    color: #2f855a;
}

/* FAQ スタイル改善 */
.contact-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-image: url('/assets/img/contact-hero.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1rem;
}

.contact-hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.contact-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}


.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 2.5rem;
    background-color: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-question h3::before {
    font-size: 22px;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    display: block;
    content: 'Q.';
    color: #bf3232;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-question-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    margin-left: 1rem;
    color: #3182ce;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    background-color: #f8fafc;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.faq-answer p::before {
    font-size: 22px;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    display: block;
    content: 'A.';
    font-weight: bold;
    color: #3285bf;
}

.faq-question[aria-expanded="true"]+.faq-answer {
    max-height: 500px;
    padding: 1.25rem 1.5rem 1.25rem 2.5rem;
    border-top: 1px solid #e2e8f0;
}

.faq-answer p {
    margin: 0 0 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ol {
    margin: 0.5rem 0 1rem 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

/* カード改善 */
.contact-card-footer {
    display: flex;
    justify-content: center;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.contact-card-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    padding: 0.75rem;
    background-color: #f0f9ff;
    border-radius: 50%;
    color: #3182ce;
}

.contact-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-card-content {
    flex: 1;
    text-align: center;
}

/* アクセスマップ改善 */
.access-map {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.access-info {
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}

.access-info h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.access-info ul {
    margin: 0;
    padding-left: 1.5rem;
}

.access-info li {
    margin-bottom: 0.5rem;
}

.access-info ul li::marker {
    color: #ff750b;
}

.access-info li:last-child {
    margin-bottom: 0;
}

/* Form Section 3: Confirmation Screen Styles */
.form-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-section h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.form-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Confirmation Box */
.confirmation-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.confirmation-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.confirmation-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.confirmation-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.confirmation-value {
    font-size: 1rem;
    color: #2d3748;
    line-height: 1.6;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    min-height: 45px;
    display: flex;
    align-items: center;
    word-break: break-word;
}

.confirmation-value:empty::before {
    content: '-';
    color: #a0aec0;
}

/* Form Group for Checkbox */
.form-group {
    margin-bottom: 2rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-checkbox:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #667eea;
}

.form-checkbox label {
    font-size: 0.95rem;
    color: #4a5568;
    cursor: pointer;
    line-height: 1.5;
    margin: 0;
}

.form-checkbox label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.form-checkbox label a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.form-required {
    color: #e53e3e;
    font-weight: 600;
    margin-left: 0.25rem;
}



/* Responsive Design */
@media (max-width: 768px) {
    .form-section {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 8px;
    }

    .form-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .confirmation-box {
        padding: 1rem;
    }

    .confirmation-item {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .confirmation-label {
        font-size: 0.8rem;
    }

    .confirmation-value {
        font-size: 0.9rem;
        padding: 0.625rem 0.75rem;
        min-height: 40px;
    }

    .form-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .form-checkbox {
        padding: 0.875rem;
    }

    .form-checkbox label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 1rem;
        margin: 0.5rem;
    }

    .form-section h3 {
        font-size: 1.25rem;
    }

    .confirmation-box {
        padding: 0.75rem;
    }

    .contact-card-icon {
        margin: 1rem auto 1rem;
    }

    .contact-card-content {
        margin: 0 1rem 1rem 1rem;
    }

    .contact-card-content p {
        font-size: 0.75rem;
    }
}