@charset "UTF-8";

/* 釣行記一覧ページ専用スタイル
   ヘッダー・フッター・背景などの共通クロームは common.css に依存。
   #logList / #dateList は log-list.html の JS が動的に中身を生成する。 */

/* ===== レイアウト ===== */
.log-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 112px 24px 64px;
    position: relative;
    z-index: 10;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.back-btn:hover {
    color: var(--cyan);
}

/* ===== ページ見出し ===== */
.log-list-header {
    margin: 1.5rem 0 2.5rem;
}

.log-list-title {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 0.5rem;
}

.log-list-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* ===== 本体（一覧 ＋ 右アーカイブ） ===== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2rem;
    align-items: start;
}

.log-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

/* ===== 釣行記カード ===== */
.log-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.log-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 215, 255, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.log-item-content {
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
}

/* 画像 */
.log-item-image {
    position: relative;
    flex: 0 0 220px;
    min-height: 150px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #001829, #003058);
}

.log-thumbnail,
.log-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.log-thumbnail {
    object-fit: cover;
}

.log-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.log-item-type {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 10, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

/* 情報 */
.log-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0.25rem 0.25rem 0;
}

.log-item-header {
    margin-bottom: 0.6rem;
}

.log-item-date {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--cyan);
    background: rgba(0, 215, 255, 0.1);
    border: 1px solid rgba(0, 215, 255, 0.25);
}

.log-item-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.7;
    white-space: pre-line;
    margin-bottom: 1rem;
}

.log-item-footer {
    margin-top: auto;
}

.log-view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--cyan);
    font-size: 0.9rem;
    font-weight: 700;
    transition: gap 0.2s ease;
}

.log-item:hover .log-view-link {
    gap: 0.6rem;
}

/* ===== 右：アーカイブ ===== */
.date-list-sidebar {
    position: sticky;
    top: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}

.date-list-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.date-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.year-group {
    margin: 0;
}

.year-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.year-title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    flex: 0 0 auto;
    opacity: 0.6;
}

.year-title:hover {
    color: #fff;
    background: rgba(0, 215, 255, 0.08);
    border-color: rgba(0, 215, 255, 0.25);
}

.year-title.active {
    color: #fff;
    background: rgba(0, 215, 255, 0.16);
    border-color: rgba(0, 215, 255, 0.5);
}

.year-title.active::before {
    opacity: 1;
    box-shadow: 0 0 10px var(--cyan);
}

/* 任意：月リスト（現状JSは年のみ生成。将来用） */
.year-months {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.4rem 0 0.2rem 0.9rem;
}

.date-item {
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-item:hover,
.date-item.active {
    color: #fff;
    background: rgba(0, 215, 255, 0.12);
}

/* ===== ページネーション ===== */
.log-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.page-number {
    min-width: 40px;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-number:hover {
    color: #fff;
    background: rgba(0, 215, 255, 0.1);
    border-color: rgba(0, 215, 255, 0.3);
}

.page-number.active {
    color: #001829;
    background: var(--cyan);
    border-color: var(--cyan);
    cursor: default;
}

/* ===== 状態メッセージ ===== */
.loading-message,
.no-posts-message,
.error-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 1rem;
    font-size: 1rem;
}

/* ===== レスポンシブ ===== */
@media (max-width: 860px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    /* アーカイブは一覧の上に、横並びで配置 */
    .date-list-sidebar {
        position: static;
        max-height: none;
        order: -1;
    }

    .date-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .year-title {
        flex: 0 0 auto;
    }
}

@media (max-width: 560px) {
    .log-list-container {
        padding: 100px 16px 48px;
    }

    .log-list-title {
        font-size: 2rem;
    }

    .log-item-content {
        flex-direction: column;
    }

    .log-item-image {
        flex-basis: auto;
        width: 100%;
        height: 200px;
        min-height: 0;
    }
}
