#naruka-bookshop-immersive .bk-magazine-copy {
  position: absolute;
  left: 76%;
  top: 77.5%;
  width: 9.6%;
  height: 10%;
  min-height: 44px;
  min-width: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 2px;
}
#naruka-bookshop-immersive .bk-magazine-copy img {
  position: absolute;
  width: 100%;
  height: auto;
  transform: perspective(calc(620px * var(--scene-scale))) rotateX(62deg) rotateZ(9deg);
  border-radius: 1px 2px 2px 1px;
  box-shadow: 1px 3px 0 #9f8861, 3px 8px 9px #23160fc7;
  filter: brightness(.79) saturate(.7) sepia(.17);
  transition: filter .18s ease;
  pointer-events: none;
}
#naruka-bookshop-immersive .bk-magazine-copy:is(:hover, :focus-visible) img {
  filter: brightness(.98) saturate(.82) sepia(.12);
}
#naruka-bookshop-immersive .bk-magazine-copy:focus-visible { outline: 2px solid #f4deb0; outline-offset: 2px; }

.street-magazine, .mag-enlargement {
  box-sizing: border-box;
  max-width: none;
  max-height: none;
  color: #f5e7ca;
  background: #35271f;
  border: 1px solid #8b6b47;
  border-radius: 9px;
  box-shadow: 0 22px 76px #120d0bd9;
  font-family: "Naruka Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  color-scheme: dark;
}
.street-magazine[open] {
  width: min(1060px, calc(100% - 24px));
  height: min(960px, calc(100dvh - 24px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px 18px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  animation: mag-arrive .23s ease-out both;
}
.street-magazine::backdrop, .mag-enlargement::backdrop { background: #1a100ce0; }
.street-magazine * { box-sizing: border-box; }
.street-magazine [hidden] { display: none !important; }
.street-magazine :is(button, select) {
  min-height: 42px;
  font: inherit;
  font-size: 14px;
  color: inherit;
  background: #503a2b;
  padding: 7px 12px;
  border: 1px solid #a18054;
  border-radius: 4px;
}
.street-magazine button { cursor: pointer; touch-action: manipulation; }
.street-magazine button:hover:enabled { background: #684b34; }
.street-magazine button:disabled { opacity: .46; cursor: default; }
.street-magazine :is(button, select, summary):focus-visible { outline: 2px solid #e5b766; outline-offset: 2px; }
.mag-header, .mag-tools, .mag-pagination {
  display: flex;
  align-items: center;
  gap: 9px;
}
.mag-header, .mag-pagination { justify-content: space-between; }
.mag-header h2 { margin: 0; font-size: clamp(21px, 4.5vw, 29px); letter-spacing: .08em; line-height: 1.25; }
.mag-header p { margin: 3px 0 0; color: #e5c79b; font-size: 13px; }
.mag-status { align-self: center; justify-self: center; margin: 0; }
.mag-retry { justify-self: center; }
.mag-reader {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  gap: 9px;
}
.mag-tools { justify-content: center; }
.mag-tools select { min-width: 0; max-width: 390px; flex: 1 1 0; text-overflow: ellipsis; }
.mag-layout[aria-pressed="true"] { background: #e7c897; color: #34271d; }
.mag-stage { container-type: size; min-height: 0; }
.mag-book {
  --mag-paper-height: max(0px, calc(100cqh - 42px));
  --mag-leaf-width: min(100cqw, calc(var(--mag-paper-height) * 2 / 3), 445px);
  position: relative;
  height: 100%;
  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: center;
  overflow: clip;
}
.mag-book[data-facing] { --mag-leaf-width: min(calc(100cqw / 2), calc(var(--mag-paper-height) * 2 / 3), 445px); }
.mag-book[data-turning] > .mag-leaf { visibility: hidden; }
.mag-leaf {
  display: flex;
  flex-direction: column;
  width: var(--mag-leaf-width);
  min-width: 0;
  aspect-ratio: 2 / 3;
  direction: ltr;
  padding: 10px 12px;
  color: #3a291e;
  color-scheme: light;
  background: linear-gradient(100deg, #ddc9a4, #f7ecd3 9%, #f1e3c4 98%, #d6c19b);
  box-shadow: 0 9px 22px #140d09b5;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  overflow-wrap: anywhere;
}
.mag-leaf h3 { font-size: clamp(17px, 2.7vw, 23px); margin: 0; line-height: 1.26; }
.mag-leaf p { margin: 4px 0; }
.mag-kicker, .mag-release { font-size: 12px; line-height: 1.35; }
.mag-cover { position: relative; padding: 0; }
.mag-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.street-magazine .mag-open-cover { position: absolute; bottom: 9px; left: 9px; background: #35271ff0; color: #fff0d2; }
.mag-contents { padding: clamp(10px, 2vw, 24px); }
.mag-contents ol { list-style: none; padding: 0; margin: 8px 0 0; }
.street-magazine .mag-index-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2px 8px;
  width: 100%;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #b9a27a;
  background: transparent;
  text-align: left;
  border-radius: 0;
  font-size: clamp(13px, 1.65vw, 17px);
}
.street-magazine .mag-index-entry:hover:enabled { background: #8a572117; }
.mag-weekday { color: #7d3c25; grid-row: span 2; }
.mag-index-entry small { grid-column: 2; font-size: 12px; }
.mag-folio { grid-column: 3; grid-row: 1 / span 2; color: #6f543d; }
.mag-index-launch, .mag-teaser-launch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 6px;
  font-size: 12px;
}
.mag-teaser-launch { margin-block: 2px 6px; }
.mag-start-status {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid #a77849;
  border-radius: 3px;
  background: #eddbb8;
  color: #643b24;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
}
.mag-teaser img { flex: 1; width: 100%; min-height: 0; object-fit: contain; }
.mag-teaser > p:last-child { font-size: 13px; }
.mag-art { flex: 1 1 140px; min-height: 100px; margin-block: 5px; }
.mag-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mag-leaf-footer { display: flex; gap: 4px 10px; align-items: baseline; flex-wrap: wrap; font-size: 12px; }
.mag-leaf-footer button, .mag-leaf-footer summary {
  min-height: 32px;
  padding: 6px 1px;
  font-size: inherit;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.street-magazine .mag-leaf-footer button:hover:enabled { color: #72361e; background: none; }
.mag-leaf-footer details[open] { flex-basis: 100%; }
.mag-leaf-footer :is(ol, ul) { margin: 0; padding-inline-start: 1.4em; }
.mag-leaf-footer li { margin-bottom: 4px; line-height: 1.5; }
.mag-pagination { width: min(100%, 390px); margin-inline: auto; font-size: 13px; }
.mag-enlargement[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1044px, calc(100% - 16px));
  height: calc(100dvh - 16px);
  padding: 8px;
  gap: 8px;
}
.mag-enlargement form { margin: 0; }
.mag-enlarged-image { overflow: auto; }
.mag-enlarged-image img { display: block; margin-inline: auto; max-width: none; width: min(1024px, 185vw); height: auto; }
.mag-turn-layer {
  --turn-overlap: .55px;
  position: absolute;
  inset: 0;
  z-index: 2;
  perspective: 3600px;
  pointer-events: none;
}
.mag-turn-layer[data-single] {
  inset-inline: calc((100% - var(--turn-width)) / 2);
  overflow: hidden;
  overflow: clip;
}
.mag-turn-hinge {
  position: absolute;
  left: 50%;
  top: var(--turn-top);
  width: 0;
  height: var(--turn-height);
  transform-style: preserve-3d;
}
.mag-turn-layer .mag-leaf {
  width: var(--turn-width);
  height: var(--turn-height);
  aspect-ratio: auto;
}
.mag-turn-base {
  position: absolute;
  top: 0;
  width: var(--turn-width);
}
.mag-turn-left { right: 0; }
.mag-turn-right { left: 0; }
.mag-turn-layer > .mag-turn-center {
  left: 50%;
  top: var(--turn-top);
  transform: translateX(-50%);
}
.mag-turn-base::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #271b11, transparent 70%);
  opacity: var(--turn-shadow, 0);
}
.mag-turn-left::after, .mag-turn-center::after {
  background: linear-gradient(270deg, #271b11, transparent 70%);
}
.mag-turn-strip {
  position: absolute;
  top: 0;
  left: calc(-1 * (var(--turn-strip) + var(--turn-overlap)));
  width: calc(var(--turn-strip) + var(--turn-overlap));
  height: 100%;
  transform-origin: right center;
  transform-style: preserve-3d;
}
.mag-turn-face {
  position: absolute;
  inset: 0;
  background: #f1e3c4;
  overflow: hidden;
  backface-visibility: hidden;
}
.mag-turn-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #291c12;
  opacity: var(--turn-shade, 0);
}
.mag-turn-back { transform: rotateY(180deg); }
.mag-turn-face .mag-leaf {
  position: absolute;
  top: 0;
  box-shadow: none;
}
@keyframes mag-arrive { from { opacity: 0; transform: translateY(7px); } }

@media (max-width: 759px) {
  .mag-layout { display: none; }
}
@media (max-width: 520px) {
  .street-magazine[open] {
    width: calc(100% - 12px);
    height: calc(100dvh - 12px);
    padding: 8px;
    gap: 7px;
  }
  .mag-reader, .mag-tools, .mag-pagination { gap: 6px; }
  .street-magazine :is(button, select) { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #naruka-bookshop-immersive .bk-magazine-copy img { transition: none; }
  .street-magazine[open] { animation: none; }
}
