@import url("font.css");

:root {
  --bg: #ffffff;
  --text: #1f1f1f;
  --muted: #77736f;
  --line: #e7e3df;
  --soft: #f7f5f2;
  --accent: #8b3f34;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  flex-wrap: wrap;
  line-height: 1.1;
}
.logo-main {
  font-family: "Ounen Web", "桜鯰", "SakuraNamazu", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  letter-spacing: .05em;
  font-weight: 400;
}
.logo-sub {
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}
.nav { display: flex; gap: 22px; align-items: center; font-size: .88rem; }
.nav a { text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--text); }
.menu-button { display: none; border: 1px solid var(--line); background: #fff; padding: 8px 10px; font: inherit; }

.hero { padding: 74px 0 54px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 12px; font-size: .78rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.hero h1, .page-head h1 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; letter-spacing: .03em; line-height: 1.4; }
.hero h1 { font-size: clamp(2rem, 5vw, 4rem); max-width: 900px; }
.hero p { max-width: 720px; margin: 22px 0 0; color: var(--muted); }

.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: 1.2rem; letter-spacing: .08em; font-weight: 600; }
.text-link { font-size: .86rem; color: var(--muted); text-underline-offset: 4px; }

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--muted); font-size: .88rem; }
.news-list a { text-decoration: none; }
.news-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; }
.work-card { min-width: 0; }
.work-card a { text-decoration: none; }
.thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.work-card a:hover .thumb img { transform: scale(1.015); }
.work-meta { display: flex; gap: 10px; align-items: center; margin-top: 13px; color: var(--muted); font-size: .76rem; letter-spacing: .04em; }
.tag { border: 1px solid var(--line); padding: 2px 7px; background: var(--soft); }
.work-card h3 { margin: 8px 0 0; font-size: 1rem; font-weight: 600; line-height: 1.55; }

.guide-callout { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; background: var(--soft); padding: 30px; }
.guide-callout h2 { margin: 0 0 8px; font-size: 1.15rem; }
.guide-callout p { margin: 0; color: var(--muted); }
.button { display: inline-block; border: 1px solid var(--text); padding: 10px 18px; text-decoration: none; font-size: .88rem; white-space: nowrap; }
.button:hover { background: var(--text); color: #fff; }
.button.secondary { border-color: var(--line); background: #fff; }
.button.secondary:hover { background: var(--soft); color: var(--text); }

.page-head { padding: 62px 0 38px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.page-head p { max-width: 720px; color: var(--muted); margin: 14px 0 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-button { border: 1px solid var(--line); background: #fff; padding: 8px 14px; cursor: pointer; font: inherit; font-size: .83rem; }
.filter-button.is-active { background: var(--text); color: #fff; border-color: var(--text); }

.work-hero { display: grid; grid-template-columns: 1.45fr .8fr; gap: 48px; align-items: start; }
.work-main-image { background: var(--soft); border: 1px solid var(--line); }
.work-main-image img { width: 100%; }
.work-summary h1 { margin: 6px 0 10px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.45; }
.work-summary p { color: var(--muted); }
.spec-list { margin: 26px 0 0; }
.spec-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.spec-row:last-child { border-bottom: 1px solid var(--line); }
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; }

.media-block { margin-top: 34px; }
.media-block h2 { margin: 0 0 16px; font-size: 1rem; letter-spacing: .08em; }
.video-wrap { background: #111; border: 1px solid var(--line); }
.video-wrap video { width: 100%; aspect-ratio: 16 / 9; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.gallery button { border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); }

.buy-list { display: flex; flex-wrap: wrap; gap: 10px; }
.note { color: var(--muted); font-size: .84rem; }

.guide-layout { display: grid; grid-template-columns: 220px 1fr; gap: 50px; align-items: start; }
.guide-nav { position: sticky; top: 116px; border-top: 1px solid var(--line); }
.guide-nav a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .88rem; color: var(--muted); }
.guide-body section { padding: 0 0 46px; margin: 0 0 46px; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.guide-body h2 { margin: 0 0 12px; font-size: 1.25rem; }
.guide-body h3 { margin-top: 28px; }
.steps { padding-left: 1.4rem; }
.steps li { margin: 8px 0; }
.info-box { background: var(--soft); padding: 18px 20px; margin-top: 18px; font-size: .9rem; }

.site-footer { padding: 30px 0 46px; color: var(--muted); font-size: .78rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.footer-x-link {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
}
.footer-x-link:hover,
.footer-x-link:focus-visible {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.86); display: none; place-items: center; z-index: 50; padding: 28px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 88vh; max-width: 92vw; }
.lightbox-close { position: fixed; top: 18px; right: 22px; border: 0; background: transparent; color: #fff; font-size: 2rem; cursor: pointer; }

@media (max-width: 820px) {
  .header-inner { min-height: 78px; }
  .menu-button { display: inline-block; }
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px 18px; flex-direction: column; align-items: flex-start; }
  .nav.is-open { display: flex; }
  .hero { padding: 52px 0 40px; }
  .section { padding: 48px 0; }
  .work-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .work-hero { grid-template-columns: 1fr; gap: 28px; }
  .guide-layout { grid-template-columns: 1fr; gap: 28px; }
  .guide-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .guide-nav a { border: 1px solid var(--line); padding: 7px 10px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .logo { gap: .3rem; }
  .logo-main { font-size: 1.35rem; }
  .logo-sub { font-size: .62rem; }
  .work-grid { grid-template-columns: 1fr; }
  .news-list li { grid-template-columns: 1fr; gap: 4px; }
  .guide-callout { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .section-head { align-items: start; flex-direction: column; gap: 10px; }
}


/* ===== v0.2 Instagram-style grid & mobile swipe gallery ===== */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  background: #fff;
}
.insta-work { min-width: 0; margin: 0; padding: 0; }
.insta-work[hidden] { display: none; }
.insta-work a { display: block; text-decoration: none; position: relative; }
.insta-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--soft);
}
.insta-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
}
.insta-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 12px 10px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
  line-height: 1.35;
}
.insta-overlay strong { display: block; font-size: .84rem; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.insta-overlay time { display: block; margin-top: 3px; font-size: .68rem; opacity: .82; }
.insta-tag { display: inline-block; margin-bottom: 4px; font-size: .62rem; letter-spacing: .08em; opacity: .9; }
.insta-work a:hover .insta-thumb img { transform: scale(1.025); }
.release-note { margin: 14px 0 0; color: var(--muted); font-size: .78rem; }

/* Mobile-only Instagram-like carousel on detail pages */
.mobile-media-carousel { display: none; }

@media (max-width: 820px) {
  .work-detail-section { padding-top: 0; }

  /* Always keep three works across, just like an Instagram profile grid. */
  .instagram-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .mobile-media-carousel {
    display: block;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 24px;
    background: #111;
    position: relative;
  }
  .mobile-media-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .mobile-media-track::-webkit-scrollbar { display: none; }
  .mobile-media-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: grid;
    place-items: center;
    background: #111;
  }
  .mobile-media-slide img,
  .mobile-media-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .mobile-video-slide video { object-fit: contain; background: #000; }
  .mobile-media-ui {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    pointer-events: none;
  }
  .mobile-media-count {
    grid-column: 1;
    justify-self: start;
    margin-left: 10px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0,0,0,.58);
    font-size: .68rem;
    line-height: 1.6;
  }
  .mobile-media-dots {
    grid-column: 2;
    justify-self: center;
    display: flex;
    gap: 4px;
    max-width: 150px;
    pointer-events: auto;
  }
  .mobile-media-dots button {
    width: 5px;
    height: 5px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: rgba(255,255,255,.48);
  }
  .mobile-media-dots button.is-active { background: #fff; transform: scale(1.25); }

  .work-hero .work-main-image { display: none; }
  .desktop-media-only { display: none; }
  .work-hero { display: block; }
}

@media (max-width: 560px) {
  /* Override v0.1 one-column rule: three square tiles remain across on phones. */
  .work-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .instagram-grid { width: 100vw; margin-left: calc(50% - 50vw); }
  .filters { margin-bottom: 14px; }
  .insta-overlay { padding: 24px 6px 5px; }
  .insta-overlay strong { font-size: .62rem; }
  .insta-overlay time { display: none; }
  .insta-tag { font-size: .52rem; margin-bottom: 2px; }
  .release-note { font-size: .72rem; }
}

/* ===== v0.3 20 works / font hook ===== */
.filter-count { opacity: .58; margin-left: .25em; }
.work-main-image { overflow: hidden; }
.work-main-image img { width: 100%; height: 100%; object-fit: cover; }
.portrait-media-block { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ===== v0.4 current Instagram-style 3:4 grid / black dividers / back button ===== */
/* 2026 Instagram profile thumbnails are portrait 3:4 rather than 1:1. */
.instagram-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: #000;
  border: 2px solid #000;
}
.insta-thumb { aspect-ratio: 3 / 4; }

/* Detail media uses the same portrait proportion for this mock. */
.work-main-image { aspect-ratio: 3 / 4; }
.portrait-video-wrap { aspect-ratio: 3 / 4; }
.portrait-video-wrap video,
.video-wrap.portrait-video-wrap video { aspect-ratio: 3 / 4; }
.portrait-gallery img,
.gallery.portrait-gallery img { aspect-ratio: 3 / 4; }

/* One-click back navigation. Uses browser history and falls back to works.html. */
.detail-backbar {
  position: sticky;
  top: 92px;
  z-index: 18;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.detail-backbar .container { min-height: 46px; display: flex; align-items: center; }
.detail-back-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 4px;
  color: var(--text);
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
}
.detail-back-button:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 820px) {
  .detail-backbar { top: 78px; }
  .mobile-media-carousel,
  .mobile-media-slide { aspect-ratio: 3 / 4; }
  .mobile-media-slide img,
  .mobile-media-slide video,
  .mobile-video-slide video { object-fit: cover; }
}

@media (max-width: 560px) {
  .instagram-grid {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border-left: 0;
    border-right: 0;
  }
  .insta-overlay { padding-top: 36px; }
}


/* ===== v0.5 release news / compact shop links ===== */

.top-x-link {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  align-self: center;
  border-radius: 5px;
  text-decoration: none;
  opacity: .82;
  transition: opacity .16s ease, transform .16s ease;
}
.top-x-link img {
  display: block;
  width: 100%;
  height: 100%;
}
.top-x-link:hover,
.top-x-link:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}
@media (max-width: 560px) {
  .top-x-link {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
}

.site-shop-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  margin-top: 20px;
}

.site-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.site-shop-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  flex: 0 0 18px;
}
.site-shop-link:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}
.news-section { padding-bottom: 54px; }
.new-works-section { padding-top: 54px; }

