/**
 * 共通コンポーネントスタイル
 *
 * 複数ページで共有されるレイアウト・UIコンポーネント。
 */

/* ==========================================================================
   グリッドレイアウト
   ========================================================================== */

.events-grid,
.schools-grid,
.videos-grid,
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1023px) {
    .events-grid,
    .schools-grid,
    .videos-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .events-grid,
    .schools-grid,
    .videos-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   空状態（ライトテーマ）
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    background: #f1f5f9;
    border: 1px dashed #e2e8f0;
    border-radius: 1.5rem;
}

.empty-state__icon {
    width: 5rem;
    height: 5rem;
    color: #cbd5e1;
    margin: 0 auto 1.5rem;
}

.empty-state__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.empty-state__text {
    color: #64748b;
    margin: 0;
}

/* ==========================================================================
   ページネーション（ライトテーマ）
   ========================================================================== */

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    color: #64748b;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-wrapper .page-numbers:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

.pagination-wrapper .page-numbers.dots {
    border: none;
    background: transparent;
    color: #94a3b8;
}

/* ==========================================================================
   ページヒーロー
   ========================================================================== */

.page-hero {
    position: relative;
    padding: 4rem 1.5rem 3rem;
    overflow: hidden;
}

.page-hero__content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.page-hero__breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.page-hero__breadcrumb a:hover {
    color: #0f172a;
}

.page-hero__breadcrumb-separator {
    opacity: 0.3;
}

.page-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    border: 1px solid;
}

.page-hero__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.page-hero__title-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.page-hero__subtitle {
    font-size: 1.125rem;
    color: #64748b;
}

/* ==========================================================================
   ページコンテンツ
   ========================================================================== */

.page-content {
    padding: 3rem 1.5rem 6rem;
}

.page-content__container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ==========================================================================
   セクションヘッダー
   ========================================================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-header__text {
    max-width: 500px;
}

.section-header__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 9999px;
    color: #6366f1;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-header__action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.section-header__action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

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

@media (max-width: 640px) {
    .page-hero__title {
        font-size: 1.75rem;
    }

    .page-hero__title-icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   スクロールトップボタン
   ========================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #475569;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.scroll-to-top i {
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 640px) {
    .scroll-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}
