/* ============================================================
 * habataki-birds.css — トップページ配色適用版 (PATCHED)
 * ------------------------------------------------------------
 * トップページ habataki-park.jp/ のテーマカラーに揃えるため、
 * くすみ系の緑をビビッドな緑に置き換えています。
 *
 * 変更マッピング:
 *   #5a7c4a → #006934  (--c-accent : tcd-accent-color)
 *   #a8c396 → #54ae06  (--c-accent-light : tcd-sub-color)
 *   #3d5b2f → #003d1f  (--c-accent-dark : 濃いアクセント)
 *   #6e9456 → #54ae06  (forecast border / heat-3)
 *   #d8e5cc → #c9e4a3  (photo placeholder gradient)
 *   #f7f5ef → #f5f7f2  (--c-bg)
 *   #e4e1d6 → #e0e8db  (--c-border)
 *   #f0eee6 → #eef3e0  (heat-0)
 *   #f7f3e8 → #eef3e0  (forecast bg start)
 *   #fbfaf3 → #f5f7f2  (forecast bg end)
 *   #2a3128 → #003d1f  (text dark)
 *
 * 季節カラー (#e8c7d1 春, #ffe7a8 繁殖, #e8b889 秋, #b6cdde 冬)
 * とレッドリスト #b84545 は機能識別色のため変更していません。
 *
 * 設置: /wp-content/plugins/habataki-birds/assets/css/habataki-birds.css
 *       を本ファイルで上書きしてください。
 *       （プラグイン更新で上書きされます。子テーマ override も併用推奨）
 * ============================================================ */

/* Habataki Birds v1.9.17 - .habataki-birds scoped */

.habataki-birds {
    --c-bg: #f5f7f2;
    --c-paper: #ffffff;
    --c-text: #2a2e2a;
    --c-muted: #6e7570;
    --c-border: #e0e8db;
    --c-accent: #006934;
    --c-accent-light: #54ae06;
    --c-accent-dark: #003d1f;
    --c-spring: #e8c7d1;
    --c-breeding: #ffe7a8;
    --c-autumn: #e8b889;
    --c-winter: #b6cdde;
    --c-danger: #b84545;
    --c-heat-0: #eef3e0;
    --c-heat-1: #c9e4a3;
    --c-heat-2: #54ae06;
    --c-heat-3: #54ae06;
    --c-heat-4: #003d1f;
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--c-text);
    line-height: 1.7;
    background: var(--c-bg);
    padding: 32px 0 64px;
}

.habataki-birds *, .habataki-birds *::before, .habataki-birds *::after { box-sizing: border-box; }

.habataki-birds .hb-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.habataki-birds .hb-breadcrumb {
    font-size: 12px;
    color: var(--c-muted);
    padding: 0 0 16px;
}

.habataki-birds .hb-breadcrumb a {
    color: var(--c-muted);
    text-decoration: none;
}

.habataki-birds .hb-breadcrumb a:hover {
    color: var(--c-accent);
}

/* ===== Archive ===== */
.habataki-birds-archive .hb-hero-archive {
    background: var(--c-paper);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--c-border);
    margin-bottom: 24px;
    text-align: center;
}

.habataki-birds-archive .hb-hero-archive h1 {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 32px;
    color: var(--c-accent-dark);
    margin: 0 0 8px;
}

.habataki-birds-archive .hb-subtitle {
    color: var(--c-muted);
    margin: 0 0 24px;
    font-size: 14px;
}

.habataki-birds-archive .hb-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.habataki-birds-archive .hb-stat {
    background: var(--c-bg);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--c-border);
}

.habataki-birds-archive .hb-stat-num {
    display: block;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--c-accent-dark);
    line-height: 1.1;
}

.habataki-birds-archive .hb-stat-period .hb-stat-num {
    font-size: 13px;
}

.habataki-birds-archive .hb-stat-label {
    display: block;
    font-size: 11px;
    color: var(--c-muted);
    margin-top: 4px;
}

.habataki-birds-archive .hb-search-wrap {
    max-width: 480px;
    margin: 0 auto 28px;
}

.habataki-birds-archive .hb-search {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-paper);
}

.habataki-birds-archive .hb-search:focus {
    outline: none;
    border-color: var(--c-accent);
}

