:root {
    /* Colors - 緑とオレンジを基調としたカラースキーム */
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-color: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --primary-green: #00d084;
    --primary-orange: #ff8c00;
    --accent-color: #00d084;
    --border-color: #e5e5e5;
    --card-bg: #ffffff;

    /* Fonts */
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;

    /* Spacing */
    --container-width: 1100px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
    /* Fallback */
    overflow-x: hidden;
}

/* Animated Mesh Background */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #fdfdfd;
}

.background-mesh::before,
.background-mesh::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: moveMesh 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.background-mesh::before {
    background: radial-gradient(circle, rgba(0, 208, 132, 0.3) 0%, rgba(0, 208, 132, 0) 70%);
    width: 60vw;
    height: 60vw;
    top: -10%;
    left: -10%;
    transform-origin: 30% 30%;
}

.background-mesh::after {
    background: radial-gradient(circle, rgba(255, 140, 0, 0.3) 0%, rgba(255, 140, 0, 0) 70%);
    width: 70vw;
    height: 70vw;
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
    transform-origin: 70% 70%;
}

@keyframes moveMesh {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, 20px) scale(1.1);
    }

    100% {
        transform: translate(-20px, -20px) scale(0.95);
    }
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.btn-primary {
    padding: 0.6rem 1.5rem;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #00b872;
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.3);
}

/* Standard Floating Card Style (UnionAI style) */
.floating-content-card,
.feature-item,
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    border-radius: 24px;
    padding: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Service Card - Organic Shape & Gradient Border */
.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 60px 20px 60px 20px;
    /* Asymmetric Organic Shape */
    padding: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    /* Placeholder for spacing */
    z-index: 1;
}

/* Gradient Border using Pseudo-element and Mask */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 60px 20px 60px 20px;
    padding: 2px;
    /* Border thickness */
    background: linear-gradient(135deg, #00D084, #FF8C00);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.floating-content-card:hover,
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(16, 20, 19, 0.15);
    /* Subtle green glow on hover */
    border-color: rgba(0, 208, 132, 0.3);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('hero_visual.jpg') center center / cover no-repeat;
    margin-bottom: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.mission-text {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Philosophy Section */
.philosophy-section {
    padding: 6rem 0;
    /* Background removed for floating style */
}

.philosophy-content {
    /* floating-content-card class handles the card structure */
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 2;
    margin-bottom: 2rem;
}

.philosophy-detail {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 2;
}

/* Philosophy Sub-sections */
.philosophy-block {
    margin-top: 3rem;
    margin-bottom: 0;
}

.philosophy-block .section-header {
    margin-bottom: 1.5rem;
}

.philosophy-block:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.subsection-label {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--primary-green);
}

.value-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* Vision Section */
.vision-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.vision-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.8;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    z-index: 1;
}

.value-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #00D084, #FF8C00);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 208, 132, 0.15);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.value-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.5;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 2;
}

.btn-glow {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-green));
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 208, 132, 0.3);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 208, 132, 0.4);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Common */
.section-padding {
    padding: 6rem 0;
}

/* Common Floating Section Style for other sections */
main section:not(.hero-section),
.footer {
    width: 92%;
    max-width: var(--container-width);
    margin: 30px auto;
    background: transparent;
    /* Removed specific background for floating style */
    backdrop-filter: none;
    /* Removed specific backdrop-filter for floating style */
    border-radius: 0;
    /* Removed specific border-radius for floating style */
    box-shadow: none;
    /* Removed specific box-shadow for floating style */
    border: none;
    /* Removed specific border for floating style */
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.section-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-green);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 20px rgba(0, 208, 132, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.service-desc {
    color: var(--primary-green);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.service-detail {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Company Section */
.company-info {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: none;
    border-radius: 12px;
    padding: 3rem;
}

.company-info:hover {
    border-color: transparent;
    box-shadow: none;
}

.info-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 180px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-value {
    flex: 1;
    font-weight: 400;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: none;
    border-radius: 12px;
}

.contact-form-container:hover {
    border-color: transparent;
    box-shadow: none;
}

.contact-form {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    padding: 3rem 0;
    /* Background handled by common floating style */
    /* border-top removed */
    text-align: center;
}

.footer p {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Form Message */
.form-message {
    text-align: center;
    padding: 2rem;
}

.form-message h3 {
    margin-bottom: 0.5rem;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Background overlay - hidden */
.background-overlay {
    display: none;
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    z-index: 999;
    transition: transform 0.3s ease;
}

.floating-contact:hover {
    transform: translateY(-5px);
}

.floating-mascot {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.floating-contact:hover .floating-mascot {
    transform: scale(1.1);
}

.floating-label {
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--primary-green);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid .value-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .info-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-label {
        width: 100%;
    }

    .nav-links {
        gap: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .logo img {
        height: 35px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .company-info {
        padding: 2rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .hero-section {
        min-height: 70vh;
    }

    .mission-text {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .philosophy-lead {
        font-size: 1.1rem;
    }

    .philosophy-detail {
        font-size: 1rem;
    }

    .vision-text {
        font-size: 1.4rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .values-grid .value-card:last-child {
        max-width: 100%;
    }

    .value-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-links li:not(:last-child) {
        display: none;
    }
}