/* 2026-10-05 オーナーが「切れ目」の案を選んだ。themes/base.css + themes/c-kireme.add.css を連結したもの。直すときは themes/ 側を直して連結し直す。 */
/* tdil.dev 共通の土台。色とフォントは TDIL のブランド（memory/brand.md・tdil-ops/config/brand.tokens.json）。
   案ごとの差は themes/*.css の後半に書く。 */
:root{
  color-scheme:light;
  --black:#1a1a1a; --white:#fafafa; --grey-light:#e8e4df; --grey:#8a8278; --grey-dark:#555555;
  --beige:#f5f2ed; --beige-warm:#e8ddd0; --terracotta:#c4705a; --olive:#7a8b6f;
  --paper:#f3efe7; --frame:#4a443c; --grid:rgba(138,130,120,.13);
  --sans:"Noto Sans JP",system-ui,"Hiragino Kaku Gothic ProN",sans-serif;
  --serif:"Noto Serif JP","Hiragino Mincho ProN","Yu Mincho",serif;
  --w:720px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--white);color:var(--black);font-family:var(--sans);font-size:16.5px;line-height:2;letter-spacing:.03em;overflow-wrap:anywhere}
a{color:#a8553f;text-underline-offset:4px;text-decoration-thickness:1px}
a:focus-visible{outline:2px solid var(--terracotta);outline-offset:3px;border-radius:2px}
main{max-width:var(--w);margin:0 auto;padding:40px 20px 72px}
img{max-width:100%;height:auto}

header.site .site-in{max-width:1040px;margin:0 auto;padding:0 20px;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:64px}
.brand{display:inline-flex;align-items:center}
.brand img{display:block;height:28px;width:auto}
.nav{display:flex;gap:2px;flex-wrap:wrap;font-size:.86rem}
.nav a{color:var(--grey-dark);text-decoration:none;padding:8px 9px;border-radius:4px}
.nav a:hover{color:var(--black)}

.band-in{max-width:var(--w);margin:0 auto;padding:48px 20px 40px}
.band h1{font-family:var(--serif);font-weight:700;font-size:clamp(1.55rem,4.6vw,2.1rem);line-height:1.5;letter-spacing:.04em;margin:8px 0 14px}
.band .tags{margin:0 0 6px}
.band-kicker{margin:0;color:var(--grey-dark);font-size:.88rem}
.byline{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0;color:var(--grey-dark);font-size:.86rem}
.hero-name{font-family:var(--serif);font-weight:700;font-size:clamp(1.9rem,7vw,3rem);letter-spacing:.08em;line-height:1.45;margin:0 0 12px}
.hero-lead{margin:0;color:var(--grey-dark);max-width:30em}

.section-title{font-family:var(--serif);font-size:1.1rem;font-weight:700;margin:0 0 8px;letter-spacing:.06em}
.entries{list-style:none;margin:0 0 48px;padding:0}
.entry{display:grid;grid-template-columns:8.5em 1fr;gap:4px 24px;padding:32px 0;border-bottom:1px solid var(--grey-light)}
.entry .thumb{display:none}
.entry .when{color:var(--grey);font-size:.84rem;padding-top:3px;font-variant-numeric:tabular-nums}
.entry .title{display:block;font-family:var(--serif);font-weight:700;font-size:1.2rem;line-height:1.6;color:var(--black);text-decoration:none}
.entry .title:hover{color:#a8553f}
.entry .desc{margin:10px 0 14px;color:var(--grey-dark);font-size:.92rem;line-height:1.85;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.entry .tags{margin:0}
.empty{color:var(--grey);padding:24px 0}


.tags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px;padding:0;list-style:none}
.tags a{display:inline-block;font-size:.8rem;line-height:1.9;color:var(--grey-dark);border:1px solid var(--grey-light);background:#fff;border-radius:999px;padding:0 12px;text-decoration:none}
.tags a::before{content:"#";color:var(--terracotta);margin-right:2px}
.tags a:hover{border-color:var(--terracotta);color:var(--black)}
.draft{display:inline-block;color:#8a4b2a;background:#fbefe9;border:1px solid #efcfc3;font-size:.76rem;line-height:1.8;padding:0 8px;border-radius:4px;margin:0 8px 8px 0}

.post h2{font-family:var(--serif);font-weight:700;font-size:1.3rem;line-height:1.6;letter-spacing:.04em;margin:56px 0 16px;scroll-margin-top:16px}
.post h3{font-size:1.06rem;margin:36px 0 8px}
.post p{margin:0 0 1.4em}
.post li{margin-bottom:.3em}
.post strong{font-weight:700;background:linear-gradient(transparent 64%,var(--beige-warm) 64%)}
.post img{border-radius:6px;border:1px solid var(--grey-light)}
.post blockquote{margin:24px 0;padding:4px 18px;border-left:3px solid var(--beige-warm);color:var(--grey-dark)}
.post hr{border:none;border-top:1px solid var(--grey-light);margin:40px 0}
code{font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:.86em;background:var(--beige);padding:2px 6px;border-radius:4px}
pre{background:#fff;border:1px solid var(--grey-light);padding:16px 18px;border-radius:8px;overflow-x:auto;line-height:1.7;margin:0 0 1.6em}
pre code{background:none;padding:0;font-size:.84rem}
table{border-collapse:collapse;display:block;overflow-x:auto;font-size:.92rem;margin:24px 0}
th,td{border:1px solid var(--grey-light);padding:8px 12px;text-align:left;vertical-align:top}
th{background:var(--beige);font-weight:500}

.toc{background:#fff;border:1px solid var(--grey-light);border-radius:8px;padding:18px 22px;margin:0 0 40px}
.toc-title{margin:0 0 6px;font-weight:700;font-size:.92rem}
.toc ol{margin:0;padding-left:1.4em;font-size:.94rem;line-height:1.9}
.toc a{color:var(--black);text-decoration:none}
.toc a:hover{color:#a8553f;text-decoration:underline}

.writer{margin:64px 0 24px;padding:24px;background:var(--beige);border-radius:10px;font-size:.92rem;line-height:1.9;color:var(--grey-dark)}
.writer p{margin:0 0 .6em}
.writer p:last-child{margin:0}
.writer-name{font-family:var(--serif);font-weight:700;font-size:1.05rem;color:var(--black)}
.back{font-size:.92rem}

/* 継手の読み物の足し */
.meta{color:var(--grey);font-size:.86rem;margin:0 0 20px}
.lang{display:flex}
.lang-button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0 10px;font-size:14px}
.lang-button[aria-current=true]{color:var(--black);font-weight:700;background:linear-gradient(var(--terracotta),var(--terracotta)) center calc(100% - 8px)/22px 2px no-repeat}
.author{background:var(--beige);border-radius:8px;padding:12px 16px;font-size:.9rem;color:var(--grey-dark);margin:0 0 28px}
sup a{text-decoration:none;font-size:.75em}
.sources ol{padding-left:1.4em;font-size:.88rem;line-height:1.7}
.sources li{margin-bottom:6px}

footer.site .site-in{max-width:var(--w);margin:0 auto;padding:40px 20px 56px;font-size:.86rem;color:var(--grey-dark)}
.foot-brand{margin:0 0 6px}
.foot-brand img{display:block;height:22px;width:auto}
.foot-lead{margin:0 0 16px}
.foot-links{display:flex;flex-wrap:wrap;gap:4px 18px;margin:0 0 12px}
.foot-links a{color:var(--grey-dark);text-decoration:none}
.foot-links a:hover{color:var(--black);text-decoration:underline}
.copy{margin:0;color:var(--grey);font-size:.8rem}

/* ---- メニュー（スマホだけ。デスクトップは横並びの nav） ---- */
.menu{display:none;position:relative}
.menu summary{list-style:none;cursor:pointer;width:40px;height:40px;display:grid;place-content:center;gap:4px;border-radius:4px}
.menu summary::-webkit-details-marker{display:none}
.menu summary span{display:block;width:18px;height:2px;background:var(--black);transition:transform .15s}
.menu[open] summary span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.menu[open] summary span:nth-child(2){opacity:0}
.menu[open] summary span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.menu nav{position:absolute;right:0;top:44px;z-index:10;min-width:180px;background:#fff;border:1px solid var(--grey-light);box-shadow:0 8px 24px rgba(26,26,26,.08);padding:6px 0;display:flex;flex-direction:column}
.menu nav a{padding:9px 16px;color:var(--black);text-decoration:none;font-size:.86rem}
.menu nav a:hover{background:var(--beige)}
.d-short{display:none}

/* ---- スマホ: デスクトップの並びのまま、全体を小さく ---- */
@media (max-width:640px){
  body{font-size:14.5px;line-height:1.85}
  .nav{display:none}
  .menu{display:block}
  header.site .site-in{min-height:52px;padding:0 14px}
  .brand img{height:22px}
  main{padding:28px 16px 56px}
  .band-in{padding:28px 16px 26px}
  .band h1{font-size:1.25rem;line-height:1.55;margin:6px 0 10px}
  .byline{font-size:.76rem;gap:4px 12px}
  .hero-name{font-size:1.6rem;margin-bottom:8px}
  .hero-lead{font-size:.86rem}
  .section-title{font-size:.95rem}
  .entry{grid-template-columns:1fr;gap:0;padding:24px 0 26px}
  .entry .when{font-size:.72rem;padding:0;margin-bottom:4px}
  .d-long{display:none}.d-short{display:inline}
  .entry .title{font-size:1rem;line-height:1.55}
  .entry .desc{font-size:.82rem;line-height:1.75;margin:8px 0 12px}
  .tags{gap:6px}
  .tags a{font-size:.7rem;padding:0 9px}
  .draft{font-size:.68rem;padding:0 6px;margin-bottom:4px}
  .post h2{font-size:1.08rem;margin:40px 0 12px}
  .post h3{font-size:.98rem}
  .post p{margin-bottom:1.2em}
  pre code{font-size:.76rem}
  pre{padding:12px 14px}
  table{font-size:.8rem}
  .toc{padding:14px 16px;margin-bottom:28px}
  .toc ol{font-size:.84rem;line-height:1.8}
  .writer{padding:18px;font-size:.84rem;margin-top:48px}
  footer.site .site-in{padding:28px 16px 40px;font-size:.78rem}
}
/* 案 C「切れ目」: ロゴの斜めの切れ目（45° のテラコッタ）を、見出しの印・区切り線・帯の端に使う。
   白地に黒の太いゴシックの見出し、足元だけ黒。 */
header.site{background:#fff}
.band{background:#fff;border-bottom:1px solid var(--grey-light);position:relative}
.band::after{content:"";position:absolute;left:max(20px,calc(50% - 340px));bottom:-7px;width:64px;height:13px;background:var(--terracotta);transform:skewX(-45deg)}
.band h1,.hero-name,.post h2,.section-title,.entry .title,.writer-name{font-family:var(--sans)}
.hero-name{font-weight:700;letter-spacing:.04em;font-size:clamp(2rem,8vw,3.4rem);line-height:1.35}
.section-title{display:flex;align-items:center;gap:12px}
.section-title::before,.post h2::before{content:"";flex:none;width:22px;height:12px;background:var(--terracotta);transform:skewX(-45deg)}
.post h2{display:flex;align-items:center;gap:14px}
.entry{border-bottom:0;position:relative}
.entry::after{content:"";position:absolute;left:0;right:30px;bottom:0;height:1px;background:#cfc9c0}
.entry::before{content:"";position:absolute;right:2px;bottom:-4px;width:22px;height:9px;background:var(--terracotta);transform:skewX(-45deg)}
.entry .when{color:var(--terracotta);font-weight:500}
.tags a{border-radius:0;clip-path:polygon(6px 0,100% 0,calc(100% - 6px) 100%,0 100%);border:0;background:var(--grey-light);padding:0 14px}
.toc{border-radius:0;border:0;border-left:4px solid var(--black);background:var(--beige)}
.writer{border-radius:0;background:#fff;border:1px solid var(--black)}
footer.site{background:var(--black);color:#cfcac3;margin-top:24px}
footer.site .site-in{color:#cfcac3}
.foot-brand img{filter:invert(1) brightness(1.6)}
.foot-links a{color:#e8e4df}
.copy{color:#9a948c}
@media (max-width:640px){
  .hero-name{font-size:1.7rem}
  .band::after{left:16px;width:44px;height:9px;bottom:-5px}
  .section-title::before,.post h2::before{width:16px;height:9px}
  .post h2{gap:10px}
  .entry::before{width:16px;height:7px;bottom:-3px}
  .entry::after{right:22px}
}
