@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Shippori+Mincho&display=swap');

:root {
    --color-primary: #3b82f6;
    /* Elegant, trustworthy blue */
    --color-accent: #10b981;
    /* Calming green for accents */
    --color-bg: #ffffff;
    /* Clean white background */
    --color-surface: #f8fafc;
    /* Slightly off-white for cards */
    --color-text: #222222;
    /* Deep gray-blue for text */
    --color-text-light: #444444;
    --color-border: #e2e8f0;
    --color-bg-alt: #f1f5f9;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --max-w-base: 1100px;
    --max-w-wide: 1400px;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    /* No rounded corners per user request */
    box-shadow: none;
    /* No drop shadow per user request */
}

/* LAYOUT UTILITIES */
.container {
    max-width: 1100px;
    /* Unified to About Us width */
    margin: 0 auto;
    padding: 0 5%;
}

.container-wide {
    max-width: var(--max-w-wide);
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 50px 0;
    /* Reduced padding (approx half of previous 100px) */
}

.section-light {
    background-color: var(--color-surface);
}

/* TYPOGRAPHY */
.heading-primary {
    font-family: 'Shippori Mincho', serif;
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--color-text);
    letter-spacing: 0.05em;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.heading-primary::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background-color: var(--color-primary);
    margin-top: 15px;
}

.heading-secondary,
.markdown-body h2.heading-secondary,
.content-area h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2rem;
    padding-left: 20px;
    border-left: 6px solid var(--color-primary);
    line-height: 1.4;
}

.content-area h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    /* Explicitly white */
    z-index: 1050;
    /* Higher z-index just in case */
    border-bottom: 2px solid var(--color-border);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 3%;
    background-color: #ffffff;
    /* Ensure top area is white */
}

.logo-area img {
    height: 65px;
    /* Larger logo to match screenshot */
    width: auto;
}

.header-bottom {
    background: #fff;
    /* No top border, let it blend with top header */
}

.main-nav {
    display: flex;
    justify-content: flex-start;
    /* Align nav to left, aligned with logo */
    align-items: stretch;
    /* Make items fill vertical space */
    padding-left: 3%;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
    /* Darker text */
    position: relative;
    padding: 12px 25px;
    /* Reduced vertical and horizontal padding */
    letter-spacing: 0.05em;
    display: inline-block;
    border-right: 1px solid #d1d5db;
    /* Light gray divider */
}

/* Add left border to first item */
.nav-item:first-child {
    border-left: 1px solid #d1d5db;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-item:hover {
    color: var(--color-primary);
}

.nav-item:hover::after {
    width: 100%;
}

/* FLOATING SIDE BUTTONS */
.floating-side {
    position: fixed;
    right: 0;
    top: 55%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 1100;
    /* Above header just in case */
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 140px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 1.0rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px 0 0 8px;
    margin-bottom: 2px;
}

.floating-btn:hover {
    width: 60px;
    /* No Width change per user request */
    filter: brightness(1.1);
}

.btn-reserve {
    background-color: #4285f4;
    /* Precise Blue */
}

.btn-access {
    background-color: #1e293b;
    /* Deep Navy */
}

/* === MOBILE MENU TOGGLE === */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    gap: 4px;
}

.menu-toggle .menu-text {
    font-size: 10px;
    color: var(--color-primary);
    line-height: 1;
    font-weight: bold;
}

.menu-toggle .hamburger-lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
}

.menu-toggle .hamburger-lines span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Toggle Animation */
.menu-toggle.active .hamburger-lines span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active .hamburger-lines span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-lines span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* HERO SECTION (SLIDER) */
.hero {
    margin-top: 155px;
    /* height of the new header */
    height: calc(100vh - 155px);
    min-height: 500px;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

/* Base class for the slider container */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    /* subtle scaling effect */
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    /* Zoom animation removed per user request */
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* OVERLAID ACTION CARDS on HERO */
.hero-action-cards {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-w-wide);
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    padding: 15px 0;
    /* More vertical padding */
}

.hero-action-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    color: #333;
}

.ha-icon {
    width: 32px;
    height: 32px;
    background-color: #000;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.ha-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 45%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.ac-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.ac-arrow {
    margin-top: auto;
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-surface);
    line-height: 30px;
    transition: 0.3s;
}

.action-card:hover .ac-arrow {
    background: var(--color-primary);
    color: white;
}

