.abz-wrap, .abz-single, .abz-progress, .abz-form, .abz-thanks, .abz-error,
.abz-card, .abz-table, .leaflet-popup-content {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, "Meiryo", sans-serif;
}
.abz-wrap, .abz-progress { width: 100%; max-width: 1100px; margin-left: auto; margin-right: auto; }
.abz-map { width: 100%; max-width: 1100px; margin-left: auto; margin-right: auto; }
/* テーマの本文カラム（645px）の中にある場合だけ、画面幅へ広げる */
.wp-block-post-content .abz-wrap, .wp-block-post-content .abz-progress, .wp-block-post-content .abz-map {
    width: min(1100px, 92vw) !important; max-width: none !important;
    margin-left: calc(50% - min(550px, 46vw)) !important; margin-right: 0 !important;
}
@media (min-width: 1200px) {
    .wp-block-post-content .abz-wrap, .wp-block-post-content .abz-progress, .wp-block-post-content .abz-map {
        width: min(1360px, 94vw) !important; margin-left: calc(50% - min(680px, 47vw)) !important;
    }
}
.abz-wide-main { max-width: min(1360px, 94vw); margin: 0 auto; padding: 24px 16px; }
.abz-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.abz-search { flex: 1 1 240px; padding: 10px 12px; font-size: 16px; }
.abz-pref { padding: 10px; font-size: 16px; }
.abz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.abz-card { display: block; text-decoration: none; color: inherit; border: 1px solid #ddd; border-radius: 10px; padding: 10px; background: #fff; }
.abz-card:hover { border-color: #999; }
.abz-thumb { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 6px; background: #f2f2f2; margin-bottom: 8px; }
.abz-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.abz-thumb-none { display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 12px; letter-spacing: .1em; }
.abz-num { display: block; font-size: 12px; color: #888; letter-spacing: .08em; }
.abz-name { display: block; font-weight: 700; line-height: 1.4; letter-spacing: .02em; }
.abz-reading { display: block; font-size: 12px; color: #666; }
.abz-pref-label { display: inline-block; margin-top: 6px; font-size: 11px; border: 1px solid #ccc; border-radius: 999px; padding: 1px 8px; color: #555; }
.abz-progress { max-width: none; }
.abz-progress-num { font-weight: 900; letter-spacing: .03em; font-size: clamp(18px, 4.5vw, 26px); line-height: 1.5; margin-bottom: 8px; }
.abz-progress-bar { height: 10px; background: #eee; border-radius: 999px; overflow: hidden; }
.abz-progress-bar span { display: block; height: 100%; background: #3f7d4e; }
.abz-progress-link { margin-top: 8px; font-size: 15px; }
.abz-single { max-width: min(840px, 94vw); margin: 0 auto; padding: 24px 16px; }
.abz-single-num { color: #888; letter-spacing: .1em; margin: 0; }
.abz-single-name { margin: 4px 0 0; font-size: clamp(24px, 6vw, 36px); font-weight: 900; letter-spacing: .03em; }
.abz-single-reading { color: #666; margin: 2px 0 16px; }
.abz-single-thumb { max-width: 520px; margin: 0 auto 20px; }
.abz-single-thumb img { width: 100%; height: auto; border-radius: 10px; display: block; }
.abz-movie { position: relative; aspect-ratio: 16 / 9; margin: 18px auto; max-width: 640px; }
.abz-movie iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.abz-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.abz-table th, .abz-table td { border-bottom: 1px solid #e5e5e5; padding: 8px 10px; text-align: left; vertical-align: top; }
.abz-table th { width: 110px; color: #555; font-weight: 600; white-space: nowrap; }
.abz-btn { display: inline-block; padding: 10px 18px; border-radius: 999px; background: #222; color: #fff !important; text-decoration: none; margin-right: 8px; }
.abz-btn-sub { background: #fff; color: #222 !important; border: 1px solid #222; }
.abz-form { max-width: 560px; }
.abz-form label { display: block; margin-bottom: 14px; font-weight: 600; }
.abz-form input[type="text"], .abz-form select, .abz-form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px; font-size: 16px; font-weight: 400; box-sizing: border-box; }
.abz-form input[type="file"] { display: block; margin-top: 6px; font-weight: 400; }
.abz-consent { font-weight: 400 !important; }
.abz-error { color: #b00020; border: 1px solid #b00020; border-radius: 8px; padding: 10px 12px; }
.abz-thanks { border: 1px solid #3f7d4e; color: #2c5a37; border-radius: 8px; padding: 14px; max-width: 560px; }
.abz-card-static { cursor: default; }
.abz-comment { display: block; margin-top: 6px; font-size: 13px; color: #444; line-height: 1.6; }
.abz-sale-label { display: inline-block; margin-top: 6px; margin-left: 4px; font-size: 11px; border-radius: 999px; padding: 1px 8px; background: #3f7d4e; color: #fff; }
.abz-btn-off { background: #999; cursor: default; }
@media (max-width: 640px) {
        .abz-grid { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 10px; }
    .abz-pref { flex: 1 1 140px; }
    .abz-table th { width: 84px; white-space: normal; }
    .abz-single { padding: 16px 12px; }
    .abz-btn { padding: 10px 14px; margin-bottom: 8px; }
}

.abz-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0 20px; }
.abz-mini-grid figure { margin: 0; }
.abz-mini-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; display: block; }
.abz-mini-grid figcaption { font-size: 12px; color: #555; margin-top: 4px; line-height: 1.5; }
.abz-section-title { font-size: 20px; font-weight: 900; letter-spacing: .03em; margin: 28px 0 6px; }

/* サイトタイトル（ブロックテーマのヘッダー）にも図鑑と同じフォントを適用 */
.wp-block-site-title, .wp-block-site-title a {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-weight: 900; letter-spacing: .04em;
}

.abz-map { height: 560px; border-radius: 10px; overflow: hidden; }
@media (max-width: 640px) {
    .abz-map { height: 68vh; }
}

.abz-footer { border-top: 1px solid #e5e2da; margin-top: 48px; padding: 28px 16px 36px; text-align: center; }
.abz-footer-title { font-weight: 900; font-size: 18px; margin: 0 0 6px; }
.abz-footer-title a { color: inherit; text-decoration: none; }
.abz-copy { font-size: 12px; color: #888; margin: 0; }



/* テーマ標準フッター（サンプルリンクの羅列）は表示しない。図鑑ページのフッターは .abz-footer を使用 */
footer.wp-block-template-part { display: none !important; }

/* 実際のDOMに合わせた最終指定：
   このWPではプラグインのテンプレートページで header ラッパーが付かないため、ナビ本体を直接隠す */
.wp-site-blocks .wp-block-navigation { display: none !important; }
.wp-site-blocks .wp-block-group.is-nowrap { flex-wrap: wrap !important; }
html, body { overflow-x: clip; }
