/* hp.renchin.me（renchin HP の管理画面と同じGitHub風。2026-10-30）。色はGitHubの配色（Primer）。
   文字 #1f2328・控えめな文字 #59636e・線 #d1d9e0・薄い地 #f6f8fa・のせた時 #eff2f5・選ばれている所 #e6eaef、
   リンク・ボタン 青 #0969da（押した時 #0860ca、薄い青 #ddf4ff）、今いるタブの下線 #fd8c73。読みやすさは brand_test.go で確かめる */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.rh{margin:0;background:#fff;color:#1f2328;font:16px/1.75 -apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Sans","Noto Sans JP",sans-serif}
.rh a{color:#0969da;text-decoration:none}
.rh a:hover{text-decoration:underline}
.rh a:focus-visible,.rh-nav-cb:focus-visible~.rh-header .rh-burger{outline:2px solid #0969da;outline-offset:2px;border-radius:6px}
.rh img{max-width:100%;height:auto}
.rh-wrap{max-width:1216px;margin:0 auto;padding:0 32px}
.rh-muted{color:#59636e}

/* 上の帯：ロゴ＋タブ（GitHubのリポジトリの上と同じ形） */
.rh-header{background:#f6f8fa;border-bottom:1px solid #d1d9e0}
.rh-header-in{display:flex;align-items:center;gap:12px;height:64px}
.rh-logo{display:block;padding:6px 4px;border-radius:6px}
.rh-logo img{display:block;height:20px;width:auto}
.rh-lang{margin-left:auto;white-space:nowrap;font-size:14px;color:#59636e!important}
.rh-lang:hover{color:#0969da!important}
.rh-badge{white-space:nowrap;font-size:12px;font-weight:500;line-height:18px;padding:0 7px;border:1px solid #d1d9e0;border-radius:2em;color:#59636e;background:#fff}
.rh-tabs ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.rh-tabs li{position:relative;padding-bottom:8px}
.rh-tabs a{display:block;padding:0 8px;line-height:30px;border-radius:6px;color:#1f2328;font-size:14px;white-space:nowrap}
.rh-tabs a:hover{background:#eff2f5;text-decoration:none}
.rh-tabs .current_page_item a{font-weight:600}
.rh-tabs .current_page_item::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:6px;background:#fd8c73}
.rh-nav-cb{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.rh-burger{display:none;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #d1d9e0;border-radius:6px;background:#fff;color:#59636e;cursor:pointer}
.rh-burger:hover{background:#eff2f5}
.rh-nav-shade{display:none}

/* 本文と横の欄（GitHubのリポジトリの「About」と同じ並び） */
.rh-cols{display:grid;grid-template-columns:minmax(0,1fr) 296px;gap:64px;padding-top:24px;padding-bottom:48px}
.rh-page{max-width:880px;padding-top:32px;padding-bottom:48px}
.rh-page-title{padding-bottom:12px;margin-bottom:24px;border-bottom:1px solid #d1d9e0}
.rh-crumbs{font-size:14px;color:#59636e;margin:0 0 8px}
.rh-sep{margin:0 6px;color:#818b98}
.rh-title{font-size:32px;font-weight:600;line-height:1.25;margin:0 0 8px}
.rh-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;color:#59636e;margin:0 0 12px}
.rh-label{display:inline-block;font-size:12px;font-weight:500;line-height:18px;padding:0 7px;border:1px solid #d1d9e0;border-radius:2em;color:#1f2328!important;background:#f6f8fa}
.rh-label:hover{background:#eff2f5;text-decoration:none!important}
.rh-topics{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}
.rh-topic{display:inline-block;font-size:12px;font-weight:500;line-height:22px;padding:0 10px;border-radius:2em;background:#ddf4ff;color:#0969da!important}
.rh-topic:hover{background:#0969da;color:#fff!important;text-decoration:none!important}
.rh-box{border:1px solid #d1d9e0;border-radius:6px;background:#fff;overflow:hidden}
.rh-box-head{padding:12px 16px;background:#f6f8fa;border-bottom:1px solid #d1d9e0;font-size:14px;font-weight:600}
.rh-box .rh-body{padding:24px 32px}
/* 記事の本文は枠なし（2026-11-02）。一覧などの .rh-box は枠ありのまま */
.rh-article{padding-top:8px}
.rh-eyecatch{display:block;width:100%;height:auto;margin:0 0 24px;border:1px solid #d1d9e0;border-radius:6px}
.rh-author{margin:40px 0 0;padding:20px 24px;border:1px solid #d1d9e0;border-radius:6px;background:#f6f8fa;font-size:14px;line-height:1.7}
.rh-author h2{margin:0 0 8px;font-size:14px;font-weight:600;color:#59636e}
.rh-author p{margin:0 0 6px}
.rh-author-name{font-size:16px;font-weight:600}
.rh-author-links{display:flex;flex-wrap:wrap;gap:4px 16px;margin:10px 0 0!important}
.rh-postnav{display:flex;justify-content:space-between;gap:12px;margin:40px 0 0;padding-top:16px;border-top:1px solid #d1d9e0}
.rh-btn{display:inline-block;max-width:100%;padding:5px 16px;border:1px solid #d1d9e0;border-radius:6px;background:#f6f8fa;color:#1f2328!important;font-size:14px;font-weight:500;line-height:20px}
.rh-btn:hover{background:#eff2f5;text-decoration:none!important}
.rh-btn-primary{background:#0969da;border-color:rgba(31,35,40,.15);color:#fff!important}
.rh-btn-primary:hover{background:#0860ca}

/* 記事の一覧（GitHubの Issues の一覧と同じ形） */
.rh-list{list-style:none;margin:0;padding:0}
.rh-row{padding:12px 16px;border-top:1px solid #d1d9e0}
.rh-row:first-child{border-top:0}
.rh-row:hover{background:#f6f8fa}
.rh-row-title{font-size:16px;font-weight:600;color:#1f2328!important}
.rh-row-title:hover{color:#0969da!important}
.rh-row-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:2px;font-size:12px;color:#59636e}
.rh-empty{color:#59636e}

/* ページ送り（書き出しが作る .page-numbers をGitHub風に） */
.weluka-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin:24px 0 0}
.weluka-pagination .page-numbers{min-width:32px;padding:5px 10px;border:1px solid transparent;border-radius:6px;color:#1f2328;text-align:center;font-size:14px;line-height:20px}
.weluka-pagination a.page-numbers:hover{border-color:#d1d9e0;text-decoration:none}
.weluka-pagination .current{background:#0969da;color:#fff}

/* 横の欄 */
.rh-side-sec{padding:0 0 16px;margin:0 0 16px;border-bottom:1px solid #d1d9e0;font-size:14px}
.rh-side-sec:last-child{border-bottom:0}
.rh-side-sec h2{font-size:16px;font-weight:600;margin:0 0 8px}
.rh-side-sec p{margin:0 0 8px}
.rh-side-list{list-style:none;margin:0;padding:0}
.rh-side-list li{margin:0 0 8px;line-height:1.5}
.rh-side-list time{display:block;font-size:12px;color:#59636e}
.rh-count{display:inline-block;min-width:20px;padding:0 6px;border-radius:2em;background:#e6eaef;color:#1f2328;font-size:12px;font-weight:500;line-height:18px;text-align:center}

/* 本文（GitHubの README と同じ組み方） */
.rh-body{font-size:16px;line-height:1.75;word-wrap:break-word}
.rh-body>:first-child{margin-top:0}
.rh-body h1,.rh-body h2,.rh-body h3,.rh-body h4{font-weight:600;line-height:1.25;margin:24px 0 16px}
.rh-body h1{font-size:2em;padding-bottom:.3em;border-bottom:1px solid #d1d9e0}
.rh-body h2{font-size:1.5em;padding-bottom:.3em;border-bottom:1px solid #d1d9e0}
.rh-body h3{font-size:1.25em}
.rh-body h4{font-size:1em}
.rh-body p,.rh-body ul,.rh-body ol,.rh-body blockquote,.rh-body table,.rh-body pre{margin:0 0 16px}
.rh-body ul,.rh-body ol{padding-left:2em}
.rh-body blockquote{padding:0 1em;color:#59636e;border-left:.25em solid #d1d9e0}
.rh-body code{padding:.2em .4em;font-size:85%;background:#eff2f5;border-radius:6px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.rh-body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;background:#f6f8fa;border-radius:6px}
.rh-body pre code{padding:0;background:transparent}
.rh-body table{border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto}
.rh-body th,.rh-body td{padding:6px 13px;border:1px solid #d1d9e0}
.rh-body th{font-weight:600;background:#f6f8fa}
.rh-body hr{height:.25em;margin:24px 0;background:#d1d9e0;border:0}
.rh-body img{border-radius:6px}

/* トップ（2026-10-30）：最初の見出し・説明・ボタン、いまの進み具合、新着の記事 */
.rh-front{max-width:1012px;padding-top:48px;padding-bottom:48px}
.rh-hero{padding:0 0 32px;margin:0 0 32px;border-bottom:1px solid #d1d9e0}
.rh-body .rh-hero h1{font-size:40px;line-height:1.3;letter-spacing:-.01em;margin:0 0 16px;padding:0;border:0}
.rh-hero-lead{font-size:20px;color:#59636e;margin:0 0 16px}
.rh-body .rh-points{list-style:none;padding:0;margin:0 0 24px}
.rh-points li{position:relative;padding-left:28px;margin:0 0 8px}
.rh-points li::before{content:"";position:absolute;left:4px;top:.55em;width:12px;height:12px;border-radius:50%;border:2px solid #0969da}
.rh-hero-btns{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.rh-hero-btns .rh-btn{padding:9px 20px;font-size:16px}
.rh-body .rh-progress{list-style:none;padding:0;border:1px solid #d1d9e0;border-radius:6px;overflow:hidden}
.rh-progress li{display:flex;gap:12px;align-items:flex-start;padding:12px 16px;border-top:1px solid #d1d9e0;margin:0}
.rh-progress li:first-child{border-top:0}
.rh-state{flex:none;display:inline-block;min-width:4.5em;text-align:center;font-size:12px;font-weight:600;line-height:22px;padding:0 10px;border-radius:2em;border:1px solid transparent}
.rh-done{background:#dafbe1;color:#116329;border-color:rgba(74,194,107,.4)}
.rh-trial{background:#fff8c5;color:#7d4e00;border-color:rgba(212,167,44,.4)}
.rh-todo{background:#f6f8fa;color:#59636e;border-color:#d1d9e0}
.rh-front-new{margin:32px 0 0}
.rh-front-note{font-size:14px;margin:16px 0 0}

/* 足元（GitHubの足元と同じ、控えめな形） */
.rh-footer{border-top:1px solid #d1d9e0;margin-top:24px;font-size:12px;color:#59636e}
.rh-footer-in{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding-top:32px;padding-bottom:40px}
.rh-footer-mark{opacity:.6}
.rh-footer-nav{display:flex;gap:16px;margin-left:auto}
.rh-footer-nav a{color:#59636e!important}
.rh-footer-nav a:hover{color:#0969da!important}

/* スマホ：タブは三本線（バーガーメニュー）で開く。JSなし */
@media (max-width:768px){
.rh-wrap{padding:0 16px}
.rh-header{position:relative}
.rh-header-in{height:56px}
.rh-burger{display:inline-flex}
.rh-tabs{display:none;position:absolute;left:0;right:0;top:56px;z-index:60;background:#fff;border-bottom:1px solid #d1d9e0;box-shadow:0 8px 24px rgba(140,149,159,.2);padding:8px 16px}
.rh-tabs ul{flex-direction:column;gap:2px}
.rh-tabs li{padding:0}
.rh-tabs a{padding:8px;line-height:1.5;font-size:16px}
.rh-tabs .current_page_item a{background:#e6eaef}
.rh-tabs .current_page_item::after{left:-8px;right:auto;top:8px;bottom:8px;width:4px;height:auto;background:#0969da}
.rh-nav-cb:checked~.rh-header .rh-tabs{display:block}
.rh-nav-cb:checked~.rh-nav-shade{display:block;position:fixed;inset:0;z-index:50;background:rgba(31,35,40,.4)}
.rh-header{z-index:55}
.rh-cols{grid-template-columns:minmax(0,1fr);padding-top:16px}
.rh-title{font-size:24px}
.rh-box .rh-body{padding:16px}
.rh-footer-nav{margin-left:0}
.rh-front{padding-top:24px}
.rh-body .rh-hero h1{font-size:28px}
.rh-hero-lead{font-size:17px}
.rh-progress li{flex-direction:column;gap:4px}
/* 本文の表（2026-11-09）：左右の余分な余白（figure の初期値 40px）を外す。4列以上の表は、列の幅を保って横にずらして読む */
.rh-body figure.wp-block-table{margin:0 0 16px}
.rh-body table:has(tr>:nth-child(4)) :is(th,td){min-width:8em}
.rh-body table:has(tr>:nth-child(4)) :is(th,td):first-child{min-width:6em}
}
