/* 天山るる — the MV's own colours: washi / sumi / shu / kin, her brown line, the indigo of her jacket */
:root {
  --washi: #F3EFE5;
  --paper: #FBF8F1;
  --sumi: #131211;
  --ink: #2B2420;
  --line: #543A2F;
  --soft: #7A6A5E;
  --shu: #D6301E;
  --kin: #C09A3C;
  --kin-d: #9C7A26;
  --kon: #3C3B66;
  --yt: #FF0000;
  --ln: #06C755;
  --brush: "Yuji Syuku", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --kyo: "Klee One", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --gutter: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--washi); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--washi) url(/img/washi.png) repeat;
  background-size: 180px;
  color: var(--ink);
  font-family: var(--kyo);
  font-weight: 600;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--kin); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------ the seal (落款): white Yuji Syuku on shu, 天山 right column, るる left */
.seal {
  display: inline-grid; grid-template-columns: 1fr 1fr; direction: rtl;
  width: 52px; height: 52px; padding: 5px;
  background: var(--shu); color: #fff; border-radius: 5px;
  font-family: var(--brush); font-weight: 400; font-size: 19px; line-height: 1;
}
.seal > span { writing-mode: vertical-rl; display: flex; justify-content: space-around; letter-spacing: 0; }
.seal.lg { width: 58px; height: 58px; font-size: 21px; }
.seal.sm { width: 32px; height: 32px; font-size: 12px; padding: 3px; border-radius: 4px; }
.seal.xs { width: 24px; height: 24px; font-size: 9px; padding: 2px; border-radius: 3px; }

/* ------------------------------------------------ top: the shop front */
.kv { padding: max(14px, env(safe-area-inset-top)) var(--gutter) 0; }
.stage {
  --wh: clamp(240px, 44svh, 470px);
  position: relative; max-width: 980px; margin: 0 auto; height: calc(var(--wh) + 8px);
}
.name {
  position: absolute; right: 2px; top: 0;
  display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 6px;
}
.logo {
  writing-mode: vertical-rl; margin: 0;
  font-family: var(--brush); font-weight: 400; color: var(--sumi);
  font-size: clamp(58px, min(17vw, 9.4svh), 118px); line-height: 1; letter-spacing: .04em;
}
.yomi {
  writing-mode: vertical-rl; margin: 6px 0 0; color: var(--line);
  font-size: clamp(12px, 3.3vw, 16px); letter-spacing: .3em; line-height: 1;
}
.name-side { display: flex; flex-direction: column; justify-content: space-between; align-items: center; align-self: stretch; gap: 12px; padding-bottom: 4px; }

