/*
Theme Name: Hakuba Villa
Theme URI: https://example.com
Author: Wei-Ting Lin
Author URI: https://example.com
Description: Custom theme for Hakuba Villa
Version: 1.0
*/

body {
    font-family: 'Marcellus', 'Noto Serif JP', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eae3da;
    font-size: 15px;
}

p {
    line-height: 2;
}

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

h2 {
    color: #707070;
    font-size: 50px;
}

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

/* 📌 Header (包含 Logo & Menu) */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    padding-left: 10px;
    margin-top: 8px;
}

.logo > img {
    max-width: 100%;
}

.nav-links {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.86);
    padding: 40px 16px 24px;
    border-radius: 0 0 62px 0;
}

.nav-links.active {
    display: block;
}

.nav-links ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-inline-start: 10px;
}

.nav-links ul li {
    display: block;
}

.nav-links ul li a {
    text-decoration: none;
    color: #3b3939;
    font-size: 13px;
}

.nav-links ul li a:hover {
    color: #f9a826;
}

.reservation-btn {
    position: absolute;
    top: 45px;
    right: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #9b1e1e, #2a0d0d); /* 暗紅漸層 */
    color: white;
    padding: 18px 34px;
    border-radius: 999px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.reservation-btn:hover {
    opacity: 0.85;
}

.reservation-btn .icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

/* 📌 Hero Image */
.hero_img {
    width: 100%;
    height: auto;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}

.hero_img2 {
    width: 100%;
    height: auto;
}

/* 📌 About Section */
.message {
    display: flex;
    padding: 180px 0;
    align-items: center;
}

.message .text {
    flex-basis: 50%;
    flex-grow: 0;
}

.message .text-box {
    width: 425px;
    max-width: 90%;
    text-align: left;
    margin: 0 auto;
}

.message .text h1{
    font-size: 36px;
    font-weight: normal;
    margin: 25px 0 65px;
}

.message .text small {
    display: block;
    font-size: 13px;
    color: #707070;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.message .carousel {
    flex-basis: 50%;
    flex-grow: 0;
    max-width: 100%;
    overflow: hidden;
}

.message .carousel-track {
    display: flex;
    gap: 20px;
    will-change: transform;
}

.message  .carousel-track img {
    width: 565px;
    height: 424px;
    object-fit: cover;
    flex-shrink: 0;
}

/* 📌 Intro Section */
.intro {
    position: relative;
    background: url('./img/intro_bg.webp');
    padding: 160px 0 70px;
    text-align: center;
}

.intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55); /* 背景變暗 */
    z-index: 1;
}

.intro-overlay {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
    color: white;
    overflow-x: hidden;
    text-align: center;
}

.intro-overlay p {
    font-size: 15px;
    line-height: 2;
    max-width: 425px;
    margin: 0 auto 300px;
    padding: 0 20px;
}

.intro-images {
    width: 1440px;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin: 0 auto 60px;
}

.intro-images img {
    height: fit-content;
    object-fit: cover;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.intro-images img.up {
    transform: translateY(-25%);
}

.intro-images img.down {
    transform: translateY(25%);
}

.intro-btn {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #3b3939;
    padding: 32px 48px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 19px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    gap: 10px;
}

.intro-btn:hover {
    color: #f9a826;
}

.intro-btn .long-arrow {
    position: relative;
    width: 70px; /* 箭頭長度 */
    height: 0;
    background-color: #707070;
    transition: background-color 0.3s ease;
}

.intro-btn .long-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    border-top: 1px solid #707070;
    border-right: 1px solid #707070;
    transition: border-color 0.3s ease;
}

.intro-btn:hover .long-arrow {
    background-color: #f9a826;
}

.intro-btn:hover .long-arrow::after {
    border-color: #f9a826;
}


/* 📌 Stay Section */
.stay {
    padding: 180px 0;
}

.stay-content {
    margin-left: 250px;
}

.stay-text {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 20px;
}

.stay-text h2 {
    margin: 0;
    margin-right: 200px;
}

.stay-text p {
    max-width: 425px;
    margin: 0;
}

.stay-sm-text {
    display: none;
    font-size: 13px;
    margin: 32px 30px 0 125px;
}


