@charset "UTF-8";

/* ========================================================
   Rich, Elegant, Minimalist Aesthetics - Shiomi Hospital
======================================================== */

:root {
    --text-primary: #1a1e23;
    --text-secondary: #5a646e;
    --bg-color: #f7f9fa;
    --card-bg: rgba(255, 255, 255, 0.85);
}

body {
    margin: 0;
    padding: 0;
    padding-top: 85px; /* Offset for the fixed translucent top navigation */
    font-family: 'Shippori Mincho', 'Yu Mincho', 'Noto Serif JP', serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animations */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Containers */
.site-container {
    max-width: 840px;
    margin: 0 auto;
    padding: 3rem 1rem;
    position: relative;
    z-index: 1;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.site-header {
    text-align: center;
    margin-bottom: 4rem;
}

.site-title {
    font-size: 1.6rem;
    text-decoration: none;
    color: #1a1e23;
    letter-spacing: 0.25em;
    font-weight: 500;
    transition: color 0.4s ease;
}

.site-title:hover {
    color: #798695;
}

/* Main Navigation */
.main-nav {
    margin-top: 2rem;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    position: relative;
    padding-bottom: 0.3rem;
    transition: color 0.4s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.4s ease;
}

.main-nav a:hover {
    color: var(--text-primary);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    width: 100vw;
    height: 70vh;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -85px; /* Pull the hero section up to sit gracefully under the frosted nav */
    margin-bottom: 5rem;
    background-color: #dde4e9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    z-index: 0;
    filter: saturate(0.7) contrast(1.15) brightness(0.95);
    animation: fadeIn 2s ease forwards, slowZoom 25s ease-in-out infinite alternate;
}

.hero-copy {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 4rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    opacity: 0;
    animation: fadeUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
    transform: translateY(30px);
}

.hero-copy p {
    font-size: 2rem;
    color: #0c1014;
    letter-spacing: 0.25em;
    font-weight: 400;
    margin: 0;
    text-shadow: 0 4px 15px rgba(255,255,255,0.4);
}

/* Article */
.article {
    background: var(--card-bg);
    padding: 5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0,0,0,0.02);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.7);
    min-height: 400px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.article:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.06), 0 1px 5px rgba(0,0,0,0.03);
}

.article-header {
    margin-bottom: 3.5rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.article-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: #ccc;
}

.article-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.15em;
    text-align: center;
}

.article-body {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
}

.article-body h2 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-top: 3rem;
    border-left: 2px solid #aebac6;
    padding-left: 1rem;
    letter-spacing: 0.1em;
}

.article-body ul {
    list-style-type: square;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.8rem;
}

/* Footer */
.site-footer {
    text-align: center;
    margin-top: 7rem;
    padding-top: 3rem;
    font-size: 0.85rem;
    color: #a0aab5;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}

/* ========================================================
   Top Page Specific Enriched Content Styles
======================================================== */

.top-greeting {
    text-align: center;
    margin: 6rem 0;
    padding: 0 2rem;
    animation: fadeUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 1.0s;
}
.greeting-lead {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    letter-spacing: 0.25em;
    font-weight: 500;
}
.greeting-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 2.4;
    letter-spacing: 0.15em;
    margin-bottom: 3rem;
}
.signature {
    text-align: right;
    font-size: 0.95rem;
    letter-spacing: 0.4em;
    color: var(--text-primary);
    border-top: 1px solid rgba(0,0,0,0.1);
    display: inline-block;
    padding-top: 1rem;
    padding-right: 1rem;
}

.section-title {
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.35em;
    margin-bottom: 3.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.top-news {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.7);
    padding: 4rem;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    margin-bottom: 7rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 1.2s;
}
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-list li {
    border-bottom: 1px solid #eaeaea;
}
.news-list li:last-child {
    border-bottom: none;
}
.news-list a {
    display: flex;
    gap: 2.5rem;
    padding: 1.5rem 0;
    align-items: baseline;
    text-decoration: none;
    transition: background-color 0.4s ease, padding-left 0.4s ease;
}
.news-list a:hover {
    background-color: rgba(0,0,0,0.015);
    padding-left: 0.5rem;
}
.news-list li:last-child a {
    padding-bottom: 0;
}
.news-list time {
    color: #8c96a0;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.news-list span {
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: 0.08em;
    line-height: 1.7;
}

