/* ============================================================
   ConnectLab / index.css
   対象: index.php 固有スタイル
   前提: common.css を先に読み込むこと
   ============================================================ */

/* ----------------------------------------------------------
   1. カルーセル（スライダー）
   ---------------------------------------------------------- */
.cl-slider {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: var(--cl-radius);
    margin-bottom: 36px;
}

.cl-slider__inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.cl-slider__slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
}

.cl-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----------------------------------------------------------
   2. 記事詳細ビュー：メタ情報エリア
   ---------------------------------------------------------- */
.cl-article-meta {
    max-width: 90%;
    margin: 0 auto 16px;
    padding: 0 10px;
}

.cl-article-meta__title {
    font-size: 1.9em;
    font-weight: bold;
    color: var(--cl-primary);
    margin: 8px 0 12px;
    line-height: 1.3;
}

.cl-article-meta__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid color-mix(in srgb, var(--cl-primary) 20%, transparent);
    color: var(--cl-muted);
    font-size: 0.88em;
}

.cl-article-meta__author {
    font-weight: bold;
    color: var(--cl-primary);
}

/* 連載一覧に戻るリンク */
.cl-series-link {
    display: inline-block;
    margin-top: 12px;
    padding: 5px 14px;
    background-color: var(--cl-primary);
    color: var(--cl-secondary);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.84em;
    font-weight: bold;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--cl-primary) 25%, transparent);
    transition: opacity 0.2s ease;
}

.cl-series-link:hover {
    opacity: 0.85;
}

/* ----------------------------------------------------------
   3. 連載カタログ：件数・日付
   ---------------------------------------------------------- */
.cl-series-catalog__foot {
    text-align: right;
    font-size: 0.78em;
    color: var(--cl-muted);
    margin-top: auto;
    padding-top: 6px;
}

/* ----------------------------------------------------------
   4. レスポンシブ補足（index固有）
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .cl-slider {
        height: 200px;
        margin-bottom: 20px;
    }

    .cl-article-meta__title {
        font-size: 1.4em;
    }
}

/* ----------------------------------------------------------
   5. プロフィールヘッダー拡張（index固有オーバーライド）
   ---------------------------------------------------------- */

.cl-profile-header {
    flex-direction: row;
    align-items: flex-start;
    padding: 40px 36px;
    min-height: 180px;
}

.cl-profile-header__avatar,
.cl-profile-header__avatar--text {
    width: 100px;
    height: 100px;
    min-width: 100px;
    font-size: 1.8em;
}

.cl-profile-header__profile-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    padding: 6px 16px;
    background-color: color-mix(in srgb, var(--cl-secondary) 20%, transparent);
    border: 1px solid color-mix(in srgb, var(--cl-secondary) 60%, transparent);
    color: var(--cl-secondary);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.84em;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.cl-profile-header__profile-link:hover {
    background-color: color-mix(in srgb, var(--cl-secondary) 35%, transparent);
}

@media (max-width: 768px) {
    .cl-profile-header {
        padding: 28px 20px;
        min-height: 140px;
    }
    .cl-profile-header__avatar,
    .cl-profile-header__avatar--text {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }
}

/* ----------------------------------------------------------
   6. 記事本文内のハッシュタグ表示
   ---------------------------------------------------------- */
.cl-hashtag {
    color: color-mix(in srgb, var(--cl-primary) 45%, #888);
    font-size: 0.88em;
    font-style: normal;
}
