/* 
===============
CSS Variables
===============
*/
:root {
    --primary-color: #0D9488;  /* Teal - clean, reassuring */
    --primary-light: #F0FDF4;  /* Very light green/teal background */
    --primary-dark: #0F766E;
    
    --accent-color: #008080;   /* Secondary strong teal */
    --accent-light: #E6F2F2;
    
    --text-color: #334155;
    --text-light: #64748B;
    --text-white: #FFFFFF;
    
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    
    --font-main: 'Noto Sans JP', sans-serif;
    --font-heading: 'Inter', 'Noto Sans JP', sans-serif;
    
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

/* 
===============
Reset & Base
===============
*/
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto; /* Handled by GSAP usually, but safe fallback */
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

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

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

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

/* 
===============
Typography
===============
*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.section-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
    background: transparent;
}

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

/* 
===============
Header & Nav
===============
*/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.btn-contact-nav {
    background-color: var(--accent-light);
    color: var(--primary-color) !important;
    padding: 10px 24px;
    border-radius: 30px;
    transition: all 0.3s;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* 
===============
Hero Section
===============
*/
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px; /* Offset for header */
}

/* Placeholder for rich BG image */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-white) 100%);
    z-index: -1;
}

/* Add a subtle decorative shape */
.hero-bg::after {
    content: '';
    position: absolute;
    right: -10%;
    top: 20%;
    width: 60vmax;
    height: 60vmax;
    background: radial-gradient(circle, rgba(13,148,136,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-main {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.scroll-indicator::after {
    content: '';
    width: 2px;
    height: 40px;
    background-color: var(--primary-color);
    animation: scrollAnimation 2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes scrollAnimation {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0;}
    50% { transform: scaleY(1); transform-origin: top; opacity: 1;}
    50.1% { transform: scaleY(1); transform-origin: bottom; opacity: 1;}
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0;}
}

/* 
===============
News Section
===============
*/
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    border-bottom: 1px solid #E2E8F0;
}

.news-item a {
    display: flex;
    align-items: center;
    padding: 24px 0;
    gap: 30px;
    color: var(--text-color);
}

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

.news-item a:hover .news-title {
    color: var(--primary-color);
}

.news-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
    width: 200px;
}

.news-date {
    color: var(--text-light);
}

.news-category {
    background-color: var(--accent-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

/* 
===============
Features (About)
===============
*/
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.feature-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 
===============
Services
===============
*/
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.service-row {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 40px;
    transition: all 0.3s;
}

.service-row:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.1);
}

.service-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.service-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 12px;
}

.service-desc {
    color: var(--text-color);
}

/* 
===============
Staff Section
===============
*/

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.staff-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.staff-img-placeholder {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-color: var(--primary-light);
}

.staff-img-placeholder img.staff.profile-png {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.staff-img-placeholder::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    z-index: 1;
    pointer-events: none;
}

.staff-info {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.staff-name {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.staff-role {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-top: 4px;
    font-weight: 500;
}

.staff-message {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 
===============
Documents
===============
*/
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.document-link {
    display: flex;
    align-items: center;
    padding: 24px 30px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    color: var(--text-color);
    transition: all 0.3s;
}

.document-link:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
    transform: translateX(5px);
}

.doc-icon {
    font-size: 1.5rem;
    margin-right: 16px;
}

.doc-title {
    font-weight: 500;
}

/* 
===============
Contact
===============
*/
.contact-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 24px;
}

.contact-desc {
    margin-bottom: 40px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.contact-tel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tel-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.tel-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.tel-number:hover {
    color: var(--accent-light);
}

.tel-hours {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Footer Details */
.site-footer {
    background: #1E293B;
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-title {
    color: white;
    margin-bottom: 20px;
}

.footer-address {
    color: #94A3B8;
    line-height: 1.8;
}

.footer-nav-links ul {
    columns: 2;
    column-gap: 40px;
}

.footer-nav-links a {
    color: #94A3B8;
    display: block;
    margin-bottom: 12px;
}

.footer-nav-links a:hover {
    color: white;
}

.site-info {
    text-align: center;
    color: #64748B;
    border-top: 1px solid #334155;
    padding-top: 40px;
}

/* 
===============
Media Queries
===============
*/
@media (max-width: 768px) {
    .header-inner {
        position: relative;
    }
    
    .nav-menu {
        display: none; /* Hide for now, would need JS toggle */
    }
    
    .menu-toggle {
        display: block;
    }
    
    .news-item a {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .services-list {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        flex-direction: column;
    }
}
