/* Salaryman Pilot — Level-up / 2026-11-13
   承認済みデザイン「Flight Journal」(2026-09-09) の配色・書体を引き継ぎ、その上に重ねる。 */

html{scroll-behavior:smooth;scroll-padding-top:calc(var(--sp-header,88px) + 16px)}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
::selection{background:#137b8a;color:#fff}

/* ボタン：日本語が別書体に落ちるのを防ぐ */
body .c-btn,body .wp-block-button__link{font-family:inherit}

/* 読了バー */
.sp-progress{position:fixed;top:0;left:0;width:100%;height:3px;background:#d29442;transform:scaleX(0);transform-origin:0 50%;z-index:9999;pointer-events:none}
body.admin-bar .sp-progress{top:var(--wp-admin--admin-bar--height,32px)}

/* 目次 */
.sp-toc{margin:2em 0 2.5em;border:1px solid var(--sp-line,#dde4e6);border-radius:10px;background:#fff;font-size:15px;line-height:1.8}
.sp-toc summary{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 20px;font-weight:700;color:var(--sp-ink,#142b3c);cursor:pointer;list-style:none}
.sp-toc summary::-webkit-details-marker{display:none}
.sp-toc summary::after{content:"";width:9px;height:9px;border-right:2px solid #546575;border-bottom:2px solid #546575;transform:rotate(45deg);transition:transform .18s ease;margin-right:4px}
.sp-toc details[open] summary::after{transform:rotate(-135deg)}
.sp-toc details[open] summary{border-bottom:1px solid var(--sp-line,#dde4e6)}
body .p-entry__content .sp-toc ol{list-style:none;margin:0;padding:10px 20px 14px;counter-reset:sp-toc}
body .p-entry__content .sp-toc li{margin:0;padding:0}
body .p-entry__content .sp-toc li.sp-toc__h2{counter-increment:sp-toc}
body .p-entry__content .sp-toc a{display:flex;gap:10px;align-items:baseline;min-height:44px;padding:9px 0;color:var(--sp-ink,#142b3c);text-decoration:none;border-bottom:1px dashed #e4eaec}
body .p-entry__content .sp-toc li:last-child a{border-bottom:0}
body .p-entry__content .sp-toc li.sp-toc__h2>a::before{content:counter(sp-toc,decimal-leading-zero);color:#137b8a;font-size:12px;font-weight:700;letter-spacing:.04em;flex:none}
body .p-entry__content .sp-toc li.sp-toc__h3>a{padding-left:32px;font-size:14px;color:#546575}
body .p-entry__content .sp-toc a:hover{color:#096b7e}

/* 押しやすさ：パンくず・カテゴリー */
body .p-breadcrumb__text{display:inline-flex;align-items:center;min-height:32px}
body .c-postTerms__link{display:inline-flex;align-items:center;min-height:32px;padding:3px 12px;border:1px solid var(--sp-line,#dde4e6);border-radius:999px;background:#fff;text-decoration:none}
body .c-postTerms__link:hover{border-color:#137b8a;color:#096b7e}

/* 記事本文 */
body .p-entry__content blockquote{margin:1.8em 0;padding:16px 20px;border-left:3px solid #9bb4ba;border-radius:0 6px 6px 0;background:#fff;color:#3c5260}
body .p-entry__content :not(pre)>code{padding:.15em .4em;border-radius:4px;background:#e8eff0;font-size:.92em}
body .p-entry__content pre{padding:18px 20px;border-radius:8px;background:#112a3c;color:#e6eef1;font-size:14px;line-height:1.7;overflow-x:auto;-webkit-overflow-scrolling:touch}
body .p-entry__content figcaption{margin-top:8px;color:var(--sp-muted,#546575);font-size:13px;line-height:1.7;text-align:center}
body .p-entry__content iframe{max-width:100%}
.sp-tableWrap{margin:1.8em 0;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--sp-line,#dde4e6);border-radius:8px;background:#fff}
.sp-tableWrap:focus-visible{outline:3px solid #d29442;outline-offset:3px}
body .p-entry__content .sp-tableWrap table{margin:0;border:0;min-width:100%;font-size:.92em;line-height:1.7}
body .p-entry__content .sp-tableWrap :is(th,td){padding:10px 14px;border:0;border-bottom:1px solid var(--sp-line,#dde4e6);border-right:1px solid var(--sp-line,#dde4e6)}
body .p-entry__content .sp-tableWrap :is(th,td):last-child{border-right:0}
body .p-entry__content .sp-tableWrap tr:last-child :is(th,td){border-bottom:0}
body .p-entry__content .sp-tableWrap th{background:#e8eff0;color:var(--sp-ink,#142b3c);text-align:left;white-space:nowrap}

/* 記事下：見出し・著者・前後 */
body .c-bottomSection__title{margin-bottom:1.2em;padding:0 0 .65em;border-bottom:1px solid #9bb4ba;color:var(--sp-ink,#142b3c);font-size:20px;line-height:1.7}
body .p-authorBox{padding:24px;border:1px solid var(--sp-line,#dde4e6);border-radius:10px;background:#fff}
body .p-authorBox__archivelink{border-radius:6px}
body .c-pnNav__link{min-height:56px;border-radius:8px}

/* 記事カード */
body .p-postList .p-postList__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
body .p-postList__excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
body .p-postList__link:focus-visible{outline:3px solid #d29442;outline-offset:-3px;border-radius:10px}
body .p-postList .c-postThumb__figure{background:#e8eff0}
@media(hover:none){body .p-postList__item:active{transform:scale(.985)}}
@media(prefers-reduced-motion:reduce){body .p-postList__item:active{transform:none}.sp-toc summary::after{transition:none}}

/* 「未分類」ラベルはJSで hidden を付ける */
[hidden].sp-hide{display:none!important}

/* 印刷 */
@media print{
.l-header,.l-footer,.l-sidebar,.p-drawer,.sp-progress,.sp-toc,ins.adsbygoogle,.p-entry__related,.p-comments,.c-pnNav,.p-fixBtnWrap{display:none!important}
body{background:#fff;padding-top:0!important}
.p-entry__content{font-size:11pt;line-height:1.8}
}
