/* TOP（pages/index.vue） */

/* ---------- frame 1 ---------- */
.frame1 {
  --cols: 10.62% 54.83% 25.48% 9.07%;
  --menu-pt: 27px;
  --frame-bw: 2.5px;
  margin-right: 5%;
}

.frame1 .frame-body {
  grid-template-rows: auto auto auto;
}

.frame1 .label {
  height: 42px;
  padding-left: 2%;
}

.frame1 .label.c1 {
  padding-left: 11.9%;
}

.frame1 .label.c3 {
  padding-left: 3.2%;
}

.frame1 .label.c4 {
  padding-left: 11.5%;
}

.frame1 .frame-menu {
  padding-left: 11.9%;
}

.frame1 .frame-menu .menu-list {
  gap: 12px;
  letter-spacing: 1px;
}

.frame1 .hero-cell {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  aspect-ratio: 738 / 418;
  overflow: hidden;
  cursor: pointer;
}

.frame1 .hero-cell .kv-thumb,
.frame1 .hero-cell .kv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame1 .hero-cell .wipe {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.66, 0, 0.34, 1);
}

.frame1 .hero-cell .wipe.cover {
  transform: scaleX(1);
}

.frame1 .hero-cell .wipe.exit {
  transform: scaleX(0);
  transform-origin: right;
}

.frame1 .hero-cell .progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10.6px;
  background: var(--pink-40);
}

.frame1 .hero-cell .progress .bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--pink);
}

.frame1 .action-cell {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 文字の入るセルの内側の余白は PC が上下 28px・左右 32px。
   ACTION 列（work-meta / about-label）は PC 28px 16px、SP 32px 12px。PICTURE 列は SP 40px 24px */
.frame1 .work-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 16px;
}

.frame1 .work-meta .k {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--pink-40);
  margin-bottom: 3px;
}

/* 値は和欧問わず Zen Kaku Gothic New で揃える */
.frame1 .work-meta .v {
  position: relative;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1.1;
  white-space: pre-line;
}

.frame1 .work-meta .v .ghost {
  visibility: hidden;
}

.frame1 .work-meta .v .live {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}

.frame1 .strip {
  display: flex;
  height: 43px;
}

.frame1 .strip .arrow {
  flex: none;
  width: 12.4%;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  border: none;
  padding: 0;
  cursor: pointer;
}

.frame1 .strip .arrow:hover {
  background: #000;
}

.frame1 .strip .arrow img {
  width: 10px;
  height: 20px;
}

.frame1 .strip .arrow:first-child img {
  transform: rotate(180deg);
}

.frame1 .strip .thumbs {
  flex: 1;
  overflow: hidden;
}

.frame1 .thumb-track {
  display: flex;
  height: 100%;
  width: 362.4%;
  transition: transform 0.5s cubic-bezier(0.66, 0, 0.34, 1);
}

.frame1 .strip .thumb {
  position: relative;
  flex: 1 1 0;
  height: 43px;
  padding: 0;
  background: none;
  border: none;
  overflow: hidden;
  cursor: pointer;
}

.frame1 .strip .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame1 .strip .thumb.dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* about rows */
.frame1 .about-copy {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  min-height: 29.03vw;
  padding: 58px 32px;
}

.frame1 .about-copy .headline {
  width: 91.7%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3.47vw; /* 50 / 1440 */
  line-height: 1.45;
  letter-spacing: 2px;
}

.frame1 .about-copy .sub-en {
  margin-top: 48px;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: 0.76px;
}

/* PC もバケツくん（baketsu_anim_about.png、580 x 636 の APNG。セル左から 511px / 上から 157px）。
   箱の下辺でマスクして、下から跳ねて出てくる。上と左右は切らない（跳び上がりと潰れを見せる） */
.frame1 .about-copy .mascot {
  position: absolute;
  left: 69.2%;
  top: 37.6%;
  width: 28.2%;
  clip-path: inset(-60% -30% 0 -30%);
}

.frame1 .about-copy .mascot img {
  width: 100%;
  height: auto;
  transform: translateY(105%);
  transform-origin: 50% 100%;
}

.frame1 .about-copy .mascot.show img {
  animation: mascot-jump 0.8s linear both;
}

