
/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.diary-archive-container {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', sans-serif;
    /* 背景はグローバルデザインシステムから継承 */
    min-height: 100vh;
    padding: 60px 0 80px;
}

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

/* ページタイトル */
.page-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    color: #2c3e50;
    position: relative;
    animation: fadeInDown 0.8s ease-out;
}

.page-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #8eeee7 0%, #5fd4cd 100%);
    margin: 25px auto 0;
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.3s both;
}

.page-description {
    text-align: center;
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    opacity: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 120px;
    }
}

/* 統計情報 */
.diary-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0 50px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    opacity: 0;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8eeee7 0%, #5fd4cd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: #718096;
    font-weight: 400;
}

.stat-divider {
    color: #cbd5e0;
    font-size: 1.5rem;
    opacity: 0.5;
}

/* 日記グリッド */
.diary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* 日記カード */
.diary-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: visible; /* バッジのために変更 */
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0, 1);
    animation: cardFadeIn 0.6s ease-out both;
    animation-delay: calc(var(--card-index, 0) * 0.05s);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 回数バッジ */
.diary-number-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    z-index: 10;
    background: linear-gradient(135deg, #8eeee7 0%, #5fd4cd 100%);
    padding: 8px 16px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(95, 212, 205, 0.3);
    display: flex;
    align-items: baseline;
    gap: 2px;
    transition: all 0.3s ease;
}

.diary-card:hover .diary-number-badge {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(95, 212, 205, 0.4);
}

.number-prefix,
.number-suffix {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    opacity: 0.9;
}

.number-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 2px;
}

.diary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(142, 238, 231, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.diary-card:hover::before {
    opacity: 1;
}

.diary-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(142, 238, 231, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.05);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.diary-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 画像エリア */
.diary-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 16px 16px 0 0;
}

.diary-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0, 1);
}

.diary-card:hover .diary-card-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.diary-card:hover .image-overlay {
    opacity: 1;
}

.diary-card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(142, 238, 231, 0.1) 0%, rgba(95, 212, 205, 0.1) 100%);
}

.image-placeholder {
    width: 80px;
    height: 80px;
    color: #8eeee7;
    opacity: 0.5;
}

/* コンテンツエリア */
.diary-card-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.diary-date {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
    color: #8eeee7;
    font-weight: 500;
}

