:root {
  color-scheme: light;
  --ink: #1e2228;
  --muted: #4b535e;
  --paper: #f7f7f4;
  --line: #d6d8d6;
  --accent: #283cb8;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); line-height: 1.7; }
main { flex: 1; }
a { color: var(--accent); text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid #375bd9; outline-offset: 4px; }
.skip { position: absolute; z-index: 2; inset: .5rem auto auto .5rem; padding: .5rem 1rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell { width: min(69rem, calc(100% - 3rem)); margin-inline: auto; }
.site-header, .site-footer { background: var(--paper); }
.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 5rem; }
.footer-inner { min-height: 4.5rem; color: var(--muted); font-size: .9rem; }
.brand { display: inline-flex; align-items: center; color: var(--ink); font: 800 1.55rem/1 system-ui, sans-serif; letter-spacing: -.065em; text-decoration: none; }
.brand-dot { color: var(--accent); }
.mark { display: block; width: 2.25rem; height: auto; flex: none; }
.brand .mark { margin-inline-end: .6rem; }
nav { display: flex; flex-wrap: wrap; gap: .3rem; }
nav a { color: var(--muted); font-size: .9rem; font-weight: 700; text-decoration: none; padding: .55rem .75rem; border-radius: .5rem; }
nav a:hover, nav a[aria-current] { background: #eaece7; color: var(--ink); }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 28rem; margin-top: 3rem; border-radius: 1.5rem; overflow: hidden; background: #e7edff; }
.hero-copy { align-self: center; padding: clamp(1.5rem, 5vw, 4rem); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.35rem, 5vw, 4.35rem); line-height: 1.18; letter-spacing: -.045em; font-weight: 800; }
.hero p { max-width: 25rem; margin-top: 1.4rem; color: var(--muted); }
.button { display: inline-block; margin-top: 1.5rem; padding: .8rem 1.3rem; border-radius: .55rem; background: var(--ink); color: white; font-weight: 700; text-decoration: none; }
.button:hover { background: #353c47; }
.hero-art { position: relative; overflow: hidden; min-height: 15rem; background: #2839a9; isolation: isolate; }
.art-grid { position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(#aebcff 1px, transparent 1px), linear-gradient(90deg, #aebcff 1px, transparent 1px); background-size: 2rem 2rem; mask-image: linear-gradient(135deg, black, transparent); }
.art-tile { position: absolute; display: grid; border-radius: 1.15rem; width: clamp(5.25rem, 12vw, 9rem); aspect-ratio: 1; box-shadow: 0 1rem 2rem #131e703f; }
.art-sheet { top: 20%; left: 22%; background: #fcfcff; transform: rotate(-12deg); align-content: center; gap: 12%; padding: 10%; }
.art-sheet i { height: .3rem; border-radius: 1rem; background: #828ee2; }
.art-sheet i:last-child { width: 60%; }
.art-keys { top: 29%; left: 53%; background: #c8f2ce; transform: rotate(12deg); grid-template-columns: repeat(2, 1fr); gap: 12%; padding: 7%; }
.art-keys i { border-radius: 20%; background: #266442; }
.art-type { top: 55%; left: 32%; place-items: center; background: #adbaff; transform: rotate(-6deg); color: #202d80; font: 800 clamp(2rem, 5vw, 3.6rem)/1 system-ui, sans-serif; }
.requests { margin-block: 2rem 3rem; padding: 1.55rem clamp(1.25rem, 4vw, 2.25rem); border: 1px solid var(--line); border-radius: 1rem; display: grid; grid-template-columns: minmax(14rem, .8fr) 1.6fr; gap: .6rem 2rem; background: white; }
h2 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); }
.requests p, .empty p { color: var(--muted); }
.about-panel { max-width: 49rem; }
.about-panel p + p { margin-top: 1rem; }
.catalog { padding-block: 3rem; }
.catalog h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1.5rem; }
.empty { display: grid; justify-items: center; text-align: center; gap: .75rem; background: white; border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1.5rem, 6vw, 4rem) 1rem; }
.empty .mark { width: 2.25rem; margin-bottom: .4rem; }
.empty a { font-weight: 700; }
@media (max-width: 46rem) {
  .shell { width: calc(100% - 2rem); }
  .hero { grid-template-columns: 1fr; margin-top: 1.25rem; }
  .hero-art { height: 14rem; min-height: 0; }
  .art-sheet { left: 25%; padding: 1.2rem; }
  .art-keys { padding: 1.2rem; }

  .requests { grid-template-columns: 1fr; margin-bottom: 2rem; }
}
@media (max-width: 34rem) {
  .header-inner { flex-wrap: wrap; padding-block: .65rem; }
  .header-inner nav { justify-content: flex-end; width: 100%; }
}
@media (max-width: 24rem) {
  .header-inner { gap: .35rem; }
  nav a { padding-inline: .4rem; }
  .brand { font-size: 1.25rem; }
  .brand .mark { margin-inline-end: .4rem; }
}

.board-panel { padding: clamp(1rem, 4vw, 2rem); margin-block: 1rem; background: white; border: 1px solid var(--line); border-radius: 1rem; }
.board-panel p { margin-top: .5rem; }
.board-panel form { display: grid; gap: .5rem; margin-top: 1rem; }
.board-panel label { margin-top: .5rem; font-weight: 700; }
.board-panel input, .board-panel textarea { width: 100%; padding: .65rem; border: 1px solid #77849b; border-radius: .5rem; font: inherit; }
.board-panel textarea { resize: vertical; }
.board-panel button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.board-panel article { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.board-panel h3 { margin: 0; overflow-wrap: anywhere; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.board-notice { margin-block: 1rem; font-weight: 700; }

.home .hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  min-height: 0;
  margin-top: clamp(3rem, 8vw, 6rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
.home .hero-copy { padding: 0; min-width: 0; }
.home h1 { font-size: clamp(2.25rem, 5.25vw, 4.35rem); line-height: 1.27; letter-spacing: -.055em; }
.home .hero p { margin-top: 1.55rem; }
.home .hero-art {
  aspect-ratio: 1.25;
  min-height: 0;
  background: #e5ebf5;
  border: 1px solid #d7dfed;
  border-radius: 1.1rem;
}
.home .art-grid { background-image: linear-gradient(#8298bf 1px, transparent 1px), linear-gradient(90deg, #8298bf 1px, transparent 1px); }
.home .art-tile { box-shadow: 0 .85rem 1.75rem #34497333; }
.home .art-sheet { left: 19%; }
.home .art-keys { left: 54%; }
.home .art-type { background: #acbaf0; }
.home .requests {
  display: block;
  margin-block: 0 3rem;
  padding: 1.6rem 0;
  border: solid var(--line);
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
}
.home .requests p { max-width: 44rem; margin-top: .55rem; }

@media (max-width: 46rem) {
  .home .hero { grid-template-columns: 1fr; gap: 2rem; }
  .home .hero-art { height: auto; width: 100%; aspect-ratio: 1.7; }
  .home .art-type { top: 47%; }
}
