*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary: #660000;
    /* Deep Maroon */
    --secondary: #1a1a1a;
    /* Charcoal */
    --accent: #c5a059;
    /* Muted Gold */
    --bg-cream: #f9f7f2;
    --text-main: #2c2c2c;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Serif JP", "system-ui", serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .en {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo-text .jp {
    font-size: 0.7rem;
    color: var(--secondary);
    font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

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

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.3s;
    font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: #4d0000;
}

.btn-outline {
    border: 1px solid var(--white);
    color: var(--white);
    padding: 12px 30px;
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-line-large {
    background-color: #06C755;
    color: #fff;
    padding: 15px 60px;
    font-size: 1.1rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-line-large:hover {
    background-color: #05b34c;
    transform: translateY(-2px);
}

/* Hero */
.hero {
    height: 80vh;
    min-height: 500px;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 10, 10, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
    border-left: 5px solid var(--accent);
    padding-left: 40px;
}

.hero-sub {
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: "Hiragino Kaku Gothic ProN", sans-serif;
    color: var(--accent);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

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

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

.section-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 40px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 10px;
}

.text-center {
    text-align: center;
    width: 100%;
}

.text-white {
    color: var(--white) !important;
}

.mb-30 {
    margin-bottom: 30px;
}

/* About */
.about-flex {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-info {
    flex: 1;
}

.about-map {
    flex: 1;
}

.office-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
}

.info-list {
    margin-top: 30px;
}

.info-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.info-item dt {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.info-item dd {
    margin-left: 0;
}

.badge {
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: 10px;
    vertical-align: middle;
}

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

.card {
    background: var(--white);
    padding: 30px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
    font-size: 1.2rem;
}

.card p {
    font-size: 0.95rem;
    color: #555;
    font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

/* Fee */
.fee-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.fee-table th {
    background-color: var(--secondary);
    color: var(--white);
    padding: 20px;
    width: 30%;
    text-align: left;
}

.fee-table td {
    border: 1px solid #e0e0e0;
    padding: 20px;
    font-weight: bold;
}

.note {
    font-weight: normal;
    font-size: 0.8rem;
    color: #666;
}

.fee-note {
    text-align: right;
    font-size: 0.8rem;
    color: #666;
}

/* Contact */
.bg-dark {
    background-color: var(--primary);
    color: var(--white);
}

.contact-details {
    margin-bottom: 20px;
    font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

/* Footer */
.footer {
    background-color: #111;
    color: #888;
    padding: 40px 0;
    text-align: center;
    font-size: 0.8rem;
}

.footer-logo {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Mobile */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        /* Center header content */
    }

    .logo {
        margin-bottom: 15px;
        justify-content: center;
        /* Ensure logo content is centered */
    }

    .nav ul {
        flex-wrap: wrap;
        gap: 15px;
        padding: 0;
        justify-content: center;
    }

    .hero {
        height: auto;
        padding: 100px 0;
    }

    .hero-content {
        padding-left: 20px;
        border-left-width: 3px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-flex {
        flex-direction: column;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .fee-table-wrapper {
        overflow-x: auto;
        /* Allow scroll if content is wide */
    }

    .fee-table th,
    .fee-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        /* Reinforce box-sizing */
    }

    .fee-table th {
        text-align: center;
    }
}