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

:root {
    /* Color Palette */
    --primary-blue: #0056b3;
    --primary-dark: #004494;
    --accent-gold: #eda10e;
    --text-main: #333333;
    --text-light: #666666;
    --bg-body: #ffffff;
    --bg-section: #f8f9fa;
    --white: #ffffff;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-body);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue);
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 0.05em;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: var(--spacing-md);
}

.main-nav a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #e0f2f1 0%, #e8eaf6 100%);
    /* Placeholder for image */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    /* Abstract shape for "Modern" feel */
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: var(--spacing-md);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-blue);
    letter-spacing: 0.1em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 86, 179, 0.3);
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

/* Footer */
.site-footer {
    background-color: var(--text-main);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    text-align: center;
}

.footer-nav {
    margin-bottom: var(--spacing-md);
}

.footer-nav a {
    color: #cccccc;
    margin: 0 var(--spacing-sm);
}

.copyright {
    color: #999999;
    font-size: 0.9rem;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        transition: 0.3s ease-in-out;
        padding: var(--spacing-md);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* --- Contact Form Styles --- */
.contact-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.85); /* Glassmorphism surface */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

/* Decorative local element */
.contact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #7b8c73, #d1d8cc);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.row {
    display: flex;
    gap: 1.5rem;
}
.row .form-group {
    flex: 1;
}

/* Floating Label Styling */
.form-group label {
    position: absolute;
    top: 14px;
    left: 16px;
    font-size: 0.95rem;
    color: #706f6c;
    pointer-events: none;
    transition: 0.3s ease all;
    background-color: transparent;
    padding: 0 4px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: #33312e;
    background-color: transparent;
    border: 1px solid #e0ddd5;
    border-radius: 8px;
    transition: all 0.3s ease;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: #7b8c73;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(123, 140, 115, 0.1);
}

/* Transform label on focus or when input has value */
.form-control:focus ~ label,
.form-control:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    color: #7b8c73;
    background-color: #fff; /* Match background to cover border */
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23706f6c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

select.form-control:not([value=""]) ~ label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    color: #7b8c73;
    background-color: #fff;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background-color: #7b8c73;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: #5d6d56;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(123, 140, 115, 0.25);
}

.btn-submit:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .row {
        flex-direction: column;
        gap: 0;
    }
    .contact-container {
        padding: 2rem;
    }
}