:root {
    --primary-color: #5AB08D; /* Green from the original site */
    --nav-bg: #E9E4D9; /* Beige nav background */
    --text-main: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --font-family: 'Noto Sans JP', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
    background-color: var(--white);
    padding-top: 1.5rem;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.logo .subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Navigation */
.global-nav {
    background-color: var(--nav-bg);
}

.nav-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-list a:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Hero Section */
.hero {
    height: 400px;
    background-image: url('../img/hero_image_jjp.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.85); /* Slightly transparent white overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.hero-subtext {
    font-size: 1rem;
    color: var(--text-main);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 5%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-item {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2.5rem 1rem;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.service-item:hover {
    opacity: 0.95;
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}

.service-item.empty {
    background-color: transparent;
    border: 2px dashed var(--border-color);
    box-shadow: none;
}
.service-item.empty:hover {
    transform: none;
}

/* Footer */
.site-footer {
    background-color: var(--nav-bg);
    padding: 3rem 0 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-info .subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-info p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.copyright {
    background-color: #d1ccbf;
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
}

/* Page Content Styles */
.page-main {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 5%;
    min-height: 50vh;
}

.page-content h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.page-content h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.page-content h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-content ul li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-content a:hover {
    text-decoration: none;
}

.about-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
}

.about-table th, .about-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.about-table th {
    background-color: rgba(90, 176, 141, 0.1);
    width: 25%;
}

/* Responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero {
        height: auto;
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .nav-list a {
        padding: 0.8rem 1rem;
    }
    .logo a {
        font-size: 1.5rem;
    }
}
