/* ========================================
   Home Page Styles
   日本自動車大学校 袖ケ浦校 - トップページ専用スタイル
======================================== */

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    padding: var(--spacing-md);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--color-accent);
    font-size: 5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.hero-prev {
    left: 2rem;
}

.hero-next {
    right: 2rem;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.hero-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.hero-dot.active {
    background: #FFFFFF;
    width: 50px;
    border-radius: 10px;
    border: 2px solid #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Featured Cards Slider Section */
.featured-cards {
    padding: var(--spacing-lg) 0;
    background: #FFFFFF;
    overflow: visible;
}

.featured-slider-wrapper {
    position: relative;
    padding: 0;
    max-width: 100%;
}

.featured-slider {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem;
    transition: none;
    transform: none !important;
}

.featured-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    width: 100%;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.featured-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.featured-card-image {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.featured-card:hover .featured-card-image img {
    transform: scale(1.1);
}

.featured-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-card:hover .featured-card-overlay {
    opacity: 1;
}

.featured-card-overlay i {
    font-size: 2.5rem;
    color: #FFFFFF;
}

.featured-card-content {
    padding: 1.25rem;
}

.featured-card-title {
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.featured-card-description {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    min-height: 2.8em;
}

.featured-card-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: var(--transition-base);
}

.featured-card:hover .featured-card-more {
    gap: 0.75rem;
}

.featured-card-more i {
    font-size: 0.75rem;
}

.featured-prev,
.featured-next {
    display: none;
}

/* Strengths Section */
.strengths {
    background: var(--color-background-gray);
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.strength-card {
    background: #FFFFFF;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.strength-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.strength-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 2.5rem;
}

.strength-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.strength-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.strength-number span {
    font-size: 2rem;
    font-weight: 700;
}

.strength-description {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Departments Section */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.department-card {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.department-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.department-content {
    padding: var(--spacing-lg);
}

.department-tag {
    display: inline-block;
    background: var(--gradient-accent);
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.department-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.department-description {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.department-features {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.department-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.department-features i {
    color: var(--color-primary);
    font-size: 1.125rem;
}

/* News & Events Section */
.news-events {
    background: #FFFFFF;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.news-tab {
    padding: 0.75rem 1.5rem;
    background: var(--color-background-gray);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition-base);
}

.news-tab.active {
    background: var(--gradient-primary);
    color: #FFFFFF;
}

.news-tab:hover {
    background: var(--color-primary-light);
    color: #FFFFFF;
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--color-background-gray);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: var(--transition-base);
}

.news-item:hover {
    background: #FFFFFF;
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.news-item.hidden {
    display: none;
}

.news-date {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-light);
    white-space: nowrap;
}

.news-label {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
}

.label-important {
    background: #E74C3C;
}

.label-admission {
    background: var(--color-primary);
}

.label-event {
    background: #28A745;
}

.label-trial {
    background: #FF6B00;
}

.label-level2 {
    background: #003DA5;
}

.label-blog {
    background: #28A745;
}

.news-title {
    flex: 1;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-text);
}

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

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

.news-more {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: #FFFFFF;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-slider {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
    
    .strengths-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Hero Section Mobile Layout */
    .hero {
        aspect-ratio: 3 / 4; /* モバイル用の縦長アスペクト比 */
    }
    
    .hero-slide {
        background-size: cover;
        background-position: center 30%; /* 画像を上部寄りに配置して天地を広げる */
    }
    
    .hero-content {
        justify-content: flex-end; /* コンテンツを下部に配置 */
        padding: 1rem 1.5rem 3rem; /* 下部にスペースを確保 */
        text-align: center !important; /* すべてのスライドで中央揃え */
        margin: 0 !important; /* インラインスタイルを上書き */
        max-width: 100% !important;
    }
    
    .hero-content > * {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .hero-title .highlight {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        font-size: 0.9375rem;
        padding: 0.875rem 1.5rem;
    }
    
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .hero-prev {
        left: 1rem;
    }
    
    .hero-next {
        right: 1rem;
    }
    
    .hero-dots {
        bottom: 1rem;
        gap: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-dot {
        width: 12px;
        height: 12px;
        border: 2px solid #FFFFFF;
    }
    
    .hero-dot.active {
        width: 35px;
        border-radius: 8px;
    }
    
    .featured-cards {
        padding: var(--spacing-md) 0;
    }
    
    .featured-slider {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .featured-card-image {
        height: 180px;
    }
    
    .strength-number {
        font-size: 2.5rem;
    }
    
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}