/* NEWS */
.news-area {
    margin: 30px auto;
    /* Reduced margin */
    max-width: 800px;
    background: white;
    border-radius: 0;
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: none;
}

.news-header {
    background: var(--color-surface);
    padding: 20px 30px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-header h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.5rem;
}

.news-list {
    padding: 10px 30px;
    /* Reduced vertical padding */
    height: 180px;
    overflow-y: auto;
}

.news-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    column-gap: 15px;
    align-items: baseline;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.news-item:hover {
    background-color: var(--color-bg-alt);
    padding-left: 25px;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    grid-column: 1 / 2;
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.news-title {
    grid-column: 2 / 3;
    font-weight: bold;
    color: var(--color-text);
}

.news-body {
    grid-column: 2 / 3;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-top: 8px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .news-item {
        grid-template-columns: 1fr;
        row-gap: 5px;
    }
    .news-date, .news-title, .news-body {
        grid-column: 1 / -1;
    }
    .news-body {
        margin-top: 0;
    }
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.feature-card::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
}

.feature-card::before {
    top: 0;
    left: 0;
    border-top: 6px solid #000;
    border-left: 6px solid #000;
}

.feature-card::after {
    bottom: 0;
    right: 0;
    border-bottom: 6px solid #000;
    border-right: 6px solid #000;
}

.fc-num {
    font-family: 'Shippori Mincho', serif;
    font-size: 5rem;
    color: #000;
    line-height: 1;
    font-weight: 400;
    margin-right: 30px;
    flex-shrink: 0;
    position: relative;
}

.fc-content {
    border-left: 2px solid #999;
    padding-left: 30px;
}

.fc-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.fc-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* SCHEDULE */
.schedule-box {
    background: white;
    padding: 50px;
    border-radius: 0;
    box-shadow: none;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid var(--color-border);
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
}

.schedule-table th {
    background-color: var(--color-surface);
    font-weight: 500;
    color: var(--color-text-light);
}

.schedule-table .time-col {
    font-weight: 700;
    background-color: var(--color-surface);
}

.circle {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.triangle {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.star {
    color: #f59e0b;
    font-size: 1.2rem;
}

.dash {
    color: var(--color-text-light);
}

.schedule-notes {
    color: var(--color-text-light);
    line-height: 2;
    font-size: 0.95rem;
    background: var(--color-surface);
    padding: 20px;
    border-radius: var(--radius-sm);
}

/* FOOTER */
.footer {
    background-color: var(--color-surface);
    padding: 60px 0 30px;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-info img {
    height: 45px;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.3;
    margin-bottom: 5px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.fl-col h5 {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.fl-col ul {
    list-style: none;
}

.fl-col li {
    margin-bottom: 10px;
}

.fl-col a {
    color: var(--color-text-light);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.fl-col a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.85rem;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   7. INDIVIDUAL PAGE SPECIFIC STYLES
   ========================================================================== */

/* --- About Us Page --- */
.about-section {
    margin-bottom: 60px;
}

/* --- About Us Page Specific Features --- */
.about-features {
    grid-template-columns: 1fr;
    gap: 60px;
    margin-top: 40px;
}

.about-features .feature-card {
    align-items: flex-start;
    gap: 30px;
    padding: 50px 40px;
    border: none;
}

.about-features .feature-card:hover {
    transform: none;
}

.about-features .feature-card::before {
    border-top: 4px solid #333;
    border-left: 4px solid #333;
}

.about-features .feature-card::after {
    border-bottom: 4px solid #333;
    border-right: 4px solid #333;
}

.about-features .fc-num {
    font-size: 4rem;
    color: #333;
    width: 60px;
    text-align: center;
}

.about-features .fc-content {
    border-left: 1px solid #ccc;
    padding-left: 40px;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.about-features .fc-text-wrap {
    flex: 1;
}

.about-features .fc-content h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.about-features .fc-content p {
    color: var(--color-text);
    line-height: 1.8;
}

.about-features .fc-content p.feature-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: -10px;
    margin-bottom: 15px;
}

.about-features .fc-image-wrap {
    width: 250px;
    flex-shrink: 0;
    padding-top: 10px;
}

.about-features .fc-image-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.about-features .feature-links {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #cbd5e1;
    font-size: 0.9rem;
}

.about-features .feature-links a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 5px;
}

.about-features .feature-links a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}


.greeting-content {
    background: var(--color-surface);
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
}

.greeting-text p {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.greeting-text p:last-child {
    margin-bottom: 0;
}

.doctor-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
    border-top: 5px solid var(--color-primary);
}

.doctor-photo-area {
    flex: 0 0 350px;
}

.doctor-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: #e2e8f0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #64748b;
    font-weight: 500;
}

.doctor-photo-placeholder .placeholder-note {
    font-size: 0.8rem;
    margin-top: 10px;
    font-weight: normal;
}

.doctor-info {
    flex: 1;
    min-width: 300px;
}

.doctor-role {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.doctor-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-surface);
    padding-bottom: 15px;
}

.doctor-name-kana {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-left: 10px;
    font-weight: 400;
}

.doctor-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-block h4 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-block h4::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 18px;
    background: var(--color-accent);
    border-radius: 3px;
}

.history-list,
.qualification-list {
    list-style: none;
}

.history-list li,
.qualification-list li {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: var(--color-text);
}

.history-list li:last-child,
.qualification-list li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-catch {
        font-size: 2.5rem;
    }

    .action-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 0 2%;
    }

    .action-card {
        padding: 30px 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        gap: 60px;
    }

    .about-features .feature-card {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
    }

    .about-features .fc-num {
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 5rem;
        font-weight: normal;
        margin: 0 auto 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #d1d5db;
        padding-bottom: 15px;
        line-height: 1;
        color: #111;
    }

    .about-features .fc-content {
        border-left: none;
        padding-left: 0;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .about-features .fc-text-wrap {
        width: 100%;
    }

    .about-features .fc-image-wrap {
        width: 100%;
        max-width: 300px;
        margin: 10px auto 0;
    }

}

@media (max-width: 768px) {
    body.no-scroll {
        overflow: hidden;
    }

    .header-inner {
        height: 70px;
        padding: 0 15px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .logo-area img {
        height: auto;
        max-height: 35px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 0 120px 0;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 998;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-item {
        font-size: 1.2rem;
        border-right: none;
        border-left: none !important;
        border-bottom: 1px solid #d1d5db;
        width: 100%;
        text-align: center;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .nav-item:first-child {
        border-top: 1px solid #d1d5db;
    }

    .hero {
        margin-top: 70px;
        height: 50vh;
    }

    .hero-overlay {
        background: rgba(255, 255, 255, 0.7);
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        padding-left: 0;
    }

    .action-cards {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .floating-side {
        top: auto;
        bottom: 0;
        right: 0;
        width: 100%;
        transform: none;
        flex-direction: row;
    }

    .floating-btn {
        width: 50%;
        height: 60px;
        writing-mode: horizontal-tb;
        border-radius: 0;
        margin-bottom: 0;
    }

    .floating-btn:hover {
        width: 50%;
        filter: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .schedule-box {
        padding: 20px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 8px;
        font-size: 0.9rem;
    }
}

/* === ANIMATIONS & EFFECTS === */
/* Animations - Disabled per user request */
.fade-in {
    opacity: 1;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 70px;
}

/* === INTERNAL PAGES STYLES (Generated by SSG) === */
.page-main {
    padding-top: 90px;
    min-height: calc(100vh - 300px);
}

.page-header {
    background: var(--color-surface);
    padding: 100px 0 30px;
    /* More top padding */
    text-align: left;
    /* Header on the left */
    border-bottom: 2px solid var(--color-border);
}

.page-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 2.22rem;
    color: var(--color-text);
    /* Use standard text color */
    margin-bottom: 15px;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--color-text-light);
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.breadcrumbs a {
    color: var(--color-primary);
}

.page-content-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 0;
    box-shadow: none;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

/* MARKDOWN BODY STYLES */
.markdown-body h1 {
    font-size: 2rem;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    margin: 40px 0 20px;
}

.markdown-body h2 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin: 30px 0 15px;
    padding-left: 15px;
    border-left: 5px solid var(--color-accent);
}

.markdown-body h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin: 25px 0 15px;
}

.markdown-body p {
    margin-bottom: 20px;
    line-height: 1.9;
    color: var(--color-text);
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.markdown-body li {
    margin-bottom: 10px;
    list-style-type: disc;
}

/* Excel Markdown Tables converted to styled tables */
.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
}

.markdown-body th {
    background-color: var(--color-surface);
    color: var(--color-text);
    font-weight: 700;
    text-align: left;
    padding: 15px;
    border: 1px solid var(--color-border);
}

.markdown-body td {
    padding: 15px;
    border: 1px solid var(--color-border);
    vertical-align: top;
}

.markdown-body tr:nth-child(even) {
    background-color: #fafbfc;
}

.markdown-body a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.markdown-body a:hover {
    color: var(--color-accent);
}

.markdown-body img {
    border-radius: 0;
    box-shadow: none;
    margin: 20px 0;
    max-width: 100%;
    height: auto;
}

/* Responsive Markdown Body */
/* Image Layouts */
.content-with-image {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.text-part {
    flex: 1;
}

.image-part {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-part img {
    width: calc(50% - 5px);
    /* Show in pairs if small */
    height: auto;
}

.img-container-below {
    margin: 2rem 0;
    text-align: center;
}

.img-below {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 768px) {
    .content-with-image {
        flex-direction: column;
        gap: 20px;
    }

    .image-part {
        width: 100%;
    }
}

/* Tile Navigation (Diagnosis Guide) */
.tile-nav-wrapper {
    margin: 3rem 0;
}

.tile-nav-wrapper h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    border-left: 5px solid var(--color-accent);
    padding-left: 15px;
    margin: 3rem 0 1.5rem;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
}

.tile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: #e6f0ff;
    /* 15% Blue */
    border-radius: 0;
    text-decoration: none !important;
    color: #000000 !important;
    /* Black font */
    transition: all 0.3s ease;
    border: 1px solid #cce0ff;
    text-align: center;
}

.tile-item:hover {
    transform: translateY(-5px);
    background: #c3d9ff;
    /* 30% Blue approx */
    color: #000000 !important;
}

.tile-item .tile-name {
    color: #000000 !important;
    text-decoration: none !important;
}

/* Text-only variant */
.tile-item-text {
    padding: 15px 10px;
    min-height: 60px;
}

.tile-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    isolation: isolate;
    /* Create new stacking context */
}

.tile-pictogram {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Makes white background appear transparent */
    background-color: transparent;
}


.tile-name {
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .tile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tile-item {
        padding: 15px 10px;
    }

    .tile-icon {
        width: 60px;
        height: 60px;
    }

    .tile-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .page-main {
        padding-top: 70px;
    }

    .page-header {
        padding: 40px 0 30px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-content-container {
        padding: 25px;
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .markdown-body table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Anchor Link Bar */
.anchor-nav {
    background: #f1f5f9;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 155px;
    /* Stick below header */
    z-index: 100;
}

.anchor-list {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.anchor-link {
    padding: 5px 20px;
    font-size: 0.95rem;
    border-right: 1px solid #cbd5e1;
    color: var(--color-text);
    font-weight: 500;
}

.anchor-link:first-child {
    border-left: 1px solid #cbd5e1;
}

.anchor-link:hover {
    color: var(--color-primary);
    background: #e2e8f0;
}

/* Map utility */
.map-container {
    height: 450px;
    width: 100%;
    margin: 20px 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Recruit Data List */
.recruit-list dt {
    background: var(--color-surface);
    padding: 15px 20px;
    font-weight: 700;
    border-left: 5px solid var(--color-primary);
    margin-top: 20px;
}

.recruit-list dd {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}



/* Facility Photo Grid */
.facility-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.facility-photo-item {
    text-align: center;
}

.facility-photo-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.facility-photo-caption {
    font-weight: bold;
    font-size: 1rem;
    color: var(--color-text);
}

/* Fee Table */
.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #fff;
}

.fee-table th,
.fee-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 20px;
    text-align: left;
}

.fee-table th {
    width: 70%;
    font-weight: normal;
    color: var(--color-text);
}

.fee-table td {
    width: 30%;
    font-weight: bold;
    text-align: right;
}

.fee-table tr:last-child th,
.fee-table tr:last-child td {
    border-bottom: none;
}

.medical-note {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 5px;
}
@media (max-width: 768px) {
    .anchor-nav {
        top: 70px;
    }

    .facility-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hero-action-cards {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 25px;
        gap: 15px;
    }

    .hero-action-card {
        justify-content: flex-start;
        width: 100%;
    }
}
