/* Reset & Base */
:root {
    --color-offwhite: #f9f8f6;
    --color-white: #ffffff;
    --color-charcoal: #333333;
    --color-text: #4a4a4a;
    --color-border: #e0ddd5;
    --font-heading: 'Noto Serif JP', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-offwhite);
    line-height: 1.8;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-charcoal);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

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

a:hover {
    opacity: 0.7;
}

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

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

/* Backgrounds */
.bg-offwhite { background-color: var(--color-offwhite); }
.bg-white { background-color: var(--color-white); }
.bg-charcoal { background-color: var(--color-charcoal); color: var(--color-offwhite); }

/* Buttons & Links */
.btn-primary {
    display: inline-block;
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: 1rem 3rem;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    border-radius: 2px;
}

.btn-primary-small {
    display: inline-block;
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-radius: 2px;
}

.link-arrow {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--color-charcoal);
    letter-spacing: 0.05em;
    position: relative;
    padding-right: 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    background: rgba(249, 248, 246, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    color: var(--color-charcoal);
}

.nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.nav a:not(.btn-primary-small) {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    position: relative;
}

.nav a:not(.btn-primary-small)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-charcoal);
    transition: width 0.3s ease;
}

.nav a:not(.btn-primary-small):hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 150px; /* Increased padding to account for taller header */
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    flex: 1;
    padding: 0 5% 0 10%;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
    color: var(--color-text);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-image {
    flex: 1;
    height: 100vh;
    position: absolute;
    right: 0;
    top: 0;
    width: 55%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Common Section Styles */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-desc {
    text-align: center;
    margin-top: -2rem;
    margin-bottom: var(--spacing-lg);
}

/* SVG Icons */
.icon-wrap {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    color: var(--color-charcoal);
}

.thin-icon {
    width: 100%;
    height: 100%;
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    text-align: center;
}

.problem-item p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Reason Section */
.reason-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.reason-item h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.reason-item p {
    font-size: 0.85rem;
}

/* Service Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.service-card img {
    aspect-ratio: 4/3;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.service-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-content p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.service-action {
    text-align: center;
}

/* Profile Section */
.profile-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6rem;
    padding: 0 5%;
}

.profile-image {
    flex: 1;
}

.profile-image img {
    aspect-ratio: 3/4;
    object-fit: cover;
}

.profile-content {
    flex: 1;
}

.profile-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.profile-content p {
    margin-bottom: 2.5rem;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
}

.footer-sitemap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 3rem;
}

.sitemap-col h4 {
    font-family: var(--font-heading);
    color: var(--color-offwhite);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.sitemap-col ul {
    list-style: none;
}

.sitemap-col li {
    margin-bottom: 1rem;
}

.sitemap-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.sitemap-col a:hover {
    color: var(--color-white);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

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

.fade-in-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }
.delay-4 { transition-delay: 0.7s; }
.delay-5 { transition-delay: 0.9s; }

/* Responsive */
@media (max-width: 1024px) {
    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .reason-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        padding-top: 80px;
    }
    
    .hero-image {
        position: relative;
        width: 100%;
        height: 50vh;
    }
    
    .hero-content {
        padding: 3rem 5%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav {
        display: none; /* simple hidden for mobile for now */
    }
    
    .problem-grid, .service-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-inner {
        flex-direction: column;
        gap: 3rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
}
