/* roulang page: index */
:root {
  --paper: #F4EEE4;
  --band: #EFE6D8;
  --ink: #241820;
  --muted: #6E5C55;
  --brand: #C4622D;
  --brand-deep: #A3531F;
  --pine: #2F5E56;
  --pine-soft: #E5F0EC;
  --plum: #C48B9A;
  --online: #6E8F4E;
  --line: #E4D9CC;
  --card: #FFFBF7;
  --shadow: 0 8px 18px rgba(36, 24, 32, 0.06);
  --radius: 3px;
  --nav-h: 64px;
  --tab-h: 64px;
  --max: 1180px;
  --gap: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
}
img, svg { max-width: 100%; display: block; }
button, input, select { font-family: inherit; font-size: inherit; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgba(244, 238, 228, 0.96);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-code {
  flex: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--pine);
  border: 1px solid var(--pine);
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.4;
}
.brand-name { font-weight: 700; font-size: 18px; white-space: nowrap; }
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
}
.menu-toggle:hover { border-color: var(--brand); color: var(--brand-deep); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 15px;
}
.site-nav a:hover { background: #F8F1E8; text-decoration: none; color: var(--brand-deep); }
.site-nav a.active { color: var(--brand-deep); background: #F8E7DA; font-weight: 700; }
.tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--card);
  border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.tabbar a.active { color: var(--brand-deep); font-weight: 700; }
.tabbar svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
main { display: block; }
.section { padding: 56px 0; }
.section.band { background: var(--band); }
.section-head { margin-bottom: 22px; max-width: 760px; }
.section h2, .entry-copy h1 {
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.section h2 { font-size: 28px; }
.lead { margin: 0; color: var(--ink); }
.kicker { font-size: 13px; color: var(--pine); margin: 0 0 8px; }
.entry-grid, .voice-grid, .case-grid, .gallery, .close-band, .foot-grid {
  display: grid;
  gap: 20px;
}
.entry-grid { grid-template-columns: 7fr 5fr; align-items: start; }
.entry-copy h1 { font-size: 40px; }
.subhead { margin: 0 0 12px; font-size: 18px; color: var(--pine); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--pine);
  font-size: 13px;
  padding: 2px 10px;
  line-height: 1.6;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-ghost:hover { background: var(--pine-soft); }
.infobox {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.film {
  display: grid;
  grid-template-columns: 18px 1fr 18px;
  background: #2A211C;
  min-height: 210px;
}
.sprocket {
  background-image: radial-gradient(circle at 50% 12px, #F4EEE4 5px, transparent 6px);
  background-size: 18px 28px;
  background-repeat: repeat-y;
}
.frame {
  margin: 16px 0;
  background:
    linear-gradient(160deg, rgba(196, 139, 154, 0.35), transparent 42%),
    linear-gradient(180deg, #8C5A3C, #2F5E56 78%);
  color: #FFFBF7;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  min-height: 180px;
}
.frame strong { font-size: 20px; font-weight: 700; }
.frame span, .still span, .demo-card span { font-size: 13px; opacity: 0.92; }
.meta-list, .def-list { margin: 0; padding: 14px; }
.meta-list { display: grid; grid-template-columns: 5.6em 1fr; gap: 8px 10px; font-size: 13px; }
.meta-list dt, .def-list dt { color: var(--muted); }
.meta-list dd, .def-list dd { margin: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--online); margin-right: 6px; }
.feature-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr;
  grid-template-areas:
    "play search search"
    "play update member";
  gap: 14px;
}
.f-play { grid-area: play; }
.f-search { grid-area: search; }
.f-update { grid-area: update; }
.f-member { grid-area: member; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
}
.card:hover, .news-item:hover, .letter:hover, .genre:hover, .still:hover {
  box-shadow: var(--shadow);
}
.card h3, .case-card h3, .voice-card h3, .news-copy h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.card p, .case-card p, .voice-card p, .news-copy p { margin: 0; }
.f-play { background: #2A211C; color: #FFFBF7; border-color: #2A211C; }
.f-play .tag { color: #F4EEE4; border-color: rgba(244,238,228,0.35); background: transparent; }
.scene-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.scene-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.scene-card b { display: block; margin-bottom: 6px; }
.gallery { grid-template-columns: 1.35fr 1fr; align-items: stretch; }
.demo-card, .still {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  color: #FFFBF7;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}
.demo-card { min-height: 320px; background: linear-gradient(145deg, #C4622D, #2A211C 70%); }
.stills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.still:nth-child(1) { background: linear-gradient(160deg, #C48B9A, #2F5E56); }
.still:nth-child(2) { background: linear-gradient(160deg, #8C5A3C, #241820); }
.still:nth-child(3) { background: linear-gradient(160deg, #2F5E56, #C4622D); }
.still:nth-child(4) { background: linear-gradient(160deg, #6E5C55, #C48B9A); }
.play-mark {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,251,247,0.7);
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.case-grid { grid-template-columns: 1.4fr 0.8fr; }
.case-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.path { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; font-size: 13px; color: var(--pine); }
.path i { font-style: normal; color: var(--brand); }
.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}
.ledger-col { padding: 18px 18px 8px; }
.ledger-col + .ledger-col { border-left: 1px solid var(--line); background: #FBF6EF; }
.price { font-size: 36px; font-weight: 700; color: var(--brand); margin: 6px 0 10px; line-height: 1; }
.price span { font-size: 14px; color: var(--muted); font-weight: 400; }
.ledger dl { display: grid; grid-template-columns: 6em 1fr; gap: 8px 8px; font-size: 15px; margin: 0; }
.ledger dt { color: var(--muted); }
.ledger dd { margin: 0; }
.plan-form {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr auto;
  gap: 12px;
  align-items: end;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .field select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}
.field input.is-error, .field select.is-error { border-color: var(--plum); background: #FDF6F7; }
.field input.is-success, .field select.is-success { border-color: var(--pine); background: var(--pine-soft); }
.form-msg { grid-column: 1 / -1; margin: 0; min-height: 1.5em; font-size: 14px; }
.form-msg.is-error { color: #8E4E5C; }
.form-msg.is-success { color: var(--pine); }
.masonry { columns: 3; column-gap: 12px; }
.review {
  break-inside: avoid;
  margin: 0 0 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.rev-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.stars { color: var(--brand); letter-spacing: 1px; }
.voice-grid { grid-template-columns: 1fr 1fr; }
.voice-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.voice-card.summary { grid-column: 1 / -1; background: #F8F1E8; }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.thumb {
  min-height: 112px;
  background: linear-gradient(145deg, #C48B9A, #2F5E56);
}
.news-item:nth-child(2) .thumb { background: linear-gradient(145deg, #C4622D, #241820); }
.news-item:nth-child(3) .thumb { background: linear-gradient(145deg, #2F5E56, #8C5A3C); }
.news-item:nth-child(4) .thumb { background: linear-gradient(145deg, #6E5C55, #C48B9A); }
.news-copy { padding: 12px 12px 12px 0; }
.more-row { margin-top: 14px; }
.index-board { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.letters, .genres { display: flex; flex-wrap: wrap; gap: 8px; }
.letter, .genre {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  min-width: 42px;
  text-align: center;
  padding: 8px 10px;
  color: var(--ink);
}
.letter:hover, .genre:hover { border-color: var(--brand); text-decoration: none; color: var(--brand-deep); }
.genre { border-radius: 999px; }
.index-label { font-size: 13px; color: var(--muted); margin: 12px 0 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.sheet { width: 100%; border-collapse: collapse; min-width: 640px; }
.sheet th, .sheet td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.sheet th { font-size: 13px; color: var(--pine); font-weight: 700; background: #F8F1E8; }
.sheet tr:last-child td { border-bottom: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 16px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -23px; top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand);
}
.timeline time { display: block; font-size: 13px; color: var(--muted); }
.def-list { display: grid; grid-template-columns: 8em 1fr; gap: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0 0 12px; }
.close-band {
  grid-template-columns: 1.5fr auto;
  align-items: center;
  background: #2A211C;
  color: #FFFBF7;
  border-radius: var(--radius);
  padding: 22px;
}
.close-band h2 { color: #FFFBF7; }
.close-band .lead { color: #F4EEE4; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 24px; background: #EFE6D8; }
.foot-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: flex-end; }
.copyright { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 1280px) {
  .entry-copy h1 { font-size: 36px; }
}
@media (max-width: 1024px) {
  .entry-grid, .gallery, .case-grid, .voice-grid, .foot-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "play search" "update member"; }
  .masonry { columns: 2; }
  .news-copy { padding: 12px; }
  .plan-form { grid-template-columns: 1fr 1fr; }
  .plan-form .btn { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .menu-toggle { display: inline-flex; }
  .site-header { height: auto; min-height: var(--nav-h); }
  .nav-bar { flex-wrap: wrap; height: auto; min-height: var(--nav-h); padding: 8px 0; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 8px;
  }
  .site-nav.is-open { display: flex; }
  .tabbar { display: flex; }
  main { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .section { padding: 36px 0; }
  .section h2, .entry-copy h1 { font-size: 26px; }
  .feature-grid, .ledger, .stills, .close-band, .plan-form, .def-list { grid-template-columns: 1fr; }
  .feature-grid { grid-template-areas: "play" "search" "update" "member"; }
  .ledger-col + .ledger-col { border-left: 0; border-top: 1px solid var(--line); }
  .masonry { columns: 1; }
  .news-item { grid-template-columns: 1fr; }
  .news-copy { padding: 0 12px 12px; }
  .thumb { min-height: 92px; }
  .foot-nav { justify-content: flex-start; }
  .table-wrap { border: 0; background: transparent; }
  table.sheet { min-width: 0; }
  .sheet thead { display: none; }
  .sheet tr { display: block; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
  .sheet td { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
  .sheet td::before { content: attr(data-label); color: var(--muted); }
  .sheet tr:last-child td:last-child, .sheet td:last-child { border-bottom: 0; }
}
@media (max-width: 520px) {
  .container { width: min(var(--max), calc(100% - 20px)); }
  .brand-name { font-size: 15px; }
  .scene-card { flex-basis: 84%; }
  .meta-list { grid-template-columns: 1fr; gap: 2px 0; }
  .meta-list div { display: contents; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* roulang page: category1 */
:root {
  --paper: #F4EEE4;
  --band: #EFE6D8;
  --ink: #241820;
  --muted: #6E5C55;
  --brand: #C4622D;
  --brand-deep: #A3531F;
  --pine: #2F5E56;
  --pine-soft: #E5F0EC;
  --plum: #C48B9A;
  --online: #6E8F4E;
  --line: #E4D9CC;
  --card: #FFFBF7;
  --shadow: 0 8px 18px rgba(36, 24, 32, 0.06);
  --radius: 3px;
  --nav-h: 64px;
  --tab-h: 64px;
  --max: 1180px;
  --gap: 16px;
}
/* roulang page: category1 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
}
img, svg { max-width: 100%; display: block; }
button, input, select { font-family: inherit; font-size: inherit; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
::selection { background: #F0C7B0; color: var(--ink); }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgba(244, 238, 228, 0.96);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-code {
  flex: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--pine);
  border: 1px solid var(--pine);
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.4;
}
.brand-name { font-weight: 700; font-size: 18px; white-space: nowrap; }
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
}
.menu-toggle:hover { border-color: var(--brand); color: var(--brand-deep); }
.menu-toggle:active { background: #F8E7DA; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 15px;
}
.site-nav a:hover { background: #F8F1E8; text-decoration: none; color: var(--brand-deep); }
.site-nav a.active { color: var(--brand-deep); background: #F8E7DA; font-weight: 700; }
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 251, 247, 0.98);
  border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.tabbar a svg { width: 18px; height: 18px; }
.tabbar a.active { color: var(--brand-deep); font-weight: 700; }
.tabbar a:hover { text-decoration: none; color: var(--brand-deep); }
main { display: block; }
.section { padding: 56px 0; }
.section.band { background: var(--band); }
.section.mast {
  padding: 28px 0 32px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.section-head { margin-bottom: 22px; max-width: 760px; }
.section h2, .mast h1 {
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.section h2 { font-size: 28px; }
.mast h1 { font-size: 40px; }
.mast h1::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 10px;
  background: var(--brand);
}
.lead { margin: 0; color: var(--ink); }
.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--pine);
  font-size: 13px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 4px rgba(110, 143, 78, 0.16);
}
.adult-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.mast-grid, .foot-grid { display: grid; gap: 20px; }
.mast-grid { grid-template-columns: 7fr 5fr; align-items: start; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--pine);
  font-size: 13px;
  padding: 2px 10px;
  line-height: 1.6;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-ghost:hover { background: var(--pine-soft); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
}
.card:hover, .entry-row:hover, .mosaic-card:hover {
  box-shadow: var(--shadow);
}
.card h3, .entry-body h3, .mosaic-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.card p, .entry-body p, .mosaic-card p { margin: 0; }
.stat-box { padding: 16px; }
.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}
.stat-list svg { width: 18px; height: 18px; color: var(--brand); margin-bottom: 8px; }
.stat-list strong { display: block; font-size: 22px; line-height: 1.2; color: var(--brand-deep); }
.stat-list span { font-size: 13px; color: var(--muted); }
.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
}
.filter-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.filter-panel h2 { font-size: 18px; }
.filter-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.filter-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 40px;
  padding: 6px 10px;
  cursor: pointer;
}
.filter-btn span { color: var(--muted); font-size: 13px; }
.filter-btn:hover { border-color: var(--brand); color: var(--brand-deep); }
.filter-btn.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.filter-btn.is-active span { color: #fff; }
.filter-btn:active { background: var(--brand-deep); color: #fff; }
.list-panel { min-width: 0; }
.entry-list { display: flex; flex-direction: column; gap: 12px; }
.entry-row {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.entry-row:hover { border-color: #E7C8B4; }
.thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  color: #FFFBF7;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  font-size: 13px;
}
.t1 { background: linear-gradient(145deg, #C4622D, #2A211C 72%); }
.t2 { background: linear-gradient(145deg, #2F5E56, #241820 74%); }
.t3 { background: linear-gradient(145deg, #C48B9A, #3A2A30 76%); }
.t4 { background: linear-gradient(160deg, #A3531F, #2F5E56); }
.t5 { background: linear-gradient(150deg, #6E8F4E, #241820 70%); }
.meta-line { margin-top: 8px; color: var(--muted); font-size: 13px; }
.info-frame {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-side { background: var(--pine); color: #F4EEE4; padding: 20px 18px; }
.info-side strong { display: block; font-size: 22px; margin: 8px 0; }
.info-side p { margin: 0; font-size: 14px; }
.info-col { padding: 18px 18px 16px; }
.info-col + .info-col { border-left: 1px solid var(--line); }
.info-col h3 { margin: 0 0 8px; font-size: 16px; }
.info-col p, .info-col li { font-size: 15px; }
.info-col ul { margin: 0; padding-left: 18px; }
.mosaic {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 14px;
}
.mosaic-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s ease;
}
.mosaic-card.wide { grid-row: span 2; }
.still {
  min-height: 140px;
  color: #FFFBF7;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-size: 13px;
}
.wide .still { min-height: 240px; }
.mosaic-copy { padding: 14px 14px 16px; }
.note-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.note-line div { padding: 18px; }
.note-line div + div { border-left: 1px solid var(--line); }
.note-line dt { font-weight: 700; margin-bottom: 6px; }
.note-line dd { margin: 0; color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 20px 18px; }
.timeline li::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--brand);
  border-radius: 50%;
  position: absolute;
  left: -6px;
  top: 8px;
}
.timeline time { display: block; color: var(--muted); font-size: 13px; }
.timeline strong { font-weight: 700; }
.qa {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  margin: 0 0 8px;
}
.qa summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--brand); font-size: 20px; line-height: 1; }
.qa[open] summary::after { content: "–"; }
.qa[open] { border-color: #E7C8B4; }
.qa p { margin: 0 0 14px; }
.close-band {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.close-links { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer {
  background: var(--ink);
  color: #F4EEE4;
  padding: 36px 0 28px;
}
.site-footer a { color: #F4EEE4; }
.site-footer .brand-code { color: #E7C8B4; border-color: #E7C8B4; }
.foot-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer p { margin: 8px 0 0; }
.copyright { color: #C9B8A4; font-size: 13px; margin: 18px 0 0; }
.is-error { border-color: var(--plum) !important; }
.is-success { border-color: var(--pine) !important; background: var(--pine-soft); }
[hidden] { display: none !important; }
@media (max-width: 1280px) {
  .mast h1 { font-size: 36px; }
}
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 210px 1fr; }
  .info-frame { grid-template-columns: 160px 1fr 1fr; }
  .mast h1 { font-size: 32px; }
  .section h2 { font-size: 26px; }
}
@media (max-width: 767px) {
  .menu-toggle { display: inline-flex; }
  .site-header { height: var(--nav-h); }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 8px;
    gap: 4px;
  }
  .site-nav.is-open { display: flex; }
  .tabbar { display: flex; }
  main { padding-bottom: 8px; }
  .site-footer { padding-bottom: calc(28px + var(--tab-h) + env(safe-area-inset-bottom)); }
  .section { padding: 40px 0; }
  .mast-grid, .catalog-layout, .info-frame, .mosaic, .note-line, .foot-grid, .close-band {
    grid-template-columns: 1fr;
  }
  .mosaic-card.wide { grid-row: auto; }
  .info-col + .info-col, .note-line div + div { border-left: 0; border-top: 1px solid var(--line); }
  .entry-row { grid-template-columns: 108px 1fr; }
  .entry-row .btn { grid-column: 1 / -1; }
  .close-band { align-items: flex-start; }
  .brand-name { font-size: 16px; }
}
@media (max-width: 520px) {
  .brand-code { display: none; }
  .brand-name { font-size: 15px; }
  .mast h1 { font-size: 28px; }
  .section h2 { font-size: 22px; }
  .stat-list { grid-template-columns: 1fr; }
  .entry-row { grid-template-columns: 1fr; }
  .thumb { min-height: 120px; }
  .btn, .filter-btn { width: 100%; }
}
@media (max-width: 375px) {
  .container { width: min(var(--max), calc(100% - 20px)); }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
