/* ========================================
   足跡ページ専用スタイル
   水色×白のシンプルデザイン
   ======================================== */

.page-footprints {
    min-height: 100vh;
    background: linear-gradient(to bottom, #e3f2fd 0%, #ffffff 100%);
    padding: 60px 20px;
}

/* ヘッダー */
.footprints-header {
    text-align: center;
    margin-bottom: 50px;
}

.footprints-title {
    font-size: 2.5rem;
    color: #01579b;
    margin-bottom: 10px;
    font-weight: 600;
}

.footprints-description {
    font-size: 1.1rem;
    color: #0288d1;
}

/* 年タブ */
.year-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.year-tab {
    padding: 12px 30px;
    background: white;
    color: #0288d1;
    border: 2px solid #e1f5fe;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-tab:hover {
    background: #e1f5fe;
    border-color: #4fc3f7;
}

.year-tab.active {
    background: #4fc3f7;
    color: white;
    border-color: #4fc3f7;
}

/* 年コンテンツ */
.year-content {
    max-width: 800px;
    margin: 0 auto;
}

/* 月グループ */
.month-group {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.month-group:hover {
    border-color: #b3e5fc;
}

.month-group.expanded {
    border-color: #4fc3f7;
}

/* 月のトグルボタン */
.month-toggle {
    width: 100%;
    padding: 20px 25px;
    background: linear-gradient(135deg, #e1f5fe 0%, #ffffff 100%);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.month-toggle:hover {
    background: linear-gradient(135deg, #b3e5fc 0%, #e1f5fe 100%);
}

.month-name {
    font-size: 1.3rem;
    color: #01579b;
    font-weight: 600;
}

.toggle-icon {
    font-size: 1rem;
    color: #0288d1;
    transition: transform 0.3s ease;
}

.month-group.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* 月の投稿リスト */
.month-posts {
    display: none;
    padding: 10px 0;
}

/* 足跡アイテム */
.footprint-item {
    border-bottom: 1px solid #e1f5fe;
    display: flex;
    padding: 15px 25px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.footprint-item:last-child {
    border-bottom: none;
}

.footprint-item:hover {
    background: #f1f8fb;
    padding-left: 30px;
}

.footprint-date {
    font-size: 0.9rem;
    color: #0288d1;
    font-weight: 500;
    width: 100px;
    flex-shrink: 0;
}

.footprint-date-spacer {
    display: inline-block;
    width: 100px;
    flex-shrink: 0;
}

.footprint-separator {
    margin: 0 10px;
    color: #b3e5fc;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.footprint-title {
    font-size: 1rem;
    color: #37474f;
    flex: 1;
    word-break: break-all;
    white-space: normal;
}

.footprint-item:hover .footprint-title {
    color: #01579b;
}

/* データなし */
.no-data {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    text-align: center;
    color: #546e7a;
}

.data-format-hint {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #0288d1;
}

.data-format-hint code {
    display: block;
    background: #e1f5fe;
    padding: 5px 10px;
    margin: 5px 0;
    border-radius: 4px;
}

/* 戻るボタン */
.back-to-home {
    text-align: center;
    margin-top: 60px;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #0288d1;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #4fc3f7;
}

.btn-back:hover {
    background: #4fc3f7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-footprints {
        padding: 40px 15px;
    }
    
    .footprints-title {
        font-size: 2rem;
    }
    
    .year-tabs {
        gap: 10px;
    }
    
    .year-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .month-toggle {
        padding: 15px 20px;
    }
    
    .month-name {
        font-size: 1.1rem;
    }
    
    .footprint-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 20px;
    }
    
    .footprint-item:hover {
        padding-left: 20px;
    }
    
    .footprint-date {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .footprint-separator {
        display: none;
    }
}

/* リンクスタイル */
.footprint-title a {
    color: #0288d1;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.footprint-title a:hover {
    color: #4fc3f7;
    border-bottom-color: #4fc3f7;
}

.footprint-title a:visited {
    color: #01579b;
}

/* 外部リンクアイコン（オプション） */
.footprint-title a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.6;
}