.date-day {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.date-year {
    font-size: 0.85rem;
    color: #90a4ae;
    margin-left: auto;
}

.diary-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.diary-card:hover .diary-title {
    color: #5fd4cd;
}

.diary-excerpt {
    color: #546e7a;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.diary-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(142, 238, 231, 0.2);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5fd4cd;
    font-weight: 500;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.diary-card:hover .read-more {
    gap: 12px;
}

.arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.diary-card:hover .arrow {
    transform: translateX(4px);
}

/* ページネーション */
.pagination-wrapper {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-item {
    display: inline-block;
}

.pagination-item a,
.pagination-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    border: 1px solid rgba(142, 238, 231, 0.3);
    border-radius: 10px;
    color: #546e7a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-item a:hover {
    background: linear-gradient(135deg, #8eeee7 0%, #5fd4cd 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 212, 205, 0.3);
}

.pagination-item .current {
    background: linear-gradient(135deg, #8eeee7 0%, #5fd4cd 100%);
    color: #fff;
    border-color: transparent;
}

.pagination-item .dots {
    border: none;
    background: none;
    cursor: default;
}

.nav-arrow {
    font-size: 1.2rem;
}

.nav-text {
    margin: 0 5px;
}

/* 投稿なし */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(142, 238, 231, 0.06);
}

.no-posts-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    color: #8eeee7;
    opacity: 0.3;
}

.no-posts h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 400;
}

.no-posts p {
    color: #718096;
    font-size: 1.1rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .diary-archive-container {
        padding: 40px 0 60px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-title::after {
        width: 80px;
    }
    
    /* 統計部分のモバイル対応 */
    .diary-stats {
        flex-direction: column;
        gap: 15px;
        margin: 20px 0 30px;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }
    
    .stat-number {
        font-size: 1.8rem;
        display: block;
    }
    
    .stat-label {
        font-size: 0.9rem;
        display: block;
    }
    
    .stat-divider {
        display: none;
    }
    
    @keyframes expandWidth {
        from { width: 0; }
        to { width: 80px; }
    }
    
    .diary-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .diary-card-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-title::after {
        width: 60px;
        height: 2px;
    }
    
    /* 統計部分の極小画面対応 */
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .diary-stats {
        margin: 15px 0 25px;
        gap: 10px;
    }
    
    @keyframes expandWidth {
        from { width: 0; }
        to { width: 60px; }
    }
    
    .page-description {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .diary-card {
        border-radius: 12px;
    }
    
    .diary-card-content {
        padding: 20px;
    }
    
    .diary-title {
        font-size: 1.2rem;
    }
    
    .pagination-item a,
    .pagination-item span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 0.9rem;
    }
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* フォーカススタイル */
a:focus,
button:focus {
    outline: 2px solid #5fd4cd;
    outline-offset: 2px;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .diary-archive-container {
        background: linear-gradient(135deg, #0a0e27 0%, #151b3d 100%);
    }
    
    .hero-section {
        background: rgba(20, 30, 50, 0.95);
        border: 1px solid rgba(176, 224, 230, 0.2);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .hero-section::before {
        background: linear-gradient(90deg, #2a6b75 0%, #1a4a52 100%);
    }
    
    .page-title {
        color: #B0E0E6;
    }
    
    .page-title::after {
        background: linear-gradient(90deg, #2a6b75 0%, #1a4a52 100%);
    }
    
    .subtitle-text {
        color: #8dd4e0;
        background: rgba(20, 30, 50, 0.8);
        border-color: rgba(176, 224, 230, 0.3);
    }
    
    .page-description {
        color: #c0c0c0;
    }
    
    .diary-stats .stat-number {
        background: linear-gradient(135deg, #48CAE4 0%, #8eeee7 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .diary-stats .stat-label {
        color: #8dd4e0;
    }
    
    .diary-stats .stat-divider {
        color: #48CAE4;
    }
    
    .diary-number-badge {
        background: linear-gradient(135deg, #2a6b75 0%, #1a4a52 100%);
        box-shadow: 0 4px 15px rgba(72, 202, 228, 0.3);
    }
    
    .diary-card:hover .diary-number-badge {
        box-shadow: 0 6px 20px rgba(72, 202, 228, 0.4);
    }
    
    .diary-card {
        background: rgba(20, 30, 50, 0.95);
        border: 1px solid rgba(176, 224, 230, 0.2);
    }
    
    .diary-card:hover {
        border-color: #48CAE4;
        box-shadow: 0 15px 40px rgba(72, 202, 228, 0.15);
    }
    
    .diary-card-image.no-image {
        background: linear-gradient(135deg, #1a2547 0%, #0f1837 100%);
    }
    
    .image-placeholder svg {
        color: #48CAE4;
    }
    
    .diary-date {
        color: #8dd4e0;
    }
    
    .diary-title {
        color: #B0E0E6;
    }
    
    .diary-excerpt {
        color: #c0c0c0;
    }
    
    .read-more {
        background: rgba(72, 202, 228, 0.1);
        color: #48CAE4;
        border: 1px solid rgba(176, 224, 230, 0.3);
    }
    
    .read-more:hover {
        background: rgba(72, 202, 228, 0.2);
        color: #8eeee7;
        border-color: #48CAE4;
    }
    
    .no-posts {
        background: rgba(20, 30, 50, 0.95);
        border: 1px solid rgba(176, 224, 230, 0.2);
    }
    
    .no-posts-icon {
        background: rgba(72, 202, 228, 0.1);
        color: #48CAE4;
    }
    
    .no-posts h2 {
        color: #B0E0E6;
    }
    
    .no-posts p {
        color: #c0c0c0;
    }
    
    .pagination {
        background: rgba(20, 30, 50, 0.95);
        border: 1px solid rgba(176, 224, 230, 0.2);
    }
    
    .page-numbers {
        background: rgba(20, 30, 50, 0.8);
        border-color: rgba(176, 224, 230, 0.3);
        color: #B0E0E6;
    }
    
    .page-numbers:hover {
        background: rgba(72, 202, 228, 0.2);
        border-color: #48CAE4;
        color: #E0FFFF;
    }
    
    .page-numbers.current {
        background: linear-gradient(135deg, #2a6b75 0%, #1a4a52 100%);
        color: #E0FFFF;
    }
    
    .pagination-info {
        color: #8dd4e0;
    }
}

