/* ========================================
   投稿表示ページ（single.php）専用スタイル
   水色×白のシンプルデザイン
   ======================================== */

.single-post {
    min-height: 100vh;
    background: linear-gradient(to bottom, #e3f2fd 0%, #ffffff 100%);
    padding: 0;
}

/* 投稿ヘッダー */
.entry-header {
    background: white;
    padding: 60px 20px 40px;
    border-bottom: 1px solid #e1f5fe;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

/* カテゴリーバッジ */
.entry-categories {
    margin-bottom: 15px;
}

.category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #e1f5fe;
    color: #0277bd;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: #4fc3f7;
    color: white;
}

/* タイトル */
.entry-title {
    font-size: 2rem;
    color: #01579b;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* 投稿日時 */
.entry-meta {
    color: #0288d1;
    font-size: 0.9rem;
}

.entry-date {
    font-weight: 500;
}

/* アイキャッチ画像 */
.entry-thumbnail {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    background: white;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 投稿本文 */
.entry-content {
    background: white;
    padding: 40px 20px 60px;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.9;
}

/* 段落 */
.content-wrapper p {
    font-size: 1rem;
    color: #37474f;
    margin-bottom: 1.5em;
}

/* 見出し */
.content-wrapper h2 {
    font-size: 1.6rem;
    color: #01579b;
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #4fc3f7;
    font-weight: 600;
}

.content-wrapper h3 {
    font-size: 1.3rem;
    color: #0288d1;
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

.content-wrapper h4 {
    font-size: 1.1rem;
    color: #0288d1;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

/* リスト */
.content-wrapper ul,
.content-wrapper ol {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
    color: #37474f;
}

.content-wrapper li {
    margin-bottom: 0.8em;
    line-height: 1.7;
}

.content-wrapper ul li::marker {
    color: #4fc3f7;
}

/* 画像 */
.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 1.5em 0;
}

/* 引用 */
.content-wrapper blockquote {
    border-left: 4px solid #4fc3f7;
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: #546e7a;
    background: #f1f8fb;
    padding: 1em 1.5em;
    border-radius: 4px;
}

/* 区切り線 */
.content-wrapper hr {
    border: none;
    border-top: 1px solid #b3e5fc;
    margin: 3em 0;
}

/* リンク */
.content-wrapper a {
    color: #0288d1;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.content-wrapper a:hover {
    border-bottom-color: #4fc3f7;
}

/* 強調 */
.content-wrapper strong {
    color: #01579b;
    font-weight: 600;
}

/* ページネーション */
.page-links {
    margin-top: 2em;
    padding-top: 2em;
    border-top: 1px solid #e1f5fe;
    text-align: center;
}

.page-links a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background: #e1f5fe;
    color: #0277bd;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: #4fc3f7;
    color: white;
}

/* タグ */
.entry-footer {
    background: white;
    padding: 30px 20px;
    border-top: 1px solid #e1f5fe;
}

.entry-tags {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tags-label {
    font-weight: 600;
    color: #0288d1;
    font-size: 0.9rem;
}

.tag-item {
    display: inline-block;
    padding: 5px 12px;
    background: #f1f8fb;
    color: #0277bd;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #4fc3f7;
    color: white;
}

/* 前後の投稿ナビゲーション */
.post-navigation {
    background: white;
    padding: 40px 20px;
    border-top: 1px solid #e1f5fe;
}

.nav-links {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f1f8fb;
    color: #0277bd;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #4fc3f7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.nav-next a {
    justify-content: flex-end;
}

.nav-arrow {
    font-size: 1.2rem;
    margin: 0 10px;
}

.nav-text {
    font-size: 0.9rem;
}

/* 戻るボタン */
.back-to-category {
    background: linear-gradient(to bottom, #ffffff 0%, #e3f2fd 100%);
    padding: 40px 20px 60px;
    text-align: center;
}

.btn-back,
.btn-home {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px 10px;
    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,
.btn-home:hover {
    background: #4fc3f7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .entry-header {
        padding: 40px 15px 30px;
    }
    
    .entry-title {
        font-size: 1.6rem;
    }
    
    .entry-content {
        padding: 30px 15px 40px;
    }
    
    .content-wrapper h2 {
        font-size: 1.4rem;
    }
    
    .content-wrapper h3 {
        font-size: 1.2rem;
    }
    
    .content-wrapper p {
        font-size: 0.95rem;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-previous a,
    .nav-next a {
        justify-content: center;
    }
    
    .btn-back,
    .btn-home {
        display: block;
        margin: 10px auto;
        max-width: 200px;
    }
}