
  :root{--paper:#f7f3ea;--parchment:#f1e8d8;--sand:#e5d8c3;--sienna:#876347;--ink:#352c24;--muted:#76695d;--line:#d8c7b1;--dark:#493325;--gold:#b28a59;--surface:rgba(255,253,248,.85);--serif:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",Georgia,serif;--sans:"Hiragino Kaku Gothic ProN","Yu Gothic","Noto Sans JP",sans-serif;}
  *,*::before,*::after{box-sizing:border-box}
  html{scroll-behavior:smooth;scroll-padding-top:85px}
  body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--serif);font-size:15px;line-height:1.82;min-width:320px}
  body.menu-open{overflow:hidden}
  button,a,input{font:inherit}
  button{cursor:pointer}
  a{color:inherit;text-decoration:none}
  img{display:block;max-width:100%}
  svg{width:1em;height:1em;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
  :focus-visible{outline:3px solid #a86e32;outline-offset:4px}
  .visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
  .mobile-header{display:none}
  .sidebar{position:fixed;inset:0 auto 0 0;width:246px;z-index:30;background:linear-gradient(95deg,rgba(255,255,255,.43),transparent 65%),radial-gradient(circle at 5% 92%,#d7b88530,transparent 36%),#f0e4d1;border-right:1px solid #cfbda3;box-shadow:3px 0 16px #58422d0b;overflow:auto;scrollbar-width:thin}
  .sidebar::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.17;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E")}
  .side-inner{min-height:100%;display:flex;flex-direction:column;position:relative;z-index:1;padding:30px 19px 18px}
  .side-brand{text-align:center;padding:9px 6px 30px;border-bottom:1px solid #cbb491}
  .brand-mark{font-family:var(--serif);font-size:32px;letter-spacing:.085em;font-weight:700;line-height:1.35}
  .brand-sub{display:block;font-size:12px;letter-spacing:.17em;margin-top:9px;color:#735744}
  .brand-flourish{margin:14px auto -13px;width:100%;font-size:13px;color:#896f53;display:flex;align-items:center;gap:8px}
  .brand-flourish::before,.brand-flourish::after{content:"";height:1px;background:#baa080;flex:1}
  .site-nav{display:grid;gap:4px;margin:27px 0 20px}
  .nav-link{display:flex;align-items:center;gap:15px;border:0;background:transparent;width:100%;text-align:left;padding:9px 14px;border-radius:5px;color:#4a3728;font-size:17px;line-height:1.55;min-height:47px;transition:background .16s}
  .nav-link:hover{background:#e4d3bd}
  .nav-link.active{background:#dec8ad;box-shadow:inset 0 0 0 1px #b79a7750;font-weight:700}
  .nav-link svg{width:21px;height:21px;stroke-width:1.7}
  .about-link{border-top:1px solid #cbb491;border-radius:0;margin-top:5px;padding-top:24px}
  .side-footer{margin-top:auto;padding:22px 5px 8px;text-align:center}
  .side-footer .line{font-size:14px;letter-spacing:.13em;color:#795b44;line-height:2.2}
  .books{height:75px;display:flex;justify-content:center;align-items:end;gap:4px;margin-top:14px;opacity:.75}
  .books span{display:block;height:50px;width:17px;border:1px solid #674931;background:linear-gradient(90deg,#b69c76,#7a5435 10%,#8d653f 65%,#4f372b);box-shadow:inset 3px 0 #d9b78f75}
  .books span:nth-child(2){height:66px;background:linear-gradient(90deg,#65816a,#354e41)}
  .books span:nth-child(3){height:56px;transform:rotate(-9deg);background:linear-gradient(90deg,#bd9362,#805238)}
  .books span:nth-child(4){height:73px;background:linear-gradient(90deg,#7c5f52,#3d3b3c)}
  .books span:nth-child(5){height:42px;background:linear-gradient(90deg,#c3aa79,#786546)}
  .main{margin-left:246px;min-height:100vh}
  .hero{min-height:280px;display:grid;align-items:center;position:relative;overflow:hidden;background:#ede3d1;border-bottom:1px solid var(--line)}
  .hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,#f5ecdc 5%,#f5ecdcf8 34%,#f5ecdcd6 49%,#f5ecdc30 68%,transparent 85%),url('../images/bookshelf-hero.svg');background-position:center,right center;background-size:cover,auto 112%;background-repeat:no-repeat}
  .hero-copy{position:relative;z-index:1;max-width:740px;padding:35px clamp(28px,4.4vw,62px)}
  .overline{font-family:Georgia,serif;font-size:11px;letter-spacing:.34em;color:#8f7457;line-height:1.65;margin:0 0 10px}
  .hero-rule{height:1px;width:36px;background:#a48564;display:block;margin:0 0 15px}
  .hero h1{font-size:clamp(28px,3.2vw,44px);line-height:1.5;margin:0 0 14px;letter-spacing:.07em;font-weight:700}
  .hero p.intro{font-size:15px;line-height:1.9;letter-spacing:.03em;margin:0;color:#493d32}
  .content{padding:27px clamp(20px,3.2vw,48px) 60px;max-width:1520px;margin:auto}
  .sample-note{font-family:var(--sans);font-size:11px;color:#867869;margin:0 0 21px;line-height:1.6;padding:9px 12px;background:#efe4d3;border-left:2px solid #b99a75}
  .section{margin:0 0 30px;scroll-margin-top:86px}
  .section-head{display:flex;align-items:baseline;gap:13px;margin:0 0 13px}
  .section h2{font-size:25px;font-weight:700;line-height:1.5;letter-spacing:.075em;margin:0;white-space:nowrap}
  .section-line{border-top:1px solid #ccb99d;flex:1;transform:translateY(-4px)}
  .section-note{font-family:var(--sans);font-size:11px;color:#806b53;white-space:nowrap}
  .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
  .article-card{display:block;width:100%;text-align:left;border:1px solid #ded1be;padding:7px 7px 13px;background:rgba(255,252,246,.86);border-radius:5px;box-shadow:0 4px 15px #49352708;transition:box-shadow .18s,transform .18s}
  .article-card:hover{box-shadow:0 7px 21px #49352722;transform:translateY(-2px)}
  .article-card[hidden]{display:none}
  .card-img{width:100%;height:134px;object-fit:cover;border-radius:3px}
  .card-body{padding:9px 6px 0}
  .card-meta{display:flex;gap:8px;align-items:center;margin-bottom:7px}
  .tag{font-family:var(--sans);font-size:11px;font-weight:700;letter-spacing:.08em;border-radius:3px;padding:1px 8px;color:#fff;background:#588c9a;line-height:1.55;display:inline-block}
  .tag.rail{background:#588698}.tag.horse{background:#ae7772}.tag.history{background:#b4825d}.tag.game{background:#86769e}
  .card-kind{font-family:var(--sans);font-size:11px;color:#95836e}
  .article-card h3{font-size:17px;line-height:1.53;margin:0 0 7px;font-weight:700;letter-spacing:.02em}
  .article-card p{color:#766b60;font-size:13px;line-height:1.74;margin:0}
  .empty{padding:36px 10px;text-align:center;color:var(--muted);font-size:15px;border:1px dashed var(--line)}
  .feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
  .feature-card{border:1px solid #ded1be;background:#fcf9f2;border-radius:5px;padding:9px;display:flex;gap:11px;text-align:left;align-items:center;min-width:0}
  .feature-card:hover{background:#efe5d5}
  .feature-card img{width:35%;height:85px;object-fit:cover;border-radius:3px}
  .feature-card h3{font-size:16px;line-height:1.45;margin:6px 0 3px}
  .feature-card p{font-size:12px;line-height:1.5;color:var(--muted);margin:0}
  .feature-panel{border:1px solid #dfd0bc;background:#f9f4eb;padding:11px;display:grid;grid-template-columns:48% 1fr;gap:22px;align-items:center;border-radius:5px}
  .feature-panel img{width:100%;height:200px;object-fit:cover;border-radius:3px}
  .feature-panel h3{font-size:24px;line-height:1.5;margin:7px 0 8px}
  .feature-panel p{font-size:14px;color:#75685b;margin:0 0 8px;line-height:1.9}
  .underlined{font-size:13px;border-bottom:1px solid #ad8c69;padding-bottom:3px;display:inline-block}
  .site-footer{border-top:1px solid var(--line);padding:20px 30px 28px;display:flex;justify-content:space-between;gap:12px;align-items:center;color:#816e5d;font-family:var(--sans);font-size:12px}
  .site-footer a{text-decoration:underline;text-underline-offset:3px}
  .drawer-backdrop{display:none}
  dialog{border:1px solid #cbb79b;background:#fbf7ee;color:var(--ink);border-radius:6px;max-width:min(620px,calc(100% - 28px));width:100%;padding:28px 26px;box-shadow:0 28px 75px #1f160e5e}
  dialog::backdrop{background:rgba(29,22,15,.57)}
  .dialog-head{display:flex;justify-content:space-between;gap:16px;align-items:start}
  .dialog-head h2{margin:4px 0 8px;font-size:23px;line-height:1.5}
  .dialog-close{width:38px;height:38px;border:1px solid #d7c5aa;background:#f1e3ce;border-radius:3px;display:grid;place-items:center;flex-shrink:0}
  .dialog-img{margin:8px 0 15px;width:100%;height:190px;object-fit:cover;border-radius:3px}
  .dialog-text{font-size:15px;line-height:2}
  .dialog-note{font-size:12px;color:#8a755c;margin-bottom:0}
  @media(min-width:1420px){.cards{grid-template-columns:repeat(5,minmax(0,1fr))}.card-img{height:145px}}
  @media(max-width:1100px) and (min-width:761px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.feature-grid{grid-template-columns:1fr 1fr}.feature-card:last-child{display:none}.hero::before{background-image:linear-gradient(90deg,#f5ecdc 8%,#f5ecdce8 45%,transparent 95%),url('../images/bookshelf-hero.svg')}}
  @media(max-width:760px){
    html{scroll-padding-top:78px}
    .mobile-header{display:flex;position:sticky;top:0;z-index:25;align-items:center;justify-content:space-between;height:67px;padding:0 16px;background:#f2e7d6eF;border-bottom:1px solid #d5c2a6;backdrop-filter:blur(13px)}
    .mobile-logo{display:flex;flex-direction:column;gap:1px;font-size:20px;font-weight:700;letter-spacing:.13em;line-height:1.3}
    .mobile-logo small{font-size:9px;font-weight:500;letter-spacing:.13em;color:#81664c}
    .menu-toggle{border:1px solid #c5aa8c;background:#f7f0e6;color:#473729;border-radius:3px;min-height:42px;padding:0 12px;display:flex;align-items:center;gap:7px;font-family:var(--sans);font-size:12px}
    .menu-toggle svg{width:21px;height:21px}
    .sidebar{transform:translateX(-110%);transition:transform .25s ease;width:min(288px,83vw);box-shadow:0 0 30px #221a1355}
    body.menu-open .sidebar{transform:translateX(0)}
    .drawer-backdrop{display:block;position:fixed;inset:0;background:#17120ca8;z-index:28;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s;border:0;width:100%}
    body.menu-open .drawer-backdrop{opacity:1;visibility:visible}
    .side-inner{padding-top:22px}
    .main{margin-left:0}
    .hero{min-height:0;display:flex;flex-direction:column;align-items:stretch;background:#f3e9d9}
    .hero::before{content:"";position:relative;display:block;width:100%;height:206px;background-image:linear-gradient(0deg,#ede2c5aa 0%,transparent 48%),url('../images/bookshelf-hero.svg');background-size:cover;background-position:70% 52%}
    .hero-copy{width:100%;padding:23px 22px 26px;background:linear-gradient(180deg,#f4ebdc,#f1e5d2)}
    .overline{font-size:10px;margin-bottom:7px;letter-spacing:.23em}
    .hero-rule{margin-bottom:8px}
    .hero h1{font-size:clamp(25px,6vw,35px);line-height:1.55;letter-spacing:.05em;margin-bottom:9px}
    .hero p.intro{font-size:13px;line-height:1.9}
    .content{padding:20px 15px 35px}
    .sample-note{margin:0 1px 23px;font-size:11px}
    .section{margin-bottom:28px}
    .section h2{font-size:23px;white-space:normal}
    .section-head{gap:8px;margin-bottom:12px}
    .section-note{display:none}
    .cards{grid-template-columns:1fr;gap:11px}
    .article-card{display:flex;align-items:stretch;padding:7px;gap:13px;min-height:148px}
    .article-card .card-img{width:37%;height:auto;min-height:137px;max-height:185px;flex-shrink:0;object-fit:cover}
    .card-body{padding:4px 3px 2px 0;min-width:0}
    .card-meta{margin-bottom:6px}
    .article-card h3{font-size:16px;line-height:1.5;margin-bottom:5px}
    .article-card p{font-size:12px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
    .feature-grid{grid-template-columns:1fr;gap:10px}
    .feature-card img{width:32%;height:94px}
    .feature-panel{grid-template-columns:1fr;gap:13px}
    .feature-panel img{height:175px}
    .feature-panel h3{font-size:21px;margin:4px 0 6px}
    .feature-panel p{font-size:13px}
    .site-footer{padding:18px 17px;flex-direction:column;align-items:flex-start}
  }
  @media(max-width:365px){.hero::before{height:182px}.hero h1{font-size:24px}.card-img{min-height:125px!important}.article-card{gap:9px}.article-card h3{font-size:15px}.article-card p{font-size:11px}.tag{font-size:10px}}
  @media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}


/* 公開版：全て実在する記事へのリンク。ホームの画像は読込幅に応じて縮小表示。 */
.cards .article-card .card-img{width:100%;height:205px;object-fit:cover;background:#e5ddd0;}
.about-text{max-width:765px;margin:.45rem 0 1.1rem;color:#675b4f;font-size:15px;line-height:1.8}
.history-subnav{display:flex;gap:.65rem;flex-wrap:wrap;margin:0 0 1.2rem}
.history-subnav[hidden]{display:none}
.history-subnav button{padding:.5rem .9rem;border:1px solid #b7a78d;border-radius:2rem;
  color:#5f4432;background:#f4ecdd;cursor:pointer;font-size:14px}
.history-subnav button[aria-pressed="true"]{background:#65503c;color:#fff;border-color:#65503c}
.history-subnav button:focus-visible{outline:3px solid #368bc1;outline-offset:2px}
@media(max-width:760px){.cards .article-card .card-img{height:180px}}
