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

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

.diary-single-container {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', sans-serif;
    background: linear-gradient(135deg, #f5fffe 0%, #e8faf8 100%);
    min-height: 100vh;
}

/* ヒーローセクション */
.hero-section {
    background: #fff;
    box-shadow: 0 2px 20px rgba(142, 238, 231, 0.08);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8eeee7 0%, #5fd4cd 100%);
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    animation: fadeInUp 0.6s ease-out;
}

.breadcrumb a {
    color: #5fd4cd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #3db5ad;
}

.breadcrumb .separator {
    color: #cbd5e0;
}

.breadcrumb .current {
    color: #718096;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entry-title {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #2d3748;
    line-height: 1.3;
    margin-bottom: 30px;
    position: relative;
    animation: fadeInDown 0.8s ease-out;
}

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

@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: 100px;
    }
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    opacity: 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    font-size: 0.95rem;
}

.meta-icon {
    width: 18px;
    height: 18px;
    color: #8eeee7;
}

/* メインコンテンツ */
.diary-article {
    padding: 60px 0;
}

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

.featured-image {
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    opacity: 0;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(95, 212, 205, 0.08);
    transition: transform 0.3s ease;
}

.article-image:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: 15px;
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
    font-style: italic;
}

.article-content {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.15rem;
    line-height: 2;
    color: #4a5568;
    animation: fadeInUp 0.8s ease-out 0.5s both;
    opacity: 0;
}

.article-content p {
    margin-bottom: 1.8em;
}

.article-content h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #2d3748;
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid rgba(142, 238, 231, 0.3);
}

.article-content h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #2d3748;
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.8em;
    padding-left: 2em;
}

.article-content li {
    margin-bottom: 0.5em;
}

