/* nagi. official — 貼り紙の壁 */

:root {
  --paper: #F9EFE3;
  --paper-2: #F4E3CC;
  --tape: #E4C8A6;
  --ink: #171513;
  --ink-2: #5A4B3D;
  --ink-3: #756353;
  --orange: #F37D22;
  --orange-ink: #89491B;
  --sky: #4484B7;

  --font-label: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --gutter: 20px;
  --max: 1120px;
  --space: clamp(88px, 14vw, 160px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  font-feature-settings: "palt" 0;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.arw { font-family: var(--font-body); font-variant-emoji: text; }

/* ---------- label + heading pair ---------- */

.label {
  margin: 0 0 .4em;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .14em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.label b { font-weight: 500; color: var(--ink); }

.heading {
  margin: 0 0 1.2em;
  font-size: clamp(22px, 5.4vw, 30px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .04em;
}

.copy { margin: 0; color: var(--ink-2); }

/* ---------- header ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-logo { display: block; width: 66px; }
.site-logo img { width: 100%; }

.site-nav ul {
  display: none;
  margin: 0; padding: 0; list-style: none;
  gap: 28px;
}

.site-nav a, .map-link {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-2);
}

.site-nav a:hover, .map-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- hero ---------- */

.hero { padding-bottom: var(--space); }

.hero__figure { margin: 0; }

.hero__figure img { width: 100%; background: var(--paper-2); }

.hero__body { padding-top: 24px; }

.hero__catch {
  margin: 0 0 22px;
  font-size: clamp(22px, 6vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  min-height: 52px;
  padding: 0 32px;
  background: var(--orange);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  border: 0;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }

/* ---------- posters ---------- */

.poster {
  --tilt: 0deg;
  position: relative;
  isolation: isolate;
  margin: 0 0 var(--space);
  padding: 48px 24px 44px;
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper-2);
  transform: rotate(var(--tilt));
}

.poster::after {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 92px;
  height: 22px;
  margin-left: -46px;
  background: var(--tape);
  opacity: .75;
  transform: rotate(-3deg);
}

.poster--listen { --tilt: -.6deg; }
.poster { scroll-margin-top: 28px; }

.poster--about { --tilt: .4deg; }
.poster--shop { --tilt: -.4deg; }

.poster--plain { padding-left: 0; padding-right: 0; }
.poster--plain::before, .poster--plain::after { display: none; }

/* ---------- listen ---------- */

.listen { display: grid; gap: 28px; }

.listen__title {
  margin: 0 0 .5em;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.lite {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: var(--ink);
  cursor: pointer;
  overflow: hidden;
}

.lite img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }

.lite__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}

.lite__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -11px 0 0 -6px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--ink);
}

.lite:hover .lite__play { background: var(--orange); }

.lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lite--empty {
  display: grid;
  place-items: center;
  cursor: default;
  background: var(--tape);
  color: var(--ink-2);
  font-size: 13px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.links a {
  font-size: 15px;
  color: var(--orange-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.links a:hover { color: var(--ink); }

/* ---------- songs ---------- */

.songs {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.song {
  --tilt: 0deg;
  position: relative;
  isolation: isolate;
  padding: 14px 14px 26px;
}

/* 1枚ずつ少しずつ違う角度で貼る */
.songs > .song:nth-child(4n+1) { --tilt: -.8deg; }
.songs > .song:nth-child(4n+2) { --tilt: .6deg; }
.songs > .song:nth-child(4n+3) { --tilt: .4deg; }
.songs > .song:nth-child(4n+4) { --tilt: -.5deg; }

.song > :not(.jacket) { margin-left: 8px; margin-right: 8px; }

.song::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper-2);
  transform: rotate(var(--tilt));
}

.song__title { margin: 0 0 .4em; font-size: 18px; font-weight: 700; line-height: 1.5; }

.song .links { margin-top: 14px; }
.song .links a { font-size: 14px; }

.song::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 84px;
  height: 20px;
  margin-left: -42px;
  background: var(--tape);
  opacity: .8;
  transform: rotate(-3deg);
}

.songs > .song--new { --tilt: -1.2deg; }
.song--new::after { background: var(--sky); opacity: .55; }

.jacket {
  display: block;
  aspect-ratio: 1;
  margin: 0 0 18px;
  overflow: hidden;
  background: var(--ink);
}

.jacket img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.jacket:hover img { transform: scale(1.03); }

.jacket--blank {
  display: grid;
  place-items: center;
  padding: 12%;
  background: var(--tape);
  color: var(--ink);
  text-align: center;
}

.jacket__title { font-size: clamp(18px, 5vw, 24px); font-weight: 700; line-height: 1.6; white-space: pre-line; }

.song__badge {
  margin: 0 0 .5em;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ink-3);
}

/* 曲一覧にない曲の出口 */
.songs-more {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  margin-top: 44px;
}

.songs-more__lead { margin: 0; font-size: 15px; color: var(--ink-2); }
.songs-more .links { margin: 0; }

/* ---------- about ---------- */

.about { display: grid; gap: 36px; }

.about__text { max-width: 640px; }

/* 紙の上に、テープで留めた写真をもう1枚 */
.about__photo {
  position: relative;
  width: min(240px, 72%);
  margin: 8px 0 0;
  padding: 8px;
  background: var(--paper);
  box-shadow: 0 2px 0 rgba(23, 21, 19, .06);
  transform: rotate(-2deg);
}

.about__photo img { display: block; width: 100%; height: auto; }

.about__photo::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 72px;
  height: 20px;
  margin-left: -36px;
  background: var(--tape);
  opacity: .8;
  transform: rotate(4deg);
}

