* { box-sizing: border-box; }
:root { color: #202928; background: #f7f5ed; font-family: "Yu Gothic", YuGothic, Meiryo, sans-serif; }
body { margin: 0; line-height: 1.65; }
.wrap { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
header { background: #192e29; color: #fff7e5; }
.masthead { padding-block: clamp(3rem, 8vw, 7rem) clamp(2.5rem, 6vw, 5rem); }
.mast-content { border-left: 4px solid #e6ab6e; padding-left: clamp(1rem, 4vw, 3.25rem); }
h1, h2 { font-family: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif; line-height: 1.18; margin: 0; }
h1 { font-size: clamp(1.75rem, 7vw, 5rem); letter-spacing: .035em; overflow-wrap: anywhere; }
.intro { font-size: clamp(.9rem, 2vw, 1.15rem); margin-block: 1rem 0; }
.status { color: #ebbd89; font-size: .9rem; margin-bottom: 0; }
.genres { display: flex; flex-wrap: wrap; gap: .5rem 1.15rem; padding-block: 1rem; border-bottom: 1px solid #c7c6b8; }
.genres a, .preview { color: inherit; }
.genres a { display: inline-block; padding: .45rem 0; text-underline-offset: .3em; }
.genres a:hover { color: #8b3b2d; }
.genre { --accent: #84422f; margin-block: 3rem 4rem; }
.genre-2 { --accent: #4a5a32; }
.genre-3 { --accent: #285580; }
.genre-4 { --accent: #7a3663; }
.genre-5 { --accent: #78521d; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; border-bottom: 2px solid var(--accent); padding-bottom: .8rem; margin-bottom: 1.25rem; }
.section-title h2 { font-size: clamp(1.35rem, 4vw, 2.35rem); color: var(--accent); }
.section-title span { font-size: .875rem; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.card { background: #fffdf7; border: 1px solid #d9d6c9; min-width: 0; }
.card:has(.preview) { border-color: #927158; }
.card-body { padding: 1rem 1.15rem; overflow-wrap: anywhere; }
.theme { color: var(--accent); font-size: .83rem; font-weight: 700; margin: 0 0 .3rem; }
h3 { margin: 0; font-size: 1.22rem; line-height: 1.4; }
.offer { font-size: .91rem; margin: .7rem 0; }
summary { cursor: pointer; font-size: .88rem; font-weight: 700; min-height: 44px; align-content: center; width: fit-content; }
details:not([open]) dl { display: none; }
dt { font-weight: 700; font-size: .8rem; color: var(--accent); }
dd { margin: 0 0 .7rem; font-size: .84rem; }
.preview { display: block; background: #1a1613; color: #fff6e8; text-decoration: none; }
.preview img { display: block; width: 100%; height: 13.5rem; object-fit: contain; background: #edebe1; }
.preview > span { display: flex; justify-content: space-between; padding: .6rem 1rem; gap: .7rem; }
.preview:hover > span { background: #4b2f1c; }
footer { border-top: 1px solid #c7c6b8; color: #4b514a; font-size: .875rem; padding-block: 1.2rem 2rem; }
:focus-visible { outline: 3px solid #326899; outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: 1rem; background: #fffdf7; padding: .5rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
@media(max-width: 940px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 510px) {
  .wrap { width: calc(100% - 2rem); }
  .cards { grid-template-columns: 1fr; }
  .genre { margin-block: 2.5rem 3rem; }
}
@media(min-width: 941px) {
  .cards:has(.card:not(.has-preview)) .has-preview { grid-row: span 2; }
}
