.contact-page {
    background: #fff;
}
.contact-form-wrapper{
    background: #efe8e9;
    padding-top: 2.5rem;
}

.contact-page > h1 {
    text-align: center;
    font-size: 40px;
    color: #995964;
    padding: 100px 0 80px;
    font-weight: 500;
    font-family: "Noto Sans Japanese", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.contact-hero {
    position: relative;
   
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0c1f37;
    height: 400px;
    width: 100%;
}

.contact-hero-image {
    position: absolute;
    inset: 0;
    overflow: hidden;

}

.contact-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-zoom-out {
    transform: scale(1.2);
    animation: contactHeroZoomOut 1.8s ease-out forwards;
}

@keyframes contactHeroZoomOut {
    0% {
        transform: scale(1.35);
    }

    100% {
        transform: scale(1);
    }
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 4%, rgba(0, 0, 0, 0.2) 26%, rgba(0, 0, 0, 0.4) 66%, rgba(0, 0, 0, 0.5) 100%);
    height: 400px;
    backdrop-filter: blur(0.5px);
}

.contact-hero-content {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(40px);
    animation: contactHeroTextUp 1.1s ease-out 0.35s forwards;
}

@keyframes contactHeroTextUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-hero-title {
    font-size: clamp(2.25rem, 4vw, 3rem);
    letter-spacing: 0.08em;
    color: #ab58644d;
}
.a-contact{
    color: #ffffff;
    text-decoration:underline;
}
.contact-hero-subtitle {
    font-size: 24.2px;
    line-height: 1.8;
    letter-spacing:2px
}

.contact-hero-items {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    margin-top: 1.5rem;
}

.contact-hero-item {
    width: 100%;
    max-width: 540px;
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

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

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

.contact-form-section {
    padding: 4rem 0 1rem 0;
    opacity: 0;
    transform: translateY(50px);
    animation: contactFormSlideUp 1.1s ease-out 0.8s forwards;
    max-width: 630px;
    margin: 0 auto;
}

.contact-form-section.contact-form-static {
    opacity: 1;
    transform: none;
    animation: none;
}

@keyframes contactFormSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form-section .form-label {
    color: #393939;
    font-size: 16px;
}

.contact-form-section .form-control,
.contact-form-section .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #c7d1df;
    background-color: #ffffff;
    color: #1f2a3c;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.contact-form-section .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23606f87' d='M6 8a.8.8 0 0 1-.57-.24l-5.2-5.4A.82.82 0 0 1 .78.25h10.44a.82.82 0 0 1 .57 1.41l-5.2 5.4A.8.8 0 0 1 6 8Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 8px;
}

.contact-form-section .choices {
    position: relative;
    width: 100%;
}