.habataki-birds-archive .hb-order-section {
    margin-bottom: 32px;
}

.habataki-birds-archive .hb-order-title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
    color: var(--c-accent-dark);
    border-left: 3px solid var(--c-accent-light);
    padding-left: 12px;
    margin: 0 0 14px;
}

.habataki-birds-archive .hb-bird-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.habataki-birds-archive .hb-bird-card {
    display: block;
    background: var(--c-paper);
    padding: 16px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--c-text);
    transition: all 0.15s;
}

.habataki-birds-archive .hb-bird-card:hover {
    border-color: var(--c-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.habataki-birds-archive .hb-bird-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.habataki-birds-archive .hb-bird-name {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--c-accent-dark);
}

.habataki-birds-archive .hb-family {
    color: var(--c-muted);
    font-size: 12px;
    margin-bottom: 10px;
}

.habataki-birds-archive .hb-bird-card-stats {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--c-muted);
}

.habataki-birds-archive .hb-bird-card-stats strong {
    font-family: "Noto Sans JP", sans-serif;
    color: var(--c-accent-dark);
    font-size: 14px;
    margin-right: 2px;
}

/* Badges */
.habataki-birds .hb-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 999px;
    font-weight: 500;
    margin-right: 4px;
}

.habataki-birds .hb-badge-marker { background: var(--c-accent-light); color: var(--c-accent-dark); }
.habataki-birds .hb-badge-common { background: #eee; color: var(--c-muted); }
.habataki-birds .hb-badge-redlist { background: #ffe3e3; color: var(--c-danger); }

/* ===== Single ===== */
.habataki-birds-single .hb-bird-hero {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    background: var(--c-paper);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--c-border);
    margin-bottom: 24px;
}

.habataki-birds-single .hb-bird-photo {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #c9e4a3, #54ae06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-accent-dark);
    font-size: 13px;
    overflow: hidden;
    position: relative;
}

.habataki-birds-single .hb-bird-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.habataki-birds-single .hb-bird-photo::after {
    content: "写真準備中";
    opacity: 0.5;
    font-size: 12px;
}

.habataki-birds-single .hb-bird-photo.has-image::after { content: none; }

.habataki-birds-single .hb-bird-meta h1 {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 40px;
    margin: 0 0 4px 0;
    color: var(--c-accent-dark);
    line-height: 1.2;
}

.habataki-birds-single .hb-sci-name {
    color: var(--c-muted);
    font-style: italic;
    margin-bottom: 20px;
    font-size: 14px;
}

.habataki-birds-single .hb-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.habataki-birds-single .hb-taxonomy {
    font-size: 13px;
    color: var(--c-muted);
    margin-bottom: 16px;
}

.habataki-birds-single .hb-taxonomy strong {
    color: var(--c-text);
    font-weight: 500;
    margin-right: 8px;
}

.habataki-birds-single .hb-intro-note {
    font-size: 14px;
    color: var(--c-muted);
    background: var(--c-bg);
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 3px solid var(--c-accent-light);
    margin: 0;
}

.habataki-birds-single .hb-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.habataki-birds-single .hb-stat-card {
    background: var(--c-paper);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--c-border);
}

.habataki-birds-single .hb-stat-card .hb-label {
    font-size: 12px;
    color: var(--c-muted);
    margin-bottom: 4px;
}

.habataki-birds-single .hb-stat-card .hb-value {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--c-accent-dark);
    line-height: 1.2;
}

.habataki-birds-single .hb-stat-card .hb-unit {
    font-size: 14px;
    font-weight: 400;
}

.habataki-birds-single .hb-stat-card .hb-sub {
    font-size: 12px;
    color: var(--c-muted);
    margin-top: 4px;
}

/* Panels */
.habataki-birds-single .hb-panel {
    background: var(--c-paper);
    padding: 24px;
    border-radius: 10px;
    border: 1px solid var(--c-border);
    margin-bottom: 24px;
}

.habataki-birds-single .hb-panel h2 {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 20px;
    margin: 0 0 4px;
    color: var(--c-accent-dark);
}

.habataki-birds-single .hb-panel .hb-lead {
    font-size: 13px;
    color: var(--c-muted);
    margin: 0 0 20px;
}

