/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-main: #334155;
    --text-muted: #64748b;
    --text-dark: #0f172a;
    --primary: #1e3a8a;       /* Deep Navy */
    --primary-light: #3b82f6; /* Trust Blue */
    --primary-hover: #172554;
    --accent: #2563eb;
    --border-color: #e2e8f0;
    
    --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
    --container-max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.8;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Typography & Reusable Utilities
   ========================================================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

.section-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

.section-underline {
    width: 60px;
    height: 3px;
    background-color: var(--primary-light);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 6px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 18px;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    margin-left: 8px;
}

.badge-required {
    background-color: #ef4444;
    color: #ffffff;
}

.badge-optional {
    background-color: #94a3b8;
    color: #ffffff;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.header-container {
    max-width: var(--container-max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-accent {
    background-color: var(--primary);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Dropdown */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 999;
    padding: 100px 40px 40px;
    transition: var(--transition);
}

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

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    display: block;
}

.mobile-nav-btn {
    width: 100%;
    margin-top: 16px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 4px;
}

.hero-title {
    font-size: 46px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 17px;
    color: var(--text-main);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

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

.hero-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    background-color: var(--bg-tertiary);
}

.hero-image-deco {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--border-color) 20%, transparent 20%);
    background-size: 10px 10px;
    z-index: -1;
}

/* ==========================================================================
   Vision Section
   ========================================================================== */
.vision {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.vision-text .lead-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.8;
}

.vision-text p {
    margin-bottom: 20px;
    color: var(--text-main);
}

.vision-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-card {
    background-color: var(--bg-primary);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 40px;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-item.reverse {
    direction: rtl;
}

.service-item.reverse .service-content {
    direction: ltr; /* Reset text direction inside content */
}

.service-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
    background-color: var(--bg-tertiary);
}

.service-img {
    width: 100%;
    transition: var(--transition);
}

.service-image-container:hover .service-img {
    transform: scale(1.03);
}

.service-number {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: rgba(37, 99, 235, 0.15);
    line-height: 1;
    margin-bottom: 8px;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.service-desc {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 24px;
}

.service-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-points li {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.service-points li span {
    color: var(--accent);
    font-weight: bold;
}

/* ==========================================================================
   Profile Section
   ========================================================================== */
.profile {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.profile-card {
    background-color: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

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

.profile-table tr:last-child th, .profile-table tr:last-child td {
    border-bottom: none;
}

.profile-table th {
    font-weight: 700;
    color: var(--text-dark);
    width: 25%;
    font-size: 16px;
    vertical-align: top;
}

.profile-table td {
    color: var(--text-main);
    font-size: 16px;
}

.profile-table td ul {
    list-style: disc;
    margin-left: 20px;
}

.profile-table td li {
    margin-bottom: 6px;
}

.profile-table td li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.contact-card {
    background-color: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.contact-lead {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
    resize: vertical;
}

.form-consent {
    margin: 32px 0;
    text-align: center;
}

.consent-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
}

.consent-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.form-actions {
    text-align: center;
}

/* ==========================================================================
   Modal (Privacy Policy)
   ========================================================================== */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6); /* Backdrop dim */
    backdrop-filter: blur(8px); /* Modern blur effect */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--bg-primary);
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.7;
    text-align: left;
}

.modal-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 20px;
    margin-bottom: 8px;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-body ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 12px;
}

.modal-body li {
    margin-bottom: 6px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    text-align: right;
    background-color: var(--bg-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--text-dark);
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo-accent {
    background-color: #ffffff;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: inline-block;
}

.footer-desc {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 12px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 24px 24px 0;
    border-top: 1px solid #334155;
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    font-size: 12px;
}

/* ==========================================================================
   Responsive Styles (Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-item.reverse {
        direction: ltr;
    }
    
    .service-image-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .hero-title {
        font-size: 34px;
    }
    
    .profile-card, .contact-card {
        padding: 24px;
    }
    
    .profile-table th {
        width: 35%;
        padding: 16px 12px;
    }
    
    .profile-table td {
        padding: 16px 12px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}
/* Force update for system and OneDrive sync: 2026-07-02 */
