:root {
  --base-color: #000;
  --bishop-color: #de1786;
  --bishop-color-filter: invert(17%) sepia(72%) saturate(7029%) hue-rotate(317deg) brightness(93%) contrast(87%);
  --base-font: Roboto, "Noto Sans JP", sans-serif;
  /* --base-font: "din-1451-lt-pro", Robot, "Noto Sans JP", sans-serif; */
  /* --base-font: "din-2014", Robot, sans-serif; */
  --name-font: serif;
  --play-button: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNSIgaGVpZ2h0PSIyNSIgdmlld0JveD0iMCAwIDI0IDI0IiBjbGFzcz0iSmxUQWE2IHNjUFUyWiI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBzdHJva2U9IiNGRkYiIGQ9Ik0xMiAyMy41YzYuMzUxIDAgMTEuNS01LjE0OSAxMS41LTExLjVTMTguMzUxLjUgMTIgLjVjLTEuMjE2IDAtMi40MDYuMTg5LTMuNTM5LjU1NUExMS41MDQgMTEuNTA0IDAgMCAwIC41IDEyYzAgNi4zNTEgNS4xNDkgMTEuNSAxMS41IDExLjV6Ij48L3BhdGg+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTE1Ljk1NyAxMS44MDUgOS4wOCAxNS44MjdWNy43ODR6Ij48L3BhdGg+PC9nPjwvc3ZnPg==");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

button {
  all: unset;
  display: inline-block;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

iframe {
  display: block;
}

html {
  height: 100%;
  font-size: 62.5%;
}

@media (max-width: 1140px) {
  html {
    font-size: calc(100vw * (10 / 1140));
  }
}

body {
  min-height: 100%;
  min-height: 100dvh;
  font-size: 1.2rem;
  font-family: var(--base-font);
  font-weight: 400;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  overflow-y: scroll;
  transition: opacity 1s;
}

.hidden {
  opacity: 0;
}

a {
  color: #000;
}

ul {
  list-style: none;
}
.auto-phrase-text {
  word-break: auto-phrase;
}

.underline {
  text-decoration: underline;
}

.cl-bishop {
  color: var(--bishop-color);
}

.text p {
  margin-bottom: 1lh;
}

/* header */

.header {
  width: 100%;
  padding: 1rem 3rem;
  position: sticky;
  top: 0;
  left: 0;
  background: #fff;
  z-index: 2;
}

.header .container {
  /* max-width: 800px; */
  height: 5rem;
  display: flex;
  /* flex-wrap: wrap; */
  justify-content: flex-end;
  align-items: center;
  position: relative;
  /* background: pink; */
}

.site-logo {
  line-height: 1;
  flex-shrink: 0;
}

.site-logo-icon {
  width: 3.9rem;
  height: 4rem;
}

/* .header-nav {
  max-width: 80%;
  overflow: auto hidden;
} */

.header-nav-main {
  display: flex;
  font-size: 1.6rem;
  font-weight: 500;
}

.header-nav li {
  position: relative;
  /* background: pink; */
}

[data-lang="en"] .header-nav-main>li:nth-child(6) {
  display: none;
}

.header-nav a {
  display: block;
  color: #000;
  text-decoration: none;
  padding: 1rem 1.5rem;
  transition: color .3s;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--bishop-color);
}

.header-nav a:not([href]) {
  cursor: default;
}

.header-nav .is-open>a,
.header-nav .is-current {
  color: var(--bishop-color);
}

.header-nav img {
  height: 1.2rem;
}
.header-nav .is-open>a>img,
.header-nav .is-current>img,
.header-nav a:hover img {
  filter: invert(17%) sepia(72%) saturate(7029%) hue-rotate(317deg) brightness(93%) contrast(87%);
}

.header-nav-sub {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  right: 0;
  background: #fff;
  text-align: right;
  padding-block: .5rem;
  transition: .3s;
  font-size: .9em;
}

.header-nav-sub img {
  height: 1.4rem;
  max-width: none;
}

.header-nav-main>li:first-child .header-nav-sub {
  text-align: left;
  right: auto;
  left: 0;
}

.header-nav-main>li:hover .header-nav-sub {
  opacity: 1;
  visibility: visible;
}

.header-nav-sub a {
  padding-block: .5rem;
}

.header-sns {
  margin-left: 1.5rem;
  flex-shrink: 0;
}

.facebook-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.lang-switch ul {
  display: flex;
  /* gap: 0 .2rem;
  background: var(--bishop-color); */
}
.lang-switch li {
  border: .1rem solid transparent;
}
.lang-switch .lang-ja {
  border-right-color: var(--bishop-color);
}
.lang-switch .lang-en {
  border-left-color: var(--bishop-color);
}
.lang-switch .lang-en img {
  height: 1.5rem;
}
.lang-switch .active {
  color: var(--bishop-color);
}
.lang-switch .active img {
  filter: var(--bishop-color-filter);
}
.lang-switch a {
  display: block;
  background: #fff;
  border: none;
  padding: .5rem 3rem;
  font-size: 1.5rem;
  color: inherit;
  white-space: nowrap;
  text-decoration: none;
}
.lang-switch a.active {
  cursor: default;
  pointer-events: none;
}
.lang-switch a:not(.active):hover {
  background: rgba(222, 23, 134, .3);
  color: #fff;
}
.lang-switch :not(.active) a {
  cursor: pointer;
}
[data-page="recruit"] .lang-switch li+li a {
  opacity: .2;
  pointer-events: none;
  cursor: default;
}

.main {
  padding: 2rem 0;
}

.main-visual {
  --main-movies-gap: 20rem;
  position: relative;
}

.company-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  padding: 2rem 0;
}