.article-content blockquote {
    margin: 2em 0;
    padding: 1.5em;
    background: linear-gradient(135deg, rgba(142, 238, 231, 0.05) 0%, rgba(95, 212, 205, 0.05) 100%);
    border-left: 4px solid #5fd4cd;
    border-radius: 8px;
    font-style: italic;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2em 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.article-content a {
    color: #5fd4cd;
    text-decoration: none;
    border-bottom: 1px solid rgba(95, 212, 205, 0.3);
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: #3db5ad;
    border-bottom-color: #3db5ad;
}

/* タグ */
.article-tags {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(142, 238, 231, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tags-icon {
    width: 20px;
    height: 20px;
    color: #8eeee7;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(142, 238, 231, 0.1);
    border: 1px solid rgba(142, 238, 231, 0.3);
    border-radius: 20px;
    color: #5fd4cd;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item: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);
}

/* ナビゲーション */
.post-navigation {
    background: #fff;
    padding: 40px 0;
    margin-top: 60px;
    box-shadow: 0 -2px 20px rgba(142, 238, 231, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(142, 238, 231, 0.05) 0%, rgba(95, 212, 205, 0.05) 100%);
    border: 1px solid rgba(142, 238, 231, 0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(142, 238, 231, 0.1) 0%, rgba(95, 212, 205, 0.1) 100%);
    border-color: #5fd4cd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 212, 205, 0.2);
}

.nav-previous .nav-link {
    justify-content: flex-start;
}

.nav-next .nav-link {
    justify-content: flex-end;
    text-align: right;
}

.nav-direction {
    display: block;
    color: #8eeee7;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.nav-title {
    color: #2d3748;
    font-size: 1.05rem;
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-arrow {
    color: #5fd4cd;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.nav-previous .nav-link:hover .nav-arrow {
    transform: translateX(-4px);
}

.nav-next .nav-link:hover .nav-arrow {
    transform: translateX(4px);
}

.nav-center {
    display: flex;
    justify-content: center;
}

.nav-archive {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #8eeee7 0%, #5fd4cd 100%);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-archive:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 212, 205, 0.4);
}

.nav-archive svg {
    width: 24px;
    height: 24px;
}

.nav-archive span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

    .entry-title {
        font-size: 2rem;
    }

    .entry-title::after {
        width: 80px;
    }

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

    .entry-meta {
        gap: 20px;
    }

    .article-content {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    .nav-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-center {
        order: -1;
    }

    .nav-title {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 30px 0;
    }

    .entry-title {
        font-size: 1.6rem;
    }

    .entry-title::after {
        width: 60px;
        height: 2px;
    }

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

    .breadcrumb {
        font-size: 0.85rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }

    .featured-image {
        margin-bottom: 30px;
    }

    .nav-link {
        padding: 15px;
    }
}

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

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

/* 印刷対応 */
@media print {
    .hero-section,
    .post-navigation {
        display: none;
    }

    .diary-article {
        padding: 0;
    }

    .article-content {
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .diary-single-container {
        background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
    }

    .hero-section {
        background: #1a1f2e;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }

    .hero-section::before {
        background: linear-gradient(90deg, #5fd4cd 0%, #3db5ad 100%);
    }

    .breadcrumb a {
        color: #8eeee7;
    }

    .breadcrumb a:hover {
        color: #5fd4cd;
    }

    .breadcrumb .separator {
        color: #4a5568;
    }

    .breadcrumb .current {
        color: #cbd5e0;
    }

    .entry-title {
        color: #e2e8f0;
    }

    .entry-title::after {
        background: linear-gradient(90deg, #5fd4cd 0%, #3db5ad 100%);
    }

    .meta-item {
        color: #cbd5e0;
    }

    .meta-icon {
        color: #8eeee7;
    }

    .diary-article {
        background: transparent;
    }

    .article-content {
        color: #e2e8f0;
    }

    .article-content h2 {
        color: #f7fafc;
        border-bottom-color: rgba(142, 238, 231, 0.2);
    }

    .article-content h3 {
        color: #f7fafc;
    }

    .article-content blockquote {
        background: linear-gradient(135deg, rgba(142, 238, 231, 0.08) 0%, rgba(95, 212, 205, 0.08) 100%);
        border-left-color: #5fd4cd;
    }

    .article-content a {
        color: #8eeee7;
        border-bottom-color: rgba(142, 238, 231, 0.3);
    }

    .article-content a:hover {
        color: #5fd4cd;
        border-bottom-color: #5fd4cd;
    }

    .image-caption {
        color: #cbd5e0;
    }

    .article-image {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .article-tags {
        border-top-color: rgba(142, 238, 231, 0.15);
    }

    .tags-icon {
        color: #8eeee7;
    }

    .tag-item {
        background: rgba(142, 238, 231, 0.08);
        border-color: rgba(142, 238, 231, 0.2);
        color: #8eeee7;
    }

    .tag-item:hover {
        background: linear-gradient(135deg, #5fd4cd 0%, #3db5ad 100%);
        color: #0f1419;
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(95, 212, 205, 0.4);
    }

    .post-navigation {
        background: #1a1f2e;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-link {
        background: linear-gradient(135deg, rgba(142, 238, 231, 0.08) 0%, rgba(95, 212, 205, 0.08) 100%);
        border-color: rgba(142, 238, 231, 0.15);
    }

    .nav-link:hover {
        background: linear-gradient(135deg, rgba(142, 238, 231, 0.12) 0%, rgba(95, 212, 205, 0.12) 100%);
        border-color: #5fd4cd;
        box-shadow: 0 4px 12px rgba(95, 212, 205, 0.3);
    }

    .nav-direction {
        color: #8eeee7;
    }

    .nav-title {
        color: #e2e8f0;
    }

    .nav-arrow {
        color: #5fd4cd;
    }

    .nav-archive {
        background: linear-gradient(135deg, #5fd4cd 0%, #3db5ad 100%);
        color: #0f1419;
    }

    .nav-archive:hover {
        box-shadow: 0 6px 20px rgba(95, 212, 205, 0.5);
    }

    /* フォーカススタイル（ダークモード） */
    a:focus,
    button:focus {
        outline-color: #8eeee7;
    }
}