@import 'color-palette.css';

/**
 * Anaba OffJapan ホームページスタイル v3.0
 * 新カテゴリ体系 + モダン豪華デザイン
 */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========================================
   ヒーローセクション
   ======================================== */

.hero {
    position: relative;
    height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

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

.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    animation: pulse 12s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    font-weight: 300;
}

.hero-cta {
    display: inline-flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-btn {
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.hero-btn-primary {
    background: white;
    color: #667eea;
}

.hero-btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
}

/* ========================================
   統計セクション
   ======================================== */

.stats-section {
    background: white;
    padding: 60px 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    margin-top: -50px;
    position: relative;
    z-index: 2;
    border-radius: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item { animation: fadeInUp 0.6s ease-out; }

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* ========================================
   セクションタイトル
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease-out;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   カテゴリセクション
   ======================================== */

.categories-section {
    padding: 80px 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: all 0.4s ease;
    animation: slideInLeft 0.6s ease-out;
}

.category-card:nth-child(2) { animation-delay: 0.1s; }
.category-card:nth-child(3) { animation-delay: 0.2s; }
.category-card:nth-child(4) { animation-delay: 0.3s; }
.category-card:nth-child(5) { animation-delay: 0.4s; }
.category-card:nth-child(6) { animation-delay: 0.5s; }

.category-card-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transition: transform 0.4s ease;
}

/* カテゴリ別グラデーション */
.category-card:nth-child(1) .category-card-bg { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.category-card:nth-child(2) .category-card-bg { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.category-card:nth-child(3) .category-card-bg { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.category-card:nth-child(4) .category-card-bg { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.category-card:nth-child(5) .category-card-bg { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.category-card:nth-child(6) .category-card-bg { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }

.category-card:hover .category-card-bg { transform: scale(1.1); }

.category-card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.category-card-icon { font-size: 3.5rem; margin-bottom: 15px; }
.category-card-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; }
.category-card-desc { font-size: 0.95rem; opacity: 0.9; margin-bottom: 10px; }
.category-card-count { font-size: 1.1rem; font-weight: 600; opacity: 0.8; }

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ========================================
   記事カード
   ======================================== */

.latest-articles-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.article-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.article-card-link:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 3px;
    border-radius: 20px;
}

.article-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.article-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.article-card-badge {
    position: absolute;
    top: 15px; left: 15px;
    padding: 6px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-card-content { padding: 25px; }

.article-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #333;
}

.article-card:hover .article-card-title,
.article-card-link:focus-visible .article-card-title {
    color: #667eea;
}

.article-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #999;
}

/* ========================================
   CTA セクション
   ======================================== */

.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    padding: 18px 50px;
    background: white;
    color: #667eea;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* ========================================
   レスポンシブ
   ======================================== */

@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { height: 500px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .stats-section { margin-top: -30px; padding: 40px 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-number { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .categories-grid { grid-template-columns: 1fr; }
    .category-card { height: 220px; }
    .articles-grid { grid-template-columns: 1fr; }
    .cta-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero { height: 400px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-btn { width: 100%; max-width: 280px; text-align: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-number { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .article-card-image { height: 180px; }
}
