:root {
    --primary-yellow: #F4C430;
    --dark: #1a1a1a;
    --gray: #666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --success: #4CAF50;
    --error: #f44336;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--dark);
    line-height: 1.8;
    overflow-x: hidden;
}

.accent-line {
    height: 3px;
    background: linear-gradient(90deg, var(--primary-yellow) 0%, transparent 100%);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    opacity: 0;
    animation: slideIn 1s ease-out 0.5s forwards;
}

@keyframes slideIn {
    to { opacity: 1; }
}

header {
    padding: 2rem 5%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.logo span {
    color: var(--primary-yellow);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 5rem 5%;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 196, 48, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero h1 strong {
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.hero h1 strong::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 0;
    height: 0.15em;
    background: var(--primary-yellow);
    animation: underlineGrow 0.8s ease-out 1.2s forwards;
}

@keyframes underlineGrow {
    to { width: 100%; }
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--dark);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.cta-button:hover {
    background: var(--primary-yellow);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(244, 196, 48, 0.3);
}

.section {
    padding: 8rem 5%;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
}

.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    padding: 3rem 2rem;
    background: var(--light-gray);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-yellow);
    transition: height 0.3s ease;
}

.service-card:hover::before {
    height: 100%;
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.about {
    background: var(--dark);
    color: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about p {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact {
    background: var(--light-gray);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1.2rem;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover:not(:disabled) {
    background: var(--primary-yellow);
    color: var(--dark);
    transform: translateY(-2px);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid var(--success);
    display: block;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 2px solid var(--error);
    display: block;
}

footer {
    padding: 3rem 5%;
    background: var(--dark);
    color: var(--white);
    text-align: center;
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 3rem 5%;
    }
    
    .section {
        padding: 5rem 5%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
