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

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

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
    color: #333333;
    background-color: #FAFAFA;
    line-height: 1.9;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, li {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

/* ========================================
   CSS Variables
======================================== */
:root {
    /* Base Colors */
    --black: #0A0A0A;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-body: #333333;
    --text-muted: #767676;
    --white: #FFFFFF;
    --bg-dark: #0F0F0F;
    --bg-light: #FAFAFA;
    --bg-section: #F5F5F5;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(0, 0, 0, 0.1);
    
    /* Theme Colors - 高級コンサルティング */
    --primary: #374151;
    --secondary: #6B7280;
    --accent: #0EA5E9;
    --accent-dark: #0C4A6E;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    /* Typography */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 2.75rem;
    --text-4xl: 3.75rem;
    --text-5xl: 5rem;
}

/* ========================================
   Typography
======================================== */
h1 {
    font-family: 'Noto Serif JP', 'Times New Roman', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

h2 {
    font-family: 'Noto Serif JP', 'Times New Roman', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    font-size: clamp(2rem, 6vw, 3.75rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

h4 {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

p {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
    font-size: clamp(0.9375rem, 2vw, 1rem);
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: 0.05em;
    color: var(--text-body);
}

p + p {
    margin-top: 1.5rem;
}

.lead-text {
    font-size: clamp(1.0625rem, 2.5vw, 1.125rem);
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* ========================================
   Header
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dark);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo a {
    font-family: 'Noto Serif JP', 'Times New Roman', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.header-nav .nav-list {
    display: flex;
    gap: 2.5rem;
}

.header-nav .nav-list a {
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    position: relative;
}

.header-nav .nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 900px;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-content .lead-text {
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-block;
    padding: 1.25rem 3rem;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

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

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

/* ========================================
   Sections
======================================== */
.section {
    padding: clamp(4rem, 12vw, 8rem) 2rem;
}

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

.section-dark h2,
.section-dark h3,
.section-dark p {
    color: var(--white);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 8vw, 5rem);
}

/* ========================================
   Features Grid
======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: clamp(2rem, 5vw, 3rem);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-number {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* ========================================
   Services Grid
======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.service-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 2rem;
}

/* ========================================
   Stats Section
======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* ========================================
   Form Styles
======================================== */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.form-label .required {
    color: #EF4444;
    margin-left: 0.25rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1.25rem;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
    font-size: 1rem;
    color: var(--text-body);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

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

/* ========================================
   Footer
======================================== */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-family: 'Noto Serif JP', 'Times New Roman', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Animation Classes
======================================== */
.animate-on-scroll {
    opacity: 0;
}

.animate-fade-up {
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-scale {
    transform: scale(0.9);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
    }
    
    .header-nav.active {
        right: 0;
    }
    
    .header-nav .nav-list {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ========================================
   Utility Classes
======================================== */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}
