@charset "UTF-8";
/* Lobby文庫 — note.com にならった読みやすいレイアウト */
:root{--ink:#08131a;--text:#1f2a30;--navy:#0c2933;--teal:#0a7c82;--teal-soft:#e6f4f4;--mint:#a3e7d6;--paper:#fff;--bg:#f7f8f8;--muted:#6b7a80;--line:#e6e9ea;--soft:#f2f5f5;--sans:"Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans","BIZ UDPGothic",Meiryo,"Noto Sans JP",sans-serif;--serif:var(--sans);--latin:var(--sans);--radius:12px;--max:1240px;--body-w:680px;--toc-w:200px}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:5rem}
body{margin:0;background:var(--paper);color:var(--text);font-family:var(--sans);font-size:16px;line-height:1.8;-webkit-font-smoothing:antialiased;overflow-wrap:anywhere;font-feature-settings:"palt"}
a{color:inherit;text-decoration:none}
button,a{-webkit-tap-highlight-color:transparent}
a:focus-visible,summary:focus-visible{outline:3px solid var(--teal);outline-offset:4px;border-radius:4px}
svg{width:1.25rem;height:1.25rem;flex-shrink:0}
img{display:block;width:100%;max-width:100%;height:auto}
h1,h2,h3,p,figure{margin:0}
ol,ul{padding-left:1.5rem}
small{font-weight:400}
.skip-link{position:fixed;z-index:100;left:1rem;top:-6rem;background:var(--navy);color:#fff;padding:.8rem 1.2rem;border-radius:8px}
.skip-link:focus{top:1rem}
.eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.14em;line-height:1.6;display:block}
/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:saturate(180%) blur(8px);border-bottom:1px solid var(--line)}
.header-inner{max-width:var(--max);padding:.85rem 1.5rem;margin:auto;display:flex;align-items:center;gap:1.5rem}
.brand{display:inline-flex;align-items:center;gap:.45rem;flex-shrink:0;line-height:1;color:var(--ink)}
.brand-icon{display:flex;align-items:center;color:var(--teal)}
.brand-icon svg{width:1.5rem;height:1.5rem}
.brand-lobby{font-size:1.55rem;font-weight:800;letter-spacing:-.04em}
.brand-bunko{font-size:1.4rem;font-weight:800;letter-spacing:.02em}
.header-tagline{display:flex;flex-direction:column;padding-left:1.25rem;border-left:1px solid var(--line);font-size:.95rem;font-weight:700;color:var(--ink);line-height:1.35}
.header-tagline small{font-size:.72rem;color:var(--muted);font-weight:500;margin-top:.15rem}
.header-inner nav{display:flex;align-items:center;gap:.4rem;margin-left:auto;font-size:.875rem;font-weight:700;flex-shrink:0}
.header-inner nav a{padding:.5rem .9rem;border-radius:999px;transition:background .15s,color .15s}
.header-inner nav a:hover{background:var(--soft);color:var(--teal)}
/* Home layout: main + sidebar (note.com style) */
.layout{max-width:var(--max);margin:auto;padding:1.5rem 1.5rem 4rem;display:grid;grid-template-columns:220px minmax(0,1fr);gap:2.5rem;align-items:start}
.layout>.main{order:2;min-width:0}
.layout>.sidebar{order:1;position:sticky;top:4.5rem}
.side-nav{display:flex;flex-direction:column;gap:.15rem;margin-bottom:1.5rem}
.side-nav a,.side-categories a{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.55rem .75rem;border-radius:8px;font-size:.95rem;font-weight:700;color:var(--ink);transition:background .15s}
.side-nav a:hover,.side-categories a:hover{background:var(--soft)}
.side-nav a.active,.side-categories a.active{background:var(--teal-soft);color:var(--teal)}
.side-section{margin-bottom:1.75rem;padding-top:1.25rem;border-top:1px solid var(--line)}
.side-section h2{display:flex;align-items:center;gap:.4rem;font-size:1.05rem;font-weight:800;margin:0 .75rem .6rem;color:var(--ink)}
.side-section h2 svg{width:1.1rem;height:1.1rem;color:#e0574b}
.side-ranking{list-style:none;padding:0;margin:0}
.side-ranking a{display:flex;gap:.7rem;padding:.5rem .75rem;border-radius:8px;font-size:.9rem;line-height:1.55;color:var(--text)}
.side-ranking a:hover{background:var(--soft)}
.side-rank{font-weight:800;color:var(--muted);min-width:1.1rem;font-variant-numeric:tabular-nums}
.side-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.side-categories{list-style:none;padding:0;margin:0}
.side-categories a{font-weight:500;font-size:.92rem}
.side-count{font-size:.75rem;color:var(--muted);font-weight:600}
.side-empty,.empty{font-size:.9rem;color:var(--muted);padding:.5rem .75rem}
/* Sections + cards */
.section{margin-bottom:3rem}
.section-title{display:flex;align-items:baseline;gap:.75rem;font-size:1.35rem;font-weight:800;color:var(--ink);margin-bottom:1.1rem;letter-spacing:.01em}
.section-title small{font-size:.8rem;color:var(--muted);font-weight:500}
.card-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);gap:1.25rem;overflow-x:auto;padding-bottom:.6rem;scroll-snap-type:x proximity;scrollbar-width:thin}
.card-row>.card{scroll-snap-align:start}
.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.6rem 1.25rem}
.card{min-width:0;position:relative}
.card>a{display:block;color:inherit}
.thumb{position:relative;aspect-ratio:1.91;overflow:hidden;border-radius:var(--radius);background:var(--soft);border:1px solid var(--line)}
.thumb>img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.card:hover .thumb>img,.keyword-card:hover .thumb>img,.trend-card:hover .thumb>img{transform:scale(1.03)}
.thumb-empty{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0b2937,#197783);color:var(--mint);font-size:.75rem;letter-spacing:.14em;font-weight:700}
.rank{position:absolute;left:.6rem;top:.6rem;background:var(--ink);color:#fff;font-weight:800;font-size:.8rem;width:1.6rem;height:1.6rem;border-radius:6px;display:flex;align-items:center;justify-content:center}
.card h3{font-size:1rem;font-weight:700;line-height:1.55;margin:.75rem 0 .45rem;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .15s}
.card:hover h3,.trend-card:hover h3,.keyword-card:hover h3{color:var(--teal)}
.card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .75rem;font-size:.78rem;color:var(--muted);line-height:1.6}
.card-category{color:var(--teal);font-weight:700}
.views{display:inline-flex;align-items:center;gap:.25rem;font-variant-numeric:tabular-nums}
.views svg{width:.95rem;height:.95rem}
/* Keyword (category) cards */
.keyword-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1.25rem}
.keyword-card{display:block;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--paper);box-shadow:0 1px 3px rgba(0,0,0,.04);transition:box-shadow .15s,transform .15s}
.keyword-card:hover{box-shadow:0 6px 18px rgba(0,0,0,.08);transform:translateY(-1px)}
.keyword-thumb{aspect-ratio:1.91;overflow:hidden;background:var(--soft)}
.keyword-thumb>img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.keyword-body{padding:.9rem 1rem 1rem}
.keyword-body h3{font-size:1rem;font-weight:800;line-height:1.5;color:var(--ink)}
.keyword-count{display:inline-flex;align-items:center;font-size:.75rem;color:var(--muted);margin:.25rem 0 .4rem;font-weight:600}
.keyword-body p{font-size:.8rem;color:var(--muted);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Trending cards */
.trend-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.trend-card>a{display:grid;grid-template-columns:auto minmax(0,1fr) 120px;gap:.9rem;align-items:start;padding:1rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);transition:box-shadow .15s}
.trend-card>a:hover{box-shadow:0 6px 18px rgba(0,0,0,.08)}
.trend-rank{background:var(--ink);color:#fff;font-weight:800;font-size:.85rem;width:1.7rem;height:1.7rem;border-radius:6px;display:flex;align-items:center;justify-content:center}
.trend-body{min-width:0}
.trend-body h3{font-size:1rem;font-weight:700;line-height:1.5;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.trend-body p{font-size:.8rem;color:var(--muted);line-height:1.6;margin:.35rem 0 .5rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.trend-thumb{aspect-ratio:1.91;border-radius:8px;overflow:hidden;background:var(--soft)}
.trend-thumb>img{width:100%;height:100%;object-fit:cover}
/* Footer */
.site-footer{background:var(--navy);color:#fff;padding:3rem 1.5rem 1.5rem}
.footer-inner,.footer-bottom{max-width:var(--max);margin:auto}
.footer-inner{display:grid;grid-template-columns:1fr 1fr;gap:3rem;padding-bottom:2.5rem}
.site-footer .brand{color:#fff}
.site-footer .brand-icon{color:var(--mint)}
.footer-main>p{font-size:1rem;font-weight:700;margin-top:1rem;color:#d2e2e7}
.footer-about .eyebrow{color:var(--mint)}
.footer-about p{font-size:.9rem;line-height:1.95;color:#d2e2e7;margin:.7rem 0 1rem;max-width:37rem}
.text-link{display:inline-flex;align-items:center;gap:1rem;padding:.4rem 0;font-size:.875rem;border-bottom:1px solid currentColor;font-weight:700}
.text-link svg{width:1rem}
.text-link:hover{color:var(--teal)}
.site-footer .text-link:hover{color:var(--mint)}
.footer-bottom{display:flex;justify-content:space-between;gap:1rem;border-top:1px solid #37505a;padding-top:1.2rem;font-size:.75rem;line-height:1.9;color:#b6ccd2;flex-wrap:wrap}
.footer-bottom a:hover{color:white}
.mobile-only{display:none}
/* Article pages */
.preview-banner{background:var(--navy);color:#fff;padding:.7rem 1rem;text-align:center;font-size:.85rem;letter-spacing:.06em}
.detail-main{padding:0 1.5rem;max-width:var(--max);margin:auto}
.detail-top{max-width:var(--body-w);margin:auto}
.breadcrumb{display:flex;align-items:center;gap:.6rem;font-size:.8rem;color:var(--muted);padding:1.25rem 0}
.breadcrumb a:hover{color:var(--teal);text-decoration:underline}
.article-heading{margin:.5rem 0 1.5rem}
.story-category{display:inline-block;font-size:.8rem;font-weight:700;color:var(--teal);line-height:1.6}
.article-heading>.story-category:hover{text-decoration:underline}
.article-heading h1{font-size:clamp(1.6rem,3vw,2rem);font-weight:800;line-height:1.55;letter-spacing:.005em;margin:.6rem 0 .9rem;color:var(--ink);text-wrap:pretty}
.article-summary{font-size:.98rem;line-height:1.85;color:var(--muted)}
.byline{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;margin-top:1.1rem;font-size:.85rem;font-weight:600}
.byline>.article-meta{flex-basis:100%;margin-top:.15rem;padding-left:2.7rem}
.author-mark{background:var(--teal-soft);color:var(--teal);width:2.1rem;height:2.1rem;border-radius:50%;display:flex;align-items:center;justify-content:center}
.author-mark svg{width:1.05rem;height:1.05rem}
.article-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;color:var(--muted);font-size:.78rem;line-height:1.7;font-variant-numeric:tabular-nums;font-weight:500}
.meta-separator{width:1px;height:.7rem;background:#c4cfd3}
.article-hero{max-width:var(--body-w);margin:0 auto}
.article-hero>img,.article-hero>.hero-empty{aspect-ratio:1.91;width:100%;object-fit:cover;object-position:50% 45%;border-radius:var(--radius)}
.article-hero>.hero-empty{font-size:1rem}
.article-hero figcaption{font-size:.75rem;line-height:1.6;color:var(--muted);padding:.5rem 0 0;text-align:right}
.reading-layout{position:relative;max-width:var(--body-w);margin:2rem auto 0}
.reading-sidebar{position:absolute;top:0;bottom:0;left:calc(-1 * (var(--toc-w) + 4rem));width:var(--toc-w)}
.reading-sidebar .sidebar-inner{position:sticky;top:5rem}
.reading-sidebar .back-to-index{display:inline-block}
.contents>.eyebrow{font-size:.7rem;color:var(--teal)}
.contents>p{font-size:.85rem;margin-top:.3rem;font-weight:700}
.contents ol{list-style:none;padding:0;margin:.9rem 0 1.5rem}
.contents li{border-top:1px solid var(--line)}
.contents li:last-child{border-bottom:1px solid var(--line)}
.contents li a{display:flex;align-items:flex-start;gap:.55rem;font-size:.8rem;line-height:1.65;padding:.65rem 0;color:var(--muted)}
.contents li a:hover{color:var(--teal)}
.contents li a span{font-size:.75rem;color:var(--teal);font-weight:700;flex-shrink:0;padding-top:.1rem}
.back-to-index{font-size:.8rem;font-weight:700}
.back-to-index:hover{color:var(--teal)}
.article-body{font-size:1rem;line-height:1.95;min-width:0;letter-spacing:.01em}
.article-body>p,.article-body .lead{margin:0 0 1.4rem}
.article-intro,.lead{font-size:1.02rem;line-height:1.95;font-weight:500}
.takeaway{background:var(--soft);border-radius:var(--radius);padding:1.25rem 1.4rem 1.1rem;margin:1.6rem 0 2rem}
.takeaway .eyebrow{color:var(--teal);font-size:.68rem}
.takeaway h2{font-size:1rem;line-height:1.7;margin:.2rem 0 .6rem;font-weight:800}
.takeaway ul{margin:0;padding-left:1.2rem}
.takeaway li{font-size:.95rem;line-height:1.85;margin:.3rem 0}
.takeaway li::marker{color:var(--teal)}
.mobile-toc{display:none}
.body-section{margin:2.4rem 0}
.body-section h2{font-size:1.3rem;line-height:1.6;font-weight:800;color:var(--ink);padding-bottom:.6rem;margin-bottom:1rem;border-bottom:1px solid var(--line);scroll-margin-top:5rem}
.body-section h3{font-size:1.08rem;line-height:1.7;font-weight:800;margin:1.6rem 0 .6rem}
.body-section p{margin:1rem 0;line-height:1.95}
.body-section a{color:var(--teal);text-decoration:underline;text-underline-offset:.2em;word-break:normal}
.body-section li{margin:.6rem 0}
.body-section li::marker{color:var(--teal);font-weight:700}
.body-section blockquote{margin:1.5rem 0;padding:1.1rem 1.3rem;background:var(--soft);border-left:3px solid var(--teal);border-radius:0 8px 8px 0}
.body-section blockquote p{margin:0;font-size:1rem;line-height:1.9}
.body-section blockquote footer{font-size:.75rem;color:var(--muted);margin-top:.6rem}
.section-figure{margin:1.2rem 0 1.6rem}.section-figure img{display:block;width:100%;height:auto;border-radius:var(--radius);background:var(--soft)}.section-figure figcaption{font-size:.8rem;color:var(--muted);margin-top:.55rem;line-height:1.6}
.table-scroll{width:100%;margin:1.2rem 0;overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:.9rem;line-height:1.75;table-layout:fixed}
th,td{padding:.75rem .7rem;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
thead th{background:var(--navy);color:white;font-weight:700;border:0}
thead th:first-child{width:29%}
tbody th{font-weight:700;background:var(--soft)}
.editorial-note{border-top:1px solid var(--line);padding-top:1.25rem;margin-top:2.5rem;color:var(--muted);font-size:.8rem;line-height:1.9}
.editorial-note>span{display:block;font-size:.85rem;font-weight:800;color:var(--ink);margin-bottom:.4rem}
.editorial-note p+p{margin-top:.4rem}
.article-end{padding:2.5rem 0 1.5rem;text-align:center}
.article-end>span{font-size:.75rem;letter-spacing:.15em;color:var(--teal);font-weight:700}
.article-end>p{font-size:1.05rem;line-height:1.9;margin:.5rem 0 .9rem;font-weight:600}
.next-story{max-width:var(--body-w);margin:1.5rem auto 3rem;border-top:1px solid var(--line);padding-top:1.4rem}
.next-story>div{margin-bottom:.6rem}
.next-story>div .eyebrow{color:var(--teal)}
.next-story>div p{font-size:.85rem;margin-top:.3rem;font-weight:700}
.next-story>a{position:relative;display:block;padding-right:3.5rem}
.next-story h2{font-size:1.2rem;line-height:1.6;font-weight:800;margin-top:.3rem;color:var(--ink)}
.next-story a:hover h2{color:var(--teal)}
.circle-arrow{display:flex;align-items:center;justify-content:center;border:1px solid var(--line);width:2.2rem;height:2.2rem;border-radius:50%;flex-shrink:0;transition:background .2s,color .2s}
.circle-arrow svg{width:1.1rem;height:1.1rem}
a:hover .circle-arrow{background:var(--teal);border-color:var(--teal);color:white}
.next-story .circle-arrow{position:absolute;right:0;top:50%;transform:translateY(-50%)}
.related{max-width:var(--body-w);margin:0 auto 4rem}
.not-found{max-width:720px;margin:auto;padding:5rem 1.5rem 7rem}
.not-found>.eyebrow{color:var(--teal)}
.not-found h1{font-size:clamp(1.8rem,4vw,2.6rem);line-height:1.6;margin:.8rem 0;font-weight:800}
.not-found p{font-size:1rem;color:var(--muted);margin-bottom:1.5rem}
/* Responsive */
@media(max-width:1180px){.reading-sidebar{display:none}.mobile-toc{display:block;border:1px solid var(--line);border-radius:var(--radius);padding:0 1rem;margin:1.25rem 0 1.75rem;background:var(--paper)}.mobile-toc summary{padding:.85rem 0;cursor:pointer;font-size:.9rem;font-weight:700}.mobile-toc ol{list-style:none;padding:0;margin:0 0 .6rem}.mobile-toc li{border-top:1px solid var(--line)}.mobile-toc a{display:flex;gap:.6rem;padding:.65rem 0;font-size:.85rem}.mobile-toc a>span{color:var(--teal);font-weight:700}}
@media(max-width:1000px){.layout{grid-template-columns:200px minmax(0,1fr);gap:1.75rem}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.trend-grid{grid-template-columns:1fr}.header-tagline small{display:none}}
@media(max-width:850px){.layout{display:block;padding:1.25rem 1.25rem 3rem}.layout>.sidebar{position:static;margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--line)}.side-nav{flex-direction:row;flex-wrap:wrap}.footer-inner{grid-template-columns:1fr;gap:2rem}}
@media(max-width:620px){.header-inner{padding:.7rem 1rem;gap:.75rem}.header-tagline{display:none}.brand-lobby{font-size:1.35rem}.brand-bunko{font-size:1.2rem}.header-inner nav{font-size:.8rem}.header-inner nav a{padding:.4rem .6rem}.layout{padding:1rem 1rem 2.5rem}.section{margin-bottom:2.25rem}.section-title{font-size:1.15rem}.card-row{grid-auto-columns:minmax(200px,72%)}.card-grid{grid-template-columns:1fr;gap:1.4rem}.keyword-row{grid-template-columns:1fr 1fr;gap:.75rem}.keyword-body{padding:.7rem .75rem .8rem}.keyword-body p{display:none}.trend-card>a{grid-template-columns:auto minmax(0,1fr) 96px;padding:.8rem;gap:.7rem}.detail-main{padding:0 1rem}.breadcrumb{padding:.9rem 0;font-size:.75rem}.article-heading h1{font-size:1.45rem;line-height:1.55}.article-summary{font-size:.92rem}.byline>.article-meta{padding-left:0}.article-hero>img,.article-hero>.hero-empty{border-radius:8px}.article-body{font-size:.97rem;line-height:1.95}.body-section{margin:2rem 0}.body-section h2{font-size:1.15rem}.takeaway{padding:1rem 1rem .8rem}.mobile-only{display:block}.site-footer{padding:2.5rem 1rem 1.2rem}.not-found{padding:3.5rem 1rem 5rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
@media print{.site-header,.site-footer,.reading-sidebar,.next-story,.related,.article-end,.skip-link,.breadcrumb,.mobile-toc{display:none}.detail-main{max-width:none;padding:0}.reading-layout{display:block;margin-top:1rem}.article-body{font-size:11pt}.body-section{break-inside:avoid}a{text-decoration:underline}}
