/*
 * ai-asoby Main Stylesheet
 * 
 * Table of Contents:
 * 1.  Reset & Variables
 * 2.  Global Typography & Layout
 * 3.  Header & Navigation
 * 4.  Animations (Keyframes)
 * 5.  Main Content & Headings
 * 6.  Hero Section
 * 7.  Trends Widget
 * 8.  Blog List & Cards
 * 9.  Conversation UI (Chat Bubbles)
 * 10. Buttons, Badges & Pagination
 * 11. Search Modal
 * 12. Game Page & Cards
 * 13. Author Profile & About
 * 14. Tora-e Banner
 * 15. Shared Visual Cards (Terakoya/Experiment)
 * 16. Footer
 * 17. Responsive Styles
 */

/* =========================================
   1. Reset & Variables
   ========================================= */
:root {
    --primary-color: #4361ee;
    /* Vivid Blue */
    --secondary-color: #3f37c9;
    /* Deep Blue */
    --accent-color: #f72585;
    /* Pop Pink */
    --text-main: #2b2d42;
    --text-sub: #8d99ae;
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* =========================================
   2. Global Typography & Layout
   ========================================= */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 200px;
    /* ヘッダーの高さを考慮 */
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--bg-body);
    padding-top: 200px;
    /* さらに余裕を持たせる */
}

.header-inner,
.main-inner,
.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   3. Header & Navigation
   ========================================= */
header {
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('img/hero-renew.png');
    background-size: cover;
    background-position: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

header h1 {
    margin: 0.5rem 0;
    font-size: 2.2rem;
    display: inline-block;
    font-weight: 800;
    letter-spacing: 0.05em;
}

header h1 a {
    color: var(--text-main);
    text-decoration: none;
}

.global-nav {
    margin-top: 1rem;
}

.global-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
    /* 少し縮める */
    flex-wrap: wrap;
}

.global-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    /* 少し小さく */
    font-weight: bold;
    padding: 0.5rem 0.8rem;
    /* 幅を抑える */
    display: block;
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.global-nav a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

/* =========================================
   4. Animations (Keyframes)
   ========================================= */
@keyframes funyafunya {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-6px) rotate(2deg);
    }

    50% {
        transform: translateY(0) rotate(-2deg);
    }

    75% {
        transform: translateY(6px) rotate(1deg);
    }
}

@keyframes color-change {
    0% {
        color: var(--primary-color);
    }

    50% {
        color: var(--accent-color);
    }

    100% {
        color: var(--secondary-color);
    }
}

@keyframes random-scale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes rotate-360 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Specific Header Title Animations */
header h1 span {
    display: inline-block;
    animation: funyafunya 3s infinite alternate ease-in-out;
}

header h1 span:nth-child(1),
header h1 span:nth-child(2) {
    animation: funyafunya 2.5s infinite alternate,
        color-change 5s infinite alternate,
        random-scale 4s infinite alternate,
        rotate-360 10s infinite linear;
}

header h1 span:nth-child(3) {
    animation-delay: 0.2s;
}

header h1 span:nth-child(4) {
    animation-delay: 0.3s;
}

header h1 span:nth-child(5) {
    animation-delay: 0.4s;
}

header h1 span:nth-child(6) {
    animation-delay: 0.5s;
}

header h1 span:nth-child(7) {
    animation-delay: 0.6s;
}

header h1 span:nth-child(8) {
    animation-delay: 0.7s;
}

/* =========================================
   5. Main Content & Headings
   ========================================= */
main {
    padding: 30px 0;
}

section {
    margin-bottom: 3rem;
    scroll-margin-top: 180px;
}

h2,
.decorated-title {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    border-left: 6px solid var(--accent-color);
    padding-left: 15px;
    background: transparent;
}

h3,
.decorated-subtitle {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
    background: transparent;
}

/* =========================================
   6. Hero Section
   ========================================= */
.hero-area {
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 50px;
    overflow: hidden;
    position: relative;
}

.hero-area::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
    border-left: none;
    padding-left: 0;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-sub);
    margin-bottom: 30px;
    line-height: 2;
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.hero-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.6);
}

