@charset "UTF-8";

/* Reset & Base Styles */
:root {
    --primary-color: #26C6DA;
    /* Turquoise */
    --secondary-color: #E0F7FA;
    /* Light Blue */
    --accent-color: #FFCA28;
    /* Sunny Yellow */
    --text-color: #37474F;
    --white: #ffffff;
    --font-main: 'M PLUS Rounded 1c', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--secondary-color);
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    /* Increased max-width for new layout */
    margin: 0 auto;
    padding: 10px 20px;
}

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

.logo-img {
    max-height: 50px;
    width: auto;
    margin-right: 15px;
    /* Add space between logo and text */
}

.logo-text {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.2;
}

/* Nav Layout */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Right align text links */
    gap: 10px;
}

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

.nav-btn-group {
    margin-left: 10px;
}

.nav a {
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
    font-size: 0.9rem;
    /* Slightly smaller text */
    white-space: nowrap;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.btn-tel {
    background-color: #66BB6A;
    /* Bright Green */
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: 50px;
    margin-right: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-tel:hover {
    background-color: #4CAF50;
    text-decoration: none !important;
}

.btn-tel::after {
    display: none;
}

.btn-reserv {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: 50px;
}

.btn-reserv::after {
    display: none;
}

.btn-reserv:hover {
    background-color: #FFB300;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

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

/* content */
main {
    padding-top: 100px;
    /* Increased for taller header */
}

/* Hero Section */
.hero {
    position: relative;
    /* height: 90vh; -- Removed fixed height for flexibility */
    min-height: 90vh;
    /* Ensure it covers at least mostly screen */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 120px;
    /* More padding top for fixed header + spacing */
    padding-bottom: 50px;
}

.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(0, 0, 0, 0.2);
    /* Slight overlay for readability */
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    /* slightly stronger blur for table readability */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: fadeIn 1.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    font-family: 'Kosugi Maru', sans-serif;
}

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

/* Section Common */
.section {
    padding: 80px 0;
}

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

.section-title h3 {
    font-size: 2.0rem;
    /* Slightly smaller for Japanese */
    color: var(--primary-color);
    font-weight: 700;
}

.section-title span {
    display: block;
    margin-top: 10px;
    color: #888;
    font-size: 0.9rem;
}

/* Greeting */
.greeting {
    background-color: var(--white);
}

.greeting-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
}

.greeting-text {
    flex: 1;
    text-align: justify;
}

.greeting-text p {
    text-indent: 1em;
}

.staff-text p {
    text-indent: 1em;
}

.greeting-image {
    flex: 1;
    max-width: 400px;
    /* Limit width */
}

.greeting-image img {
    width: 100%;
    height: 300px;
    /* Fixed height for consistent look */
    object-fit: cover;
    /* Crop to fit */
    object-position: center;
    /* Center subject */
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lead {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 30px;
}

/* Services */
.services {
    background-color: var(--secondary-color);
}

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

@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #666;
    text-align: justify;
}

.btn-more {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Features */
.features {
    background-color: var(--white);
    background-image: radial-gradient(#26C6DA 1px, transparent 1px);
    background-size: 20px 20px;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.feature-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    flex-basis: 45%;
    border: 2px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
    display: flex;
    /* For icon alignment */
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.feature-text {
    flex-grow: 1;
}

.feature-text p {
    text-align: justify;
}

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

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

/* Access */
.access {
    background-color: var(--secondary-color);
}

.access-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    align-items: flex-start;
}

.access-info {
    flex: 1;
    min-width: 300px;
}

.access-info h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.access-info .tel {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 10px 0;
}

.access-details dt {
    float: left;
    clear: left;
    width: 100px;
    font-weight: 700;
    margin-bottom: 10px;
}

.access-details dd {
    margin-left: 100px;
    margin-bottom: 10px;
}

.access-map {
    flex: 1;
    min-width: 300px;
    height: auto;
    /* Allow expanding */
    display: flex;
    flex-direction: column;
}

/* Force Yahoo Map to expand vertically on PC */
.access-map>div,
.access-map iframe {
    flex-grow: 1;
    min-height: 100%;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
    text-align: center;
}

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

.footer-links a {
    margin: 0 15px;
    display: inline-block;
}

.footer-links a:hover {
    text-decoration: underline;
}

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

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

    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: rgba(255, 255, 255, 0.95);
        transition: right 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        /* Stack vertically on mobile */
        justify-content: center;
        align-items: center;
        gap: 30px;
        overflow-y: auto;
        /* Allow scrolling if content is tall */
        padding-bottom: 30px;
    }

    .nav.active {
        right: 0;
    }

    .nav-text-group {
        align-items: center;
        /* Center align on mobile */
        gap: 20px;
    }

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

    .nav-btn-group {
        margin-left: 0;
    }

    .hero-content h2 {
        font-size: 1.5rem;
        margin-top: 30px;
    }

    .feature-item {
        flex-basis: 100%;
    }

    .access-wrapper {
        flex-direction: column;
    }

    .access-map {
        width: 100vw;
        margin-left: -20px;
        /* Counteract container padding */
        min-height: 300px;
    }

    /* When width is 100%25 on mobile, it should be fine, but we force full width container */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Medical Hours Table */
.medical-hours {
    margin: 30px 0;
    overflow-x: auto;
}

.medical-hours h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.medical-hours table {
    width: 100%;
    /* Full width of container */
    max-width: 600px;
    /* Limit width */
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

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

.medical-hours th {
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-weight: 700;
}

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

.medical-hours tr:nth-child(even) {
    background-color: #f9f9f9;
}

.medical-hours .note {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    text-align: left;
    /* User requested left alignment */
}

.medical-hours.hero-hours {
    margin: 0;
    max-width: 100%;
    width: auto;
}



.hero-info-wrapper {
    width: 100%;
    max-width: 650px;
    /* Align widths */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.medical-hours.hero-hours h4,
.hero-news h4 {
    color: #66BB6A;
    /* Match phone button green */
    text-shadow: none;
    border-bottom: none;
    border-left: 6px solid #66BB6A;
    /* Match phone button green */
    padding-left: 15px;
    display: block;
    text-align: left;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Background for the hours block to match news */
.medical-hours.hero-hours {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
}

.medical-hours.hero-hours table {
    background-color: transparent;
    /* Remove table bg, use container bg */
    box-shadow: none;
    margin-bottom: 10px;
}

.medical-hours.hero-hours .note {
    color: var(--text-color);
    /* Dark text */
    text-shadow: none;
    text-align: left;
}

/* Hero News */
.hero-news {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    /* Managed by wrapper gap */
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.hero-news p {
    color: var(--text-color);
    font-size: 1rem;
    text-align: justify;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: auto;
        /* Allow complete flexibility based on content */
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero-content {
        padding: 15px;
        max-width: 95%;
    }

    .medical-hours table {
        min-width: auto;
        width: 100%;
        max-width: 100%;
        font-size: 0.75rem;
    }

    .medical-hours th,
    .medical-hours td {
        padding: 5px 2px;
        white-space: nowrap;
    }

    .medical-hours th:first-child {
        white-space: normal;
        font-size: 0.7rem;
    }

    .greeting-content {
        flex-direction: column;
        gap: 20px;
    }

    .greeting-image {
        max-width: 100%;
        width: 100%;
    }

    .greeting-image img {
        height: auto;
        max-height: 250px;
    }
}

/* Animations Keyframes & Classes */

/* Base class for elements to be animated */
.js-scroll-trigger {
    opacity: 0;
    will-change: transform, opacity;
}

/* 1. Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* 2. Pop In (Bounce) - Playful */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    60% {
        opacity: 1;
        transform: scale(1.05);
    }

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

.animate-pop-in {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* 3. Slide In Left/Right */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

/* 4. Slow Fade In (Gentle/Gradual) */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 2.0s ease-out forwards;
    /* 2 seconds for "jinwari" feel */
}

/* Stagger delays */
.delay-100 {
    animation-delay: 0.1s;
}

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

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

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

.delay-500 {
    animation-delay: 0.5s;
}

/* Mobile Fixed Footer */
.mobile-fixed-footer {
    display: none;
    /* Hidden by default (PC) */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-footer-btn {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 60px;
    /* Fixed height for touch targets */
}

.mobile-footer-btn.call {
    background-color: #66BB6A;
    /* Same as header phone button */
}

.mobile-footer-btn.map {
    background-color: var(--accent-color);
    /* Same as access/contact button */
}

@media (max-width: 768px) {
    .mobile-fixed-footer {
        display: flex;
    }

    /* Adjust footer padding to prevent content being covered by fixed footer */
    .footer {
        padding-bottom: 80px;
    }
}