.walker {
  position: absolute; bottom: 0; left: max(0px, calc(38% - var(--wh) * .45));
  height: var(--wh); aspect-ratio: var(--ar);
  padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.walker picture, .walker .walk { position: absolute; inset: 0; width: 100%; height: 100%; }
.walker .don {
  position: absolute; left: var(--don-l); top: var(--don-t); width: var(--don-w); height: var(--don-h); max-width: none;
  opacity: 0; pointer-events: none; transform-origin: 50% 100%;
}
.don-word {
  position: absolute; left: 80%; top: 22%; writing-mode: vertical-rl; white-space: nowrap;
  font-family: var(--kyo); font-weight: 600; color: var(--shu);
  font-size: calc(var(--wh) * .11); line-height: 1; letter-spacing: -.04em;
  opacity: 0; pointer-events: none; transform: rotate(5deg) scale(.6); transform-origin: 50% 0;
}
.walker.jump .walk { opacity: 0; }
.walker.jump .don { opacity: 1; animation: hop .9s cubic-bezier(.2, .9, .3, 1); }
.walker.jump .don-word { opacity: 1; animation: stamp .9s ease-out forwards; }
@keyframes hop { 0% { transform: scale(.86) translateY(0); } 25% { transform: scale(.86) translateY(-5%); } 70% { transform: scale(.86) translateY(-2%); } 100% { transform: scale(.86) translateY(0); } }
@keyframes stamp { 0% { transform: rotate(5deg) scale(1.5); opacity: 0; } 18% { transform: rotate(5deg) scale(.95); opacity: 1; } 30% { transform: rotate(5deg) scale(1); } 85% { opacity: 1; } 100% { transform: rotate(5deg) scale(1); opacity: 0; } }

.floor {
  position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
  bottom: calc(var(--wh) * var(--foot) - 2px); height: 3px; background: var(--kin);
}

/* ------------------------------------------------ the menu (お品書き): paper strips hanging from a gold rail */
.menu { position: relative; max-width: 980px; margin: 0 auto; padding: 14px var(--gutter) 30px; text-align: center; }
.menu-title {
  display: inline-block; margin: 0 0 8px; padding: 0 12px;
  font-family: var(--brush); font-weight: 400; font-size: 17px; letter-spacing: .4em; color: var(--sumi);
}
.rail {
  height: 6px; margin: 0 auto; width: min(100%, 420px);
  background: linear-gradient(180deg, #E1C377, var(--kin) 45%, var(--kin-d));
  border-radius: 3px; box-shadow: 0 2px 3px rgba(60, 40, 20, .25);
}
.strips {
  list-style: none; margin: 0 auto; padding: 0; width: min(100%, 420px);
  display: flex; flex-direction: row-reverse; justify-content: space-evenly;
}
.strips li { display: flex; flex-direction: column; animation: hang .7s calc(var(--i) * .09s + .15s) both cubic-bezier(.3, 1.5, .5, 1); transform-origin: 50% -14px; }
@keyframes hang { from { transform: translateY(-16px) rotate(4deg); opacity: 0; } to { transform: none; opacity: 1; } }
.strip {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  flex: 1; width: 72px; min-height: clamp(176px, 26svh, 230px); margin-top: 14px; padding: 18px 0 11px; gap: 14px;
  background: var(--paper);
  color: var(--sumi); text-decoration: none;
  box-shadow: 0 1px 0 rgba(84, 58, 47, .18), 0 10px 18px -12px rgba(60, 40, 20, .55);
  transform-origin: 50% -14px; transition: transform .25s;
}
.strip::before {               /* the clip that holds it to the rail */
  content: ""; position: absolute; top: -17px; left: 50%; width: 12px; height: 22px; margin-left: -6px;
  background: var(--line); border-radius: 2px; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18);
}
.strip:hover, .strip:focus-visible { animation: sway 1.1s ease-in-out; }
.strip:active { transform: translateY(3px); }
@keyframes sway { 0% { transform: rotate(0); } 25% { transform: rotate(3.5deg); } 60% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }
.tz {
  writing-mode: vertical-rl; font-family: var(--brush); font-weight: 400;
  font-size: 27px; line-height: 1; letter-spacing: .08em; white-space: nowrap;
}
.svc { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; line-height: 1; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.svc.ln { background: var(--ln); color: #fff; padding: 4px 7px 3px; border-radius: 4px; font-family: system-ui, -apple-system, "Hiragino Sans", sans-serif; font-weight: 800; letter-spacing: .06em; }
.yt-mark {
  display: inline-block; width: 18px; height: 13px; border-radius: 4px; background: var(--yt); position: relative; flex: none;
}
.yt-mark::after { content: ""; position: absolute; left: 7px; top: 3.5px; border-left: 6px solid #fff; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }

/* ------------------------------------------------ inner pages */
.bar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 980px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) var(--gutter) 6px;
}
.bar-home { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--brush); font-weight: 400; font-size: 22px; color: var(--sumi); }
.bar-back { font-size: 14px; color: var(--line); text-decoration: none; border-bottom: 1px solid currentColor; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter) 40px; }
.sec {
  display: flex; align-items: center; gap: 10px; margin: 38px 0 14px;
  font-family: var(--brush); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--sumi);
}
.sec::before { content: ""; width: 8px; height: 1.05em; background: var(--shu); flex: none; }
.sec.h1 { font-size: 30px; margin-top: 18px; }
.center { text-align: center; }

.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(84, 58, 47, .25); }
.news li { display: grid; grid-template-columns: 6.4em 1fr; gap: 10px; padding: 10px 2px; border-bottom: 1px solid rgba(84, 58, 47, .25); font-size: 15px; line-height: 1.6; }
.news time { color: var(--soft); font-variant-numeric: tabular-nums; }
.news a { text-decoration-color: rgba(84, 58, 47, .4); text-underline-offset: 3px; }

/* the MV's caption plate: sumi plate, shu bar, gold rule, 歌 seal */
.caption {
  margin: 12px 0 18px; padding: 16px 20px 14px; color: var(--washi);
  background: rgba(19, 18, 17, .88); border-left: 10px solid var(--shu);
}
.cap-title { margin: 0; font-family: var(--kyo); font-weight: 600; font-size: clamp(42px, 13vw, 76px); line-height: 1.1; letter-spacing: .08em; }
.cap-rule { height: 2px; background: var(--kin); margin: 10px 0 10px; }
.cap-by { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--brush); font-weight: 400; font-size: 22px; letter-spacing: .12em; }
.mini-seal { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--shu); border-radius: 5px; font-size: 20px; letter-spacing: 0; }

