/* ===================================
   パララックス効果 - 私たちについてセクション
   ===================================*/

/* パララックス背景コンテナ */
.parallax-about-section {
    position: relative;
    min-height: 100vh;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 4rem 0;
    z-index: 2; /* オーバーラップ防止のためz-indexを設定 */
}

/* 私たちについてセクション専用の調整 */
#company.parallax-about-section {
    z-index: 3; /* 各社紹介より上に表示 */
    margin-top: -2rem; /* 各社紹介セクションとの重なりを調整 */
}

/* パララックス背景画像（最適化済み） */
.parallax-background {
    position: absolute;
    top: -20vh;
    left: 0;
    width: 100%;
    height: 120vh;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translate3d(0, 0, 0); /* ハードウェアアクセラレーション */
    backface-visibility: hidden; /* 描画最適化 */
    z-index: 1;
    
    /* デフォルト背景画像（プレースホルダー） */
    background-image: linear-gradient(
        135deg, 
        rgba(27, 54, 93, 0.8) 0%, 
        rgba(46, 139, 148, 0.8) 100%
    ), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080" fill="%23f8f9fa"><rect width="100%" height="100%" fill="%23e9ecef"/><text x="50%" y="50%" font-family="Arial" font-size="48" text-anchor="middle" dy=".3em" fill="%236c757d">企業背景画像エリア</text></svg>');
}

/* パララックス背景（実際の画像用） */
.parallax-background.with-image {
    background-image: linear-gradient(
        135deg, 
        rgba(27, 54, 93, 0.7) 0%, 
        rgba(46, 139, 148, 0.7) 100%
    ), var(--bg-image);
}

/* コンテンツオーバーレイ */
.parallax-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 6px;
    padding: 3rem;
    margin: 2rem auto; /* auto を追加してセンタリング */
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center; /* 子要素をセンタリング */
}

/* コンテンツ内のタイトル */
.parallax-content .section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.parallax-content .section-subtitle {
    color: var(--gray-700);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* 企業理念エリア */
.company-vision {
    text-align: center;
    margin-bottom: 2rem;
}

.company-vision h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.company-vision .lead {
    font-size: 1.1rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.company-vision p {
    color: var(--gray-700);
    line-height: 1.7;
}

/* 特徴カード */
.feature-cards {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: stretch;
    gap: 2rem;
    margin: 2rem auto 0 auto !important;
    max-width: 1200px;
    width: 100% !important;
    text-align: center; /* 追加 */
}

.feature-card {
    flex: 0 1 250px;  /* 最小幅250px、伸縮可能 */
    max-width: 350px; /* 最大幅制限 */
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(27, 54, 93, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.feature-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.feature-description {
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* レスポンシブ対応（最適化済み） */
@media (max-width: 768px) {
    .parallax-about-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .parallax-background {
        /* モバイルではパララックス無効 */
        transform: none !important;
        top: 0;
        height: 100vh;
        will-change: auto;
    }
    
    .parallax-content {
        padding: 2rem;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .parallax-content .section-title {
        font-size: 2rem;
    }
    
    .parallax-content .section-subtitle {
        font-size: 1.1rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .company-vision h3 {
        font-size: 1.5rem;
    }
    
    /* 各社紹介セクションのモバイル対応（スライドアニメーション分20pxを追加） */
    #company-selection.parallax-about-section {
        padding: 2rem 0 calc(2rem + 10px) 0 !important;
    }
}

@media (max-width: 480px) {
    .parallax-content {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .parallax-content .section-title {
        font-size: 1.8rem;
    }
    
    .feature-cards {
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
}

/* ===================================
   各社紹介セクション専用調整
   ===================================*/

/* 各社紹介セクション（company-selection）専用の高さ調整 */
#company-selection.parallax-about-section {
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding: 4rem 0 calc(18rem + 20px) 0 !important; /* スライドアニメーション分(20px)を追加 */
    margin-bottom: 4rem !important;
    /* 確認用の一時的な背景（修正反映確認用） */
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 255, 0, 0.05) 100%) !important;
}

/* 各社紹介コンテンツエリアの調整 */
#company-selection .parallax-content {
    max-width: none !important;
    width: 100% !important;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 会社カードコンテナの高さ制限を完全に解除 */
#companies-container {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}
