/* KAE ROOM 共通スタイル（法務ページ・コラム用）
   トークンは index.html と同じ値（東リ ピタフィー準拠） */
:root{
  color-scheme:light;
  --ground:#F8F8F8;
  --surface:#FFFFFF;
  --surface-2:#EDEDED;
  --ink:#505050;
  --muted:#7D7E78;
  --line:#D8D8D8;
  --line-soft:#EDEDED;
  --sage:#99AB9C;   --t-sage:#EDEFE7;
  --blue:#99A5BA;   --t-blue:#EAEFF2;
  --rose:#B89F98;   --t-rose:#F2ECE7;
  --brown:#836450;
  --brand:#4B7D64;
  --brand-2:#5C8B71;
  --brand-oak:#C09060;
  --ink-strong:#2E3030;
  --accent:#4B7D64;
  --shadow:rgba(80,80,80,.16);
  --f-body:"Noto Sans JP","ヒラギノ角ゴシック Pro","Hiragino Kaku Gothic Pro",游ゴシック体,"Yu Gothic",YuGothic,メイリオ,Meiryo,sans-serif;
  --f-util:"Quicksand","Noto Sans JP",sans-serif;
  --pad:clamp(20px,5vw,64px);
  --maxw:820px;
}
*{box-sizing:border-box}
body{
  margin:0;background:var(--ground);color:var(--ink);
  font-family:var(--f-body);font-size:16px;line-height:1.9;
  -webkit-font-smoothing:antialiased;
  word-break:auto-phrase;overflow-wrap:break-word;
}
p,li,td,th,dd,dt,summary,figcaption{text-wrap:pretty}
img{max-width:100%;height:auto}
a{color:var(--accent)}
a:hover{text-decoration:none}
:where(a,button,summary):focus-visible{outline:2px solid var(--accent);outline-offset:3px}

.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--pad)}

/* ── ヘッダー ─────────────────────────────────── */
.site-head{border-bottom:1px solid var(--line);background:var(--surface)}
.site-head .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:18px}
.site-head a.logo{
  display:inline-flex;align-items:center;gap:12px;
  font-family:var(--f-util);letter-spacing:.14em;font-size:16px;font-weight:500;
  color:var(--ink-strong);text-decoration:none;
}
.site-head a.logo b{font-weight:700;color:var(--brand-2)}
.wordmark{font-family:var(--f-util);font-size:14px;font-weight:500;letter-spacing:.14em;color:var(--ink-strong)}
.wordmark b{font-weight:700;color:var(--brand-2)}
.site-head a.logo::before{
  content:"";display:block;width:30px;height:40px;flex:none;
  background:url("/images/logo.png") center/contain no-repeat;
}
.site-foot .brandline{display:inline-flex;align-items:center;gap:10px}
.site-foot .brandline::before{
  content:"";display:block;width:24px;height:32px;flex:none;
  background:url("/images/logo.png") center/contain no-repeat;
}
.site-head nav{display:flex;gap:18px;font-size:13px}
.site-head nav a{color:var(--muted);text-decoration:none}
.site-head nav a:hover{color:var(--accent)}

/* ── 本文 ────────────────────────────────────── */
main{padding-block:clamp(40px,7vw,80px)}
.eyebrow{
  font-family:var(--f-util);font-size:14px;letter-spacing:.16em;
  color:var(--brand-2);margin:0 0 10px;font-weight:600;
}
h1{
  font-size:clamp(24px,4vw,36px);color:var(--ink-strong);font-weight:700;line-height:1.45;
  margin:0 0 10px;text-wrap:balance;letter-spacing:.01em;
}
h2{
  font-size:clamp(18px,2.4vw,23px);color:var(--ink-strong);font-weight:700;line-height:1.5;
  margin:clamp(38px,6vw,58px) 0 14px;padding-bottom:10px;
  border-bottom:1px solid var(--line);text-wrap:balance;
}
h3{font-size:17px;color:var(--ink-strong);font-weight:700;margin:28px 0 8px;line-height:1.6}
p{margin:0 0 16px}
.lead{font-size:clamp(15px,1.7vw,18px);color:var(--ink);margin-bottom:26px}
.updated{font-family:var(--f-util);font-size:12px;letter-spacing:.1em;color:var(--muted)}

ul,ol{margin:0 0 18px;padding-left:1.4em}
li{margin-bottom:8px}

/* ── 定義リスト（特商法・会社概要）───────────────── */
.dl{
  display:grid;grid-template-columns:1fr;gap:0;
  border-top:1px solid var(--line);margin:0 0 22px;
}
@media(min-width:640px){.dl{grid-template-columns:11em 1fr}}
.dl dt{
  padding:16px 0 4px;font-weight:700;font-size:14.5px;
}
.dl dd{
  margin:0;padding:0 0 16px;border-bottom:1px solid var(--line);
  font-size:14.5px;
}
@media(min-width:640px){
  .dl dt{padding:16px 16px 16px 0;border-bottom:1px solid var(--line)}
  .dl dd{padding:16px 0}
}

.note{
  border:1px dashed var(--brown);padding:14px 18px;
  font-size:13.5px;color:var(--muted);margin:0 0 22px;
}
.callout{background:var(--t-sage);padding:18px 20px;margin:0 0 22px;font-size:14.5px}
.callout p:last-child{margin-bottom:0}

