/* Final presentation layer. Loaded after the legacy stylesheet. */

/* Keep Japanese headings balanced and prevent one- or two-character orphans. */
h1,
h2,
h3 {
  letter-spacing: 0 !important;
  line-break: strict;
  text-wrap: balance;
  word-break: auto-phrase;
}

.text-keep {
  white-space: nowrap !important;
}

.final-cta__marquee-group span {
  color: rgba(255,255,255,.38);
  font-weight: 800;
}

.final-cta h2 {
  color: rgba(255,255,255,.76);
  font-weight: 900;
  text-shadow: 0 3px 18px rgba(0,0,0,.28);
}

/* Transparent header logo */
.viva-logo__mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
}

/* Soccer-ball cursor */
.viva-cursor-dot {
  width: 23px;
  height: 23px;
}

.viva-cursor-dot span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #111;
  background: #fff;
  box-shadow: 0 2px 9px rgba(0,0,0,.28);
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}

.viva-cursor-dot span::before {
  content: "⚽";
  display: block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 19px;
  line-height: 1;
}

.viva-cursor-ring {
  width: 50px;
  height: 50px;
  border-color: #ffd21f;
  background: rgba(255,255,255,.05);
}

.viva-cursor-ring.is-interactive {
  width: 72px;
  height: 72px;
  border-color: #ff7a17;
  background: rgba(255,210,31,.12);
}

.viva-cursor-dot.is-interactive span {
  transform: scale(1.16) rotate(18deg);
}

.viva-cursor-ring.is-pressed {
  width: 38px;
  height: 38px;
}

.viva-cursor-dot.is-pressed span {
  transform: scale(.86) rotate(-12deg);
}

