:root {
    --primary-color: #0F172A;
    --primary-rgb: 15, 23, 42;
    --accent-color: #00BE9E;
    --accent-rgb: 0, 190, 158;
    --text-color: #1E293B;
    --text-muted: #64748B;
    --bg-color: #FFFFFF;
    --section-bg: #F8FAFC;
    --border-color: #E2E8F0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --max-width: 1100px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

/* Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-image: url('hero-bg.jpg'); 
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    position: relative;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--header-height) var(--spacing-md) 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.6) 60%, rgba(15,23,42,0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.04em;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero h1 span {
    color: var(--accent-color);
    position: relative;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: #fff;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--border-color);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-number {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.service-card.highlight {
    background: rgba(var(--accent-rgb), 0.03);
    border: 2px solid var(--accent-color);
}

/* Case Study */
.case-card {
    background: #fff;
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.case-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.case-client {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 1rem;
}

.case-features {
    list-style: none;
    margin: 2rem 0;
}

.case-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.case-features li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: 900;
}

.case-link {
    color: var(--accent-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid transparent;
}

.case-link:hover {
    gap: 0.75rem;
    border-bottom-color: var(--accent-color);
}

/* Pricing Section */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
    padding: 2rem 0;
}

.price-card {
    background: #fff;
    padding: 3.5rem 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    flex: 1;
    min-width: 320px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s ease;
}

.price-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
}

.price-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1.5rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.price-header {
    margin-bottom: 2rem;
}

.price-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
}

.price-value span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-features {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.price-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.75rem;
}

.price-features li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: 900;
}

.price-btn {
    display: block;
    text-align: center;
    padding: 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    background: #f0f4f3;
    color: var(--text-color);
}

.featured .price-btn {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.price-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Payment Flow */
.payment-box {
    background: #fff;
    padding: 3.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.payment-box h3 {
    margin-bottom: 2rem;
    padding-left: 1.25rem;
    border-left: 5px solid var(--accent-color);
}

.payment-list {
    list-style: none;
}

.payment-item {
    margin-bottom: 2.5rem;
}

.payment-item:last-child {
    margin-bottom: 0;
}

.payment-item h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.payment-item h4 .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 0.75rem;
}

.payment-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

details[open] {
    border-color: var(--accent-color);
    box-shadow: var(--card-shadow);
}

summary {
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    line-height: 1.5;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--text-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

details[open] summary::after {
    transform: rotate(45deg);
}

.details-content {
    margin-top: 1.5rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

/* Special Offer Banner */
.offer-banner {
    background: var(--primary-color);
    border-radius: 24px;
    margin: 4rem auto;
    max-width: 900px;
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.offer-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.offer-banner h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.offer-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.cta-button.white-btn {
    background: #ffffff;
    color: var(--primary-color);
}

.cta-button.white-btn:hover {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 190, 158, 0.4);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-item:hover .social-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1.25rem 3.5rem;
    border-radius: 100px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.3);
    opacity: 1;
    color: white;
}

/* Footer */
footer {
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--section-bg);
}

footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Typography Additions */
.section-subtitle {
    font-size: 1rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    :root {
        --spacing-xl: 5rem;
    }
    
    .price-card.featured {
        transform: none;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    header {
        height: 70px;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        background-position: right 30% center;
        min-height: 80vh;
        padding-top: 100px;
    }
    
    .hero::before {
        background: linear-gradient(90deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%);
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
        color: #ffffff;
        text-shadow: none;
        margin-bottom: 1.5rem;
    }
    
    .hero p {
        font-size: 1.05rem;
        color: rgba(255,255,255,0.9);
        text-shadow: none;
    }
    
    .hero h1 span {
        display: block;
        margin-top: 0.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    #about p {
        text-align: left;
        font-size: 1rem !important;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .case-card, .payment-box {
        padding: 2rem 1.5rem;
    }
    
    .case-card h3 {
        font-size: 1.25rem;
    }
    
    .offer-banner {
        padding: 3rem 1.5rem;
        margin: 2rem auto;
        border-radius: 20px;
    }
    
    .offer-banner h3 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .price-card {
        padding: 2.5rem 1.5rem;
        min-width: 100%;
    }
    
    .social-links {
        gap: 1.5rem;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }
}