/* 縦に伸びて飛び出し → 頂点で元の形 → 着地で横に潰れる → 小さく弾んで落ち着く */
@keyframes mascot-jump {
  0% {
    transform: translateY(105%) scale(0.86, 1.18);
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.4, 1);
  }
  38% {
    transform: translateY(-22%) scale(0.94, 1.08);
    animation-timing-function: cubic-bezier(0.5, 0, 0.8, 0.4);
  }
  46% {
    transform: translateY(-26%) scale(1, 1);
    animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.5);
  }
  64% {
    transform: translateY(0) scale(1.16, 0.8);
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.4, 1);
  }
  76% {
    transform: translateY(-6%) scale(0.95, 1.06);
    animation-timing-function: cubic-bezier(0.5, 0, 0.8, 0.4);
  }
  86% {
    transform: translateY(0) scale(1.06, 0.93);
    animation-timing-function: ease-out;
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

.frame1 .about-label {
  grid-column: 3;
  grid-row: 2;
  padding: 58px 16px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1.52;
}

.frame1 .about-label.label2 {
  grid-row: 3;
  border-bottom: none;
}

.frame1 .about-desc {
  grid-column: 2;
  grid-row: 3;
  min-height: 29.03vw;
  padding: 58px 32px;
  border-bottom: none;
}

.frame1 .about-desc .jp-body {
  width: 86.2%;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.2vw;
  line-height: 1.75;
  letter-spacing: 0.3px;
}

.frame1 .about-desc .en-body {
  width: 89%;
  margin-top: 38px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.28px;
}

.frame1 .scroll-cell {
  grid-column: 4;
  grid-row: 1 / -1;
  padding: 58px 0px 28px 0px;
  border-right: none;
  border-bottom: none;
}

/* ---------- WORKS marquee（120px ExtraBold、枠の下 24px、表組みまで 21px） ---------- */
.we-marquee {
  margin-top: 24px;
  overflow: hidden;
}

.we-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee 24s linear infinite;
  font-weight: 800;
  font-size: 120px;
  line-height: 1.6;
  letter-spacing: -2.4px;
  white-space: nowrap;
}

/* ---------- bottom ---------- */
.works-block {
  position: relative;
  margin-top: 21px;
}

/* VIEW MORE バーは表組みの最下段に重ねる。下端は表組みの枠線（ピンク 3px）の下端に合わせて、hover で黒くなったとき下に線が覗かないようにする */
.works-block .view-more {
  position: relative;
  z-index: 1;
  margin-top: -99px;
}

/* ---------- SP ---------- */
@media (max-width: 767px) {
  .frame1 {
    --cols: 70.7% 29.3%;
    margin-right: 10.5px;
  }

  .frame1 .frame-body {
    grid-template-rows: auto 36px auto auto;
  }

  .frame1 .label {
    height: var(--head-h);
    padding-left: 12.5px;
  }

  .frame1 .label.c1,
  .frame1 .label.c4,
  .frame1 .scroll-cell {
    display: none;
  }

  /* SCROLL 列が無いので ACTION が右端。枠の右辺と重なる罫線は引かない */
  .frame1 .label.c3 {
    border-right: none;
  }

  .frame1 .hero-cell {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 548 / 390;
  }

  .frame1 .hero-cell .progress {
    height: 5px;
  }

  /* ACTION セルを解いて、サムネ帯は PICTURE 列の下へ */
  .frame1 .action-cell {
    display: contents;
  }

  .frame1 .work-meta {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-content: center;
    gap: 12px;
    padding: 32px 12px;
    border-bottom: 1px solid var(--pink);
  }

  .frame1 .work-meta .k {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .frame1 .work-meta .v {
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: 1px;
  }

  /* 右列は枠の右辺と重なるので罫線を持たない */
  .frame1 .work-meta,
  .frame1 .about-label {
    border-right: none;
  }

  .frame1 .strip {
    grid-column: 1;
    grid-row: 2;
    height: 36px;
    border-right: 1px solid var(--pink);
    border-bottom: 1px solid var(--pink);
  }

  .frame1 .strip .arrow {
    width: 40px;
    height: 36px;
  }

  .frame1 .strip .arrow img {
    width: 7px;
    height: 14px;
  }

  .frame1 .strip .thumb {
    height: 36px;
  }

  .frame1 .about-copy {
    grid-column: 1;
    grid-row: 3;
    position: relative;
    min-height: 318.5px;
    padding: 40px 24px;
    border-bottom: 1px solid var(--pink);
  }

  .frame1 .about-copy .headline {
    width: auto;
    font-size: 8vw;
    line-height: 1.3;
    letter-spacing: 0.5px;
  }

  .frame1 .about-copy .sub-en {
    width: auto;
    margin-top: 21px;
    font-size: 12px;
    letter-spacing: 0.24px;
  }

  /* SP は文章の下に置く（文字量が増えて重なるため絶対配置にしない） */
  .frame1 .about-copy .mascot {
    position: static;
    width: 104px;
    margin: 22px 0 6px;
  }

  .frame1 .about-label {
    grid-column: 2;
    grid-row: 3;
    padding: 32px 12px;
    font-size: 12px;
    letter-spacing: 1px;
  }

  .frame1 .about-label.label2 {
    grid-row: 4;
  }

  .frame1 .about-desc {
    grid-column: 1;
    grid-row: 4;
    min-height: 0;
    padding: 40px 24px;
  }

  .frame1 .about-desc .jp-body {
    width: auto;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0;
  }

  .frame1 .about-desc .jp-body p + p {
    margin-top: 16px;
  }

  .frame1 .about-desc .en-body {
    width: auto;
    margin-top: 24px;
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: 0;
  }

  .we-marquee {
    margin-top: 14.5px;
  }

  .we-track {
    font-size: 56px;
    gap: 20px;
  }

  .works-block {
    margin-top: 0;
  }

  .works-block .view-more {
    margin-top: -1px;
  }
}