.detail-backbar .container {
  justify-content: space-between;
  gap: 16px;
}
.detail-shop-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.detail-shop-links a {
  color: var(--muted);
  font-size: .72rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  line-height: 1.4;
}
.detail-shop-links a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

@media (max-width: 560px) {
  .site-shop-links { margin-top: 16px; gap: 8px 14px; }
  .site-shop-link { font-size: .72rem; }
  .site-shop-icon { width: 17px; height: 17px; flex-basis: 17px; }
  .news-section { padding-bottom: 42px; }
  .new-works-section { padding-top: 42px; }
  .detail-backbar .container { gap: 8px; }
  .detail-back-button { font-size: .80rem; }
  .detail-shop-links { gap: 9px; }
  .detail-shop-links a { font-size: .62rem; }
}

/* ===== v0.6 VR180 viewing guide ===== */
.viewing-guide-page { background: #fff; }
.guide-page-head { padding-bottom: 44px; }
.guide-narrow { width: min(calc(100% - 40px), 960px); }
.guide-intro { padding: 58px 0 62px; border-bottom: 1px solid var(--line); }
.guide-title-row { display: flex; align-items: baseline; gap: 18px; margin-bottom: 22px; }
.guide-title-row h2, .guide-method-head h2 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; line-height: 1.45; }
.guide-title-row h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.guide-kicker { display: block; margin: 0 0 5px; color: var(--muted); font-size: .7rem; letter-spacing: .16em; }
.guide-lead { max-width: 830px; font-size: 1rem; }
.guide-lead p { margin: 0 0 15px; }
.guide-jump { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; border-top: 1px solid var(--text); border-bottom: 1px solid var(--text); }
.guide-jump a { display: flex; gap: 12px; align-items: center; padding: 16px 14px; text-decoration: none; font-size: .85rem; border-right: 1px solid var(--line); }
.guide-jump a:last-child { border-right: 0; }
.guide-jump span { color: var(--muted); font-size: .68rem; letter-spacing: .12em; }
.guide-jump a:hover { background: var(--soft); }

.guide-method { padding: 70px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 94px; }
.guide-method-alt { background: #faf9f7; }
.guide-method-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 34px; }
.guide-method-no { margin: 4px 0 0; min-width: 44px; font-size: .75rem; letter-spacing: .12em; color: var(--muted); }
.guide-method-head h2 { font-size: clamp(1.55rem, 3.5vw, 2.35rem); }

