/* Base styles (Mobile-first) */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    color: #333;
    background-color: #f9f8f6;
    font-size: 14px;
    line-height: 1.8;
}

header {
    position: fixed;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    background-color: transparent;
}

main {
    padding-top: 90px;
}

.container {
    padding: 0 20px;
}

header .logo img {
    max-height: 90px;
}

.logo p {
    margin: 5px 0 0;
    letter-spacing: 2px;
    font-size: 16px;
}

.logo p:last-child {
    font-size: 10px;
    letter-spacing: 1px;
}

.nav-toggle {
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #333;
    left: 0;
    transition: all .3s;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.hero-top {
    height: 50vh;
    background: #f9f8f6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 0 20px;
    text-align: center;
    box-sizing: border-box;
    width: 80%;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 20px;
    font-weight: normal;
    line-height: 1.8;
}

.hero-text-en {
    font-size: 12px;
    color: #555;
    margin-top: 20px;
}

.hero-bottom {
    height: 50vh;
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
}

.hero-slider {
    height: 100%;
}

.hero-slider-track {
    display: flex;
    height: 100%;
    width: calc(100% * 6); /* 3 images duplicated */
    animation: slide 30s linear infinite;
}

.hero-slider-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.commitment-section {
    padding: 40px 0;
    background-color: #f3f2ef;
}

.commitment-slider {
    position: relative;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}

.commitment-section > div:last-child {
    padding: 40px 20px 0;
}

.commitment-item h2 {
    font-family: serif;
    font-weight: normal;
    font-size: 24px;
    margin-bottom: 20px;
}

.commitment-item p {
    font-size: 14px;
    line-height: 2;
    color: #555;
}

.view-more {
    display: inline-block;
    margin-top: 20px;
    font-size: 12px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
}

/* Generic Content Section Styles */
.content-section {
    padding: 60px 20px;
}

.content-item {
    margin-bottom: 40px;
}

.placeholder, .menu-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e0e0e0;
    margin-bottom: 20px;
    overflow: hidden;
}

.placeholder img, .menu-placeholder img {
    width: 100%;
    object-fit: cover;
}

.content-text h3 {
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 10px;
}

.content-text p {
    font-size: 14px;
    line-height: 2;
}

/* Scoped Feature Section Styles */
.features-section {
    padding: 60px 20px;
}

.features-section .content-paragraphs h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 1em;
}

    .features-section .content-body {
        /* This is now just a container for paragraphs in the full-width item */
    }

    .features-section .content-row .content-body {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 20px;
    }
.features-section .content-text h3 {
    writing-mode: vertical-rl;
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.3em;
    white-space: nowrap;
    color: #888;
}

.features-section .content-row {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.features-section .content-item-full-width {
    margin-top: 40px;
}

.menu-section {
    padding: 60px 0;
    text-align: center;
}

.menu-section h2 {
    font-size: 28px;
    font-weight: normal;
    font-family: serif;
    margin-bottom: 10px;
}

.menu-section .subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 40px;
    padding: 0 20px;
}

.menu-item {
    border-top: 1px solid #ddd;
    padding: 30px 20px;
    text-align: left;
}

.menu-item:last-child {
    border-bottom: 1px solid #ddd;
}

.menu-title {
    margin-bottom: 10px;
}

.menu-title h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.menu-price {
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
}

.menu-description {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.tags {
    margin-top: 15px;
}

.tag {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 5px 10px;
    margin: 5px 5px 0 0;
    font-size: 12px;
    border-radius: 4px;
}

.booking-section {
    position: relative; /* For pseudo-element positioning */
    padding: 80px 20px;
    text-align: center;
    overflow: hidden; /* To contain the pseudo-element */
}

.booking-section h2 {
    font-family: serif;
    font-weight: normal;
    font-size: 28px;
    margin-bottom: 20px;
}

.booking-section p {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 40px;
}

.booking-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    padding: 20px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    font-size: 16px; /* Default font size */
    display: flex; /* Use flexbox for alignment */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    transition: background-color 0.3s;
}

.btn-phone {
    flex-direction: column;
    line-height: 1.5; /* Adjust line height for two lines */
}

.btn-hotpepper,
.btn-line {
    font-size: 24px; /* Larger font size for single-line buttons */
}