/* Home hero typography */
.page-home .viva-hero__title {
  width: min(720px, 54vw);
  margin-top: 12px;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(64px, 5.6vw, 88px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  scale: 1;
}

.page-home .viva-hero__title .accent {
  display: inline;
  color: #080207;
  scale: 1;
}

.page-home .viva-hero__lead {
  width: min(610px, 46vw);
  line-height: 1.75;
}

.page-home .viva-hero__lead-line {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .page-home .viva-hero__title {
    width: 320px;
    margin-top: 4px;
    font-size: 42px;
    line-height: 1.12;
    scale: 1;
  }

  .page-home .viva-hero__title .accent {
    display: inline;
    white-space: nowrap;
    scale: 1;
  }

  .page-home .viva-hero__lead {
    width: min(340px, calc(100vw - 36px));
    font-size: clamp(8px, 2.4vw, 10px);
    line-height: 1.65;
  }
}

/* Home hero quick actions */
.page-home .viva-hero__quick-actions {
  position: absolute;
  right: 43px;
  bottom: 80px;
  z-index: 4;
  display: grid;
  width: min(304px, 21.111111vw);
  gap: min(18px, 1.25vw);
}

.page-home .viva-hero__quick-actions .viva-hero__entry {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
}

.page-home .viva-hero__quick-actions .viva-hero__consult {
  background: #080207 !important;
}

.page-home .viva-hero__quick-actions .viva-hero__consult .viva-hero__entry-icon {
  color: #080207;
}

@media (min-width: 1024px) {
  body.page-home .menu-toggle {
    display: none !important;
  }

  body.page-home .site-cta--desktop {
    right: 42px;
  }
}

@media (max-width: 1023px) {
  .page-home .viva-hero__quick-actions {
    right: min(19px, 4.75vw);
    bottom: max(-18px, -4.5vw);
    width: min(172px, 43vw);
    gap: min(10px, 2.5vw);
  }
}

.pickup-section {
  padding: 116px 40px 128px;
  color: #111;
  background: #fff;
}

.pickup-section .section-label { color: #f41624; }
.pickup-section .section-head__text { color: #5d5d62; }

.pickup-grid {
  display: grid;
  grid-template-columns: 1.16fr 1fr 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 64px;
}

.pickup-card,
.pickup-card--wide {
  display: block;
  min-height: 470px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #111;
}

.pickup-card:nth-child(2) { margin-top: 46px; }
.pickup-card:nth-child(3) { margin-top: 92px; }
.pickup-card::before { display: none; }
.pickup-card:hover,
.pickup-card:focus-visible {
  color: #fff;
  background: #111;
  transform: translateY(-5px);
}
.pickup-card h3 { color: #fff; }

.intro-section,
.intro-section[style] {
  padding: 120px 40px 132px;
  border-top: 0;
  color: #fff;
  background: #f41624 !important;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 72px;
  align-items: start;
}

.intro-section .section-label,
.intro-section .intro-copy { color: #fff; }

.viva-scenes {
  --scene-card-size: clamp(270px, 23vw, 350px);
  --scene-gap: 22px;
  padding: 108px 0 116px;
  overflow: hidden;
  background: #f5f5f6;
}

.viva-scenes__head {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto 54px;
}

.viva-scenes__head h2 {
  margin-top: 12px;
  color: #111;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
}

.viva-scenes__viewport {
  width: 100%;
  overflow: hidden;
}

.viva-scenes__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: viva-scenes-flow 38s linear infinite;
}

.viva-scenes__viewport:hover .viva-scenes__track {
  animation-play-state: paused;
}

.viva-scenes__group {
  display: flex;
  flex: none;
  gap: var(--scene-gap);
  padding-right: var(--scene-gap);
}

.viva-scenes__card {
  position: relative;
  flex: 0 0 var(--scene-card-size);
  width: var(--scene-card-size);
  height: var(--scene-card-size);
  margin: 0;
  overflow: hidden;
  background: #111;
  -webkit-mask: url("assets/card-oval-mask.webp?v=1") center / 100% 100% no-repeat;
  mask: url("assets/card-oval-mask.webp?v=1") center / 100% 100% no-repeat;
}

.viva-scenes__card img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}

.viva-scenes__card:nth-child(3) img,
.viva-scenes__card:nth-child(6) img {
  object-position: 58% center;
}

.viva-scenes__viewport:hover .viva-scenes__card img {
  transform: scale(1.025);
}

@keyframes viva-scenes-flow {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .viva-scenes__track {
    animation-play-state: paused;
  }
}

.story-band {
  min-height: 620px;
  padding: 0 40px;
  color: #fff;
  background: #050505 !important;
}

.story-band::before { display: none; }

.story-band__inner {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(380px, 1.18fr);
  gap: 72px;
  align-items: center;
  max-width: 1200px;
  min-height: 620px;
}

.story-band h2 {
  margin: 16px 0 24px;
  color: #fff;
  font-size: 54px;
  line-height: 1.32;
  letter-spacing: .08em;
}

.story-band p { color: rgba(255,255,255,.72); }

.story-band__media {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 0;
  -webkit-mask: url("assets/card-oval-mask.webp?v=1") center / 100% 100% no-repeat;
  mask: url("assets/card-oval-mask.webp?v=1") center / 100% 100% no-repeat;
}

.story-band__media img {
  object-position: center;
}

.story-band__media > span {
  right: 18%;
  bottom: 20%;
}

.home-position-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-position-grid .position {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: stretch;
  padding: 28px;
  border: 1px solid #dedee2;
  border-top: 5px solid #f41624;
  border-radius: 8px;
  background: #fff;
}

.home-position-grid .position--orange { border-top-color: #ff7a17; }
.home-position-grid .position--yellow { border-top-color: #ffb300; }

.home-position-grid .position:hover,
.home-position-grid .position:focus-visible {
  color: #fff;
  background: #111;
  transform: translateY(-5px);
}

.home-position-grid .position__link { color: inherit; }

@media (max-width: 1024px) {
  .pickup-section,
  .intro-section,
  .home-positions {
    padding-right: 28px;
    padding-left: 28px;
  }

  .pickup-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pickup-card,
  .pickup-card--wide { min-height: 410px; }
  .pickup-card:nth-child(2) { margin-top: 28px; }
  .pickup-card:nth-child(3) { margin-top: 56px; }

  .intro-grid { grid-template-columns: 1fr; gap: 54px; }
  .viva-scenes__head { width: calc(100% - 56px); }
  .story-band__inner { grid-template-columns: .9fr 1.1fr; gap: 42px; }
  .home-position-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .pickup-section { padding: 72px 20px 82px; }

  .pickup-grid {
    display: flex;
    gap: 12px;
    margin-top: 38px;
    margin-right: -20px;
    padding-right: 20px;
    overflow-x: auto;
  }

  .pickup-card,
  .pickup-card--wide,
  .pickup-card:nth-child(2),
  .pickup-card:nth-child(3) {
    flex: 0 0 min(82vw, 330px);
    min-height: 455px;
    margin-top: 0;
  }

  .intro-section,
  .intro-section[style] { padding: 76px 20px 84px; }
  .intro-grid { grid-template-columns: 1fr; gap: 38px; }

  .viva-scenes {
    --scene-card-size: min(72vw, 270px);
    --scene-gap: 14px;
    padding: 72px 0 78px;
  }

  .viva-scenes__head {
    width: calc(100% - 40px);
    margin-bottom: 36px;
  }

  .viva-scenes__head h2 {
    font-size: 30px;
    line-height: 1.5;
  }

  .viva-scenes__track {
    animation-duration: 32s;
  }

  .story-band { min-height: auto; padding: 76px 20px 0; }
  .story-band__inner {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 34px;
  }
  .story-band h2 { font-size: 38px; }
  .story-band__media {
    height: auto;
    aspect-ratio: 1;
  }

  .home-position-grid { grid-template-columns: 1fr; }
  .home-position-grid .position { min-height: 330px; }
}

@media (max-width: 640px) {
  .pickup-section .section__title {
    font-size: 30px !important;
  }

  .page-header--legal .page-header__title {
    font-size: 28px !important;
  }

  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table tr {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0,0,0,.08);
  }

  .company-table th,
  .company-table td {
    padding: 0;
    border: 0;
  }

  .company-table th {
    margin-bottom: 6px;
    background: transparent;
  }

  .company-table td {
    line-height: 1.8;
  }

  .join-viva__title--recruit {
    font-size: 30px !important;
  }

  .join-viva__title--about {
    font-size: 29px !important;
  }

  .site-footer__brand-copy .site-footer__title {
    font-size: 20px;
    letter-spacing: 0;
    white-space: nowrap;
  }
}

/* Shared lower-page visual language */
body:not(.page-home) .section {
  padding: 112px 40px;
}

body:not(.page-home) .section__inner {
  max-width: 1200px;
}

body:not(.page-home) .section__title {
  font-size: 46px;
  line-height: 1.38;
  letter-spacing: .04em;
}

.page-header--visual {
  position: relative;
  display: grid;
  min-height: 600px;
  align-items: center;
  padding: 120px 40px 84px !important;
  overflow: hidden;
  color: #fff;
  background: #050505 !important;
  text-align: left;
}

.page-header--visual .page-header__inner {
  z-index: 3;
  width: 100%;
  max-width: 1200px;
}

.page-header--visual .page-header__title {
  max-width: 620px;
  margin: 18px 0 24px;
  font-size: 62px !important;
  line-height: 1.34;
  letter-spacing: .08em;
}

.page-header--visual .page-header__lead {
  max-width: 520px;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 2;
}

.page-header__media {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 74%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0 0 0 440px;
}

.page-header__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.page-header--about .page-header__media img { object-position: 62% center; }
.page-header--business .page-header__media img { object-position: 58% center; }
.page-header--news .page-header__media img { object-position: 52% 42%; }
.page-header--contact .page-header__media img { object-position: 58% center; }

.page-header__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #050505 0%, rgba(5,5,5,.94) 25%, rgba(5,5,5,.6) 46%, rgba(5,5,5,.04) 78%),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.35));
}

.page-header--visual .page-header__sun {
  top: auto;
  right: auto;
  bottom: 38px;
  left: 40px;
  z-index: 3;
  width: 84px;
  height: 3px;
  background: linear-gradient(90deg, #f41624, #ff7a17, #ffd21f);
}

/* About */
.mission-row {
  grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr);
  gap: 88px;
}

.mission-visual {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 0;
  background: #111 !important;
}

.mission-visual::before,
.mission-visual::after {
  display: none;
}

.mission-visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.mission-visual figcaption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.72);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.values {
  gap: 12px;
}

.value-card {
  min-height: 300px;
  padding: 30px 24px;
  border: 1px solid #e1e1e4;
  border-top-width: 4px;
  border-radius: 8px;
  background: #fff;
}

.value-card__num {
  font-size: 50px;
}

.message-row {
  grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr);
  gap: 72px;
}

.message-visual {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 0;
  background: #111;
}

.message-visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 44%;
}

