/* Variables */
:root {
    --color-primary: #1A2B4C; /* Deep Navy from ES-Payroll */
    --color-secondary: #2C3E50;
    --color-accent: #C5A059; /* Moonlight Gold */
    --color-accent-hover: #b08d48;
    --color-bg: #F4F7F9;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-serif: 'Zen Old Mincho', serif;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }

/* Typography */
h1, h2, h3 { font-weight: 700; color: var(--color-primary); }
.section-label {
    display: block;
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2rem; }

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}
.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* Header */
.header {
    background: rgba(26, 43, 76, 0.95);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon { color: var(--color-accent); }

.nav ul { display: flex; gap: 30px; align-items: center; }
.nav a { font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--color-accent); }
.btn-nav {
    border: 1px solid var(--color-accent);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--color-accent) !important;
}
.btn-nav:hover {
    background: var(--color-accent);
    color: #fff !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: linear-gradient(135deg, #1A2B4C 0%, #162238 100%);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
/* Abstract Moon Effect */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, rgba(26, 43, 76, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }
.hero-sub {
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 20px;
    font-weight: 500;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 30px;
}
.hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Problems */
.problems { background: #fff; }
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.problem-card {
    text-align: center;
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: 0.3s;
}
.problem-card:hover {
    box-shadow: var(--shadow-soft);
    border-color: transparent;
    transform: translateY(-5px);
}
.icon-box {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.problem-card h3 { font-size: 1.25rem; margin-bottom: 15px; }
.problem-card p { font-size: 0.95rem; color: var(--color-text-light); }

/* Bento Grid Services */
.services { background-color: var(--color-bg); }
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}
.bento-item {
    background: var(--color-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.bento-item:hover { transform: translateY(-5px); }
.service-startup {
    grid-column: 1 / 3; /* Span 2 columns */
    background: linear-gradient(135deg, #1A2B4C 0%, #243b66 100%);
    color: #fff;
}
.service-startup h3, .service-startup .service-icon { color: var(--color-accent); }
.service-startup p { color: rgba(255,255,255,0.9); }
.service-startup li { color: rgba(255,255,255,0.9); margin-bottom: 5px; list-style: disc; margin-left: 20px;}

.service-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}
.bento-item h3 { font-size: 1.4rem; margin-bottom: 15px; }
.bento-item p { font-size: 0.95rem; color: var(--color-text-light); }

/* Specialized */
.specialized { background: #fff; }
.specialized-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}
.specialized-image { flex: 1; }
.specialized-image img { border-radius: 12px; box-shadow: var(--shadow-soft); }
.specialized-content { flex: 1; }
.lead-text { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; color: var(--color-primary); }
.feature-box {
    background: var(--color-bg);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--color-accent);
}
.feature-box h4 { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }

/* Reviews */
.reviews { background-color: var(--color-primary); color: #fff; }
.reviews .section-label { color: var(--color-accent); }
.reviews h2 { color: #fff; }
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.review-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
}
.stars { color: var(--color-accent); margin-bottom: 15px; }
.review-text { font-style: italic; margin-bottom: 20px; line-height: 1.8; }
.reviewer { display: flex; align-items: center; gap: 15px; }
.reviewer img { width: 40px; height: 40px; border-radius: 50%; }
.reviewer span { font-size: 0.9rem; font-weight: 500; }

/* Profile */
.profile { background: var(--color-bg); }
.profile-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    gap: 50px;
    align-items: center;
    box-shadow: var(--shadow-soft);
}
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
}
.profile-img img { width: 300px; height: 350px; object-fit: cover; border-radius: 12px; }
.job-title { color: var(--color-accent); font-weight: 700; font-size: 0.9rem; }
.profile-info h3 { font-size: 2rem; margin: 10px 0 20px; }
.profile-info h3 .en { font-size: 1rem; font-weight: 400; color: var(--color-text-light); margin-left: 10px; }
.profile-stats { display: flex; gap: 40px; margin-top: 30px; border-top: 1px solid #ddd; padding-top: 20px; }
.profile-stats .num { display: block; font-size: 2rem; font-weight: 700; color: var(--color-primary); }
.profile-stats .label { font-size: 0.8rem; color: var(--color-text-light); }

/* News */
.news-grid { max-width: 800px; margin: 0 auto; }
.news-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    gap: 20px;
}
.news-date { color: var(--color-text-light); font-size: 0.9rem; }
.news-cat {
    background: var(--color-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}
.news-item a { font-weight: 500; }
.news-item a:hover { color: var(--color-accent); }

/* Footer & Contact */
.footer {
    background: linear-gradient(180deg, #1A2B4C 0%, #000 100%);
    color: #fff;
    padding-top: 80px;
    padding-bottom: 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 50px;
}
.footer-info { padding-right: 30px; }
.footer-logo { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.contact-methods { margin-top: 30px; display: flex; flex-direction: column; gap: 15px; }
.contact-btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
}
.contact-btn.phone { background: var(--color-white); color: var(--color-primary); }
.contact-btn.line { background: #06C755; color: #fff; }

.footer-form-wrapper {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 16px;
    color: #fff;
}
.footer-form-wrapper h3 { color: #fff; margin-bottom: 10px; }
.footer-form-wrapper p { font-size: 0.9rem; margin-bottom: 20px; opacity: 0.8; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; }
.required { background: var(--color-accent); padding: 2px 6px; font-size: 0.7rem; border-radius: 3px; margin-left: 5px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: none;
    font-family: inherit;
    background: rgba(255,255,255,0.9);
}
.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}
.btn-submit:hover { background: var(--color-accent-hover); }

.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.8rem; opacity: 0.6; }

/* Responsive */
@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; }
    .service-startup { grid-column: auto; }
    .footer-grid { grid-template-columns: 1fr; }
    .specialized-wrapper { flex-direction: column; }
    .profile-card { flex-direction: column; text-align: center; }
    .profile-stats { justify-content: center; }
    .hero-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        background: var(--color-primary);
        padding: 20px;
        transition: 0.3s;
    }
    .nav.active { right: 0; }
    .nav ul { flex-direction: column; }
    .hamburger { display: block; cursor: pointer; }
    .hamburger span { display: block; width: 25px; height: 3px; background: #fff; margin: 5px 0; }
}