﻿:root {
  --bg: #ffffff;
  --bg-soft: #fffdfd;
  --text: #222226;
  --muted: #6e6a72;
  --line: rgba(34, 34, 38, 0.1);
  --line-strong: rgba(34, 34, 38, 0.16);
  --accent: #e8d4da;
  --accent-soft: rgba(232, 212, 218, 0.32);
  --shadow-soft: 0 18px 40px rgba(34, 34, 38, 0.045);
  --shadow-image: 0 24px 55px rgba(34, 34, 38, 0.07);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: min(1200px, calc(100% - 80px));
  --font-sans: "Aptos", "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  --font-display: "BIZ UDPMincho", "Yu Mincho", "Hiragino Mincho ProN", "HGS明朝E", serif;
}

html {
  scroll-padding-top: 0;
  scroll-snap-type: none;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(232, 212, 218, 0.1), transparent 18%),
    var(--bg);
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.hero,
.section,
.site-footer {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

body.is-section-visibility-ready main > section,
body.is-section-visibility-ready .site-footer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 360ms ease,
    visibility 360ms ease;
}

body.is-section-visibility-ready main > section:not(.is-active-section),
body.is-section-visibility-ready .site-footer:not(.is-active-section) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-loading {
  overflow: hidden;
}

body.is-age-gated {
  overflow: hidden;
}

body.is-age-gated main,
body.is-age-gated .fixed-section-nav,
body.is-age-gated .fixed-work-link,
body.is-age-gated .works-top-return,
body.is-age-gated .site-footer,
body.is-age-gated .page-loader {
  visibility: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(255, 106, 159, 0.72), rgba(255, 106, 159, 0.72)),
    url("image/hero/背景.png") top center / cover repeat-y,
    #ff6a9f;
}

.age-gate[hidden] {
  display: none;
}

.age-gate-panel {
  width: min(100%, 480px);
  padding: clamp(28px, 5vw, 44px);
  border: 3px solid #111;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(25, 23, 27, 0.22);
  text-align: center;
}

.age-gate-sprite {
  width: clamp(76px, 18vw, 118px);
  margin: 0 auto 16px;
}

.age-gate-panel .eyebrow {
  margin-bottom: 10px;
  color: #ff4f91;
  font-weight: 800;
}

.age-gate-panel h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6vw, 3.2rem);
  line-height: 1.12;
  white-space: nowrap;
}

/* 「いいえ」選択時の長い文言（18歳未満の方は閲覧できません。）はカード内で2行に収める。
   通常タイトルより小さめにして「ん。」が3段目に落ちないようにする。 */
body.is-age-denied .age-gate-panel h1 {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
}

.age-gate-panel p:not(.eyebrow) {
  margin: 18px 0 0;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.8;
}

.age-gate-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.age-gate-button {
  min-height: 52px;
  border: 2px solid #111;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.age-gate-button:hover,
.age-gate-button:focus-visible {
  transform: translateY(-2px);
}

.age-gate-button-primary {
  background: #111;
  color: #fff;
}

.age-gate-denied {
  font-weight: 800;
}

body.is-age-denied .age-gate-actions,
body.is-age-denied #age-gate-description {
  display: none;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid rgba(34, 34, 38, 0.45);
  outline-offset: 4px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 132px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 460px;
  margin-bottom: 56px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-heading p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 30em;
}

.section-heading-works {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 18px;
  row-gap: 10px;
}

.section-heading-works .eyebrow {
  width: 100%;
  margin-bottom: 0;
}

.section-heading-works h2 {
  flex: 0 0 auto;
}

.section-heading-works p:last-child {
  margin: 0;
  max-width: none;
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.section-heading-works p:last-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 1px;
  background: rgba(34, 34, 38, 0.22);
  transform: translateY(-50%);
}

.brand-logo {
  display: block;
  border-radius: 8px;
}

.brand-logo-sprite {
  width: 48px;
  aspect-ratio: 1 / 1;
  position: relative;
  filter: drop-shadow(0 6px 10px rgba(34, 34, 38, 0.08));
  transform-origin: center bottom;
  animation: sprite-float 2.4s ease-in-out infinite;
}

.brand-logo-sprite::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("image/sprites/ketu_jump.png");
  background-repeat: no-repeat;
  background-size: 400% 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  animation:
    sprite-cycle 2.4s steps(1, end) infinite;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  gap: 16px;
  align-content: center;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  transition:
    opacity 360ms ease,
    visibility 360ms ease;
}

.page-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loader-sprite {
  width: 78px;
}

.loader-sprite::before {
  background-image: url("image/sprites/ketu_walk.png");
}

.age-gate-sprite,
.loader-sprite {
  animation-duration: 2.4s;
}

.age-gate-sprite::before,
.loader-sprite::before {
  animation-duration: 0.6s;
}

.loader-percent {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.loader-gauge {
  width: min(240px, 58vw);
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(34, 34, 38, 0.14);
  border-radius: 999px;
  background: rgba(34, 34, 38, 0.04);
}

.loader-gauge-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #222226;
  transition: width 180ms ease;
}

.fixed-section-nav {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 60;
  display: none;
  justify-items: end;
}

.fixed-section-nav::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 178px;
  height: 12px;
}