.stay .carousel {
    width: 100%;
    overflow: hidden;
}

.stay .carousel-track {
    display: flex;
    gap: 20px;
    will-change: transform;
}

.stay .carousel-track img {
    width: 858px;
    height: 576px;
    object-fit: cover;
    flex-shrink: 0;
}

.stay-action {
    width: 100%;
    text-align: center;
}

.stay-btn {
    display: inline-flex;
    align-items: center;
    background: #485F36;
    color: white;
    padding: 32px 48px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 19px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    gap: 10px;
    margin-top: 68px;
}

.stay-btn:hover {
    background: white;
    color: #485F36;
}

.stay-btn .long-arrow {
    position: relative;
    width: 70px; /* 箭頭長度 */
    height: 0;
    background-color: white;
    transition: background-color 0.3s ease;
}

.stay-btn .long-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    border-top: 1px solid white;
    border-right: 1px solid white;
    transition: border-color 0.3s ease;
}

.stay-btn:hover .long-arrow {
    background-color: #485F36;
}

.stay-btn:hover .long-arrow::after {
    border-color: #485F36;
}

/* 📌 Facilities Section */
.facilities {
    position: relative;
    background: url('./img/intro_bg.webp');
    text-align: center;
}

.facilities-overlay {
    background-color: rgba(72, 95, 54, 0.85); /* ✅ 深綠 + 透明度 */
    width: 100%;
    height: 100%;
    padding: 110px 0;
    color: white;
}

.facilities h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: normal;
}

.facilities .subtitle {
    font-size: 20px;
    margin: 0 0 40px;
}

.facility-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 110px;
    align-items: center;
}

.facility-image {
    flex: 5.5;
}

.facility-image img {
    width: 100%;
    height: auto;
    display: block;
}

.facility-text {
    flex: 4.5;
    font-size: 15px;
    line-height: 2;
    text-align: left;
}

.facility-icon-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.facility-icon-row svg {
    width: 20px;
    height: 20px;
    fill: white;
    flex-shrink: 0;
}

.facility-icon-row span {
    font-size: 15px;
    line-height: 1.6;
}

.facilities-description h3 {
    margin: 0;
    font-weight: normal;
}

.facilities-btn {
    background: white;
    color: #707070;
    padding: 32px 60px;
    font-size: 19px;
    border-radius: 99px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin-top: 80px;
}

.facilities-btn:hover {
    color: #f9a826;
}

/* 📌 Access Section */
.access h2 {
    margin-left: 17%;
}

.access-content {
    display: flex;
    justify-content: space-evenly;
    margin-top: 50px;
}

.access-text {
    max-width: 425px;
    margin: 0;
}

.access-text h3 {
    width: 100%;
    font-size: 24px;
    font-weight: normal;
}

.access-text p {
    margin: 20px 0 80px;
}

.access-sm-text {
    display: none;
    padding: 15px 20px 0;
}

.access-sm-text h3 {
    background-color: #485F36;
    color: white;
    display: inline-block;
    padding: 5px 10px;
    margin-block-end: 5px;
}

/* 📌 Travel Section */
.travel {
    padding: 180px 0 200px;
}

.travel h2{
    text-align: center;
}

.travel .carousel {
    width: 100%;
    overflow: hidden;
}

.travel-carousel {
    display: flex;
    gap: 20px;
    will-change: transform;
    padding: 100px 0;
}

.travel-slide {
    position: relative;
    width: 386px;
    height: 468px;
    scroll-snap-align: center;
    flex-shrink: 0;
    color: white;
}

.travel-slide-box {
    display: flex;
}

.travel-slide-left {
    width: 326px;
}

.travel-slide img {
    width: 100%;
}

.travel-slide-text {
    padding: 50px 64px 0 40px;
}

.travel-slide h3 {
    writing-mode: vertical-rl;
    font-size: 28px;
    letter-spacing: 10px;
    padding: 36px 15px 0;
    margin: 0;
    line-height: 1;
}

.travel-slide h4 {
    font-size: 22px;
    margin: 0 0 20px;
}

.travel-slide p {
    font-size: 15px;
    line-height: 1.8;
}

