.pce-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

/* 「投稿カレンダー」ラベル */
.pce-title-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* セレクトと矢印用のラッパー */
.pce-cat-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* 管理画面風セレクト */
.pce-cat-select {
    font-size: 15px;
    font-weight: 500;
    padding: 4px 28px 4px 8px; /* 右側は矢印分広め */
    border: 1px solid #bfbfbf;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    color: #222;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;

    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* ▼矢印 */
.pce-cat-select-wrap::after {
    content: "▼";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-47%);
    font-size: 15px;
    color: #555;
    pointer-events: none;
    line-height: 1;
}

.pce-cat-select:hover {
    border-color: #888;
}

.pce-cat-select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.25);
}

.pce-cat-select:disabled {
    opacity: 0.55;
    cursor: default;
}

/* レイアウト全体 */
.pce-layout {
    width: 100%;
}

/* 2ヶ月横並びコンテナ */
.pce-cal-pair {
    display: flex;
    gap: 16px;
    justify-content: center;
    width: 100%;
}

/* 各月ブロック */
.pce-month-block {
    flex: 1 1 50%;
    min-width: 0;
}

/* タイトル＋ナビのヘッダー行 */
.pce-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

/* 各月タイトル */
.pce-month-title {
    font-weight: 600;
    text-align: center;
    width: 100%;
}

/* 月タイトルリンク */
.pce-month-title-link {
    color: inherit;
    text-decoration: none;
}
.pce-month-title-link:hover {
    text-decoration: underline;
}

/* 月タイトル（アクティブ月用の青枠：月別アーカイブ時など） */
.pce-month-title-active {
    border: 2px solid #1976d2;
    border-radius: 6px;
    padding: 2px 6px;
    display: inline-block;
}

/* リンク無効時のタイトルテキスト（グレーアウト時など） */
.pce-month-title-text {
    color: inherit;
}

/* 月間投稿数が0の月は全体をグレーアウト＆リンク無効 */
.pce-month-empty {
    opacity: 0.4;
}

/* ナビゲーションボタン（丸型） */
.pce-nav {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    flex-shrink: 0;
    margin: 0 2px; /* タイトル枠との間に 2px 余白 */
}
.pce-nav[disabled] {
    opacity: 0.4;
    cursor: default;
}
.pce-icon {
    font-size: 20px;
}

/* ===== カレンダー（日付セル） ===== */
.pce-cal {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pce-cal th,
.pce-cal td {
    border: 1px solid #e0e0e0;
    padding: 0;
}

.pce-cal th {
    background: #fafafa;
    font-size: 11px;
    text-align: center;
    padding: 3px 0;
}

/* 正方形セル（padding少なめ） */
.pce-cell-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    padding: 2px;
    font-size: 12px;
}

/* 空セル */
.pce-empty .pce-cell-inner {
    background: #fcfcfc;
}

/* 日付リンク/非リンク */
.pce-daylink,
.pce-daybox {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
}

/* 日付文字（大きめ） */
.pce-daynum {
    position: absolute;
    top: 2px;
    left: 2px;
    font-weight: 700;
    font-size: 15px;
}

/* 投稿の有無で日付の文字色を変える */
.pce-daybox .pce-daynum {
    color: #c0c0c0;   /* 投稿なしの日は薄いグレー */
}

.pce-daylink .pce-daynum {
    color: #333333;   /* 投稿ありの日は濃いめ */
}

/* 投稿バッジ（青） */
.pce-badge {
    position: absolute;
    right: 2px;
    bottom: 2px;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 999px;
    background: #1976d2;
    color: white;
}

/* 指定日付セルのハイライト（投稿ページ・日付アーカイブ用） */
.pce-cell-highlight {
    outline: 2px solid #1976d2;
    outline-offset: -2px;
}

/* ===== モバイル時：2ヶ月とも縮んで収まる＆バッジ小さめ ===== */
@media (max-width: 600px) {

    .pce-title {
        gap: 5px;
        margin-bottom: 10px;
    }

    .pce-title-label {
        font-size: 14px;
    }

    .pce-cat-select {
        font-size: 14px;
        padding: 4px 22px 4px 6px;
        max-width: none;
    }

    .pce-cat-select-wrap::after {
        content: "▼";
        font-size: 14px;
        right: 7px; 
        transform: translateY(-45%);
    }

    .pce-cal-pair {
        flex-wrap: nowrap;          /* 2ヶ月を横並び維持 */
    }

    .pce-month-block {
        flex: 1 1 50%;              /* shrink 可能な 50% 幅 */
        max-width: 50%;
    }

    .pce-nav {
        width: 32px;
        height: 32px;
    }

    .pce-daynum {
        font-size: 14px;
    }

    .pce-cell-inner {
        padding: 1px;
    }

    /* バッジはギリギリ右下 & 小さめ */
    .pce-badge {
        font-size: 7px;
        padding: 1px 4px;
        right: 0;
        bottom: 0;
    }
}
