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

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-dark: #1a1a1a;
    --color-gray: #333333;
    --color-gray-light: #666666;
    --color-gray-lighter: #f5f5f5;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--color-gray);
    background: var(--color-white);
}

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

/* Header */
.header {
    background: var(--color-white);
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-black);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: lowercase;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-list a {
    color: var(--color-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-black);
}

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

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-black);
    transition: var(--transition);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 80px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--color-white);
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Section */
.section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-black);
    letter-spacing: 2px;
}

.section-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-gray-light);
}

/* About Section */
.about-section {
    background: var(--color-gray-lighter);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--color-white);
    padding: 40px;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.service-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-black);
}

.service-card p {
    color: var(--color-gray-light);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 40px 0;
    text-align: center;
}

/* Page Header */
.page-header {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-gray-dark) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    overflow: hidden;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.page-header .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Company Info Section */
.company-info-table {
    max-width: 900px;
    margin: 60px auto;
    background: var(--color-white);
    border: 1px solid #e0e0e0;
}

.info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    padding: 20px 30px;
    background: var(--color-gray-lighter);
    font-weight: 600;
    color: var(--color-gray);
    border-right: 1px solid #e0e0e0;
}

.info-value {
    padding: 20px 30px;
    color: var(--color-gray);
}

/* Mission Section */
.mission-section {
    background: var(--color-gray-lighter);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.mission-card {
    background: var(--color-white);
    padding: 50px 40px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mission-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.mission-text {
    color: var(--color-gray-light);
    line-height: 1.8;
}

/* History Section */
.history-timeline {
    max-width: 900px;
    margin: 60px auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-year {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-black);
}

.timeline-content {
    color: var(--color-gray-light);
    line-height: 1.8;
}

/* Services Detail Section */
.services-overview-section {
    background: var(--color-gray-lighter);
}

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-detail-card {
    background: var(--color-white);
    padding: 40px;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 20px;
}

.service-detail-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 15px;
}

.service-detail-text {
    color: var(--color-gray-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 8px 0;
    color: var(--color-gray);
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-black);
    font-weight: 700;
}

/* Service Flow Section */
.service-flow-section {
    background: var(--color-gray-lighter);
}

.flow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.flow-step {
    flex: 1;
    min-width: 200px;
    background: var(--color-white);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.step-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 10px;
}

.step-text {
    color: var(--color-gray-light);
    font-size: 14px;
    line-height: 1.6;
}

.flow-arrow {
    font-size: 24px;
    color: var(--color-gray);
}

/* Stats Section */
.stats-section {
    background: var(--color-gray-lighter);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--color-white);
    border: 1px solid #e0e0e0;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--color-gray-light);
}

/* Case Studies Section */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.case-card {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.case-header {
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.case-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.case-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-black);
}

.case-body {
    padding: 30px;
}

.case-client {
    color: var(--color-gray);
    margin-bottom: 20px;
}

.case-client .label {
    font-weight: 600;
}

.case-challenge,
.case-solution,
.case-result {
    margin-bottom: 20px;
}

.case-challenge h4,
.case-solution h4,
.case-result h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 8px;
}

.case-challenge p,
.case-solution p,
.case-result p {
    color: var(--color-gray-light);
    line-height: 1.8;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--color-gray-lighter);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--color-white);
    padding: 40px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 60px;
    color: #e0e0e0;
    font-family: Georgia, serif;
}

.testimonial-text {
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.author-name {
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 5px;
}

.author-position {
    font-size: 14px;
    color: var(--color-gray-light);
}

/* CTA Section */
.cta-section {
    background: var(--color-black);
    color: var(--color-white);
    text-align: center;
    padding: 100px 0;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.cta-button {
    display: inline-block;
    padding: 18px 60px;
    background: var(--color-white);
    color: var(--color-black);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--color-white);
}

.cta-button:hover {
    background: transparent;
    color: var(--color-white);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

/* Contact Form */
.form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 10px;
}

.form-description {
    color: var(--color-gray-light);
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--color-gray);
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: red;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-black);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: red;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.submit-button {
    padding: 18px 40px;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--color-gray);
}

.field-error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.form-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.form-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    white-space: pre-line;
}

/* Contact Info */
.info-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 30px;
}

.contact-info-section {
    margin-bottom: 30px;
}

.contact-info-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 10px;
}

.contact-info-section p {
    color: var(--color-gray-light);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    color: var(--color-gray);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--color-black);
}

/* Map Section */
.map-section {
    background: var(--color-gray-lighter);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-light);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--color-white);
        transition: var(--transition);
        border-bottom: 1px solid #e0e0e0;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .nav-list li {
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-list a {
        display: block;
        padding: 15px 0;
    }

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

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

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

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

    .hero-slider {
        height: 70vh;
    }

    .slide-title {
        font-size: 12px;
        letter-spacing: 1px;
        padding: 0 20px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn.prev {
        left: 15px;
    }

    .slider-btn.next {
        right: 15px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 9px;
    }

    .section-title {
        font-size: 28px;
    }

    .page-title {
        font-size: 32px;
    }
}

/* Additional Responsive Styles */
@media (max-width: 768px) {
    .page-header {
        height: 300px;
    }

    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 14px;
    }

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

    .info-label {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

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

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .services-detail-grid {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

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

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

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

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

    .cta-title {
        font-size: 28px;
    }

    .cta-text {
        font-size: 16px;
    }
}