.main-movies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--main-movies-gap) 0;
}

.main-movies>li {
  width: 25%;
  background: #000;
  position: relative;
}
.main-movies a {
  display: block;
  position: relative;
}
.main-movies a img {
  transition: opacity .3s;
}
.main-movies a:hover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--play-button) no-repeat center center;
  background-size: 4rem 4rem;
  color: #fff;
  z-index: 1;
}
.main-movies a:hover img {
  opacity: .6;
}

.home-sns {
  display: none;
}

.section {
  max-width: 1040px;
  margin: 0 auto 5rem;
  padding-inline: 20px;
}

.section a {
  color: var(--bishop-color);
}

.section-inner {
  padding-inline: 9rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 500;
  color: var(--bishop-color);
  margin: 0 0 2rem 5rem;
}
.section-title img {
  height: 2.3rem;
  filter: var(--bishop-color-filter);
}

/* TEAM */
.team-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 10rem;

  transform-origin: top left;
  transform: scale(0.8);
  will-change: transform;
}

.team-item:nth-of-type(even) {
  transform-origin: top right;
  flex-direction: row-reverse;
}

.team-item:nth-of-type(even) .team-name {
  text-align: right;
}

.team-photo {
  width: 28%;
  flex-shrink: 0;
}

.team-photo img {
  aspect-ratio: 640/880;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--bishop-color);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.team-name span {
  display: block;
  color: #000;
  font-family: var(--name-font);
  font-size: 2.5rem;
  font-weight: normal;
}

.company ul {
  list-style: disc;
  padding-left: 2em;
}

/* RECRUIT */
[class*="-list"] dt {
  color: var(--bishop-color);
  font-weight: 700;
}

[class*="-list"] dd {
  margin-bottom: 1lh;
}

/* CONTACT */
.contact .section-inner {
  padding-right: 2rem;
}

.contact-item {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
  justify-content: space-between;
  align-items: flex-end;
}

.contact-map {
  flex: 1;
}
.contact-map iframe {
  width: 100%;
  height: 28rem;
}

.contact a {
  color: #000;
}