.hero-visual {
    flex: 1;
    text-align: center;
    z-index: 1;
    animation: fadeInRight 1s ease-out;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* =========================================
   7. Trends Widget
   ========================================= */
.trends-container {
    display: flex;
    gap: 25px;
    margin-bottom: 50px;
}

.trends-section {
    flex: 1;
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.trends-section:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.acquisition-time-container {
    font-size: 0.75rem;
    color: var(--text-sub);
    display: block;
    margin-top: 5px;
    font-weight: normal;
}

ol.trends-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    counter-reset: number;
}

ol.trends-list li {
    position: relative;
    padding: 10px 10px 10px 40px;
    border-bottom: 1px dashed #eee;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

ol.trends-list li:hover {
    background-color: #f0f4ff;
}

ol.trends-list li:last-child {
    border-bottom: none;
}

ol.trends-list li:before {
    position: absolute;
    counter-increment: number;
    content: counter(number);
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 12px;
    border-radius: 50%;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
}

.trend-item-hidden {
    display: none;
}

/* =========================================
   8. Blog List & Cards
   ========================================= */
.blog-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 文字サムネイル（既存画像がない場合） */
.text-thumbnail {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #eee;
    background-color: #f0f0f0;
}

/* Tora-e 用スタイル（球団カラー） */
.text-thumbnail.tora-e {
    background: linear-gradient(135deg, #fdd835 0%, #000000 100%);
}

.text-thumbnail.tora-e .thumb-text {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 900;
    font-family: 'Arial Black', sans-serif;
}

/* ai-asoby 用スタイル（サイバー/テクロノジー） */
.text-thumbnail.asoby {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1px solid rgba(67, 97, 238, 0.8) !important;
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.4) !important;
}

.text-thumbnail.asoby {
    background: #000;
    /* Dark background for better contrast */
    border: 2px solid #4361ee;
    box-shadow: inset 0 0 20px rgba(67, 97, 238, 0.4);
    position: relative;
    overflow: hidden;
}

.text-thumbnail.asoby::before {
    content: "READY >";
    position: absolute;
    top: 5px;
    left: 10px;
    color: #4361ee;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.7rem;
    opacity: 0.6;
    z-index: 2;
}

.text-thumbnail.asoby::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.1) 0px,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 2px);
    /* Scanlines effect */
    pointer-events: none;
    z-index: 3;
}

.text-thumbnail.asoby .thumb-text {
    color: #4361ee;
    text-shadow: 0 0 8px rgba(67, 97, 238, 0.9),
        0 0 15px rgba(67, 97, 238, 0.6);
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    /* Slighly larger */
    font-weight: bold;
    letter-spacing: 0.05em;
    z-index: 4;
    padding: 10px;
    text-align: center;
}

.blog-post-item .text-thumbnail {
    height: 160px;
}

.blog-post-item {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.blog-post-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-post-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: top;
    /* Manga thumbnail: show top panel */
    border-bottom: 1px solid #eee;
    margin: 0;
}

.blog-post-item .post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-post-item .post-content a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
    display: block;
}

.blog-post-item .post-content a:hover {
    color: var(--primary-color);
}

.blog-post-item .post-date {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================================
   9. Conversation UI (Chat Bubbles)
   ========================================= */
.conversation {
    padding: 10px 0;
    width: 100%;
}

.chat-bubble {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
    width: 100%;
}

.speaker-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    object-fit: cover;
    object-position: top center;
    /* 顔が中心に来るように上揃え */
}

.chat-content {
    padding: 18px;
    border-radius: 18px;
    position: relative;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    max-width: 85%;
    line-height: 1.6;
}

.chat-content::before {
    content: "";
    position: absolute;
    top: 20px;
    border-style: solid;
    display: block;
}

.chat-content ul {
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.speaker-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.speaker-box .speaker-icon {
    margin: 0 !important;
}

.speaker-name {
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 5px;
    color: var(--text-sub);
    line-height: 1.2;
    white-space: nowrap;
}

/* Character Specifics */
.chat-bubble.nyu .speaker-icon,
.chat-bubble.nyu .speaker-box {
    margin-right: 15px;
}

.chat-bubble.nyu .chat-content {
    background-color: #e3f2fd;
    color: #0d47a1;
    border-radius: 18px;
    /* 丸みを統一 */
    border-top-left-radius: 0;
    /* 吹き出しの口のためにこれだけ尖らせる（旧デザイン踏襲）か、あるいは全部丸くするか。一旦丸くしつつ、三角をつけるなら元のままでもいいが、ユーザーが「気持ち悪い」と言ったので、太いボーダーを消してシンプルにする */
    /* border-top-left-radius: 4px; 元の鋭角 */
}

.chat-bubble.nyu .chat-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent #e3f2fd transparent transparent;
}