table{border-collapse:collapse;width:100%;font-size:14.5px;margin:0 0 22px}
th,td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
thead th{
  background:var(--surface-2);font-family:var(--f-util);
  font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
}
.tablewrap{overflow-x:auto;border:1px solid var(--line-soft);background:var(--surface);margin:0 0 22px}

/* ── フッター ─────────────────────────────────── */
.site-foot{border-top:1px solid var(--line);padding-block:30px;font-size:12.5px;color:var(--muted)}
.site-foot .wrap{display:flex;flex-wrap:wrap;gap:12px 22px;justify-content:space-between;align-items:center}
.site-foot nav{display:flex;flex-wrap:wrap;gap:16px}
.site-foot a{color:var(--muted);text-decoration:none}
.site-foot a:hover{color:var(--accent)}

.backlink{display:inline-block;margin-top:34px;font-size:14px}

/* ── コラム ────────────────────────────────────── */
.breadcrumb{
  font-size:12.5px;color:var(--muted);margin:0 0 18px;
  display:flex;flex-wrap:wrap;gap:6px;align-items:center;
}
.breadcrumb a{color:var(--muted);text-decoration:none}
.breadcrumb a:hover{color:var(--accent)}
.breadcrumb span[aria-hidden]{opacity:.5}

.article h2{
  margin-top:clamp(44px,7vw,66px);
  border-bottom:0;padding-bottom:0;
  padding-left:16px;border-left:4px solid var(--brand);
}
.article h3{margin-top:34px}
.article p{line-height:2.0}
.article > p:first-of-type{font-size:clamp(15px,1.7vw,17px)}

.toc{
  background:var(--surface);border:1px solid var(--line-soft);
  padding:22px 24px;margin:0 0 34px;
}
.toc__ttl{
  font-family:var(--f-util);font-size:13px;font-weight:600;letter-spacing:.14em;
  color:var(--brand-2);margin:0 0 12px;
}
.toc ol{margin:0;padding-left:1.3em;font-size:14.5px}
.toc li{margin-bottom:7px}
.toc a{color:var(--ink);text-decoration:none}
.toc a:hover{color:var(--accent);text-decoration:underline}

.point{
  background:var(--t-sage);border-left:4px solid var(--brand);
  padding:18px 22px;margin:26px 0;font-size:14.5px;line-height:1.95;
}
.point p:last-child{margin-bottom:0}
.point b{color:var(--ink-strong)}

.warn{
  background:var(--t-rose);border-left:4px solid var(--rose);
  padding:18px 22px;margin:26px 0;font-size:14.5px;line-height:1.95;
}
.warn p:last-child{margin-bottom:0}

.cta-box{
  background:var(--brand);color:#fff;
  padding:clamp(26px,4vw,38px);margin:clamp(40px,6vw,60px) 0 0;
  display:flex;flex-direction:column;gap:14px;
}
.cta-box h2{margin:0;color:#fff;border-left:0;padding-left:0;font-size:clamp(19px,2.4vw,24px)}
.cta-box p{margin:0;font-size:14.5px;line-height:1.95;color:rgba(255,255,255,.92)}
.cta-box__row{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.cta-box a{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:52px;padding:0 26px;font-size:15px;font-weight:500;
  text-decoration:none;background:#fff;color:var(--brand);border:1px solid #fff;
}
.cta-box a.ghost{background:transparent;color:#fff}
.cta-box a:hover{opacity:.88}

/* 記事一覧 */
.post-list{display:flex;flex-direction:column;gap:0;border-top:1px solid var(--line)}
.post{
  display:grid;gap:6px;padding:24px 0;border-bottom:1px solid var(--line);
  text-decoration:none;color:inherit;
}
.post:hover .post__ttl{color:var(--accent)}
.post__meta{
  font-family:var(--f-util);font-size:11.5px;letter-spacing:.12em;color:var(--muted);
  display:flex;gap:12px;flex-wrap:wrap;align-items:center;
}
.post__tag{background:var(--t-sage);color:var(--brand);padding:2px 9px;letter-spacing:.06em}
.post__ttl{font-size:clamp(17px,2.2vw,20px);font-weight:700;line-height:1.6;color:var(--ink-strong);margin:0}
.post__ex{font-size:14px;color:var(--muted);line-height:1.85;margin:0}

.fig{margin:30px 0;display:flex;flex-direction:column;gap:10px}
.fig img{display:block;width:100%;height:auto;border:1px solid var(--line-soft);background:var(--surface-2)}
.fig figcaption{font-size:13px;color:var(--muted);line-height:1.8}
.fig--hero{margin:26px 0 34px}
.fig--hero img{aspect-ratio:16/9;object-fit:cover}
.fig:not(.fig--hero) img{aspect-ratio:3/2;object-fit:cover}
/* 画像が無い枠は非表示にする */
.fig img:not([src]),.fig img[src=""]{display:none}
/* 割付の図解は全体を見せる（トリミングしない） */
.fig--diagram img{aspect-ratio:auto;object-fit:contain;background:#F5F3EF}
