@charset "UTF-8";
/*
Theme Name: Coffee Laboratory 2026
Theme URI: https://coffee.laboratory.ne.jp/
Author: EIN / Coffee Laboratory
Author URI: https://coffee.laboratory.ne.jp/
Description: Coffee Laboratory専用の完全独立WordPressテーマ。研究記録・比較・実験記事のための編集誌面型テーマ。
Version: 0.7.27
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: coffee-laboratory-2026
*/

:root{
  --clab-bg:#eeebe3;
  --clab-paper:#fbfaf6;
  --clab-paper-2:#f4f1e9;
  --clab-ink:#151b19;
  --clab-muted:#68706c;
  --clab-line:#b9b5aa;
  --clab-line-soft:#d8d3c8;
  --clab-green:#0b6f61;
  --clab-green-2:#075247;
  --clab-accent:#cf6537;
  --clab-dark:#101614;
  --clab-warning:#a71f1f;
  --clab-warning-bg:#fff0ec;
  --clab-max:1240px;
  --clab-read:760px;
  --clab-shadow:0 22px 60px rgba(20,27,25,.10);
  --clab-shadow-soft:0 12px 34px rgba(20,27,25,.07);
  --clab-lime:#c3e95c;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--clab-bg);color:var(--clab-ink);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic","YuGothic","Noto Sans JP",Meiryo,sans-serif;font-size:16px;line-height:1.85;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto} a{color:var(--clab-green);text-underline-offset:.18em} a:hover{color:var(--clab-accent)} button,input,textarea,select{font:inherit}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.clab-shell{width:min(calc(100% - 40px),var(--clab-max));margin-inline:auto}.clab-reading{width:min(calc(100% - 40px),var(--clab-read));margin-inline:auto}

/* Masthead */
.clab-site-header{background:var(--clab-paper);border-bottom:1px solid var(--clab-line);position:relative;z-index:50}
.clab-topline{border-bottom:1px solid var(--clab-line-soft);font-size:11px;letter-spacing:.12em;text-transform:uppercase}
.clab-topline-inner{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--clab-muted)}
.clab-topline a{color:var(--clab-muted);text-decoration:none}.clab-topline a:hover{color:var(--clab-ink)}
.clab-masthead{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;min-height:110px}
.clab-masthead-note{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;line-height:1.6;color:var(--clab-muted);letter-spacing:.05em}
.clab-brand{display:block;color:var(--clab-ink);text-align:center;text-decoration:none}.clab-brand:hover{color:var(--clab-ink)}
.clab-brand strong{display:block;font-family:Georgia,"Times New Roman",serif;font-size:clamp(29px,4vw,50px);font-weight:500;letter-spacing:.025em;line-height:1}
.clab-brand small{display:block;margin-top:10px;font-size:9px;font-weight:800;letter-spacing:.33em;color:var(--clab-green)}
.clab-masthead-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px}.clab-search-link,.clab-menu-toggle{border:1px solid var(--clab-ink);background:transparent;color:var(--clab-ink);min-height:38px;padding:8px 13px;text-decoration:none;font-size:11px;font-weight:800;letter-spacing:.09em;cursor:pointer}.clab-menu-toggle{display:none}
.clab-nav-wrap{border-top:1px solid var(--clab-line);background:var(--clab-dark)}.clab-nav{min-height:48px;display:flex;align-items:center;justify-content:center}.clab-nav ul{display:flex;align-items:center;justify-content:center;gap:0;list-style:none;margin:0;padding:0}.clab-nav li{border-left:1px solid rgba(255,255,255,.12)}.clab-nav li:last-child{border-right:1px solid rgba(255,255,255,.12)}.clab-nav a{display:block;padding:13px 20px;color:#f7f4ec;text-decoration:none;font-size:12px;font-weight:700;letter-spacing:.04em}.clab-nav a:hover,.clab-nav .current-menu-item>a,.clab-nav .current_page_item>a{background:var(--clab-green)}

/* Breadcrumb */
.clab-main{min-height:60vh}.clab-breadcrumb{width:min(calc(100% - 40px),var(--clab-max));margin:14px auto 0;color:var(--clab-muted);font-size:11px}.clab-breadcrumb a{color:var(--clab-muted);text-decoration:none}.clab-breadcrumb span{margin:0 7px}

/* Home editorial cover */
.clab-home{padding-bottom:80px}.clab-cover{border-bottom:1px solid var(--clab-line);background:var(--clab-paper)}
.clab-cover-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);min-height:560px}
.clab-cover-main{position:relative;padding:clamp(55px,8vw,105px) clamp(24px,6vw,72px) 68px 0;display:flex;flex-direction:column;justify-content:flex-end;border-right:1px solid var(--clab-line)}
.clab-cover-main:before{content:"LAB / 2026";position:absolute;top:34px;left:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;letter-spacing:.16em;color:var(--clab-green)}
.clab-cover-main h1{max-width:900px;margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(52px,8vw,104px);font-weight:500;line-height:.98;letter-spacing:-.04em}.clab-cover-main h1 span{display:block;color:var(--clab-green)}
.clab-cover-lead{max-width:760px;margin:32px 0 0;font-size:clamp(16px,2vw,21px);line-height:1.95}.clab-cover-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:32px}
.clab-btn{display:inline-flex;align-items:center;justify-content:center;min-height:45px;padding:0 17px;border:1px solid var(--clab-ink);background:var(--clab-ink);color:#fff!important;text-decoration:none!important;font-size:12px;font-weight:800;letter-spacing:.05em}.clab-btn--paper{background:transparent;color:var(--clab-ink)!important}.clab-btn:hover{background:var(--clab-green);border-color:var(--clab-green);color:#fff!important}
.clab-cover-side{display:flex;flex-direction:column}.clab-cover-side-head{padding:32px 30px 18px;border-bottom:1px solid var(--clab-line)}.clab-label{margin:0;color:var(--clab-green);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}.clab-cover-side-head h2{margin:8px 0 0;font-family:Georgia,"Times New Roman",serif;font-size:27px;font-weight:500}
.clab-feature-note{display:flex;flex:1;flex-direction:column;color:var(--clab-ink);text-decoration:none}.clab-feature-note:hover{color:var(--clab-ink)}.clab-feature-media{aspect-ratio:4/3;overflow:hidden;background:linear-gradient(135deg,#aebdb5,#d7c9b5)}.clab-feature-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.clab-feature-note:hover img{transform:scale(1.025)}.clab-feature-placeholder{height:100%;display:grid;place-items:center;color:rgba(21,27,25,.65);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;font-weight:800;letter-spacing:.15em}.clab-feature-copy{padding:24px 30px 30px}.clab-feature-copy time{display:block;color:var(--clab-muted);font-size:11px}.clab-feature-copy strong{display:block;margin-top:9px;font-family:Georgia,"Times New Roman",serif;font-size:24px;font-weight:500;line-height:1.5}

/* Sections */
.clab-section{margin-top:72px}.clab-section-head{display:grid;grid-template-columns:190px 1fr;gap:28px;align-items:start;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid var(--clab-line)}.clab-section-head h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(30px,4vw,46px);font-weight:500;line-height:1.15}.clab-section-head p{margin:8px 0 0;color:var(--clab-muted)}
.clab-index-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--clab-line);border-left:1px solid var(--clab-line)}.clab-index-item{position:relative;min-height:190px;padding:24px;border-right:1px solid var(--clab-line);border-bottom:1px solid var(--clab-line);background:rgba(248,245,238,.46);color:var(--clab-ink);text-decoration:none}.clab-index-item:hover{background:var(--clab-paper);color:var(--clab-ink)}.clab-index-no{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px;color:var(--clab-green)}.clab-index-en{display:block;margin-top:30px;font-size:10px;font-weight:800;letter-spacing:.16em;color:var(--clab-muted)}.clab-index-item strong{display:block;margin-top:5px;font-family:Georgia,"Times New Roman",serif;font-size:27px;font-weight:500}.clab-index-item span:last-child{display:block;margin-top:10px;color:var(--clab-muted);font-size:13px}
.clab-note-list{border-top:1px solid var(--clab-line)}.clab-note-row{display:grid;grid-template-columns:80px minmax(0,1fr) 135px;gap:24px;align-items:center;padding:24px 0;border-bottom:1px solid var(--clab-line);color:var(--clab-ink);text-decoration:none}.clab-note-row:hover{color:var(--clab-ink)}.clab-note-no{font-family:Georgia,"Times New Roman",serif;font-size:33px;color:var(--clab-green)}.clab-note-row h3{margin:0;font-size:20px;line-height:1.5}.clab-note-row p{margin:7px 0 0;color:var(--clab-muted);font-size:13px}.clab-note-meta{text-align:right;color:var(--clab-muted);font-size:11px}.clab-note-meta span{display:block}.clab-note-row:hover h3{color:var(--clab-green)}
.clab-statement{display:grid;grid-template-columns:1.3fr .7fr;margin-top:80px;border:1px solid var(--clab-line);background:var(--clab-paper)}.clab-statement-main{padding:clamp(30px,5vw,60px)}.clab-statement-main h2{margin:12px 0 20px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(32px,5vw,54px);font-weight:500;line-height:1.15}.clab-statement-main p{max-width:720px}.clab-statement-side{padding:34px;border-left:1px solid var(--clab-line);background:var(--clab-dark);color:#f4f0e7}.clab-statement-side .clab-label{color:#8ed0c4}.clab-statement-side h3{margin:10px 0;font-family:Georgia,"Times New Roman",serif;font-size:27px;font-weight:500}.clab-statement-side p{color:rgba(255,255,255,.7)}.clab-statement-side a{color:#a9ded5}

/* Archive / Search */
.clab-archive{padding:46px 0 80px}.clab-archive-head{display:grid;grid-template-columns:190px 1fr;gap:28px;padding-bottom:24px;margin-bottom:0;border-bottom:1px solid var(--clab-line)}.clab-archive-head h1{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(38px,6vw,68px);font-weight:500;line-height:1.08}.clab-archive-head p{margin:10px 0;color:var(--clab-muted)}.clab-archive .clab-note-list{margin-top:0}.clab-pagination{margin-top:34px}.clab-pagination .nav-links{display:flex;flex-wrap:wrap;gap:7px}.clab-pagination a,.clab-pagination span{min-width:38px;padding:7px 11px;border:1px solid var(--clab-line);background:var(--clab-paper);text-align:center;text-decoration:none}.clab-pagination .current{background:var(--clab-dark);border-color:var(--clab-dark);color:#fff}

/* Article editorial layout */
.clab-article-wrap{padding:34px 0 90px}.clab-article-layout{display:grid;grid-template-columns:220px minmax(0,var(--clab-read)) minmax(0,1fr);gap:42px;align-items:start}.clab-article-rail{position:sticky;top:24px;padding-top:7px}.clab-article-rail section{padding:18px 0;border-top:1px solid var(--clab-line)}.clab-article-rail section:last-child{border-bottom:1px solid var(--clab-line)}.clab-rail-key{display:block;margin-bottom:6px;color:var(--clab-green);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:9px;font-weight:800;letter-spacing:.15em}.clab-rail-value{display:block;font-size:12px;line-height:1.6}.clab-rail-value a{color:var(--clab-ink);text-decoration:none}.clab-toc{margin:0;padding:0;list-style:none}.clab-toc li{margin:8px 0}.clab-toc a{display:block;color:var(--clab-muted);font-size:11px;line-height:1.5;text-decoration:none}.clab-toc a:hover{color:var(--clab-green)}.clab-toc .is-h3{padding-left:12px}.clab-toc-empty{color:var(--clab-muted);font-size:11px}.clab-article{min-width:0}.clab-article-header{padding-bottom:27px;border-bottom:1px solid var(--clab-line)}.clab-article-seq{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.clab-article-seq .clab-label{color:var(--clab-green)}.clab-article-id{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--clab-muted);font-size:10px;letter-spacing:.12em}.clab-article-title{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(38px,5.4vw,68px);font-weight:500;line-height:1.16;letter-spacing:-.025em}.clab-article-deck{margin:20px 0 0;color:var(--clab-muted);font-size:16px}.clab-featured{margin:28px 0 30px}.clab-featured img{display:block;width:100%;border:1px solid var(--clab-line)}.clab-entry{font-size:17px;line-height:1.95}.clab-entry>*:first-child{margin-top:0}.clab-entry p{margin:1.25em 0}.clab-entry h2{position:relative;margin:3.1em 0 1.05em;padding:1.08em 0 .55em;border-top:2px solid var(--clab-ink);border-bottom:1px solid var(--clab-line);font-family:Georgia,"Times New Roman",serif;font-size:1.72em;font-weight:500;line-height:1.4}.clab-entry h2:before{content:"RESEARCH SECTION";display:block;margin-bottom:.65em;color:var(--clab-green);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:9px;font-weight:800;letter-spacing:.14em}.clab-entry h3{margin:2.2em 0 .8em;padding-left:13px;border-left:3px solid var(--clab-accent);font-size:1.28em;line-height:1.5}.clab-entry h4{margin-top:1.9em;color:var(--clab-green)}.clab-entry blockquote{margin:1.8em 0;padding:18px 22px;border-top:1px solid var(--clab-line);border-bottom:1px solid var(--clab-line);background:rgba(248,245,238,.65)}.clab-entry pre{overflow:auto;padding:18px;background:var(--clab-dark);color:#f6f1e8}.clab-entry table{display:block;width:100%;overflow-x:auto;border-collapse:collapse;margin:1.7em 0;font-size:.94em}.clab-entry th,.clab-entry td{padding:10px 11px;border:1px solid var(--clab-line);text-align:left}.clab-entry th{background:var(--clab-paper-2)}.clab-entry ul,.clab-entry ol{padding-left:1.35em}.clab-entry a{word-break:break-word}.clab-entry figcaption{color:var(--clab-muted);font-size:12px}.clab-article-spacer{min-height:1px}
.clab-evidence-warning{display:block;margin:26px 0;padding:18px 20px;border:2px solid var(--clab-warning);background:var(--clab-warning-bg);color:var(--clab-warning);font-weight:900;line-height:1.7}

/* Share */
.clab-share{margin:26px 0}.clab-share-label{margin:0 0 8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:9px;font-weight:800;letter-spacing:.16em;color:var(--clab-muted)}.clab-share-buttons{display:flex;flex-wrap:wrap;gap:6px}.clab-share-button{border:0;padding:8px 11px;color:#fff!important;text-decoration:none!important;font-size:11px;font-weight:800;cursor:pointer}.clab-share-x{background:#111}.clab-share-facebook{background:#2864a5}.clab-share-hatena{background:#1686c8}.clab-share-line{background:#19a942}.clab-share-copy{background:#626a66}

/* Related */
.clab-related{width:min(calc(100% - 40px),var(--clab-max));margin:0 auto 76px;border-top:2px solid var(--clab-ink)}.clab-related-head{display:grid;grid-template-columns:220px 1fr;gap:42px;padding:18px 0 14px;border-bottom:1px solid var(--clab-line)}.clab-related-head h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:30px;font-weight:500}.clab-related-list{border-bottom:1px solid var(--clab-line)}.clab-related-row{display:grid;grid-template-columns:120px 1fr;gap:24px;padding:18px 0;border-bottom:1px solid var(--clab-line-soft);color:var(--clab-ink);text-decoration:none}.clab-related-row:last-child{border-bottom:0}.clab-related-row time{color:var(--clab-muted);font-size:11px}.clab-related-row strong{font-size:16px}.clab-related-row:hover strong{color:var(--clab-green)}

/* Pages / Empty / comments */
.clab-page{padding:36px 0 80px}.clab-page .clab-article{width:min(calc(100% - 40px),var(--clab-read));margin:auto}.clab-page .clab-article-title{font-size:clamp(38px,5vw,62px)}.clab-empty{padding:90px 0}.clab-empty h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(40px,7vw,76px);font-weight:500;line-height:1.1}.clab-comments{width:min(calc(100% - 40px),var(--clab-read));margin:0 auto 80px}.comment-list{padding-left:1.5em}.search-form{display:flex;gap:6px;max-width:620px;margin-top:20px}.search-field{min-width:0;flex:1;padding:11px 12px;border:1px solid var(--clab-ink);background:var(--clab-paper)}.search-submit{padding:11px 16px;border:1px solid var(--clab-ink);background:var(--clab-dark);color:#fff;cursor:pointer}

/* Character balloons: AI Editorial System compatibility */
.balloon{position:relative;display:flow-root;min-height:78px;margin:2em 0;clear:both}
.balloon figure{width:72px;height:auto;margin:0;text-align:center}
.balloon-image-left,.balloon figure.left{float:left;margin:0 20px 0 0}
.balloon-image-right,.balloon figure.right{float:right;margin:0 0 0 20px}
.balloon figure img{display:block;width:72px;height:72px;margin:0;border:1px solid rgba(21,27,25,.22);border-radius:50%;object-fit:cover;background:#fff;box-shadow:0 8px 24px rgba(20,27,25,.08)}
.balloon-image-description,.balloon figure figcaption{display:block;margin:5px 0 0;padding:0;color:var(--clab-muted);font-size:10px;line-height:1.25;text-align:center}
.balloon-text-right,.balloon-text-left,.balloon>div.right,.balloon>div.left{position:relative;display:block;max-width:calc(100% - 96px);padding:14px 17px;border:1px solid rgba(21,27,25,.20);border-radius:18px;background:#fff;box-shadow:0 8px 26px rgba(20,27,25,.055);line-height:1.8}
.balloon-text-right,.balloon>div.right{float:left}
.balloon-text-left,.balloon>div.left{float:right}
.balloon p{margin:0 0 1em}.balloon p:last-child{margin-bottom:0}
.balloon-text-right:before,.balloon>div.right:before{position:absolute;content:"";top:18px;left:-17px;border:8px solid transparent;border-right-color:rgba(21,27,25,.20)}
.balloon-text-right:after,.balloon>div.right:after{position:absolute;content:"";top:18px;left:-16px;border:8px solid transparent;border-right-color:#fff}
.balloon-text-left:before,.balloon>div.left:before{position:absolute;content:"";top:18px;right:-17px;border:8px solid transparent;border-left-color:rgba(21,27,25,.20)}
.balloon-text-left:after,.balloon>div.left:after{position:absolute;content:"";top:18px;right:-16px;border:8px solid transparent;border-left-color:#fff}
.balloon.think .balloon-text-right,.balloon.think .balloon-text-left,.balloon.think>div.right,.balloon.think>div.left{border-radius:30px;background:#f8f8f3}
.balloon.think .balloon-text-right:before,.balloon.think>div.right:before{width:9px;height:9px;top:17px;left:-14px;border:1px solid rgba(21,27,25,.28);border-radius:50%;background:#f8f8f3}
.balloon.think .balloon-text-right:after,.balloon.think>div.right:after{width:5px;height:5px;top:25px;left:-23px;border:1px solid rgba(21,27,25,.28);border-radius:50%;background:#f8f8f3}
.balloon.think .balloon-text-left:before,.balloon.think>div.left:before{width:9px;height:9px;top:17px;right:-14px;border:1px solid rgba(21,27,25,.28);border-radius:50%;background:#f8f8f3}
.balloon.think .balloon-text-left:after,.balloon.think>div.left:after{width:5px;height:5px;top:25px;right:-23px;border:1px solid rgba(21,27,25,.28);border-radius:50%;background:#f8f8f3}
@supports selector(figure:has(img[src*="oji-face-right.png"])){
  .balloon figure:has(img[src*="oji-face-right.png"]){width:96px}
  .balloon figure:has(img[src*="oji-face-right.png"]) img{width:96px;height:96px;border-color:rgba(11,111,97,.35);box-shadow:0 12px 30px rgba(11,111,97,.12)}
  .balloon:has(img[src*="oji-face-right.png"]) .balloon-text-left{max-width:calc(100% - 120px);font-size:1.06em;font-weight:700}
}

/* Footer */
.clab-site-footer{margin-top:30px;background:var(--clab-dark);color:#efebe2}.clab-footer-main{display:grid;grid-template-columns:1.3fr .7fr;gap:70px;padding:60px 0}.clab-footer-main h2{margin:12px 0 18px;font-family:Georgia,"Times New Roman",serif;font-size:36px;font-weight:500}.clab-footer-main p{color:rgba(255,255,255,.68)}.clab-footer-main .clab-label{color:#8ed0c4}.clab-footer-links h3{font-size:11px;letter-spacing:.14em;text-transform:uppercase}.clab-footer-links ul{list-style:none;margin:0;padding:0;border-top:1px solid rgba(255,255,255,.18)}.clab-footer-links li{border-bottom:1px solid rgba(255,255,255,.12)}.clab-footer-links a{display:block;padding:9px 0;color:#f2eee6;text-decoration:none}.clab-group-strip{border-top:1px solid rgba(255,255,255,.12);padding:17px 0;color:rgba(255,255,255,.57);font-size:12px}.clab-group-strip a{color:#a9ded5}.clab-copyright{border-top:1px solid rgba(255,255,255,.08);padding:15px 0;color:rgba(255,255,255,.39);font-size:10px;letter-spacing:.08em}

/* Gutenberg / Welcart */
.alignwide{width:min(1100px,calc(100vw - 40px));max-width:none;margin-left:50%;transform:translateX(-50%)}.alignfull{width:100vw;max-width:none;margin-left:50%;transform:translateX(-50%)}.wp-block-image figcaption{color:var(--clab-muted);font-size:12px}.usces_cart,.usces_confirm,.usces_customer,.usces_member,.usces_history{max-width:100%;font-size:15px}#cart_table,.customer_form{max-width:100%}

@media(max-width:1040px){.clab-article-layout{grid-template-columns:180px minmax(0,1fr);gap:30px}.clab-article-spacer{display:none}.clab-cover-grid{grid-template-columns:1.25fr .75fr}.clab-index-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.clab-topline-inner{min-height:30px}.clab-topline-inner span:first-child{display:none}.clab-masthead{grid-template-columns:1fr auto;min-height:82px}.clab-masthead-note{display:none}.clab-brand{text-align:left}.clab-brand strong{font-size:30px}.clab-brand small{font-size:8px;letter-spacing:.22em}.clab-menu-toggle{display:inline-flex}.clab-search-link{display:none}.clab-nav-wrap{position:relative}.clab-nav{display:none;position:absolute;left:0;right:0;top:0;background:var(--clab-dark);justify-content:flex-start}.clab-nav.is-open{display:block}.clab-nav ul{display:block}.clab-nav li{border-left:0;border-right:0!important;border-bottom:1px solid rgba(255,255,255,.12)}.clab-cover-grid{grid-template-columns:1fr}.clab-cover-main{min-height:500px;padding-right:0;border-right:0;border-bottom:1px solid var(--clab-line)}.clab-cover-side{display:none}.clab-section-head,.clab-archive-head{grid-template-columns:1fr;gap:7px}.clab-note-row{grid-template-columns:56px 1fr}.clab-note-meta{display:none}.clab-statement{grid-template-columns:1fr}.clab-statement-side{border-left:0;border-top:1px solid var(--clab-line)}.clab-article-layout{display:block}.clab-article-rail{position:relative;top:auto;display:grid;grid-template-columns:repeat(2,1fr);gap:0;margin-bottom:30px;border-bottom:1px solid var(--clab-line)}.clab-article-rail section{padding:12px 14px 12px 0}.clab-article-rail .clab-toc-section{grid-column:1/-1}.clab-toc{columns:2;column-gap:20px}.clab-related-head{grid-template-columns:1fr;gap:4px}.clab-footer-main{grid-template-columns:1fr;gap:34px}}
@media(max-width:520px){.clab-shell,.clab-reading,.clab-breadcrumb,.clab-related,.clab-comments,.clab-page .clab-article{width:min(calc(100% - 24px),var(--clab-max))}.clab-cover-main h1{font-size:53px}.clab-index-grid{grid-template-columns:1fr}.clab-index-item{min-height:150px}.clab-note-row{grid-template-columns:44px 1fr;gap:10px;padding:19px 0}.clab-note-no{font-size:26px}.clab-note-row h3{font-size:17px}.clab-article-title{font-size:39px}.clab-entry{font-size:16px}.clab-entry h2{font-size:1.5em}.clab-article-rail{grid-template-columns:1fr}.clab-article-rail .clab-toc-section{grid-column:auto}.clab-toc{columns:1}}


/* V0.5 — V0.3 editorial identity + restrained 2026 modern layer */
html{scroll-behavior:smooth}
body{background:radial-gradient(circle at 8% 4%,rgba(195,233,92,.10),transparent 26rem),radial-gradient(circle at 92% 14%,rgba(11,111,97,.09),transparent 30rem),var(--clab-bg)}
.clab-site-header{background:rgba(251,250,246,.92);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 1px 0 rgba(21,27,25,.04)}
.clab-search-link,.clab-menu-toggle{border-color:rgba(21,27,25,.24);border-radius:999px;transition:transform .18s ease,background .18s ease,border-color .18s ease}
.clab-search-link:hover,.clab-menu-toggle:hover{transform:translateY(-1px);background:#fff;border-color:var(--clab-green)}
.clab-nav a{transition:background .18s ease,color .18s ease}
.clab-cover{position:relative;overflow:hidden;background:radial-gradient(circle at 78% 16%,rgba(195,233,92,.18),transparent 22rem),radial-gradient(circle at 15% 85%,rgba(11,111,97,.08),transparent 30rem),var(--clab-paper)}
.clab-cover:after{content:"";position:absolute;width:280px;height:280px;right:-120px;top:-130px;border:1px solid rgba(11,111,97,.13);border-radius:50%;pointer-events:none}
.clab-cover-main h1{letter-spacing:-.055em}.clab-cover-main h1 span{position:relative;display:block}.clab-cover-main h1 span:after{content:"";display:inline-block;width:.16em;height:.16em;margin-left:.08em;border-radius:50%;background:var(--clab-lime);vertical-align:.12em}
.clab-btn{border-radius:999px;transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease}.clab-btn:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(11,111,97,.14)}
.clab-cover-side{position:relative;z-index:2}.clab-feature-note{margin:18px;border:1px solid rgba(21,27,25,.10);border-radius:24px;background:rgba(255,255,255,.72);overflow:hidden;box-shadow:var(--clab-shadow-soft);transition:transform .25s ease,box-shadow .25s ease}.clab-feature-note:hover{transform:translateY(-3px);box-shadow:var(--clab-shadow)}.clab-feature-media{background:linear-gradient(135deg,#aebdb5,#e1d8c7)}.clab-feature-copy{padding:22px 24px 26px}
.clab-section{margin-top:88px}.clab-section-head{border-color:rgba(21,27,25,.16)}
.clab-index-item{transition:transform .22s ease,background .22s ease,box-shadow .22s ease,color .22s ease}.clab-index-item:hover{z-index:2;transform:translateY(-4px);background:#fff;box-shadow:var(--clab-shadow-soft)}
.clab-note-row{transition:padding .2s ease,background .2s ease,border-radius .2s ease}.clab-note-row:hover{padding-left:12px;padding-right:12px;border-radius:16px;background:rgba(255,255,255,.55)}
.clab-statement{overflow:hidden;border-radius:28px;border-color:rgba(21,27,25,.14);box-shadow:var(--clab-shadow-soft)}.clab-statement-side{background:linear-gradient(145deg,#101614,#0b5349)}
.clab-article-title{letter-spacing:-.04em}.clab-article-id{display:inline-flex;padding:5px 9px;border-radius:999px;background:rgba(11,111,97,.08);color:var(--clab-green);font-weight:800}.clab-featured{overflow:hidden;border-radius:20px;box-shadow:var(--clab-shadow-soft)}.clab-featured img{border:0}.clab-entry blockquote{border:0;border-radius:18px;background:rgba(11,111,97,.065)}.clab-entry img{border-radius:12px}.clab-share-button{border-radius:999px}.clab-related{padding:26px;border:1px solid rgba(21,27,25,.10);border-radius:24px;background:rgba(255,255,255,.42);box-shadow:var(--clab-shadow-soft)}
.clab-site-footer{margin-top:80px}
.clab-v05-reveal{opacity:0;transform:translateY(16px);transition:opacity .58s cubic-bezier(.2,.65,.2,1),transform .58s cubic-bezier(.2,.65,.2,1)}.clab-v05-reveal.is-visible{opacity:1;transform:none}
@media(max-width:780px){.clab-feature-note{margin:12px}.clab-statement{border-radius:22px}.clab-related{padding:20px}.clab-site-header{backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px)}}
@media(max-width:520px){.balloon{min-height:60px;margin:1.65em 0}.balloon figure{width:54px}.balloon figure img{width:54px;height:54px}.balloon-image-left,.balloon figure.left{margin-right:12px}.balloon-image-right,.balloon figure.right{margin-left:12px}.balloon-text-right,.balloon-text-left,.balloon>div.right,.balloon>div.left{max-width:calc(100% - 70px);padding:11px 13px;border-radius:15px}.clab-cover-main h1 span:after{width:.14em;height:.14em}.clab-section{margin-top:70px}.clab-related{border-radius:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.clab-v05-reveal{opacity:1!important;transform:none!important;transition:none!important}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* V0.6 - balloon breathing room
   Keep the V0.5 visual design; restore a calmer character-to-bubble distance. */
@media (min-width:521px){
  .balloon-image-left,
  .balloon figure.left{margin-right:32px}
  .balloon-image-right,
  .balloon figure.right{margin-left:32px}
  .balloon-text-right,
  .balloon-text-left,
  .balloon>div.right,
  .balloon>div.left{max-width:calc(100% - 108px)}
  @supports selector(figure:has(img[src*="oji-face-right.png"])){
    .balloon:has(img[src*="oji-face-right.png"]) .balloon-text-left{max-width:calc(100% - 132px)}
  }
}
@media (max-width:520px){
  .balloon-image-left,
  .balloon figure.left{margin-right:18px}
  .balloon-image-right,
  .balloon figure.right{margin-left:18px}
  .balloon-text-right,
  .balloon-text-left,
  .balloon>div.right,
  .balloon>div.left{max-width:calc(100% - 76px)}
}

/* V0.7 - active-theme balloon geometry parity
   Geometry copied from the currently active child theme.
   Visual colors, shadows and general V0.5/V0.6 styling remain owned by this theme. */
.balloon{
  position:relative;
  margin-bottom:2em;
}
.balloon::before,
.balloon::after{
  clear:both;
  content:"";
  display:block;
}
.balloon figure,
.balloon-image-left,
.balloon-image-right{
  width:60px;
  height:60px;
  flex:0 0 60px;
}
.balloon-image-left,
.balloon figure.left{
  float:left;
  margin-right:20px;
  margin-left:0;
}
.balloon-image-right,
.balloon figure.right{
  float:right;
  margin-left:20px;
  margin-right:0;
}
.balloon figure img{
  width:100%;
  height:100%;
  object-fit:cover;
  margin:0;
}
.balloon-image-description{
  margin:0;
  padding:0;
  font-size:x-small;
  text-align:center;
}
.balloon-text-right,
.balloon-text-left,
.balloon>div.right,
.balloon>div.left{
  position:relative;
  max-width:-webkit-calc(100% - 120px);
  max-width:calc(100% - 120px);
  display:inline-block;
  box-sizing:border-box;
}
.balloon-text-right,
.balloon>div.right{
  float:left;
}
.balloon-text-left,
.balloon>div.left{
  float:right;
}

/* Tail geometry: parity with the current active theme. */
.balloon-text-right::before,
.balloon>div.right::before{
  border:10px solid transparent;
  border-right:10px solid currentColor;
  top:15px;
  left:-20px;
}
.balloon-text-right::after,
.balloon>div.right::after{
  border:10px solid transparent;
  top:15px;
  left:-19px;
}
.balloon-text-left::before,
.balloon>div.left::before{
  border:10px solid transparent;
  border-left:10px solid currentColor;
  top:15px;
  right:-20px;
}
.balloon-text-left::after,
.balloon>div.left::after{
  border:10px solid transparent;
  top:15px;
  right:-19px;
}

/* Thought balloon tail geometry: parity with the current active theme. */
.balloon.think .balloon-text-right,
.balloon.think .balloon-text-left,
.balloon.think>div.right,
.balloon.think>div.left{
  border-radius:30px;
}
.balloon.think .balloon-text-right::before,
.balloon.think>div.right::before{
  border:1px solid;
  border-radius:50%;
  width:8px;
  height:8px;
  top:15px;
  left:-12px;
}
.balloon.think .balloon-text-right::after,
.balloon.think>div.right::after{
  border:1px solid;
  border-radius:50%;
  width:4px;
  height:4px;
  top:20px;
  left:-19px;
}
.balloon.think .balloon-text-left::before,
.balloon.think>div.left::before{
  border:1px solid;
  border-radius:50%;
  width:8px;
  height:8px;
  top:15px;
  right:-12px;
}
.balloon.think .balloon-text-left::after,
.balloon.think>div.left::after{
  border:1px solid;
  border-radius:50%;
  width:4px;
  height:4px;
  top:20px;
  right:-19px;
}

/* Cancel V0.6 responsive balloon-gap experiments.
   The active theme itself uses the same geometry on desktop and mobile. */
@media (max-width:520px){
  .balloon figure,
  .balloon-image-left,
  .balloon-image-right{
    width:60px;
    height:60px;
    flex-basis:60px;
  }
  .balloon-image-left,
  .balloon figure.left{margin-right:20px}
  .balloon-image-right,
  .balloon figure.right{margin-left:20px}
  .balloon-text-right,
  .balloon-text-left,
  .balloon>div.right,
  .balloon>div.left{
    max-width:calc(100% - 120px);
    display:inline-block;
  }
}


/* V0.7.1 — balloon figure margin specificity fix
   The figure itself has a stronger .balloon figure { margin:0 } rule.
   Target the actual figure classes so the legacy 20px geometry really applies. */
.balloon figure.balloon-image-left{
  margin:0 20px 0 0;
}

.balloon figure.balloon-image-right{
  margin:0 0 0 20px;
}

/* V0.7.2 — final balloon visual gap correction
   Tail extends 20px toward the character, so desktop figure margin is 40px
   to leave an actual visible gap of about 20px. */
@media (min-width:521px){
  .balloon figure.balloon-image-left{
    margin:0 40px 0 0;
  }

  .balloon figure.balloon-image-right{
    margin:0 0 0 40px;
  }
}

@media (max-width:520px){
  .balloon figure.balloon-image-left{
    margin:0 20px 0 0;
  }

  .balloon figure.balloon-image-right{
    margin:0 0 0 20px;
  }
}

/* V0.7.3 — balloon tail color fix
   Do not inherit text color via currentColor.
   Restore legacy outer border + white inner fill. */
.balloon-text-right::before,
.balloon>div.right::before{
  border:10px solid transparent;
  border-right:10px solid rgba(21,27,25,.20);
}

.balloon-text-right::after,
.balloon>div.right::after{
  border:10px solid transparent;
  border-right:10px solid #fff;
}

.balloon-text-left::before,
.balloon>div.left::before{
  border:10px solid transparent;
  border-left:10px solid rgba(21,27,25,.20);
}

.balloon-text-left::after,
.balloon>div.left::after{
  border:10px solid transparent;
  border-left:10px solid #fff;
}

/* V0.7.4 — thinking balloon white background
   Keep the thought-balloon shape and circle tail, but unify the fill with normal balloons. */
.balloon.think .balloon-text-right,
.balloon.think .balloon-text-left,
.balloon.think>div.right,
.balloon.think>div.left{
  background:#fff;
}

.balloon.think .balloon-text-right::before,
.balloon.think .balloon-text-right::after,
.balloon.think .balloon-text-left::before,
.balloon.think .balloon-text-left::after,
.balloon.think>div.right::before,
.balloon.think>div.right::after,
.balloon.think>div.left::before,
.balloon.think>div.left::after{
  background:#fff;
}

/* V0.7.5 — legacy balloon spacing parity */
@media (min-width:521px){
  .balloon figure.balloon-image-left{
    margin:0 20px 0 0;
  }

  .balloon figure.balloon-image-right{
    margin:0 0 0 20px;
  }
}

/* V0.7.6 — legacy desktop balloon width parity
   Old production balloons measured about 470px at this desktop scale.
   Short balloons remain content-sized; only long balloons are capped. */
@media (min-width:521px){
  .balloon-text-right,
  .balloon-text-left,
  .balloon>div.right,
  .balloon>div.left{
    max-width:min(calc(100% - 120px),470px);
  }

  @supports selector(figure:has(img[src*="oji-face-right.png"])){
    .balloon:has(img[src*="oji-face-right.png"]) .balloon-text-left{
      max-width:470px;
    }
  }
}

/* V0.7.7 — mobile balloon width correction
   Mobile geometry = 60px character + 20px gap. */
@media (max-width:520px){
  .balloon-text-right,
  .balloon-text-left,
  .balloon>div.right,
  .balloon>div.left{
    max-width:calc(100% - 80px);
  }
}


/* =========================================================
   Coffee Laboratory 2026
   v0.7.8 — Front page editorial polish
   ========================================================= */

/*
 * 01. Hero / latest-file balance
 * Desktop and larger tablets only.
 * Mobile layout remains controlled by the existing breakpoints.
 */
@media (min-width:781px){

  .clab-cover-main{
    padding-bottom:60px;
  }

  .clab-cover-lead{
    margin-top:26px;
  }

  .clab-cover-actions{
    margin-top:26px;
  }

  .clab-feature-note{
    margin:16px;
  }

  .clab-feature-copy{
    padding:19px 22px 23px;
  }

  .clab-feature-copy strong{
    font-size:23px;
  }

  .clab-section{
    margin-top:82px;
  }

  .clab-note-row{
    padding-top:20px;
    padding-bottom:20px;
  }

  .clab-note-row p{
    margin-top:5px;
  }
}


/*
 * 02. Lab index readability
 * Keep the quiet editorial tone, but improve contrast slightly.
 */
.clab-index-item span:last-child{
  color:rgba(21,27,25,.64);
}


/*
 * 03. Very small screens
 * Preserve the existing compact mobile rhythm explicitly.
 */
@media (max-width:520px){

  .clab-note-row{
    padding-top:19px;
    padding-bottom:19px;
  }

}


/* =========================================================
   Coffee Laboratory 2026
   v0.7.9 — Research institute detail
   ========================================================= */

/*
 * Research-institute registry band.
 * Gives the site an internal institutional structure
 * without implying government or university affiliation.
 */
.clab-institute-bar{
  position:relative;
  z-index:3;
  border-bottom:1px solid rgba(21,27,25,.13);
  background:rgba(248,245,238,.62);
}

.clab-institute-bar-inner{
  min-height:34px;
  display:grid;
  grid-template-columns:1.45fr 1fr 1fr 1fr;
  align-items:center;
  gap:18px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:8px;
  font-weight:700;
  line-height:1.4;
  letter-spacing:.13em;
  color:rgba(21,27,25,.52);
  text-transform:uppercase;
}

.clab-institute-bar-inner span:not(:first-child){
  text-align:right;
}

.clab-institute-bar-inner span:first-child{
  color:var(--clab-green);
}


/* Internal file registry */
.clab-file-register{
  margin:7px 0 0;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:8px;
  font-weight:700;
  line-height:1.4;
  letter-spacing:.13em;
  color:rgba(21,27,25,.46);
}


/*
 * Latest-file card should end with its content,
 * not stretch to the full height of the hero column.
 */
.clab-feature-note{
  flex:0 0 auto;
}


/* Slightly more technical treatment for the side heading. */
.clab-cover-side-head{
  padding-bottom:15px;
}


/* Tablet / mobile */
@media (max-width:780px){

  .clab-institute-bar-inner{
    grid-template-columns:1fr auto;
    min-height:31px;
  }

  .clab-institute-bar-inner span:nth-child(2),
  .clab-institute-bar-inner span:nth-child(3){
    display:none;
  }

}

@media (max-width:520px){

  .clab-institute-bar-inner{
    font-size:7px;
    letter-spacing:.09em;
  }

  .clab-institute-bar-inner span:last-child{
    text-align:right;
  }

}


/* =========================================================
   Coffee Laboratory 2026
   v0.7.10 — Header / footer rhythm
   ========================================================= */

/*
 * Avoid duplicating large empty space between the final
 * research statement and the institutional footer.
 */
.clab-home{
  padding-bottom:36px;
}

.clab-site-footer{
  margin-top:36px;
}

@media (max-width:780px){

  .clab-home{
    padding-bottom:28px;
  }

  .clab-site-footer{
    margin-top:28px;
  }

}


/* =========================================================
   Coffee Laboratory 2026
   v0.7.11 — Character theater polish

   Institutional outside / lively researchers inside.
   ========================================================= */

/* Give dialogue more breathing room and presence. */
.clab-entry .balloon{
  min-height:86px;
  margin:2.45em 0;
}

/* Rapid exchanges should visually feel like one conversation. */
.clab-entry .balloon + .balloon{
  margin-top:-.55em;
}

/* Character portraits: a little larger and less anonymous. */
@media (min-width:521px){

  .clab-entry .balloon figure,
  .clab-entry .balloon-image-left,
  .clab-entry .balloon-image-right{
    width:82px;
  }

  .clab-entry .balloon figure img{
    width:82px;
    height:82px;
    border-width:2px;
    box-shadow:0 10px 25px rgba(20,27,25,.11);
  }

  .clab-entry .balloon-text-right,
  .clab-entry .balloon-text-left,
  .clab-entry .balloon>div.right,
  .clab-entry .balloon>div.left{
    max-width:min(560px,calc(100% - 122px));
    padding:16px 19px;
    border-width:1px;
    border-radius:20px;
    font-size:1.025em;
    line-height:1.78;
    box-shadow:0 10px 28px rgba(20,27,25,.07);
  }

}


/* Character name = small cast badge. */
.clab-entry .balloon-image-description,
.clab-entry .balloon figure figcaption{
  display:inline-block;
  width:auto;
  min-width:56px;
  margin:7px auto 0;
  padding:3px 7px;
  border:1px solid rgba(21,27,25,.13);
  border-radius:999px;
  background:rgba(255,255,255,.88);
  color:var(--clab-ink);
  font-size:10px;
  font-weight:800;
  line-height:1.25;
}


/* ---------------------------------------------------------
   Character identity
   Very light tint only — still belongs to Coffee Laboratory.
   --------------------------------------------------------- */

@supports selector(.balloon:has(img)){

  /* まめこ */
  .clab-entry .balloon:has(img[src*="mameko"]) figure img{
    border-color:rgba(132,167,46,.55);
  }

  .clab-entry .balloon:has(img[src*="mameko"]) .balloon-text-right,
  .clab-entry .balloon:has(img[src*="mameko"]) .balloon-text-left{
    background:#fbfdef;
  }

  .clab-entry .balloon:has(img[src*="mameko"]) .balloon-text-right::after{
    border-right-color:#fbfdef;
  }

  .clab-entry .balloon:has(img[src*="mameko"]) .balloon-text-left::after{
    border-left-color:#fbfdef;
  }


  /* 王子 */
  .clab-entry .balloon:has(img[src*="oji-"]) figure img{
    border-color:rgba(177,132,40,.55);
  }

  .clab-entry .balloon:has(img[src*="oji-"]) .balloon-text-right,
  .clab-entry .balloon:has(img[src*="oji-"]) .balloon-text-left{
    background:#fff9ea;
  }

  .clab-entry .balloon:has(img[src*="oji-"]) .balloon-text-right::after{
    border-right-color:#fff9ea;
  }

  .clab-entry .balloon:has(img[src*="oji-"]) .balloon-text-left::after{
    border-left-color:#fff9ea;
  }


  /* モフタン */
  .clab-entry .balloon:has(img[src*="mofu-"]) figure img{
    border-color:rgba(64,132,111,.50);
  }

  .clab-entry .balloon:has(img[src*="mofu-"]) .balloon-text-right,
  .clab-entry .balloon:has(img[src*="mofu-"]) .balloon-text-left{
    background:#f0f8f5;
  }

  .clab-entry .balloon:has(img[src*="mofu-"]) .balloon-text-right::after{
    border-right-color:#f0f8f5;
  }

  .clab-entry .balloon:has(img[src*="mofu-"]) .balloon-text-left::after{
    border-left-color:#f0f8f5;
  }


  /* くまたん */
  .clab-entry .balloon:has(img[src*="kuma-"]) figure img{
    border-color:rgba(178,102,66,.45);
  }

  .clab-entry .balloon:has(img[src*="kuma-"]) .balloon-text-right,
  .clab-entry .balloon:has(img[src*="kuma-"]) .balloon-text-left{
    background:#fff5ef;
  }

  .clab-entry .balloon:has(img[src*="kuma-"]) .balloon-text-right::after{
    border-right-color:#fff5ef;
  }

  .clab-entry .balloon:has(img[src*="kuma-"]) .balloon-text-left::after{
    border-left-color:#fff5ef;
  }


  /*
   * 王子(大)
   * Old articles used this as part of the joke.
   */
  .clab-entry .balloon:has(img[src*="oji-face-right.png"]) figure{
    width:106px;
  }

  .clab-entry .balloon:has(img[src*="oji-face-right.png"]) figure img{
    width:106px;
    height:106px;
    box-shadow:0 14px 34px rgba(177,132,40,.17);
  }

}


/* THINK should feel visibly different from normal conversation. */
.clab-entry .balloon.think .balloon-text-right,
.clab-entry .balloon.think .balloon-text-left,
.clab-entry .balloon.think>div.right,
.clab-entry .balloon.think>div.left{
  border-style:dashed;
  border-color:rgba(21,27,25,.24);
  border-radius:30px;
  background:#fffdf4;
  font-style:italic;
  box-shadow:0 8px 22px rgba(20,27,25,.045);
}

/* Keep thought-tail circles in the same warm paper colour. */
.clab-entry .balloon.think .balloon-text-right::before,
.clab-entry .balloon.think .balloon-text-right::after,
.clab-entry .balloon.think .balloon-text-left::before,
.clab-entry .balloon.think .balloon-text-left::after,
.clab-entry .balloon.think>div.right::before,
.clab-entry .balloon.think>div.right::after,
.clab-entry .balloon.think>div.left::before,
.clab-entry .balloon.think>div.left::after{
  background:#fffdf4;
}


/* Mobile: fun remains, but don't let characters eat the page width. */
@media (max-width:520px){

  .clab-entry .balloon{
    margin:2em 0;
  }

  .clab-entry .balloon + .balloon{
    margin-top:-.35em;
  }

  .clab-entry .balloon figure img{
    box-shadow:0 7px 18px rgba(20,27,25,.10);
  }

  .clab-entry .balloon-text-right,
  .clab-entry .balloon-text-left,
  .clab-entry .balloon>div.right,
  .clab-entry .balloon>div.left{
    padding:12px 14px;
    line-height:1.72;
  }

}


/* =========================================================
   Coffee Laboratory 2026
   v0.7.12 — Mid-width responsive correction
   ========================================================= */

/*
 * Between desktop and mobile the article used to become narrow
 * while v0.7.11 character balloons remained desktop-sized.
 */

/* Compact article rail before the layout becomes single-column. */
@media (min-width:781px) and (max-width:1180px){

  .clab-article-layout{
    grid-template-columns:150px minmax(0,1fr);
    gap:24px;
  }

}


/* Intermediate character size for tablet / narrow desktop. */
@media (min-width:521px) and (max-width:1180px){

  .clab-entry .balloon{
    min-height:74px;
    margin:2.15em 0;
  }

  .clab-entry .balloon figure,
  .clab-entry .balloon-image-left,
  .clab-entry .balloon-image-right{
    width:68px;
  }

  .clab-entry .balloon figure img{
    width:68px;
    height:68px;
  }

  .clab-entry .balloon-text-right,
  .clab-entry .balloon-text-left,
  .clab-entry .balloon>div.right,
  .clab-entry .balloon>div.left{
    max-width:min(520px,calc(100% - 104px));
    padding:14px 17px;
    font-size:1em;
  }

  @supports selector(.balloon:has(img)){

    .clab-entry .balloon:has(img[src*="oji-face-right.png"]) figure{
      width:88px;
    }

    .clab-entry .balloon:has(img[src*="oji-face-right.png"]) figure img{
      width:88px;
      height:88px;
    }

    .clab-entry .balloon:has(img[src*="oji-face-right.png"]) .balloon-text-left{
      max-width:min(520px,calc(100% - 124px));
    }

  }

}


/* =========================================================
   Coffee Laboratory 2026
   v0.7.13 — Very narrow screen / 王子(大) correction
   ========================================================= */

@media (max-width:420px){

  /*
   * Keep the visual gag, but prevent the oversized 王子 face
   * from consuming the dialogue width on very narrow screens.
   */
  @supports selector(.balloon:has(img)){

    .clab-entry .balloon:has(img[src*="oji-face-right.png"]) figure{
      width:68px;
    }

    .clab-entry .balloon:has(img[src*="oji-face-right.png"]) figure img{
      width:68px;
      height:68px;
    }

    .clab-entry .balloon:has(img[src*="oji-face-right.png"]) .balloon-text-left{
      max-width:calc(100% - 84px);
      padding:12px 14px;
      font-size:.98em;
      font-weight:600;
      line-height:1.68;
    }

  }

}


/* =========================================================
   Coffee Laboratory 2026
   v0.7.14 — 王子(大) size normalization

   Keep the close-up face image as the joke.
   Do not enlarge the character or dialogue typography.
   ========================================================= */

@supports selector(.balloon:has(img)){

  /* Wide desktop: same size as normal v0.7.11 characters. */
  .clab-entry .balloon:has(img[src*="oji-face-right.png"]) figure{
    width:82px;
  }

  .clab-entry .balloon:has(img[src*="oji-face-right.png"]) figure img{
    width:82px;
    height:82px;
  }

  .clab-entry .balloon:has(img[src*="oji-face-right.png"]) .balloon-text-left{
    max-width:min(560px,calc(100% - 122px));
    font-size:1.025em;
    font-weight:400;
  }

}


/* Narrow desktop / tablet: same as other characters. */
@media (min-width:521px) and (max-width:1180px){

  @supports selector(.balloon:has(img)){

    .clab-entry .balloon:has(img[src*="oji-face-right.png"]) figure{
      width:68px;
    }

    .clab-entry .balloon:has(img[src*="oji-face-right.png"]) figure img{
      width:68px;
      height:68px;
    }

    .clab-entry .balloon:has(img[src*="oji-face-right.png"]) .balloon-text-left{
      max-width:min(520px,calc(100% - 104px));
      font-size:1em;
      font-weight:400;
    }

  }

}


/* Smartphone: exactly the same footprint as normal characters. */
@media (max-width:520px){

  @supports selector(.balloon:has(img)){

    .clab-entry .balloon:has(img[src*="oji-face-right.png"]) figure{
      width:54px;
    }

    .clab-entry .balloon:has(img[src*="oji-face-right.png"]) figure img{
      width:54px;
      height:54px;
    }

    .clab-entry .balloon:has(img[src*="oji-face-right.png"]) .balloon-text-left{
      max-width:calc(100% - 70px);
      font-size:1em;
      font-weight:400;
    }

  }

}


/* =========================================================
   Coffee Laboratory 2026
   v0.7.15 — Mobile balloon grid
   ========================================================= */

@media (max-width:520px){

  /*
   * Old articles use float-based balloon geometry.
   * On narrow screens switch only the article balloons to grid.
   */

  .clab-entry .balloon{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
    align-items:start;
    column-gap:12px;
  }

  .clab-entry .balloon:has(figure.balloon-image-left){
    display:grid;
    grid-template-columns:54px minmax(0,1fr);
  }

  .clab-entry .balloon:has(figure.balloon-image-right){
    display:grid;
    grid-template-columns:minmax(0,1fr) 54px;
  }

  .clab-entry .balloon figure.balloon-image-left{
    grid-column:1;
    float:none !important;
    width:54px !important;
    margin:0 !important;
  }

  .clab-entry .balloon figure.balloon-image-right{
    grid-column:2;
    float:none !important;
    width:54px !important;
    margin:0 !important;
    justify-self:end;
  }

  .clab-entry .balloon figure img{
    width:54px !important;
    height:54px !important;
  }

  .clab-entry .balloon .balloon-text-right{
    grid-column:2;
    float:none !important;
    width:100%;
    max-width:none !important;
    min-width:0;
    box-sizing:border-box;
    margin:0;
  }

  .clab-entry .balloon .balloon-text-left{
    grid-column:1;
    grid-row:1;
    float:none !important;
    width:100%;
    max-width:none !important;
    min-width:0;
    box-sizing:border-box;
    margin:0;
  }

  /*
   * 王子の顔アップ画像も配置寸法は通常キャラと同じ。
   * 顔アップという絵柄だけ残す。
   */
  .clab-entry .balloon:has(img[src*="oji-face-right.png"]) figure,
  .clab-entry .balloon:has(img[src*="oji-face-right.png"]) figure img{
    width:54px !important;
    height:54px !important;
  }

  .clab-entry .balloon:has(img[src*="oji-face-right.png"]) .balloon-text-left{
    width:100%;
    max-width:none !important;
    font-size:1em;
    font-weight:400;
  }

}


/* =========================================================
   Coffee Laboratory 2026
   v0.7.16 — Mobile balloon character row correction
   ========================================================= */

@media (max-width:520px){

  .clab-entry .balloon figure.balloon-image-left{
    grid-row:1;
    align-self:start;
  }

  .clab-entry .balloon figure.balloon-image-right{
    grid-row:1;
    align-self:start;
  }

}


/* =========================================================
   Coffee Laboratory 2026
   v0.7.17 — Mobile balloon alignment correction
   ========================================================= */

@media (max-width:520px){

  /*
   * v0.7.16 fixed the character figure to row 1.
   * The left-character speech itself must also stay in row 1.
   */
  .clab-entry .balloon .balloon-text-right{
    grid-row:1;
    align-self:start;
  }

  .clab-entry .balloon .balloon-text-left{
    grid-row:1;
    align-self:start;
  }

  /*
   * THINK tails use two circles extending farther than
   * the normal speech triangle. Give them their own space
   * so they do not overlap the character icon.
   */
  .clab-entry .balloon.think{
    column-gap:28px;
  }

}


/* =========================================================
   Coffee Laboratory 2026
   v0.7.18 — Warmer character dialogue typography
   ========================================================= */

/*
 * Research text stays editorial/serious.
 * Character dialogue switches to a friendlier Gothic voice.
 */
.clab-entry .balloon-text-right,
.clab-entry .balloon-text-left,
.clab-entry .balloon>div.right,
.clab-entry .balloon>div.left{
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    Meiryo,
    sans-serif;

  font-weight:500;
  letter-spacing:.015em;
}

/* Thinking is still a thought, but should not become thin. */
.clab-entry .balloon.think .balloon-text-right,
.clab-entry .balloon.think .balloon-text-left,
.clab-entry .balloon.think>div.right,
.clab-entry .balloon.think>div.left{
  font-weight:500;
}

/* Character names remain a little stronger than the dialogue. */
.clab-entry .balloon-image-description,
.clab-entry .balloon figure figcaption{
  font-weight:700;
}



/* =========================================================
   Coffee Laboratory 2026
   v0.7.19 — Dialogue readability polish
   ========================================================= */

.clab-entry .balloon-text-right,
.clab-entry .balloon-text-left,
.clab-entry .balloon>div.right,
.clab-entry .balloon>div.left{
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    Meiryo,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    sans-serif;

  font-weight:600;
}

/* THINK remains visibly different, but no longer looks thin. */
.clab-entry .balloon.think .balloon-text-right,
.clab-entry .balloon.think .balloon-text-left,
.clab-entry .balloon.think>div.right,
.clab-entry .balloon.think>div.left{
  font-weight:600;
}

/* Character name stays one step stronger. */
.clab-entry .balloon-image-description,
.clab-entry .balloon figure figcaption{
  font-weight:700;
}


/* =========================================================
   Coffee Laboratory 2026
   v0.7.20 — Character balance polish
   ========================================================= */

/* Desktop portraits return closer to the original 72px scale. */
@media (min-width:1181px){

  .clab-entry .balloon figure,
  .clab-entry .balloon-image-left,
  .clab-entry .balloon-image-right{
    width:72px;
  }

  .clab-entry .balloon figure img{
    width:72px;
    height:72px;
  }

  @supports selector(.balloon:has(img)){

    .clab-entry .balloon:has(img[src*="oji-face-right.png"]) figure,
    .clab-entry .balloon:has(img[src*="oji-face-right.png"]) figure img{
      width:72px;
      height:72px;
    }

  }

}

/* Character names should support the dialogue, not dominate it. */
.clab-entry .balloon-image-description,
.clab-entry .balloon figure figcaption{
  font-weight:600;
  background:rgba(255,255,255,.58);
  border-color:rgba(21,27,25,.09);
}

/* Dialogue stays clearly readable. */
.clab-entry .balloon-text-right,
.clab-entry .balloon-text-left,
.clab-entry .balloon>div.right,
.clab-entry .balloon>div.left{
  font-weight:600;
}

/* Balloon shape already says "thinking"; italics are unnecessary. */
.clab-entry .balloon.think .balloon-text-right,
.clab-entry .balloon.think .balloon-text-left,
.clab-entry .balloon.think>div.right,
.clab-entry .balloon.think>div.left{
  font-weight:600;
  font-style:normal;
}



/* =========================================================
   Coffee Laboratory 2026
   v0.7.21 — Article page finish
   Share / title / comments
   ========================================================= */


/* ---------------------------------------------------------
   1. SHARE — treat label + buttons as one centered unit
   --------------------------------------------------------- */

.clab-share{
  margin:30px auto;
  text-align:center;
}

.clab-share-label{
  margin:0 0 10px;
  text-align:center;
}

.clab-share-buttons{
  justify-content:center;
  align-items:center;
  gap:8px;
}


/* ---------------------------------------------------------
   2. ARTICLE TITLE — softer, smaller, less institutional
   --------------------------------------------------------- */

.clab-article-title{
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    "Yu Gothic",
    "YuGothic",
    sans-serif;

  font-size:clamp(34px,4.3vw,54px);
  font-weight:600;
  line-height:1.28;
  letter-spacing:.015em;
}

@media (max-width:780px){
  .clab-article-title{
    font-size:clamp(32px,7vw,43px);
  }
}

@media (max-width:520px){
  .clab-article-title{
    font-size:34px;
    line-height:1.32;
  }
}


/* ---------------------------------------------------------
   3. COMMENTS — research-note response card
   --------------------------------------------------------- */

.clab-comments{
  margin:64px auto 80px;
  padding:34px 38px 38px;
  box-sizing:border-box;

  border:1px solid rgba(21,27,25,.10);
  border-radius:24px;

  background:rgba(255,255,255,.42);
  box-shadow:0 12px 34px rgba(20,27,25,.055);
}


/* Comment-area headings */
.clab-comments h2,
.clab-comments h3,
.clab-comments .comment-reply-title{
  margin-top:0;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    "Yu Gothic",
    "YuGothic",
    sans-serif;

  color:var(--clab-ink);
  font-weight:600;
  letter-spacing:.01em;
}


/* Default WordPress "コメントを残す" heading */
.clab-comments #reply-title{
  margin:0 0 18px;
  font-size:22px;
  line-height:1.4;
}


/* Logged-in information / explanatory text */
.clab-comments .logged-in-as,
.clab-comments .comment-notes,
.clab-comments .must-log-in{
  margin:0 0 22px;
  color:var(--clab-muted);
  font-size:13px;
  line-height:1.8;
}

.clab-comments .logged-in-as a{
  color:var(--clab-green);
}


/* Form structure */
.clab-comments .comment-form{
  margin-top:10px;
}

.clab-comments .comment-form p{
  margin:0 0 18px;
}

.clab-comments .comment-form label{
  display:block;
  margin:0 0 8px;

  color:var(--clab-ink);
  font-size:13px;
  font-weight:700;
  letter-spacing:.03em;
}


/* Inputs */
.clab-comments input[type="text"],
.clab-comments input[type="email"],
.clab-comments input[type="url"],
.clab-comments textarea{
  display:block;
  width:100%;
  max-width:100%;
  box-sizing:border-box;

  padding:13px 15px;

  border:1px solid rgba(21,27,25,.18);
  border-radius:14px;

  background:rgba(255,255,255,.72);
  color:var(--clab-ink);

  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.clab-comments textarea{
  min-height:220px;
  resize:vertical;
  line-height:1.8;
}

.clab-comments input[type="text"]:focus,
.clab-comments input[type="email"]:focus,
.clab-comments input[type="url"]:focus,
.clab-comments textarea:focus{
  border-color:rgba(11,111,97,.55);
  background:#fff;
  box-shadow:0 0 0 3px rgba(11,111,97,.08);
}


/* Submit button */
.clab-comments .form-submit{
  margin-top:22px;
}

.clab-comments .submit{
  appearance:none;
  border:0;
  border-radius:999px;

  padding:12px 22px;

  background:var(--clab-dark);
  color:#fff;

  font-size:13px;
  font-weight:700;
  letter-spacing:.03em;

  cursor:pointer;
  transition:transform .15s ease, opacity .15s ease;
}

.clab-comments .submit:hover{
  opacity:.90;
  transform:translateY(-1px);
}


/* Existing comments, if any */
.clab-comments .comment-list{
  margin:0 0 34px;
  padding:0;
  list-style:none;
}

.clab-comments .comment-list > li{
  margin:0 0 18px;
  padding:20px;

  border:1px solid rgba(21,27,25,.09);
  border-radius:16px;

  background:rgba(255,255,255,.48);
}


/* Mobile */
@media (max-width:520px){

  .clab-share{
    margin:24px auto;
  }

  .clab-share-buttons{
    gap:7px;
  }

  .clab-comments{
    padding:24px 18px 26px;
    border-radius:19px;
  }

  .clab-comments textarea{
    min-height:190px;
  }

}


/* =========================================================
   Coffee Laboratory 2026
   v0.7.22 — Friendly title / distinctive brand / social
   ========================================================= */


/* ---------------------------------------------------------
   ARTICLE TITLE
   Rounded, friendly, smaller than v0.7.21.
   --------------------------------------------------------- */

.clab-article-title{
  font-family:
    "Zen Maru Gothic",
    "Hiragino Maru Gothic ProN",
    Meiryo,
    sans-serif;

  font-size:clamp(30px,3.7vw,46px);
  font-weight:500;
  line-height:1.42;
  letter-spacing:.035em;
}

@media (max-width:780px){
  .clab-article-title{
    font-size:clamp(29px,6.5vw,39px);
  }
}

@media (max-width:520px){
  .clab-article-title{
    font-size:30px;
    line-height:1.45;
  }
}


/* ---------------------------------------------------------
   SITE BRAND
   A little eccentric, but still editorial.
   --------------------------------------------------------- */

.clab-brand strong{
  font-family:
    "Kaisei Decol",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size:clamp(36px,4.2vw,50px);
  font-weight:500;
  line-height:1.15;
  letter-spacing:.035em;
}

@media (max-width:780px){
  .clab-brand strong{
    font-size:32px;
  }
}

@media (max-width:520px){
  .clab-brand strong{
    font-size:29px;
  }
}


/* ---------------------------------------------------------
   SHARE
   More destinations, still one calm centered group.
   --------------------------------------------------------- */

.clab-share-buttons{
  max-width:760px;
  margin-inline:auto;
}

.clab-share-bluesky{
  background:#1684ff;
}

.clab-share-pinterest{
  background:#bd081c;
}

.clab-share-mail{
  background:#7a756e;
}

@media (max-width:520px){

  .clab-share-buttons{
    max-width:360px;
  }

  .clab-share-button{
    padding:8px 10px;
    font-size:10px;
  }

}


/* =========================================================
   Coffee Laboratory 2026
   v0.7.23 — Title / brand balance
   ========================================================= */


/* Site brand: keep Kaisei Decol, just reduce its presence. */
.clab-brand strong{
  font-size:clamp(32px,3.6vw,43px);
  font-weight:500;
  letter-spacing:.025em;
}

@media (max-width:780px){
  .clab-brand strong{
    font-size:29px;
  }
}

@media (max-width:520px){
  .clab-brand strong{
    font-size:27px;
  }
}


/*
 * Article title:
 * back away from full rounded Gothic.
 * Softer than the old hard title, but not "cute".
 */
.clab-article-title{
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    "Yu Gothic",
    "YuGothic",
    sans-serif;

  font-size:clamp(30px,3.5vw,45px);
  font-weight:500;
  line-height:1.34;
  letter-spacing:.025em;
}

@media (max-width:780px){
  .clab-article-title{
    font-size:clamp(29px,6vw,38px);
  }
}

@media (max-width:520px){
  .clab-article-title{
    font-size:30px;
    line-height:1.38;
  }
}



/* =========================================================
   Coffee Laboratory 2026
   v0.7.24 — Brand / article title finetune
   ========================================================= */


/* ---------------------------------------------------------
   SITE BRAND
   More modest: institution name, not a giant logo.
   --------------------------------------------------------- */

.clab-brand strong{
  font-size:clamp(27px,3vw,35px);
  font-weight:500;
  line-height:1.18;
  letter-spacing:.025em;
}

@media (max-width:780px){
  .clab-brand strong{
    font-size:27px;
  }
}

@media (max-width:520px){
  .clab-brand strong{
    font-size:25px;
  }
}


/* ---------------------------------------------------------
   ARTICLE TITLE
   Smaller + slightly heavier + gently Mincho-oriented.
   --------------------------------------------------------- */

.clab-article-title{
  font-family:
    "Yu Mincho",
    "YuMincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Noto Serif JP",
    serif;

  font-size:clamp(28px,3.1vw,39px);
  font-weight:600;
  line-height:1.38;
  letter-spacing:.018em;
}

@media (max-width:780px){
  .clab-article-title{
    font-size:clamp(27px,5.5vw,35px);
  }
}

@media (max-width:520px){
  .clab-article-title{
    font-size:28px;
    line-height:1.42;
  }
}



/* =========================================================
   Coffee Laboratory 2026
   v0.7.25 — Brand / article title adjustment
   ========================================================= */


/* Site name: smaller, bold, restrained Gothic. */
.clab-brand strong{
  font-family:
    "Zen Kaku Gothic New",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    sans-serif;

  font-size:clamp(25px,2.65vw,31px);
  font-weight:700;
  line-height:1.15;
  letter-spacing:.045em;
}

@media (max-width:780px){
  .clab-brand strong{
    font-size:25px;
  }
}

@media (max-width:520px){
  .clab-brand strong{
    font-size:23px;
  }
}


/* Article title: smaller, slightly bolder, gently Mincho-oriented. */
.clab-article-title{
  font-family:
    "Yu Mincho",
    "YuMincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    serif;

  font-size:clamp(27px,2.9vw,37px);
  font-weight:600;
  line-height:1.40;
  letter-spacing:.015em;
}

@media (max-width:780px){
  .clab-article-title{
    font-size:clamp(26px,5.2vw,33px);
  }
}

@media (max-width:520px){
  .clab-article-title{
    font-size:27px;
    line-height:1.43;
  }
}



/* =========================================================
   Coffee Laboratory 2026
   v0.7.26 — Article title micro polish
   ========================================================= */

/*
 * Keep the current Mincho direction.
 * Slightly smaller, one step stronger.
 */
.clab-article-title{
  font-size:clamp(27px,2.8vw,36px);
  font-weight:700;
  line-height:1.40;
  letter-spacing:.012em;
}

@media (max-width:780px){
  .clab-article-title{
    font-size:clamp(26px,5vw,32px);
  }
}

@media (max-width:520px){
  .clab-article-title{
    font-size:27px;
    line-height:1.42;
  }
}



/* =========================================================
   Coffee Laboratory 2026
   v0.7.27 — Article title + THINK weight
   ========================================================= */


/* ---------------------------------------------------------
   ARTICLE TITLE
   Real bold Mincho via Noto Serif JP.
   Keep current restrained size.
   --------------------------------------------------------- */

.clab-article-title{
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    "YuMincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    serif;

  font-size:clamp(27px,2.8vw,36px);
  font-weight:700;
  line-height:1.40;
  letter-spacing:.012em;
}

@media (max-width:780px){
  .clab-article-title{
    font-size:clamp(26px,5vw,32px);
  }
}

@media (max-width:520px){
  .clab-article-title{
    font-size:27px;
    line-height:1.42;
  }
}


/* ---------------------------------------------------------
   THINK
   Do not use thin / italic text.
   THINK character is expressed by the balloon treatment,
   not by weakening readability.
   --------------------------------------------------------- */

.clab-entry .balloon.think .balloon-text-right,
.clab-entry .balloon.think .balloon-text-left,
.clab-entry .balloon.think > div.right,
.clab-entry .balloon.think > div.left{
  font-weight:600 !important;
  font-style:normal !important;
}


/* Also neutralize old nested typography that may survive
   inside historical THINK balloons. */
.clab-entry .balloon.think .balloon-text-right *,
.clab-entry .balloon.think .balloon-text-left *,
.clab-entry .balloon.think > div.right *,
.clab-entry .balloon.think > div.left *{
  font-weight:inherit !important;
  font-style:normal !important;
}

