@charset "utf-8";

/* ============================================================
   Contact Page Styles (Modernized)
   ============================================================ */

.contact-section {
    padding: 80px 0;
}

.contact-lead {
    text-align: center;
    margin-bottom: 60px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.contact-box {
    background: #fff;
    padding: clamp(40px, 8vw, 80px) 5%;
    border: 1px solid #eee;
    margin-bottom: 60px;
}

.contact-box:last-child {
    margin-bottom: 0;
}

.contact-title {
    text-align: center;
    margin-bottom: clamp(30px, 5vw, 50px);
}

.contact-title h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 500;
    margin-bottom: 0.2em;
    color: #333;
    letter-spacing: 0.05em;
}

.contact-title span {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    display: block;
}

.text-center {
    text-align: center;
}

/* --- TEL Section --- */
.tel-link {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(36px, 6vw, 56px);
    color: #333;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    transition: opacity 0.3s;
}

.tel-link:hover {
    opacity: 0.7;
}

.tel-link::before {
    content: "";
    margin-right: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23333' d='M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z'/%3E%3C/svg%3E"), url(../../img/free.png);
    width: 45px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: 40px auto, 60px auto;
    background-position: left center, right center;
}

/* --- MAIL Grid --- */
.contact-btn-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.contact-btn-grid .c-btn--about {
    font-size: clamp(16px, 1.8vw, 20px);
    padding: clamp(0.5em, 1vw, 0.8em) clamp(1em, 2vw, 1.5em);
    text-align: center;
}

@media (min-width: 576px) {
    .contact-btn-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contact-btn-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Showroom Section --- */
.showroom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .showroom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.showroom-box {
    text-align: center;
    padding: 20px;
    border: 1px solid #f5f5f5;
}

.showroom-box h3 {
    font-size: 18px;
    margin-bottom: 1em;
    color: #333;
}

.tel-link2 {
    font-size: 24px;
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5em 0;
    font-weight: 600;
}

.tel-link2::before {
    content: "";
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23333' d='M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.showroom-box span {
    font-size: 13px;
    color: #666;
}

/* --- After Maintenance --- */
.contact-aftermaintenance .btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.contact-aftermaintenance .c-btn--about {
    font-size: clamp(16px, 1.8vw, 20px);
    padding: clamp(0.5em, 1vw, 0.8em) clamp(1.5em, 3vw, 2em);
}

/* --- Custom Spacing --- */
.mt-0 { margin-top: 0 !important; }

/* --- Form Style Overrides (Centered Submit Button) --- */
.contact-box input[type="submit"],
.contact-box input[type="button"] {
    display: block;
    margin: 40px auto; /* 20px auto -> 40px auto for spacing */
    background: #000;
    color: #fff;
    border: none;
    /* Respect original size */
    width: 212px;
    padding: 1.6ex 0 1.8ex;
    font-size: 1rem;
    font-weight: normal; /* Original was normal/bold depending on context, reset to inherit or specific if needed. reform.css had standard font settings */
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ Pro W3", Meiryo, "メイリオ", sans-serif;
    border-radius: 6px;
    transition: opacity 0.3s;
    float: none !important; /* Force override any float */
}

.contact-box input[type="submit"]:hover,
.contact-box input[type="button"]:hover {
    opacity: 0.7;
}

/* Reset confirm/back button layout if needed */
.contact-box input[type="button"]#back {
    background: #666;
    margin-right: 20px; /* Keep margin for spacing if they wrap, but center logic handles block */
    /* If back button needs to be next to submit, we need flex. Assuming stacked or single mostly. */
    display: block; /* Stacked by default if block auto margin */
}

/* Flex wrapper for buttons if they are inside a common container */
.contact-box .submit-wrap {
    display: flex;
    justify-content: center;
    gap: 20px;
}
/* If buttons are direct siblings, Flexbox helps align them center side-by-side */
.contact-box input[type="button"]#back,
.contact-box input[type="submit"]#submit {
    display: inline-block;
    margin: 20px 10px;
    float: none !important;
}
.contact-box .con_submit {
    text-align: center; /* Helper for container */
}