.fixed-nav-trigger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid rgba(34, 34, 38, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(34, 34, 38, 0.06);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.fixed-nav-trigger:hover,
.fixed-nav-trigger:focus-visible {
  background: #fff;
  transform: translateY(-1px);
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #222226;
}

.fixed-nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 6px;
  min-width: 178px;
  padding: 10px;
  border: 1px solid rgba(34, 34, 38, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 38px rgba(34, 34, 38, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease;
}

.fixed-section-nav:hover .fixed-nav-panel,
.fixed-section-nav:focus-within .fixed-nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.fixed-nav-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 9px;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.fixed-nav-panel a:hover,
.fixed-nav-panel a:focus-visible {
  background: rgba(34, 34, 38, 0.05);
  transform: translateY(-1px);
}

.fixed-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(34, 34, 38, 0.24);
}

.fixed-work-link {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 55;
  display: block;
  width: clamp(140px, 14vw, 190px);
  padding: 0;
  color: inherit;
  overflow: visible;
  transform: translateX(var(--corner-x, 0px));
  opacity: 1;
  transition:
    transform 1500ms cubic-bezier(0.65, 0, 0.35, 1),
    bottom 180ms ease,
    filter 180ms ease,
    opacity 1200ms ease-out 800ms;
}

body.is-loading .fixed-work-link {
  opacity: 0;
}

body.is-corner-left .fixed-work-link {
  --corner-x: calc(100% + 48px - 100vw);
}

.fixed-follow-image {
  display: block;
  width: 90%;
  height: auto;
  filter: drop-shadow(0 14px 20px rgba(34, 34, 38, 0.18));
}


.fixed-work-link > span:not(.fixed-work-label):not(.fixed-work-pixel) {
  display: none;
}

.fixed-work-pixel {
  --pixel-direction: -1;
  display: block;
  position: absolute;
  right: -8px;
  bottom: -10px;
  width: 62px;
  height: 62px;
  background-image: url("image/sprites/ketu_jump.png");
  background-repeat: no-repeat;
  background-size: 400% 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform-origin: center bottom;
  animation:
    fixed-pixel-sprite 1.2s steps(1, end) infinite,
    fixed-pixel-hop 1.2s steps(2, end) infinite;
}

body.is-corner-left .fixed-work-pixel {
  --pixel-direction: 1;
}

body.is-corner-moving .fixed-work-pixel {
  --pixel-direction: 1;
}

body.is-corner-moving.is-corner-left .fixed-work-pixel {
  --pixel-direction: -1;
}

.fixed-work-link:hover,
.fixed-work-link:focus-visible {
  bottom: 26px;
  filter: saturate(1.05);
}

@keyframes fixed-pixel-hop {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg) scaleX(var(--pixel-direction));
  }

  50% {
    transform: translateY(-7px) rotate(3deg) scaleX(var(--pixel-direction));
  }
}

@keyframes fixed-pixel-sprite {
  0% { background-position: 0% 0%; }
  25% { background-position: 33.333% 0%; }
  50% { background-position: 66.666% 0%; }
  75%,
  100% { background-position: 100% 0%; }
}

@keyframes sprite-cycle {
  0% { background-position: 0% 0%; }
  25% { background-position: 33.333% 0%; }
  50% { background-position: 66.666% 0%; }
  75%,
  100% { background-position: 100% 0%; }
}

@keyframes works-top-sprite-cycle {
  0% { background-position: 0% 0%; }
  8.333% { background-position: 9.091% 0%; }
  16.666% { background-position: 18.182% 0%; }
  25% { background-position: 27.273% 0%; }
  33.333% { background-position: 36.364% 0%; }
  41.666% { background-position: 45.455% 0%; }
  50% { background-position: 54.545% 0%; }
  58.333% { background-position: 63.636% 0%; }
  66.666% { background-position: 72.727% 0%; }
  75% { background-position: 81.818% 0%; }
  83.333% { background-position: 90.909% 0%; }
  91.666%,
  100% { background-position: 100% 0%; }
}

@keyframes sprite-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1.5px);
  }
}


.works {
  padding-top: 0;
  overflow: hidden;
}

.works-shell {
  width: 100%;
}

.works .section-heading {
  width: min(1200px, calc(100% - 80px));
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 14px;
}

.works-gallery {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gallery-row {
  position: relative;
  overflow: hidden;
  scrollbar-width: none;
}

.gallery-row::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  width: max-content;
  gap: 18px;
  will-change: transform;
}

.gallery-set {
  display: flex;
  gap: 18px;
  flex: none;
}

.work-card {
  flex: 0 0 clamp(260px, 22vw, 360px);
  width: clamp(260px, 22vw, 360px);
  min-width: 0;
}

.work-card.is-missing,
.artwork-image.is-missing {
  display: none;
}

.work-trigger {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.work-trigger img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 34, 38, 0.08);
  background: linear-gradient(135deg, rgba(232, 212, 218, 0.24), rgba(255, 255, 255, 0.98));
  box-shadow: 0 20px 38px rgba(34, 34, 38, 0.05);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    filter 220ms ease;
}

.work-meta {
  display: none;
}

.work-category {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.work-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.56;
  letter-spacing: -0.01em;
}

.about {
  padding-top: 4px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 84px;
  align-items: start;
}

.about-heading {
  margin-bottom: 10px;
}

.about-portrait {
  margin: 0;
}

.about-portrait img {
  width: min(100%, 340px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(34, 34, 38, 0.08);
  box-shadow: 0 20px 42px rgba(34, 34, 38, 0.06);
}

.about-body {
  max-width: 640px;
}

.about-body p {
  margin: 0 0 22px;
}

.about-qa {
  display: grid;
  gap: 14px;
  counter-reset: qa;
}

.qa-card {
  counter-increment: qa;
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 24px 26px 24px 24px;
  border: 1px solid rgba(34, 34, 38, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(232, 212, 218, 0.34), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 253, 0.94));
  box-shadow: 0 16px 34px rgba(34, 34, 38, 0.045);
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.qa-card::after {
  content: "0" counter(qa);
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(34, 34, 38, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.qa-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 34, 38, 0.16);
  box-shadow: 0 22px 42px rgba(34, 34, 38, 0.07);
}

.qa-label,
.qa-question {
  justify-self: end;
  text-align: right;
  margin: 0;
}

.qa-answer {
  margin: 0;
}

.qa-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #222226;
  color: var(--text);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.qa-label-answer {
  background: rgba(34, 34, 38, 0.08);
  color: var(--text);
}

.qa-question,
.qa-answer {
  align-self: center;
}

.qa-question {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.5;
}

.qa-answer {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.link {
  padding-top: 34px;
  padding-bottom: 28px;
}

.link-card {
  position: relative;
  overflow: hidden;
  padding: 42px 44px;
  border: 1px solid rgba(34, 34, 38, 0.08);
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(232, 212, 218, 0.34), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 253, 0.96)),
    var(--bg-soft);
  box-shadow: var(--shadow-soft);
}

.link-card .section-heading {
  margin-bottom: 20px;
}