/* ===== å­£ç¯ãã¿ã¼ã³ï¼æ¨ªä¸¦ã³ã®å¸¯ï¼ ===== */
.habataki-birds-single .hb-season-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.habataki-birds-single .hb-season-cell {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 0;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.habataki-birds-single .hb-season-legend {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--c-muted);
    flex-wrap: wrap;
    margin-top: 8px;
}

.habataki-birds-single .hb-season-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

/* ===== ã°ã©ãï¼é«ãæ¡å¤§ãXè»¸ä½è£ï¼ ===== */
.habataki-birds-single .hb-chart-wrap {
    position: relative;
    height: 420px;
    padding-bottom: 12px;
}

/* ===== ãã¼ãããã ===== */
.habataki-birds-single .hb-heatmap {
    overflow-x: auto;
    padding-bottom: 8px;
}

.habataki-birds-single .hb-heatmap-svg {
    display: block;
}

.habataki-birds-single .hb-heatmap-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--c-muted);
    margin-top: 12px;
    justify-content: flex-end;
}

.habataki-birds-single .hb-heatmap-legend .hb-scale {
    display: inline-flex;
    gap: 2px;
}

.habataki-birds-single .hb-heatmap-legend .hb-scale span {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

.habataki-birds .hb-tooltip {
    position: absolute;
    background: rgba(42, 46, 42, 0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    white-space: pre-line;
    z-index: 100;
}

/* ===== Table ===== */
.habataki-birds-single .hb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.habataki-birds-single .hb-table th,
.habataki-birds-single .hb-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}

.habataki-birds-single .hb-table th {
    background: var(--c-bg);
    font-weight: 500;
    color: var(--c-muted);
    font-size: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
    .habataki-birds-single .hb-bird-hero { grid-template-columns: 1fr; }
    .habataki-birds-single .hb-bird-photo { max-width: 260px; margin: 0 auto; }
    .habataki-birds-single .hb-bird-meta h1 { font-size: 32px; }
    .habataki-birds-single .hb-stats { grid-template-columns: repeat(2, 1fr); }
    .habataki-birds-archive .hb-summary { grid-template-columns: repeat(2, 1fr); }
    .habataki-birds-single .hb-season-cell { font-size: 10px; padding: 12px 0; }
    .habataki-birds-single .hb-chart-wrap { height: 360px; }
}

/* ===== v1.1.5 è±èªåã»èª¬æ ===== */
.habataki-birds-single .hb-en-name {
    display: block;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--c-muted);
    margin-top: 4px;
    letter-spacing: 0.04em;
}

.habataki-birds-single .hb-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--c-text);
    background: var(--c-bg);
    padding: 14px 18px;
    border-radius: 6px;
    border-left: 3px solid var(--c-accent-light);
    margin: 16px 0;
}

