/* 基本レイアウト */
.container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 20px;
}

:root {
    --bg-blue: #f0f7ff;
    --main-blue: #00a1ff;
    --text-dark: #333;
    --card-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body {
    background-color: var(--bg-blue);
    color: var(--text-dark);
}

/*--------------------------------------------------------*/
/* 文字修飾の基本スタイル */

/* 太字＋マーカー（蛍光ペン風） */
.mark-red { background: linear-gradient(transparent 60%, #ff525244 60%); font-weight: bold; }
.mark-yellow { background: linear-gradient(transparent 60%, #ff980044 60%); font-weight: bold; }
.mark-blue { background: linear-gradient(transparent 60%, #00a1ff44 60%); font-weight: bold; }

/* 太字＋文字色 */
.text-red { color: #ff5252; font-weight: bold; }
.text-blue { color: #00a1ff; font-weight: bold; }
.text-gray { color: #C0C0C0; }


/* 補足情報のボックス（豆知識） */
.info-box {
    background-color: #f8f9fa;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.info-box::before {
    content: "💡 豆知識";
    display: block;
    font-weight: bold;
    color: #ff9800;
    margin-bottom: 5px;
}

/* 補足情報のボックス */
.info-box-more {
    background-color: #f4f7f9; /* 豆知識より少しクール寄りの背景 */
    border-left: 4px solid #00a1ff; /* サイトのメインブルーに合わせる */
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

/* 疑似要素でアイコンとタイトルを自動挿入 */
.info-box-more::before {
    content: "🔍 補足・深掘り";
    display: block;
    font-weight: bold;
    color: #00a1ff;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* ボックス内のテキスト調整 */
.info-box-more p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
}

.underline{
    background: linear-gradient(transparent 70%, #f5ff80 30%);
}

.underline_red{
    background: linear-gradient(transparent 70%, #F99 30%);
}

/*--------------------------------------------------------*/
/* ヘッダー上端固定 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px); /* 背景をぼかす */
    border-bottom: 2px solid var(--main-blue);
}

/* ヘッダーの中身を整列 */
.header-inner {
    display: flex;
    align-items: center;
    height: 70px; /* ヘッダーの高さ */
    padding-top: 0;    /* 上下の余白をリセット */
    padding-bottom: 0;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: var(--main-blue);
    text-decoration: none;
    font-weight: 800;
}

/*--------------------------------------------------------*/
/* サイドバー設定 */


.profile-widget {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* 円形にする */
    border: 3px solid var(--main-blue);
    object-fit: cover;
    margin-bottom: 10px;
}

.profile-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.profile-intro {
    font-size: 0.85rem;
    color: var(--main-blue);
    font-weight: bold;
    margin-bottom: 10px;
}

.profile-text {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    text-align: left; /* 自己紹介文は左寄せが読みやすい */
}


/*--------------------------------------------------------*/
/* 広告エリア */
.ad-space { margin: 30px 0; text-align: center; background: #fafafa; padding: 10px; }

/*--------------------------------------------------------*/
/* 動画エリア */
.yt-area {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px dashed #eee;
    text-align: center;
}

.yt-area-title {
    margin-bottom: 12px;
    color: var(--main-blue);
}

.article-feedback-box {
    max-width: 640px;
    margin: 15px auto 25px;
    padding: 14px 18px;
    background: #f4f7f9;
    border-left: 4px solid var(--main-blue);
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
    text-align: left;
}

.article-feedback-box p {
    margin: 0;
}

/*--------------------------------------------------------*/
/* コメントはYoutubeへボックス */

.article-feedback-box {
    margin: 25px 0 35px;
    padding: 14px 18px;
    background: #f4f7f9;
    border-left: 4px solid var(--main-blue);
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
}

.article-feedback-box p {
    margin: 0;
}


/*--------------------------------------------------------*/
/* フッター */
.site-footer { background: #333; color: #fff; padding: 40px 0; margin-top: 50px; text-align: center; }
.footer-links { list-style: none; display: flex; justify-content: center; gap: 20px; padding: 0; margin-top: 10px; }


/* フッターリンク設定 */
.footer-links a, 
.contact-text {
    color: #ccc; /* 既存のグレーの色に合わせて調整してください */
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem; /* 他とサイズを合わせる */
}

/* ホバーした時の挙動も合わせる */
.footer-links a:hover,
.contact-text:hover {
    color: #fff; /* ホバー時に白くするなど、既存の設定に合わせる */
}


/* 上へ戻るフローティングボタン */
/* ページトップへ戻るボタン */
.page-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    opacity: 0; /* 最初は隠す */
    visibility: hidden;
    transition: all 0.3s ease;
}

/* スクロール時にJSで付与するクラス */
.page-top.is-show {
    opacity: 1;
    visibility: visible;
}

.page-top a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--main-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 矢印（CSSで描画） */
.arrow {
    display: block;
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotate(-45deg);
    margin-top: 5px;
}

.page-top a:hover {
    background: #008be6; /* 少し濃い青 */
    transform: translateY(-3px);
}
/*--------------------------------------------------------*/
/* ページネーション（インデックス用） */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 20px;
}

.page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    border: 1px solid #eef2f5;
}

/* ホバー時（マウスを乗せたとき） */
.page-link:hover {
    background: var(--bg-blue);
    color: var(--main-blue);
    border-color: var(--main-blue);
    transform: translateY(-2px);
}

/* 現在のページ */
.page-link.current {
    background: var(--main-blue);
    color: #fff;
    border-color: var(--main-blue);
    cursor: default;
}

/* 「前へ」「次へ」のスタイル調整 */
.page-link.prev,
.page-link.next {
    padding: 0 16px;
}

/*--------------------------------------------------------*/
/* 記事詳細ページのメインエリア */
.main-content {
    flex: 1; /* 重要：これで残りの幅をすべて使います */
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    min-width: 0; /* flex内の崩れ防止 */
}

.side-content { width: 300px; }

/* 記事カードのデザイン */
.post-grid {
    display: grid;
    /* 280pxだとサイドバーがある時に1列になりやすいので、240px程度に下げると2列を維持しやすい */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
    gap: 20px;
}

/* カードのデザイン */
.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* 四方の薄い影 */
    transition: transform 0.3s ease;
}

.post-card:hover { transform: translateY(-5px); }

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

/* アイコン（FontAwesomeなどを使っている場合）に色をつける */
.fa-redo {
    font-size: 0.9em;
}

/* サムネイルとカテゴリーバッジ */
.post-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f4f7f9;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #00a1ff;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

/* 記事情報エリア */
.post-info {
    padding: 15px;
}

.post-title {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 8px;
    /* 2行以上は「...」で省略する設定 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* 右下の更新日 */
.post-meta {
    text-align: right; /* 右寄せ */
}

.post-date {
    font-size: 0.8rem;
    color: #999;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 更新日 */
.post-meta, .entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-update {
    color: #888;
}

/*--------------------------------------------------------*/
/* 記事本文の装飾 */
.entry-title { font-size: 1.8rem; margin: 10px 0; line-height: 1.4; }
.entry-img img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 20px; }

/* スクロール位置 */
.entry-body h2,
.entry-body h3 {
    scroll-margin-top: 90px;
}

.entry-body h2 {
    position: relative;
    padding: 10px 0 10px 20px;
    border-left: 6px solid #00a1ff;
    border-bottom: 1px solid #eee;
    background: transparent;
    font-size: 1.5rem;
    color: #333;
}

.entry-body h3 {
    position: relative;
    display: inline-block;    /* 文字の長さにアンダーラインを合わせる */
    padding: 0 0 8px 0;       /* 下線との隙間 */
    margin: 45px 0 20px;      /* 上に広めの余白、下に適度な余白 */
    color: #333;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.4;
}

/* 記号部分：◆ */
.entry-body h3::before {
    content: "◆";
    margin-right: 10px;
    color: #00a1ff;           /* メインカラーのブルー */
    font-size: 0.9em;         /* 文字より少しだけ小さく */
    vertical-align: middle;
}

/* 短い下線：アクセントライン */
.entry-body h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;              /* 文字＋記号の幅いっぱいに引く */
    height: 4px;              /* 線の太さ */
    background: #00a1ff;      /* メインカラー */
    opacity: 0.25;            /* 透明度を下げて「強調しすぎ」を防止 */
    border-radius: 2px;       /* 角を丸くして柔らかい印象に */
}
/*--------------------------------------------------------*/
/* 引用部分 */
.entry-body blockquote {
    position: relative;
    padding: 30px 20px 15px 40px;
    margin: 25px 0;
    background: #f7f9fa;
    border-left: 5px solid var(--main-blue);
    border-radius: 0 8px 8px 0;
    color: #555;
}

/* クォーテーションマークの装飾 */
.entry-body blockquote::before {
    position: absolute;
    top: 10px;
    left: 10px;
    content: "“";
    font-family: serif;
    font-size: 4rem;
    line-height: 1;
    color: #00a1ff;
    opacity: 0.15;
}

/* 引用元（cite）のスタイリング */
.entry-body blockquote cite {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
    font-style: normal;
}
.entry-body blockquote cite::before {
    content: "―― ";
}

/*--------------------------------------------------------*/
/* 画像関連 */
.entry-body img {
    max-width: 100%; /* 親要素の幅を超えない */
    max-height: 400px; /* 最大高さ */
    height: auto;    /* 縦横比を維持する */
}

.entry-body video {
    max-width: 100%; /* 親要素の幅を超えない */
    max-height: 400px; /* 親要素の幅を超えない */
    height: auto;    /* 縦横比を維持する */
}

/* 画像コンテナ全体の調整 */
.entry-figure {
    text-align: center;
    margin: 2.5em 0; /* 前後の文章との間隔を少し広めに */
    background: #fff; /* 背景白（必要に応じて） */
    padding: 10px;
    border-radius: 8px;
}

/* キャプションエリア全体 */
.entry-caption {
    margin-top: 12px;
    display: flex;
    flex-direction: column; /* 縦に並べる */
    gap: 4px; /* コメントとクレジットの隙間 */
}

/* 一言コメント（普通サイズ） */
.caption-text {
    display: block;
    font-size: 1rem; /* 標準フォントサイズ */
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
}

/* クレジット表記（小さめ） */
.entry-credit {
    display: block;
    font-size: 0.75rem;
    color: #999; /* コメントより薄くして存在感を抑える */
    letter-spacing: 0.05em;
}
.entry-body p { line-height: 1.8; margin-bottom: 1.5em; }

/* 複数画像横並び用（どんなHTML構造でも強制枠内収束版） */
.entry-body .entry-img-flex {
    display: flex !important;
    gap: 12px !important;              /* 画像同士の隙間 */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 16px;
}

/* 画像を囲むタグ（aタグやdivタグなど）が何であっても均等分割する */
.entry-body .entry-img-flex > * {
    flex: 1 1 0% !important;           /* 親の幅に合わせて均等割 */
    min-width: 0 !important;           /* 中の画像がはみ出すのを防ぐ特効薬 */
    max-width: 100% !important;
}

/* 中にある画像自体のサイズを最適化 */
.entry-body .entry-img-flex img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;           /* 高さを自動にして比率を維持 */
    object-fit: contain !important;    /* トリミングせず全体を表示 */
    display: block !important;
}

/*--------------------------------------------------------*/
/* Markdown表のデザイン */
.entry-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 28px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    background: #fff;
    border: 1px solid #dbeaf5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

/* 見出し行 */
.entry-body thead th {
    background: #eaf6ff;
    color: #24506b;
    font-weight: bold;
    text-align: left;
    border-bottom: 2px solid #b9def5;
}

/* セル共通 */
.entry-body th,
.entry-body td {
    padding: 12px 14px;
    border-right: 1px solid #e3eef5;
    border-bottom: 1px solid #e3eef5;
    vertical-align: top;
}

/* 右端・最終行の線を消してすっきり */
.entry-body th:last-child,
.entry-body td:last-child {
    border-right: none;
}

.entry-body tbody tr:last-child td {
    border-bottom: none;
}

/* 偶数行をうっすら色分け */
.entry-body tbody tr:nth-child(even) {
    background: #f8fcff;
}

/* 1列目を少し強調 */
.entry-body tbody td:first-child {
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

/* ホバー時：PCで読みやすく */
.entry-body tbody tr:hover {
    background: #f0f8ff;
}

/*--------------------------------------------------------*/
/* 記事本文のh2を自動採番 */
.entry-body {
    counter-reset: h2-counter;
}

.entry-body h2 {
    counter-increment: h2-counter;
}

.entry-body h2::before {
    content: counter(h2-counter) ". ";
    color: var(--main-blue);
    font-weight: bold;
    margin-right: 4px;
}

/*--------------------------------------------------------*/
/* パンくずリスト */
.breadcrumb-container {
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #666;
}

/* 区切り文字「 > 」の設定 */
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb-item a {
    color: var(--main-blue);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: bold;
    /* 記事タイトルが長い場合は省略 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px; 
}

/*--------------------------------------------------------*/
/* 目次のデザイン */
.toc-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}
.toc-title { font-weight: bold; margin-bottom: 10px; display: block; }
.toc-list { list-style: none; padding-left: 0; }
.toc-list li { margin: 5px 0; }
.toc-list a { color: #333; text-decoration: none; }
.toc-list a:hover { text-decoration: underline; }

/* h2のスタイル */
.toc-list .toc-item-h2 {
    font-weight: bold;
    margin-top: 8px;
}

/* h3のスタイル：セレクタを長くして優先順位を上げます */
.toc-list li.toc-item-h3 {
    margin-left: 1.5em; /* これで右にずれます */
    font-size: 0.9em;
    margin-top: 4px;
    list-style: disc inside; /* リストの点を内側に表示 */
    color: #666; /* 少し色を薄くすると親子関係がわかりやすいです */
}
/*--------------------------------------------------------*/
/* YouTube埋め込みを16:9でレスポンシブにする */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 の比率 */
    height: 0;
    overflow: hidden;
    margin: 20px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px; /* 角を少し丸くする */
}

/* 縦型ショート動画用 (9:16) の決定版 */
.video-container-shorts {
    position: relative;
    width: 100%;
    /* 1. 最大幅を制限（スマホの画面幅を意識） */
    max-width: 320px; 
    /* 2. ブラウザが縦に長くても、画面からはみ出さないよう高さを制限 */
    max-height: 80vh; 
    margin: 20px auto; 
    
    /* 3. 比率を直接指定（モダンブラウザ対応） */
    aspect-ratio: 9 / 16;
    
    /* 4. 古いブラウザ用の高さ確保（aspect-ratioが効かない場合用） */
    /* padding-bottomは、aspect-ratioが使える場合は 0 に上書きします */
}

/* aspect-ratioをサポートしている場合、padding-bottomをリセット */
@supports (aspect-ratio: 9/16) {
    .video-container-shorts {
        padding-bottom: 0;
        height: auto;
    }
}

.video-container-shorts iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: none;
    /* 5. 動画が枠内に収まるように強制 */
    object-fit: contain;
}
/*--------------------------------------------------------*/
/*シェアボタン*/
.share-container {
    margin: 40px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.share-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #00a1ff;
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: transform 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* 各ブランドカラー */
.x-btn { background-color: #000; }
.line-btn { background-color: #06c755; }
.copy-btn { background-color: #666; }

/*--------------------------------------------------------*/
/* 回遊ボタン（画像付き） */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.nav-link {
    flex: 1;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center; /* 上下中央 */
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
    background: #f9f9f9; /* リンク範囲をわかりやすく */
    min-width: 0; /* 文字溢れ防止 */
}

.nav-link:hover {
    background: #f0f7ff;
}

.nav-placeholder {
    flex: 1;
}

/* サムネイル画像の設定 */
.nav-thumbnail {
    flex-shrink: 0; /* 画像が潰れないように */
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
}

.nav-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* テキスト部分 */
.nav-text {
    flex: 1;
    min-width: 0;
}

.nav-label {
    display: block;
    font-size: 0.7rem;
    color: var(--main-blue);
    font-weight: bold;
    margin-bottom: 2px;
}

.nav-title {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.3;
    /* 2行以上は省略 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 右側（次の記事）は配置を逆転させる */
.next {
    text-align: right;
    flex-direction: row; /* テキスト → 画像 の順 */
}

/*--------------------------------------------------------*/
/* モバイル対応 */
@media (max-width: 768px) {
    .container { flex-direction: column; }
    .side-content { width: 100%; }

    .entry-body h3 {
        font-size: 1.15rem;   /* スマホでは少し小さく */
        margin: 35px 0 15px;
    }

    /* 画像横→縦並び */
    .entry-body .entry-img-flex {
        flex-direction: column !important; /* 縦並びに変更 */
        gap: 16px !important;              /* 縦並び時の画像上下の隙間 */
    }
    
    .entry-body .entry-img-flex > * {
        width: 100% !important;
        flex: none !important;             /* 縦並び時は均等割を解除 */
    }

    .entry-body .entry-img-flex img {
        height: auto !important;           /* 縦並びでも上下トリミングを絶対防ぐ */
    }

    /* Markdown表のデザイン */
    .entry-body table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.88rem;
    }

    .entry-body th,
    .entry-body td {
        padding: 10px 12px;
    }

}



@media (max-width: 480px) {
    /* シェアボタン */
    .share-btn { width: 100%; } /* スマホでは横いっぱいに並べる */

    .post-navigation {
        flex-direction: column;
    }
    .nav-thumbnail {
        width: 60px;
        height: 45px;
    }

    /* ページング */
    .pagination {
        gap: 5px;
    }
    .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 0.8rem;
        padding: 0 8px;
    }

    /* フローティングボタン */
    .page-top {
        right: 15px;
        bottom: 15px;
    }
    .page-top a {
        width: 45px;
        height: 45px;
    }
}