.link-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.social-link {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 86px;
  padding: 18px 18px;
  border: 1px solid rgba(34, 34, 38, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 253, 253, 0.72));
  box-shadow: 0 14px 30px rgba(34, 34, 38, 0.035);
  font-weight: 700;
  letter-spacing: 0.06em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.social-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 42px;
  height: 1px;
  background: rgba(34, 34, 38, 0.22);
  transform: translateX(-50%) scaleX(0.45);
  transform-origin: center;
  transition: transform 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(34, 34, 38, 0.18);
  background: #fff;
  box-shadow: 0 22px 42px rgba(34, 34, 38, 0.07);
}

.social-link:hover::after,
.social-link:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

.social-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.social-icon img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.social-icon-official {
  border: 1px solid rgba(34, 34, 38, 0.08);
  background: #fff;
  color: inherit;
}

.social-icon-wide {
  width: 98px;
}

.social-icon-wide img {
  width: 86%;
  height: 64%;
}

.social-icon-x {
  background: #111114;
}

.social-icon-fanbox {
  background: #00a4de;
}

.social-icon-fantia {
  background: #e95383;
}

.link-content a {
  color: var(--text);
  word-break: break-word;
}

.link-content a:hover,
.link-content a:focus-visible {
  color: var(--muted);
}

.site-footer {
  padding: 8px 0 28px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(34, 34, 38, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
  z-index: 40;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 20, 0.4);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 22px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(18, 18, 20, 0.16);
}

.modal-dialog img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 24px;
}

.modal-copy {
  padding: 20px 6px 6px;
}

.modal-copy.is-empty {
  display: none;
}

