@charset "utf-8";

/* 
このスタイルはfarmいちごろと管理画面で共有している
lp-share.cssに定義
 */


/* ページネーション */

.post-pagination {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.post-pagination-erea {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 12px;
}

.post-pagination-item .post-pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fffcf5;
    color: #5d4037;
    border: 1px solid #f2e8d5;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.post-pagination-item.active .post-pagination-link {
    background: #e84c4c;
    color: #fff;
    border-color: #e84c4c;
    box-shadow: 0 4px 10px rgba(232, 76, 76, 0.3);
}


/* 投稿一覧カード */

.post-list-item {
    display: flex;
    gap: 32px;
    padding: 30px;
    margin-bottom: 24px;
    background: #fffcf5;
    border: 1px solid #f2e8d5;
    border-radius: 24px;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(180, 160, 140, 0.12);
    border-color: #e8dcc5;
}

.post-list-thumb {
    flex: 0 0 200px;
}


/* アスペクト比4:3の比率 */

.post-list-thumb img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

.post-list-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.post-list-entry-title {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin: 4px 0;
}

.post-list-entry-date {
    font-size: 12px;
    color: #999;
}


/* --- 本文開閉エリアのスタイル --- */

.post-list-entry-body-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    margin-bottom: 10px;
}

.post-list-entry-body {
    font-size: 12px;
    line-height: 1.7;
    color: #4a3c39;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-all;
    overflow-wrap: break-word;
    text-align: left;
}


/* 本文エリアの中にある自動挿入された p タグの余白を消す */

.post-list-entry-body p {
    margin: 0 !important;
    padding: 0 !important;
}


/* 初期状態：3行でカット */

.post-list-entry-body.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}


/* 全文表示：制限解除 */

.post-list-entry-body.is-expanded {
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: none !important;
}


/* 全文の中にあるタグが「1行の文字数」を壊さないようにリセット */

.post-list-entry-body.is-expanded p,
.post-list-entry-body.is-expanded div,
.post-list-entry-body.is-expanded span {
    display: block;
    margin: 0;
    padding: 0;
}


/* 画像専用の設定を一番下に書く（優先順位を最大にする） */

.post-list-entry-body img {
    max-width: 100% !important;
    height: auto !important;
    display: inline-block !important;
    margin: 15px 0 !important;
    border-radius: 8px;
    cursor: zoom-in;
}


/* 続きを読むボタン */

.post-list-read-more-btn {
    align-self: flex-end;
    margin-top: 8px;
    padding: 4px 16px;
    background-color: #fff;
    color: #e84c4c;
    border: 1px solid #e84c4c;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.post-list-read-more-btn:hover {
    background-color: #e84c4c;
    color: #fff;
}

.post-list-entry-body.is-collapsed img {
    display: none !important;
}


/* 全文表示になった時の画像設定 */

.post-list-entry-body.is-expanded img {
    display: inline-block !important;
    margin: 15px 0;
}


/* 本文内の画像にマウスが乗ったら虫眼鏡にする */

.post-list-entry-body img {
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.post-list-entry-body img:hover {
    opacity: 0.8;
}


/* スマホ対応 */

@media (max-width: 640px) {
    .post-list-item {
        gap: 12px;
        padding: 12px;
    }
    .post-list-thumb {
        flex: 0 0 100px;
    }
    .post-list-thumb img {
        width: 100px;
        height: 100px;
    }
    .post-pagination-item .post-pagination-link {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}


/** TinyMCEで入力されたHTML要素に対してスタイルを明示的に指定するようにする */


/* 本文全体 */

.post-list-entry-body {
    line-height: 1.8;
    font-size: 14px;
    color: #555555;
}


/* 強調（bold） */

.post-list-entry-body strong,
.post-list-entry-body b {
    font-weight: 700;
}


/* 斜体 */

.post-list-entry-body em,
.post-list-entry-body i {
    font-style: italic;
}


/* 段落 */

.post-list-entry-body p {
    margin: 0 0 1em;
}


/* リスト */

.post-list-entry-body ul,
.post-list-entry-body ol {
    margin: 0 0 1em 1.5em;
    padding: 0;
}


/* 箇条書き */

.post-list-entry-body ul {
    list-style: disc;
}


/* 番号付き */

.post-list-entry-body ol {
    list-style: decimal;
}


/* リスト項目 */

.post-list-entry-body li {
    margin-bottom: 0.5em;
}


/* リンク */

.post-list-entry-body a {
    color: #0066cc;
    text-decoration: underline;
}


/* 引用 */

.post-list-entry-body blockquote {
    border-left: 3px solid #ddd;
    padding-left: 1em;
    margin: 1em 0;
    color: #666;
}


/* farmいちごろLP専用スケルトンローディング中ビュー */


/* ローディング状態 */

.post-list-item.is-loading {
    pointer-events: none;
}


/* 共通 */

.skeleton {
    background-color: #e0e0e0;
    border-radius: 4px;
}


/* サムネ */

.skeleton-thumb {
    width: 100%;
    height: 140px;
}


/* タイトル */

.skeleton-title {
    width: 60%;
    height: 20px;
    margin-bottom: 8px;
}


/* 日付 */

.skeleton-date {
    width: 30%;
    height: 14px;
    margin-bottom: 12px;
}


/* 本文 */

.skeleton-body {
    width: 100%;
    height: 14px;
    margin-bottom: 6px;
}

.skeleton-body.short {
    width: 80%;
}


/* 記事0件の際のUI表示 */

.empty-posts {
    text-align: center;
    padding-top: 30px;
    color: #666;
    font-weight: bold;
    font-size: large;
}


/* モーダル背景 */

.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    /* 全てのものより上に */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* 背景を黒く透過 */
    cursor: zoom-out;
}


/* モーダル画像本体 */

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 中央寄せ */
    border: 3px solid #fff;
    border-radius: 8px;
    animation: zoom 0.3s;
}


/* 閉じるボタン */

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoom {
    from {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}