/* ===================================
   グローバルスタイル
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* ===================================
   トップページスタイル
   =================================== */
.main-header {
    text-align: center;
    padding: 60px 20px 40px;
    color: white;
}

.main-header h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

.company-selection {
    padding: 40px 20px;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.company-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    transition: height 0.3s ease;
}

.taxi-card::before {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.business-card::before {
    background: linear-gradient(90deg, #ff6b6b, #feca57);
}

.company-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.company-card:hover::before {
    height: 100%;
    opacity: 0.1;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.taxi-card .card-icon {
    color: #2ecc71;
}

.business-card .card-icon {
    color: #ff6b6b;
}

.company-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #555;
}

.arrow {
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 2rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.company-card:hover .arrow {
    transform: translateX(10px);
}

.main-footer {
    text-align: center;
    padding: 40px 20px;
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===================================
   アニメーション
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.slide-up {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.slide-up-delay {
    animation: slideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* ===================================
   レスポンシブデザイン
   =================================== */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .selection-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .company-card {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 2rem;
    }
    
    .company-card h2 {
        font-size: 1.3rem;
    }
}