/* YouTube: a picture first, the player only after a tap */
.yt { position: relative; aspect-ratio: 16 / 9; background: var(--sumi); border-radius: 6px; overflow: hidden; box-shadow: 0 12px 26px -16px rgba(40, 25, 10, .6); }
.yt-btn { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.yt-btn img { width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; background: var(--yt); border-radius: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: transform .2s; }
.yt-play::after { content: ""; position: absolute; left: 29px; top: 15px; border-left: 18px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.yt-btn:hover .yt-play { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-alt { margin: 12px 0 0; text-align: right; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--paper); text-decoration: none; font-size: 14px; box-shadow: 0 0 0 1px rgba(84, 58, 47, .25); }

.also { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.also a { display: inline-block; padding: 9px 16px; background: var(--paper); text-decoration: none; font-size: 15px; box-shadow: 0 0 0 1px rgba(84, 58, 47, .25); border-radius: 4px; }

.stills { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.stills li { flex: 0 0 min(42%, 210px); scroll-snap-align: start; }
.stills img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 5px; box-shadow: 0 8px 16px -12px rgba(40, 25, 10, .6); }

.stamps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 8px; }
.stamps img { width: 100%; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 99px; text-decoration: none;
  background: var(--sumi); color: var(--washi); font-size: 16px; letter-spacing: .06em;
}
.ln-btn { background: var(--ln); color: #fff; font-family: system-ui, -apple-system, "Hiragino Sans", sans-serif; font-weight: 800; }

/* cards */
.cards { display: grid; gap: 14px; }
.card {
  display: grid; grid-template-columns: 42% 1fr; align-items: center; gap: 14px;
  padding: 10px; background: var(--paper); text-decoration: none; border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(84, 58, 47, .18), 0 10px 20px -16px rgba(40, 25, 10, .6);
}
.card-img { position: relative; display: block; border-radius: 4px; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.stamp-img img { object-fit: contain; background: var(--washi); }
.play-badge { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 24px; background: var(--yt); border-radius: 7px; }
.play-badge::after { content: ""; position: absolute; left: 13px; top: 7px; border-left: 10px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.card-text { display: grid; gap: 4px; }
.card-title { font-family: var(--brush); font-weight: 400; font-size: 21px; line-height: 1.3; color: var(--sumi); }
.card-sub { font-size: 13px; color: var(--soft); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

/* illustrations */
.ills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.ill { margin: 0; }
.ill a { display: block; background: #fff; padding: 6px; box-shadow: 0 0 0 1px rgba(84, 58, 47, .18), 0 10px 20px -16px rgba(40, 25, 10, .6); }
.ill figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 13px; }
.ill time { color: var(--soft); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100svh; overflow: visible; }
.lightbox::backdrop { background: rgba(19, 18, 17, .88); }
.lightbox img { max-width: min(96vw, 1000px); max-height: 92svh; width: auto; height: auto; }
.lb-close { position: fixed; right: 12px; top: max(10px, env(safe-area-inset-top)); width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--washi); color: var(--sumi); font-size: 26px; line-height: 1; cursor: pointer; }

/* character */
.profile { display: grid; gap: 16px; margin-top: 10px; }
.pf-img img { width: 100%; max-width: 420px; border-radius: 6px; box-shadow: 0 12px 26px -18px rgba(40, 25, 10, .7); }
.pf-name { margin: 0; font-family: var(--brush); font-weight: 400; font-size: clamp(44px, 13vw, 72px); line-height: 1.1; color: var(--sumi); }
.pf-yomi { margin: 4px 0 14px; color: var(--line); letter-spacing: .12em; }
.pf-line { margin: 0 0 6px; font-size: 17px; }
.sheet { margin: 0; background: #fff; padding: 8px; box-shadow: 0 0 0 1px rgba(84, 58, 47, .18); }

/* goods */
.goods-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 6px; font-family: var(--brush); font-weight: 400; font-size: 22px; color: var(--sumi); }
.goods-count { font-family: var(--kyo); font-size: 14px; color: var(--soft); }
.goods-desc { margin: 0 0 14px; }

/* 404 */
.nf { text-align: center; }
.nf-big { font-family: var(--brush); font-weight: 400; font-size: 30px; line-height: 1.5; margin: 30px 0 10px; }
.nf-img { margin: 0 auto 16px; width: 180px; }

/* footer */
.foot { max-width: 980px; margin: 0 auto; padding: 22px var(--gutter) max(28px, env(safe-area-inset-bottom)); border-top: 3px solid var(--kin); text-align: center; font-size: 13px; color: var(--soft); }
.foot-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 14px; font-size: 15px; color: var(--ink); }
.foot-nav a { text-decoration: none; }
.foot-copy { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 4px; }
.foot-made { margin: 0; }

/* wide screens: the shop front gets room, cards sit side by side */
@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .stage { --wh: clamp(300px, 52svh, 500px); }
  .walker { left: 22%; }
  .name { right: 14%; }
  .strip { width: 92px; min-height: clamp(200px, 28svh, 260px); }
  .tz { font-size: 34px; }
  .svc { font-size: 12px; }
  .rail, .strips { width: min(100%, 560px); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { grid-template-columns: 1fr; }
  .stamps { grid-template-columns: repeat(6, 1fr); }
  .ills { grid-template-columns: repeat(2, minmax(0, 380px)); }
  .profile { grid-template-columns: minmax(0, 420px) 1fr; align-items: center; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