.message-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.62));
}

.message-visual figcaption {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  z-index: 1;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.7);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.message-text {
  padding: 20px 0;
}

.message-text h3 {
  font-size: 30px;
  line-height: 1.55;
}

.company-table {
  overflow: hidden;
  border-top: 2px solid #111;
  border-radius: 0;
}

/* Business */
.business-block {
  grid-template-columns: minmax(0, .86fr) minmax(380px, 1.14fr);
  gap: 88px;
  padding: 0;
}

.business-block__num,
.business-block--orange .business-block__num,
.business-block--yellow .business-block__num {
  color: #f41624;
  font-size: 66px;
  letter-spacing: 0;
}

.business-block__title {
  font-size: 42px;
  line-height: 1.5;
  letter-spacing: .04em;
}

.business-block__visual,
.business-block--orange .business-block__visual,
.business-block--yellow .business-block__visual {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 0;
  background: #111 !important;
}

.business-block__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.7));
}

.business-block__visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.business-block__visual > span {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  z-index: 1;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.75);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

/* iGoods-style asymmetric oval: keep the mask square so its contour never stretches. */
.mission-visual,
.message-visual,
.business-block__visual,
.business-block--orange .business-block__visual,
.business-block--yellow .business-block__visual {
  -webkit-mask: url("assets/card-oval-mask.webp?v=1") center / 100% 100% no-repeat;
  mask: url("assets/card-oval-mask.webp?v=1") center / 100% 100% no-repeat;
}

