/* Base Styles */
:root {
    --color-primary: #111;
    --color-secondary: #555;
    --color-accent: #f0f0f0;
    --color-background: #fff;
    --color-text: #333;
    --font-main: 'Noto Sans JP', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: 6rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 5rem;
    height: 2px;
    background-color: var(--color-primary);
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--color-primary);
    color: white;
    font-size: 1.6rem;
    font-weight: 500;
    border: 1px solid var(--color-primary);
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem 0;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    gap: 3rem;
}

.nav-item a {
    font-size: 1.6rem;
    font-weight: 500;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-item a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 3rem;
    height: 2rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 12rem 0 8rem;
    position: relative;
}

.hero-content {
    flex: 1;
    padding-right: 5rem;
}

.hero-title {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-text {
    font-size: 2rem;
    margin-bottom: 4rem;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Services Section */
.services {
    padding: 12rem 0;
    background-color: var(--color-accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 4rem;
}

.service-item {
    background-color: white;
    padding: 4rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 4.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-primary);
    opacity: 0.1;
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.service-title {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-description {
    position: relative;
    z-index: 1;
}

/* About Section */
.about {
    padding: 12rem 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.about-image {
    flex: 1;
}

/* Works Section */
.works {
    padding: 12rem 0;
    background-color: var(--color-accent);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 4rem;
}

.work-item {
    background-color: white;
    overflow: hidden;
    transition: var(--transition);
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.work-image {
    overflow: hidden;
}

.work-image img {
    transition: var(--transition);
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.work-info {
    padding: 2rem;
}

.work-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.work-category {
    font-size: 1.4rem;
    color: var(--color-secondary);
}

.works-more {
    margin-top: 6rem;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 12rem 0;
}

.contact-content {
    display: flex;
    gap: 6rem;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-details {
    margin-top: 4rem;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    font-family: var(--font-main);
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-submit {
    margin-top: 3rem;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 8rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6rem;
}

.footer-logo h2 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-social ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-links a,
.footer-social a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-social a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
    opacity: 0.6;
}

/* Responsive Styles */
@media (max-width: 992px) {
    html {
        font-size: 60%;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        padding: 10rem 2rem 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .menu-open .nav {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-open .menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-open .menu-toggle span:nth-child(2) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .section-title {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }

    .footer-links ul,
    .footer-social ul {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .services-grid,
    .works-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .section-link {
        text-decoration: none;
        color: inherit;
    }
    
    .section-link:hover {
        text-decoration: underline;
        cursor: pointer;
    }
    
}