.guide-step { display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding: 34px 0; border-top: 1px solid var(--line); }
.guide-step-last { border-bottom: 1px solid var(--line); }
.guide-step-number { width: 38px; height: 38px; border: 1px solid var(--text); border-radius: 50%; display: grid; place-items: center; font-size: .82rem; line-height: 1; }
.guide-step-content h3 { margin: 0 0 14px; font-size: 1.13rem; letter-spacing: .03em; }
.guide-step-content > p { margin: 0 0 18px; }
.guide-note { margin-top: 18px; padding: 15px 18px; background: var(--soft); border-left: 3px solid #bbb; font-size: .86rem; }
.guide-note-line, .guide-image-disclaimer { color: var(--muted); font-size: .78rem; }
.guide-image-disclaimer { margin-top: 10px !important; }

.app-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 22px 0 12px; }
.app-choice { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; min-width: 0; padding: 16px; border: 1px solid var(--line); text-decoration: none; background: #fff; transition: border-color .18s ease, background .18s ease; }
.app-choice:hover { border-color: #aaa; background: #fafafa; }
.app-choice img { width: 84px; height: 84px; border-radius: 18px; }
.app-choice strong { display: block; font-size: .9rem; line-height: 1.45; }
.app-choice small { display: block; margin-top: 7px; color: var(--muted); font-size: .72rem; }
.app-label { display: inline-block; margin-bottom: 4px; color: var(--muted); font-size: .65rem; letter-spacing: .1em; }

.guide-shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 24px 0 14px; }
.guide-shot-grid-three, .guide-shot-grid-six, .guide-shot-grid-seven { grid-template-columns: repeat(3, minmax(0,1fr)); }
.guide-shot { margin: 0; min-width: 0; border: 1px solid var(--line); background: #fff; }
.guide-shot img { width: 100%; height: auto; background: #f5f5f5; }
.guide-shot figcaption { padding: 10px 12px 12px; color: var(--muted); font-size: .74rem; line-height: 1.5; border-top: 1px solid var(--line); }
.guide-shot-wide { max-width: 520px; }

.sample-download { display: grid; grid-template-columns: 48px 1fr auto; gap: 15px; align-items: center; max-width: 620px; margin: 20px 0 14px; padding: 18px 20px; border: 1px solid var(--text); text-decoration: none; }
.sample-download:hover { background: var(--text); color: #fff; }
.download-symbol { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 1.35rem; line-height: 1; }
.sample-download strong { display: block; font-size: .9rem; }
.sample-download small { display: block; margin-top: 3px; color: var(--muted); font-size: .71rem; }
.sample-download:hover small { color: #ccc; }
.download-arrow { font-size: 1.15rem; }

.guide-feature-media { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; margin: 24px 0 18px; }
.guide-settings-list { border-top: 1px solid var(--text); }
.guide-settings-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
.guide-settings-list span { color: var(--muted); }
.guide-settings-list strong { font-weight: 600; }
.center-help { display: grid; grid-template-columns: 66px 1fr; gap: 16px; align-items: center; max-width: 700px; margin: 18px 0 0; padding: 14px 16px; background: var(--soft); }
.center-help img { width: 66px; height: 66px; }
.center-help p { margin: 0; font-size: .84rem; }
.guide-action-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.guide-action-links a { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); text-decoration: none; font-size: .8rem; background: #fff; }
.guide-action-links a:hover { border-color: var(--text); }

@media (max-width: 820px) {
  .guide-method { scroll-margin-top: 80px; }
  .guide-jump { grid-template-columns: 1fr; }
  .guide-jump a { border-right: 0; border-bottom: 1px solid var(--line); }
  .guide-jump a:last-child { border-bottom: 0; }
  .guide-shot-grid-three { grid-template-columns: 1fr; max-width: 560px; }
  .guide-shot-grid-six, .guide-shot-grid-seven { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .guide-feature-media { grid-template-columns: 1fr; }
  .guide-settings-list { max-width: 520px; }
}

@media (max-width: 560px) {
  .guide-narrow { width: min(calc(100% - 28px), 960px); }
  .guide-page-head { padding: 44px 0 30px; }
  .guide-intro { padding: 40px 0 44px; }
  .guide-title-row { display: block; margin-bottom: 18px; }
  .guide-method { padding: 48px 0; }
  .guide-method-head { gap: 8px; margin-bottom: 24px; }
  .guide-method-no { min-width: 35px; }
  .guide-step { grid-template-columns: 36px 1fr; gap: 12px; padding: 28px 0; }
  .guide-step-number { width: 32px; height: 32px; font-size: .74rem; }
  .app-choice-grid { grid-template-columns: 1fr; }
  .app-choice { grid-template-columns: 70px 1fr; padding: 13px; }
  .app-choice img { width: 70px; height: 70px; border-radius: 15px; }
  .guide-shot-grid, .guide-shot-grid-three, .guide-shot-grid-six, .guide-shot-grid-seven { grid-template-columns: 1fr; }
  .sample-download { grid-template-columns: 42px 1fr auto; padding: 15px 14px; gap: 11px; }
  .download-symbol { width: 38px; height: 38px; }
  .center-help { grid-template-columns: 52px 1fr; padding: 12px; }
  .center-help img { width: 52px; height: 52px; }
}


/* ===== v0.7 image logo =====
   The header title is rendered as an image so the same 桜鯰-based logo
   appears consistently on iPhone, PC, and other devices. */
.logo.logo-image {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}
.site-logo-image {
  width: clamp(255px, 31vw, 390px);
  height: auto;
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
}
.logo.logo-image .logo-sub {
  flex: 0 0 auto;
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 820px) {
  .site-logo-image {
    width: clamp(230px, 44vw, 300px);
    max-height: 62px;
  }
  .logo.logo-image { gap: 8px; }
}
@media (max-width: 560px) {
  .site-logo-image {
    width: min(64vw, 225px);
    max-height: 54px;
  }
  .logo.logo-image .logo-sub { display: none; }
  .header-inner { gap: 14px; }
}

/* ===== v0.8.5 VRPlayer setting comparison ===== */
.guide-setting-comparison {
  grid-template-columns: minmax(0, 1fr) 44px minmax(220px, .58fr);
  gap: 16px;
  align-items: center;
}
.guide-setting-comparison .guide-shot-wide {
  max-width: none;
}
.guide-shot-detail {
  width: 100%;
  max-width: 360px;
  justify-self: start;
}
.guide-zoom-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
}
@media (max-width: 820px) {
  .guide-setting-comparison {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .guide-setting-comparison .guide-shot-wide,
  .guide-setting-comparison .guide-shot-detail {
    width: 100%;
    max-width: 560px;
  }
  .guide-zoom-arrow {
    justify-self: end;
    margin-right: 10px;
  }
}

/* ===== v0.8.6 download guide refinements ===== */
.guide-download-shot figcaption {
  color: #111;
  font-weight: 600;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.guide-download-shot img {
  display: block;
}

/* ===== v0.9.1 recommended VR goggles card ===== */
.guide-product-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  max-width: 620px;
  margin: 22px 0 4px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.guide-product-image {
  display: block;
  text-decoration: none;
}
.guide-product-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f7f7f7;
}
.guide-product-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: .92rem;
  line-height: 1.5;
}
.guide-product-info span {
  display: block;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: .76rem;
}
.guide-product-buy {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--text);
  color: var(--text);
  background: #fff;
  text-decoration: none;
  font-size: .8rem;
}
.guide-product-buy:hover {
  background: var(--text);
  color: #fff;
}
@media (max-width: 560px) {
  .guide-product-card {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 14px;
    padding: 13px;
  }
  .guide-product-info strong { font-size: .82rem; }
  .guide-product-info span { font-size: .68rem; margin-bottom: 10px; }
  .guide-product-buy { padding: 8px 10px; font-size: .72rem; }
}


/* ===== v0.9.7 live works state ===== */
.works-category-label { margin: 0 0 18px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
.coming-soon-thumb { position: relative; overflow: hidden; }
.coming-soon-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.08); pointer-events: none; }
.coming-soon-band { position: absolute; z-index: 2; left: -18%; top: 42%; width: 136%; transform: rotate(-18deg); padding: 10px 0; background: rgba(0,0,0,.72); color: #fff; text-align: center; font-size: clamp(.76rem, 2.2vw, 1.1rem); font-weight: 700; letter-spacing: .18em; pointer-events: none; }
.coming-soon-work { cursor: default; }


/* ===== v0.9.9 sample movie download links ===== */
.sample-movie-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.sample-movie-head h2 { margin: 0; }
.sample-movie-download,
.mobile-sample-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--text);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
}
.sample-movie-download:hover,
.mobile-sample-download:hover {
  background: var(--text);
  color: #fff;
}
.mobile-sample-download { display: none; }
@media (max-width: 720px) {
  .mobile-sample-download {
    display: flex;
    width: calc(100% - 24px);
    margin: 10px 12px 0;
    min-height: 44px;
    font-size: .78rem;
  }
}

/* ===== v1.0.0 top latest-works empty cells ===== */
.insta-empty {
  pointer-events: none;
}
.insta-empty-thumb {
  background: #fff;
}

/* ===== v1.0.2 empty grid cells should be fully white, including surrounding dividers ===== */
.insta-empty {
  pointer-events: none;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 2px #fff;
  background: #fff;
}
.insta-empty-thumb {
  background: #fff;
}

/* ===== v1.0.3 NEW WORKS: populated cells keep a full black frame, empty cells stay fully white ===== */
.release-grid {
  background: #fff;
  border: 0;
  gap: 0;
}
.release-grid .insta-work:not(.insta-empty) {
  position: relative;
  z-index: 2;
  box-shadow: inset 0 0 0 2px #000;
}
.release-grid .insta-work:not(.insta-empty) .insta-thumb {
  z-index: -1;
}
.release-grid .insta-empty {
  box-shadow: none;
  background: #fff;
  z-index: 1;
}

/* ===== v1.0.4 common coming-soon image blocks ===== */
.coming-soon-thumb::after,
.coming-soon-band { display: none !important; content: none !important; }
.coming-soon-work { cursor: default; }
.coming-soon-work .insta-thumb,
.coming-soon-work .insta-thumb img { background: #fff; }

/* NEW WORKS also uses the same black-framed image grid when coming-soon slots are shown. */
.release-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: #000;
  border: 2px solid #000;
}
.release-grid .insta-work,
.release-grid .coming-soon-work,
.works-instagram-grid .insta-work,
.works-instagram-grid .coming-soon-work {
  box-shadow: none;
  background: transparent;
}
.release-grid .insta-thumb,
.works-instagram-grid .insta-thumb {
  background: #fff;
}

/* ===== v1.0.5 CSS-only coming-soon cards ===== */
.coming-soon-thumb {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.13) 0 10%, transparent 32%),
    radial-gradient(circle at 82% 80%, rgba(255,255,255,.10) 0 13%, transparent 34%),
    linear-gradient(135deg, #8d79cf 0%, #765bc5 48%, #c56aa2 100%) !important;
}
.coming-soon-thumb::after {
  display: none !important;
  content: none !important;
}
.coming-soon-band {
  display: block !important;
  position: absolute;
  z-index: 2;
  left: -18%;
  top: 42%;
  width: 136%;
  transform: rotate(-18deg);
  padding: 12px 0;
  background: rgba(0,0,0,.78);
  color: #fff;
  text-align: center;
  font-size: clamp(.78rem, 2.3vw, 1.15rem);
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.2;
  pointer-events: none;
}
.release-grid,
.works-instagram-grid {
  gap: 2px;
  background: #000;
  border: 2px solid #000;
}
.release-grid .insta-work,
.works-instagram-grid .insta-work {
  background: #000;
}


/* ===== v1.0.6 multi-category test set ===== */
.release-grid { gap: 2px; background: #000; border: 2px solid #000; }
.coming-soon-thumb { position: relative; overflow: hidden; background: linear-gradient(135deg, #7863c5 0%, #8a6fd0 48%, #be6f9d 100%); }
.coming-soon-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.08); pointer-events: none; display:block !important; }
.coming-soon-band { position: absolute; z-index: 2; left: -18%; top: 42%; width: 136%; transform: rotate(-18deg); padding: 10px 0; background: rgba(0,0,0,.78); color: #fff; text-align: center; font-size: clamp(.76rem, 2.2vw, 1.1rem); font-weight: 700; letter-spacing: .18em; pointer-events: none; display:block !important; }
.coming-soon-work { cursor: default; }
.coming-soon-work .insta-thumb { background: linear-gradient(135deg, #7863c5 0%, #8a6fd0 48%, #be6f9d 100%); }
.coming-soon-work .insta-overlay { display:none !important; }
.grid-filler .insta-thumb { background: linear-gradient(135deg, #7863c5 0%, #8a6fd0 48%, #be6f9d 100%); }
.insta-empty, .insta-empty-thumb { box-shadow:none !important; background:transparent !important; }

/* ===== v1.0.7 compact multi-tag filter ===== */
.works-filter-section { padding: 0 0 72px; }
.works-grid-container { padding-top: 22px; }
.tag-filter-sticky {
  position: sticky;
  top: 92px;
  z-index: 15;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 16px rgba(0,0,0,.035);
  backdrop-filter: blur(8px);
}
.tag-filter-inner { padding-top: 10px; padding-bottom: 9px; }
.tag-filter-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.tag-filter-bar::-webkit-scrollbar,
.selected-tags-scroll::-webkit-scrollbar { display: none; }
.tag-quick-button,
.tag-filter-open,
.tag-option-button,
.selected-tag-chip {
  border: 1px solid #d4d4d4;
  background: #fff;
  color: #222;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.tag-quick-button,
.tag-filter-open { flex: 0 0 auto; padding: 7px 12px; font-size: .76rem; border-radius: 999px; }
.tag-quick-button.is-active,
.tag-option-button.is-active { background: #222; color: #fff; border-color: #222; }
.tag-filter-open { margin-left: auto; border-color: #999; font-weight: 600; }
.tag-filter-summary { display: flex; align-items: center; gap: 10px; min-width: 0; height: 30px; }
.selected-tags-scroll {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tag-all-label { color: var(--muted); font-size: .72rem; letter-spacing: .08em; }
.selected-tag-chip { flex: 0 0 auto; padding: 4px 8px 4px 10px; border-radius: 999px; font-size: .7rem; background: #f7f7f7; }
.selected-tag-chip span { margin-left: 6px; color: #777; }
.tag-result-count { flex: 0 0 auto; font-size: .72rem; font-weight: 600; color: #555; }

.tag-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .2s ease;
}
.tag-sheet-backdrop.is-open { opacity: 1; }
.tag-filter-sheet {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 0;
  width: min(680px, 100%);
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #bbb;
  border-bottom: 0;
  transform: translate(-50%, 105%);
  transition: transform .22s ease;
  box-shadow: 0 -12px 36px rgba(0,0,0,.15);
}
.tag-filter-sheet.is-open { transform: translate(-50%, 0); }
.tag-sheet-handle { width: 42px; height: 4px; margin: 8px auto 1px; border-radius: 4px; background: #ccc; }
.tag-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 14px 20px 12px; border-bottom: 1px solid var(--line); }
.tag-sheet-head h2 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.tag-sheet-head .eyebrow { margin: 0 0 2px; }
.tag-sheet-close { border: 0; background: transparent; font-size: 1.65rem; line-height: 1; cursor: pointer; padding: 2px 4px; }
.tag-sheet-body { overflow-y: auto; padding: 14px 20px 20px; }
.tag-sheet-all { margin-bottom: 14px; }
.tag-group { padding: 13px 0 15px; border-top: 1px solid var(--line); }
.tag-group h3 { margin: 0 0 9px; font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .08em; }
.tag-option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-option-button { padding: 8px 13px; border-radius: 999px; font-size: .8rem; }
.tag-sheet-footer { padding: 12px 20px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.tag-apply-button { width: 100%; border: 1px solid #222; background: #222; color: #fff; padding: 12px; font: inherit; font-size: .86rem; cursor: pointer; }
body.tag-sheet-open { overflow: hidden; }

/* Dynamic filler cards use the same common coming-soon design. */
.tag-grid-filler { cursor: default; }
.tag-grid-filler .coming-soon-thumb { background: linear-gradient(135deg, #7863c5 0%, #8a6fd0 48%, #be6f9d 100%); }
.tag-grid-filler .coming-soon-band { display: block !important; }

@media (max-width: 820px) {
  .tag-filter-sticky { top: 78px; }
}
@media (max-width: 560px) {
  .works-grid-container { width: 100%; padding-top: 12px; }
  .tag-filter-inner { width: 100%; padding-left: 12px; padding-right: 12px; }
  .tag-filter-bar { gap: 6px; }
  .tag-quick-button, .tag-filter-open { padding: 7px 10px; font-size: .7rem; }
  .tag-filter-open { margin-left: 0; }
  .tag-filter-summary { height: 27px; }
  .tag-filter-sheet { max-height: 80vh; border-left: 0; border-right: 0; }
  .tag-sheet-head, .tag-sheet-body, .tag-sheet-footer { padding-left: 16px; padding-right: 16px; }
}

/* ===== v1.0.8 iPhone Safari filter compatibility + mobile download placement ===== */
@media (max-width: 720px) {
  .mobile-media-carousel {
    background: #fff;
    padding-bottom: 12px;
  }
  .mobile-media-ui {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    min-height: 34px;
    padding: 8px 10px 4px;
    background: #fff;
    grid-template-columns: 56px 1fr 56px;
    pointer-events: none;
  }
  .mobile-media-count {
    color: #555;
    background: #f2f2f2;
    margin-left: 0;
  }
  .mobile-media-dots {
    pointer-events: auto;
  }
  .mobile-media-dots button {
    background: #bbb;
  }
  .mobile-media-dots button.is-active {
    background: #222;
  }
  .mobile-sample-download {
    position: static;
    display: flex;
    width: calc(100% - 24px);
    margin: 8px 12px 0;
    clear: both;
  }
}

/* Improve tap reliability on iOS Safari. */
.tag-quick-button,
.tag-filter-open,
.tag-option-button,
.selected-tag-chip,
.tag-sheet-close,
.tag-apply-button {
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,.08);
}

/* ===== v1.0.9 iPhone works header + selected-tag/result layout ===== */
.works-label-mobile { display: none; }

@media (max-width: 560px) {
  /* Keep the works intro extremely compact on iPhone. */
  .works-page-head {
    padding: 24px 0 12px;
  }
  .works-page-head h1,
  .works-page-description,
  .works-label-desktop {
    display: none;
  }
  .works-label-mobile {
    display: inline;
  }
  .works-page-label {
    margin: 0;
    color: var(--text);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .08em;
  }

  /* Selected tags stay on their own horizontal-scroll row. */
  .tag-filter-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    height: auto;
    min-height: 48px;
    padding-top: 3px;
    padding-bottom: 4px;
    align-items: stretch;
  }
  .selected-tags-scroll {
    width: 100%;
    min-height: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 4px;
  }
  .tag-result-count {
    display: block;
    width: 100%;
    padding-right: 2px;
    text-align: right;
    line-height: 1.2;
  }
}

/* ===== v1.1.0 live result count inside tag bottom sheet ===== */
.tag-sheet-result {
  margin: 0 0 9px;
  text-align: center;
  color: #666;
  font-size: .76rem;
  line-height: 1.4;
}
.tag-sheet-result strong {
  color: #111;
  font-size: .9rem;
  font-weight: 700;
}

/* ===== v1.1.1 bottom-sheet header + overlap-safe selected tags on all screen sizes ===== */
.tag-filter-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  height: auto;
  min-height: 48px;
  padding-top: 3px;
  padding-bottom: 4px;
  align-items: stretch;
}
.selected-tags-scroll {
  width: 100%;
  min-width: 0;
  min-height: 25px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-right: 4px;
}
.tag-result-count {
  display: block;
  width: 100%;
  padding-right: 2px;
  text-align: right;
  line-height: 1.2;
}

.tag-sheet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.tag-sheet-head h2 {
  min-width: 0;
  white-space: nowrap;
}
.tag-sheet-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.tag-sheet-result-head {
  margin: 0;
  white-space: nowrap;
  text-align: right;
}
.tag-sheet-all-head {
  flex: 0 0 auto;
  padding: 7px 12px;
}
.tag-sheet-footer .tag-sheet-result { display: none; }
.tag-sheet-footer { padding-top: 12px; }

@media (max-width: 560px) {
  .tag-sheet-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }
  .tag-sheet-head h2 {
    font-size: 1rem;
  }
  .tag-sheet-head-actions { gap: 5px; }
  .tag-sheet-result-head {
    font-size: .66rem;
  }
  .tag-sheet-result-head strong {
    font-size: .76rem;
  }
  .tag-sheet-all-head {
    padding: 6px 9px;
    font-size: .7rem;
  }
  .tag-sheet-close {
    font-size: 1.4rem;
    padding: 1px 2px;
  }
}


/* ===== v1.1.2 detail-page tags ===== */
.work-meta {
  flex-wrap: wrap;
  align-items: center;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.work-tags .tag {
  white-space: nowrap;
}
.work-meta time {
  white-space: nowrap;
}


/* ===== v1.2.0 language switch / bilingual site ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.nav { margin-left: auto; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  line-height: 1;
  font-size: .7rem;
  letter-spacing: .06em;
  white-space: nowrap;
}
.lang-switch a,
.lang-switch span {
  display: block;
  padding: 7px 8px;
  text-decoration: none;
}
.lang-switch .is-active {
  background: var(--text);
  color: #fff;
}
.lang-switch a:hover { background: var(--soft); }

/* Accessible pressed state for filter controls. */
.tag-quick-button[aria-pressed="true"],
.tag-option-button[aria-pressed="true"] {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

@media (max-width: 820px) {
  .nav { margin-left: 0; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .site-logo-image { width: min(55vw, 195px); }
  .header-inner { gap: 10px; }
  .header-actions { gap: 5px; }
  .lang-switch { font-size: .64rem; }
  .lang-switch a, .lang-switch span { padding: 7px 6px; }
  .menu-button { padding: 7px 8px; font-size: .74rem; }
}

/* English pages use the same restrained layout; allow longer labels to wrap cleanly. */
html[lang="en"] .tag-option-button,
html[lang="en"] .tag-quick-button { white-space: nowrap; }
html[lang="en"] .work-tags { row-gap: 6px; }
html[lang="en"] .guide-shot figcaption { line-height: 1.45; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-banner-wrap {
  margin: 10px 0 0;
  max-width: 1400px;
}
.hero-banner-image {
  display: block;
  width: 100%;
  max-width: 1280px;
  height: auto;
  border-radius: 16px;
}
@media (max-width: 767px) {
  .hero-banner-wrap {
    margin-top: 8px;
  }
  .hero-banner-image {
    border-radius: 12px;
  }
}

/* ===== v1.2.2 hero viewing-guide deep link ===== */
.hero-description {
  line-height: 1.9;
}
.hero-guide-link {
  color: #c82f68;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.hero-guide-link:hover,
.hero-guide-link:focus-visible {
  color: #9f214f;
}
#viewing-methods {
  scroll-margin-top: 96px;
}

.hero-banner-wrap-en {
  max-width: 1400px;
}
.hero-banner-image-en {
  width: 100%;
  max-width: 1280px;
  height: auto;
}

/* ===== v1.2.5 compact ALL WORKS heading ===== */
.works-title-section {
  padding: 44px 0 18px;
}
.works-title-head {
  margin-bottom: 0;
}
.works-title-head h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: .08em;
  font-weight: 600;
}
@media (max-width: 560px) {
  .works-title-section {
    padding: 28px 0 12px;
  }
}

/* ===== v1.2.7 thumbnail title emphasis / desktop result count ===== */
/* Center the work information over the thumbnail and prioritize title readability. */
.insta-overlay {
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: clamp(12px, 2vw, 28px);
  text-align: center;
  background: linear-gradient(to bottom, rgba(0,0,0,.16), rgba(0,0,0,.36), rgba(0,0,0,.16));
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0,0,0,.75);
}
.insta-overlay strong {
  display: block;
  max-width: 94%;
  margin: 0 auto;
  padding: .32em .5em;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  font-size: clamp(.95rem, 1.65vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
  background: rgba(0,0,0,.48);
  border-radius: 5px;
  text-wrap: balance;
}
.insta-overlay .insta-tag {
  margin: 0;
  font-size: clamp(.62rem, .82vw, .78rem);
  font-weight: 700;
  letter-spacing: .09em;
}
.insta-overlay time {
  display: block;
  margin: 0;
  font-size: clamp(.66rem, .75vw, .76rem);
  opacity: .92;
}

/* On desktop, make the published-result count much more prominent. */
@media (min-width: 821px) {
  .tag-filter-summary {
    height: auto;
    min-height: 52px;
  }
  .tag-result-count {
    font-size: 2.16rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
  }
}

/* Keep the centered title readable in the three-column phone grid. */
@media (max-width: 560px) {
  .insta-overlay {
    inset: 0;
    gap: 4px;
    padding: 7px 4px;
  }
  .insta-overlay strong {
    max-width: 98%;
    padding: .3em .34em;
    font-size: clamp(.72rem, 3.2vw, .9rem);
    line-height: 1.28;
    border-radius: 3px;
  }
  .insta-overlay .insta-tag {
    font-size: .54rem;
  }
  .insta-overlay time {
    display: none;
  }
}


/* ===== v1.2.8 thumbnail overlay position ===== */
/* Keep the v1.2.7 typography/background treatment; move its content to the top of each thumbnail. */
.insta-overlay {
  justify-content: flex-start;
  padding-top: clamp(10px, 1.4vw, 18px);
}
@media (max-width: 560px) {
  .insta-overlay {
    justify-content: flex-start;
    padding-top: 6px;
  }
}


/* ===== v1.3.5 work detail store links ===== */
.work-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font-size: .82rem;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.work-store-link:hover {
  background: var(--soft);
  border-color: var(--text);
  color: var(--text);
}
.work-store-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
  flex: 0 0 20px;
}
.detail-shop-links .work-store-link {
  color: var(--text);
  font-size: .76rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 7px 10px;
}
.detail-shop-links .work-store-link:hover {
  color: var(--text);
  border-color: var(--text);
}
.buy-list .work-store-link {
  min-width: 150px;
}
@media (max-width: 560px) {
  .detail-shop-links { gap: 6px; }
  .detail-shop-links .work-store-link {
    min-height: 34px;
    padding: 6px 8px;
    font-size: .67rem;
    gap: 6px;
  }
  .detail-shop-links .work-store-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
  .buy-list .work-store-link {
    min-width: 0;
    flex: 1 1 140px;
  }
}


/* ===== v1.3.6 unified sales / works buttons ===== */
.site-shop-links .site-shop-link.work-store-link {
  color: var(--text);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid var(--line);
  padding: 8px 13px;
}
.site-shop-links .site-shop-link.work-store-link:hover {
  color: var(--text);
  border-color: var(--text);
}
.guide-action-links.store-action-links {
  align-items: stretch;
}
.guide-action-links.store-action-links .work-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: .82rem;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.guide-action-links.store-action-links .work-store-link:hover {
  background: var(--soft);
  border-color: var(--text);
  color: var(--text);
}
.guide-action-links.store-action-links .works-list-store-link {
  min-width: 120px;
}
@media (max-width: 560px) {
  .site-shop-links .site-shop-link.work-store-link,
  .guide-action-links.store-action-links .work-store-link {
    font-size: .72rem;
    padding: 7px 9px;
    gap: 6px;
  }
  .guide-action-links.store-action-links .work-store-icon,
  .site-shop-links .work-store-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
  .guide-action-links.store-action-links .works-list-store-link {
    min-width: 100px;
  }
}

/* ===== v1.3.7 1200x675 (16:9) work image display ===== */
/*
   Work thumbnails, main images and sample images are now prepared from
   mpv/mpv360 screenshots at 1200x675.  Use contain rather than cover so
   neither edge of the screenshot is cropped on desktop or iPhone.
*/
.insta-thumb {
  aspect-ratio: 16 / 9;
  background: #000;
}
.insta-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.insta-work a:hover .insta-thumb img {
  transform: none;
}

/* Detail main image: preserve the complete 16:9 screenshot. */
.work-main-image {
  aspect-ratio: 16 / 9;
  background: #000;
}
.work-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Desktop sample movie area follows the same horizontal media shape. */
.portrait-video-wrap,
.portrait-video-wrap video,
.video-wrap.portrait-video-wrap video {
  aspect-ratio: 16 / 9;
}

/* Desktop sample images: full 16:9 image + visible black frame. */
.gallery.portrait-gallery button {
  border: 3px solid #000;
  padding: 0;
  background: #000;
  overflow: hidden;
  box-sizing: border-box;
}
.gallery.portrait-gallery img,
.portrait-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  border: 0;
}

/* The enlarged PC lightbox should show the source image without a frame. */
.lightbox img {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent;
}

@media (max-width: 820px) {
  /* Horizontal 16:9 carousel on iPhone/tablet; no edge cropping. */
  .mobile-media-carousel,
  .mobile-media-slide {
    aspect-ratio: auto;
  }
  .mobile-media-track {
    background: #111;
  }
  .mobile-media-slide {
    aspect-ratio: 16 / 9;
    background: #111;
  }
  .mobile-media-slide img,
  .mobile-media-slide video,
  .mobile-video-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  /* Only sample stills get the black frame; the main image does not. */
  .mobile-sample-image-slide {
    padding: 3px;
    background: #000;
    box-sizing: border-box;
  }
  .mobile-sample-image-slide img {
    border: 0;
  }
}

/* ===== v1.3.8 3:4 media frames with 16:9 source images ===== */
/*
   Keep the visual slots at 3:4, but show 16:9 screenshots without cropping.
   This intentionally leaves vertical breathing room above/below the image.
*/
.insta-thumb {
  aspect-ratio: 3 / 4;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.insta-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.work-main-image {
  aspect-ratio: 3 / 4;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Desktop sample-image tiles stay 3:4. The 16:9 image sits centered inside. */
.gallery.portrait-gallery button {
  aspect-ratio: 3 / 4;
  border: 0;
  padding: 0;
  background: #fff;
  overflow: visible;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery.portrait-gallery img,
.portrait-gallery img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
  border: 30px solid #000;
  box-shadow: none;
}

/* Enlarged images should not carry the thumbnail frame. */
.lightbox img {
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
}

@media (max-width: 820px) {
  .mobile-media-carousel,
  .mobile-media-slide {
    aspect-ratio: 3 / 4;
  }
  .mobile-media-track,
  .mobile-media-slide {
    background: #fff;
  }
  .mobile-media-slide {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-media-slide img,
  .mobile-media-slide video,
  .mobile-video-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .mobile-sample-image-slide {
    padding: 0;
    background: #fff;
  }
  .mobile-sample-image-slide img {
    width: 100%;
    height: auto;
    max-height: 100%;
    box-sizing: border-box;
    border: 30px solid #000;
    box-shadow: none;
  }
}

/* ===== v1.3.9 black 3:4 media slots + overlay sample frame ===== */
/*
   The media slot itself remains 3:4 and is black. 16:9 screenshots sit in
   the full slot with object-fit: contain. Sample-image frames are drawn as
   an overlay, so the source image extends behind the 30px black frame rather
   than being reduced by border width.
*/
.insta-thumb,
.work-main-image {
  aspect-ratio: 3 / 4;
  background: #000;
}
.insta-thumb img,
.work-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Desktop sample stills: the 3:4 tile is the frame. */
.gallery.portrait-gallery button {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  background: #000;
  overflow: hidden;
  box-sizing: border-box;
  display: block;
}
.gallery.portrait-gallery button img,
.gallery.portrait-gallery img,
.portrait-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border: 0 !important;
  box-shadow: none;
  box-sizing: border-box;
}
.gallery.portrait-gallery button::after {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 30px solid #000;
  pointer-events: none;
  z-index: 2;
}

/* Enlarged PC lightbox remains frame-free. */
.lightbox img {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent;
}

@media (max-width: 820px) {
  .mobile-media-carousel,
  .mobile-media-slide {
    aspect-ratio: 3 / 4;
  }
  .mobile-media-track,
  .mobile-media-slide {
    background: #000;
  }
  .mobile-media-slide {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-media-slide img,
  .mobile-media-slide video,
  .mobile-video-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .mobile-sample-image-slide {
    position: relative;
    padding: 0;
    background: #000;
    overflow: hidden;
  }
  .mobile-sample-image-slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
    border: 0 !important;
    box-shadow: none;
  }
  .mobile-sample-image-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    border: 30px solid #000;
    pointer-events: none;
    z-index: 2;
  }
}


/* ===== v1.4.0 unified 3:4 work-detail hero ===== */
/*
   The detail hero is one black 3:4 panel on both desktop and iPhone.
   The 16:9 main still spans the full panel width. Metadata occupies the
   black area above it, while the description/specs occupy the black area
   below it. The old right-hand summary column is no longer used.
*/
.work-detail-section .work-hero {
  display: block;
  width: min(100%, 1160px);
  margin: 0 auto;
}
.work-main-panel {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #000;
  color: #fff;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  overflow: hidden;
}
.work-panel-top,
.work-panel-bottom {
  min-height: 0;
  padding-left: clamp(24px, 4.2vw, 58px);
  padding-right: clamp(24px, 4.2vw, 58px);
}
.work-panel-top {
  padding-top: clamp(24px, 3.5vw, 50px);
  padding-bottom: clamp(18px, 2.8vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(10px, 1.2vw, 18px);
}
.work-panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.work-main-panel .eyebrow {
  margin: 0;
  color: #f2b8d1;
  font-weight: 700;
  letter-spacing: .2em;
}
.work-panel-topline time {
  color: #f2b8d1;
  font-size: .86rem;
  letter-spacing: .06em;
  white-space: nowrap;
}
.work-main-panel .work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.work-main-panel .work-tags .tag {
  color: #f8d5e4;
  background: rgba(238, 147, 187, .08);
  border-color: rgba(246, 195, 218, .52);
  font-size: .76rem;
  line-height: 1.35;
  padding: 4px 9px;
}
.work-main-panel h1 {
  margin: 0;
  color: #fff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  line-height: 1.35;
  letter-spacing: .025em;
}
.work-panel-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.work-panel-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.work-panel-bottom {
  padding-top: clamp(20px, 3vw, 42px);
  padding-bottom: clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.work-panel-description {
  margin: 0;
  color: #fff;
  font-size: clamp(.92rem, 1.4vw, 1.04rem);
  line-height: 1.8;
}
.work-main-panel .work-panel-spec {
  margin: clamp(16px, 2vw, 28px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 22px;
}
.work-main-panel .work-panel-spec .spec-row {
  display: grid;
  grid-template-columns: minmax(72px, auto) 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,.19);
  font-size: .88rem;
}
.work-main-panel .work-panel-spec .spec-row:last-child {
  border-bottom: 0;
}
.work-main-panel .work-panel-spec dt {
  color: #f2b8d1;
  white-space: nowrap;
}
.work-main-panel .work-panel-spec dd {
  color: #fff;
  margin: 0;
}

/* Keep mobile sample carousel, but place it after the unified main panel. */
@media (max-width: 820px) {
  .work-detail-section {
    padding-top: 0;
  }
  .work-detail-section .container.work-hero {
    width: 100%;
    max-width: none;
  }
  .work-main-panel {
    width: 100%;
    aspect-ratio: 3 / 4;
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .work-panel-top,
  .work-panel-bottom {
    padding-left: 15px;
    padding-right: 15px;
  }
  .work-panel-top {
    padding-top: 13px;
    padding-bottom: 11px;
    gap: 6px;
  }
  .work-panel-topline {
    gap: 8px;
  }
  .work-main-panel .eyebrow,
  .work-panel-topline time {
    font-size: .62rem;
  }
  .work-main-panel .work-tags {
    gap: 4px;
  }
  .work-main-panel .work-tags .tag {
    font-size: .55rem;
    padding: 2px 5px;
    line-height: 1.25;
  }
  .work-main-panel h1 {
    font-size: clamp(1.05rem, 5.1vw, 1.38rem);
    line-height: 1.28;
  }
  .work-panel-bottom {
    padding-top: 11px;
    padding-bottom: 13px;
  }
  .work-panel-description {
    font-size: .69rem;
    line-height: 1.55;
  }
  .work-main-panel .work-panel-spec {
    margin-top: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 13px;
  }
  .work-main-panel .work-panel-spec .spec-row {
    display: block;
    padding: 4px 0 3px;
    font-size: .59rem;
    line-height: 1.35;
  }
  .work-main-panel .work-panel-spec dt,
  .work-main-panel .work-panel-spec dd {
    display: block;
  }
  .mobile-media-carousel {
    margin-top: 22px;
  }
}

/* ===== v1.4.1 detail-panel information layout + in-panel mobile swipe ===== */
/* Desktop: top line at the very top, title centered, tags immediately above main image. */
.work-panel-top {
  justify-content: flex-start;
  gap: 0;
}
.work-panel-topline {
  flex: 0 0 auto;
}
.work-main-panel h1 {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(8px, 1.6vw, 22px) 0;
}
.work-panel-top .work-tags {
  flex: 0 0 auto;
  margin-top: auto;
}

/* Description remains at the top of the lower black area; specs stay anchored to its bottom. */
.work-panel-bottom {
  justify-content: flex-start;
}
.work-main-panel .work-panel-spec {
  margin-top: auto;
  padding-top: clamp(10px, 1.5vw, 20px);
}

/* Desktop uses the static main image. The swipe carousel is an iPhone/tablet feature. */
.desktop-main-image { display: block; }
.mobile-panel-carousel,
.mobile-panel-download { display: none; }

@media (max-width: 820px) {
  /* Keep the entire hero a 3:4 black panel. */
  .work-main-panel {
    aspect-ratio: 3 / 4;
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .work-panel-top {
    padding-top: 12px;
    padding-bottom: 7px;
  }
  .work-panel-topline {
    flex: 0 0 auto;
  }
  .work-main-panel h1 {
    flex: 1 1 auto;
    min-height: 0;
    padding: 3px 0 5px;
    text-align: center;
  }
  .work-panel-top .work-tags {
    margin-top: auto;
  }

  /* The central 16:9 area becomes a swipe carousel: main -> movie -> samples. */
  .work-panel-image {
    width: 100%;
    aspect-ratio: auto;
    overflow: visible;
    background: #000;
  }
  .desktop-main-image { display: none !important; }
  .mobile-panel-carousel {
    display: block;
    width: 100%;
    margin: 0;
    background: #000;
  }
  .mobile-panel-carousel .mobile-media-track {
    width: 100%;
    background: #000;
  }
  .mobile-panel-carousel .mobile-media-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    display: grid;
    place-items: center;
  }
  .mobile-panel-carousel .mobile-media-slide img,
  .mobile-panel-carousel .mobile-media-slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #000;
  }

.detail-vr-icon-badge {
  position: absolute;
  top: 2.8%;
  left: 1.8%;
  width: clamp(78px, 12vw, 138px);
  aspect-ratio: 64 / 40;
  z-index: 7;
  pointer-events: none;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.45));
}
.detail-vr-icon-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 820px) {
  .detail-vr-icon-badge {
    top: 7px;
    left: 7px;
    width: clamp(64px, 24vw, 102px);
  }
}


  /* Dots sit immediately below the media. White = inactive, pale pink = active. */
  .mobile-panel-media-ui {
    min-height: 25px;
    padding: 8px 10px 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
  }
  .mobile-panel-media-ui .mobile-media-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: none;
  }
  .mobile-panel-media-ui .mobile-media-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    opacity: .95;
    transform: none;
  }
  .mobile-panel-media-ui .mobile-media-dots button.is-active {
    background: #f2b8d1;
    opacity: 1;
    transform: scale(1.28);
  }

  /* Lower panel: description at top, two columns x three specs at bottom. */
  .work-panel-bottom {
    padding-top: 8px;
    padding-bottom: 10px;
  }
  .work-panel-description {
    flex: 0 1 auto;
    min-height: 0;
  }
  .work-main-panel .work-panel-spec {
    margin-top: auto;
    padding-top: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px 11px;
  }
  .work-main-panel .work-panel-spec .spec-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: baseline;
    gap: 5px;
    padding: 3px 0;
    font-size: .58rem;
    line-height: 1.3;
  }
  .work-main-panel .work-panel-spec dt,
  .work-main-panel .work-panel-spec dd {
    display: block;
    min-width: 0;
    white-space: nowrap;
  }

  /* Download link remains available, but outside the 3:4 panel. */
  .mobile-panel-download {
    display: flex;
    width: calc(100% - 24px);
    margin: 12px auto 0;
  }

  /* The legacy standalone carousel is no longer used. */
  .mobile-media-carousel { display: none !important; }
}

/* ===== v1.4.2 mobile detail sample media ===== */
/* Inside the iPhone/tablet in-panel carousel, sample stills use the exact
   same media treatment as the main image: no overlaid black frame. */
@media (max-width: 820px) {
  .mobile-panel-carousel .mobile-sample-image-slide::after {
    content: none !important;
    display: none !important;
  }
  .mobile-panel-carousel .mobile-sample-image-slide,
  .mobile-panel-carousel .mobile-sample-image-slide img {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }
}

/* ===== v1.4.3 unified detail media carousel (desktop + iPhone) ===== */
/* The 3:4 black work panel remains unchanged; only the central 16:9 media area
   becomes a universal carousel. Desktop adds overlay arrows and a thumbnail row. */
.work-panel-image {
  width: 100%;
  aspect-ratio: auto;
  overflow: visible;
  background: #000;
}
.desktop-main-image { display: none !important; }
.mobile-panel-carousel {
  display: block !important;
  width: 100%;
  margin: 0;
  background: #000;
}
.detail-media-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.mobile-panel-carousel .mobile-media-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #000;
}
.mobile-panel-carousel .mobile-media-track::-webkit-scrollbar { display: none; }
.mobile-panel-carousel .mobile-media-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  place-items: center;
  background: #000;
}
.mobile-panel-carousel .mobile-media-slide img,
.mobile-panel-carousel .mobile-media-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: #000;
}
.detail-carousel-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 78px;
  border: 0;
  background: rgba(0, 0, 0, .46);
  color: #fff;
  font: 300 54px/1 Arial, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, opacity .18s ease;
}
.detail-carousel-arrow:hover { background: rgba(0, 0, 0, .72); }
.detail-carousel-prev { left: 0; }
.detail-carousel-next { right: 0; }
.detail-carousel-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}
.desktop-media-thumbs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 18px 14px;
  background: #000;
}
.desktop-media-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.24);
  background: #000;
  cursor: pointer;
  opacity: .72;
  transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
}
.desktop-media-thumb:hover {
  opacity: 1;
  border-color: rgba(255,255,255,.72);
}
.desktop-media-thumb.is-active {
  opacity: 1;
  border-color: #f2b8d1;
}
.desktop-media-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.desktop-vr-icon-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 46px;
  height: 29px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.5));
}
.desktop-vr-icon-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desktop-media-thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.35rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
  background: rgba(0,0,0,.18);
}
/* Desktop navigation uses arrows + thumbnails; mobile keeps the dot UI. */
.mobile-panel-media-ui { display: none; }
.mobile-panel-download {
  display: flex;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 12px auto 0;
}