.mission-visual figcaption,
.message-visual figcaption,
.business-block__visual > span {
  right: 18%;
  bottom: 14%;
  left: 18%;
}

.mission-visual figcaption {
  right: 18%;
  left: 18%;
  text-align: left;
}

/* Recruit */
.recruit-hero {
  position: relative;
  min-height: 720px;
  justify-content: flex-start;
  background: #050505;
}

.recruit-hero__visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: 78%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0 0 0 460px;
}

.recruit-hero__visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 58% center;
}

.recruit-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #050505 0%, rgba(5,5,5,.96) 24%, rgba(5,5,5,.55) 48%, rgba(5,5,5,.04) 76%);
}

.recruit-hero .hero__content {
  z-index: 2;
  width: min(100%, 1280px);
  max-width: none;
  margin: 0 auto;
  padding: 100px 40px;
  text-align: left;
}

.recruit-hero .hero__title {
  max-width: 680px;
  margin: 24px 0 18px;
  font-size: 66px;
  line-height: 1.36;
  letter-spacing: .08em;
}

.recruit-hero .v-stroke {
  margin-right: 0;
  margin-left: 0;
}

.recruit-hero .hero__lead {
  max-width: 470px;
  margin: 24px 0 38px;
}

.recruit-hero .hero__ctas {
  justify-content: flex-start;
}

