@import url("/nghe-thuat0/cursor.css?v=2");

:root {
  --paper: #fff5d8;
  --cyan: #55cfdf;
  --cyan-light: #a7e0df;
  --blue: #087ca7;
  --navy: #06275f;
  --ink: #031b48;
  --red: #ff5b52;
  --yellow: #ffdf62;
  --white: #fffdf2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 2px, transparent 2px 8px),
    linear-gradient(90deg, #21a6c0 0 31px, var(--paper) 31px calc(100% - 31px), #21a6c0 calc(100% - 31px));
  font-family: "IBM Plex Mono", monospace;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 50;
  top: 0;
  bottom: 0;
  width: 29px;
  pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.19) 0 9px, transparent 9px 24px);
}
body::before { left: 0; }
body::after { right: 0; transform: scaleX(-1); }

a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; }

.page-wrap {
  width: min(1310px, calc(100% - 84px));
  margin: 0 auto;
  padding: 11px 0 36px;
}

.ticker {
  position: relative;
  overflow: hidden;
  min-height: 27px;
  margin-bottom: 9px;
  color: var(--paper);
  border: 2px solid var(--ink);
  background: var(--ink);
  font: 700 10px/23px "IBM Plex Mono", monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.ticker__track { width: max-content; white-space: nowrap; animation: tickerMove 34s linear infinite; }
.ticker__track span { display: inline-block; padding-right: 56px; }

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  border: 3px solid var(--ink);
  background: var(--cyan-light);
  box-shadow: 6px 6px 0 var(--ink);
}

.site-brand {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 11px;
  min-width: 250px;
  padding: 9px 14px;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
}
.site-brand__mark { display: grid; width: 39px; height: 39px; place-items: center; color: var(--ink); background: var(--paper); border-radius: 50%; font: 900 25px/1 "Darumadrop One", sans-serif; transform: rotate(-7deg); }
.site-brand strong { display: block; font: 900 15px/1 "Noto Sans JP", sans-serif; letter-spacing: .08em; }
.site-brand small { display: block; margin-top: 5px; color: var(--cyan); font: 700 8px/1 "IBM Plex Mono", monospace; letter-spacing: .14em; }

.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; padding: 8px 10px; }
.site-nav a {
  position: relative;
  padding: 7px 9px;
  color: var(--ink);
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
  font: 800 9px/1 "IBM Plex Mono", monospace;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .14s ease, background .14s ease;
}
.site-nav a:nth-child(even) { transform: rotate(1deg); }
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active { color: var(--paper); background: var(--blue); outline: 0; transform: translate(-2px,-2px) rotate(-1deg); }

.collage-hero {
  display: grid;
  grid-template-columns: minmax(320px, .68fr) minmax(480px, 1fr);
  grid-template-rows: minmax(380px, 1fr) 245px;
  gap: 10px;
  min-height: 760px;
}

.curator-card,
.blog-card,
.art-gate { position: relative; overflow: hidden; border: 3px solid var(--ink); }

