:root {
    --primary-green: #2E7D32;
    --primary-green-light: #4CAF50;
    --primary-green-lighter: #81C784;
    --primary-green-lightest: #C8E6C9;
    --background-light: #E8F5E9;
    --background-white: #FFFFFF;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-light: #FAFAFA;
    --accent-blue: #1976D2;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-large: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-white);
    overflow-x: hidden;
}

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

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow-light);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-size: 24px;
    font-weight: bold;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green-light), var(--primary-green));
    transition: width 0.3s ease;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hero {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* ローカル画像: スマートフォン操作（最適化済み） */
    background: 
        linear-gradient(135deg, rgba(232, 245, 233, 0.7) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(232, 245, 233, 0.7) 100%),
        url('/images/IMGP1350-optimized.jpg') center/cover;
    
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46, 125, 50, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(129, 199, 132, 0.05) 0%, transparent 50%);
    animation: floatPattern 20s ease-in-out infinite;
}

@keyframes floatPattern {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, -20px) scale(1.05); }
    66% { transform: translate(20px, -10px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 1s ease;
}

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

.hero-title {
    margin-bottom: 30px;
}

.title-main {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.title-sub {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: var(--border-radius-large);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green-light), var(--primary-green));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: var(--background-white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green-light);
}

.btn-secondary:hover {
    background: var(--background-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.1rem;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

.news {
    padding: 80px 0;
    background: var(--background-white);
}

.news-list {
    max-width: 900px;
    margin: 0 auto 40px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    transition: var(--transition);
}

.news-item:hover {
    background: var(--background-light);
}

.news-date {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-width: 100px;
}

.news-category {
    flex-shrink: 0;
    padding: 4px 12px;
    background: var(--primary-green);
    color: white;
    font-size: 0.75rem;
    border-radius: 4px;
    min-width: 80px;
    text-align: center;
}

/* カテゴリーごとの色分け（JavaScriptで動的に適用） */

.news-title {
    flex: 1;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.news-title:hover {
    color: var(--primary-green);
}

.news-more {
    text-align: center;
    margin-top: 40px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: var(--border-radius-large);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: white;
}

.services {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.title-en {
    display: block;
    font-size: 0.875rem;
    letter-spacing: 3px;
    color: var(--primary-green-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.title-ja {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
}

.service-detail {
    margin-bottom: 100px;
}

.service-detail:last-child {
    margin-bottom: 0;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.service-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-green);
    opacity: 0.3;
}

.service-main-title {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 40px;
}

.service-content.reverse {
    direction: rtl;
}

.service-content.reverse > * {
    direction: ltr;
}

.service-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.6;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-box {
    padding: 20px;
    background: var(--background-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-green);
}

.feature-box h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-stats {
    display: flex;
    gap: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-green-light), var(--primary-green));
    border-radius: var(--border-radius-large);
    color: white;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.service-image {
    position: relative;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-large);
}

.service-tech-stack h4,
.service-process h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 6px 16px;
    background: var(--background-light);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: start;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.process-step h5 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ai-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--background-white);
    border-radius: var(--border-radius-large);
    padding: 40px;
    box-shadow: 0 10px 40px var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green-light), var(--primary-green));
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px var(--shadow-medium);
}

.service-icon {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--background-light);
    border-radius: 50%;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.service-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.service-buttons .btn {
    white-space: normal;
    text-align: center;
    max-width: 90%;
    line-height: 1.4;
}

.features {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--background-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: var(--transition);
    opacity: 0;
    animation: none;
}

.feature-card.fade-in {
    animation: fadeInScale 0.6s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.feature-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-green-light), var(--primary-green));
    color: var(--text-light);
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.technology {
    padding: 100px 0;
    background: var(--background-white);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.tech-category {
    opacity: 0;
    animation: none;
}

.tech-category.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.tech-category h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--primary-green);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--background-light);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--background-light);
    color: var(--primary-green);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.tech-tag:hover {
    background: var(--primary-green);
    color: var(--text-light);
    transform: scale(1.05);
}

.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-top: 60px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-green);
}

.info-list {
    display: grid;
    gap: 20px;
}

.info-list dt {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.info-list dd {
    color: var(--text-secondary);
    line-height: 1.8;
}

.info-list a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}

.info-list a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.main-footer {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 90px;
    width: auto;
    display: block;
    margin: 0 auto 10px;
}

.footer-nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-light);
    transition: width 0.3s ease;
}

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

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.footer-copyright p {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 30px var(--shadow-medium);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .service-content.reverse {
        direction: ltr;
    }

    .service-features-grid {
        grid-template-columns: 1fr;
    }

    .service-stats {
        flex-direction: column;
        gap: 20px;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .service-number {
        font-size: 2rem;
    }

    .service-main-title {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-nav {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        min-height: calc(100vh - 60px);
    }
    
    .nav-container {
        height: 60px;
    }
    
    .hero-content {
        padding: 20px 15px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-date {
        min-width: auto;
    }

    .news-category {
        min-width: auto;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}