/* ============================================================
   DE Blog - デジタル従業員ブログ
   ============================================================ */

/* ヒーロー */
.deb-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.deb-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(63,81,181,0.2) 0%, transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(0,188,212,0.15) 0%, transparent 60%);
}

.deb-hero .container { position: relative; z-index: 1; }

.deb-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.deb-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
}

.deb-hero__subtitle {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.8;
    margin: 0;
}

/* カテゴリフィルタ */
.deb-filters {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    position: sticky;
    top: 60px;
    z-index: 10;
}

.deb-filters__list {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.deb-filters__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #555;
    background: #f5f5f5;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.deb-filters__item:hover {
    background: #e0e0e0;
    color: #333;
}

.deb-filters__item--active {
    color: #fff !important;
    border-color: transparent;
}

/* メイン */
.deb-main {
    padding: 3rem 0;
    min-height: 50vh;
    background: #fafafa;
}

/* 記事グリッド */
.deb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* 記事カード */
.deb-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.deb-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem 0;
}

.deb-card__cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.deb-card__date {
    font-size: 12px;
    color: #999;
}

.deb-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    padding: 0.75rem 1.25rem 0;
    margin: 0;
    color: #1a1a2e;
}

.deb-card__excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    padding: 0.5rem 1.25rem;
    margin: 0;
    flex: 1;
}

.deb-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
}

.deb-card__author {
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.deb-card__author .fa-user { color: #3f51b5; }

.deb-card__more {
    color: #3f51b5;
    font-weight: 600;
}

/* 空状態 */
.deb-empty {
    text-align: center;
    padding: 4rem 0;
    color: #999;
}

.deb-empty i { font-size: 3rem; margin-bottom: 1rem; display: block; }
.deb-empty h1 { font-size: 1.5rem; color: #555; }

/* パンくず */
.deb-breadcrumb {
    background: #f5f5f5;
    padding: 0.75rem 0;
    font-size: 13px;
}

.deb-breadcrumb ol {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.deb-breadcrumb li + li::before {
    content: "›";
    margin-right: 0.5rem;
    color: #999;
}

.deb-breadcrumb a { color: #3f51b5; text-decoration: none; }
.deb-breadcrumb a:hover { text-decoration: underline; }
.deb-breadcrumb li:last-child { color: #666; }

/* 記事ヘッダー */
.deb-post-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 2.5rem 0;
    color: #fff;
}

.deb-post-header__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 14px;
    flex-wrap: wrap;
}

.deb-post-header__cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.deb-post-header__author { opacity: 0.8; }

.deb-post-header__title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 1rem;
}

.deb-post-header__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.deb-tag {
    background: rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
}

/* 記事本文 */
.deb-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.deb-article {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    line-height: 1.9;
    font-size: 16px;
    color: #333;
}

.deb-article h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3f51b5;
}

.deb-article h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin: 1.5rem 0 0.75rem;
}

.deb-article pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.deb-article code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
}

.deb-article pre code { background: none; padding: 0; }

.deb-article blockquote {
    border-left: 4px solid #3f51b5;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: #f8f9ff;
    border-radius: 0 8px 8px 0;
    color: #555;
}

.deb-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.deb-article th, .deb-article td {
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
}

.deb-article th {
    background: #f5f5f5;
    font-weight: 700;
}

.deb-article ul, .deb-article ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.deb-article li { margin-bottom: 0.5rem; }

.deb-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.deb-article a { color: #3f51b5; }

/* 記事ナビ */
.deb-post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.deb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #3f51b5;
    background: #fff;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.deb-btn:hover { background: #f5f5f5; }

.deb-btn--primary {
    background: #3f51b5;
    color: #fff;
    border-color: #3f51b5;
}

.deb-btn--primary:hover { background: #303f9f; }

/* レスポンシブ */
@media (max-width: 768px) {
    .deb-hero__title { font-size: 1.75rem; }
    .deb-grid { grid-template-columns: 1fr; }
    .deb-article { padding: 1.5rem; }
    .deb-post-header__title { font-size: 1.35rem; }
    .deb-post-nav { flex-direction: column; }
}

@media (max-width: 480px) {
    .deb-hero { padding: 2.5rem 0 2rem; }
    .deb-hero__title { font-size: 1.5rem; }
    .deb-filters__list { gap: 0.5rem; }
    .deb-filters__item { padding: 6px 12px; font-size: 12px; }
}
