/* ============================================
   Clover Homepage - Company Specific Styles
   ============================================ */

/* 会社概要ページの写真下のスペース（ラベルが写真から出る分の余白を追加） */
.about-section .service-main-media {
    margin-bottom: 120px; /* キンダーページと同じく、ラベルが写真から出る分の余白 */
    background: transparent !important; /* 透過PNGの背景を正しく表示するため */
}

/* 会社概要ページのno-media背景も透過に */
.about-section .service-main-media .no-media {
    background: transparent !important;
}

/* Header */
.company-header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.company-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.company-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.company-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.company-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    color: white;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.6s ease;
}

.hero-section:hover .hero-video {
    transform: scale(1.15);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(46, 125, 50, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(255, 107, 53, 0.3) 100%
    );
    z-index: 2;
    transition: opacity 0.6s ease;
}

.hero-section:hover .hero-overlay {
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 3; /* テキストを動画の上に表示 */
    animation: fadeInUp 1s ease-out;
    max-width: 800px;
    padding: 0 20px;
}

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

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fff5e6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-shadow: none;
    letter-spacing: -0.02em;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s both;
    position: relative;
}

.hero-section h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-warm);
    border-radius: 2px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
    font-size: 1.1rem;
    padding: 18px 50px;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.hero-section .btn:hover {
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
    transform: translateY(-5px);
}

/* Section */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

/* Services Grid */
/* 会社概要ページ専用のサービスグリッド */
.company-section .services-grid,
.about-section .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.company-service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.company-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.company-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-green);
    border-color: var(--primary-color);
}

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

.company-service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.company-service-card:hover h3 {
    color: var(--secondary-color);
}

.company-service-card p {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.company-service-card:hover p {
    color: var(--text-color);
}

/* News List */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-item h3 {
    margin-bottom: 0.5rem;
}

.news-item a {
    color: var(--text-color);
}

.news-item a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-section {
    background-color: transparent;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
.company-footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.company-footer a {
    color: white;
    opacity: 0.8;
}

.company-footer a:hover {
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h1::after {
        width: 60px;
        height: 3px;
    }

    .hero-section p {
        font-size: 1.1rem;
    }
    
    .hero-section .btn {
        font-size: 1rem;
        padding: 15px 40px;
    }
    .company-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow);
        padding: 1rem 0;
    }
    
    .company-nav.active {
        display: block;
    }
    
    .company-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .company-nav ul li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .company-nav ul li a {
        display: block;
        padding: 1rem 2rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .company-section .services-grid,
    .about-section .services-grid {
        grid-template-columns: 1fr;
    }
}
/* Footer Content */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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