footer {
  margin-top: auto;
}
.copyright {
  background: linear-gradient(135deg, var(--bishop-color) 57%, #fff 100%);
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  line-height: 3;
}

/* ABOUT */
.about p:last-child {
  margin-top: 2lh;
}

/* RECENT */
.project-group {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.project-item {
  width: 49%;
}

.inview {
  opacity: 0;
  transform: translateY(100px);
}
.inview.is-inview {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s, transform 1s;
}

.project-youtube iframe {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

.project-audio {
  height: 4rem;
  padding-right: 1rem;
}

.project-text {
  padding-inline: 1rem;
}

/* EVENTS */
.events-item {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.events-image {
  width: 49%;
  aspect-ratio: 16 / 9;
  border: 1px solid #000;
}

.events-image>* {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.events-item+.events-item {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed #ccc;
}

.events .project-item:not(:first-child) {
  border-top: 1px dashed rgba(0,0,0,.35);
  padding-top: 2rem;
}
.events .project-youtube {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 50%;
}

.events .project-text {
  margin-top: 1rem;
}
.events .project-link {
  margin-top: 1lh;
}

/* RELEASES */
.releases-item {
  display: flex;
  gap: 2rem;
}

.releases-image {
  width: 30%;
}

.releases-title {
  font-size: 2rem;
  font-weight: normal;
}

.releases-detail ul {
  list-style: disc;
  padding-left: 2em;
}

.releases-item+.releases-item {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: .1rem dashed #ccc;
}

/* Video Popup */
.mfp-bg {
  opacity: .9;
}

#popup-template button {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
}

#popup-video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
}

#popup-title {
  font-size: 2.4rem;
}

#popup-image {
  width: 100%;
  cursor: pointer;
}

#popup-duration {
  font-size: 1.2rem;
  opacity: .6;
  margin-block: 2rem;
}

#popup-producer {
  font-size: 1.6rem;
}

#popup-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 2rem;
  width: 2rem;
  height: 2rem;
}
.popup-container {
  /* display: flex; */
  /* flex-wrap: wrap; */
  max-width: min(1000px, 90%);
  padding-inline: 3rem;
  margin-inline: auto;
}
.popup-left {
  flex: 1 1 60%;
  padding: 1.5rem;
}
.popup-left .audio-player {
  height: auto;
  /* background: #fff; */
  border-radius: 0;
  padding-right: 1.4rem;
  margin-top: -4rem;
}
.popup-left .audio-player .time {
  opacity: 1;
  text-shadow: 1px 1px 3px #fff;
}

.popup-right {
  flex: 1 1 40%;
  color: #fff;
  padding: 1.5rem;
}
.popup-nav {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.popup-nav button {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 3.2rem;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}
#popup-prev {
  left: 0;
  scale: -1 1;
}
#popup-next {
  right: 0;
}

