*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
ul,ol{list-style:none}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

:root{
  --bg:#f5f3ec;--paper:#fffdf7;--ink:#26302a;--accent:#b1502f;--accent2:#94401f;
  --forest:#2f4a3c;--forest2:#3c5b4b;--soft:#eae6d8;--line:#ddd6c4;
  --muted:#5f6b62;--foot-bg:#26302a;--foot-fg:#eef0e9;
  --ff-disp:'Zen Old Mincho',serif;--ff-body:'Murecho',sans-serif;
  --sb:270px;--maxw:760px;--radius:4px;
}
body{font-family:var(--ff-body);background:var(--bg);color:var(--ink);line-height:1.9;font-size:16px}

.layout{display:grid;grid-template-columns:var(--sb) 1fr;min-height:100vh}
.sidebar{position:fixed;top:0;left:0;bottom:0;width:var(--sb);background:var(--forest);color:var(--foot-fg);display:flex;flex-direction:column;padding:40px 30px;overflow-y:auto}
.sb-brand{font-family:var(--ff-disp);font-weight:700;font-size:21px;line-height:1.4;color:#fff;margin-bottom:6px;display:block}
.sb-brand small{display:block;font-family:var(--ff-body);font-size:11px;letter-spacing:.28em;color:var(--accent);margin-top:8px;font-weight:500}
.sb-nav{margin-top:44px;flex:1}
.sb-nav ul{display:flex;flex-direction:column;gap:2px}
.sb-nav a{display:flex;align-items:baseline;gap:12px;padding:11px 12px;border-radius:var(--radius);color:rgba(238,240,233,.72);font-size:14.5px;transition:.22s;position:relative}
.sb-nav .idx{font-family:var(--ff-disp);font-size:12px;color:var(--accent);min-width:20px;font-weight:700}
.sb-nav a:hover{background:rgba(255,255,255,.06);color:#fff}
.sb-nav a.is-active{background:var(--accent);color:#fff}
.sb-nav a.is-active .idx{color:#fff}
.sb-foot{margin-top:30px;padding-top:22px;border-top:1px solid rgba(255,255,255,.14);font-size:11.5px;color:rgba(238,240,233,.5);line-height:1.7}
.content{grid-column:2;display:flex;flex-direction:column;min-width:0}

.topbar{display:none;position:sticky;top:0;z-index:80;background:var(--forest);color:#fff;align-items:center;justify-content:space-between;padding:14px 20px}
.topbar .tb-brand{font-family:var(--ff-disp);font-weight:700;font-size:17px}
.burger{width:44px;height:44px;background:none;border:none;cursor:pointer;flex-direction:column;justify-content:center;gap:5px;padding:8px;display:flex}
.burger span{display:block;height:2px;background:#fff;transition:.3s}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.home-hero{padding:96px 56px 60px;max-width:900px}
.home-hero .k{font-family:var(--ff-body);letter-spacing:.28em;font-size:12px;color:var(--accent);margin-bottom:22px;font-weight:600}
.home-hero h1{font-family:var(--ff-disp);font-weight:700;font-size:clamp(30px,4.6vw,50px);line-height:1.42;margin-bottom:26px;letter-spacing:.01em}
.home-hero .intro{color:var(--muted);font-size:17px;line-height:2.05;max-width:60ch}
.home-hero .rule{width:60px;height:3px;background:var(--accent);margin:38px 0 0}

.index-list{padding:24px 56px 90px;max-width:900px}
.ix-lead{color:var(--muted);margin-bottom:20px;max-width:56ch}
.ix-row{display:grid;grid-template-columns:88px 1fr;gap:0;border-top:1px solid var(--line);transition:.25s}
.ix-row:last-child{border-bottom:1px solid var(--line)}
.ix-row a{display:contents}
.ix-num{font-family:var(--ff-disp);font-weight:700;font-size:38px;color:var(--line);padding:30px 0 30px 6px;transition:.25s;line-height:1}
.ix-body{padding:30px 10px 30px 20px;border-left:1px solid var(--line);transition:.25s}
.ix-body h3{font-family:var(--ff-disp);font-weight:700;font-size:21px;margin-bottom:8px;display:flex;align-items:center;gap:14px}
.ix-body h3 .arrow{margin-left:auto;color:var(--line);font-size:20px;transition:.25s}
.ix-body p{color:var(--muted);font-size:14.5px;line-height:1.85;max-width:52ch}
.ix-row:hover{background:var(--paper)}
.ix-row:hover .ix-num{color:var(--accent)}
.ix-row:hover .ix-body{border-left-color:var(--accent)}
.ix-row:hover .arrow{color:var(--accent);transform:translateX(4px)}

.article{padding:70px 56px 40px;max-width:940px}
.art-head{margin-bottom:56px}
.art-head .eyebrow{font-family:var(--ff-body);letter-spacing:.26em;font-size:11.5px;color:var(--accent);font-weight:600;margin-bottom:16px}
.art-head .step{font-family:var(--ff-disp);font-size:13px;color:var(--muted);margin-bottom:10px;letter-spacing:.06em}
.art-head h1{font-family:var(--ff-disp);font-weight:700;font-size:clamp(28px,4.4vw,42px);line-height:1.4;margin-bottom:18px}
.art-head .lead{color:var(--muted);font-size:16.5px;max-width:60ch;line-height:2}
.sec{display:grid;grid-template-columns:200px 1fr;gap:36px;padding:40px 0;border-top:1px solid var(--line)}
.sec-h{position:relative}
.sec-h h2{font-family:var(--ff-disp);font-weight:700;font-size:clamp(18px,2.6vw,23px);line-height:1.5;position:sticky;top:30px}
.sec-h h2::before{content:"";display:block;width:34px;height:3px;background:var(--accent);margin-bottom:14px}
.sec-b p{margin-bottom:16px;line-height:2.0}
.sec-b p:last-child{margin-bottom:0}
.sec-fig{margin-top:18px}
.sec-fig img{border-radius:var(--radius);width:100%;aspect-ratio:16/10;object-fit:cover;box-shadow:0 16px 34px -24px rgba(38,48,42,.55)}
@media(max-width:760px){.sec{grid-template-columns:1fr;gap:16px;padding:32px 0}.sec-h h2{position:static}}

.pager{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:44px 56px 84px;max-width:940px}
.pager a{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;transition:.25s}
.pager a:hover{border-color:var(--accent);background:#fff}
.pager small{display:block;color:var(--accent2);font-size:11.5px;margin-bottom:6px;letter-spacing:.14em;font-weight:600}
.pager span{font-family:var(--ff-disp);font-weight:700;font-size:16px}
.pager .next{text-align:right}
.pager .empty{visibility:hidden}
@media(max-width:520px){.pager{grid-template-columns:1fr}}

.sitemap-wrap{padding:70px 56px 40px;max-width:820px}
.sitemap-list{border-top:2px solid var(--forest)}
.sitemap-list li{border-bottom:1px solid var(--line)}
.sitemap-list a{display:grid;grid-template-columns:48px 1fr;gap:6px 18px;padding:26px 8px;transition:.22s;align-items:baseline}
.sitemap-list a:hover{background:var(--paper)}
.sitemap-list .sm-no{font-family:var(--ff-disp);font-weight:700;color:var(--accent);font-size:15px;grid-row:1 / span 2}
.sitemap-list .sm-title{font-family:var(--ff-disp);font-weight:700;font-size:18px}
.sitemap-list .sm-desc{color:var(--muted);font-size:14.5px;grid-column:2}

.site-footer{background:var(--foot-bg);color:var(--foot-fg);margin-top:auto}
.ft-in{padding:52px 56px 22px;display:flex;justify-content:space-between;align-items:flex-end;gap:30px;flex-wrap:wrap}
.ft-name{font-family:var(--ff-disp);font-weight:700;font-size:22px}
.ft-name small{display:block;font-family:var(--ff-body);font-size:11px;letter-spacing:.24em;color:var(--accent);margin-top:8px;font-weight:500}
.ft-nav ul{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:13.5px;justify-content:flex-end}
.ft-nav a{opacity:.8;transition:.2s}
.ft-nav a:hover{opacity:1;color:var(--accent)}
.ft-copy{padding:16px 56px;border-top:1px solid rgba(255,255,255,.12);font-size:12px;opacity:.55}

.to-top{position:fixed;right:20px;bottom:20px;width:46px;height:46px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;opacity:0;pointer-events:none;transform:translateY(12px);transition:.3s;z-index:60;box-shadow:0 8px 20px -8px rgba(0,0,0,.5)}
.to-top.show{opacity:1;pointer-events:auto;transform:none}
.reveal{opacity:1;transform:none;transition:opacity .7s ease,transform .7s ease}
.js .reveal{opacity:0;transform:translateY(22px)}
.js .reveal.in{opacity:1;transform:none}

@media(max-width:900px){
  :root{--sb:0px}
  .layout{grid-template-columns:1fr}
  .sidebar{position:fixed;transform:translateX(-100%);width:280px;transition:transform .3s ease;z-index:90;padding:32px 26px}
  .sidebar.open{transform:none}
  .content{grid-column:1}
  .topbar{display:flex}
  .home-hero,.index-list,.article,.pager,.sitemap-wrap,.ft-in,.ft-copy{padding-left:24px;padding-right:24px}
  .ft-in{flex-direction:column;align-items:flex-start}
  .ft-nav ul{justify-content:flex-start}
  .scrim{position:fixed;inset:0;background:rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:.3s;z-index:85}
  .scrim.show{opacity:1;pointer-events:auto}
}