.chat-bubble.mei {
    flex-direction: row-reverse;
}

.chat-bubble.mei .speaker-icon,
.chat-bubble.mei .speaker-box {
    margin-left: 15px;
}

.chat-bubble.mei .chat-content {
    background-color: #fce4ec;
    color: #880e4f;
    border-radius: 18px;
    /* border-top-right-radius: 4px; */
}

.chat-bubble.mei .chat-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #fce4ec;
}

.chat-bubble.ron {
    flex-direction: row-reverse;
}

.chat-bubble.ron .speaker-icon,
.chat-bubble.ron .speaker-box {
    margin-left: 15px;
}

.chat-bubble.ron .chat-content {
    background-color: #e8f5e9;
    color: #1b5e20;
    border-radius: 18px;
    /* border-top-right-radius: 4px; */
}

.chat-bubble.ron .chat-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #e8f5e9;
}

.chat-bubble.gemmy .speaker-icon,
.chat-bubble.gemmy .speaker-box {
    margin-right: 15px;
}

.chat-bubble.gemmy .chat-content {
    background-color: #f3e5f5;
    color: #4a148c;
    border-radius: 18px;
    /* border-top-left-radius: 4px; */
    /* border-left: 5px solid #9c27b0; 太いボーダーを削除 */
}

.chat-bubble.gemmy .chat-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent #f3e5f5 transparent transparent;
}

.chat-bubble.hero .speaker-icon,
.chat-bubble.hero .speaker-box {
    margin-right: 15px;
}

.chat-bubble.hero .chat-content {
    background-color: #fff9c4;
    color: #f57f17;
    border-radius: 18px;
    /* border-top-left-radius: 4px; */
}

.chat-bubble.hero .chat-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fff9c4 transparent transparent;
}

/* =========================================
   10. Buttons, Badges & Pagination
   ========================================= */
.new-badge {
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.post-type-tag {
    background-color: #e9ecef;
    color: var(--text-sub);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
}

.show-more-button,
.show-less-button,
.page-link {
    background-color: #fff;
    border: 1px solid #ddd;
    color: var(--text-main);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    margin: 0 5px;
    font-size: 0.9rem;
}

.show-more-button:hover,
.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.2);
}

.page-link.active,
.pagination-current {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
    align-items: center;
}

.pagination-link,
.pagination-current {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.pagination-link:hover {
    background-color: #f0f0f0;
}

/* =========================================
   11. Search Modal
   ========================================= */
.search-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.2);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.search-modal {
    background-color: white;
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .search-modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.search-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#search-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

#search-input:focus {
    border-color: var(--primary-color);
}

#search-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

#search-submit:hover {
    background-color: var(--secondary-color);
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
    border-top: 1px solid #eee;
}

.search-result-item {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item a {
    text-decoration: none;
    display: block;
}

.search-result-title {
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    transition: color 0.2s;
}

.search-result-item:hover .search-result-title {
    color: var(--primary-color);
}

.search-result-meta {
    font-size: 0.85rem;
    color: var(--text-sub);
    display: flex;
    gap: 10px;
}

/* =========================================
   12. Game Page & Cards
   ========================================= */
#game-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.game-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.game-card .game-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-card h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    padding-left: 0;
    color: var(--text-main);
    border: none;
}

.game-card p {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.play-button {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
    margin-top: auto;
}

.play-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4);
}

/* =========================================
   13. Author Profile & About
   ========================================= */
.about-section {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.character-profile {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 12px;
    background: #f8f9ff;
    transition: all 0.3s ease;
}

.character-profile:hover {
    transform: translateX(10px);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.character-profile img {
    width: 90px;
    height: 90px;
    margin-right: 25px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}

/* Old author profile styles removed */

.reference-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.reference-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

.reference-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.reference-box li {
    margin-bottom: 0.5rem;
}

/* =========================================
   14. Tora-e Banner
   ========================================= */
.tora-e-banner-link {
    display: block;
    text-decoration: none;
    margin: 3rem 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #fdd835;
}

.tora-e-banner-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    opacity: 0.9;
}

.tora-e-banner-container {
    position: relative;
    width: 100%;
    height: 250px;
    background-color: #000;
}

.tora-e-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tora-e-banner-link:hover .tora-e-banner-img {
    opacity: 0.9;
}

.tora-e-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: #fff;
    pointer-events: none;
}