/* ---------- reading ---------- */

.reads { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }

.read {
  display: block;
  padding: 26px 22px;
  background: var(--paper-2);
  text-decoration: none;
  transition: transform .25s ease;
}

.read:hover { transform: rotate(-.6deg); }

.read__name {
  margin: 0 0 .3em;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .1em;
}

.read__note { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- shop: tear-off tabs ---------- */

.shop { max-width: 560px; margin-left: auto; margin-right: auto; }

.tabs {
  display: flex;
  margin: 32px -24px -44px;
  border-top: 1px dashed var(--ink-3);
  text-decoration: none;
}

.tab {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 14px 0;
  border-left: 1px dashed var(--ink-3);
  background: var(--paper-2);
  writing-mode: vertical-rl;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--ink-2);
  transform-origin: 50% 0;
  transition: transform .3s ease, color .3s ease;
}

.tab:first-child { border-left: 0; }

.tab .arw { writing-mode: horizontal-tb; margin-top: .4em; }

.tabs:hover .tab:hover, .tabs:focus-visible .tab:nth-child(3) {
  transform: rotate(6deg) translateY(4px);
  color: var(--ink);
}

.tab:nth-child(n + 5) { display: none; }

/* ---------- footer ---------- */

.site-footer { padding: 0 0 56px; }

.footer-grid { display: grid; gap: 40px; }

.footer-title {
  margin: 0 0 .8em;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}

.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li + li { margin-top: .3em; }
.footer-list a { font-size: 15px; text-decoration: none; }
.footer-list a:hover { text-decoration: underline; text-underline-offset: 5px; }

.closing {
  margin: 72px 0 0;
  font-size: clamp(18px, 4.6vw, 22px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .06em;
}

.copyright {
  margin: 40px 0 0;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-3);
}

/* ---------- 404 ---------- */

.gone {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px var(--gutter) 80px;
}

.gone__mark {
  position: relative;
  width: min(72vw, 300px);
  aspect-ratio: 4 / 5;
  margin: 0 auto 40px;
  border: 1px dashed var(--tape);
}

.gone__mark span {
  position: absolute;
  width: 72px;
  height: 20px;
  background: var(--tape);
  opacity: .75;
}

.gone__mark span:nth-child(1) { top: -9px; left: -18px; transform: rotate(-38deg); }
.gone__mark span:nth-child(2) { top: -9px; right: -18px; transform: rotate(36deg); }
.gone__mark span:nth-child(3) { bottom: 16px; left: -22px; transform: rotate(32deg); width: 40px; }

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .8s ease, transform .8s ease;
}

.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- wider screens ---------- */

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .poster { padding: 64px 48px 56px; }
  .tabs { margin: 40px -48px -56px; }
  .tab:nth-child(n + 5) { display: flex; }
  .songs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
  .reads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  :root { --gutter: 48px; }
  .site-logo { width: 80px; }
  .site-nav ul { display: flex; }
  .map-link { display: none; }

  .hero .wrap {
    display: grid;
    grid-template-columns: auto minmax(300px, 1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
  }
  .hero__figure img { width: min(calc(min(86vh, 860px) * 1600 / 1999), 52vw); height: auto; }
  .hero__body { padding-top: 0; container-type: inline-size; }
  /* 最長の行（11字）が欄の幅に収まる大きさにする */
  .hero__catch { margin-bottom: 36px; font-size: 27px; font-size: min(36px, 8.5cqi); }

  .poster { padding: 80px 72px 72px; }
  .tabs { margin: 48px -72px -72px; }
  .listen { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 48px; }
  .about { grid-template-columns: 280px minmax(0, 1fr); align-items: center; gap: 64px; }
  .about__photo { width: 100%; margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr 1.4fr; }
  .closing { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
