* { box-sizing: border-box; }
:root { color-scheme: light; font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; color: #23342b; background: #f4f6f4; }
body, h1, h2, p, ol { margin: 0; }
main { max-width: 90rem; margin: auto; padding: clamp(1.4rem,4vw,3.7rem) clamp(1rem,4vw,3.75rem) 4rem; }
header { padding-bottom: 1.65rem; border-bottom: 1px solid #bcc9c0; }
header p { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
header .page-count { margin: .45rem 0 0; color: #46584f; font-size: .9375rem; }
h1 { font: 600 clamp(1.8rem,3.5vw,3.05rem)/1.4 "Yu Mincho", "Hiragino Mincho ProN", serif; }
h1 span { white-space: nowrap; }
fieldset { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; border: 0; margin: 1.15rem 0; padding: 0; }
legend { float: left; margin-right: .4rem; font-size: .95rem; font-weight: 700; }
fieldset label { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; cursor: pointer; }
input { accent-color: #345642; width: 1rem; height: 1rem; margin: 0; }
.gallery { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2.1rem clamp(1.2rem,2.5vw,2.25rem); }
.gallery > li > a { display: block; text-decoration: none; color: inherit; }
.gallery a:focus-visible { outline: 3px solid #345642; outline-offset: 5px; }
.pictures { aspect-ratio: 1120/850; background: #fff; border: 1px solid #aebbb2; overflow: hidden; }
.pictures img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pictures .mobile { display: none; }
.gallery h2 { font-size: clamp(1rem,1.6vw,1.3rem); margin-top: .7rem; line-height: 1.5; }
.gallery h2 span { font-family: "Segoe UI", Arial, sans-serif; color: #516a5a; margin-right: .75em; font-variant-numeric: tabular-nums; }
.gallery a:hover h2 { text-decoration: underline; text-underline-offset: .2em; }
.sample-links { display: flex; flex-wrap: wrap; gap: 0 .95rem; margin-top: .15rem; }
.sample-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .875rem; color: inherit; text-underline-offset: .25em; }
main:has(#mobile:checked) .gallery { grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); }
main:has(#mobile:checked) .pictures { aspect-ratio: 390/844; }
main:has(#mobile:checked) .pc { display: none; }
main:has(#mobile:checked) .mobile { display: block; }
@media(max-width:42rem) {
  .gallery { grid-template-columns: 1fr; }
  main:has(#mobile:checked) .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem .8rem; }
}
