/* ==========================================================================
   Contact Us Page Styles (お問い合わせページ)
   VALLEYHILL Corporate Website
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.contact-us-page {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #353535;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Main Container
   -------------------------------------------------------------------------- */
.contact-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 72px;
    padding: 50px 0 80px;
    box-sizing: border-box;
}

@media (max-width: 899px) {
    .contact-main {
        margin-top: 48px;
        padding: 50px 0 48px;
    }
}

.contact-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 48px;
}

@media (max-width: 899px) {
    .contact-container {
        padding: 0 20px 0;
    }
}

/* --------------------------------------------------------------------------
   Title & Subtitle Header
   -------------------------------------------------------------------------- */
.contact-header {
    text-align: center;
    margin: 0;
}

.contact-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 5rem;
    letter-spacing: -0.005rem;
    color: #353535;
    margin: 0;
}

.contact-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: #353535;
    margin: 12px 0 0;
}

@media (max-width: 899px) {
    .contact-title {
        font-size: 1.8rem;
        font-weight: 900;
        line-height: 3rem;
        letter-spacing: -0.005rem;
    }

    .contact-subtitle {
        font-size: 1rem;
        margin-top: 8px;
    }
}

/* --------------------------------------------------------------------------
   Contact Cards (Phone, Fax, Email)
   -------------------------------------------------------------------------- */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 48px 0;
    width: 100%;
}

@media (max-width: 1199px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 24px 0;
    }
}

.contact-card {
    background-color: #353535;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.contact-card-icon img {
    width: 60px;
    height: 60px;
    display: block;
}

.contact-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.contact-card-label {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.334;
    color: #ffffff;
    margin: 0;
}

.contact-card-value {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
    text-decoration: none;
    word-break: break-all;
    margin-top: 4px;
}

a.contact-card-value:hover {
    text-decoration: underline;
}

@media (max-width: 899px) {
    .contact-card {
        padding: 16px 20px;
        gap: 20px;
    }

    .contact-card-icon {
        width: 40px;
        height: 40px;
    }

    .contact-card-icon img {
        width: 40px;
        height: 40px;
    }

    .contact-card-label {
        font-size: 1.25rem;
    }

    .contact-card-value {
        font-size: 1rem;
    }
}

/* --------------------------------------------------------------------------
   Office Location Cards (本社、営業所、ヤード)
   -------------------------------------------------------------------------- */
.office-cards-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.office-card {
    border: 1px solid #A0A0A0;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 380px;
    margin: 0;
    box-sizing: border-box;
    scroll-margin-top: 100px;
    background-color: #ffffff;
}

.office-card-info {
    background-color: #353535;
    color: #ffffff;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    border-radius: 24px 0 0 24px;
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.office-card-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.office-card-location-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: block;
}

.office-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.334;
    color: #ffffff;
    margin: 0;
}

.office-card-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    margin: 8px 0;
    width: 100%;
}

.office-card-address {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
    word-break: break-word;
}

.office-card-map {
    flex: 1;
    min-height: 380px;
    border-radius: 0 24px 24px 0;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
}

.office-card-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.office-map-link {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    background-color: #ffffff;
    color: #1976d2;
    border: 1px solid #1976d2;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.office-map-link:hover {
    background-color: #1976d2;
    color: #ffffff;
}

@media (max-width: 899px) {
    .office-card {
        flex-direction: column;
        min-height: auto;
    }

    .office-card-info {
        flex: auto;
        max-width: 100%;
        width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 32px 24px;
    }

    .office-card-location-icon {
        width: 40px;
        height: 40px;
    }

    .office-card-title {
        font-size: 1.25rem;
    }

    .office-card-address {
        font-size: 0.9375rem;
    }

    .office-card-map {
        width: 100%;
        height: 420px;
        min-height: 420px;
        border-radius: 0 0 24px 24px;
    }

    .office-card-map iframe {
        height: 420px;
    }
}

/* --------------------------------------------------------------------------
   Contact Form Section (お問い合わせ)
   -------------------------------------------------------------------------- */
.corp-contact-section {
    width: 100%;
    margin: 0 0 40px;
    box-sizing: border-box;
}

.corp-contact-iframe {
    width: 100%;
    height: 1100px;
    border: none;
    overflow: hidden;
    display: block;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

@media (max-width: 768px) {
    .corp-contact-iframe {
        height: 1250px;
    }
}

/* --------------------------------------------------------------------------
   Scroll to Top Floating Button
   -------------------------------------------------------------------------- */
.top-scroll-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E6232A;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease;
}

.top-scroll-btn:hover {
    background-color: #c91c22;
    transform: translateY(-2px);
}

.top-scroll-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.top-scroll-btn.invisible {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
