/* ========================================
   Contact Page Styles
   ======================================== */

.contact-page {
    background: #fff;
    padding-bottom: 120px;
    font-family: 'YuGothic', 'Yu Gothic', 'Hiragino Sans', Meiryo, sans-serif;
}

.contact-hero {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 140px 0 60px;
}

.contact-hero-wrap {
    position: relative;
    width: 1196px;
    max-width: calc(100% - 30px);
    height: 260px;
    border-radius: 10px;
    overflow: hidden;
}

.contact-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    letter-spacing: 0.4em;
    color: #fff;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.contact-progress-section {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.contact-progress {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-progress-step {
    position: relative;
    min-width: 180px;
    height: 52px;
    border: 2px solid #f4f4f4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #000;
    background: #fff;
    text-align: center;
}

.contact-progress-step::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    background: #d9d9d9;
}

.contact-progress-step:last-child::after {
    display: none;
}

.contact-progress-step.is-active {
    background: #ff6632;
    border-color: #ff6632;
    color: #fff;
}

.contact-progress-step.is-active::after {
    background: #ff6632;
}

.contact-form-section {
    padding: 0 20px;
}

.contact-form-card {
    max-width: 780px;
    margin: 0 auto;
    border: 1px solid #000;
    border-radius: 20px;
    padding: 48px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.contact-form-header {
    text-align: center;
    margin-bottom: 36px;
}

.contact-form-en {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #000;
}

.contact-form-header h2 {
    font-size: 20px;
    line-height: 1.8;
    margin: 0;
}

.contact-field {
    margin-bottom: 28px;
}

.contact-field-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-field-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff6632;
    flex-shrink: 0;
}

.contact-required-badge {
    background: #ff6632;
    color: #fff;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 500;
}

.contact-field-description {
    font-size: 13px;
    color: #000;
    margin: 0 0 12px;
}

.contact-input-control {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #d9d9d9;
    padding: 12px 16px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f4f4f4;
}

.contact-input-control:focus {
    border-color: #ff6632;
    box-shadow: 0 0 0 3px rgba(255, 102, 50, 0.15);
    outline: none;
    background: #fff;
}

.contact-input-control.is-readonly {
    background: #fff;
    color: #d9d9d9;
}

.contact-select-wrapper {
    position: relative;
}

.contact-select-wrapper select {
    appearance: none;
    background: #fff;
    cursor: pointer;
    padding-right: 40px;
}

.contact-select-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 10px;
    height: 10px;
    pointer-events: none;
    transform: translateY(-50%);
}

.contact-select-icon::before,
.contact-select-icon::after {
    content: '';
    display: block;
    width: 8px;
    height: 6px;
    background: currentColor;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.contact-select-icon::after {
    margin-top: 4px;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.contact-textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form-actions {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.contact-submit {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.contact-submit span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 240px;
    height: 50px;
    border-radius: 50px;
    background: #ff6632;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 0 0 #0d0300;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.contact-submit svg {
    margin-left: 6px;
}

.contact-submit span::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    border: 2px solid transparent;
}

.contact-submit:hover span {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 0 #0d0300;
}

.contact-submit:active span {
    transform: translateY(2px);
    box-shadow: 0 2px 0 0 #0d0300;
}

.contact-confirm-card {
    padding-top: 32px;
}

.contact-confirm-note {
    font-size: 14px;
    color: #555;
    margin-top: 12px;
}

.contact-summary-list {
    margin: 0;
    padding: 0;
    border-top: 2px solid #f4f4f4;
}

.contact-summary-item {
    display: flex;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 2px solid #f4f4f4;
}

.contact-summary-item dt {
    min-width: 160px;
    font-weight: 700;
    margin: 0;
}

.contact-summary-item dd {
    flex: 1;
    margin: 0;
    line-height: 1.8;
}

.contact-empty-value {
    color: #b0b0b0;
}

.contact-confirm-actions {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-secondary-btn {
    min-width: 220px;
    height: 48px;
    border-radius: 50px;
    border: 1px solid #000;
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000;
}

.contact-secondary-btn:hover {
    background: #f4f4f4;
}

.contact-finalize-form {
    display: inline-flex;
}

.contact-page--complete .contact-form-card {
    text-align: center;
}

.contact-complete-title {
    font-size: 22px;
    margin-bottom: 16px;
}

.contact-complete-message {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-complete-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 48px;
    padding: 0 24px;
    border-radius: 50px;
    border: 1px solid #000;
    text-decoration: none;
    color: #000;
    font-weight: 700;
    transition: background 0.2s ease;
    background: #fff;
    cursor: pointer;
}

.contact-cta-link:hover {
    background: #f4f4f4;
}

/* ステップの表示/非表示 */
.contact-step {
    display: none;
}

.contact-step.is-active {
    display: block;
}

@media (max-width: 992px) {
    .contact-progress {
        flex-direction: column;
        width: 100%;
    }

    .contact-progress-step {
        width: 100%;
    }

    .contact-progress-step::after {
        right: 50%;
        top: auto;
        bottom: -20px;
        transform: translate(50%, 0) rotate(90deg);
    }

    .contact-progress-step:last-child::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 0 40px;
    }

    .contact-hero-wrap {
        height: 220px;
    }

    .contact-hero-title {
        font-size: 24px;
        letter-spacing: 0.25em;
    }

    .contact-form-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .contact-field-label {
        flex-wrap: nowrap;
    }
}