@charset "UTF-8";

/* ==========================================================================
   Root Variables
   ========================================================================== */
:root {
    --primary-color: #00bcd4;
    /* Turquoise */
    --primary-dark: #008ba3;
    --secondary-color: #ff9800;
    /* Orange */
    --secondary-light: #ffc947;
    --accent-color: #4caf50;
    /* Palm Green */
    --sand-color: #fff8e1;
    --water-gradient: linear-gradient(135deg, #e0f7fa 0%, #80deea 100%);
    --text-color: #37474f;
    --text-light: #78909c;
    --white: #ffffff;
    --font-main: 'M PLUS Rounded 1c', sans-serif;
    --font-heading: 'Kiwi Maru', serif;
    --font-en: 'Quicksand', sans-serif;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title .en {
    display: block;
    font-family: var(--font-en);
    color: var(--primary-color);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-title h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-color);
    display: inline-block;
}

.section-title .title-decoration {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 10px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    width: 100%;
    height: auto;
    /* Auto height for 2 lines */
    min-height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 10px 0;
}

.header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    /* Slightly larger logo */
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-dark);
    font-weight: bold;
}

.nav {
    display: flex;
    flex-direction: column;
    /* Stack nav items */
    align-items: flex-end;
    /* Align to right */
    gap: 10px;
    /* Space between rows */
    margin-left: auto;
    /* Right align the nav block */
}

.nav-list {
    display: flex;
    gap: 30px;
    /* Sufficient space between links */
    align-items: center;
}

.nav-list a {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    padding: 10px 0;
    /* Increase clickable area */
}

.nav-list a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.nav-btn-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-tel {
    font-family: var(--font-en);
    font-weight: bold;
    color: white !important;
    /* White text */
    background-color: var(--accent-color);
    /* Green background */
    padding: 6px 15px;
    border-radius: 6px;
    /* Smaller radius */
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(76, 175, 80, 0.3);
}

.btn-tel:hover {
    background-color: #43a047;
    transform: translateY(-2px);
}

.btn-reserv {
    background-color: var(--secondary-color);
    color: white !important;
    padding: 8px 20px;
    /* Adjustment for alignment */
    border-radius: 6px;
    /* Smaller radius */
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(255, 152, 0, 0.3);
}

.btn-reserv:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(255, 152, 0, 0.4);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s linear infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.4;
    color: var(--primary-dark);
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.hero-info {
    display: flex;
    gap: 30px;
    /* Space between hours and news */
    align-items: flex-start;
}

.hero-hours,
.hero-news {
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.15);
    backdrop-filter: blur(10px);
    /* Frosted glass effect */
    border: 1px solid rgba(255, 255, 255, 0.6);
    flex: 1;
    max-width: 400px;
}

.hero-hours h4,
.hero-news h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-hours table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.hero-hours th,
.hero-hours td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.hero-hours th {
    background-color: rgba(240, 251, 253, 0.6);
    color: var(--primary-dark);
    font-weight: bold;
}

.hero-hours td {
    color: var(--text-color);
}

.hero-hours tr:last-child th,
.hero-hours tr:last-child td {
    border-bottom: none;
}

.note {
    font-size: 0.8rem;
    color: var(--text-light);
}

.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* ==========================================================================
   Separators
   ========================================================================== */
.section-separator {
    text-align: center;
    font-size: 3rem;
    color: var(--secondary-light);
    margin: -40px 0;
    position: relative;
    z-index: 5;
    animation: float 3s ease-in-out infinite;
}

/* ==========================================================================
   Greeting
   ========================================================================== */
.greeting-content {
    display: flex;
    align-items: center;
    gap: 60px;
    background: #fff;
    padding: 20px;
}

.greeting-text {
    flex: 1;
}

.greeting-lead {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.greeting-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.greeting-image {
    flex: 1;
    position: relative;
    display: flex;
    /* Ensure content is centered if needed */
    justify-content: center;
}

.image-frame {
    padding: 15px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: rotate(3deg);
    transition: transform 0.5s;
    max-width: 100%;
}

.image-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.image-frame img {
    width: 100%;
    border-radius: 2px;
}

.director-img-sp {
    display: none;
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
    background-color: #f9fbfb;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 188, 212, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 152, 0, 0.05) 0%, transparent 20%);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns on PC */
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 20px;
    /* Reduced side padding */
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 188, 212, 0.15);
    border-bottom-color: var(--secondary-color);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--water-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--primary-dark);
}