@media (max-width: 820px) {
  .detail-media-stage {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .detail-carousel-arrow { display: none; }
  .desktop-media-thumbs { display: none; }
  .mobile-panel-media-ui {
    min-height: 25px;
    padding: 8px 10px 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
  }
  .mobile-panel-media-ui .mobile-media-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: none;
  }
  .mobile-panel-media-ui .mobile-media-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    opacity: .95;
    transform: none;
  }
  .mobile-panel-media-ui .mobile-media-dots button.is-active {
    background: #f2b8d1;
    opacity: 1;
    transform: scale(1.28);
  }
}

/* ===== v1.4.4 media-linked comments + compact action row ===== */
.work-panel-description {
  transition: opacity .16s ease;
}
.work-panel-description.is-changing {
  opacity: .45;
}
.work-media-actions {
  width: min(100%, 1160px);
  margin: 14px auto 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.media-action-download,
.work-media-actions .media-action-store {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
.media-action-download:hover,
.work-media-actions .media-action-store:hover {
  color: var(--text);
  border-color: var(--text);
}
.work-media-actions .work-store-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.action-label-mobile { display: none; }

@media (max-width: 820px) {
  .work-media-actions {
    width: calc(100% - 20px);
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .media-action-download,
  .work-media-actions .media-action-store {
    min-width: 0;
    min-height: 36px;
    padding: 6px 4px;
    gap: 4px;
    font-size: .64rem;
    letter-spacing: 0;
    overflow: hidden;
  }
  .work-media-actions .work-store-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
  .action-label-desktop { display: none; }
  .action-label-mobile { display: inline; }
}

/* ===== v1.4.5 interactive VR180 still sample ===== */
.vr180-interactive-slide {
  position: relative;
  background: #000;
}
.vr180-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
}
.vr180-viewer canvas,
.vr180-viewer .vr180-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
.vr180-viewer canvas {
  z-index: 2;
  opacity: 0;
  touch-action: none;
  cursor: grab;
}
.vr180-viewer.is-ready canvas { opacity: 1; }
.vr180-viewer.is-ready .vr180-fallback { opacity: 0; pointer-events: none; }
.vr180-viewer.is-dragging canvas { cursor: grabbing; }
.vr180-viewer-hint {
  position: absolute;
  z-index: 4;
  left: 14px;
  top: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(0,0,0,.52);
  color: #fff;
  font-size: .72rem;
  line-height: 1;
  letter-spacing: .03em;
  pointer-events: none;
}
.vr180-viewer-reset {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 4px;
  background: rgba(0,0,0,.56);
  color: #f7cadf;
  font: inherit;
  font-size: .72rem;
  line-height: 1;
  cursor: pointer;
}
.vr180-viewer-reset:hover { background: rgba(0,0,0,.8); color: #fff; }
.desktop-media-thumbs.has-interactive-vr {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}
.desktop-media-thumb-vr180 {
  position: absolute;
  inset: auto 4px 4px auto;
  padding: 3px 5px;
  border-radius: 3px;
  background: rgba(0,0,0,.72);
  color: #f2b8d1;
  font-size: .58rem;
  line-height: 1;
  letter-spacing: .05em;
  font-weight: 700;
}
@media (max-width: 820px) {
  .vr180-viewer-hint { left: 9px; top: 8px; padding: 6px 8px; font-size: .62rem; }
  .vr180-viewer-reset { right: 9px; bottom: 8px; padding: 6px 8px; font-size: .62rem; }
}


/* ===== v1.4.8 standalone interactive VR180 sample ===== */
.media-action-interactive {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid #e5b6cb;
  background: #fff7fb;
  color: #a84d79;
  font-size: .78rem;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
.media-action-interactive:hover {
  color: #7f3157;
  border-color: #c86f99;
  background: #fff;
}
.vr180-page-main {
  min-height: calc(100vh - 150px);
  background: #080808;
  color: #fff;
}
.vr180-page-shell {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
  padding: 28px 0 38px;
}
.vr180-page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.vr180-page-back,
.vr180-page-worklink {
  color: #f6c6dc;
  text-decoration: none;
  font-size: .82rem;
}
.vr180-page-title {
  margin: 0 0 8px;
  color: #fff;
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.35;
  letter-spacing: .03em;
}
.vr180-page-lead {
  margin: 0 auto 18px;
  max-width: 760px;
  color: #e7b7cd;
  text-align: center;
  font-size: .92rem;
  line-height: 1.8;
}
.vr180-dedicated-stage {
  position: relative;
  width: 100%;
  height: min(72vh, 760px);
  min-height: 460px;
  border: 1px solid #2b2b2b;
  background: #000;
  overflow: hidden;
}
.vr180-dedicated-stage .vr180-viewer {
  width: 100%;
  height: 100%;
}
.vr180-dedicated-stage .vr180-viewer-hint {
  font-size: .8rem;
}
.vr180-page-help {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: #c7c7c7;
  font-size: .78rem;
}
@media (max-width: 820px) {
  .work-media-actions .media-action-interactive {
    grid-column: 1 / -1;
    min-height: 38px;
    padding: 8px 10px;
    font-size: .72rem;
  }
  .vr180-page-shell {
    width: 100%;
    padding: 14px 0 20px;
  }
  .vr180-page-topbar,
  .vr180-page-title,
  .vr180-page-lead,
  .vr180-page-help {
    margin-left: 14px;
    margin-right: 14px;
  }
  .vr180-dedicated-stage {
    height: 68vh;
    min-height: 420px;
    border-left: 0;
    border-right: 0;
  }
  .vr180-page-help { gap: 10px 16px; }
}

/* ===== v1.4.9 standalone VR180 zoom controls ===== */
.vr180-zoom-controls {
  width: min(100%, 680px);
  margin: 16px auto 0;
  padding: 12px 16px 14px;
  border: 1px solid #4b303d;
  background: #0d0b0c;
  color: #fff;
}
.vr180-zoom-buttons {
  display: grid;
  grid-template-columns: 54px 88px 54px minmax(92px, 1fr);
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.vr180-zoom-button,
.vr180-reset-button {
  min-height: 42px;
  border: 1px solid #d997b6;
  border-radius: 4px;
  background: #151013;
  color: #f6c6dc;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vr180-zoom-button {
  font-size: 1.35rem;
  line-height: 1;
}
.vr180-reset-button {
  font-size: .78rem;
  letter-spacing: .08em;
}
.vr180-zoom-button:hover,
.vr180-reset-button:hover {
  background: #2a1821;
  border-color: #f2b7d2;
  color: #fff;
}
.vr180-zoom-value {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #49313c;
  background: #050505;
  color: #f3b8d2;
  font-size: .98rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vr180-zoom-range-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  color: #d8bcc9;
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
}
.vr180-zoom-range {
  width: 100%;
  margin: 0;
  accent-color: #efb2ce;
  cursor: pointer;
}
@media (max-width: 820px) {
  /* On iPhone, keep the page above the viewer deliberately minimal. */
  .vr180-page-lead { display: none; }
  .vr180-viewer-hint { display: none; }
  .vr180-zoom-controls {
    width: calc(100% - 28px);
    margin-top: 12px;
    padding: 10px 10px 12px;
  }
  .vr180-zoom-buttons {
    grid-template-columns: 48px 76px 48px minmax(78px, 1fr);
    gap: 6px;
  }
  .vr180-zoom-button,
  .vr180-reset-button,
  .vr180-zoom-value {
    min-height: 44px;
  }
  .vr180-reset-button { font-size: .7rem; }
  .vr180-zoom-value { font-size: .9rem; }
  .vr180-zoom-range-row { gap: 8px; margin-top: 10px; }
  .vr180-page-help { font-size: .7rem; }
}

/* ===== v1.5.0 standalone VR180 mobile scrollability ===== */
.vr180-page-title {
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  font-weight: 600;
  letter-spacing: .04em;
  color: #efc4d8;
}
@media (max-width: 820px) {
  /* Keep enough page surface around the viewer so vertical page scrolling is easy. */
  .vr180-page-title { display: none; }
  .vr180-dedicated-stage {
    width: calc(100% - 28px);
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin: 4px auto 0;
    border: 1px solid #2b2b2b;
  }
  .vr180-dedicated-stage .vr180-viewer canvas {
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
  }
}

/* ===== v1.5.2 standalone interactive VR180 video ===== */
.media-action-interactive-video {
  background: #fff1f7;
  border-color: #d99ab7;
}
.vr180-video-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}
.vr180-video-viewer canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  background: #000;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.vr180-video-viewer.is-dragging canvas { cursor: grabbing; }
.vr180-video-source {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2px;
  height: 2px;
  opacity: .001;
  pointer-events: none;
}
.vr180-video-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #edc4d7;
  background: #000;
  font-size: .82rem;
  text-align: center;
}
.vr180-video-loading[hidden] { display: none; }
.vr180-video-viewer.is-video-fallback .vr180-video-source {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: auto;
  object-fit: contain;
}
.vr180-video-playback-controls {
  width: min(100%, 900px);
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) auto auto minmax(120px, 180px);
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #4b303d;
  background: #0d0b0c;
  color: #fff;
}
.vr180-video-play-button,
.vr180-video-mute {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #d997b6;
  border-radius: 4px;
  background: #151013;
  color: #f6c6dc;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.vr180-video-seek {
  width: 100%;
  margin: 0;
  accent-color: #efb2ce;
}
.vr180-video-time {
  min-width: 88px;
  color: #f3b8d2;
  font-size: .74rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}
.vr180-video-volume-wrap {
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr);
  align-items: center;
  gap: 7px;
  color: #d8bcc9;
  font-size: .7rem;
  white-space: nowrap;
}
.vr180-video-volume {
  width: 100%;
  accent-color: #efb2ce;
}
.vr180-video-page-shell .vr180-zoom-controls { margin-top: 10px; }

@media (max-width: 820px) {
  .work-media-actions .media-action-interactive-video {
    grid-column: 1 / -1;
  }
  .vr180-video-stage {
    width: calc(100% - 28px);
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin: 4px auto 0;
    border: 1px solid #2b2b2b;
  }
  .vr180-video-playback-controls {
    width: calc(100% - 28px);
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 6px;
    padding: 8px;
  }
  .vr180-video-play-button,
  .vr180-video-mute {
    min-height: 40px;
    padding: 6px 9px;
    font-size: .68rem;
  }
  .vr180-video-time {
    min-width: 76px;
    font-size: .66rem;
  }
  .vr180-video-volume-wrap { display: none; }
  .vr180-video-help { font-size: .68rem; }
}

@media (max-width: 520px) {
  .vr180-video-playback-controls {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .vr180-video-time {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    min-width: 0;
    padding-top: 2px;
  }
  .vr180-video-mute { grid-column: 3; grid-row: 1; }
}


/* ===== v1.5.3 mobile interactive-link cards + loop-video refinement ===== */
.mobile-interactive-overlay-link {
  display: none;
}
@media (max-width: 820px) {
  /* Desktop keeps the two interactive buttons below the panel. On iPhone/tablet,
     those are moved into sample image 02 / 03 so the action row stays compact. */
  .work-media-actions > .media-action-interactive {
    display: none !important;
  }
  .mobile-interactive-link-slide {
    position: relative;
  }
  .mobile-interactive-overlay-link {
    position: absolute;
    z-index: 8;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: min(84%, 310px);
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 214, 233, .86);
    border-radius: 5px;
    background: rgba(0, 0, 0, .66);
    color: #ffd6e9;
    font-size: clamp(.69rem, 3.2vw, .82rem);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 5px rgba(0,0,0,.85);
    box-shadow: 0 4px 18px rgba(0,0,0,.32);
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-x;
  }
  .mobile-interactive-overlay-link:active {
    background: rgba(82, 25, 52, .84);
    border-color: #f3afce;
  }
}

/* ===== v1.5.5 interactive video poster / iPhone startup UX ===== */
.vr180-video-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  pointer-events: none;
  opacity: 1;
  transition: opacity .18s ease;
}
.vr180-video-viewer canvas {
  z-index: 2;
  opacity: 0;
  transition: opacity .12s ease;
}
.vr180-video-viewer.is-frame-ready canvas { opacity: 1; }
.vr180-video-viewer.is-frame-ready .vr180-video-poster { opacity: 0; }
.vr180-video-loading {
  inset: auto 50% 14px auto;
  z-index: 4;
  transform: translateX(50%);
  width: auto;
  max-width: calc(100% - 28px);
  min-height: 0;
  padding: 8px 12px;
  border: 1px solid rgba(239,178,206,.45);
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  color: #f3c7db;
  font-size: .76rem;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 820px) {
  .vr180-video-loading {
    bottom: 10px;
    padding: 7px 10px;
    font-size: .7rem;
  }
}