.btn-hotpepper { background-color: #bfa88c; color: white; border: none; }
.btn-phone { background-color: #333; color: white; border: none; text-align: center;}
.btn-line { background-color: #8fb8ac; color: white; border: none; }
.btn-phone span { font-size: 12px; display: block; margin-top: 5px; }

footer {
    background-color: #4a4a4a;
    color: #f0f0f0;
}

.map {
    width: 100%;
    height: 400px; /* Adjust height as needed */
}

.map iframe {
    width: 100%;
    height: 100%;
}

.clinic-info {
    background-color: #FFFFFF;
    color: #333;
    padding: 40px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.clinic-info .logo {
    margin-bottom: 20px;
    text-align: center;
}

.clinic-info .logo img {
    max-height: 100px;
}

.clinic-info dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
}

.clinic-info dt {
    font-weight: bold;
    grid-column: 1;
}

.clinic-info dd {
    grid-column: 2;
    margin: 0;
}

.clinic-info h3 {
    font-weight: normal;
    font-size: 18px;
}

.clinic-info p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.clinic-info a { color: #333; }

.copyright {
    text-align: center;
    margin-top: 20px;
    width: 100%;
    color: #f0f0f0;
}

.clinic-info .social-icons {
    text-align: center;
    margin-top: 20px;
}

.clinic-info .social-icons a {
    display: inline-block;
    margin: 0 10px;
}

.clinic-info .social-icons svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.footer-bottom {
    padding: 40px 20px 0px 20px;
}

/* Tablet styles */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
        margin: 0 auto;
    }

    .hero-top {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 80px 0 40px;
        width: 80%;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 22px;
    }
    
    .hero-text-en {
        margin-top: 0;
    }

    .commitment-section {
        padding: 60px 40px;
        display: flex;
        align-items: center;
        gap: 40px;
    }
    
    .commitment-slider {
        flex: 1;
        margin: 0;
        aspect-ratio: 1 / 1;
        align-self: center;
    }
    
    .commitment-section > div:last-child {
        flex: 1;
        padding: 0;
    }

    .content-section {
        padding: 80px 40px;
    }

    .features-section .content-row {
        flex-direction: row;
        justify-content: space-between;
        gap: 40px;
        /* align-items: center; */ /* Removed for better transform control */
    }

    .features-section .content-row > .content-item:nth-child(1) {
        transform: translateY(-40px);
    }

    .features-section .content-row > .content-item:nth-child(2) {
        transform: translateY(40px);
    }

    .features-section .content-row .content-item {
        width: calc(50% - 20px);
    }

    .features-section .content-item .placeholder {
        width: 100%;
    }

    .features-section .content-item .content-body {
        width: 100%;
        margin-top: 20px;
    }

    .features-section .content-item--reverse {
        /* No special flex direction needed here */
    }

    .features-section .content-item-full-width {
        display: grid;
        grid-template-columns: 50% auto 1fr; /* Image, Title, Text */
        gap: 40px;
        align-items: stretch; /* Make items same height */
        margin: 80px auto 0;
        max-width: 90%; /* Center the component */
    }

    /* The placeholder for the full-width item should not have a fixed aspect ratio */
    .features-section .content-item-full-width .placeholder {
        aspect-ratio: unset; /* Let the grid row determine the height */
    }

    .features-section .content-item-full-width .content-text {
        flex-shrink: 0; /* Prevent title from shrinking - this is a flex property, but harmless in grid */
    }

    .features-section .content-item-full-width .content-body {
        width: auto; /* Take remaining space */
    }

    .features-section .placeholder {
        height: auto; /* Override generic height */
        aspect-ratio: 1 / 1.2;
        margin-bottom: 0;
        overflow: hidden; /* Add overflow hidden */
    }

    .features-section .placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Crop the image to fit */
    }

    
    .menu-section {
        padding: 80px 0;
    }

    .menu-item {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 40px;
        align-items: start;
        padding: 40px 0;
    }
    
    .menu-placeholder {
        height: 100%;
        margin-bottom: 0;
    }

    .booking-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        max-width: 800px; /* Constrain the max width */
        margin: 0 auto; /* Center the container */
    }

    .booking-buttons .btn {
        flex: 1; /* Make all buttons equal width */
    }
    
    .btn {
        display: inline-block;
    }

    .footer-bottom {
        padding: 60px 60px 0px 60px;
    }


}

/* Desktop styles */
@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }

    header {
        padding: 20px 40px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .commitment-section {
        justify-content: space-around;
    }

    .content-section {
        gap: 60px;
    }
    
    .placeholder {
        margin-right: 40px;
    }
    
    .features-section .content-item--reverse .placeholder {
        margin-right: 0;
        margin-left: 40px;
    }

    .menu-item {
        grid-template-columns: 1fr 2fr;
    }
    
    .menu-title {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 20px;
    }

    .menu-title h3 {
        font-size: 18px;
    }

    .menu-price {
        font-size: 16px;
        margin-top: 0;
    }

    .drawer-menu {
        width: 30%;
    }
}

.commitment-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drawer-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    height: 100%;
    background-color: #fff;
    z-index: 1;
    transition: right 0.3s ease-in-out;
    padding-top: 80px;
    box-sizing: border-box;
}

.drawer-menu.is-active {
    right: 0;
}

.drawer-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-menu nav li {
    border-bottom: 1px solid #eee;
}

.drawer-menu nav a {
    display: block;
    padding: 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

body.drawer-open {
    overflow: hidden;
}

.nav-toggle.is-active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}