.top-features {
    animation: fadeUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 1.4s;
    margin-bottom: 5rem;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.feature-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    top: 0;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.1);
}
.feat-en {
    font-size: 0.8rem;
    color: #8c96a0;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.feat-jp {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0 0 1.2rem 0;
    letter-spacing: 0.15em;
    font-weight: 500;
}
.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin: 0;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .news-list li {
        flex-direction: column;
        gap: 0.5rem;
    }
}


/* ========================================================
   Shared document helper styles
======================================================== */
.doc-note-box {
    margin: 1.5rem 0 2rem;
    padding: 1rem 1.2rem;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(165, 177, 188, 0.35);
    border-left: 3px solid #a5b1bc;
    border-radius: 6px;
}

.doc-note-box p {
    margin: 0;
    font-size: 0.98rem;
}

.doc-table-lite {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem;
    font-size: 0.98rem;
    background: rgba(255,255,255,0.7);
}

.doc-table-lite th,
.doc-table-lite td {
    border-bottom: 1px solid rgba(180, 190, 198, 0.45);
    padding: 0.85rem 0.9rem;
    text-align: left;
    vertical-align: top;
}

.doc-table-lite th {
    width: 22%;
    color: var(--text-primary);
    font-weight: 500;
    background: rgba(242, 245, 247, 0.85);
}

.doc-table-lite tr:last-child th,
.doc-table-lite tr:last-child td {
    border-bottom: none;
}

.doc-table-lite--matrix th:first-child,
.doc-table-lite--matrix td:first-child {
    width: 18%;
}

.doc-tag {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    border: 1px solid rgba(160, 171, 181, 0.45);
    background: rgba(245, 247, 249, 0.95);
    color: #46515b;
    white-space: nowrap;
}

.doc-list-plain {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 2rem;
}

.doc-list-plain li {
    margin-bottom: 0.9rem;
    padding-left: 1.2rem;
    position: relative;
}

.doc-list-plain li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #93a0ac;
}

.doc-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 1.2rem;
}

.doc-inline-link {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.doc-subtle {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.doc-heading-small {
    margin-top: 2.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    .site-container {
        padding: 2rem 1rem;
    }
    .hero-copy {
        padding: 2rem 1.5rem;
        width: 85%;
    }
    .hero-copy p {
        font-size: 1.25rem;
    }
    .main-nav ul {
        gap: 1rem 1.5rem;
    }
    .article {
        padding: 2rem 1.25rem;
    }
    .top-greeting {
        padding: 0 1rem;
        margin: 3.5rem 0;
    }
    .top-news {
        padding: 2rem 1.25rem;
    }
    .hospital-info {
        padding: 1.5rem !important;
    }

    .doc-table-lite,
    .doc-table-lite tbody,
    .doc-table-lite tr,
    .doc-table-lite th,
    .doc-table-lite td {
        display: block;
        width: 100%;
    }

    .doc-table-lite th {
        border-bottom: none;
        padding-bottom: 0.2rem;
        background: transparent;
    }

    .doc-table-lite td {
        padding-top: 0.2rem;
        margin-bottom: 0.75rem;
    }
}

/* ========================================================
   Global Fiction Disclaimer Footer
======================================================== */
.global-disclaimer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.78rem;
    color: #a0aab5;
    line-height: 1.8;
    letter-spacing: 0.04em;
}
.global-disclaimer .disclaimer-copy {
    font-size: 0.72rem;
    color: #b8c0c8;
    margin-top: 0.3rem;
}

/* ========================================================
   Image Lightbox for Contents Pages
======================================================== */
.article-body img,
.content-section img {
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.article-body img:hover,
.content-section img:hover {
    opacity: 0.88;
    transform: scale(1.01);
}
.contents-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.82);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: contents-lb-in 0.25s ease;
}
.contents-lightbox.is-open {
    display: flex;
}
.contents-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 6px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
    object-fit: contain;
}
.contents-lightbox-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #ccc;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-align: center;
    max-width: 80vw;
}
@keyframes contents-lb-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
