:root {
    --primary-color: #001f3f; /* Dark Navy */
    --accent-color: #c5a059;  /* Gold-ish accent */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --text-main: #333333;
    --text-muted: #666666;
    --serif-font: 'Noto Serif JP', serif;
    --sans-font: 'Noto Sans JP', sans-serif;
    --container-width: 1100px;
}

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

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

body {
    font-family: var(--sans-font);
    color: var(--text-main);
    line-height: 1.8;
    background-color: var(--bg-white);
}

.serif {
    font-family: var(--serif-font);
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Header */
#site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

#site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Desktop Nav */
#main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

#main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
}

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

/* Hamburger Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

/* Mobile Nav State */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    #site-header .container {
        padding: 0 15px;
        justify-content: space-between;
    }

    .logo {
        margin-right: auto;
    }

    .logo img {
        height: 40px;
    }

    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s;
        z-index: 1000;
        padding-top: 80px;
        visibility: hidden;
        opacity: 0;
    }

    #main-nav.active {
        right: 0;
        visibility: visible;
        opacity: 1;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    #main-nav a {
        font-size: 18px;
    }

    /* Toggle Animation */
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Hero (Yokohama Version) */
#hero {
    height: 70vh;
    background: linear-gradient(rgba(0, 31, 63, 0.5), rgba(0, 31, 63, 0.2)), url('../images/hero_yokohama.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 0 10px rgba(0,0,0,0.4);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 0 1px 15px rgba(0,0,0,0.6), 0 0 8px rgba(0,0,0,0.4);
}

/* Sub-page Header */
.sub-hero {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.sub-hero h1 {
    font-size: 2rem;
    letter-spacing: 0.1em;
}

.breadcrumb {
    background: var(--bg-light);
    padding: 10px 0;
    font-size: 13px;
}

.breadcrumb .container {
    display: flex !important;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    max-width: var(--container-width) !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.breadcrumb .container > * {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--text-muted);
}

.breadcrumb span { color: var(--text-muted); }

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light { background-color: var(--bg-light); }

h2.serif {
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    color: var(--primary-color);
}

h2.serif::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

.text-center h2.serif::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-area img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

#philosophy h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

/* Strengths */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.strength-item {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.strength-item .icon {
    font-family: var(--serif-font);
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.strength-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Services */
.service-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-card {
    border: 1px solid #eee;
    padding: 35px;
    border-radius: 8px;
    background: #fff;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 8px 0;
    border-bottom: 1px solid #f9f9f9;
}

/* News */
.news-list { list-style: none; }
.news-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 20px;
}
.news-list .date { font-size: 13px; color: var(--text-muted); min-width: 90px; }
.news-list .category { font-size: 10px; background: var(--primary-color); color: #fff; padding: 2px 8px; border-radius: 3px; height: fit-content; }
.news-list a { text-decoration: none; color: var(--text-main); }

/* Table for Fees */
.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.fee-table th, .fee-table td {
    border: 1px solid #eee;
    padding: 15px;
    text-align: left;
}
.fee-table th { background: var(--bg-light); color: var(--primary-color); width: 250px; }

/* Map */
.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    filter: grayscale(0.2);
}

/* Footer */
#site-footer {
    padding: 60px 0 30px;
    background: #001226;
    color: #fff;
}

.footer-logo {
    height: 45px;
    filter: brightness(0) invert(1);
    margin-bottom: 25px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
}

.copyright {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 992px) {
    .grid, .strength-grid, .service-tabs {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .access-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 600px) {
    .news-list li { flex-direction: column; gap: 5px; }
}
