@charset "UTF-8";

/* ==========================================================================
   Base Styles - Elegant & Cool (pt2)
   Theme: Deep Navy, Gold, White, Serif Typography
   ========================================================================== */

:root {
    --primary-color: #0a192f;
    /* Deep Navy (Background/Text) */
    --secondary-color: #f4f4f4;
    /* Light Gray (Alt Background) */
    --accent-color: #c6a87c;
    /* Gold (Buttons/Highlights) */
    --text-color: #333333;
    /* Dark Grey (Body Text) */
    --text-light: #ffffff;
    /* White Text */
    --font-heading: 'Shippori Mincho', serif;
    --font-body: 'Noto Serif JP', serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.8;
    /* More breathing room for elegance */
    margin: 0;
    letter-spacing: 0.05em;
    background-color: var(--secondary-color);
    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;
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   Header - Elegant & Minimal
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    /* Dark semi-transparent */
    color: var(--text-light);
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    transition: padding 0.3s ease;
}

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

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

.logo-img {
    height: 50px;
    filter: brightness(0) invert(1);
    /* Make logo white */
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Navigation - Clean Layout */
.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-text-group {
    text-align: right;
}

.nav-row {
    display: flex;
    gap: 25px;
    justify-content: flex-end;
    margin-bottom: 5px;
}

.nav-row:last-child {
    margin-bottom: 0;
}

.nav a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.nav a:hover {
    color: var(--accent-color);
}

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

.btn-tel {
    color: var(--text-light);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reserv {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-reserv:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Hamburger (Mobile) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 1px;
    /* Thinner lines for elegance */
    background-color: var(--text-light);
    margin: 8px 0;
    transition: all 0.3s;
}

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

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.6);
    /* Darker navy overlay */
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    max-width: 1000px;
    width: 90%;
    padding-top: 80px;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: 0.1em;
}

/* Hero Info Wrapper */
.hero-info-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    text-align: left;
}

/* Glassmorphism for boxes */
.medical-hours.hero-hours,
.hero-news {
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    color: var(--text-light);
    flex: 1;
    max-width: 450px;
}

.medical-hours h4,
.hero-news h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-color);
    /* Thinner accent line */
    padding-left: 15px;
    color: var(--accent-color);
}

.medical-hours table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.medical-hours th,
.medical-hours td {
    padding: 8px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.medical-hours th:first-child {
    text-align: left;
    width: 30%;
}

.medical-hours .note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-news p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section {
    padding: 100px 0;
}

.container {
    max-width: 1000px;
    /* Narrower for focus */
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--accent-color);
    margin: 20px auto 0;
}

/* ==========================================================================
   Greeting Section
   ========================================================================== */
.greeting {
    background-color: var(--text-light);
}

/* Overlapping Greeting Layout */
/* Overlapping Greeting Layout - Flex Flow */
.greeting-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    /* Align to right */
    padding: 80px 0;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.greeting-image {
    width: 60%;
    flex: 0 0 60%;
    margin-right: -10%;
    /* Negative margin to pull text over image */
    position: relative;
    z-index: 1;
}

.greeting-image img {
    box-shadow: none;
    filter: brightness(0.9);
    width: 100%;
    display: block;
}

.greeting-text {
    position: relative;
    /* Back to relative flow */
    width: 50%;
    flex: 0 0 50%;
    top: auto;
    right: auto;
    transform: none;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 60px;
    z-index: 2;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--accent-color);
}

.greeting-text p {
    text-indent: 0;
    margin-bottom: 20px;
}

/* ==========================================================================
   Services Section (Dark BG)
   ========================================================================== */
.services {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.services .section-title h3 {
    color: var(--text-light);
}

/* Services List Layout */
.service-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    align-items: center;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateX(10px);
    border-color: var(--accent-color);
    background: transparent;
}

.service-card .icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin: 0 40px 0 0;
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.service-content-wrapper {
    flex: 1;
}

.service-card h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-light);
    display: inline-block;
}

.service-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.service-card .btn-more {
    margin-left: 30px;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 25px;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: all 0.3s;
}