.tora-e-banner-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fdd835;
    margin-bottom: 10px;
    border: none;
    padding: 0;
}

.tora-e-banner-text {
    font-size: 1.1rem;
    color: #eee;
    margin: 0;
}

/* =========================================
   15. Shared Visual Cards (Terakoya/Experiment)
   ========================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.visual-card {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.visual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.visual-card a.card-image-link {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    border: none;
    margin-bottom: 0;
    transition: transform 0.5s ease;
}

.visual-card:hover img {
    transform: scale(1.05);
}

.visual-card h3 {
    font-size: 1.15rem;
    margin: 20px 20px 10px;
    border: none;
    padding: 0;
    color: var(--text-main);
    font-weight: bold;
    text-align: left;
}

.visual-card h3 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.visual-card h3 a:hover {
    color: var(--primary-color);
}

.visual-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 20px 20px;
    line-height: 1.6;
    flex-grow: 1;
    text-align: left;
}

.visual-card .card-action {
    padding: 0 20px 25px;
}

.visual-card .btn {
    display: block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.2);
}

.visual-card .btn:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4);
    transform: translateY(-2px);
}

.tool-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}

.tool-item {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid #eee;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.tool-item p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.tool-item .highlight {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.tool-item a {
    display: inline-block;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
}

.tool-item a:hover {
    text-decoration: underline;
}

/* =========================================
   16. Footer
   ========================================= */
footer {
    background-color: #212529;
    color: #adb5bd;
    padding: 3rem 0;
    margin-top: 4rem;
}

/* =========================================
   17. Responsive Styles
   ========================================= */
