:root {
    --color-background: #f4f6f9;
    --color-primary: #1a2b3c;
    --color-secondary: #34495e;
    --color-accent: #3498db;
    --color-subtle: #a0aec0;
    --gradient-primary: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background: var(--color-background);
    color: var(--color-primary);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    overflow-x: hidden;
}

.site-header {
    margin-bottom: 10px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.5s ease-out;
}

.site-title {
    font-size: 2.2rem;
    font-weight: 300;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

.nav-link {
    text-decoration: none;
    color: var(--color-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-accent);
}

.top-image-wrapper {
    margin: 10px 0;
}

.top-image-container {
    opacity: 0;
    transform: translateY(-50px);
    animation: pullIn 0.6s ease forwards;
}

.top-image {
    width: 100%;
    height: auto;
    display: block;
}

.journal-list {
    margin-top: 30px;
    display: grid;
    gap: 30px;
    position: relative;
}

.journal-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-50px);
    animation: pullIn 0.6s ease forwards;
    position: relative;
    will-change: transform;
}

.journal-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.journal-item:hover .entry-title-text {
    color: var(--color-accent);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.entry-preview {
    padding: 2rem;
}

.entry-meta {
    margin-bottom: 0.75rem;
}

.entry-date {
    color: var(--color-subtle);
    font-size: 0.9rem;
    font-weight: 500;
}

.entry-title {
    margin: 0 0 1rem 0;
    font-size: 1.6rem;
    line-height: 1.3;
}

.entry-title-text {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.entry-excerpt {
    color: var(--color-secondary);
    line-height: 1.7;
}

.read-more {
    color: var(--color-accent);
    margin-left: 0.5em;
    font-weight: 500;
}

.entry-body {
    color: var(--color-secondary);
    line-height: 1.8;
    white-space: normal;
}

.entry-body p {
    margin-bottom: 1em;
}

.back-to-list {
    display: inline-block;
    text-decoration: none;
    color: var(--color-accent);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.back-to-list:hover {
    background: var(--color-accent);
    color: white;
}

.site-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--color-subtle);
    color: var(--color-subtle);
    text-align: center;
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out;
}

@keyframes pullIn {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    60% {
        opacity: 1;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.journal-item {
    animation-fill-mode: both;
}

.journal-item:nth-child(1) { animation-delay: 0.1s; z-index: 10; }
.journal-item:nth-child(2) { animation-delay: 0.2s; z-index: 9; }
.journal-item:nth-child(3) { animation-delay: 0.3s; z-index: 8; }
.journal-item:nth-child(4) { animation-delay: 0.4s; z-index: 7; }
.journal-item:nth-child(5) { animation-delay: 0.5s; z-index: 6; }

@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }
    
    .site-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
    
    .entry-preview {
        padding: 1.5rem;
    }
    
    .entry-title {
        font-size: 1.25rem;
    }
}
