/* 見本サイト 8 つの共通の土台（build.py が各サイトに base.css として写す） */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body{margin:0;word-break:auto-phrase;line-break:strict;overflow-wrap:anywhere}
img,svg{display:block;max-width:100%}
img{height:auto}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
ul,ol{margin:0;padding:0;list-style:none}
h1,h2,h3,h4,h5,p,figure,dl,dd,blockquote{margin:0}
table{border-collapse:collapse}
:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* 公開したときに見る人を誤らせないための札（撮影のときは ?capture=1 で隠す） */
.sample-badge{position:fixed;right:14px;bottom:14px;z-index:999;background:rgba(18,18,18,.86);color:#fff;font:500 11.5px/1.5 "Noto Sans JP",system-ui,sans-serif;letter-spacing:.04em;padding:7px 12px;border-radius:999px;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.sample-badge a{text-decoration:underline;text-underline-offset:2px}
.sample-note{font:400 12px/1.8 "Noto Sans JP",system-ui,sans-serif;opacity:.75}
html.capture .sample-badge{display:none}
/* スマホのメニュー（各サイトが色を --menu-bg・--menu-fg で決める） */
.m-menu{position:fixed;inset:0;z-index:200;display:none;flex-direction:column;gap:6px;padding:88px 28px 28px;background:var(--menu-bg,#fff);color:var(--menu-fg,#111)}
.m-menu a{font-size:20px;padding:12px 0;border-bottom:1px solid currentColor;border-color:color-mix(in srgb,currentColor 14%,transparent)}
html.menu-open .m-menu{display:flex}
html.menu-open body{overflow:hidden}
.m-burger{display:none;width:40px;height:40px;align-items:center;justify-content:center;position:relative;z-index:201}
.m-burger i{display:block;width:20px;height:1.5px;background:currentColor;position:relative}
.m-burger i::before,.m-burger i::after{content:"";position:absolute;left:0;width:20px;height:1.5px;background:currentColor}
.m-burger i::before{top:-6px}.m-burger i::after{top:6px}
html.menu-open .m-burger i{background:transparent}
html.menu-open .m-burger i::before{top:0;transform:rotate(45deg)}
html.menu-open .m-burger i::after{top:0;transform:rotate(-45deg)}
@media (max-width:860px){.m-burger{display:inline-flex}}
/* フッターのリンクは、狭い画面で行ごとに折り返す */
footer nav{flex-wrap:wrap;row-gap:10px}
footer nav a{white-space:nowrap}