@media (max-width: 768px) {

    /* Layout */
    .header-inner,
    .main-inner,
    .footer-inner {
        padding: 0 15px;
    }

    body {
        padding-top: 130px;
    }

    section {
        margin-bottom: 2rem;
        scroll-margin-top: 140px;
    }

    /* Header */
    header {
        padding: 0.5rem 0;
    }

    header h1 {
        font-size: 1.5rem;
        margin: 0.2rem 0;
    }

    /* Nav */
    .global-nav {
        margin-top: 0.5rem;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .global-nav ul {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 5px;
    }

    .global-nav li {
        flex-shrink: 0;
    }

    .global-nav a {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }

    .search-btn {
        padding: 0.4rem;
        font-size: 1rem;
    }

    /* Hero */
    .hero-area {
        flex-direction: column-reverse;
        padding: 25px 20px;
        text-align: center;
        gap: 20px;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
        text-align: left;
    }

    .hero-area::before {
        width: 120px;
        height: 120px;
        top: -30px;
        right: -30px;
    }

    /* Trends */
    .trends-container {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    /* Lists */
    .blog-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .blog-post-item {
        flex-direction: column;
    }

    .blog-post-item img {
        height: 140px;
    }

    .blog-post-item .post-content {
        padding: 15px;
    }

    /* Chat Bubbles */
    .chat-bubble {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .chat-bubble.mei,
    .chat-bubble.ron {
        flex-direction: column;
        align-items: flex-end;
    }

    .speaker-icon {
        margin: 0 0 8px 0 !important;
        width: 65px;
        height: 65px;
    }

    .chat-content {
        max-width: 100%;
        margin: 0 !important;
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .chat-content::before {
        display: none;
    }

    /* Titles */
    h2,
    .decorated-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    h3,
    .decorated-subtitle {
        font-size: 1.2rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Tora-e */
    #tora-e-promo {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .tora-e-banner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 1.5rem;
    }

    .tora-e-visual img {
        max-width: 150px !important;
    }

    .tora-e-banner-container {
        height: 180px;
    }

    .tora-e-banner-title {
        font-size: 1.3rem;
    }

    .tora-e-banner-text {
        font-size: 0.9rem;
    }

    /* General */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .page-link,
    .show-more-button,
    .show-less-button {
        padding: 6px 12px;
        font-size: 0.85rem;
        margin: 2px;
    }
}

/* =========================================
   Layout: 2-Column (Main + Sidebar)
   ========================================= */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
}

/* Tooltip Styles */
.term-tooltip {
    border-bottom: 2px dotted #007bff;
    /* 下線でリンクっぽく見せる */
    cursor: help;
    position: relative;
    display: inline-block;
    color: #333;
    font-weight: 500;
}

/* 用語ツールチップ用スタイル */
.tooltip-trigger {
    border-bottom: 2px dotted #007bff;
    cursor: help;
    position: relative;
    color: #007bff;
    font-weight: bold;
}

/* モバイル対応：タップしやすいように少しパディングを確保 */
@media (max-width: 768px) {
    .tooltip-trigger {
        padding: 2px 0;
    }
}

/* Tooltip本体 */
.tooltip-content {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    /* テキストの上に表示 */
    left: 50%;
    margin-left: -125px;
    /* 中央寄せ */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9em;
    line-height: 1.4;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Tooltipの矢印 */
.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-trigger:hover .tooltip-content,
.tooltip-trigger:focus .tooltip-content,
.tooltip-trigger:active .tooltip-content {
    /* スマホでのタップ対応 */
    visibility: visible;
    opacity: 1;
}

/* テーブル内のバッジスタイル */
.badge-free {
    background-color: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.badge-pro {
    background-color: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.badge-mobile {
    background-color: #6c757d;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.recommended-row {
    background-color: #f0f8ff;
    /* 薄い青背景で強調 */
}

/* モデル比較表のモダンデザイン */
.model-comparison-table {
    width: 100%;
    border-collapse: separate;
    /* 角丸のためにseparateに変更 */
    border-spacing: 0;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.model-comparison-table th {
    background: linear-gradient(135deg, #007bff, #4e54c8);
    /* Geminiっぽいグラデーション */
    color: #ffffff;
    font-weight: bold;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #333;
    letter-spacing: 0.05em;
}

.model-comparison-table td {
    padding: 15px;
    vertical-align: top;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

/* 罫線（縦）を追加して区切りを明確に */
.model-comparison-table th:not(:last-child),
.model-comparison-table td:not(:last-child) {
    border-right: 1px solid #eee;
}

/* 最後の行のボーダーを消す */
.model-comparison-table tr:last-child td {
    border-bottom: none;
}

/* おすすめ行のハイライト（既存の上書き+強化） */
.model-comparison-table tr.recommended-row td {
    background-color: #f0f8ff;
    position: relative;
    border-bottom: 1px solid #d0e4ff;
}

.model-comparison-table tr.recommended-row:hover td {
    background-color: #e6f2ff;
}

/* ホバーエフェクト */
.model-comparison-table tbody tr:hover td {
    background-color: #fafafa;
}

.model-comparison-table tbody tr.recommended-row:hover td {
    background-color: #e6f2ff;
    /* おすすめ行は青みを維持 */
}

/* モバイル対応 */
@media (max-width: 600px) {

    .model-comparison-table th,
    .model-comparison-table td {
        padding: 10px;
        font-size: 0.9em;
    }

    .badge-free,
    .badge-pro,
    .badge-mobile {
        display: inline-block;
        margin-bottom: 4px;
    }
}

/* Tooltip Body */
.term-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    /* 上に表示 */
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    width: max-content;
    max-width: 280px;
    white-space: normal;
    text-align: left;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    pointer-events: none;
    /* チップ自体は邪魔にならないように */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Triangle Arrow */
.term-tooltip::after {
    content: '';
    position: absolute;
    bottom: 130%;
    /* 吹き出しのすぐ下 */
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
}

/* Show Tooltip */
.term-tooltip:hover::before,
.term-tooltip:hover::after,
.term-tooltip:focus::before,
.term-tooltip:focus::after {
    visibility: visible;
    opacity: 1;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .term-tooltip::before {
        max-width: 240px;
        left: 0;
        transform: translateX(-10%);
        /* 少し左に寄せる */
    }
}

/* Sidebar Styles */
.sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    margin-bottom: 25px;
}

.sidebar .widget-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .widget-title i {
    color: var(--primary-color);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: #555;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.category-list a:hover {
    color: var(--primary-color);
}

.cat-count {
    background: #eee;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #777;
}

/* Ad Space */
.ad-space {
    background: #f0f0f0;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    border-radius: 8px;
    font-weight: bold;
    border: 2px dashed #ddd;
}

/* Responsive: Stack columns on mobile */
@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* content-wrapper spacing fix for fixed header */
/* .content-wrapper {
    margin-top: 135px !important;
    padding-top: 0 !important;
} */

/* =========================================
   18. Related Posts Section (あわせて読みたい)
   ========================================= */
.related-posts-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px dashed #eee;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px auto 0;
    max-width: 1000px;
    justify-content: center;
    /* 記事が少なくても中央に寄せる */
}

/* 記事が少ない場合に巨大化するのを防ぐ */
.related-post-card {
    max-width: 320px;
    width: 100%;
    margin: 0;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

@media (min-width: 900px) {
    .related-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
        /* 幅を固定して中央寄せを効かせる */
    }

    .related-post-card {
        max-width: 100%;
        /* グリッド任せにする */
    }
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.related-post-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: top;
}

.related-post-card .card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-post-card .card-title {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-main);
    text-decoration: none;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-card:hover .card-title {
    color: var(--primary-color);
}

.related-post-card .card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-sub);
}

.related-post-card .card-genre {
    color: var(--primary-color);
    font-weight: bold;
}

/* Blog Post Specific Header */
.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-header h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 15px;
}

.blog-header .date {
    color: var(--text-sub);
    font-size: 0.95rem;
}

/* Post Footer Override (Reset global footer style) */
.post-footer {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    text-align: left !important;
    box-shadow: none !important;
    margin-top: 0 !important;
}

.author-profile {
    background: #ffffff !important;
    /* 明示的に白を指定して黒化を防ぐ */
    border: none;
    border-top: 1px solid #eee;
    padding: 30px 0;
    margin-top: 60px;
    border-radius: 0;
    box-shadow: none;
    color: #333 !important;
    /* 文字色も強制的に黒へ */
}

.author-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.author-icon,
.profile-image {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    /* 頭が切れないように上部を基準に */
    border: 2px solid #fff;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-main);
}

.author-title {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* Character Profiles */
.character-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.character-profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Jamie Special Crop: Fix top stick-out by anchoring to top */
.character-profile img[src*="gemi"] {
    object-position: top center;
}

/* =========================================
   21. Responsive Styles
   ========================================= */
@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .author-profile-header {
        flex-direction: row;
        /* モバイルでも横並び維持 */
    }
}

/* =========================================
   22. Text Thumbnail (No Image Fallback)
   ========================================= */
.text-thumbnail {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d00 50%, #1a1a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 2px solid #FFD700;
    position: relative;
    overflow: hidden;
}

.text-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(0, 0, 0, 0.1) 50%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.05));
    background-size: 100% 4px, 4px 100%;
    pointer-events: none;
}

.thumb-text {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 2.5rem;
    color: #FFD700;
    font-weight: 900;
    transform: rotate(-2deg);
    z-index: 1;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5),
        -1px -1px 0 rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
    text-align: center;
    padding: 10px;
}