.service-card:hover .btn-more {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

/* ==========================================================================
   Features Section (Light BG)
   ========================================================================== */
.features {
    background-color: var(--text-light);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    min-width: 60px;
    text-align: center;
}

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

/* ==========================================================================
   Staff Section
   ========================================================================== */
.staff {
    background-color: var(--secondary-color);
}

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

.staff-text {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: justify;
}

.staff-text p {
    margin-bottom: 20px;
    text-indent: 1em;
}

.staff-content img {
    border-radius: 0;
    /* Sharp corners for elegance */
    filter: sepia(10%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Access Section
   ========================================================================== */
.access {
    padding: 0;
    /* Full width map split */
}

.access .container {
    max-width: 100%;
    padding: 0;
}

.access-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    /* FORCE NO WRAP */
    align-items: stretch;
    width: 100%;
}

.access-info {
    width: 50%;
    flex: 0 0 50%;
    /* Force constant 50% width */
    max-width: 50%;
    /* Prevent expansion */
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.access-map {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    background-color: #ddd;
    /* Fallback */
}

.access-map iframe,
.access-map script {
    position: absolute;
    /* Absolute fill to ignore script layout quirks */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #050d1a;
    /* Even darker */
    color: rgba(255, 255, 255, 0.5);
    padding: 60px 0;
    text-align: center;
    font-size: 0.8rem;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-light);
    margin: 0 15px;
}

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

/* ==========================================================================
   Mobile Fixed Footer (Hidden on PC)
   ========================================================================== */
.mobile-fixed-footer {
    display: none;
}

/* ==========================================================================
   Animations (Subtle & Elegant)
   ========================================================================== */
.js-scroll-trigger {
    opacity: 0;
    will-change: opacity, transform;
}

/* Elegant Fade Up */
@keyframes elegantFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up,
.animate-pop-in,
.animate-slide-left,
.animate-slide-right,
.animate-fade-in {
    animation: elegantFadeUp 1.2s ease-out forwards;
    /* Unified elegant animation */
}

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

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

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
        background-color: var(--primary-color);
    }

    .header-container {
        padding: 0 20px;
    }

    .logo-text {
        font-size: 1.2rem;
        letter-spacing: 0;
    }
    
    .hamburger {
        display: block;
    }

    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding-bottom: 60px;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-text-group {
        text-align: center;
        margin-bottom: 30px;
    }

    .nav-row {
        flex-direction: column;
        gap: 20px;
    }

    .nav-btn-group {
        flex-direction: column;
    }

    /* Hero Responsive */
    .hero-content {
        padding-top: 60px;
    }

    .hero-content h2 {
        font-size: 1.6rem;
        margin-top: 120px;
    }

    .hero-info-wrapper {
        flex-direction: column;
        margin-top: 30px;
        gap: 20px;
    }

    .medical-hours.hero-hours,
    .hero-news {
        width: 100%;
        max-width: 100%;
        padding: 5px;
    }

    /* Greeting Responsive */
    .greeting-content {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .greeting-image {
        width: 100%;
        margin-bottom: -30px;
        margin-right: 0;
        /* Reducing overlap on mobile */
        order: -1;
        /* Image first */
    }

    .greeting-text {
        position: relative;
        width: 90%;
        margin: 0 auto;
        transform: none;
        top: 0;
        right: 0;
        padding: 30px;
        order: 1;
        /* Text second */
    }

    /* Services Responsive */
    .service-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 0;
    }

    .service-card .icon {
        margin-bottom: 20px;
    }

    .service-card .btn-more {
        margin-left: 0;
        margin-top: 20px;
    }

    /* Access Responsive */
    .access-wrapper {
        display: block;
    }

    .access-info {
        width: 100%;
        max-width: 100%;
        flex: none;
        padding: 40px 20px;
    }

    .access-map {
        width: 100%;
        max-width: 100%;
        flex: none;
        height: 300px;
        min-height: 300px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile Footer */
    .mobile-fixed-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 2000;
    }

    .mobile-footer-btn {
        flex: 1;
        text-align: center;
        padding: 15px 0;
        color: white;
        font-size: 0.9rem;
    }

    .mobile-footer-btn.call {
        background-color: #66BB6A;
    }

    .mobile-footer-btn.map {
        background-color: var(--accent-color);
    }
}