/* 可依不同 slide 設背景色系強調差異 */
.slide1 {
    background-color: #375d74;
    transform: translateY(10%);
}

.slide2 {
    background-color: #627b4e;
    transform: translateY(-10%);
}

.slide3 {
    background-color: #965353;
    transform: translateY(10%);
}

.slide4 {
    background-color: #8e6c35;
    transform: translateY(-10%);
}

/* 📌 Footer */
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: black;
    color: white;
    padding: 55px 120px;
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    flex-wrap: wrap;
}

.footer-left {
}

.footer-logo {
    font-family: 'Marcellus', serif;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.footer-left p {
    line-height: 1.8;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.footer-links a {
    color: white;
    font-size: 13px;
    text-decoration: underline;
}

.footer-links a:hover {
    color: #f9a826;
}

.footer-right {
    text-align: right;
    font-size: 12px;
    margin-top: auto;
}

footer a:hover {
    color: #f9a826;
}

/* 📌 📱 響應式設計 (手機版) */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }

    h2 {
        font-size: 25px;
    }

    .sm-none {
        display: none;
    }

    .nav-links {
        width: 150px;
        padding: 18px 10px;
        border-radius: 0 0 31px 0;
    }

    .nav-links ul li {
        display: block;
    }

    .nav-list.active {
        display: block;
    }

    .reservation-btn {
        top: 20px;
        right: 10px;
        padding: 16px 28px;
    }

    .hero {
        position: relative;
        overflow: hidden;
        height: 780px; /* 手機版高度固定 */
    }

    .hero2 {
        position: relative;
        overflow: hidden;
        height: 472px;
    }

    .hero_img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    }

    .hero_img2 {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    /* 📌 Message Section */
    .message {
        flex-direction: column;
        padding: 100px 0;
        gap: 30px;
    }

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

    .message .text h1{
        font-size: 23px;
        margin: 18px 0 24px;
    }

    .message .carousel {
        width: 100%;
    }

    .message .carousel-track {
        gap: 12px;
    }

    .message .carousel-track img {
        width: 290px;
        height: auto;
    }

    /* 📌 Intro Section */
    .intro {
        padding: 80px 0 60px;
    }

    .intro-images {
        margin: 0 auto 40px;
        transform: translateX(-10%);
    }

    .intro-overlay p {
        font-size: 13px;
        margin: 0 auto 90px;
        max-width: 65%;
    }

    .intro-btn {
        font-size: 10px;
        padding: 16px 24px;
    }

    .intro-btn .long-arrow {
        width: 35px;
    }

    .intro-btn .long-arrow::after {
        width: 6px;
        height: 6px;
    }

    /* 📌 Stay Section */
    .stay {
        padding: 100px 0;
    }

    .stay-content {
        margin-left: 0;
    }

    .stay-text {
        justify-content: end;
    }

    .stay-text p {
        display: none;
    }

    .stay-text h2 {
        margin-right: 30px;
    }

    .stay-sm-text {
        display: block;
    }

    .stay .carousel-track img {
        width: 429px;
        height: 288px;
    }

    .stay-btn {
        font-size: 10px;
        padding: 16px 24px;
        margin-top: 22px;
    }

    .stay-btn .long-arrow {
        width: 35px;
    }

    .stay-btn .long-arrow::after {
        width: 6px;
        height: 6px;
    }

    /*.stay-btn {*/
    /*    font-size: 10px;*/
    /*    margin-left: 125px;*/
    /*}*/

    /*.stay-btn .long-arrow {*/
    /*    width: 35px;*/
    /*}*/

    /*.stay-btn .long-arrow::after {*/
    /*    width: 6px;*/
    /*    height: 6px;*/
    /*}*/

    /* 📌 Facilities Section */
    .facility-container {
        flex-direction: column;
        padding: 0 20px;
        gap: 20px;
    }

    .facility-image, .facility-text {
        flex: unset;
    }

    .facility-text {
        margin-top: 30px;
    }

    .facilities .subtitle {
        font-size: 10px;
    }

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

    .facilities-description h3 {
        display: inline-block;
        border: 1px solid white;
        padding: 2px 15px;
        margin: 35px 0 10px;
    }

    .facilities-btn {
        font-size: 14px;
        padding: 16px 24px;
        margin-top: 40px;
    }

    /* 📌 Access Section */
    .access h2 {
        margin-left: unset;
        text-align: center;
        margin-top: 50px;
    }

    .access-content {
        display: block;
        padding: 0 20px;
    }

    .access-img {
        width: 100%;
        height: auto;
    }

    .access-text {
        font-size: 13px;
    }

    .access-text p {
        margin: 20px 0;
        line-height: 2;
    }

    .access-text h3 {
        font-size: 18px;
        margin: 30px 0 10px;
    }

    .access-sm-text {
        display: block;
    }

    /* 📌 Travel Section */
    .travel {
        padding: 60px 0 100px;
    }

    .travel-carousel {
        padding: 25px 0;
    }

    .travel-slide {
        transform: translateY(0);
        zoom: .5
    }


    /* 📌 Footer */
    .site-footer {
        flex-direction: column;
        text-align: left;
        padding: 30px 35px;
    }

    .footer-left,
    .footer-right {
        max-width: 100%;
        margin: 10px 0;
    }

    .footer-links {
        flex-direction: column;
        justify-content: left;
        gap: 8px;
        font-size: 11px;
        margin-top: 25px;
    }

    .footer-right {
        font-size: 9px;
    }
}