/* =========================================
   Top Page Updates Layout (Single Column Override)
   ========================================= */
#updates-list {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

#updates-list .blog-item {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
    gap: 20px;
}

#updates-list .post-thumbnail {
    width: 200px;
    flex-shrink: 0;
    margin-right: 0;
}

#updates-list .post-content {
    flex: 1;
    min-width: 0;
}

#updates-list .post-thumbnail img,
#updates-list .post-thumbnail .text-thumbnail {
    width: 100%;
    height: 135px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    border-bottom: none;
    margin-bottom: 0;
}

/* Title size adjustment for single column */
#updates-list .post-title {
    font-size: 1.25em;
    margin-bottom: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #updates-list .blog-item {
        padding: 15px 0;
        gap: 15px;
        min-width: 0;
        /* Flexbox overflow fix */
    }

    #updates-list .post-thumbnail {
        width: 100px;
        /* Adjusted for smaller screens */
    }

    #updates-list .post-thumbnail img,
    #updates-list .post-thumbnail .text-thumbnail {
        height: 75px !important;
        /* Aspect ratio maintenance */
    }

    #updates-list .post-title {
        font-size: 0.95rem !important;
        margin-bottom: 4px;
    }

    #updates-list .post-summary {
        display: -webkit-box;
        /* Show summary on mobile if space allows, but truncated */
        -webkit-line-clamp: 2;
        line-clamp: 2;
        /* Standard property for compatibility */
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.8rem !important;
        color: #777;
    }
}