.cards-3 {
  gap: 14px;
}

.cards-3 .card {
  min-height: 300px;
  padding: 30px;
  border-radius: 8px;
}

.recruit-message {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.message-visual--compact {
  height: 420px;
}

.section-note {
  margin-top: 16px;
  color: #69696f;
  font-size: 13px;
  line-height: 1.9;
}

.section-note--center {
  margin-top: 26px;
  text-align: center;
}

body:not(.page-home) #positions .position-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body:not(.page-home) #positions .position {
  min-height: 230px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid #dfdfe2 !important;
  border-top: 4px solid #f41624 !important;
  border-radius: 8px;
}

body:not(.page-home) #positions .position__link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #dedee2;
}

.benefits {
  gap: 12px;
}

.benefit {
  min-height: 190px;
  padding: 26px 20px;
  border-radius: 8px;
}

.benefit__icon {
  color: #f41624;
  font-family: "Outfit", sans-serif;
  font-size: 36px;
  font-weight: 700;
  filter: none;
}

.selection-flow {
  gap: 10px;
}

.selection-step {
  min-height: 190px;
  border-radius: 8px;
}

/* Forms */
.form-card {
  max-width: 860px;
  padding: 48px;
  border: 1px solid #dedee2;
  border-radius: 8px;
  background: #fff;
}

.form-input,
.form-textarea,
.form-select {
  border-radius: 4px;
  background: #fafafa;
}

.form-submit {
  min-height: 60px;
  border-radius: 4px;
}

.form-submit:disabled {
  cursor: wait;
  opacity: .58;
  transform: none;
  box-shadow: none;
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.form-status {
  max-width: 860px;
  margin: 18px auto 0;
  color: #74747a;
  font-size: 12px;
  text-align: center;
}

.form-status.is-visible {
  color: #f41624;
  font-weight: 700;
}

.form-status.is-sending {
  color: #74747a;
}

.form-status.is-success {
  color: #17824b;
}

.form-status.is-error {
  color: #c91f2c;
}

/* Instagram feed */
.instagram-section .section-head {
  margin-bottom: 42px;
}

.instagram-section__head {
  padding-bottom: 28px;
  border-bottom: 1px solid #d8d8dc;
}

.instagram-section__handle {
  white-space: nowrap;
  font-size: clamp(24px, 5vw, 42px);
}

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

.instagram-article {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dedee2;
  border-radius: 8px;
  background: #fff;
}

.has-instagram-motion .instagram-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .52s cubic-bezier(.22, 1, .36, 1),
    transform .52s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--instagram-delay, 0ms);
}

.has-instagram-motion .instagram-reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.instagram-article__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #111;
}

.instagram-article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.has-instagram-motion .instagram-article.instagram-reveal .instagram-article__media {
  clip-path: inset(0 100% 0 0);
  transition: clip-path .72s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--instagram-delay, 0ms) + 70ms);
}

.has-instagram-motion .instagram-article.instagram-reveal .instagram-article__media img {
  transform: scale(1.04);
  transition: transform .9s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--instagram-delay, 0ms) + 70ms);
}

.has-instagram-motion .instagram-article.instagram-reveal.is-inview .instagram-article__media {
  clip-path: inset(0);
}

.has-instagram-motion .instagram-article.instagram-reveal.is-inview .instagram-article__media img {
  transform: scale(1);
}

.instagram-article__type {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font: 700 10px/1 "Outfit", sans-serif;
}

.instagram-article__body {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 188px;
  gap: 13px;
  padding: 22px;
}

.instagram-article__date {
  color: #77777f;
  font: 500 12px/1.4 "Outfit", sans-serif;
}

.instagram-article__caption {
  margin: 0;
  overflow: hidden;
  color: #111;
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-line;
}