.popup-nav button:hover {
  color: var(--bishop-color);
}
@media (max-width: 768px) {
  .popup-container {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  html {
    font-size: calc(100vw * (10 / 400));
  }

  body {
    font-size: 1.5rem;
  }

  .header {
    padding-inline: 1rem;
  }

  .header .container {
    justify-content: space-between;
  }

  .site-logo {
    width: 7rem;
    text-align: center;
    z-index: 2;
  }

  .header-nav {
    /* display: none; */
    visibility: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    padding-top: 70px;
    z-index: 1;
    top: 0;
  }

  .header-nav a {
    padding-block: 1.5rem;
  }
  .header-nav-sub a {
    padding-block: .5rem;
  }
  .header-nav-main {
    font-size: 2rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-100px);
  }
  .header-nav-main img {
    height: 1.5rem;
  }
  .is-nav-open .header-nav {
    visibility: visible;
    background: #fff;
  }
  .is-nav-open .header-nav-main {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: .5s;
  }
  .is-nav-close .header-nav-main {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-100px);
    transition: .5s;
  }
  .header-nav a:not([href])::after {
    content: "＋";
    margin-left: .5rem;
    position: absolute;
    top: 50%;
    translate: 0 -50%;
  }
  .header-nav li:not(.is-open)>a:not([href]) {
    color: #000
  }
  .header-nav li.is-open>a:not([href])::after {
    content: "－";
  }
  .header-nav .is-current:hover {
    color: #fff;
  }
  .header-nav-main {
    display: block;
    text-align: center;
    height: 100%;
    overflow: auto;
    padding-bottom: 100px;
  }
  .header-nav-main>li:first-child .header-nav-sub {
    text-align: center;
  }
  .header-nav-sub {
    display: none;
    opacity: 1;
    visibility: visible;
    position: static;
    text-align: center;
    transition: none;
  }
  .is-nav-open .is-open .header-nav-sub {
    display: block;
  }
  .header-nav a {
    transition: none;
    position: relative;
  }
  .header-nav a[href]:hover,
  .header-nav .is-current {
    background: var(--bishop-color);
    color: #fff;
  }
  .header-nav a[href]:hover img,
  .header-nav .is-current img {
    filter: invert(100%);
  }

  .header-sns {
    display: none;
  }
  .lang-switch {
    flex-grow: 1;
    text-align: center;
  }
  .lang-switch li {
    width: 50%;
  }
  .lang-switch a {
    padding-inline: 0;
  }

  .nav-button {
    appearance: none;
    border: none;
    width: 7rem;
    height: 5rem;
    background: none;
    position: relative;
    /* right: -20px; */
    cursor: pointer;
    z-index: 2;
  }

  .nav-button span {
    width: 3rem;
    height: 2px;
    background: #000;
    position: absolute;
    left: 2rem;
    transition: .3s;
  }
  .nav-button span:nth-child(1) {
    top: 1.2rem;
  }
  .nav-button span:nth-child(2) {
    top: 2.4rem;
  }
  .nav-button span:nth-child(3) {
    top: 3.6rem;
  }
  .is-nav-open .nav-button span:nth-child(1) {
    transform: rotate(-45deg);
    top: 2.4rem;
  }
  .is-nav-open .nav-button span:nth-child(2) {
    opacity: 0;
  }
  .is-nav-open .nav-button span:nth-child(3) {
    transform: rotate(45deg);
    top: 2.4rem;
  }

  .company-logo {
    position: static;
    translate: none;
    padding: 2rem 3rem;
    margin-bottom: 3rem;
  }
  .main-movies {
    display: block;
    position: relative;
    z-index: 0;
  }
  .main-movies>li {
    background: #000;
    width: 100%;
    padding-block: 2.5rem;
    position: relative;
  }
  .main-movies>li:has(video),
  .main-movies>li:has(audio) {
    padding-block: 5rem 0;
  }
  .main-movies>li::after {
    content: "";
    inset: 0;
    z-index: 2;
    position: absolute;
    cursor: pointer;
  }

  .main-movies>li:hover::before {
    display: none;
  }

  .main-movies>li+li {
    border-top: .3rem solid #fff;
  }
  .main-movies>li video {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;
  }
  .main-movies>li .video-close {
    appearance: none;
    border: none;
    background: none;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    z-index: 4;
    color: #fff;
    font-size: 2rem;
    filter: drop-shadow(0 0 6px #000);
  }

  .main-movies a {
    display: block;
    position: relative;
  }
  .main-movies img {
    opacity: .5;
  }

  .main-movies a::before,
  .main-movies a::after {
    position: absolute;
    color: #fff;
  }

  .main-movies a::before {
    content: attr(data-title);
    width: calc(100% - 6rem);
    text-align: center;
    left: 0;
    top: 20%;
    font-size: 2.5rem;
    padding-inline: 3rem;
    text-decoration: underline;
    z-index: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .main-movies a::after {
    content: "動画を再生";
    left: 50%;
    transform: translateX(-50%);
    bottom: 2rem;
    z-index: 1;
    font-size: 2rem;
    padding-block: 1rem;
    background: var(--play-button) no-repeat left center;
    background-size: 4rem 4rem;
    padding-left: 5rem;
  }
  .main-movies a[data-media$=".mp3"]::after {
    content: "音声を再生";
  }

  [data-lang="en"] .main-movies a::after {
    content: "Play Video";
  }

  [data-lang="en"] .main-movies a[data-media$=".mp3"]::after {
    content: "Play Audio";
  }

  .main-movies .audio-player {
    margin-top: -10%;
    position: relative;
    padding-right: 1.4rem;
  }

  .main-movies .audio-player .time {
    opacity: 1;
    text-shadow: 1px 1px 3px #fff;
  }

  .main-movies li:has(.audio-player) a::before,
  .main-movies li:has(.audio-player) a::after {
    content: none !important;
  }
  .main-movies li:has(.audio-player)::after {
    pointer-events: none;
  }

  .main-movies li:has(.audio-player) img {
    opacity: 1;
  }

  .home-sns {
    display: block;
    padding: 1rem 2rem 0;
  }

  .section .section-inner {
    padding-inline: 0;
  }

  .section-title {
    text-align: center;
    margin-left: 0;
  }

  .section [class*="-item"] {
    flex-direction: column;
  }
  .section [class*="-item"]>*,
  .project-item {
    width: 100%;
  }

  .section .team-photo {
    width: 60%;
    margin: 0 auto 1rem;
  }

  .team-item:nth-of-type(even) .team-name {
    text-align: left;
  }

  .contact-map iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }

}