.mobile-fullmenu {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #eae3da;
    padding: 40px 30px;
    box-sizing: border-box;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
}

.mobile-fullmenu.active {
    transform: translateX(0);
}

.fullmenu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.fullmenu-logo {
    height: 40px;
}

.fullmenu-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.fullmenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fullmenu-list li a {
    text-decoration: none;
    font-size: 20px;
    color: #333;
    font-weight: bold;
}



/* contact page 表單基本樣式 */
.contact-page {
    max-width: 960px;
    width: 100%;
    margin: 180px auto;
}

.contact-page h1 {
    font-size: 36px;
    margin: 0;
    font-weight: normal;
}

.contact-page h3 {
    font-size: 30px;
    margin: 0 0 80px;
    font-weight: normal;
}

input, textarea {
    width: 100%;
    padding: 23px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.name-fields {
    display: flex;
    gap: 28px;
    justify-content: space-between;
}

.step-buttons {
    margin-top: 80px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #485F36;
    padding: 28px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 19px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    gap: 10px;
    cursor: pointer;
    border: 1px solid #485F36;
    min-width: 250px;
}

.contact-btn:hover {
    background-color: #3d4f20;
    color: white;
}

.contact-btn .long-arrow {
    position: relative;
    width: 50px; /* 箭頭長度 */
    height: 0;
    background-color: #485F36;
    transition: background-color 0.3s ease;
}

.contact-btn .long-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    border-top: 1px solid #485F36;
    border-right: 1px solid #485F36;
    transition: border-color 0.3s ease;
}

.contact-btn:hover .long-arrow {
    background-color: white;
}

.contact-btn:hover .long-arrow::after {
    border-color: white;
}

.prev-step {
    border: none;
    background: none;
    font-size: 15px;
    cursor: pointer;
    height: 87px;
}

.contact-page form {
    display: grid;
    gap: 24px;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.form-label {
    width: 250px;
    margin-bottom: 0;
    font-size: 14px;
}

.form-group div {
    flex: 1;
}

.contact-page form textarea {
    grid-column: span 2;
}

.contact-page form button {
    grid-column: span 2;
}

/* 標題區 */
.form-steps {
    margin: 120px 0 80px;
}
.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 750px;
    position: relative;
}

.step-indicator {
    position: relative;
    text-align: center;
    flex: 1;
    font-size: 14px;
    font-weight: normal;
}

.step-indicator > span {
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.step-indicator.active > span {
    border-bottom: 1px solid black;
}

.step-arrow {
    content: '';
    position: absolute;
    right: -20%;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
    height: 2px;
    background-color: #A7A2A2;
}

.step-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid #A7A2A2;
}

input.error, textarea.error {
    border: 2px solid #e74c3c;
    background-color: #fff2f2;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.radio-group {
    display: flex;
    gap: 40px;
    align-items: center;
}

