/* お写んぽ評価システム CSS v1.5.0 */

/* ========================================
   CSS変数
   ======================================== */
:root {
    --oshanpo-cream:  #f4f1e8;
    --oshanpo-border: #d4c5a9;
    --oshanpo-red:    #c94545;
    --oshanpo-orange: #e87a3e;
    --oshanpo-dark:   #2d2520;
    --oshanpo-gray:   #6b5d52;
}

/* ========================================
   評価カード
   ======================================== */
.oshanpo-rating-card {
    background: var(--oshanpo-cream);
    border: 2px solid var(--oshanpo-border);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 20px 0;
    animation: oshanpo-fade-in 0.6s ease;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    grid-column: 1 / -1 !important;
}
.oshanpo-category-avg {
    margin: 0 !important;
    clear: both;
    display: block !important;
}
.oshanpo-rating-card *,
.oshanpo-rating-card *::before,
.oshanpo-rating-card *::after { box-sizing: border-box; }
.oshanpo-rating-card p,
.oshanpo-rating-card div,
.oshanpo-rating-card span {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.oshanpo-ratings-list {
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
}
.oshanpo-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.6;
    font-size: 0.9rem;
    padding: 0 !important;
    margin: 0 !important;
}
.oshanpo-rating-row.overall { font-weight: 400; }
.oshanpo-rating-row.overall .oshanpo-rating-score,
.oshanpo-rating-row.overall .oshanpo-rating-label,
.oshanpo-rating-row.overall .oshanpo-rating-category { font-weight: 700; }
.oshanpo-rating-icon { font-size: 1rem; width: 18px; flex-shrink: 0; }
.oshanpo-stars-container { display: inline-flex; gap: 1px; margin: 0 4px; }
.oshanpo-star { font-size: 0.95rem; color: #d4c5a9; }
.oshanpo-star.filled { color: var(--oshanpo-orange); }
.oshanpo-rating-score { font-weight: 700; color: var(--oshanpo-red); min-width: 28px; font-size: 0.9rem; }
.oshanpo-rating-no-data { color: var(--oshanpo-gray); font-size: 0.85rem; letter-spacing: 0.05em; margin: 0 4px; }
.oshanpo-rating-label { color: var(--oshanpo-dark); font-weight: 500; }
.oshanpo-rating-category { color: var(--oshanpo-gray); font-size: 0.8rem; margin-left: 2px; }
.oshanpo-location-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--oshanpo-gray);
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.6;
}
.oshanpo-blogger-tag { color: var(--oshanpo-gray); font-size: 0.9rem; }
.oshanpo-blogger-tag[data-blogger="評価者A"]::before { content: "●"; color: #4a90e2; margin-right: 3px; }
.oshanpo-blogger-tag[data-blogger="評価者B"]::before { content: "●"; color: #50c878; margin-right: 3px; }
.oshanpo-blogger-tag[data-blogger="評価者C"]::before { content: "●"; color: #9b59b6; margin-right: 3px; }
.oshanpo-blogger-tag[data-blogger="評価者D"]::before { content: "●"; color: #e74c3c; margin-right: 3px; }
.oshanpo-blogger-tag[data-blogger="評価者E"]::before { content: "●"; color: #f39c12; margin-right: 3px; }
.oshanpo-blogger-tag[data-blogger="評価者F"]::before { content: "●"; color: #16a085; margin-right: 3px; }

/* Cocoonレイアウト対応 */
.ect-tile-card .oshanpo-rating-card,
.ect-card-card .oshanpo-rating-card,
.archive .oshanpo-rating-card,
.category .oshanpo-rating-card {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    grid-column: 1 / -1 !important;
    -ms-grid-column-span: 2 !important;
}
.ect-tile-card, .ect-card-card { width: 100% !important; max-width: 100% !important; flex-basis: 100% !important; }
.post-card-wrapper .oshanpo-rating-card { width: 100% !important; }

/* アニメーション */
@keyframes oshanpo-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   子カテゴリ一覧ボタン
   ======================================== */
.oshanpo-child-cat-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 2px 0 16px;
    width: 100%;
    clear: both;
}
.oshanpo-child-cat-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 10px;
    background: #EBF5FF;
    border: 1px solid #b8d4ee;
    border-radius: 6px;
    text-decoration: none;
    line-height: 1.5;
    min-height: 44px;
    box-shadow: 3px 3px 6px rgba(0,80,160,0.12);
}
.oshanpo-child-cat-btn .cat-name { font-size: 0.95em; font-weight: 700; color: #2277cc; margin-bottom: 2px; }
.oshanpo-child-cat-btn .cat-row  { font-size: 0.8em; color: #2d2520; white-space: nowrap; }
@media (max-width: 768px) {
    .oshanpo-child-cat-btn .cat-stars,
    .oshanpo-child-cat-btn .cat-en { display: none; }
}
@media (min-width: 769px) {
    .oshanpo-child-cat-btn .cat-stars { display: inline; }
    .oshanpo-child-cat-btn .cat-en   { display: none; }
}

/* ========================================
   レスポンシブ（評価カード）
   ======================================== */
@media (max-width: 768px) {
    .oshanpo-rating-card { padding: 10px 12px; width: 100% !important; max-width: 100% !important; }
    .oshanpo-rating-row, .oshanpo-location-meta { font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .oshanpo-rating-card { padding: 8px 10px; }
    .oshanpo-rating-row, .oshanpo-location-meta { font-size: 0.8rem; }
    .oshanpo-rating-category { font-size: 0.75rem; }
}

/* ========================================
   パンくずナビ
   ======================================== */
.oshanpo-breadcrumb {
    width: 100%;
    margin: 0;
    font-size: 0.85em;
    line-height: 1.4;
}
.single .oshanpo-breadcrumb,
.page .oshanpo-breadcrumb,
.single .entry-content .oshanpo-breadcrumb,
.page .entry-content .oshanpo-breadcrumb {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.category .oshanpo-breadcrumb { padding: 0 !important; }

.oshanpo-bc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 4px;
    align-items: center;
}

/* 1〜4段目ボタン共通プロパティ */
.oshanpo-bc-row1 .oshanpo-bc-item,
.oshanpo-bc-row2 .oshanpo-bc-item,
.oshanpo-bc-row3 .oshanpo-bc-item,
.oshanpo-bc-row4 .oshanpo-bc-item {
    padding: 4px 10px !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    width: auto !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    margin: 0 !important;
    font-size: 0.85em !important;
    line-height: 1.4 !important;
}

/* 1段目 */
.oshanpo-bc-row1 .oshanpo-bc-item           { background: #0F5474 !important; color: #FFFFFF !important; border: none !important; }
.oshanpo-bc-row1 .oshanpo-bc-item.oshanpo-bc-active { background: #000000 !important; }
.oshanpo-bc-row1 .oshanpo-bc-item:hover     { opacity: 0.85; }
/* 固定ページ：1段目はアクティブなし・全て同色 */
.oshanpo-bc-row1-page .oshanpo-bc-item,
.oshanpo-bc-row1-page .oshanpo-bc-item.oshanpo-bc-active { background: #0F5474 !important; }

/* 2段目 */
.oshanpo-bc-row2 .oshanpo-bc-item           { background: #0067C0 !important; color: #FFFFFF !important; border: none !important; }
.oshanpo-bc-row2 .oshanpo-bc-item.oshanpo-bc-active { background: #002255 !important; }
.oshanpo-bc-row2 .oshanpo-bc-item:hover     { opacity: 0.85; }

/* 3段目 */
.oshanpo-bc-row3 .oshanpo-bc-item           { background: #ABE1FA !important; color: #000000 !important; border: none !important; }
.oshanpo-bc-row3 .oshanpo-bc-item.oshanpo-bc-active { background: #89B0D5 !important; }
.oshanpo-bc-row3 .oshanpo-bc-item:hover     { background: #89B0D5 !important; }

/* 4段目 */
.oshanpo-bc-row4                            { padding: 0; }
.oshanpo-bc-row4 .oshanpo-bc-item           { background: #FFFFFF !important; color: #0000FF !important; border: 1px solid #cccccc !important; }
.oshanpo-bc-row4 .oshanpo-bc-item.oshanpo-bc-active { background: #d0d0d0 !important; color: #000000 !important; }
.oshanpo-bc-row4 .oshanpo-bc-item:hover     { background: #e8e8e8 !important; }

/* 5段目（テキストリンク） */
.oshanpo-bc-row5                            { padding: 2px 0; }
.oshanpo-bc-row5 .oshanpo-bc-item5          { color: #0044CC !important; text-decoration: none; white-space: nowrap; }
.oshanpo-bc-row5 .oshanpo-bc-item5.oshanpo-bc-active5 { font-weight: bold; }
.oshanpo-bc-row5 .oshanpo-bc-item5:hover    { text-decoration: underline; }

.oshanpo-bc-sep { color: #666; padding: 0 2px; }

/* カテゴリタイトル */
.oshanpo-cat-title {
    font-size: 1.2em !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    font-weight: bold;
}
.oshanpo-cat-title a {
    pointer-events: none !important;
    text-decoration: none !important;
    color: inherit !important;
    cursor: default !important;
}

/* ========================================
   投票フォーム
   ======================================== */
.oshanpo-vote-form {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 12px 0 4px;
}
.oshanpo-vote-title {
    font-weight: bold;
    font-size: 0.95em;
    margin: 0 0 8px !important;
    color: #333;
}
.oshanpo-vote-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.oshanpo-vote-label {
    font-size: 0.88em;
    min-width: 90px;
    color: #444;
}
.oshanpo-vote-stars {
    display: flex;
    gap: 2px;
}
.oshanpo-vote-star {
    background: none;
    border: none;
    font-size: 1.4em;
    color: #ccc;
    cursor: pointer;
    padding: 0 1px;
    line-height: 1;
    transition: color 0.1s;
}
.oshanpo-vote-star.hover,
.oshanpo-vote-star.selected {
    color: #e87a3e;
}
.oshanpo-vote-current {
    font-size: 0.82em;
    color: #888;
    min-width: 28px;
}
@media (max-width: 480px) {
    .oshanpo-vote-label { min-width: 72px; font-size: 0.82em; }
    .oshanpo-vote-star  { font-size: 1.2em; }
}

/* ========================================
   採点履歴コメント表示
   ======================================== */
.oshanpo-comment {
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    margin-bottom: 4px;
}
.oshanpo-comment-meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 4px;
}
.oshanpo-comment-body {
    font-size: 0.95em;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.6;
}
.oshanpo-comment-scores {
    font-size: 0.85em;
    color: #444;
    background: #f4f1e8;
    border-radius: 4px;
    padding: 4px 8px;
    display: inline-block;
}
.oshanpo-comment-pending {
    font-size: 0.82em;
    color: #999;
    margin: 2px 0;
}

/* ========================================
   採点履歴コメント表示
   ======================================== */
.oshanpo-comment {
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    margin: 0;
}
.oshanpo-comment:last-child { border-bottom: none; }
.oshanpo-comment-meta {
    font-size: 0.82em;
    color: #666;
    margin-bottom: 4px;
}
.oshanpo-comment-body {
    font-size: 0.92em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 4px;
}
.oshanpo-comment-scores {
    font-size: 0.85em;
    color: #444;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 3px 8px;
    display: block;
    margin-bottom: 8px;
}
.oshanpo-comment-pending {
    font-size: 0.82em;
    color: #999;
    font-style: italic;
    margin: 2px 0;
}


