/* ==========================================
   スマート物流 特設ページ
   ヒーローセクション専用スタイル
   ========================================== */

/* ==========================================
   1. ヒーローメインタイトル（主役級）
   ========================================== */
.hero-main-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: center;
    animation: heroTitleFadeIn 1.2s ease-out;
}

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

/* ==========================================
   2. ヒーローサブタイトル
   ========================================== */
.hero-main-subtitle {
    font-size: clamp(14px, 1.8vw, 20px);
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: heroSubtitleFadeIn 1.4s ease-out 0.2s both;
}

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

/* ==========================================
   3. ヒーロー特徴カード（グラスモーフィズム）
   ========================================== */
.hero-feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 50px auto 0;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .hero-feature-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .hero-feature-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ==========================================
   4. カード本体（説明文なし・グラスモーフィズム）
   ========================================== */
.hero-feature-card {
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    color: #ffffff;
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* ホバーエフェクト */
.hero-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.hero-feature-card:hover::before {
    opacity: 1;
}

.hero-feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 
        0 20px 48px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ==========================================
   5. カードアイコン
   ========================================== */
.hero-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-feature-card:hover .hero-feature-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(5deg);
}

.hero-feature-icon i {
    font-size: 28px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   6. カードタイトル
   ========================================== */
.hero-feature-title {
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .hero-feature-title {
        font-size: 13px;
        white-space: normal;
    }
}

/* ==========================================
   7. アニメーション（順次表示）
   ========================================== */
.hero-feature-card {
    animation: cardFadeInUp 0.7s ease-out both;
}

.hero-feature-card:nth-child(1) {
    animation-delay: 0.3s;
}

.hero-feature-card:nth-child(2) {
    animation-delay: 0.45s;
}

.hero-feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-feature-card:nth-child(4) {
    animation-delay: 0.75s;
}

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

/* ==========================================
   8. レスポンシブ調整
   ========================================== */
@media (max-width: 1024px) {
    .hero-main-title {
        font-size: clamp(32px, 4.5vw, 56px);
    }
    
    .hero-feature-card {
        padding: 24px 16px;
    }
    
    .hero-feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .hero-feature-icon i {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: clamp(28px, 4vw, 48px);
        letter-spacing: 0.04em;
        margin-bottom: 16px;
    }
    
    .hero-main-subtitle {
        font-size: clamp(13px, 1.6vw, 18px);
        letter-spacing: 0.03em;
    }
    
    .hero-feature-card {
        padding: 20px 14px;
    }
    
    .hero-feature-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 12px;
    }
    
    .hero-feature-icon i {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 12px;
    }
    
    .hero-main-subtitle {
        font-size: clamp(12px, 3.5vw, 16px);
        line-height: 1.6;
    }
    
    .hero-feature-cards {
        margin-top: 30px;
    }
    
    .hero-feature-card {
        padding: 18px 12px;
    }
    
    .hero-feature-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 10px;
    }
    
    .hero-feature-icon i {
        font-size: 20px;
    }
}

/* ==========================================
   9. 高コントラストモード対応
   ========================================== */
@media (prefers-contrast: high) {
    .hero-main-title,
    .hero-main-subtitle,
    .hero-feature-title {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .hero-feature-card {
        border: 2px solid rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.2);
    }
}

/* ==========================================
   10. アクセシビリティ対応
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    .hero-main-title,
    .hero-main-subtitle,
    .hero-feature-card {
        animation: none;
    }
    
    .hero-feature-card:hover {
        transform: none;
    }
}

/* ==========================================
   11. ダークモード対応（将来対応用）
   ========================================== */
@media (prefers-color-scheme: dark) {
    .hero-feature-card {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }
}