.instagram-article--card .instagram-article__caption {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.instagram-article--card.is-expanded .instagram-article__caption {
  display: block;
  overflow: visible;
}

.instagram-article__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #f41624;
  font: 700 12px/1.5 "Noto Sans JP", sans-serif;
  cursor: pointer;
}

.instagram-article__toggle::after {
  content: "+";
  font: 700 15px/1 "Outfit", sans-serif;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

.instagram-article.is-expanded .instagram-article__toggle::after {
  transform: rotate(45deg);
}

.instagram-grid--articles {
  grid-template-columns: 1fr;
  gap: 0;
}

.instagram-article--full {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 88px);
  padding: 48px 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid #d8d8dc;
  border-radius: 0;
  background: transparent;
}

.instagram-article--full:last-child {
  border-bottom: 1px solid #d8d8dc;
}

.instagram-article--full .instagram-article__media {
  border-radius: 8px;
}

.instagram-article--full .instagram-article__body {
  min-height: 0;
  padding: 14px 0 24px;
  gap: 24px;
}

.instagram-article--full .instagram-article__date {
  color: #f41624;
  font-size: 13px;
  font-weight: 700;
}

.instagram-article--full .instagram-article__caption {
  overflow: visible;
  font-size: 16px;
  line-height: 2;
}

.instagram-empty {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  min-height: 230px;
  align-content: center;
  gap: 12px;
  overflow: hidden;
  padding: 42px clamp(26px, 6vw, 78px);
  border-radius: 8px;
  background: #0b0b0d;
  color: #fff;
}

.instagram-empty::after {
  content: "VIVA";
  position: absolute;
  right: clamp(-14px, 2vw, 34px);
  bottom: -32px;
  color: rgba(244,22,36,.56);
  font: 900 clamp(92px, 15vw, 190px)/.8 "Outfit", sans-serif;
  pointer-events: none;
}

.instagram-empty__label {
  color: #ff9f1c;
  font: 700 12px/1.4 "Outfit", sans-serif;
}

.instagram-empty strong {
  position: relative;
  z-index: 1;
  overflow-wrap: anywhere;
  font: 700 clamp(24px, 4vw, 42px)/1.25 "Outfit", "Noto Sans JP", sans-serif;
}