.custom-radio {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-radio .circle {
    position: absolute;
    left: 0;
    top: 4px;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    border: 1px solid #3b3939;
    background-color: white;
}

.custom-radio input[type="radio"]:checked + .circle::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b3939;
}

.step-2 {
    max-width: 730px;
    width: 100%;
    margin: 0 auto;
}


/* 響應式設定 */
@media screen and (max-width: 768px) {
    input, textarea {
        width: 100%;
        padding: 15px;
        font-size: 12px;
    }

    .contact-page {
        padding: 20px 10px;
        margin: 40px auto 80px;
    }

    .form-steps {
        margin: 60px 0 40px;
    }

    .steps {
        flex-direction: column;
        gap: 10px;
    }

    .contact-page form {
        grid-template-columns: 1fr;
    }

    .form-group {
        margin-bottom: 20px;
        display: block;
    }

    .form-group div {
        margin-top: 5px;
    }

    .step-buttons {
        margin-top: 40px;
    }

    .contact-btn {
        width: 100%;
        font-size: 14px;
        padding: 16px 24px;
        text-align: center;
        justify-content: center;
    }

    .contact-btn .long-arrow {
        width: 35px;
    }

    .contact-btn .long-arrow::after {
        width: 6px;
        height: 6px;
    }

    .prev-step {
        width: 100%;
        text-align: center;
        font-size: 14px;
    }

    .contact-page h1 {
        font-size: 30px;
    }

    .contact-page h3 {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .radio-group {
        gap: 10px;
    }
}

@media screen and (min-width: 769px) {
    .step-2-buttons {
        display: flex;
        justify-content: space-around;
        align-content: center;
        margin-top: 80px;
    }
}


/* service page */
.service-gallery {
    margin: 180px 0;
}

.service-gallery-container {
    display: flex;
    max-width: 1440px;
    margin: 0 auto;
    gap: 60px;
    align-items: center;
}

.service-gallery-image {
    flex: 1;
}

.service-gallery-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-gallery-text {
    flex: 1;
    font-size: 15px;
    text-align: center;
    margin-left: 25px;
}

.service-gallery-text-block {
    text-align: left;
    display: inline-block;
}

.service-gallery-text h1 {
    font-size: 36px;
    font-weight: normal;
    margin-bottom: 60px;
}

.service-gallery-text p {
    max-width: 425px;
    width: 100%;
}

.service-meal-container {
    display: flex;
    gap: 70px;
    margin-top: 100px;
    position: relative;
    flex-wrap: nowrap;
}

.meal-box {
    position: relative;
    flex: 1;
}

.meal-box:nth-child(1) {
    margin-top: 0;
    text-align: right;
}
.meal-box:nth-child(2) {
    margin-top: 300px;
    text-align: left;
}
.meal-box3 {
    margin: 10% 300px 180px 0;
    text-align: center;
}

/* 圖片 */
.meal-box img {
    max-width: calc(45vw - 64px);
    display: inline-block;
}

.meal-box3 img {
    max-width: calc(45vw - 64px);
}

/* 標籤字樣 */
.meal-label, .meal-label2 {
    writing-mode: vertical-rl;
    font-size: 28px;
    color: #707070;
    white-space: nowrap;
    background: none;
    padding: 0;
    vertical-align: top;
}

.service-space-container {
    display: flex;
    max-width: 1440px;
    margin: 0 auto;
    gap: 60px;
    align-items: center;
}

.service-space-image {
    flex: 1;
}

.service-space-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-space-text {
    flex: 1;
    font-size: 15px;
    text-align: center;
    margin-right: 25px;
}

.service-space-text-block {
    text-align: left;
    display: inline-block;
}

.service-space-text h1 {
    font-size: 36px;
    font-weight: normal;
    margin-bottom: 60px;
}

.service-space-text p {
    max-width: 425px;
    width: 100%;
}




.services {
    position: relative;
    background: url('./img/intro_bg.webp');
    text-align: center;
}

.services-overlay {
    background-color: rgba(72, 95, 54, 0.85); /* ✅ 深綠 + 透明度 */
    width: 100%;
    height: 100%;
    padding: 110px 0;
    color: white;
}

.services h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: normal;
}

