:root {
    --primary: #406aff;
    --primary-rgb: 64, 106, 255;
    --primary-dark: #2c4ebf;
    --text: #1d2433;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f8f9fb;
    --max-width: 1200px;
    --font-heading: "Helvetica Neue", Arial, sans-serif;
    --font-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(64, 106, 255, 0.3);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 106, 255, 0.4);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
}

.brand img {
    height: 40px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 700px;
    background: url('../img/bk.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    background-attachment: fixed; /* Parallax effect like original */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* Overlay for readability */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services */
/* Services Section Refined */
.services {
    padding: 120px 0;
    background: #fff;
}

.service-list {
    max-width: 1100px;
    margin: 80px auto 0;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.service-item {
    background: transparent;
    padding: 0;
    border: none;
}

/* Desktop Side-by-Side */
.service-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

.service-body {
    flex: 1;
}

.service-visual {
    flex: 1;
    position: relative;
    line-height: 0;
}

.service-item h3 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.service-item .service-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.7;
}

.service-item ul {
    list-style: none;
    margin: 0 0 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-item ul li {
    padding-left: 30px;
    font-size: 1.05rem;
    color: var(--text);
    position: relative;
}

.service-item ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.service-item .btn {
    padding: 14px 35px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.service-visual img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 15px 15px 40px rgba(0,0,0,0.08);
}

.visual-accent-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: #fff;
    padding: 30px;
    z-index: 2;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
}

/* Stacking for smaller tablets and mobile */
@media (max-width: 860px) {
    .service-flex {
        flex-direction: column !important;
        gap: 40px;
    }
    .service-visual {
        width: 100%;
        max-width: 100%;
    }
}

.photo-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.photo-mini-grid .main-photo {
    grid-column: span 3;
}

.service-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card.featured {
    border: 2px solid var(--primary);
}

.service-card .badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--bg-alt);
    border-radius: 50%;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.link-arrow {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
}

.link-arrow::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s;
}

.service-card:hover .link-arrow::after {
    transform: translateX(5px);
}

/* Works */
.works {
    padding: 100px 0;
}

/* Contact Strip */
.cta-strip {
    background: var(--primary);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.cta-strip h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-strip .btn {
    background: #fff;
    color: var(--primary);
    margin-top: 20px;
}

/* Footer */
footer {
    background: #111;
    color: #999;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #222;
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

footer a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Simple styling, would need JS for toggle */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Text Reveal Animation */
.animate-text {
    display: inline-block;
    overflow: visible; /* Ensure shadows/transform don't get clipped if we add them later */
}

.animate-text span {
    opacity: 0;
    display: inline-block;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
    /* Transition delay will be set by JS */
}

.animate-text.is-visible span {
    opacity: 1;
    transform: translateY(0);
}