.service-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    /* Adjusted font size */
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==========================================================================
   Features
   ========================================================================== */
.features {
    padding-bottom: 120px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background: var(--secondary-color);
}

.feature-right::before {
    left: auto;
    right: 0;
    background: var(--primary-color);
}

.feature-number {
    font-family: var(--font-en);
    font-size: 4rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: -10px;
    right: 20px;
}

.feature-content {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: var(--sand-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.feature-item:nth-child(2) .icon-circle {
    background: #e0f2f1;
    color: var(--primary-color);
}

.feature-content h4 {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    margin-bottom: 10px;
    color: var(--primary-dark);
}

/* ==========================================================================
   Staff
   ========================================================================== */
.staff {
    background-color: #fdfbf7;
}

.staff-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.staff-photo {
    position: relative;
}

.staff-photo img {
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.photo-frame {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    z-index: 1;
}

.staff-message p {
    margin-bottom: 20px;
    text-align: justify;
}

/* ==========================================================================
   Access
   ========================================================================== */
.access-content {
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 188, 212, 0.1);
    padding: 50px;
    display: flex;
    gap: 50px;
}

.access-info-panel {
    flex: 1;
}

.clinic-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.tel-large {
    font-family: var(--font-en);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 0;
}

.access-details dt {
    float: left;
    font-weight: bold;
    color: var(--primary-dark);
    margin-right: 15px;
    clear: both;
    margin-bottom: 10px;
}

.access-details dd {
    margin-bottom: 10px;
    overflow: hidden;
}

.medical-hours-small {
    background: #f0fbfd;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.medical-hours-small h5 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.access-hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.access-hours-table th,
.access-hours-table td {
    padding: 6px 4px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.access-hours-table thead th {
    color: var(--primary-dark);
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
}

.access-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

.map-panel {
    flex: 1;
}

.map-frame {
    width: 100%;
    height: 100%;
    min-height: 350px;
    /* Keep height for the map */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--primary-color);
    color: white;
    position: relative;
    padding-bottom: 80px;
    /* Space for mobile nav */
}

.footer-wave {
    line-height: 0;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

.footer-wave path {
    fill: #ffffff;
}

.footer-content {
    text-align: center;
    padding: 20px 20px 40px;
}

.footer-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: white;
    font-weight: bold;
}

.footer-links a:hover {
    color: var(--secondary-light);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ==========================================================================
   Mobile Fixed Footer
   ========================================================================== */
.mobile-fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    display: flex;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    /* Show on mobile only */
}

.mobile-footer-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-color);
    border-right: 1px solid #eee;
}

.mobile-footer-btn i {
    font-size: 1.2rem;
    margin-bottom: 3px;
    color: var(--primary-color);
}

.mobile-footer-btn.call {
    background-color: var(--primary-color);
    color: white;
}

.mobile-footer-btn.call i {
    color: white;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

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

.js-scroll-trigger {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate-fade-in {
    opacity: 0;
}

.animate-fade-in.is-visible {
    opacity: 1;
}

.animate-slide-up {
    transform: translateY(30px);
}

.animate-slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-30px);
}

.animate-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(30px);
}

.animate-slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-pop-in {
    opacity: 0;
    transform: scale(0.9);
}

.animate-pop-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .header-container {
        padding: 0 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        transition: 0.4s;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        display: block;
        /* Reset display flex from PC */
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 30px;
        gap: 20px;
    }

    .nav-list a {
        font-size: 1.1rem;
    }

    .nav-btn-group {
        margin: 30px;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero-info {
        flex-direction: column;
        gap: 20px;
    }

    .greeting-content {
        flex-direction: column;
    }

    .director-img-pc {
        display: none;
    }

    .director-img-sp {
        display: block;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablet */
    }

    .staff-container {
        grid-template-columns: 1fr;
    }

    .access-content {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .section-title h3 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero-hours,
    .hero-news {
        width: 100%;
        max-width: none;
    }

    .hero-hours {
        padding: 15px;
    }

    .hero-hours th,
    .hero-hours td {
        font-size: 0.8rem;
        padding: 6px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }

    .mobile-fixed-footer {
        display: flex;
    }

    .footer {
        padding-bottom: 80px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-img {
        height: 40px;
    }
}