/**
 * note記事一覧ページのスタイル
 *
 * @package ReDU
 */

/* ===========================
   note記事ページ全体
   =========================== */
.note-page {
    padding: 60px 20px;
    background-color: #f9f9f9;
    min-height: 70vh;
}

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

/* ===========================
   ページヘッダー
   =========================== */
.note-header {
    text-align: center;
    margin-bottom: 60px;
}

.note-page-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.note-page-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* ===========================
   記事リスト
   =========================== */
.note-list {
    display: grid;
    gap: 30px;
}

.note-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.note-item-link:hover {
    transform: translateY(-5px);
}

.note-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 280px 1fr auto;
    gap: 20px;
    align-items: center;
    transition: box-shadow 0.3s ease;
    padding: 20px;
}

.note-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ===========================
   記事画像
   =========================== */
.note-image {
    width: 280px;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.note-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.note-item:hover .note-image img {
    transform: scale(1.05);
}

.note-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Bebas Neue', cursive;
}

/* ===========================
   記事コンテンツ
   =========================== */
.note-content {
    flex: 1;
    min-width: 0;
}

.note-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
    font-family: 'Mohave', sans-serif;
}

.note-item-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: 'Noto Sans JP', sans-serif;
}

.note-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ===========================
   リンクアイコン
   =========================== */
.note-link {
    font-size: 1rem;
    color: #667eea;
    font-weight: 600;
    white-space: nowrap;
    padding-right: 10px;
    transition: color 0.3s ease;
}

.note-item:hover .note-link {
    color: #764ba2;
}

/* ===========================
   ページネーション
   =========================== */
.note-pagination {
    margin-top: 60px;
    text-align: center;
}

.note-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.note-pagination .page-numbers li {
    display: inline-block;
}

.note-pagination a,
.note-pagination span {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.note-pagination a:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.note-pagination .current {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    font-weight: 600;
}

/* ===========================
   記事なしメッセージ
   =========================== */
.no-note-articles {
    text-align: center;
    padding: 80px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.no-note-articles p {
    font-size: 1.1rem;
    color: #999;
}

/* ===========================
   レスポンシブデザイン
   =========================== */

/* タブレット */
@media (max-width: 768px) {
    .note-page {
        padding: 40px 15px;
    }

    .note-page-title {
        font-size: 2rem;
    }

    .note-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .note-image {
        width: 100%;
        height: 200px;
    }

    .note-link {
        text-align: right;
        padding-right: 0;
    }

    .note-item-title {
        font-size: 1.2rem;
    }
}

/* スマートフォン */
@media (max-width: 480px) {
    .note-page {
        padding: 30px 10px;
    }

    .note-page-title {
        font-size: 1.75rem;
    }

    .note-page-description {
        font-size: 1rem;
    }

    .note-item-title {
        font-size: 1.1rem;
    }

    .note-excerpt {
        font-size: 0.9rem;
    }

    .note-pagination a,
    .note-pagination span {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}