/* ===== v1.5.6 interactive video iPhone pseudo fullscreen ===== */
.vr180-video-fullscreen-toggle {
  position: absolute;
  z-index: 8;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 198, 220, .82);
  border-radius: 6px;
  background: rgba(0, 0, 0, .68);
  color: #f8d2e3;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.vr180-video-fullscreen-toggle:active {
  background: rgba(77, 30, 51, .86);
  border-color: #f3aecf;
}
html.vr180-fullscreen-active,
body.vr180-fullscreen-active {
  overflow: hidden !important;
  overscroll-behavior: none;
}
body.vr180-fullscreen-active {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}
.vr180-video-page-shell.is-vr180-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000 !important;
  overflow: hidden !important;
}
.vr180-video-page-shell.is-vr180-fullscreen .vr180-page-topbar,
.vr180-video-page-shell.is-vr180-fullscreen .vr180-page-title,
.vr180-video-page-shell.is-vr180-fullscreen .vr180-page-help {
  display: none !important;
}
.vr180-video-page-shell.is-vr180-fullscreen .vr180-video-stage {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  aspect-ratio: auto !important;
}
.vr180-video-page-shell.is-vr180-fullscreen .vr180-video-fullscreen-toggle {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 100005;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.74);
  font-size: 1.65rem;
}
.vr180-video-page-shell.is-vr180-fullscreen .vr180-video-playback-controls {
  position: absolute;
  z-index: 100003;
  left: max(8px, env(safe-area-inset-left));
  right: max(8px, env(safe-area-inset-right));
  bottom: calc(max(8px, env(safe-area-inset-bottom)) + 86px);
  width: auto !important;
  margin: 0 !important;
  background: rgba(13, 11, 12, .76);
  border-color: rgba(217,151,182,.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.vr180-video-page-shell.is-vr180-fullscreen .vr180-zoom-controls {
  position: absolute;
  z-index: 100003;
  left: max(8px, env(safe-area-inset-left));
  right: max(8px, env(safe-area-inset-right));
  bottom: max(8px, env(safe-area-inset-bottom));
  width: auto !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  background: rgba(13, 11, 12, .76);
  border-color: rgba(217,151,182,.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.vr180-video-page-shell.is-vr180-fullscreen .vr180-zoom-range-row {
  display: none;
}
.vr180-video-page-shell.is-vr180-fullscreen .vr180-video-loading {
  bottom: calc(max(8px, env(safe-area-inset-bottom)) + 168px);
}
@media (max-width: 820px) {
  .vr180-video-fullscreen-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    top: 8px;
    right: 8px;
    font-size: 1.25rem;
  }
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-video-playback-controls {
    grid-template-columns: auto minmax(0, 1fr) auto;
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 70px);
    padding: 7px 8px;
  }
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-video-time {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-video-mute {
    grid-column: 3;
    grid-row: 1;
  }
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-zoom-controls {
    padding: 6px 8px !important;
  }
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-zoom-buttons {
    grid-template-columns: 44px 70px 44px minmax(72px, 1fr);
    gap: 5px;
  }
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-zoom-button,
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-reset-button,
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-zoom-value {
    min-height: 38px;
  }
}


/* ===== v1.5.7 fullscreen compact controls + HQ interactive video ===== */
@media (max-width: 820px) {
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-video-fullscreen-toggle {
    top: max(6px, env(safe-area-inset-top));
    right: max(6px, env(safe-area-inset-right));
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
    border-width: 1px;
  }
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-video-playback-controls {
    left: max(6px, env(safe-area-inset-left));
    right: max(6px, env(safe-area-inset-right));
    bottom: calc(max(6px, env(safe-area-inset-bottom)) + 44px);
    gap: 4px;
    padding: 4px 5px;
    border-radius: 5px;
  }
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-video-play-button,
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-video-mute {
    min-height: 28px;
    padding: 3px 6px;
    font-size: .58rem;
    border-radius: 3px;
  }
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-video-time {
    min-width: 0;
    padding-top: 0;
    font-size: .54rem;
    line-height: 1.1;
  }
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-video-seek {
    height: 20px;
  }
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-zoom-controls {
    left: max(6px, env(safe-area-inset-left));
    right: max(6px, env(safe-area-inset-right));
    bottom: max(5px, env(safe-area-inset-bottom));
    padding: 3px 5px !important;
    border-radius: 5px;
  }
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-zoom-buttons {
    grid-template-columns: 30px 52px 30px minmax(56px, 72px);
    gap: 3px;
  }
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-zoom-button,
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-reset-button,
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-zoom-value {
    min-height: 27px;
    padding: 2px 4px;
    font-size: .58rem;
  }
  .vr180-video-page-shell.is-vr180-fullscreen .vr180-video-loading {
    bottom: calc(max(6px, env(safe-area-inset-bottom)) + 92px);
    font-size: .62rem;
    padding: 5px 8px;
  }
}


/* ===== v1.5.8 clear muted-by-default audio UI ===== */
.mobile-video-slide,
.video-wrap {
  position: relative;
}
.sample-video-audio-ui {
  position: absolute;
  z-index: 8;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 9px;
  border: 1px solid rgba(246, 198, 220, .8);
  border-radius: 7px;
  background: rgba(10, 8, 9, .88);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  font-size: .68rem;
  line-height: 1.15;
  white-space: nowrap;
  pointer-events: auto;
}
.sample-video-audio-status {
  color: #f5c6dc;
  font-weight: 700;
}
.sample-video-audio-button {
  min-height: 26px;
  padding: 4px 7px;
  border: 1px solid #d997b6;
  border-radius: 4px;
  background: #23171d;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.sample-video-audio-button:hover { background: #39232e; }

.vr180-video-audio-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.vr180-video-audio-status {
  color: #f5c6dc;
  font-size: .68rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .sample-video-audio-ui {
    top: 7px;
    right: 7px;
    gap: 4px;
    padding: 4px 5px 4px 7px;
    font-size: .58rem;
  }
  .sample-video-audio-button {
    min-height: 24px;
    padding: 3px 6px;
    font-size: .58rem;
  }
  .vr180-video-audio-control {
    gap: 4px;
    flex-direction: column;
    align-items: stretch;
  }
  .vr180-video-audio-status {
    font-size: .56rem;
    text-align: center;
  }
  .vr180-video-audio-control .vr180-video-mute {
    min-height: 30px;
    padding: 4px 6px;
    font-size: .58rem;
  }
}

@media (max-width: 520px) {
  .vr180-video-audio-control { grid-column: 3; grid-row: 1; }
  .vr180-video-mute { grid-column: auto; grid-row: auto; }
}

.vr180-video-page-shell.is-vr180-fullscreen .vr180-video-audio-control {
  gap: 3px;
}
.vr180-video-page-shell.is-vr180-fullscreen .vr180-video-audio-status {
  font-size: .5rem;
}
.vr180-video-page-shell.is-vr180-fullscreen .vr180-video-audio-control .vr180-video-mute {
  min-height: 24px;
  padding: 3px 5px;
  font-size: .52rem;
}


/* ===== v1.6.0 interactive links unified + still fullscreen ===== */
/* Interactive entry buttons now live in sample-image slides on both desktop and mobile. */
.work-media-actions > .media-action-interactive {
  display: none !important;
}
.mobile-interactive-link-slide {
  position: relative;
}
.mobile-interactive-overlay-link {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(62%, 390px);
  min-height: 52px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 214, 233, .9);
  border-radius: 5px;
  background: rgba(0, 0, 0, .68);
  color: #ffd6e9;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 5px rgba(0,0,0,.85);
  box-shadow: 0 4px 18px rgba(0,0,0,.32);
  -webkit-tap-highlight-color: transparent;
}
.mobile-interactive-overlay-link:hover {
  background: rgba(70, 22, 45, .84);
  border-color: #f3afce;
  color: #fff;
}
@media (max-width: 820px) {
  .mobile-interactive-overlay-link {
    width: min(84%, 310px);
    min-height: 48px;
    padding: 10px 14px;
    font-size: clamp(.69rem, 3.2vw, .82rem);
    touch-action: pan-x;
  }
}

/* Fullscreen mode for the standalone interactive still viewer. */
.vr180-still-fullscreen-toggle {
  position: absolute;
  z-index: 8;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 198, 220, .82);
  border-radius: 6px;
  background: rgba(0, 0, 0, .68);
  color: #f8d2e3;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
html.vr180-still-fullscreen-active,
body.vr180-still-fullscreen-active {
  overflow: hidden !important;
  overscroll-behavior: none;
}
body.vr180-still-fullscreen-active {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}
.vr180-still-page-shell.is-vr180-still-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000 !important;
  overflow: hidden !important;
}
.vr180-still-page-shell.is-vr180-still-fullscreen .vr180-page-topbar,
.vr180-still-page-shell.is-vr180-still-fullscreen .vr180-page-title,
.vr180-still-page-shell.is-vr180-still-fullscreen .vr180-page-lead,
.vr180-still-page-shell.is-vr180-still-fullscreen .vr180-page-help {
  display: none !important;
}
.vr180-still-page-shell.is-vr180-still-fullscreen .vr180-dedicated-stage {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  aspect-ratio: auto !important;
}
.vr180-still-page-shell.is-vr180-still-fullscreen .vr180-still-fullscreen-toggle {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  z-index: 100005;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.08rem;
  background: rgba(0,0,0,.74);
}
.vr180-still-page-shell.is-vr180-still-fullscreen .vr180-zoom-controls {
  position: absolute;
  z-index: 100003;
  left: max(7px, env(safe-area-inset-left));
  right: max(7px, env(safe-area-inset-right));
  bottom: max(7px, env(safe-area-inset-bottom));
  width: auto !important;
  margin: 0 !important;
  padding: 5px 7px !important;
  background: rgba(13,11,12,.72);
  border-color: rgba(217,151,182,.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.vr180-still-page-shell.is-vr180-still-fullscreen .vr180-zoom-range-row {
  display: none;
}
.vr180-still-page-shell.is-vr180-still-fullscreen .vr180-zoom-buttons {
  grid-template-columns: 34px 58px 34px minmax(62px, 84px);
  gap: 4px;
}
.vr180-still-page-shell.is-vr180-still-fullscreen .vr180-zoom-button,
.vr180-still-page-shell.is-vr180-still-fullscreen .vr180-reset-button,
.vr180-still-page-shell.is-vr180-still-fullscreen .vr180-zoom-value {
  min-height: 30px;
  padding: 2px 5px;
  font-size: .62rem;
}
@media (max-width: 820px) {
  .vr180-still-fullscreen-toggle {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    font-size: 1.18rem;
  }
  .vr180-still-page-shell.is-vr180-still-fullscreen .vr180-still-fullscreen-toggle {
    top: max(6px, env(safe-area-inset-top));
    right: max(6px, env(safe-area-inset-right));
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .vr180-still-page-shell.is-vr180-still-fullscreen .vr180-zoom-controls {
    left: max(6px, env(safe-area-inset-left));
    right: max(6px, env(safe-area-inset-right));
    bottom: max(6px, env(safe-area-inset-bottom));
    padding: 4px 6px !important;
  }
  .vr180-still-page-shell.is-vr180-still-fullscreen .vr180-zoom-buttons {
    grid-template-columns: 30px 52px 30px minmax(56px, 72px);
    gap: 3px;
  }
  .vr180-still-page-shell.is-vr180-still-fullscreen .vr180-zoom-button,
  .vr180-still-page-shell.is-vr180-still-fullscreen .vr180-reset-button,
  .vr180-still-page-shell.is-vr180-still-fullscreen .vr180-zoom-value {
    min-height: 27px;
    padding: 2px 4px;
    font-size: .58rem;
  }
}

/* ===== v1.7.0 interactive PC hit-target fix + thumbnail title font ===== */
.insta-overlay strong {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
}

/* Keep every interactive-page control above the viewer layers on desktop.
   This prevents the canvas/fullscreen layer from stealing clicks near the
   lower edge of visually rendered buttons. */
@media (min-width: 821px) {
  .vr180-page-topbar,
  .vr180-video-playback-controls,
  .vr180-zoom-controls {
    position: relative;
    z-index: 20;
    pointer-events: auto;
  }
  .vr180-page-topbar a,
  .vr180-video-playback-controls button,
  .vr180-video-playback-controls input,
  .vr180-zoom-controls button,
  .vr180-zoom-controls input {
    position: relative;
    z-index: 21;
    pointer-events: auto;
  }
  .vr180-video-fullscreen-toggle,
  .vr180-still-fullscreen-toggle {
    z-index: 30;
    pointer-events: auto;
  }
}


/* ===== v1.7.1 interactive video button hit-area refinement ===== */
/* Play / mute buttons intentionally mirror the zoom/reset controls.
   The label itself never becomes a separate mouse hit target. */
.vr180-video-play-button,
.vr180-video-mute {
  position: relative;
  min-height: 42px;
  border: 1px solid #d997b6;
  border-radius: 4px;
  background: #151013;
  color: #f6c6dc;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.vr180-video-play-button:hover,
.vr180-video-mute:hover,
.vr180-video-play-button:focus-visible,
.vr180-video-mute:focus-visible {
  background: #2a1821;
  border-color: #f2b7d2;
  color: #fff;
  outline: none;
}
.vr180-video-play-button:active,
.vr180-video-mute:active {
  background: #3a202c;
  border-color: #ffd0e5;
  color: #fff;
}
.vr180-video-button-label {
  display: flex;
  width: 100%;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
/* Give the actual button element a transparent full-surface hit layer.
   Generated content belongs to the button, so clicks anywhere on the visual
   face resolve to the button rather than its rendered text. */
.vr180-video-play-button::before,
.vr180-video-mute::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  border-radius: inherit;
}
.vr180-video-button-label {
  position: relative;
  z-index: 1;
}
@media (max-width: 820px) {
  .vr180-video-play-button,
  .vr180-video-mute {
    min-height: 40px;
  }
  .vr180-video-audio-control .vr180-video-mute {
    min-height: 30px;
  }
}
.vr180-video-audio-status { pointer-events: none; }
@media (min-width: 821px) {
  .vr180-video-play-button::before,
  .vr180-video-mute::before { inset: -2px; }
}

/* Preserve intentional line breaks in work media descriptions */
.work-panel-description { white-space: pre-line; }
