/**
 * 日誌詳細ページ（journal/show）専用スタイル
 */

/* イイねボタン */
.journal-like-btn {
    border: none;
    background: transparent;
    padding: 0.35rem 0.5rem;
    font-size: 0.95rem;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.journal-like-btn .journal-like-icon { color: #94a3b8; }
.journal-like-btn.active .journal-like-icon { color: #dc2626; }

.journal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.journal-btn:hover { transform: translateY(-1px); opacity: 0.95; }
.journal-btn-edit {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}
.journal-btn-edit:hover { color: #fff; box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35); }
.journal-btn-delete {
    background: #fff;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.journal-btn-delete:hover { background: #fef2f2; color: #b91c1c; }

/* 投稿カード：興味を引くデザイン */
.journal-show-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}
.journal-show-header {
    padding: 1.0rem 0.1rem;
    border-bottom: 1px solid rgba(20, 184, 166, 0.15);
}
.journal-show-body { padding: 0; }
.journal-show-body-inner { padding: 1.5rem; }
/* 写真エリアのみ左右パディング0でカード幅いっぱい */
.journal-photo-section {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}
.journal-show-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
}
.journal-show-meta span + span { margin-left: 0.75rem; }

/* 写真エリア：Swiper メイン＋サムネイル */
.journal-photo-section .journal-main-photo-wrap {
    width: 100%;
    margin-bottom: 0;
    background: #0f0f0f;
    aspect-ratio: 4 / 3;
    min-height: 320px;
    max-height: 85vh;
    position: relative;
    cursor: pointer;
    border-radius: 0;
    overflow: hidden;
}
.journal-swiper-main {
    width: 100%;
    height: 100%;
}
.journal-swiper-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f0f0f;
}
.journal-swiper-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: middle;
    pointer-events: none;
}
.journal-thumbnails-wrap {
    padding: 0.75rem 0 1rem 0;
    margin-bottom: 0;
    background: #1a1a1a;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.journal-swiper-thumbs {
    width: 100%;
    height: 72px;
    padding: 0 0.5rem;
    box-sizing: border-box;
}
.journal-swiper-thumbs .swiper-slide {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    background: #2a2a2a;
    box-sizing: border-box;
}
.journal-swiper-thumbs .swiper-slide:hover {
    opacity: 0.9;
}
.journal-swiper-thumbs .swiper-slide-thumb-active {
    border-color: #fff;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.3);
}
.journal-swiper-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 全画面ビューア */
.journal-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    touch-action: pan-y pinch-zoom;
}
.journal-fullscreen.is-open { display: flex; }
.journal-fullscreen-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.journal-fullscreen-close:hover { background: rgba(255,255,255,0.3); }
.journal-fullscreen-slider {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.journal-fullscreen-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.journal-fullscreen-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.journal-fullscreen-slide img {
    max-width: 95vw;
    max-height: 85vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.journal-fullscreen-prev,
.journal-fullscreen-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.25rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.journal-fullscreen-prev:hover,
.journal-fullscreen-next:hover { background: rgba(255,255,255,0.4); }
.journal-fullscreen-prev { left: 1rem; }
.journal-fullscreen-next { right: 1rem; }
.journal-fullscreen-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

/* 他の投稿も見る：ギャラリー */
.journal-more-section {
    margin-top: 2.5rem;
    border-top: 1px solid #e2e8f0;
    margin: 1.5rem 1rem 2rem 1rem;
}
.journal-more-title {
    padding-top: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.journal-more-title::before {
    content: '';
    width: 4px;
    height: 1.2em;
    background: linear-gradient(180deg, #14b8a6, #0f766e);
    border-radius: 2px;
}
.journal-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.journal-more-cell {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
    display: block;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.journal-more-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.journal-more-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.journal-more-cell-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
    pointer-events: none;
}
.journal-more-badge-new {
    position: absolute;
    left: 4px;
    top: 4px;
    z-index: 2;
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 3px rgba(15, 118, 110, 0.35);
    animation: journal-more-badge-blink 1.2s ease-in-out infinite;
}
@keyframes journal-more-badge-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.journal-more-cell-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: #fff;
}
.journal-more-cell-stats i { opacity: 0.95; }
.journal-more-cell-stats span { display: inline-flex; align-items: center; gap: 2px; }
