/* Base Styles */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #e0e0e0;
    /* Light Gray text for dark mode */
}

/* Text Colors & Shadows */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* 
   Dark Theme Adjustments 
*/
body {
    background-image: url("images/bg.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    background-size: cover;
    background-color: #000;
}

.bg-black {
    background-color: rgba(0, 0, 0, 0.9) !important;
    /* Slightly transparent to let bg show through slightly or just ensure darkness */
    background-color: #000 !important;
    /* Keeping it solid for now as per "black base" request usually implies solid */
}

.bg-dark {
    background-color: #121212 !important;
}

.border-secondary {
    border-color: #333333 !important;
}

/* Narrower Container */
.container {
    max-width: 1200px !important;
}

/* La Fille mal gardée Styles */
.bg-fille-dark {
    background-color: #1f2d16;
    /* Dark Greenish for header */
    background: linear-gradient(135deg, #1f2d16 0%, #000000 100%);
    color: #a4cf58 !important;
    /* Light Green text */
    border-bottom: 1px solid #a4cf58;
}

.text-fille-accent {
    color: #8da000;
    /* Further darkened from #acc200 as per user request */
}

/* Update Midokoro Section for Fille */
.midokoro-fille-container {
    background-color: #c4a962;
    /* Gold color based on reference */
    padding: 30px;
    border-radius: 10px;
}

.card-midokoro {
    border: 1px solid #7e6b36;
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-midokoro:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.05);
    /* Subtle glow on dark */
    border-color: #d4e157;
    /* Highlight border on hover */
}

.card-midokoro .card-header-img {
    width: 100%;
    margin-bottom: 0px;
    /* Flush with content */
}

.card-midokoro-body {
    padding: 20px;
    color: #333;
    /* Dark text for readability on white card */
}

.card-midokoro-body h5 {
    color: #333;
    font-weight: bold;
}

/* Update Midokoro Section for Giselle */
.midokoro-giselle-container {
    background-color: #172554;
    /* Deep Blue (blue-950 approx) */
    padding: 30px;
    border-radius: 10px;
}

.card-midokoro-giselle {
    border: 1px solid #1d4ed8;
    /* Blue-700 */
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden;
    height: 100%;
}

.card-midokoro-giselle .card-header-img {
    width: 100%;
    margin-bottom: 0px;
}

.card-midokoro-giselle-body {
    padding: 20px;
    color: #333;
}

.card-midokoro-giselle-body h5 {
    color: #1e40af;
    /* Dark Blue Text */
    font-weight: bold;
}

/* Cast Image Hover Effect */
.cast-img-link {
    transition: transform 0.3s ease;
    display: block;
}

.cast-img-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.cast-img-link img {
    border: 2px solid #a4cf58;
    /* Fille accent color default (can override) */
    object-fit: cover;
}

.cast-img-link.giselle-cast img {
    border-color: #93c5fd;
    /* Giselle accent color */
}

.section-card-fille {
    border-top: 5px solid #d4e157 !important;
    background-color: #0a0a0a;
    /* Very dark grey, almost black */
}

/* Giselle Styles */
.bg-giselle-dark {
    background-color: #0f172a;
    /* Dark Blue */
    background: linear-gradient(135deg, #0f172a 0%, #000000 100%);
    color: #60a5fa !important;
    /* Light Blue text */
    border-bottom: 1px solid #60a5fa;
}

.text-giselle-accent {
    color: #93c5fd;
    /* Soft Blue */
}

/* Giselle Mime Section */
.mime-card {
    position: relative;
    border: 1px solid #143e62;
    /* Dark Blue Border */
    background-color: #fff;
    padding: 20px;
    border-radius: 0;
    height: 100%;
}

.mime-number {
    width: 30px;
    height: 30px;
    background-color: #1a4f7e;
    /* Dark Blue */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

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

.mime-title {
    font-weight: bold;
    color: #1a4f7e;
    margin: 0;
    font-size: 1.1rem;
}

.mime-img-container {
    border: 1px solid #143e62;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 10px;
}

.mime-img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    display: block;
}

.mime-text-container {
    border: 1px solid #143e62;
    border-radius: 5px;
    padding: 10px;
    text-align: left;
}

.mime-text {
    margin: 0;
    color: #333;
    font-size: 0.9rem;
}

.section-card-giselle {
    border-top: 5px solid #60a5fa !important;
    background-color: #0a0a0a;
}

/* Hover Effects */
.card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.05) !important;
    /* Subtle glow on dark */
}

/* Navigation Menu */
#menu {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Navigation Menu Buttons Hover Effect */
#menu-list .btn {
    transition: all 0.3s ease;
}

#menu-list .btn:hover {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}

#menu-list .btn:hover small {
    color: #000 !important;
}

/* Correlation Diagram Clickable Areas */
.soukanzu-map {
    position: relative;
    user-select: none;
}

.soukanzu-map img {
    display: block;
    width: 100%;
    height: auto;
}

.soukanzu-hotspot {
    position: absolute;
    display: block;
    z-index: 5;
    /* transition: background-color 0.2s ease; */ /* Optional: for debugging/hover effect */
    cursor: pointer;
}

.soukanzu-hotspot:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle hint on hover */
}


/* Fancybox：拡大表示時の下テキスト（caption）を中央揃え */
.fancybox__container .fancybox__caption,
.fancybox__container .fancybox__caption__body {
  text-align: center !important;
}

/* ついでに「幅が内容分だけ」問題を潰す保険（環境によって効きます） */
.fancybox__container .fancybox__caption__body {
  width: 100%;
}


