:root {
    --primary-color: #000;
    --text-color: #111;
    --text-light: #4b5563;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --nav-height: 50px;
    --footer-bg: #121826;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
    padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
}

nav {
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.nav-logo-img { height: 30px; width: auto; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 2.5rem; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 500; font-size: 0.85rem; transition: color 0.3s; }
.nav-links a:hover { color: #666; }

.hero {
    height: 85vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 5%;
    color: #fff;
}
.slideshow, .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.slide.active { opacity: 1; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: 0; }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; font-weight: 300; letter-spacing: 2px; }

.container { padding: 6rem 5%; max-width: 1400px; margin: 0 auto; }
.bg-light { background-color: var(--bg-light); }

.section-header { 
    margin-bottom: 4rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.sub-heading { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.875rem; color: var(--text-light); margin-bottom: 0.5rem; font-weight: 600; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; color: var(--text-color); margin-bottom: 1.5rem; }
.section-desc { font-size: 1rem; color: var(--text-light); line-height: 1.8; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.service-card {
    padding: 2rem; background: #fff; border: 1px solid var(--border-color); border-radius: 0.5rem; transition: all 0.3s ease;
    display: flex; flex-direction: column; text-align: left;
}
.service-card:hover { border-color: #000; transform: translateY(-5px); box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); }
.service-icon { width: 3rem; height: 3rem; background: var(--bg-light); border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: #111; }
.service-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; min-height: 3rem; display: flex; align-items: center; }
.service-card p { color: var(--text-light); line-height: 1.6; font-size: 0.9rem; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.project-card { position: relative; cursor: pointer; overflow: hidden; border-radius: 4px; background: #000; }
.project-image { width: 100%; aspect-ratio: 1/1; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.project-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7);
    opacity: 0; transition: opacity 0.3s ease; display: flex; align-items: center; justify-content: center; text-align: center;
}
.project-info { color: #fff; transform: translateY(20px); transition: transform 0.3s ease; padding: 1rem; }
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-info { transform: translateY(0); }
.project-card:hover .project-image img { transform: scale(1.1); }
.project-info .category { color: #ccc; letter-spacing: 2px; font-size: 0.75rem; display: block; margin-bottom: 0.5rem; text-transform: uppercase; }
.project-info h3 { font-size: 1.3rem; font-weight: 600; margin: 0; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; text-align: left; }
.value-image { width: 100%; aspect-ratio: 16/9; margin-bottom: 1.5rem; overflow: hidden; border-radius: 4px; }
.value-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); transition: filter 0.3s; }
.value-item:hover .value-image img { filter: grayscale(0%); }
.value-item h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.value-item p { color: var(--text-light); font-size: 1rem; }

.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.info-block { margin-bottom: 2rem; }
.info-block h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-color); }
.info-block p { margin-bottom: 0; line-height: 1.6; color: var(--text-light); }
.info-block strong { color: var(--text-color); margin-right: 0.5rem; }
.info-block a { color: var(--text-color); text-decoration: none; border-bottom: 1px solid #ccc; transition: border-color 0.3s; }
.info-block a:hover { border-color: #000; }
.map-container { margin-top: 1rem; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); }

.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 0.8rem; border: 1px solid var(--border-color); border-radius: 4px; font-family: inherit;
    transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #000; }
.submit-btn {
    display: inline-block; background: #000; color: #fff; padding: 1rem 3rem; border: none; border-radius: 4px;
    font-weight: 600; cursor: pointer; transition: background 0.3s;
}
.submit-btn:hover { background: #333; }

.site-footer { background-color: var(--footer-bg); color: #fff; padding: 4rem 0; margin-top: auto; }
.footer-content { display: flex; justify-content: space-between; align-items: center; padding: 0 5%; }
.footer-left { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo { height: 32px; filter: invert(1); opacity: 0.9; width: auto; align-self: flex-start; }
.footer-left p { font-size: 0.8rem; color: #9ca3af; }
.footer-right { display: flex; gap: 1.5rem; align-items: center; }
.social-icon { color: #9ca3af; transition: color 0.3s; display: flex; align-items: center; }
.social-icon:hover { color: #fff; }

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
}
.modal-image-container { width: 55%; background: #000; display: flex; align-items: center; justify-content: center; }
.modal-image-container img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-text { width: 45%; padding: 3rem; display: flex; flex-direction: column; overflow-y: auto; }
.modal-text .category { color: #666; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem; font-weight: 700; }
.modal-text h3 { font-size: 1.8rem; margin-bottom: 1.5rem; line-height: 1.2; padding-bottom: 1rem; border-bottom: 1px solid #eee; }
.modal-body p { color: #4b5563; font-size: 1rem; margin-bottom: 2rem; line-height: 1.8; }
.modal-process-box { background: #f9fafb; padding: 1.5rem; border-radius: 6px; border-left: 4px solid #000; }
.modal-process-box h4 { font-size: 0.9rem; text-transform: uppercase; color: #000; margin-bottom: 0.8rem; letter-spacing: 1px; }
.modal-process-box p { font-size: 0.9rem; color: #555; margin-bottom: 0; }
.close-modal { position: absolute; top: 20px; right: 30px; color: #fff; text-shadow: 0 0 5px rgba(0,0,0,0.5); font-size: 40px; font-weight: bold; cursor: pointer; z-index: 2001; }
.close-modal:hover { color: #ccc; }

@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .project-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-container { grid-template-columns: 1fr; gap: 3rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-content { flex-direction: column; width: 95%; height: 90vh; }
    .modal-image-container, .modal-text { width: 100%; }
    .modal-image-container { height: 40vh; }
    .modal-text { padding: 2rem; height: auto; }
    .close-modal { top: 10px; right: 20px; }
}
@media (max-width: 600px) {
    .project-grid, .values-grid, .services-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-logo { align-self: center; }
}