.instagram-empty > span:last-child {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instagram-grid--articles {
    grid-template-columns: 1fr;
  }

  .instagram-article--full {
    grid-template-columns: minmax(220px, 40%) minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 560px) {
  .instagram-section .section-head {
    margin-bottom: 28px;
  }

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

  .instagram-article__body {
    min-height: 168px;
  }

  .instagram-article--full {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 36px 0 42px;
  }

  .instagram-article--full .instagram-article__body {
    padding: 22px 0 0;
    gap: 16px;
  }

  .instagram-article--full .instagram-article__caption {
    font-size: 14px;
    line-height: 1.9;
  }

  .instagram-empty {
    min-height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-instagram-motion .instagram-reveal,
  .has-instagram-motion .instagram-reveal.is-inview {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .has-instagram-motion .instagram-article.instagram-reveal .instagram-article__media,
  .has-instagram-motion .instagram-article.instagram-reveal.is-inview .instagram-article__media {
    clip-path: inset(0);
    transition: none;
  }

  .has-instagram-motion .instagram-article.instagram-reveal .instagram-article__media img,
  .has-instagram-motion .instagram-article.instagram-reveal.is-inview .instagram-article__media img {
    transform: none;
    transition: none;
  }

  .instagram-article__toggle::after {
    transition: none;
  }
}

/* News and contact */
.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.news-card {
  overflow: hidden;
  border: 1px solid #dedee2;
  border-radius: 8px;
  background: #fff;
}

.news-card__thumb,
.news-card__thumb[style] {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #111 !important;
}

.news-card__thumb::after { display: none; }

.news-card__thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform .35s ease;
}

.news-card:hover .news-card__thumb img {
  transform: scale(1.035);
}

.news-card__body {
  min-height: 160px;
  padding: 24px;
}

.news-card__title {
  font-size: 18px;
  line-height: 1.7;
}

/* Footer and legal */
.site-footer__cols {
  grid-template-columns: 1.5fr 1fr 1fr;
}

.site-footer__bottom a:hover {
  color: #fff;
}

.page-header--legal {
  padding: 112px 40px 76px !important;
  background: #050505 !important;
  text-align: left;
}

.page-header--legal .page-header__title {
  font-size: 52px !important;
  letter-spacing: .06em;
}

.legal-page {
  padding: 96px 40px 120px;
  background: #fff;
}

.legal-page__inner {
  max-width: 840px;
  margin: 0 auto;
  color: #414147;
  font-size: 15px;
  line-height: 2;
}

.legal-page__inner > section {
  padding-top: 34px;
  margin-top: 34px;
  border-top: 1px solid #dedee2;
}

.legal-page h2 {
  margin-bottom: 12px;
  color: #111;
  font-size: 20px;
}

.legal-page__date {
  margin-top: 52px;
  text-align: right;
}

@media (max-width: 1024px) {
  body:not(.page-home) .section { padding: 88px 28px; }

  .page-header--visual {
    min-height: 540px;
    padding-right: 28px !important;
    padding-left: 28px !important;
  }

  .page-header--visual .page-header__title { font-size: 52px !important; }
  .page-header--visual .page-header__sun { left: 28px; }

  .mission-row,
  .message-row,
  .business-block {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .business-block__visual { height: auto; }
}

@media (max-width: 768px) {
  body:not(.page-home) .section { padding: 76px 20px; }
  body:not(.page-home) .section__title { font-size: 34px; }

  .page-header--visual {
    min-height: 560px;
    align-items: end;
    padding: 100px 20px 62px !important;
  }

  .page-header__media {
    inset: 0;
    width: 100%;
    border-radius: 0 0 0 180px;
  }

  .page-header__veil {
    background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.38) 42%, rgba(0,0,0,.94) 100%);
  }

  .page-header--visual .page-header__title {
    max-width: 100%;
    font-size: 38px !important;
    line-height: 1.42;
  }

  .page-header--visual .page-header__lead {
    font-size: 13px;
    white-space: normal;
  }

  .page-header--visual .page-header__sun {
    right: 20px;
    bottom: 28px;
    left: auto;
  }

  .mission-row,
  .message-row,
  .business-block,
  .recruit-message {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mission-visual,
  .message-visual {
    height: auto;
    aspect-ratio: 1;
  }

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

  .business-block--reverse { direction: ltr; }
  .business-block__visual,
  .business-block--orange .business-block__visual,
  .business-block--yellow .business-block__visual {
    height: auto;
    aspect-ratio: 1;
  }

  .business-block__title { font-size: 32px; }

  .recruit-hero {
    min-height: 680px;
    align-items: end;
  }

  .recruit-hero__visual {
    inset: 0;
    width: 100%;
    border-radius: 0 0 0 190px;
  }

  .recruit-hero__veil {
    background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.24) 40%, rgba(0,0,0,.94) 100%);
  }

  .recruit-hero .hero__content {
    padding: 110px 20px 66px;
  }

  .recruit-hero .hero__title {
    font-size: 42px;
    line-height: 1.42;
  }

  .recruit-hero .hero__lead { font-size: 13px; }
  .recruit-hero .hero__ctas { width: 100%; padding: 0; }

  .cards-3,
  body:not(.page-home) #positions .position-list,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selection-flow { grid-template-columns: 1fr; }

  .form-card { padding: 30px 20px; }

  .site-footer__cols { grid-template-columns: 1fr; }

  .page-header--legal { padding: 92px 20px 62px !important; }
  .page-header--legal .page-header__title { font-size: 34px !important; }
  .legal-page { padding: 72px 20px 92px; }
}