.curator-card {
  grid-column: 1;
  grid-row: 1;
  display: block;
  color: var(--ink);
  background: repeating-conic-gradient(from -12deg at 50% 53%, var(--cyan-light) 0deg 14deg, #64c7d7 14deg 28deg);
  text-decoration: none;
}
.curator-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 48%, transparent 0 30%, rgba(255,255,255,.15) 70%); }
.curator-card img { position: absolute; z-index: 2; right: 3%; bottom: -4%; width: min(96%, 440px); max-height: 97%; object-fit: contain; filter: drop-shadow(0 0 2px var(--paper)); transition: transform .22s ease; }
.curator-card:hover img { transform: translateY(-5px) rotate(1deg); }
.curator-card__arrow { position: absolute; z-index: 3; top: 24px; left: 38%; color: var(--ink); font: 900 70px/1 sans-serif; transform: rotate(18deg); text-shadow: 2px 0 var(--paper), -2px 0 var(--paper), 0 2px var(--paper), 0 -2px var(--paper); }
.curator-card__label { position: absolute; z-index: 4; right: -3px; bottom: 46%; max-width: 84%; padding: 7px 10px; color: #000; border: 2px solid #000; background: var(--white); font: 700 clamp(12px,1.5vw,18px)/1.08 "IBM Plex Mono", monospace; box-shadow: 4px 4px 0 rgba(3,27,72,.22); transform: rotate(-1deg); }
.curator-card__label small { display: block; margin-top: 5px; color: var(--blue); font-size: 8px; letter-spacing: .1em; }

.blog-card {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  place-items: center;
  color: var(--paper);
  background:
    radial-gradient(circle at 22% 35%, rgba(83,207,223,.19), transparent 18%),
    linear-gradient(145deg, #04194a, #020d2b);
  text-decoration: none;
}
.blog-card__book { position: relative; width: 88%; height: 77%; color: var(--ink); background: var(--paper); border: 4px solid var(--ink); border-radius: 52% 44% 9px 9px / 14% 14% 8px 8px; box-shadow: 10px 11px 0 #01091e; transform: rotate(-7deg); transition: transform .2s ease; }
.blog-card:hover .blog-card__book { transform: rotate(-3deg) translateY(-5px); }
.blog-card__book::before { content: ""; position: absolute; top: 2%; bottom: 2%; left: 50%; width: 3px; background: var(--ink); box-shadow: -5px 0 rgba(3,27,72,.12),5px 0 rgba(3,27,72,.12); }
.blog-card__book::after { content: "BLOG!!"; position: absolute; inset: 23% 5% auto; font: 900 clamp(42px,6vw,82px)/1 "Darumadrop One", sans-serif; letter-spacing: -.05em; text-align: center; text-shadow: 3px 3px 0 var(--cyan); }
.blog-card__note { position: absolute; right: 14px; bottom: 10px; color: var(--cyan); font: 700 8px/1 "IBM Plex Mono", monospace; letter-spacing: .12em; }

.art-gate {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 640px;
  background:
    radial-gradient(ellipse at 23% 78%, rgba(255,255,255,.9) 0 5%, transparent 6%),
    radial-gradient(ellipse at 40% 75%, rgba(255,255,255,.75) 0 8%, transparent 9%),
    radial-gradient(ellipse at 69% 72%, rgba(255,255,255,.7) 0 11%, transparent 12%),
    linear-gradient(#11b2d2 0 10%, #057aa4 10% 45%, #80d5d6 100%);
  isolation: isolate;
}
.art-gate::before { content: ""; position: absolute; inset: 10% 0 0; z-index: -1; opacity: .32; background: repeating-radial-gradient(ellipse at 50% 40%, transparent 0 11px, rgba(3,27,72,.16) 12px 14px); mix-blend-mode: multiply; }
.art-gate__domain { position: absolute; z-index: 6; top: 20px; right: 31px; color: #000; font: 800 15px/1 "IBM Plex Mono", monospace; }
.art-gate__jp { position: absolute; z-index: 6; right: 8px; top: 110px; color: rgba(255,245,216,.7); font: 900 10px/1 "Noto Sans JP", sans-serif; letter-spacing: .18em; writing-mode: vertical-rl; }
.art-gate__camera { position: absolute; z-index: 3; top: 16px; left: 8%; width: 37%; max-width: 290px; filter: drop-shadow(4px 5px 0 rgba(3,27,72,.24)); transform: rotate(-3deg); }
.art-gate__sign { position: absolute; z-index: 4; left: 5%; top: 39%; width: 47%; filter: drop-shadow(8px 8px 0 rgba(3,27,72,.22)); transform: rotate(-1deg); }
.art-gate__board { position: absolute; z-index: 3; left: 10%; bottom: 5%; width: 38%; filter: drop-shadow(5px 5px 0 rgba(3,27,72,.2)); transform: rotate(-4deg); }
.art-gate__visitor { position: absolute; z-index: 5; right: 1%; bottom: -1%; width: 52%; max-height: 68%; object-fit: contain; object-position: right bottom; filter: drop-shadow(-5px 4px 0 rgba(3,27,72,.2)); }
.art-gate__title { position: absolute; z-index: 7; left: 3%; bottom: 43%; margin: 0; color: var(--paper); font: 900 clamp(27px,4vw,61px)/.82 "Darumadrop One", sans-serif; text-transform: uppercase; text-shadow: 3px 3px 0 var(--ink), -1px -1px 0 var(--ink); transform: rotate(-6deg); }
.art-gate__title span { display: block; margin-left: 28px; color: var(--yellow); font-size: .52em; letter-spacing: .08em; }

.counter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 24px;
  padding: 8px 12px;
  color: var(--paper);
  border: 3px solid var(--ink);
  background: var(--blue);
  box-shadow: 5px 5px 0 var(--ink);
  font: 700 9px/1 "IBM Plex Mono", monospace;
  letter-spacing: .12em;
}
.counter-strip b { padding: 4px 7px; color: var(--yellow); border: 1px solid var(--paper); background: var(--ink); font-size: 13px; letter-spacing: .28em; }

.content-board { position: relative; padding: 18px; border: 3px solid var(--ink); background: rgba(255,253,242,.84); box-shadow: 8px 8px 0 var(--ink); }
.content-board::before { content: "ART FILE / 作品記録"; position: absolute; top: -14px; left: 29px; padding: 5px 12px; color: var(--paper); border: 2px solid var(--ink); background: var(--red); font: 800 9px/1 "IBM Plex Mono", monospace; letter-spacing: .1em; transform: rotate(-2deg); }

.section-title { position: relative; display: flex; align-items: center; gap: 13px; margin: 30px 0 16px; }
.section-title::before { content: attr(data-no); display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; color: var(--paper); border: 3px solid var(--ink); border-radius: 50%; background: var(--blue); font: 900 19px/1 "Darumadrop One", sans-serif; transform: rotate(-8deg); }
.section-title h2 { margin: 0; color: var(--ink); font: 900 clamp(25px,3vw,42px)/.95 "Darumadrop One", sans-serif; letter-spacing: .02em; text-shadow: 2px 2px 0 var(--cyan); }
.section-title h2 span { display: block; margin-top: 5px; color: var(--blue); font: 700 8px/1 "IBM Plex Mono", monospace; letter-spacing: .18em; text-shadow: none; }

.feature-layout { display: grid; grid-template-columns: minmax(0,1fr) 215px; gap: 14px; }
.slider-box { position: relative; min-width: 0; padding: 12px; border: 3px solid var(--ink); background: var(--cyan-light); }
.slider-box::before { content: "★ FEATURED ART ★"; position: absolute; z-index: 4; top: -10px; right: 15px; padding: 4px 9px; color: var(--paper); border: 2px solid var(--ink); background: var(--ink); font: 700 8px/1 "IBM Plex Mono", monospace; transform: rotate(2deg); }
.art-display { display: grid; grid-template-columns: minmax(230px,1.3fr) minmax(180px,.7fr); min-height: 400px; border: 3px solid var(--ink); background: var(--paper); }
.art-display img { width: 100%; height: 100%; min-height: 394px; object-fit: cover; border-right: 3px solid var(--ink); filter: contrast(1.06) saturate(.86); cursor: zoom-in; transition: filter .2s ease; }
.art-display img:hover { filter: contrast(1.1) saturate(1.08); }
.art-copy { display: flex; flex-direction: column; justify-content: end; padding: 18px; background: repeating-linear-gradient(0deg, transparent 0 23px, rgba(3,27,72,.1) 24px 25px); }
.art-title { margin: 0 0 13px; color: var(--ink); font: 900 clamp(23px,3vw,43px)/.88 "Darumadrop One", sans-serif; text-shadow: 2px 2px 0 var(--cyan); }
.art-desc { padding: 10px; color: var(--ink); border: 2px solid var(--ink); background: rgba(255,253,242,.9); font: 600 10px/1.65 "IBM Plex Mono", monospace; transform: rotate(-1deg); }
.slider-controls { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.slider-btn { min-width: 112px; padding: 8px 13px; color: var(--paper); border: 2px solid var(--ink); background: var(--blue); box-shadow: 3px 3px 0 var(--ink); font: 800 10px/1 "IBM Plex Mono", monospace; cursor: pointer; }
.slider-btn:hover { color: var(--ink); background: var(--yellow); transform: translate(-1px,-1px); }
.slider-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 11px; }
.dot { width: 17px; height: 8px; border: 2px solid var(--ink); background: var(--white); cursor: pointer; transform: skewX(-17deg); }
.dot.active { background: var(--red); box-shadow: 2px 2px 0 var(--ink); }

.art-index { display: flex; flex-direction: column; gap: 9px; padding: 12px; color: var(--paper); border: 3px solid var(--ink); background: var(--navy); }
.art-index h3 { margin: 0; color: var(--yellow); font: 900 28px/1 "Darumadrop One", sans-serif; }
.art-index p { margin: 0; color: #a8dfe2; font: 600 9px/1.5 "IBM Plex Mono", monospace; }
.art-index a { padding: 8px; color: var(--ink); border: 2px solid var(--ink); background: var(--paper); font: 800 9px/1 "IBM Plex Mono", monospace; text-decoration: none; transform: rotate(-1deg); }
.art-index a:nth-of-type(even) { transform: rotate(1deg); }
.art-index a:hover { background: var(--yellow); }
.art-index__stamp { display: grid; min-height: 105px; margin-top: auto; place-items: center; color: var(--cyan); border: 2px dashed var(--cyan); border-radius: 50%; font: 900 13px/1.1 "IBM Plex Mono", monospace; text-align: center; transform: rotate(-10deg); }

.gallery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; padding-bottom: 24px; }
.gallery-item { position: relative; padding: 9px 9px 14px; border: 3px solid var(--ink); background: var(--paper); box-shadow: 6px 6px 0 var(--ink); transition: transform .18s ease; }
.gallery-item:nth-child(1) { transform: rotate(-1.2deg); }
.gallery-item:nth-child(2) { transform: translateY(23px) rotate(1deg); }
.gallery-item:nth-child(3) { transform: rotate(-.5deg); }
.gallery-item:nth-child(4) { transform: translateY(13px) rotate(1.2deg); }
.gallery-item:hover { z-index: 3; transform: translateY(-6px) rotate(0); }
.gallery-item::before { content: "0" counter(art-card); counter-increment: art-card; position: absolute; z-index: 2; top: 14px; left: 14px; padding: 4px 6px; color: var(--paper); border: 2px solid var(--ink); background: var(--red); font: 900 10px/1 "IBM Plex Mono", monospace; }
.gallery-grid { counter-reset: art-card; }
.gallery-item img { display: block; width: 100%; height: 205px; object-fit: cover; border: 2px solid var(--ink); filter: contrast(1.08) saturate(.82); }
.gallery-item h3 { margin: 12px 0 6px; color: var(--ink); font: 900 28px/1 "Darumadrop One", sans-serif; text-shadow: 2px 2px 0 var(--cyan-light); }
.gallery-item p { min-height: 46px; margin: 0; color: #24436a; font: 600 9px/1.55 "IBM Plex Mono", monospace; }
.gallery-item a { display: inline-block; margin-top: 10px; padding: 7px 9px; color: var(--paper); border: 2px solid var(--ink); background: var(--blue); box-shadow: 3px 3px 0 var(--ink); font: 800 9px/1 "IBM Plex Mono", monospace; text-decoration: none; }
.gallery-item a:hover { color: var(--ink); background: var(--yellow); }
.gallery-item--dark { color: #eee; background:#09090b; box-shadow:6px 6px 0 #8e1327; }
.gallery-item--dark img { filter:grayscale(1) contrast(1.28); border-color:#eee; }
.gallery-item--dark h3 { color:#fff; text-shadow:2px 2px 0 #9d1932; }
.gallery-item--dark p { color:#b7aeb1; }
.gallery-item--dark a { background:#9d1932; }

.pagination { display: flex; justify-content: center; gap: 8px; margin: 20px 0 35px; }
.pagination button { padding: 7px 15px; color: var(--ink); border: 2px solid var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--ink); font: 900 10px/1 "IBM Plex Mono", monospace; cursor: pointer; }
.pagination button.active,
.pagination button:hover { color: var(--paper); background: var(--blue); }

.guestbook { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 24px; border: 3px solid var(--ink); background: repeating-linear-gradient(-4deg, var(--paper) 0 28px, #e0f1e9 29px 30px); clip-path: polygon(0 8px,4% 0,9% 7px,15% 1px,21% 8px,27% 0,34% 6px,41% 0,48% 7px,55% 0,62% 7px,70% 0,78% 7px,86% 1px,93% 8px,100% 0,100% calc(100% - 7px),94% 100%,87% calc(100% - 8px),80% 100%,72% calc(100% - 6px),64% 100%,56% calc(100% - 7px),48% 100%,40% calc(100% - 6px),32% 100%,24% calc(100% - 7px),16% 100%,8% calc(100% - 6px),0 100%); }
.guestbook p { margin: 0; color: var(--blue); font: 900 29px/1 "Darumadrop One", sans-serif; }
.guestbook small { display: block; margin-top: 9px; color: #3a536d; font: 600 9px/1.5 "IBM Plex Mono", monospace; }
.guestbook a { padding: 12px 16px; color: var(--paper); border: 3px solid var(--ink); background: var(--red); box-shadow: 5px 5px 0 var(--ink); font: 900 11px/1 "IBM Plex Mono", monospace; text-decoration: none; transform: rotate(2deg); }
.guestbook a:hover { color: var(--ink); background: var(--yellow); }
.thanks-ticker { overflow: hidden; margin-top: 9px; color: var(--paper); border: 3px solid var(--ink); background: var(--blue); font: 700 9px/24px "IBM Plex Mono", monospace; white-space: nowrap; }
.thanks-ticker span { display: inline-block; min-width: 100%; animation: thanksMove 17s linear infinite; }

.retro-footer { margin-top: 24px; padding: 26px 18px; color: var(--paper); border: 3px solid var(--ink); background: var(--navy); box-shadow: 7px 7px 0 var(--cyan); text-align: center; }
.retro-footer h2 { margin: 0; color: var(--yellow); font: 900 42px/1 "Darumadrop One", sans-serif; text-shadow: 3px 3px 0 var(--blue); }
.retro-footer p { margin: 7px 0; color: #a8dfe2; font: 600 9px/1.5 "IBM Plex Mono", monospace; }
.footer-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 15px 0; }
.footer-badges span { padding: 5px 7px; color: var(--ink); border: 2px solid var(--ink); background: var(--paper); box-shadow: 2px 2px 0 var(--cyan); font: 800 8px/1 "IBM Plex Mono", monospace; }
.visitor-counter { margin-top: 12px; }
.visitor-counter span { display: inline-block; padding: 7px 10px; color: var(--yellow); border: 2px inset #88cddd; background: #010b26; font: 800 17px/1 "IBM Plex Mono", monospace; letter-spacing: .3em; }

.floating-stars { position: fixed; z-index: 40; inset: 0; pointer-events: none; overflow: hidden; }
.star { position: absolute; color: var(--red); font-size: 13px; text-shadow: 1px 1px 0 var(--paper); animation: float 4s ease-in-out infinite; opacity: .46; }
.image-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 4vw; background: rgba(2,12,36,.93); cursor: zoom-out; }
.image-modal img { max-width: 92vw; max-height: 88vh; border: 5px solid var(--paper); box-shadow: 12px 12px 0 var(--cyan), -12px -12px 0 var(--red); }

::-webkit-scrollbar { width: 13px; }
::-webkit-scrollbar-track { background: var(--paper); border-left: 2px solid var(--ink); }
::-webkit-scrollbar-thumb { background: var(--blue); border: 2px solid var(--ink); }

@keyframes tickerMove { to { transform: translateX(-50%); } }
@keyframes thanksMove { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
@keyframes float { 50% { transform: translateY(-17px) rotate(14deg); opacity: .8; } }

@media (max-width: 970px) {
  .site-head { align-items: stretch; flex-direction: column; gap: 0; }
  .site-brand { min-width: 0; }
  .site-nav { justify-content: flex-start; }
  .collage-hero { grid-template-columns: minmax(240px,.7fr) minmax(360px,1fr); min-height: 690px; grid-template-rows: minmax(345px,1fr) 215px; }
  .feature-layout { grid-template-columns: 1fr; }
  .art-index { display: grid; grid-template-columns: repeat(3,1fr); }
  .art-index h3,.art-index p { grid-column: 1/-1; }
  .art-index__stamp { display: none; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .art-display { grid-template-columns: 1fr; }
  .art-display img { height: 360px; min-height: 0; border-right: 0; border-bottom: 3px solid var(--ink); }
}

@media (max-width: 730px) {
  body { background: var(--paper); }
  body::before,body::after { display: none; }
  .page-wrap { width: calc(100% - 18px); padding-top: 8px; }
  .site-brand strong { font-size: 13px; }
  .site-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; }
  .site-nav a { flex: 0 0 auto; }
  .collage-hero { display: grid; grid-template-columns: 1fr; grid-template-rows: 330px 500px 190px; min-height: 0; }
  .curator-card { grid-column: 1; grid-row: 1; }
  .art-gate { grid-column: 1; grid-row: 2; min-height: 0; }
  .blog-card { grid-column: 1; grid-row: 3; }
  .curator-card img { right: 10%; width: 75%; }
  .curator-card__label { right: 8px; bottom: 31%; max-width: calc(100% - 30px); font-size: 11px; }
  .art-gate__title { bottom: 48%; }
  .counter-strip { align-items: flex-start; flex-direction: column; }
  .content-board { padding: 10px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(n) { transform: none; }
  .guestbook { grid-template-columns: 1fr; }
  .guestbook a { justify-self: start; }
}

@media (max-width: 430px) {
  .collage-hero { grid-template-rows: 280px 420px 165px; }
  .curator-card__arrow { left: 24%; font-size: 48px; }
  .art-gate__camera { width: 42%; }
  .art-gate__sign { top: 36%; width: 52%; }
  .art-gate__board { width: 43%; }
  .art-gate__visitor { width: 62%; max-height: 64%; }
  .art-gate__domain { right: 12px; font-size: 10px; }
  .section-title h2 { font-size: 26px; }
  .art-index { grid-template-columns: 1fr 1fr; }
  .art-display img { height: 245px; }
  .slider-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .slider-btn { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