.contact-form-section .choices__inner {
    border-radius: 8px;
    border: 1px solid #c7d1df;
    background-color: #ffffff;
    color: #1f2a3c;
    padding: 0.55rem 1rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-section .choices.is-open {
    z-index: 1100;
}

.contact-form-section .choices__inner:hover,
.contact-form-section .choices.is-open .choices__inner,
.contact-form-section .choices__inner.is-focused {
    border-color: #e58393;
    box-shadow: 0 0 0 0.2rem rgba(55, 69, 67, 0.12);
}

.contact-form-section .choices__list--single {
    padding: 0;
}

.contact-form-section .choices__list--single .choices__item,
.contact-form-section .choices__placeholder {
    color: #6d7a93;
    font-size: 1rem;
}

.contact-form-section .choices[data-type*=select-one]::after {
    border: none;
    margin: 0;
    width: 12px;
    height: 8px;
    right: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23606f87' d='M6 8a.8.8 0 0 1-.57-.24l-5.2-5.4A.82.82 0 0 1 .78.25h10.44a.82.82 0 0 1 .57 1.41l-5.2 5.4A.8.8 0 0 1 6 8Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(0deg);
}

.contact-form-section .choices[data-type*=select-one].is-open::after {
    transform: rotate(180deg);
}

.contact-form-section .choices__list--dropdown {
    border: 1px solid #e5eaf2;
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(13, 31, 55, 0.12);
    margin-top: 0.5rem;
    width: 100%;
    z-index: 1050;
}

.contact-form-section .choices__list--dropdown .choices__item {
    padding: 0.65rem 1rem;
    border-radius: 8px;
    color: #000000;
    transition: border-color 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
}

.contact-form-section .choices__list--dropdown .choices__item--selectable.is-highlighted,
.contact-form-section .choices__list--dropdown .choices__item--selectable:hover {
    background-color: transparent;
    color: #000000;
    border-color: #e58393;
}

.contact-form-section .choices__list--dropdown .choices__placeholder {
    color: #98a3b8;
}

.contact-form-section .choices__list--dropdown .choices__item:not(:last-child) {
    margin-bottom: 0.25rem;
}

.contact-form-section .form-select::-ms-expand {
    display: none;
}

.contact-form-section .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 0.35rem;
    border: 1px solid #c7d1df;
    background-color: #ffffff;
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-section .form-check-input:focus {
    border-color: #e58393;
    box-shadow: 0 0 0 0.2rem rgba(55, 69, 67, 0.25);
    outline: none;
}

.contact-form-section .form-check-input:checked {
    background-color: #e58393;
    border-color: #e58393;
}

.contact-form-section .form-check-input:hover {
    border-color: #e58393;
}

.contact-form-section .form-control:focus,
.contact-form-section .form-select:focus {
    border-color: #e58393;
    box-shadow: 0 0 0 0.2rem rgba(55, 69, 67, 0.2);
    outline: none;
}

.contact-form-section .form-control:hover,
.contact-form-section .form-select:hover {
    border-color: #e58393;
}

.contact-form-section .btn-primary {
    border-radius: 6px;
    padding: 0.75rem 2.75rem;
    width: 100%;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.contact-form-section .btn-primary:hover {
    /* transform: translateY(0px); */
    background-color: #e18e9c !important;
}
/* 
.contact-form-section .btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    transform: translateX(-100%);
    transition: transform 0.45s ease;
    z-index: -1;
}

.contact-form-section .btn-primary:hover::after {
    transform: translateX(100%);
} */

.contact-gallery {
    background: #fff;
}

.contact-slider {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.contact-slider::before,
.contact-slider::after {
    display: none;
}

.contact-slider .slider-item {
    flex: 0 0 calc(25vw - clamp(8px, 1.5vw, 16px));
    max-width: calc(25vw - clamp(8px, 1.5vw, 16px));
    overflow: hidden;
    transition: transform 0.45s ease;
    flex: 0 0 373px;
    max-width: 373px;
    width: 373px;
}

.contact-slider .slider-item img {
    display: block;
    width: 100%;
    height: clamp(330px, 42vw, 480px);
    object-fit: cover;
    transition: transform 0.6s ease;
}

.contact-slider-track {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 12px);
    animation: contactSliderScroll 40s linear infinite;
    padding: 0 clamp(12px, 2vw, 32px);
    box-sizing: border-box;
}

.contact-slider-track:hover {
    animation-play-state: paused;
}

.contact-slider .slider-item:hover {
    transform: none;
}

.contact-slider .slider-item:hover img {
    transform: scale(1.05);
}

@keyframes contactSliderScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 991.98px) {
    .contact-hero {
        height: 400px;
        padding: 4rem 0 3rem;
    }

    .contact-hero-items {
        gap: 0.75rem;
    }

    .contact-form-section {
        padding: 2.5rem 2rem;
    }

    .contact-slider-track {
        gap: clamp(10px, 2.8vw, 18px);
        padding: 0 clamp(12px, 3.5vw, 28px);
    }

    .contact-slider .slider-item {
        flex: 0 0 calc(40vw - clamp(10px, 2.8vw, 18px));
        max-width: calc(40vw - clamp(10px, 2.8vw, 18px));
    }

    .contact-slider .slider-item img {
        height: clamp(260px, 45vw, 420px);
    }
}

@media (max-width: 575.98px) {
    /* .contact-page { padding-top: 5rem; } */

    .contact-hero-title {
        letter-spacing: 0.04em;
    }
    .contact-page > h1{
        padding: 36px 0 36px;
    }
    .contact-form-section {
        padding: 2rem 1.5rem;
    }

    .section-title{
        font-size: 27px;
        font-weight: 500;
    }

    .contact-hero-item {
        font-size: 0.9rem;
        width: 100%;
    }

    .contact-slider-track {
        gap: clamp(8px, 4vw, 16px);
        padding: 0 clamp(10px, 4.5vw, 22px);
        animation-duration: 20s; /* mobile: faster */
    }

    .contact-slider .slider-item {
        flex: 0 0 160px;
        max-width: 160px;
        width: 160px;
    }
    .contact-slider{
        padding: 0;
    }

    .quote-page #quoteForm,.contact-form-section .form-label,.contact-form-section .btn-primary{
        font-size: 14px !important;
    }
    .text-muted{
        font-size: 10px !important;
    }

    .contact-slider .slider-item img {
        width: 160px;
        height: 120px;
        object-fit: cover;
        object-position: center;
    }
    .contact-gallery{
        padding:2.7rem 0rem 2.7rem 0rem;
    }
}

.contact-form-message {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in;
}

.contact-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


.contact-submit{
    background-color: #E58393 ;
    color: white ;
    text-decoration: none ;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
    padding: 0.75rem 2.35rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.05em;
    overflow: hidden;
    margin: 2rem 0 3.5rem 0;
    z-index: 1;
}


.contact-submit:hover,
.contact-submit:focus {
    background-color: #E58393 !important;
    color: white !important;
}

/* 鼠标悬停时的浅色遮罩滑动效果 */
.contact-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
     transform: translateX(-100%); /* 初始位置：从左侧完全隐藏 */
    background-color: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
     z-index: -1;
}

.contact-submit:hover::before {
    left: 100%;
    transform: translateX(0);
}