:root {
    --primary: #003366;
    /* Deep Trust Blue */
    --primary-light: #004d99;
    --secondary: #00a8cc;
    /* Medical/Fresh Teal */
    --accent: #ffd700;
    /* Gold for premium feel */
    --background: #ffffff;
    --bg-light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    --text-dark: #102a43;
    --text-light: #486581;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 24px;
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--background);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

p {
    color: var(--text-light);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.mobile-only {
    display: none !important;
}

section {
    padding: 120px 0;
}

/* Header */
header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    display: none;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

/* Hero */
.hero {
    position: relative;
    padding: 160px 0;
    background: var(--bg-gradient);
    overflow: hidden;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 168, 204, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    display: inline-block;
    white-space: nowrap;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 500;
}

.tagline {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 51, 102, 0.05);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

/* Message Section */
.message-section {
    background: white;
}

.message-card {
    background: var(--bg-light);
    padding: 60px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.message-card h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.message-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.doctor-image-wrapper {
    flex-shrink: 0;
}

.doctor-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.message-text {
    flex: 1;
}

.message-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin: 0;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Card Specific Colors */
.card-md {
    background: #f0f9ff;
}

.card-md .service-icon {
    color: #0369a1;
    background: #e0f2fe;
}

.card-aga {
    background: #f5f3ff;
}

.card-aga .service-icon {
    color: #6d28d9;
    background: #ede9fe;
}

.card-bihaku {
    background: #fff1f2;
}

.card-bihaku .service-icon {
    color: #be123c;
    background: #ffe4e6;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    gap: 8px;
    transition: var(--transition);
    margin-top: auto;
}

.service-link:hover {
    background: var(--primary-light);
    box-shadow: 0 8px 15px rgba(0, 51, 102, 0.2);
    transform: translateY(-2px);
    color: white;
}

.service-link svg {
    transition: transform 0.3s ease;
}

.service-link:hover svg {
    transform: translateX(5px);
}


/* Appointment Section */
.appointment-section {
    background: var(--primary);
    color: white;
}

.appointment-section h2,
.appointment-section p {
    color: white;
}

.appointment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.appointment-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.appointment-card h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.appointment-card ul {
    list-style: none;
    margin: 20px 0;
}

.appointment-card ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.2);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary);
}

.btn-accent:hover {
    background: #f2cc00;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #f0f4f8;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.footer-info h4 {
    margin-bottom: 20px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .header-inner {
        justify-content: center;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        gap: 8px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .message-card {
        padding: 40px 24px;
    }

    .message-flex {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .doctor-image {
        width: 120px;
        height: 120px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .appointment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .appointment-card {
        padding: 30px 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}