/* ===== v1.1.6 ä¸è¦§ã«ã¼ãè±èªå ===== */
.habataki-birds-archive .hb-card-en {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 12px;
    color: var(--c-muted);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

/* ===== v1.1.8 ä¸è¦§ã«ã¼ã ãµã ãã¤ã« ===== */
.habataki-birds-archive .hb-bird-card { padding: 0; overflow: hidden; }

.habataki-birds-archive .hb-card-thumb {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #c9e4a3, #54ae06);
    overflow: hidden;
    position: relative;
}

.habataki-birds-archive .hb-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.habataki-birds-archive .hb-card-thumb:not(.has-image)::after {
    content: '写真準備中';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.habataki-birds-archive .hb-card-body { padding: 14px 16px 16px; }

/* ===== v1.2.5 åãç®ã®é³¥ã«ã¼ã ===== */
.habataki-birds-single .hb-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.habataki-birds-single .hb-related-card {
    display: block;
    text-decoration: none;
    color: var(--c-text);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    transition: all 0.15s;
}

.habataki-birds-single .hb-related-card:hover {
    border-color: var(--c-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.habataki-birds-single .hb-related-thumb {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #c9e4a3, #54ae06);
    overflow: hidden;
    position: relative;
}

.habataki-birds-single .hb-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.habataki-birds-single .hb-related-thumb:not(.has-image)::after {
    content: '写真準備中';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 20px;
}

.habataki-birds-single .hb-related-name {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--c-accent-dark);
    padding: 8px 10px 2px;
}

.habataki-birds-single .hb-related-family {
    font-size: 11px;
    color: var(--c-muted);
    padding: 0 10px 10px;
}

/* ===== v1.2.7 ç¨®å¥ãã£ã«ã¿ã¼ ===== */
.habataki-birds .hb-chart-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.habataki-birds .hb-chart-filter label {
    font-size: 13px;
    color: var(--c-muted);
    font-weight: 500;
    white-space: nowrap;
}

.habataki-birds .hb-chart-filter select {
    flex: 1;
    min-width: 200px;
    max-width: 380px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    background: var(--c-paper);
    cursor: pointer;
}

.habataki-birds .hb-chart-filter select:focus {
    outline: none;
    border-color: var(--c-accent);
}

/* ===== v1.3.1 ç¨®å¥ããã¸ ===== */
.habataki-birds .hb-badge-status {
    background: var(--c-paper);
    color: var(--c-accent-dark);
    border: 1px solid var(--c-accent-light);
}

/* ===== v1.3.2 ä¸è¦§ã«ã¼ãç¨®å¥ããã¸ ===== */
.habataki-birds-archive .hb-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.habataki-birds-archive .hb-card-meta-row .hb-family {
    margin-bottom: 0;
}

.habataki-birds-archive .hb-card-status {
    display: inline-block;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 999px;
    background: var(--c-bg);
    color: var(--c-accent-dark);
    border: 1px solid var(--c-accent-light);
    line-height: 1.5;
    white-space: nowrap;
}

/* ===== v1.3.3 ç¨®å¥å¡ä¾ã»ã¯ã·ã§ã³ ===== */
.habataki-birds-archive .hb-legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.habataki-birds-archive .hb-legend-item {
    background: var(--c-bg);
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.habataki-birds-archive .hb-legend-item .hb-card-status {
    align-self: flex-start;
    margin-bottom: 4px;
}

.habataki-birds-archive .hb-legend-item p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--c-text);
    margin: 0;
}

/* ===== v1.3.8 å¡ä¾åããã¸ã®å¹å¶å¾¡ ===== */
.habataki-birds-archive .hb-legend-item .hb-badge {
    align-self: flex-start;
    margin-bottom: 4px;
    margin-right: 0;
}

/* ===== æ¬æ¥ã®é£æ¥äºå ± (v1.4.0) ===== */
.habataki-birds .hb-forecast { background: linear-gradient(180deg, #eef3e0 0%, #f5f7f2 100%); border-left: 4px solid #54ae06; }
.habataki-birds .hb-forecast h2 { color: #003d1f; }
.habataki-birds .hb-forecast-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
    gap: 12px;
    margin-top: 12px;
}
.habataki-birds .hb-forecast-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e8db;
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform .12s ease, box-shadow .12s ease;
}
.habataki-birds .hb-forecast-card:hover {
    transform: translateY( -2px );
    box-shadow: 0 6px 14px rgba( 0, 0, 0, .08 );
}
.habataki-birds .hb-forecast-rank {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #006934;
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    border: 2px solid #fff;
    padding: 0;
    z-index: 2;
    letter-spacing: -0.04em;
}
.habataki-birds .hb-forecast-card:nth-child(1) .hb-forecast-rank { background: #c9a227; }
.habataki-birds .hb-forecast-card:nth-child(2) .hb-forecast-rank { background: #9aa3a8; }
.habataki-birds .hb-forecast-card:nth-child(3) .hb-forecast-rank { background: #b06b3c; }
.habataki-birds .hb-forecast-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #c9e4a3, #54ae06);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}
.habataki-birds .hb-forecast-thumb:not(.has-image)::after {
    content: '写真準備中';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.habataki-birds .hb-forecast-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.habataki-birds .hb-forecast-body { padding: 0 2px; }
.habataki-birds .hb-forecast-name {
    font-weight: 700;
    font-size: 15px;
    color: #003d1f;
    margin-bottom: 4px;
}
.habataki-birds .hb-forecast-meta {
    display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px;
}
.habataki-birds .hb-forecast-level {
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.habataki-birds .hb-forecast-pct {
    font-size: 28px;
    font-weight: 800;
    color: #003d1f;
    line-height: 1;
    font-family: "Noto Sans JP", sans-serif;
    letter-spacing: -0.02em;
}
.habataki-birds .hb-forecast-detail {
    font-size: 11px;
    color: #6e7570;
    line-height: 1.4;
}
.habataki-birds .hb-forecast-note {
    margin-top: 12px;
    font-size: 12px;
    color: #6e7570;
}

/* ===== æ¬æ¥ã®å¤©æ°äºå ±ãµããª (v1.5.0) ===== */
.habataki-birds .hb-forecast-weather {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e0e8db;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 6px 0 12px;
    font-size: 13px;
}
.habataki-birds .hb-fw-label {
    background: #54ae06;
    color: #fff;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 10px;
    font-size: 12px;
}
.habataki-birds .hb-fw-summary { font-weight: 600; color: #003d1f; }
.habataki-birds .hb-fw-applied {
    margin-left: auto;
    color: #003d1f;
    font-size: 12px;
    background: #eef3e0;
    padding: 3px 8px;
    border-radius: 6px;
}
.habataki-birds .hb-fw-applied.hb-fw-applied-off {
    color: #6e7570;
    background: #eef3e0;
}

/* ===== è©³ç´°ãã¼ã¸ã®æ¬æ¥ã®åºç¾ç (v1.5.7) ===== */
.habataki-birds-single .hb-bird-forecast {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #eef3e0 0%, #f5f7f2 100%);
    border-left: 4px solid #54ae06;
    border-radius: 10px;
    padding: 14px 20px;
    margin: 12px 0 18px;
    flex-wrap: wrap;
}
.habataki-birds-single .hb-bf-left {
    display: flex; flex-direction: column; gap: 6px;
}
.habataki-birds-single .hb-bf-label {
    font-size: 18px;
    font-weight: 700;
    color: #003d1f;
    letter-spacing: 0.02em;
}
.habataki-birds-single .hb-bf-level {
    align-self: flex-start;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
}
.habataki-birds-single .hb-bf-pct {
    font-size: 48px;
    font-weight: 800;
    color: #003d1f;
    line-height: 1;
    font-family: "Noto Sans JP", sans-serif;
    letter-spacing: -0.02em;
    margin-left: auto;
}
.habataki-birds-single .hb-bf-pct-unit {
    font-size: 22px;
    margin-left: 2px;
    font-weight: 700;
}
.habataki-birds-single .hb-bf-detail {
    flex-basis: 100%;
    font-size: 12px;
    color: #6e7570;
    line-height: 1.4;
    border-top: 1px solid rgba(110, 148, 86, 0.2);
    padding-top: 10px;
}
@media (max-width: 600px) {
    .habataki-birds-single .hb-bf-pct { font-size: 36px; margin-left: 0; }
}

/* ===== ä¸¦ã¹æ¿ãæ©è½ (v1.6.5) ===== */
.habataki-birds-archive .hb-search-sort-wrap {
    display: flex;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto 28px;
    align-items: stretch;
    flex-wrap: wrap;
}
.habataki-birds-archive .hb-search-sort-wrap .hb-search {
    flex: 1 1 320px;
}
.habataki-birds-archive .hb-sort-select {
    flex: 0 0 auto;
    padding: 0 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-paper);
    cursor: pointer;
    min-width: 200px;
}
.habataki-birds-archive .hb-sort-select:focus {
    outline: none;
    border-color: var(--c-accent);
}
.habataki-birds-archive .hb-bird-grid-flat {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}
.habataki-birds-archive .hb-card-pct {
    color: var(--c-accent-dark);
}
.habataki-birds-archive .hb-card-pct strong {
    font-size: 14px;
}

/* ===== 飛来調査時間の表示 (v1.7.0 追加) =====
 * /birds アーカイブページのヒーロー直下に表示する調査時間ノート
 */
.habataki-birds-archive .hb-survey-info {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: #eef3e0;
    border: 1px solid #c9e4a3;
    border-left: 4px solid #54ae06;
    color: #003d1f;
    padding: 10px 18px;
    border-radius: 8px;
    margin: 8px 0 20px;
    font-size: 13px;
    line-height: 1.6;
}
.habataki-birds-archive .hb-survey-info .hb-survey-icon {
    font-size: 18px;
    line-height: 1;
}
.habataki-birds-archive .hb-survey-info .hb-survey-label {
    font-weight: 700;
    color: #006934;
    letter-spacing: 0.04em;
}
.habataki-birds-archive .hb-survey-info .hb-survey-time {
    display: inline-block;
    background: #fff;
    border: 1px solid #c9e4a3;
    color: #003d1f;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-family: "SF Mono", Consolas, monospace;
    font-size: 12px;
}
.habataki-birds-archive .hb-survey-info .hb-survey-note {
    color: #5a6b54;
    font-size: 12px;
}
@media (max-width: 600px) {
    .habataki-birds-archive .hb-survey-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ===== 飛来予報セクション 文字サイズ拡大 (v1.7.1) ===== */
.habataki-birds .hb-forecast h2 {
    font-size: 28px !important;
    font-weight: 700;
    margin-bottom: 6px;
}
.habataki-birds .hb-forecast .hb-lead {
    font-size: 16px !important;
    line-height: 1.75;
    color: #2a3128;
}
.habataki-birds .hb-forecast-name {
    font-size: 18px !important;
    line-height: 1.4;
}
.habataki-birds .hb-forecast-pct {
    font-size: 36px !important;
}
.habataki-birds .hb-forecast-level {
    font-size: 13px !important;
    padding: 3px 10px;
}
.habataki-birds .hb-forecast-detail {
    font-size: 13px !important;
    line-height: 1.6;
}
.habataki-birds .hb-forecast-weather {
    font-size: 14px !important;
}
.habataki-birds .hb-fw-summary {
    font-size: 15px !important;
}
.habataki-birds .hb-forecast-rank {
    font-size: 20px;
    width: 38px; height: 38px;
}
@media (max-width: 600px) {
    .habataki-birds .hb-forecast h2 { font-size: 24px !important; }
    .habataki-birds .hb-forecast .hb-lead { font-size: 14px !important; }
    .habataki-birds .hb-forecast-name { font-size: 16px !important; }
    .habataki-birds .hb-forecast-pct { font-size: 30px !important; }
}

/* ===== 鳥プロフィール（分布/形態/生態 hero内統合）(v1.9.5) ===== */
.habataki-birds-single .hb-bird-hero .hb-profile-text {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e0e8db;
    grid-column: 1 / -1;
}
.habataki-birds-single .hb-bird-hero .hb-profile-text p {
    font-size: 14px;
    line-height: 1.85;
    color: #2a3128;
    margin: 0 0 10px 0;
}
.habataki-birds-single .hb-bird-hero .hb-profile-text p:last-child {
    margin-bottom: 0;
}
.habataki-birds-single .hb-bird-hero .hb-profile-text strong {
    display: inline-block;
    color: #003d1f;
    font-weight: 700;
    margin-right: 4px;
    min-width: 4em;
}
@media (max-width: 720px) {
    .habataki-birds-single .hb-bird-hero .hb-profile-text {
        margin-top: 14px;
        padding-top: 14px;
    }
}

/* ===== 分布マップ (v1.9.0) ===== */
.habataki-birds-single .hb-distribution-map {
    width: 100%;
    height: 420px;
    border-radius: 8px;
    border: 1px solid #e0e8db;
    margin-top: 8px;
    background: #cbe2f0;
}
.habataki-birds-single .hb-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: #6e7570;
}
.habataki-birds-single .hb-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}
.habataki-birds-single .hb-legend-range {
    background: rgba(84, 174, 6, 0.30);
    border: 1px solid #003d1f;
    border-radius: 3px;
}
.habataki-birds-single .hb-legend-park {
    background: #f9b42d;
    border: 2px solid #003d1f;
    border-radius: 50%;
}
.habataki-birds-single .hb-map-credit {
    margin-left: auto;
    font-size: 11px;
}
.habataki-birds-single .hb-map-credit a {
    color: #6e7570;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .habataki-birds-single .hb-distribution-map {
        height: 320px;
    }
    .habataki-birds-single .hb-bird-profile .hb-profile-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== ギャラリー & ライトボックス (v1.9.25) ===== */
.habataki-birds-single .hb-gallery {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 4px 0 12px; margin: -8px 0 18px;
    scrollbar-width: thin;
}
.habataki-birds-single .hb-gallery::-webkit-scrollbar { height: 6px; }
.habataki-birds-single .hb-gallery::-webkit-scrollbar-thumb { background: #c0bfb8; border-radius: 3px; }
.habataki-birds-single .hb-gallery-item {
    flex: 0 0 auto; width: 88px; height: 88px;
    border-radius: 8px; overflow: hidden;
    border: 2px solid transparent; cursor: pointer; background: #f0eee6;
    transition: transform .12s ease, border-color .12s ease;
}
.habataki-birds-single .hb-gallery-item:hover { transform: translateY(-2px); border-color: #6e9456; }
.habataki-birds-single .hb-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-lightbox { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; }
.hb-lightbox.open { display: flex; }
.hb-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.92); cursor: pointer; }
.hb-lightbox-figure { position: relative; max-width: 90vw; max-height: 90vh; margin: 0; z-index: 1; text-align: center; }
.hb-lightbox-img { max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: 4px; box-shadow: 0 4px 24px rgba(0,0,0,0.5); }
.hb-lightbox-caption { color: #fff; font-size: 13px; margin-top: 12px; text-align: center; }
.hb-lightbox-close, .hb-lightbox-prev, .hb-lightbox-next {
    position: absolute; background: rgba(255,255,255,0.15); color: #fff; border: none;
    font-size: 32px; line-height: 1; width: 48px; height: 48px;
    border-radius: 50%; cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center; transition: background .12s ease;
}
.hb-lightbox-close:hover, .hb-lightbox-prev:hover, .hb-lightbox-next:hover { background: rgba(255,255,255,0.3); }
.hb-lightbox-close { top: 16px; right: 16px; }
.hb-lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.hb-lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.hb-lightbox-counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 13px; z-index: 2; }
@media (max-width: 600px) {
    .habataki-birds-single .hb-gallery-item { width: 72px; height: 72px; }
    .hb-lightbox-close, .hb-lightbox-prev, .hb-lightbox-next { width: 40px; height: 40px; font-size: 24px; }
}

/* ===== カスタム凡例 (v1.9.28) ===== */
.habataki-birds-archive .hb-chart-legend {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: inherit;
}
.habataki-birds-archive .hb-cl-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 4px 0;
}
.habataki-birds-archive .hb-cl-title {
    font-size: 12px;
    color: var(--c-muted);
    font-weight: 600;
    margin-right: 4px;
}
.habataki-birds-archive .hb-cl-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 12px;
    color: var(--c-text);
    font-family: inherit;
    transition: background .12s, border-color .12s;
}
.habataki-birds-archive .hb-cl-item:hover {
    background: rgba(0,0,0,0.04);
    border-color: var(--c-border);
}
.habataki-birds-archive .hb-cl-item.is-hidden { opacity: 0.4; text-decoration: line-through; }
.habataki-birds-archive .hb-cl-swatch {
    display: inline-block;
    width: 16px;
    height: 6px;
    border-radius: 3px;
}
.habataki-birds-archive .hb-cl-swatch.hb-cl-line { height: 4px; }
.habataki-birds-archive .hb-cl-swatch.hb-cl-bar { height: 14px; }

/* ===== TOP3 ショートコード & オーバーレイ (v1.9.32) ===== */
.hb-top3 {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-family: inherit;
    color: #2a3128;
    max-width: 320px;
}
.hb-top3-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 10px;
    border-bottom: 1px solid #e4e1d6; padding-bottom: 8px;
}
.hb-top3-title { font-weight: 700; font-size: 14px; color: #006934; }
.hb-top3-date { font-size: 12px; color: #6e7570; }
.hb-top3-list { list-style: none; padding: 0; margin: 0; }
.hb-top3-item { margin: 0; padding: 0; }
.hb-top3-item a {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 4px;
    text-decoration: none; color: inherit;
    border-radius: 6px;
    transition: background .12s;
}
.hb-top3-item a:hover { background: #f7f5ef; }
.hb-top3-rank {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px; color: #fff;
    border-radius: 50%; flex-shrink: 0;
}
.hb-top3-rank-gold   { background: #c9a227; }
.hb-top3-rank-silver { background: #9aa3a8; }
.hb-top3-rank-bronze { background: #b06b3c; }
.hb-top3-rank-normal { background: #6e9456; }
.hb-top3-thumb {
    width: 32px; height: 32px; flex-shrink: 0;
    border-radius: 6px; overflow: hidden; background: #f0eee6;
}
.hb-top3-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-top3-name { flex: 1; font-weight: 600; font-size: 13px; }
.hb-top3-pct {
    font-size: 14px; font-weight: 800; color: #006934;
    flex-shrink: 0;
}
.hb-top3-more {
    display: block; text-align: right; margin-top: 8px;
    font-size: 11px; color: #6e9456; text-decoration: none;
}
.hb-top3-more:hover { text-decoration: underline; }

/* オーバーレイ（トップページ動画右下） */
.hb-overlay-box {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9000;
    pointer-events: auto;
}
.hb-overlay-box .hb-top3 {
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.92);
}
@media (max-width: 768px) {
    .hb-overlay-box { right: 8px; bottom: 8px; max-width: calc(100vw - 16px); }
    .hb-overlay-box .hb-top3 { max-width: 280px; padding: 10px 12px; }
}

/* ===== TOP3 横並びストリップ (v1.9.33) ===== */
.hb-strip {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 0;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
    font-family: inherit;
    color: #2a3128;
    max-width: calc(100vw - 32px);
}
.hb-strip-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 12px 0 6px;
    border-right: 1px solid #e4e1d6;
    margin-right: 6px;
    min-width: 0;
}
.hb-strip-label-date { font-size: 15px; color: #6e7570; line-height: 1.3; }
.hb-strip-label-title { font-size: 22px; font-weight: 700; color: #006934; line-height: 1.2; margin-top: 2px; }
.hb-strip-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 8px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e4e1d6;
    border-radius: 0;
    min-width: 110px;
    transition: transform .12s, box-shadow .12s;
}
.hb-strip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.hb-strip-rank {
    position: absolute; top: -8px; left: -8px;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; color: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    z-index: 2;
}
.hb-strip-rank-gold { background: #c9a227; }
.hb-strip-rank-silver { background: #9aa3a8; }
.hb-strip-rank-bronze { background: #b06b3c; }
.hb-strip-rank-normal { background: #6e9456; }
.hb-strip-thumb {
    width: 84px; height: 84px;
    border-radius: 0;
    background: #f0eee6 center/cover no-repeat;
    flex-shrink: 0;
}
.hb-strip-meta { display: flex; flex-direction: column; align-items: center; gap: 0; }
.hb-strip-name {
    font-size: 13px;
    color: #2a3128;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}
.hb-strip-pct {
    font-size: 22px;
    font-weight: 800;
    color: #006934;
    line-height: 1;
    margin-top: 4px;
}
@media (max-width: 768px) {
    .hb-strip { padding: 8px; gap: 5px; }
    .hb-strip-label-date { font-size: 12px; }
    .hb-strip-label-title { font-size: 17px; }
    .hb-strip-card { min-width: 78px; padding: 4px 8px 6px; }
    .hb-strip-thumb { width: 56px; height: 56px; }
    .hb-strip-name { font-size: 11px; }
    .hb-strip-pct { font-size: 16px; }
}


/* ===== オーバーレイ wrap + 一覧リンク (v1.9.41) ===== */
.hb-overlay-wrap {
    position: fixed;
    right: 0;
    bottom: 100px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: calc(100vw - 0px);
}
.hb-overlay-more {
    display: block;
    background: #006934;
    color: #fff;
    text-align: center;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: background .12s;
}
.hb-overlay-more:hover, .hb-overlay-more:visited { background: #00501f; color: #fff; }
@media (max-width: 768px) {
    .hb-overlay-wrap { bottom: 80px; right: 0; }
    .hb-overlay-more { font-size: 12px; padding: 6px 10px; }
}

/* ===== ページタイトル: テーマのヒーロー画像にタイトルを出させるためコンテンツでは非表示 (v1.9.58) ===== */
.habataki-birds-archive .hb-page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
