/* ===== Design Tokens ===== */
:root {
    --primary: #007b85;
    --primary-light: #46c1ca;
    --primary-dark: #005a62;
    --primary-bg: #e6f9fa;
    --accent-purple: #8B7AE8;
    --accent-green: #4FC08D;
    --accent-orange: #F5A623;
    --accent-pink: #E87AA8;
    --bg-white: #FFFFFF;
    --bg-light: #F0F6FF;
    --bg-soft: #F7FAFF;
    --text-dark: #2D3748;
    --text-body: #4A5568;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-hover: #B3D1FF;
    --shadow-sm: 0 2px 8px rgba(74, 143, 231, 0.08);
    --shadow-md: 0 8px 30px rgba(74, 143, 231, 0.1);
    --shadow-lg: 0 15px 50px rgba(74, 143, 231, 0.12);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', 'Noto Sans JP', sans-serif;
    background: var(--bg-white);
    color: var(--text-body);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}



/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.6rem 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-img-final {
    height: 36px;
    /* Significantly smaller to ensure visible change */
    width: auto;
    object-fit: contain;
}

.logo-img-final.sm {
    height: 25px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.3rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-bg);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Page Sections ===== */
.page-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* ===== Hero ===== */
.hero-section {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding-top: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--primary-bg);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.highlight {
    color: var(--primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(74, 143, 231, 0.15);
    border-radius: 4px;
    z-index: -1;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 2rem;
    line-height: 1.9;
}

.hero-btns {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 143, 231, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 143, 231, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border-hover);
}

.btn-ghost:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius);
    overflow: hidden;
    animation: floatImg 6s ease-in-out infinite;
}

@keyframes floatImg {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-divider svg {
    width: 100%;
    height: 60px;
}

/* ===== Section Header ===== */
.section-header {
    margin-bottom: 3rem;
}

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

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.section-header h2,
.about-text-area h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 500px;
}

.section-header.center .section-desc {
    margin: 0 auto;
}

/* ===== Services ===== */
.services-section {
    background: var(--bg-light);
}

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

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.card-icon.blue {
    background: #E8F1FF;
    color: var(--primary);
}

.card-icon.purple {
    background: #EDEBFF;
    color: var(--accent-purple);
}

.card-icon.green {
    background: #E6F7EF;
    color: var(--accent-green);
}

.card-icon.orange {
    background: #FFF3E0;
    color: var(--accent-orange);
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.card-number {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--bg-light);
    line-height: 1;
}

/* ===== About ===== */
.about-section {
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img-area {
    position: relative;
}

.about-img-area img {
    width: 100%;
    border-radius: var(--radius);
}

.floating-badge {
    position: absolute;
    bottom: -15px;
    right: -10px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border);
}

.badge-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.badge-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.about-text-area h2 {
    margin-bottom: 1rem;
}

.about-lead {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.about-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

.info-table {
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    border: 1px solid var(--border);
}

.info-row {
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
}

.info-row:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.info-label {
    min-width: 70px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}

.info-value {
    font-size: 0.88rem;
    color: var(--text-dark);
}

/* ===== Contact ===== */
.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.5rem;
}

.contact-form {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-soft);
    border: 2px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(74, 143, 231, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Contact Side */
.contact-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.8rem;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-card h4 {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Footer ===== */
footer {
    background: var(--bg-white);
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Animations ===== */
.animate-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger service cards */
.service-card:nth-child(1) {
    transition-delay: 0s;
}

.service-card:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card:nth-child(3) {
    transition-delay: 0.2s;
}

.service-card:nth-child(4) {
    transition-delay: 0.3s;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-img {
        max-width: 320px;
    }

    .hero-btns {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-label {
        font-size: 0.7rem;
    }
}