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

html {
  scroll-behavior: smooth;
}

body {
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  background: #0e0e0e;
}

li {
  list-style: none;
}

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

.container {
  max-width: 1152px;
  width: 100%;
  margin: auto;
}

/* ------------loading----------*/
.loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background: white;
}

.loading p {
  color: #f9af3c;
  padding: 24px 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.loader {
  width: 30px;
  height: 30px;
  position: relative;
  border: 4px solid #f9af3c;
  animation: loader 2s infinite ease;
}

.loader-inner {
  display: inline-block;
  width: 100%;
  vertical-align: top;
  background: #f9af3c;
  animation: loader-inner 2s infinite ease-in;
}

@keyframes loader {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(180deg);
  }

  50% {
    transform: rotate(180deg);
  }

  75% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes loader-inner {
  0% {
    height: 0%;
  }

  25% {
    height: 0%;
  }

  50% {
    height: 100%;
  }

  75% {
    height: 100%;
  }

  100% {
    height: 0%;
  }
}

.main-content {
  display: none;
}

/* ---------menu--------- */

header {
  display: none;
}

.nav {
  width: 100%;
  height: 60px;
  position: fixed;
  top: 0;
  z-index: 800;
  background: #0e0e0e;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-inner {
  width: 100%;
  right: 24px;
  display: flex;
  align-items: center;
  margin: auto;
}

.logo-img {
  width: 48px;
}

.nav ul {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 80px;
}

.page-link {
  text-transform: capitalize;
  transition: 0.3s ease;
}

/* ---------------main--------------- */

section {
  padding-top: 120px;
}

h2 {
  font-weight: 500;
}

.title-box {
  text-align: right;
  display: inline-block;
}

.en-title {
  font-size: 120px;
  text-transform: capitalize;
}

.page-subtitle {
  display: inline-block;
  font-size: 48px;
  position: relative;
  padding-left: 56px;
}

.page-subtitle::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 50%;
  width: 48px;
  height: 2px;
  background: #fff;
  transform: translateY(-50%);
}

.titles {
  font-size: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
}

.titles::before,
.titles::after {
  content: "";
  width: 48px;
  height: 2px;
  background: #fff;
}

#movies {
  padding-top: 0;
}

#movies .container {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  padding-top: 80px;
}

.video-container {
  width: calc((100% - 80px) / 2);
}

.company-name {
  font-size: 20px;
  font-weight: 300;
  padding-bottom: 16px;
}

.youtube {
  aspect-ratio: 16/9;
}

.youtube iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
  backface-visibility: hidden;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.photo1 {
  object-position: 50% 38%;
}

.photo2 {
  object-position: 50% 48%;
}

.photo4,
.photo5 {
  object-position: 50% 90%;
}

.slide {
  display: block;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* 矢印 */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* ドット */
.dots {
  text-align: center;
  margin-top: 10px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #4c5765;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* 拡大画像 */
.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 28px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
}

.close:hover {
  opacity: 1;
}

#contact {
  padding-bottom: 80px;
}

#contact .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 80px;
}

.contact-contents {
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-size: 48px;
}

.contact-details {
  padding-top: 32px;
  line-height: 1.5em;
}

.contact-list {
  padding-top: 48px;
  line-height: 1.5em;
}

.contact-row {
  display: flex;
  align-items: center;
  padding-top: 8px;
}

dt {
  width: 60px;
  font-weight: 600;
  padding: 0 80px 0 8px;
}

dd {
  width: 180px;
}

.note,
.contact-sub {
  color: #777;
}

.contact-sub {
  padding-top: 8px;
}

.mail-icon {
  width: 280px;
  height: auto;
}

.contact-svg {
  width: 180px;
}

.contact-text {
  width: 100%;
  height: auto;
  display: block;
}

.contact-text text {
  font-size: 20px;
  fill: #fff;
  letter-spacing: 0.05em;
}

/* ---------------footer------------ */
footer {
  border-top: 0.5px solid #4c5765;
  font-size: 16px;
  color: #4c5765;
  padding: 36px 0;
}

footer .container {
  position: relative;
}

.copyright,
.sns-icons {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.copyright {
  left: 50%;
  transform: translate(-50%, -50%);
}

/* sns */
.sns-icons {
  font-size: 24px;
  right: 0;
}

.sns-icons ul {
  display: flex;
}

.sns-icons li {
  padding-left: 24px;
}

@keyframes rotation {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* ===============hover(for mouse)=============== */
@media (hover: hover) and (pointer: fine) {
  .page-link:hover {
    opacity: 0.6;
  }

  .sns-link:hover {
    animation: 0.3s linear rotation;
  }
}

@media (hover: none) {
  .page-link:active {
    opacity: 0.6;
  }

  .sns-link:active {
    animation: 0.3s linear rotation;
  }
}