.modal-copy h3 {
  margin: 0;
  font-size: 1.35rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 1080px) {
  .section {
    padding: 108px 0;
  }

  .hero {
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .about-grid,
  .link-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy,
  .about-body {
    max-width: 100%;
  }

  .works .section-heading {
    width: min(100% - 48px, 1200px);
    margin-bottom: 14px;
  }

  .works-gallery {
    gap: 16px;
  }

  .work-card {
    flex-basis: clamp(220px, 30vw, 300px);
    width: clamp(220px, 30vw, 300px);
  }

  .about,
  .link {
    padding-top: 124px;
  }

  .about {
    padding-top: 2px;
  }

  .link {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .link-card {
    padding: 34px 32px;
  }

  .about-portrait img {
    width: min(100%, 270px);
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 32px, 1200px);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .fixed-section-nav {
    top: 10px;
    right: 10px;
  }

  .fixed-nav-trigger {
    width: 40px;
    min-height: 40px;
    gap: 4px;
  }

  .hamburger-line {
    width: 16px;
  }

  .fixed-nav-panel {
    min-width: 164px;
    padding: 8px;
  }

  .fixed-nav-panel .social-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.72rem;
  }

  .fixed-nav-panel .social-icon-wide {
    width: 70px;
  }

  .fixed-work-link {
    right: 14px;
    bottom: 14px;
    width: 132px;
    padding: 0;
  }

  .fixed-work-pixel {
    right: -6px;
    bottom: -8px;
    width: 50px;
    height: 50px;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .hero-actions {
    margin-top: 14px;
  }

  .works {
    padding-top: 0;
  }

  .works .section-heading {
    width: min(100% - 32px, 1200px);
    margin-bottom: 14px;
  }

  .section-heading-works {
    column-gap: 12px;
    row-gap: 8px;
  }

  .section-heading-works p:last-child {
    padding-left: 14px;
    font-size: 0.9rem;
  }

  .section-heading-works p:last-child::before {
    width: 8px;
  }

  .works-gallery {
    gap: 12px;
  }

  .gallery-row {
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .gallery-track {
    gap: 18px;
  }

  .gallery-set {
    gap: 18px;
  }

  .work-card {
    flex-basis: clamp(220px, 72vw, 280px);
    width: clamp(220px, 72vw, 280px);
    scroll-snap-align: start;
  }

  .about,
  .link {
    padding-top: 96px;
  }

  .about {
    padding-top: 0;
  }

  .link {
    padding-top: 22px;
  }

  .qa-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px 14px;
    padding: 18px 18px;
    border-radius: 20px;
  }

  .qa-label {
    width: 30px;
    height: 30px;
    font-size: 0.76rem;
  }

  .qa-question {
    font-size: 1rem;
  }

  .qa-answer {
    font-size: 0.9rem;
  }

  .link-card {
    padding: 24px 20px;
    border-radius: 26px;
  }

  .work-trigger img,
  .modal-dialog img {
    border-radius: 22px;
  }

  .modal {
    padding: 14px;
  }

  .modal-dialog {
    padding: 14px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gallery-row {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .gallery-row::-webkit-scrollbar {
    display: none;
  }

  .gallery-row {
    overflow-x: auto;
  }

  /* 装飾の雪エフェクトは視差効果を減らす設定で無効化 */
  .hero-snow {
    display: none;
  }
}

body {
  background:
    linear-gradient(rgba(255, 104, 153, 0.1), rgba(255, 104, 153, 0.1)),
    url("image/hero/背景.png") top center / cover repeat-y,
    #ff6a9f;
}

.hero {
  overflow: hidden;
  background: transparent;
  isolation: isolate;
}

.hero-copy > .eyebrow,
.hero-copy h1,
.hero-tagline,
.hero-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-logo-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 0 #ffffff) drop-shadow(0 13px 0 #111114);
}

.hero-girl-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right top;
  border-radius: 0;
}

.works {
  position: relative;
  padding-top: 54px;
}

.works .section-heading {
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}

.section-heading-works .eyebrow,
.section-heading-works p:last-child,
.section-heading-works p:last-child::before {
  display: none;
}

.section-heading-works h2 {
  display: inline-block;
  padding: 0 10px 4px;
  background: #050505;
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.section-heading-works h2::before {
  content: "WORKS";
}

.section-heading-works h2 {
  font-size: 0;
}

.section-heading-works h2::before {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.work-trigger img {
  border: 0;
  border-radius: 22px;
  background: #fff;
}

.gallery-row:hover .work-trigger img {
  filter: saturate(0.62) brightness(0.9);
}

.gallery-row .work-trigger:hover img,
.gallery-row .work-trigger:focus-visible img {
  filter: hue-rotate(-18deg) saturate(1.45) contrast(1.12) brightness(1.05);
  transform: translateY(-8px) scale(1.015);
}

.link {
  background: rgba(255, 104, 153, 0.82);
}

.link-card {
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.social-link {
  border: 0;
  border-radius: 18px;
  /* #1 ボタン背景＝ABOUTセクション背景と同じピンクに統一 */
  background: rgba(255, 218, 230, 0.86);
}

.social-link:hover,
.social-link:focus-visible {
  /* ホバーは同系ピンクをわずかに明るくして反応を示す */
  background: rgba(255, 232, 240, 0.96);
}

.about {
  position: relative;
  /* #2 上下の余白をせばめる（下も）※さらに縮小 */
  padding: clamp(20px, 3vw, 40px) 0 clamp(16px, 2.5vw, 32px);
  background:
    linear-gradient(rgba(255, 218, 230, 0.86), rgba(255, 218, 230, 0.86)),
    url("image/profile/プロフィール用背景.png") center / cover no-repeat,
    url("image/hero/背景.png") top center / 100% auto repeat-y,
    #ff6a9f;
}

.about .container {
  width: min(1180px, calc(100% - 56px));
}

.about-heading {
  display: none;
}

.about-grid {
  grid-template-columns: minmax(220px, 386px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
}

.about-body {
  position: relative;
  max-width: 720px;
  /* #2 ABOUT本文ブロックの上下余白も縮小（さらに） */
  padding: clamp(2px, 0.8vw, 10px) 0;
}

@media (min-width: 1200px) {
  .about .container {
    width: min(1360px, calc(100% - 56px));
  }

  .about-body {
    max-width: 860px;
  }
}

.about-body::before {
  content: "ABOUT";
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 8px 5px;
  background: #e17aa3;
  color: #fff3f7;
  font-size: clamp(0.72rem, 0.9vw, 0.86rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.14em;
  /* Link の白カード(.link-card)同様に角を丸める */
  border-radius: 8px;
}

.about-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.about-portrait img {
  width: min(100%, 270px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  /* #3 白枠（黒ボーダー＋白背景）を削除し、アイコンを背景に直接なじませる */
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* #4/#5 名前は小さめ・中央寄せ。折り返しはさせない。 */
/* 画像の位置は変えず、名前だけ下へずらす（relativeなのでレイアウトに影響しない） */
.about-name {
  position: relative;
  top: 10px;
  margin: clamp(8px, 1.4vw, 16px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: center;
  color: #111;
}

.about-qa {
  display: grid;
  /* #7 PROFILE/NOW/OSHIMON 各項目の間隔をせばめる（さらに） */
  gap: clamp(4px, 0.8vw, 9px);
}

.qa-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  /* #7 各項目の下余白も縮小（さらに） */
  padding: 0 0 clamp(2px, 0.6vw, 7px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  /* 旧カードの角丸クリップでラベル左上が欠けるのを防ぐ */
  overflow: visible;
}

.qa-card:hover {
  transform: none;
  box-shadow: none;
}

.qa-label,
.qa-card::after {
  display: none;
}

.qa-question {
  display: block;
  /* PROFILE/NOW/OSHIMON を右の文章の先頭行に揃える（ベースライン基準から少し上へ） */
  align-self: baseline;
  margin: 0;
  transform: translateY(-0.3em);
  color: rgba(17, 17, 17, 0.66);
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  justify-self: center;
  text-align: center;
}

.qa-answer {
  margin: 0;
  align-self: baseline;
  color: #111;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.72rem);
  font-weight: 700;
  line-height: 1.78;
  letter-spacing: 0.035em;
}

/* === Zen Maru Gothic フォント比較（レビュー用・確定後に整理可） === */
/* 名前・見出し・フッター・ナビなどサイト全体の文字に適用。
   既存の var(--font-sans) / var(--font-display) 参照箇所へ一括で波及させる。 */
body[data-font="zen700"],
body[data-font="zen500"] {
  --font-sans: "Zen Maru Gothic", sans-serif;
  --font-display: "Zen Maru Gothic", sans-serif;
}

/* 本文（.qa-answer）は weight 700 / 500 を見比べられるよう個別指定 */
body[data-font="zen700"] .qa-answer {
  font-weight: 700;
  /* 丸ゴシックは明朝より字面が大きいので行間/字間を微調整 */
  line-height: 1.7;
  letter-spacing: 0.02em;
}
body[data-font="zen500"] .qa-answer {
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
/* data-font="current" は変数を上書きしないので現状フォントのまま */

.qa-card:first-child::before {
  /* #4 名前はアイコン下の .about-name へ移動したため非表示 */
  content: none;
  display: none;
}

@media (max-width: 720px) {
  .about-body {
    padding: 4px 0 0;
  }

  .q {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .qa-question {
    margin-top: 0;
  }

  .qa-answer {
    font-size: clamp(1.06rem, 4.8vw, 1.36rem);
    line-height: 1.72;
  }

  .qa-card:first-child::before {
    font-size: clamp(2.25rem, 12vw, 4rem);
  }
}

.site-footer {
  position: relative;
  background: #ff6a9f;
  padding: 6px 0 8px;
}

.footer-inner {
  border-top: 0;
  color: #ffe4ef;
  font-size: clamp(0.72rem, 0.7vw, 0.92rem);
  line-height: 1.25;
  font-weight: 500;
}

.footer-company {
  color: #ffb6ce;
  display: inline-block;
  margin-top: 5px;
  line-height: 1;
  font-size: 0.78em;
  opacity: 0.75;
}

.fixed-work-link {
  width: clamp(150px, 17vw, 260px);
}

.fixed-work-pixel {
  width: clamp(52px, 5vw, 76px);
  height: clamp(52px, 5vw, 76px);
}

.works-top-return {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 58;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease;
}

.works-top-return.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.works-top-sprite {
  display: block;
  width: 58px;
  aspect-ratio: 1 / 1;
  background-image: url("image/sprites/ketu_wwj.png");
  background-repeat: no-repeat;
  background-size: 1200% 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 6px 10px rgba(34, 34, 38, 0.16));
  animation:
    works-top-sprite-cycle 2.7s steps(1, end) infinite,
    sprite-float 0.0s ease-in-out infinite;
}

.works-top-sign {
  width: clamp(120px, 14vw, 190px);
  height: auto;
}

@media (max-width: 720px) {
  .hero {
    min-height: 560px;
  }

  .hero .container {
    width: min(100% - 28px, 680px);
    padding-top: 34px;
  }

  .hero-copy,
  .hero-brand-art {
    width: min(100%, 520px);
    max-width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-portrait img {
    margin: 0 auto;
  }

  .fixed-work-link {
    width: 148px;
  }

  .works-top-return {
    top: 12px;
    left: 12px;
    gap: 8px;
  }

  .works-top-sprite {
    width: 44px;
  }

  .works-top-sign {
    width: 116px;
  }

}

/* Latest layout adjustments */
html,
body {
  min-height: 100%;
}

body {
  background:
    url("image/hero/背景.png") top center / 100% auto fixed repeat-y,
    #ff6a9f;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 3vw;
  z-index: 0;
  width: 60vw;
  height: 100vh;
  background: none;
  pointer-events: none;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: calc(100vh - 88px);
  position: relative;
}

.hero .container {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: flex-start;
  width: calc(100% - 28px);
  margin-left: 14px;
  margin-right: 0;
}

.hero .container::after {
  display: none;
}

.hero-brand-art {
  z-index: 3;
  width: min(42vw, 800px);
  margin-top: clamp(8px, 2vh, 24px);
}

.hero-logo-image {
  transform-origin: 52% 58%;
  animation: logo-shiver 4.8s ease-in-out infinite;
  will-change: transform, filter;
}

.hero-brand-art.is-logo-hovered .hero-logo-image {
  animation: logo-hover-shiver 620ms ease-out both;
}

@keyframes logo-shiver {
  0%,
  83%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    filter: none;
  }

  85% {
    transform: translate(-2px, 1px) rotate(-0.45deg);
    filter:
      blur(1px)
      drop-shadow(5px 0 0 rgba(255, 70, 140, 0.42))
      drop-shadow(-5px 0 0 rgba(70, 210, 255, 0.34));
  }

  87% {
    transform: translate(2px, -1px) rotate(0.4deg);
    filter:
      blur(0.7px)
      drop-shadow(-4px 0 0 rgba(255, 70, 140, 0.32))
      drop-shadow(4px 0 0 rgba(70, 210, 255, 0.26));
  }

  89% {
    transform: translate(-1px, -1px) rotate(-0.3deg);
    filter:
      blur(0.35px)
      drop-shadow(2px 0 0 rgba(255, 70, 140, 0.22))
      drop-shadow(-2px 0 0 rgba(70, 210, 255, 0.18));
  }

  91% {
    transform: translate(1px, 1px) rotate(0.25deg);
    filter: none;
  }

  93% {
    transform: translate(0, 0) rotate(0deg);
    filter: none;
  }
}

@keyframes logo-hover-shiver {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    filter: none;
  }

  18% {
    transform: translate(-3px, 1px) rotate(-0.65deg);
    filter:
      blur(1px)
      drop-shadow(5px 0 0 rgba(255, 70, 140, 0.42))
      drop-shadow(-5px 0 0 rgba(70, 210, 255, 0.34));
  }

  34% {
    transform: translate(3px, -1px) rotate(0.55deg);
    filter:
      blur(0.7px)
      drop-shadow(-4px 0 0 rgba(255, 70, 140, 0.32))
      drop-shadow(4px 0 0 rgba(70, 210, 255, 0.26));
  }

  52% {
    transform: translate(-2px, -1px) rotate(-0.42deg);
    filter:
      blur(0.35px)
      drop-shadow(2px 0 0 rgba(255, 70, 140, 0.22))
      drop-shadow(-2px 0 0 rgba(70, 210, 255, 0.18));
  }

  70% {
    transform: translate(1px, 1px) rotate(0.25deg);
    filter: none;
  }
}

.works {
  --works-gallery-offset: clamp(120px, 13vw, 190px);
  --works-gallery-height: clamp(780px, 62vw, 1080px);
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding-top: var(--works-gallery-offset);
  isolation: isolate;
}

.works::before {
  /* すりガラスをWorksセクション全体へ拡張（上端〜下端）。 */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(26px) saturate(1.05);
  -webkit-backdrop-filter: blur(26px) saturate(1.05);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 100%);
  z-index: 0;
  pointer-events: none;
}

.works-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.works-gallery {
  order: 1;
}

body.is-section-visibility-ready .works .works-gallery {
  opacity: 1;
}

/* 入場は各行の「右からスライドイン」(.gallery-row の transform)で行うため、
   ギャラリー全体の clip-path リビールは使わない */

.works .section-heading {
  order: 2;
  margin-top: clamp(32px, 5vw, 72px);
  margin-bottom: 24px;
}

/* Worksセクションの見出し（黒い「WORKS」バッジ h2::before 等）を丸ごと非表示 */
.works .section-heading {
  display: none;
}

.link .section-heading {
  display: none;
}

.link {
  padding: clamp(56px, 6vw, 86px) 0 clamp(42px, 5vw, 72px);
  background: transparent;
}

.link-card {
  padding: 0;
}

.link-content {
  width: min(1640px, calc(100% - 120px));
  margin: 0 auto;
  /* リンク6個（X / FANBOX / Fantia / pixiv / FANZA / DLsite）を 2行×3列で整列 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
}

.social-link {
  justify-content: center;
  min-height: clamp(88px, 7vw, 112px);
  padding: 0;
  border-radius: 20px;
}

.link-content .social-link::after {
  display: none;
}

.social-link .social-icon {
  width: clamp(54px, 4.8vw, 78px);
  height: clamp(54px, 4.8vw, 78px);
  border-radius: 16px;
}

.link-content .social-icon-official {
  border: 0;
  background: transparent;
}

.social-link .social-icon-wide {
  width: clamp(248px, 20vw, 344px);
}

.social-link .social-icon-x-logo {
  width: clamp(138px, 12vw, 226px);
}

.social-link .social-icon-pixiv-logo {
  width: clamp(92px, 8vw, 150px);
}

.social-link .social-icon-fanza-logo {
  width: clamp(120px, 10vw, 184px);
}

.social-link .social-icon-dlsite-logo {
  width: clamp(120px, 10vw, 184px);
}

.social-link .social-icon img {
  width: clamp(135px, 8.5vw, 165px);
  height: clamp(54px, 4.8vw, 78px);
}

.social-link-pixiv .social-icon img {
  width: 100%;
  height: auto;
}

.social-link-x .social-icon img {
  width: 130%;
  height: auto;
}

.social-link-fantia .social-icon img {
  width: 290%;
  height: 290%;
  object-fit: contain;
  object-position: center center;
}

.social-link-dlsite .social-icon img {
  width: 94%;
  height: 94%;
  object-fit: contain;
  transform: translateY(-5%);
}

.social-link .social-icon-wide img {
  width: 60%;
  height: 60%;
}

.social-link-fanza .social-icon img {
  width: 95%;
  height: 95%;
}

.site-footer {
  position: relative;
  z-index: 4;
  /* 文字を少しだけ上へ（上パディングを下より小さく） */
  padding: 6px 0 8px;
  /* 背景画像（背景.png）の濃いピンク縞と同じ色で一色塗り */
  background: #ff759f;
}

/* フッター文字を縦中央に */
.footer-inner p {
  line-height: 1;
}

.footer-inner {
  width: min(100% - 72px, 1780px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-inner p {
  margin: 0;
  text-align: center;
}

@media (max-width: 900px) {
  body::before {
    top: 120px;
    right: -36vw;
    width: 118vw;
    opacity: 0.9;
  }

  .link-content {
    width: min(100% - 36px, 620px);
    grid-template-columns: 1fr;
  }

  .footer-inner {
    width: min(100% - 32px, 680px);
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
  }

  .footer-inner p {
    justify-self: center;
  }

}

/* Scroll-linked hero composition */
html,
body {
  overflow-x: hidden;
}

body {
  position: relative;
  background:
    url("image/hero/背景.png") top center / 100% auto repeat-y,
    #ff6a9f;
}

body::before {
  display: none;
}

/* 背景装飾（Top上部のグラデーション：濃いピンク→透明）。
   おばけ背景(body)より前・女の子/ロゴ(.hero-stage=z-index:1)より後ろに置く。
   最上部を濃いピンクで引き締め、下へ向かって透明にフェード（おばけ柄が透けて見える）。 */
.hero-decoration-top {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100vw;
  height: clamp(220px, 32vw, 520px);
  background: linear-gradient(
    180deg,
    rgba(255, 61, 133, 0.85) 0%,
    rgba(255, 61, 133, 0) 100%
  );
}

.hero-scroll {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: block;
  width: clamp(22px, 2.2vw, 34px);
  cursor: pointer;
  animation:
    hero-scroll-in 700ms ease-out 1200ms both,
    hero-scroll-blink 2.6s ease-in-out 1900ms infinite;
}

@keyframes hero-scroll-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-scroll img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes hero-scroll-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ローディング中は非表示 */
body.is-loading .hero-scroll {
  opacity: 0;
  animation: none;
}

/* Heroから別セクションへ移動したら消す（以後は出さない） */
body.has-left-hero .hero-scroll {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
  transition:
    opacity 500ms ease,
    visibility 0s linear 500ms;
}

.hero-logo-image {
  position: relative;
  z-index: 3;
}

.hero-logo-twitch {
  position: absolute;
  top: clamp(24px, 3.7vw, 72px);
  right: clamp(18px, 2.2vw, 38px);
  z-index: 4;
  width: clamp(72px, 11vw, 172px);
  height: auto;
  pointer-events: none;
  transform-origin: 46% 58%;
  opacity: 1;
  animation: logo-twitch-shiver 4.8s ease-in-out infinite;
  will-change: transform, filter;
}

.hero-brand-art.is-logo-hovered .hero-logo-twitch {
  animation: logo-twitch-hover-shiver 620ms ease-out both;
}

@keyframes logo-twitch-shiver {
  0%,
  83%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    filter: none;
  }

  85% {
    transform: translate(-4px, 2px) rotate(-7deg) scale(1.5);
    filter:
      blur(1.2px)
      drop-shadow(4px 0 0 rgba(255, 70, 140, 0.48))
      drop-shadow(-4px 0 0 rgba(70, 210, 255, 0.38));
  }

  87% {
    transform: translate(3px, -2px) rotate(5deg) scale(1.45);
    filter:
      blur(0.75px)
      drop-shadow(-3px 0 0 rgba(255, 70, 140, 0.34))
      drop-shadow(3px 0 0 rgba(70, 210, 255, 0.28));
  }

  89% {
    transform: translate(-2px, 1px) rotate(-3deg) scale(1);
    filter:
      blur(0.35px)
      drop-shadow(2px 0 0 rgba(255, 70, 140, 0.2))
      drop-shadow(-2px 0 0 rgba(70, 210, 255, 0.16));
  }

  91% {
    transform: translate(1px, -1px) rotate(2deg) scale(1);
    filter: none;
  }

  93% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    filter: none;
  }
}

@keyframes logo-twitch-hover-shiver {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    filter: none;
  }

  18% {
    transform: translate(-4px, 2px) rotate(-7deg) scale(1.5);
    filter:
      blur(1.2px)
      drop-shadow(4px 0 0 rgba(255, 70, 140, 0.48))
      drop-shadow(-4px 0 0 rgba(70, 210, 255, 0.38));
  }

  34% {
    transform: translate(3px, -2px) rotate(5deg) scale(1.45);
    filter:
      blur(0.75px)
      drop-shadow(-3px 0 0 rgba(255, 70, 140, 0.34))
      drop-shadow(3px 0 0 rgba(70, 210, 255, 0.28));
  }

  52% {
    transform: translate(-2px, 1px) rotate(-3deg) scale(1);
    filter:
      blur(0.35px)
      drop-shadow(2px 0 0 rgba(255, 70, 140, 0.2))
      drop-shadow(-2px 0 0 rgba(70, 210, 255, 0.16));
  }

  70% {
    transform: translate(1px, -1px) rotate(2deg) scale(1);
    filter: none;
  }
}

.works-gallery {
  pointer-events: none;
}

.work-trigger {
  cursor: default;
}

.work-trigger img,
.gallery-row:hover .work-trigger img,
.gallery-row .work-trigger:hover img,
.gallery-row .work-trigger:focus-visible img {
  transform: none;
  filter: none;
}

/* Production Works gallery: 3 diagonal lanes */
.works-gallery {
  position: relative;
  height: var(--works-gallery-height);
  overflow: visible;
  gap: 0;
}

.gallery-row {
  position: absolute;
  z-index: 1;
  left: -6vw;
  width: max-content;
  overflow: visible;
  padding: 0;
  transform: rotate(10deg) translate3d(0, -50%, 0);
  transform-origin: left center;
}

/* 入場前：各行を画面右外へ深めにスライドして隠す（works-galleryのoverflow:hiddenでクリップ） */
body.is-section-visibility-ready .works .gallery-row {
  transform: rotate(10deg) translateX(180vw) translate3d(0, -50%, 0);
  transition: transform 1600ms cubic-bezier(0.16, 0.84, 0.24, 1);
  will-change: transform;
}

/* 入場：右から定位置へスライドイン */
body.is-section-visibility-ready .works.is-active-section .gallery-row {
  transform: rotate(10deg) translateX(0) translate3d(0, -50%, 0);
}

/* 入場が始まったら、スクロールでアクティブ判定を外れても定位置に留める（TOPへ戻る時の右への逆走を防止） */
body.is-works-entering:not(.is-works-preparing) .works .gallery-row {
  transform: rotate(10deg) translateX(0) translate3d(0, -50%, 0);
}

/* 上→中→下の順でスライド */
body.is-section-visibility-ready .works.is-active-section .gallery-row-top {
  transition-delay: 200ms;
}

body.is-section-visibility-ready .works.is-active-section .gallery-row-middle {
  transition-delay: 560ms;
}

body.is-section-visibility-ready .works.is-active-section .gallery-row-bottom {
  transition-delay: 920ms;
}

/* 準備中は右外に隠す */
body.is-works-preparing .works.is-active-section .gallery-row {
  transform: rotate(10deg) translateX(180vw) translate3d(0, -50%, 0);
  transition-delay: 0ms;
}

/* 一度見た後は定位置に固定（マーキー開始） */
body.has-seen-works:not(.is-works-entering) .works .gallery-row {
  transform: rotate(10deg) translateX(0) translate3d(0, -50%, 0);
  transition-delay: 0ms;
}

.gallery-row-top {
  top: 10%;
}

.gallery-row-middle {
  top: 34%;
}

.gallery-row-bottom {
  top: 58%;
}

.gallery-track,
.gallery-set {
  gap: clamp(10px, 1.3vw, 18px);
}

.work-card {
  flex: 0 0 clamp(150px, 15vw, 240px);
  width: clamp(150px, 15vw, 240px);
}

.work-trigger img {
  border: 8px solid #fff;
  border-radius: 6px;
  box-shadow: 0 18px 34px rgba(25, 23, 27, 0.18);
}

@media (max-width: 640px) {
  body {
    background-size: auto 1120px;
  }
}

@media (max-width: 900px) {
  .works-gallery {
    height: 680px;
  }

  .gallery-row {
    left: -18vw;
  }

  .work-card {
    flex-basis: 138px;
    width: 138px;
  }
}

@media (max-width: 640px) {
  .works-gallery {
    height: 590px;
  }

  .gallery-row {
    left: -24vw;
  }

  .gallery-row-top {
    top: 12%;
  }

  .gallery-row-middle {
    top: 39%;
  }

  .gallery-row-bottom {
    top: 66%;
  }

  .work-card {
    flex-basis: 126px;
    width: 126px;
  }

  .work-trigger img {
    border-width: 6px;
  }
}

/* ===== Hero 共通ステージ配置（女の子＋ロゴを環境でずらさない） =====
   女の子(.hero-girl/.hero-girl-image)とロゴ(.hero-brand-art)を 1 つのステージに入れ、
   すべてステージ基準の % で配置する。ステージが拡大縮小しても内部の相対関係（位置・
   サイズ比）は固定されるため、画面幅(環境)が変わっても両者がずれない。
   レスポンシブ調整は .hero-stage のサイズ/aspect-ratio と子要素の % だけで行う。
   ※ このブロックはファイル末尾にあり、上の旧 .hero 系ルールを意図的に上書きする。 */

/* hero 本体：高さはステージが作る。旧 min-height / vw 配置への依存を解除 */
.hero {
  position: relative;
  min-height: 0;
  overflow: visible;
  isolation: isolate;
}

/* テキストは視覚的に非表示(SR専用)。重ねるだけにして高さを作らせない */
.hero .container {
  position: absolute;
  inset: 0;
  z-index: 4;
  min-height: 0;
  width: auto;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* ステージ：構図の基準箱。幅を1要素で制御し、aspect-ratio で高さを固定する。
   transform: scale() は使わない（ロゴ hover の getBoundingClientRect とズレるため）。 */
.hero-stage {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1880px);
  margin-inline: auto;
  aspect-ratio: 16 / 9;   /* ← ファーストビューの構図比。見た目はこの比率＋下の % で調整 */
  isolation: isolate;
}

/* 女の子：ステージ基準の % 配置（right/vw は廃止）。はみ出しは overflow:visible で許容。
   ピクセル精密ホバー判定(JS)のため疑似要素ではなく実 <img> 要素(.hero-girl-image)を使う。
   判定エンジンが pointer イベントを受けられるよう .hero-girl は pointer-events:auto。
   ロゴ(z-index:3)が重なる領域は上に乗るロゴが優先される（自然な挙動）。 */
.hero-stage .hero-girl {
  position: absolute;
  left: 40%;     /* ← 調整 */
  top: -9%;     /* ← 調整 */
  width: 57%;    /* ← 調整 */
  aspect-ratio: 1920 / 2827;
  z-index: 1;
  opacity: 1;
  transition: opacity 1200ms ease-out;
  pointer-events: auto;
  cursor: default;
  overflow: visible;
}

.hero-stage .hero-girl-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right top;   /* 旧 background: right top / contain と同義 */
  display: block;
  will-change: transform, filter;
  transform-origin: 52% 42%;
  pointer-events: none;         /* 判定はラッパ(.hero-girl)で受ける */
}

.hero-stage .hero-girl::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: none;
  filter:
    brightness(0)
    saturate(100%)
    invert(92%)
    sepia(17%)
    saturate(965%)
    hue-rotate(294deg)
    brightness(112%)
    contrast(104%)
    blur(1.6px)
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.94))
    drop-shadow(0 0 34px rgba(255, 135, 190, 0.72))
    drop-shadow(0 0 86px rgba(255, 104, 170, 0.42));
  opacity: 0;
  transform: scale(1);
  transform-origin: 52% 42%;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

body:not(.is-age-gated) .hero-stage .hero-girl::before {
  background:
    var(--hero-girl-effect-image, none) right top / contain no-repeat;
}

/* ドクン中だけロゴより前面へ。雪(z-index:40)より背面は維持 */
.hero-stage.is-dokun .hero-girl {
  z-index: 5;
}

/* ホバー時だけ「ドクン…」と一拍ふくらみ、余韻で戻す。 */
.hero-stage.is-dokun .hero-girl .hero-girl-image {
  animation: hero-girl-dokun 820ms cubic-bezier(.18, .82, .26, 1) both;
}

.hero-stage.is-dokun .hero-girl::before {
  animation: hero-dokun-ring 760ms ease-out both;
}

.hero-stage.is-dokun .hero-brand-art {
  animation: hero-logo-dokun-escape 1180ms linear 70ms both;
}

@keyframes hero-girl-dokun {
  0% {
    transform: scale(1);
    filter: blur(0);
  }

  14% {
    transform: scale(1.3);
    filter: blur(1px);
  }

  26% {
    transform: scale(1.18);
    filter: blur(0.35px);
  }

  58% {
    transform: scale(1.055);
    filter: blur(0);
  }

  100% {
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes hero-dokun-ring {
  0% {
    opacity: 0.72;
    filter:
      brightness(0)
      saturate(100%)
      invert(92%)
      sepia(17%)
      saturate(965%)
      hue-rotate(294deg)
      brightness(112%)
      contrast(104%)
      blur(1.4px)
      drop-shadow(0 0 18px rgba(255, 255, 255, 0.95))
      drop-shadow(0 0 36px rgba(255, 135, 190, 0.72))
      drop-shadow(0 0 80px rgba(255, 104, 170, 0.38));
    transform: scale(1);
  }

  18% {
    opacity: 0.82;
    transform: scale(1.18);
  }

  58% {
    opacity: 0.38;
  }

  100% {
    opacity: 0;
    filter:
      brightness(0)
      saturate(100%)
      invert(92%)
      sepia(17%)
      saturate(965%)
      hue-rotate(294deg)
      brightness(112%)
      contrast(104%)
      blur(3px)
      drop-shadow(0 0 28px rgba(255, 255, 255, 0.72))
      drop-shadow(0 0 62px rgba(255, 135, 190, 0.54))
      drop-shadow(0 0 118px rgba(255, 104, 170, 0.28));
    transform: scale(1.48);
  }
}

@keyframes hero-logo-dokun-escape {
  0% {
    transform: translate3d(0, 0, 0);
    animation-timing-function: cubic-bezier(.2, .86, .26, 1);
  }

  18% {
    transform: translate3d(-148px, 0, 0);
    animation-timing-function: linear;
  }

  30% {
    transform: translate3d(-148px, 0, 0);
    animation-timing-function: cubic-bezier(.34, 0, .16, 1);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage.is-dokun .hero-girl .hero-girl-image,
  .hero-stage.is-dokun .hero-girl::before,
  .hero-stage.is-dokun .hero-brand-art {
    animation: none;
  }
}

/* ロゴ：ステージ基準の % 配置。JS が参照するため要素/クラス/入れ子は不変 */
.hero-stage .hero-brand-art {
  position: absolute;
  left: 6%;      /* ← 調整 */
  top: 15%;      /* ← 調整 */
  width: 53%;    /* ← 調整 */
  max-width: none;
  margin: 0;
  z-index: 3;
  display: grid;
  justify-items: start;
  opacity: 1;
  will-change: transform;
  /* 女の子より約400ms遅らせてフェードイン */
  transition: opacity 1200ms ease-out 400ms;
}

/* ビクン(twitch)：ロゴ(.hero-brand-art)基準の % にしてロゴへ追従させる（vw を廃止） */
.hero-stage .hero-logo-twitch {
  top: 16%;      /* ← 調整 */
  right: 5%;     /* ← 調整 */
  width: 21%;    /* ← 調整 */
}

/* 段階フェード：loading 中は女の子→ロゴの順で透明にする（高 specificity で確実に上書き） */
body.is-loading .hero-stage .hero-girl,
body.is-loading .hero-stage .hero-brand-art {
  opacity: 0;
}

/* --- スマホ(縦長)：構図を縦長へ切替。女の子のはみ出しは許容 --- */
@media (max-width: 640px) {
  .hero-stage {
    width: min(100% - 24px, 620px);
    aspect-ratio: 3 / 4;
  }

  .hero-stage .hero-girl {
    left: -50%;    /* ← 調整 */
    top: -15%;      /* ← 調整 */
    width: 200%;   /* ← 調整 */
  }

  .hero-stage .hero-brand-art {
    left: 51%;    /* ← 調整 */
    top: 80%;     /* ← 調整 */
    width: 119%;   /* ← 調整 */
    transform: translateX(-50%);
  }

  .hero-stage .hero-logo-twitch {
    top: 14%;
    right: 6%;
    width: 22%;
  }
}

/* === TOP(hero) 背景の雪エフェクト ===========================================
   .hero 直下に置き、最前列(z-index:40)で舞う。女の子/ロゴ/コピー(z-index:1〜4)や
   スクロール矢印(z-index:30)より前面。pointer-events:none なので各要素のホバー/
   クリックは透過する。雪粒(.snowflake)は script.js が生成。 */
.hero-snow {
  position: absolute;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
}

.hero-snow .snowflake {
  position: absolute;
  top: -24px;
  border-radius: 50%;
  /* ぼかしなしのシャープな光の点。ほんのり黄色（黄色みはごく控えめ） */
  background: radial-gradient(
    circle,
    #fffff8 0,
    #fffceb 70%,
    rgba(255, 252, 235, 0) 100%
  );
  opacity: 0;
  will-change: transform, opacity;
  animation: hero-snow-fall var(--snow-duration, 7000ms) linear forwards;
}

@keyframes hero-snow-fall {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  15% {
    opacity: var(--snow-opacity, 0.6);
  }
  70% {
    opacity: var(--snow-opacity, 0.6);
  }
  100% {
    transform: translate3d(var(--snow-drift, 0), var(--snow-distance, 600px), 0);
    opacity: 0;
  }
}