.services .subtitle {
    font-size: 20px;
    margin: 0 0 40px;
}

.services h3 {
    font-size: 24px;
    font-weight: normal;
    margin: 50px 0 20px;
}

.service-container {
    display: flex;
    gap: 120px;
    justify-content: center;
}

.service-item {
    width: 320px;
}

.service-item-image-container {
    height: 120px;
    display: flex;
    align-items: end;
    justify-content: center;
}

.services-btn {
    background: white;
    color: #707070;
    padding: 32px 60px;
    font-size: 19px;
    border-radius: 99px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin-top: 80px;
}

.services-btn:hover {
    background: #707070;
    color: white;
}


@media screen and (max-width: 768px) {
    .service-gallery {
        margin: 60px 45px 80px;
    }

    .service-gallery-container {
        flex-direction: column;
        gap: 20px;
    }

    .service-gallery-image, .service-gallery-text {
        flex: unset;
        margin: 0;
    }

    .service-gallery-text h1 {
        font-size: 18px;
        margin: 0 0 20px;
    }

    .service-gallery-text-block {
        text-align: center;
        width: 100%;
    }

    .service-meal-container {
        flex-direction: column;
        align-items: center;
        margin-top: 60px;
        gap: 0;
    }

    .meal-box {
        flex: unset;
    }

    .meal-label, .meal-label2 {
        font-size: 14px;
    }

    .meal-box:nth-child(1) {
        margin: 0;
        padding-left: 15%;
    }
    .meal-box:nth-child(2) {
        margin: 64px 0;
        padding-right: 15%;
    }

    .meal-box3 {
        margin: 0 0 120px;
        padding-left: 15%;
    }

    .meal-box img {
        max-width: calc(100% - 20px);
    }

    .meal-box3 img {
        max-width: calc(100% - 20px);
    }

    .service-space-container {
        flex-direction: column;
        gap: 20px;
    }

    .service-space-image, .service-space-text {
        flex: unset;
        margin: 0;
    }

    .service-space-text-block {
        text-align: center;
        width: 100%;
    }

    .service-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .service-item {
        width: 100%;
        padding: 0 45px;
    }

    .services h3 {
        font-size: 13px;
        border: 1px solid white;
        width: 150px;
        margin: 25px auto 0;
        padding: 3px 5px;
    }

    .services-btn {
        font-size: 10px;
        padding: 16px 34px;
        margin-top: 22px;
    }
}

/* gallery page */
.gallery-text {
    margin: 180px auto 80px;
    text-align: center;
    width: 425px;
}

.gallery-text h1 {
    color: #707070;
    font-size: 50px;
    font-weight: normal;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto 180px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 正方形框 */
    object-fit: cover;   /* 保持比例並裁切多餘部分 */
    display: block;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.gallery-reservation {
    position: relative;
    background: url('./img/gallery/reservation.webp');
    text-align: center;
}

.gallery-reservation-overlay {
    background-color: rgba(72, 95, 54, 0.85); /* ✅ 深綠 + 透明度 */
    width: 100%;
    height: 100%;
    color: white;
}

.gallery-reservation-container {
    display: flex;
    align-items: center;
}

.gallery-reservation-text {
    flex: 1;
}

.gallery-reservation-text p {
    width: 425px;
    margin: 0 auto;
    text-align: left;
}

.gallery-reservation-btn {
    background: white;
    color: #707070;
    padding: 32px 60px;
    font-size: 19px;
    border-radius: 99px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin-top: 45px;
}

.gallery-reservation-btn:hover {
    background: #707070;
    color: white;
}

@media screen and (max-width: 768px) {
    .gallery-text {
        margin: 60px 30px 25px;
        width: 90%;
    }

    .gallery-text h1 {
        font-size: 25px;
    }

    .gallery-grid {
        gap: 10px;
        padding: 0 30px;
        margin: 0 auto 80px;
    }

    .gallery-reservation-text {
        margin: 85px 45px;
    }

    .gallery-reservation-text p {
        width: 100%;
    }

    .gallery-reservation-btn {
        font-size: 10px;
        padding: 16px 34px;
        margin-top: 22px;
    }
}
