/*
 * EC Growth Theme - Main CSS
 */

:root {
    --orange: #E89623;
    --orange-dark: #C97E1A;
    --orange-light: #FEF3E2;
    --orange-glow: rgba(232, 150, 35, 0.15);
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E8E8E8;
    --gray-300: #D1D1D1;
    --gray-500: #8A8A8A;
    --gray-700: #4A4A4A;
    --gray-900: #1A1A1A;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* ==================== HEADER ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    border-bottom-color: var(--gray-200);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-mark::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

.logo-mark span {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--orange);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--orange);
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    background: var(--gray-900);
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.header-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
}

.header-cta span {
    position: relative;
    z-index: 1;
}

.header-cta:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--gray-900);
    transition: var(--transition-fast);
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 60px 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: var(--orange-light);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease forwards 0.2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 32px;
}

.hero-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    color: var(--orange);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--orange-glow);
    z-index: -1;
    border-radius: 4px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--gray-500);
    margin-bottom: 48px;
    max-width: 480px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--orange);
    padding: 18px 40px;
    border-radius: 100px;
    text-decoration: none;
    transition: var(--transition-bounce);
    box-shadow: 0 10px 40px rgba(232, 150, 35, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(232, 150, 35, 0.4);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    background: transparent;
    padding: 18px 40px;
    border-radius: 100px;
    text-decoration: none;
    border: 2px solid var(--gray-200);
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.hero-visual {
    position: relative;
    opacity: 0;
    transform: translateX(40px);
    animation: fadeLeft 1s ease forwards 0.5s;
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.hero-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.hero-image-placeholder svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.floating-stat {
    position: absolute;
    background: var(--white);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.floating-stat-1 {
    top: -20px;
    right: -30px;
    animation-delay: 0s;
}

.floating-stat-2 {
    bottom: 30px;
    left: -40px;
    animation-delay: 2s;
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ==================== SERVICES ==================== */
.services {
    padding: 140px 60px;
    background: var(--white);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

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

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--orange-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--orange);
}

.service-icon svg {
    width: 36px;
    height: 36px;
    color: var(--orange);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon svg {
    color: var(--white);
}

.service-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.service-description {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 28px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
    transition: var(--transition-fast);
}

.service-link svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.service-link:hover svg {
    transform: translateX(6px);
}

/* ==================== RESULTS ==================== */
.results {
    padding: 140px 60px;
    background: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(232, 150, 35, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(232, 150, 35, 0.08) 0%, transparent 50%);
}

.results .section-container {
    position: relative;
    z-index: 1;
}

.results .section-title {
    color: var(--white);
}

.results .section-subtitle {
    color: var(--gray-400);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 48px;
    transition: var(--transition-smooth);
}

.result-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-8px);
}

.result-badge {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--orange);
    background: rgba(232, 150, 35, 0.15);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.result-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}

.result-metrics {
    display: flex;
    gap: 40px;
    margin-bottom: 24px;
}

.metric {
    text-align: left;
}

.metric-value {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-top: 8px;
}

.result-text {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.8;
}

/* ==================== CTA ==================== */
.cta {
    padding: 140px 60px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 24px;
}

.cta-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--orange);
    background: var(--white);
    padding: 22px 48px;
    border-radius: 100px;
    text-decoration: none;
    transition: var(--transition-bounce);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--gray-900);
    padding: 100px 60px 50px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-description {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.8;
    max-width: 320px;
}

.footer-nav-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 28px;
}

.footer-nav-links {
    list-style: none;
}

.footer-nav-links li {
    margin-bottom: 14px;
}

.footer-nav-links a {
    font-size: 0.95rem;
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ==================== PAGE CONTENT ==================== */
.main-content {
    padding: 140px 60px 100px;
}

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

.page-header {
    background: var(--gray-100);
    padding: 60px 0;
    margin-bottom: 60px;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.entry-content {
    font-size: 1rem;
    line-height: 2;
}

.entry-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 48px 0 24px;
    color: var(--gray-900);
}

.entry-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 36px 0 18px;
    color: var(--gray-900);
}

.entry-content p {
    margin-bottom: 24px;
}

.entry-content ul, .entry-content ol {
    margin: 24px 0;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 12px;
}

/* ==================== POSTS ==================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 24px;
}

.post-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.post-title a {
    color: var(--gray-900);
    text-decoration: none;
    transition: var(--transition-fast);
}

.post-title a:hover {
    color: var(--orange);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.read-more {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 30px;
    }

    .nav-menu {
        gap: 24px;
    }

    .hero {
        padding: 120px 30px 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-bg {
        width: 100%;
        clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

    .services, .results, .cta {
        padding: 100px 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .floating-stat {
        display: none;
    }

    .result-metrics {
        flex-direction: column;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .main-content {
        padding: 100px 20px 60px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}
