
:root {
    /* 旧来の水色に近く、白背景でも WCAG AA のコントラストを満たす青。 */
    --medical-blue: #00809f;
    --medical-green: #7fd6c2;   
    /* 明るさを保ちつつ、白背景の通常文字でも WCAG AA を満たす緑。 */
    --heading-green: #1b9279;
    --accent-red: #ff4757;      
    --bg-light: #f4f7f6;        
    --text-dark: #2f3542;      
    --white: #ffffff;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10001;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--white);
    color: var(--heading-green);
    font-weight: 700;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--heading-green);
    outline-offset: 3px;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.dna-bg {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M20 10 Q 50 50 80 10 M20 90 Q 50 50 80 90" stroke="rgba(0, 168, 204, 0.04)" stroke-width="2" fill="none"/></svg>');
}

.dna-bg {
    background-image: none !important;
}

.dna-animation-container {
    position: absolute;
    inset: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none; /* クリック操作妨げないように */
    background: var(--bg-light);
}

.content-background {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}

.content-background > :not(.dna-animation-container) {
    position: relative;
    z-index: 1;
}

.dna-strand {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 12px;
    perspective: 1000px;
    opacity: 0.2;
    filter: blur(1.5px);
}

/* DNAの塩基対*/
.dna-base-pair {
    position: relative;
    width: 160px;
    height: 2px;
    background: rgba(0, 168, 204, 0.4);
    animation: rotateDNA 4s linear infinite;
    transform-style: preserve-3d;
}

/* 塩基 */
.dna-base-pair::before,
.dna-base-pair::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dna-base-pair::before {
    left: 0;
    background: var(--medical-blue);
    box-shadow: 0 0 10px var(--medical-blue);
}

.dna-base-pair::after {
    right: 0;
    background: var(--medical-green);
    box-shadow: 0 0 10px var(--medical-green);
}

/* アニメーション */
@keyframes rotateDNA {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}



#loader {
    position: fixed;
    inset: 0;
    background: #001a20; 
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#loader.loaded {
    opacity: 0;
    visibility: hidden;
}


#loader {
    position: fixed;
    inset: 0;
    background: #001a20; 
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s;
    overflow: hidden;
}

#loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.doctor-silhouette-bg {
    position: absolute;
    bottom: -10vh;
    right: 5vw;
    font-size: 85vh; 
    color: rgba(127, 214, 194, 0.15); 
    text-shadow: 0 0 50px rgba(127, 214, 194, 0.3);
    pointer-events: none;
    
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    animation: doctorBgReveal 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes doctorBgReveal {
    0% { opacity: 0; transform: translateY(50px) scale(0.95); filter: blur(20px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.loader-content {
    position: relative;
    z-index: 10;
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    font-weight: 300;
    opacity: 0;
    animation: fadeInText 1s forwards, textGlowPulse 2s 1s infinite alternate;
}

@keyframes fadeInText {
    0% { opacity: 0; letter-spacing: 0.1em; }
    100% { opacity: 0.8; letter-spacing: 0.3em; }
}

@keyframes textGlowPulse {
    0% { text-shadow: 0 0 0px white; opacity: 0.8; }
    100% { text-shadow: 0 0 15px rgba(127, 214, 194, 0.8); opacity: 1; }
}

@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loader-content p {
    color: white;
    font-size: 1rem;
    letter-spacing: 0.3em;
    font-weight: 300;
    opacity: 0.8;
    animation: textGlow 1.8s infinite;
}

@keyframes textGlow {
    0%, 100% { opacity: 0.4; text-shadow: 0 0 0px white; }
    40%, 60% { opacity: 1; text-shadow: 0 0 10px rgba(0, 168, 204, 0.8); }
}

.stetho-menu-container {
    position: fixed;
    z-index: 10000;
    pointer-events: none; 
}

.stetho-chestpiece {
    position: fixed;
    top: 25px; 
    left: 25px;
    width: 60px; 
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #444 25%, #e0e0e0 30%, #f4f4f4 100%);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    display: flex; 
    justify-content: center; 
    align-items: center;
    cursor: pointer;
    opacity: 0;
    padding: 0;
    border: 0;
    font: inherit;
    transition: background 0.3s, border 0.3s;
}

.stetho-tube {
    position: fixed;
    top: 55px; 
    left: 55px;
    width: 40vw; 
    height: 60vh;
    border: 10px solid #2f3542;
    border-top: none;
    border-left: none;
    border-radius: 0 0 100px 0;
    opacity: 0;
}

.stetho-menu-container.start-anim .stetho-chestpiece {
    animation: chestpieceEnter 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.stetho-menu-container.start-anim .stetho-tube {
    animation: tubeEnter 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes chestpieceEnter {
    0% { transform: translate(calc(50vw - 55px), calc(50vh - 55px)) scale(1.5); opacity: 0; }
    10% { transform: translate(calc(50vw - 55px), calc(50vh - 55px)) scale(1.5); opacity: 1; }
    45% { transform: translate(0, 0) scale(1); opacity: 1; } /* 左上に当たる */
    55% { transform: translate(0, 0) scale(1.15); box-shadow: 0 0 40px var(--medical-green); } /* ドクンッ！と鼓動 */
    70% { transform: translate(0, 0) scale(1); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
    100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 1; 
        background: rgba(255, 255, 255, 0.85);
        border: 1px solid rgba(255,255,255,0.9);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
}

@keyframes tubeEnter {
    0% { transform: translate(calc(50vw - 55px), calc(50vh - 55px)) scale(1.5); opacity: 0; }
    10% { transform: translate(calc(50vw - 55px), calc(50vh - 55px)) scale(1.5); opacity: 1; }
    45% { transform: translate(0, 0) scale(1); opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translate(0, 0) scale(1); } 
}

.stetho-menu-container.ready {
    pointer-events: auto; 
}

.stetho-menu-container.ready .stetho-chestpiece {
    opacity: 1;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.stetho-menu-container.ready .stetho-tube {
    display: none; 
}

.hamburger-lines {
    display: flex; 
    flex-direction: column; 
    gap: 5px;
    opacity: 0; 
}
.stetho-menu-container.start-anim .hamburger-lines {
    animation: showHamburger 2.5s forwards;
}
.stetho-menu-container.ready .hamburger-lines {
    opacity: 1;
}

@keyframes showHamburger {
    0%, 75% { opacity: 0; }
    100% { opacity: 1; }
}

.hamburger-lines span {
    width: 24px;
    height: 3px;
    background: var(--heading-green);
    border-radius: 3px;
    transition: 0.3s;
}

.stetho-menu-container.menu-open .hamburger-lines span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.stetho-menu-container.menu-open .hamburger-lines span:nth-child(2) {
    opacity: 0;
}
.stetho-menu-container.menu-open .hamburger-lines span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.fullscreen-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(0, 26, 32, 0.95); 
    backdrop-filter: blur(15px);
    z-index: 9999; 
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-nav.active {
    opacity: 1;
    visibility: visible;
}

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

.nav-title {
    color: var(--medical-green);
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 50px;
    letter-spacing: 0.2em;
}

.nav-content ul { list-style: none; }

.nav-content li {
    margin-bottom: 30px;
    transform: translateY(20px);
    opacity: 0;
}

.fullscreen-nav.active .nav-content li {
    animation: navItemReveal 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.fullscreen-nav.active .nav-content li:nth-child(1) { animation-delay: 0.2s; }
.fullscreen-nav.active .nav-content li:nth-child(2) { animation-delay: 0.3s; }

@keyframes navItemReveal {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.nav-content a {
    color: var(--white);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    text-decoration: none;
    transition: 0.3s;
    letter-spacing: 0.1em;
}

.nav-content a:hover {
    color: var(--medical-green);
    text-shadow: 0 0 15px rgba(127, 214, 194, 0.6);
}
.nav-menu ul { display: flex; list-style: none; gap: 20px; }
.nav-menu a { text-decoration: none; color: var(--text-dark); font-weight: bold; font-size: 0.9rem; transition: 0.3s; position: relative; }
.nav-menu a:hover { color: var(--medical-green); }
.nav-menu a::after { content: ""; position: absolute; bottom: -5px; left: 50%; width: 0; height: 2px; background: var(--medical-green); transition: 0.3s; transform: translateX(-50%); }
.nav-menu a:hover::after { width: 100%; }


.hero-fullscreen {
    height: 100vh;
    width: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto minmax(96px, 1fr);
    position: relative;
    overflow: hidden;
    margin-top: 0; 
    padding-top: 0;
    min-width: 0;
}

.hero-slideshow {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlide 15s infinite; 
    transform: scale(1.16);
    filter: blur(4px);
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

@keyframes fadeSlide {
    0%   { opacity: 0; transform: scale(1.16); }
    10%  { opacity: 1; transform: scale(1.12); }
    33%  { opacity: 1; transform: scale(1.08); }
    43%  { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 30, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    grid-row: 2;
    align-self: center;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    width: 100%;
    min-width: 0;
}

.festival-logo-text {
    margin-bottom: 30px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.festival-logo-text .univ-name {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: 0.3em;
    font-weight: bold;
    color: var(--medical-green);
    margin-bottom: 10px;
}

.festival-logo-text h2 {
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1.2;
    margin: 0;
}

.festival-logo-text h2 span {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 300;
}

.festival-date p {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    letter-spacing: 0.2em;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    display: inline-block;
    padding: 15px 40px;
    border-top: 1px solid rgba(255,255,255,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(5px); 
    background: rgba(255,255,255,0.05);
}

.hero-scroll {
    position: relative;
    grid-row: 3;
    align-self: end;
    justify-self: center;
    bottom: auto;
    left: auto;
    transform: none;
    margin-bottom: 18px;
    min-width: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    opacity: 0.8;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
}

.iv-drip-container {
    position: relative;
    width: 30px;
    height: 55px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.iv-tube {
    width: 2px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    position: absolute;
    top: 0;
}

.iv-drop {
    position: absolute;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--medical-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--medical-green), 0 0 20px var(--medical-green);
    animation: ivDropAnim 2.5s infinite;
}

.iv-ripple {
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 6px;
    border: 2px solid var(--medical-green);
    border-radius: 50%;
    opacity: 0;
    animation: ivRippleAnim 2.5s infinite;
}

@keyframes ivDropAnim {
    0% { top: 8px; opacity: 0; transform: scale(0.2); }
    15% { top: 8px; opacity: 1; transform: scale(1); }       
    35% { top: 8px; opacity: 1; transform: scale(1.1); }    
    50% { top: 40px; opacity: 1; transform: scale(0.7, 1.3); } 
    55% { top: 45px; opacity: 0; transform: scale(1.5, 0.5); }
    100% { top: 45px; opacity: 0; }
}

@keyframes ivRippleAnim {
    0%, 48% { opacity: 0; transform: scale(0.3); }
    55% { opacity: 0.8; transform: scale(1); border-width: 2px; } 
    75% { opacity: 0; transform: scale(2.5); border-width: 0px; }
    100% { opacity: 0; }
}

.section { padding: clamp(48px, 8vw, 64px) 0; }
.bg-light { background-color: var(--bg-light); }
.container { width: 90%; max-width: 1000px; margin: 0 auto; }
.section-title { text-align: center; color: var(--heading-green); margin-bottom: 40px; }
.section-title i { margin-right: 12px; }

.access-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.access-map { border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.highlight-box { background: #fff5f5; padding: 20px; border-left: 5px solid var(--accent-red); border-radius: 4px; }
.highlight-box h4 { color: var(--accent-red); margin-bottom: 10px; }

.project-card { background: white; border-radius: 15px; border-top: 5px solid var(--medical-blue); padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.btn-sm { background: var(--medical-blue); color: white; text-decoration: none; padding: 8px 20px; border-radius: 20px; font-weight: bold; }
.tab-btn { padding: 10px 25px; border: 2px solid var(--medical-blue); background: transparent; color: var(--medical-blue); border-radius: 50px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.tab-btn.active { background: var(--medical-blue); color: white; }
.tab-content { display: none; }
.tab-content.active { display: block; }

.project-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.summary-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 168, 204, 0.1);
}

.summary-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 168, 204, 0.15);
}

.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.dental-img { background-image: url('https://images.unsplash.com/photo-1588776814546-1ffcf47267a5?auto=format&fit=crop&w=500&q=80'); }
.medical-img { background-image: url('https://images.unsplash.com/photo-1576091160550-2173dad99978?auto=format&fit=crop&w=500&q=80'); }
.stage-img { background-image: url('https://images.unsplash.com/photo-1501281668745-f7f57925c3b4?auto=format&fit=crop&w=500&q=80'); }

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--medical-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 30px 25px 25px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-icon {
    position: absolute;
    top: -25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medical-blue);
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid var(--medical-green);
}

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--medical-blue);
}

.card-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.location-tag {
    font-size: 0.8rem;
    color: var(--medical-blue);
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    color: #888;
    margin-top: -30px;
    margin-bottom: 50px;
    font-size: 0.95rem;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    border-top: 5px solid var(--medical-blue); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: bold;
}
.badge i { margin-right: 5px; }

.food { background: #ffa502; }    
.stage { background: #ff4757; }    
.exhibit { background: var(--medical-blue); } 
.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.project-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.location {
    font-size: 0.85rem;
    color: var(--medical-blue);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-center { text-align: center; }
.btn-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid var(--medical-blue);
    color: var(--medical-blue);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-outline:hover {
    background: var(--medical-blue);
    color: white;
}


.tab-area {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    flex: 1;
    max-width: 200px;
    padding: 12px;
    border: 2px solid var(--medical-blue);
    background: var(--white);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-btn .tab-day { font-size: 0.8rem; font-weight: bold; color: var(--medical-blue); }
.tab-btn .tab-date { font-size: 1.1rem; font-weight: 900; }

.tab-btn.active {
    background: var(--medical-blue);
}
.tab-btn.active .tab-day, .tab-btn.active .tab-date { color: var(--white); }

.medical-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline-card {
    display: flex;
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 6px solid var(--medical-green);
    transition: 0.3s;
}

.timeline-card:hover { transform: scale(1.02); }

.timeline-card.highlight { border-left-color: var(--medical-blue); }

.time-box {
    background: #f0f7f9;
    padding: 20px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px dashed #ddd;
}

.time-box .start { font-size: 1.4rem; font-weight: 900; color: var(--medical-blue); }
.time-box .duration { font-size: 0.75rem; color: #888; margin-top: 5px; }

.event-details { padding: 20px; flex-grow: 1; }

.event-category {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: bold;
    color: white;
}
.cat-ceremony { background: #6c757d; }
.cat-exhibit { background: var(--medical-green); }
.cat-special { background: #ff4757; }

.event-details h4 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text-dark); }
.event-place { font-size: 0.85rem; color: #666; display: flex; align-items: center; gap: 5px; }
.event-place i { color: var(--medical-blue); }


.access-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
    align-items: stretch;
}

.access-map-area {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: var(--white);
    height: 500px; 
}

.map-caption {
    padding: 15px;
    background: var(--white);
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #eee;
}

.access-details {
    display: flex;
    flex-direction: column;
    height: 500px;
    gap: 12px;
}

.access-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.access-tab {
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(23, 107, 91, 0.36);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    color: #176b5b;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.access-tab:hover,
.access-tab.active {
    background: var(--medical-green);
    color: #123d35;
}

.access-tab:focus-visible {
    outline: 3px solid rgba(23, 107, 91, 0.55);
    outline-offset: 2px;
}

.access-panel {
    display: none;
    flex: 1;
    margin: 0;
}

.access-panel.active {
    display: block;
}

.transport-item {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border-left: 5px solid var(--medical-blue);
}

.transport-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.transport-header i {
    font-size: 1.2rem;
    color: var(--medical-blue);
}

.transport-header h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.transport-content {
    padding-left: 32px;
    font-size: 0.9rem;
    color: #555;
}

.transport-content ul {
    list-style: none;
    margin-top: 8px;
}

.transport-content li {
    margin-bottom: 5px;
}

.transport-content strong {
    color: var(--medical-blue);
}

.sub-text {
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
}

/* 注意ボックス（黄色ベース） */
.transport-warning {
    display: flex;
    gap: 15px;
    background: #fff8db;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #e6b800;
    margin-top: 10px;
}

.warning-icon {
    font-size: 1.5rem;
    color: #8a5b00;
}

.warning-text h4 {
    color: #6b4500;
    font-size: 1rem;
    margin-bottom: 5px;
}

.warning-text p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

/* レスポンシブ */
@media (max-width: 900px) {
    .access-container {
        grid-template-columns: 1fr; /* スマホでは縦並び */
    }
    .access-map-area {
        height: 350px;
    }
    .access-details {
        height: auto;
    }
}

.sponsor-container {
    padding-bottom: 50px;
}

.sponsor-tier {
    margin-bottom: 60px;
    text-align: center;
}

.tier-title {
    display: inline-block;
    padding: 5px 25px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 30px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.tier-platinum { background: #e5e4e2; color: #555; border: 1px solid #ccc; }
.tier-gold { background: #fff9e6; color: #b8860b; border: 1px solid #f0e68c; }
.tier-silver { background: #f8f9fa; color: #777; border: 1px solid #ddd; }

.sponsor-grid {
    display: grid;
    gap: 20px;
    justify-content: center;
}

.grid-platinum { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-gold { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-silver { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.sponsor-item {
    background: var(--white);
    border-radius: 12px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: 0.3s;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: var(--text-dark);
}

.sponsor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 168, 204, 0.1);
    border-color: var(--medical-blue);
}

.sponsor-logo-placeholder {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ccc;
    margin-bottom: 5px;
}

.sponsor-name {
    font-size: 0.85rem;
    font-weight: bold;
}


.footer {
    background: #2f3542;
    color: #f1f2f6;
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    color: var(--medical-blue);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-title {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--medical-green);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contact-details p {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #ced4da;
}

.contact-details a {
    color: #ced4da;
    text-decoration: none;
    transition: 0.3s;
}

.contact-details a:hover {
    color: var(--medical-blue);
}

/* リンク集 */
.footer-links h4, .footer-sns h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    border-left: 3px solid var(--medical-blue);
    padding-left: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ced4da;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--medical-blue);
    padding-left: 5px;
}

/* SNSセクション */
.footer-sns p {
    font-size: 0.8rem;
    margin-bottom: 15px;
    color: #ced4da;
}

.sns-icons {
    display: flex;
    gap: 15px;
}

.sns-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sns-link:hover {
    transform: translateY(-3px);
}

.x-icon:hover { background: #000000; }
.ig-icon:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* フッター下部 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: #888;
}

/* スマホ対応 */
/* スマホ表示の微調整 */
@media (max-width: 768px) {
    .gateway-bg-frame {
        width: 92%; 
        height: 65vh; 
        max-height: 550px;
        border-radius: 15px; 
    }
    
    

    .festival-logo img {
        max-width: 200px;
        margin-bottom: 15px;
    }
    
    .festival-text h1 {
        font-size: 2rem; 
    }

    .gateway-scroll {
        bottom: 15px; /* スクロール案内の位置を少し上に */
    }
}


.bg-light {
    background-color: transparent !important;
}

/* 2. カード類を半透明*/
.project-card,
.timeline-card,
.access-map-area,
.map-caption,
.transport-item,
.sponsor-item,
.tab-btn {
    background: rgba(255, 255, 255, 0.7) !important; 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important; 
    box-shadow: 0 8px 32px rgba(0, 168, 204, 0.05);
}

.time-box {
    background: rgba(240, 247, 249, 0.6) !important;
}

.transport-warning {
    background: rgba(255, 248, 219, 0.88) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 91, 0, 0.45);
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 26, 32, 0.4); /* 背景を医療系ダークカラーで暗く */
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1; visibility: visible;
}

.modal-content {
    position: relative;
    width: 90%; max-width: 800px; max-height: 85vh;
    overflow-y: auto;
    
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border-radius: 20px; padding: 40px;
    
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute; top: 20px; right: 20px;
    background: rgba(0,0,0,0.05); border: none;
    font-size: 1.2rem; color: #666; cursor: pointer;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    transition: 0.3s;
}
.modal-close:hover {
    background: var(--accent-red); color: white; transform: rotate(90deg);
}

.modal-body h2 {
    color: var(--medical-blue); text-align: center; margin-bottom: 25px;
    border-bottom: 2px solid var(--medical-green); padding-bottom: 15px;
    font-size: 1.6rem;
}
.modal-body h3 {
    font-size: 1.1rem; color: var(--text-dark); margin: 25px 0 10px;
    border-left: 4px solid var(--medical-blue); padding-left: 10px;
}
.modal-body p, .modal-body li {
    font-size: 0.95rem; color: #444; line-height: 1.8; margin-bottom: 10px;
}
.modal-body ul { list-style: none; padding-left: 15px; }

.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(0, 168, 204, 0.3); border-radius: 10px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: rgba(0, 168, 204, 0.6); }

@media (max-width: 768px) {
    .modal-content { padding: 30px 20px; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.hero-content .festival-logo-text p,
.hero-content .festival-logo-text h2,
.hero-content .festival-date {
    opacity: 0;
    transform: translateY(30px);
}

.hero-content.animate .festival-logo-text p {
    animation: textReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.2s;
}
.hero-content.animate .festival-logo-text h2 {
    animation: textReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.4s;
}
.hero-content.animate .festival-date {
    animation: textReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.6s;
}

@keyframes textReveal {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.tab-btn.active {
    background: var(--medical-blue) !important;
    border-color: var(--medical-blue) !important;
}

.tab-btn.active .tab-day, 
.tab-btn.active .tab-date {
    color: var(--white) !important;
}

#loader { transition: opacity 1s ease, visibility 1s; }

.loader-content { transition: opacity 0.8s ease; }
#loader.show-doctor .loader-content { opacity: 0; }

.doctor-silhouette {
    position: absolute;
    bottom: -15vh;
    right: 5vw;
    font-size: 80vh; 
    color: rgba(127, 214, 194, 0.15); 
    text-shadow: 0 0 50px rgba(127, 214, 194, 0.2);
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

#loader.show-doctor .doctor-silhouette {
    opacity: 1;
    transform: translateY(0) scale(1);
}



@keyframes chestpieceEnter {
    0% { transform: translate(calc(50vw - 55px), calc(50vh - 55px)) scale(1.5); opacity: 0; }
    10% { transform: translate(calc(50vw - 55px), calc(50vh - 55px)) scale(1.5); opacity: 1; }
    45% { transform: translate(0, 0) scale(1); opacity: 1; } 
    50% { transform: translate(0, 0) scale(1.15); box-shadow: 0 0 40px var(--medical-green); } 
    65% { transform: translate(0, 0) scale(1); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
    100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 1; 
        background: rgba(255, 255, 255, 0.85);
        border: 1px solid rgba(255,255,255,0.9);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
}

@keyframes tubeEnter {
    0% { transform: translate(calc(50vw - 55px), calc(50vh - 55px)) scale(1.5); opacity: 0; }
    10% { transform: translate(calc(50vw - 55px), calc(50vh - 55px)) scale(1.5); opacity: 1; }
    45% { transform: translate(0, 0) scale(1); opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translate(0, 0) scale(1); } 
}

.stetho-chestpiece::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--medical-green);
    opacity: 0;
}
.stetho-menu-container.start-anim .stetho-chestpiece::after {
    animation: chestRipple 2.5s forwards;
}

@keyframes chestRipple {
    0%, 43% { transform: scale(1); opacity: 0; }
    45% { opacity: 0.8; border-width: 5px; } /* 当たった瞬間に強く光る */
    65% { transform: scale(3.5); opacity: 0; border-width: 0px; } /* 広がって消える */
    100% { opacity: 0; }
}

.hero-logo {
    display: block;
    width: min(82vw, 620px);
    max-height: 38vh;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.95));
}

/* ヒーローロゴは日付と同じガラス調の楕円に収める。 */
.festival-logo-text {
    width: max-content;
    max-width: none;
    margin-inline: auto;
    padding: 2px 6px;
    border: 0;
    /* 上下は連続した曲線、左右の直線部はロゴ表示高の半分にする。
       背景はロゴの上下に各 14px あるため、縦半径を 25% とする。 */
    border-radius: 50% / calc(30%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: none;
}

.hero-logo {
    filter: none;
}

.about-intro {
    max-width: 760px;
    text-align: center;
}

#about {
    padding: 28px 0 24px;
}

#news {
    padding: 24px 0 40px;
}

#enjoy {
    padding-top: clamp(56px, 9vw, 76px);
}

#about .section-title,
#news .section-title {
    margin-bottom: 12px;
}

#about .section-subtitle,
#news .section-subtitle {
    margin-bottom: 0;
}

.about-copy {
    max-width: 640px;
    margin: 16px auto 0;
    padding: clamp(16px, 4vw, 24px);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 8px 24px rgba(0, 67, 82, 0.08);
    text-align: left;
    font-size: 1rem;
    line-height: 1.8;
}

.news-grid,
.enjoy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* NEWS はカードが増えてもページ幅を押し広げず、横方向に閲覧できる。 */
#news .news-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px;
    margin: -4px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

#news .news-card {
    flex: 0 0 min(82vw, 360px);
    scroll-snap-align: start;
}

.news-card,
.enjoy-grid article {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 24px rgba(0, 67, 82, 0.08);
}

.news-card > p:first-child {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.8rem;
    color: #52616b;
}

.news-card span {
    padding: 2px 8px;
    border-radius: 999px;
    background: #dff5ef;
    color: #176b5b;
    font-weight: 700;
}

.news-card h3,
.news-card h2,
.enjoy-grid h3 {
    margin: 10px 0 8px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.news-card > p:last-child,
.enjoy-grid p {
    color: #52616b;
    font-size: 0.9rem;
}

.enjoy-grid article {
    text-align: center;
}

.enjoy-grid i {
    color: var(--medical-blue);
    font-size: 2rem;
}

.section-action {
    margin-top: 18px;
    text-align: center;
}

.app-link-pending {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    color: #52616b;
    background: rgba(255, 255, 255, 0.7);
}

.news-page {
    min-height: 100vh;
    padding: 48px 0 80px;
    background: var(--bg-light);
}

.news-page h1 {
    margin-top: 24px;
    color: #176b5b;
    text-align: center;
}

.back-link { color: #176b5b; }

@media (max-width: 768px) {
    .enjoy-grid {
        grid-template-columns: 1fr;
    }
}

.festival-theme {
    width: max-content;
    max-width: calc(100vw - 32px);
    margin: 0 auto clamp(32px, 3vh, 32px);
    color: var(--white);
    font-size: clamp(1.25rem, 3.3vw, 1.9rem);
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.45;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.festival-theme-line {
    display: block;
    white-space: nowrap;
}

.festival-theme-line-first {
    text-align: left;
    transform: translateX(-8%);
}

.festival-theme-line-second {
    text-align: right;
    transform: translateX(8%);
}

.festival-theme span {
    display: inline-block;
    color: var(--white);
    animation: theme-letter-bounce 4.2s ease-in-out infinite;
    animation-delay: calc(var(--letter-index) * 0.11s);
}

@keyframes theme-letter-bounce {
    0%, 13%, 100% {
        color: var(--white);
        transform: translateY(0) scale(1);
    }
    5% {
        color: var(--medical-green);
        transform: translateY(-0.34em) scale(1.08, 0.92);
    }
    9% {
        color: var(--medical-green);
        transform: translateY(0.06em) scale(0.96, 1.04);
    }
}

/* ローダーは小さい画面でも収まる右下の装飾にする。 */
.doctor-silhouette-bg {
    right: clamp(-28px, -5vw, -10px);
    bottom: clamp(-38px, -7vh, -14px);
    width: clamp(14rem, 62vmin, 34rem);
    font-size: 0;
}

.loader-doctor-icon {
    display: block;
    width: 100%;
    height: auto;
    filter: invert(84%) sepia(19%) saturate(550%) hue-rotate(115deg) brightness(93%) contrast(92%) drop-shadow(0 0 50px rgba(127, 214, 194, 0.45));
}

@keyframes chestpieceEnter {
    0%, 20% {
        transform: translate(var(--stetho-origin-x, calc(100vw - 170px)), var(--stetho-origin-y, calc(100vh - 235px))) scale(1.25);
        opacity: 1;
    }
    68% { transform: translate(0, 0) scale(1); opacity: 1; }
    72% { transform: translate(0, 0) scale(1.12); box-shadow: 0 0 40px var(--medical-green); }
    86%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

@keyframes tubeEnter {
    0%, 20% {
        transform: translate(var(--stetho-origin-x, calc(100vw - 170px)), var(--stetho-origin-y, calc(100vh - 235px))) scale(1.25);
        opacity: 1;
    }
    68% { opacity: 1; }
    86%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
}

@media (min-aspect-ratio: 1 / 1) {
    .hero-fullscreen {
        grid-template-rows: minmax(0, 1fr) auto minmax(82px, 0.65fr);
    }

    .hero-logo {
        width: min(76vw, 860px);
        max-height: 42vh;
    }
}

@media (max-aspect-ratio: 1 / 1) {
    .festival-logo-text {
        width: calc(100vw + 120px);
        margin-left: 50%;
        margin-right: 0;
        padding-inline: 0;
        transform: translateX(-50%);
    }

    .hero-scroll { font-size: 0.65rem; }

    .iv-drip-container {
        height: 42px;
        margin-top: 4px;
    }
}
