/* =====================================================
   breadcrumb.css — パンくずリスト スタイル
   テーマの style.css に @import するか直接貼り付けて使用
   ===================================================== */

/* ---------- ベースレイアウト ---------- */
.breadcrumb {
    width: 100%;
    padding: 10px 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ---------- 各アイテム ---------- */
.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---------- リンク ---------- */
.breadcrumb__link {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.breadcrumb__link:hover,
.breadcrumb__link:focus {
    color: #0073aa; /* WordPress 管理画面に合わせた青 → テーマカラーに変更可 */
    text-decoration: underline;
    outline: none;
}

/* ---------- 現在ページ ---------- */
.breadcrumb__current {
    color: #999;
    white-space: nowrap;
    /* 長いタイトルを省略する場合は以下を有効化
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: bottom;
    */
}

/* ---------- セパレーター ---------- */
.breadcrumb__sep {
    color: #ccc;
    user-select: none;
    font-size: 0.8em;
    line-height: 1;
}

/* ---------- レスポンシブ（スマートフォン）---------- */
@media (max-width: 780px) {
    .breadcrumb {
        font-size: 0.78rem;
        padding: 0.8em;
    }

    /* スマホでは長くなりやすいので current を省略 */
    .breadcrumb__current {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        vertical-align: bottom;
    }
}

/* =====================================================
   カスタマイズ例: テーマに合わせてここを編集してください
   ===================================================== */

/*
-- 背景付きスタイル（グレー帯）--

.breadcrumb {
    background: #f5f5f5;
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
}

-- アクセントカラーの変更 --

.breadcrumb__link:hover {
    color: #e44d26;  // 例：オレンジ
}

-- セパレーターを矢印アイコンに変更 --

.breadcrumb__sep::before {
    content: '›';
}

-- セパレーターを「>」に変更 --
.breadcrumb__sep {
    content: '>';
}
*/
