@import url("news.css");

.fv {
  padding: 0;
  width: 100%;
  max-width: none;
}

.fv video {
  width: 100%;
  /* height: calc(100vh - 80px); */
  object-fit: cover;
  object-position: center top;
}

.fv iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

main {
  /* margin-top: 0; */
  margin-top: -5%;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  /* 16:9 aspect ratio */
  overflow: hidden;
  z-index: 0;
}

.video-wrapper iframe {
  aspect-ratio: 9/16;
  pointer-events: none;
}

/* モバイルなどで一瞬出るUIを覆い隠す場合（必要に応じて） */
.video-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: transparent;
}

.fv__menu {
  margin: 20px 0 0 auto;
  padding-left: 20px;
  width: 100%;
  max-width: 355px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fv__menu-item {
  position: relative;
  display: block;
  border-radius: 8px 0 0 8px;
  height: 60px;
  line-height: 60px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding-left: 30px;
  opacity: 0.8;
}

.fv__menu-item::after {
  content: "";
  height: 11px;
  width: 6px;
  background-image: url(/wp-content/themes/okinawa-jtb/images/common/icon-arrow-forward.svg);
  filter: brightness(100);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
}

.fv__menu-item--corporate {
  background-color: #001c7b;
}

.fv__menu-item--government {
  background-color: #003aa2;
}

.fv__menu-item--education {
  background-color: #005acb;
}

.fv__menu-item--business {
  background-color: #0086d8;
}

.fv__menu-item--individual {
  background-color: #00a7e1;
}

.news {
  margin-top: 50px;
  border-radius: 64px 0 0 64px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.16);
  padding: 50px 30px;
  position: relative;
  background-color: var(--white);
  z-index: 2;
  margin-left: var(--mobile-padding);
}

.news-wrapper {
  width: 100%;
}

.section-decor::after {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  background-image: url(/wp-content/themes/okinawa-jtb/images/common/section-pattern-sp.png);
  position: absolute;
  bottom: -64px;
  right: 0;
  z-index: 2;
}

.about {
  margin-top: 87px;
  z-index: 1;
  padding-bottom: 50px;
}

.inset-decorated::after {
  display: none;
}

.inset-decorated::before {
  width: 80px;
  top: -76px;
}

.about-wrapper {
  display: grid;
  justify-content: center;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 316px));
}

.about__item {
  display: block;
  width: auto;
  max-width: 316px;
  padding: 0 0 80px 16px;
  position: relative;
  width: 100%;
}

.about__item-image {
  display: block;
  margin-left: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 30px;
}

.about__item-bg {
  position: relative;
  width: calc(100% - 16px);
  max-width: 300px;
  aspect-ratio: 1;
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 30px;
  background: var(--gradient-dynamic-red);
  z-index: -1;
  transition: all 0.3s ease;
}

.about__item .about__item-bg::after {
  transition: right 0.3s;
}

.about__item:hover .about__item-bg::after {
  right: 10px;
}

.about__item-bg h3 {
  position: absolute;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--white);
  left: 16px;
  bottom: 26px;
}

.about__item-bg::after {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  background-image: url(/wp-content/themes/okinawa-jtb/images/common/icon-button-arrow.svg);
  background-size: 16px 9px;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  right: 16px;
  bottom: 20px;
}

.sustainability {
  position: relative;
  padding: 0;

  margin-top: 50px;
}

.sustainability-wrapper {
  padding: 50px 20px;
  position: relative;
  background: var(--gradient-leaf-green);
  filter: drop-shadow(0px 0px 12px rgba(0, 0, 0, 0.16));
  overflow: hidden;
  border-top-left-radius: 100% 100px;
  border-top-right-radius: 100% 100px;
  border-bottom-left-radius: 100% 100px;
  border-bottom-right-radius: 100% 100px;
}

.sustainability-wrapper * {
  position: relative;
  z-index: 1;
}

.sustainability-wrapper::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url(/wp-content/themes/okinawa-jtb/images/common/triangle-pattern.png);
  background-position: center;
  z-index: 0;
  mix-blend-mode: multiply;
}

.sustainability__text {
  color: var(--white);
}

@media (max-width: 350px) {
  .sustainability__text br:first-of-type {
    display: none;
  }
}

@media (min-width: 385px) {
  .sustainability__text br:first-of-type {
    display: none;
  }
}

.sustainability-gallery {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 35px auto 0;
  max-width: 450px;
}

.sustainability-gallery__image {
  border-radius: 40px;
}

.sustainability-gallery__item {
  position: relative;
  display: block;
}

.sustainability-gallery__title {
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--white);
  position: absolute;
  left: 50%;
  top: calc(50% + 8px);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
}

.sustainability-gallery__title::after {
  content: "";
  display: block;
  background-size: 100% auto;
  background-image: url(/wp-content/themes/okinawa-jtb/images/common/icon-circled-arrow-2.svg);
  width: 64px;
  height: 64px;
}

.sustainability-gallery__image {
  object-fit: cover;
  aspect-ratio: 1;
  object-position: 55% center;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.16);
  image-rendering: pixelated;
}

.sustainability-gallery__item:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 21px;
  row-gap: 25px;
}

.sustainability-gallery__subitem {
  position: relative;
  display: block;
}

.sustainability-gallery__subitem img {
  border-radius: 20px;
}

.sustainability-gallery__subitem h4 {
  font-size: 1rem;
  white-space: nowrap;
  top: calc(50% + 6px);
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
}

.sustainability-gallery__subitem h4::after {
  width: 55px;
  height: 55px;
  background-image: url(/wp-content/themes/okinawa-jtb/images/common/icon-circled-arrow.svg);
  margin-top: -8px;
}

.sustainability-gallery__subitem:nth-child(3) h4 {
  /* color: var(--black); */
}

.sustainability-gallery__subitem:nth-child(3) h4::after {
  /* filter: brightness(0.17); */
}

.business {
  overflow: hidden;
  background-color: var(--light-grey);
  padding-top: 50px;
  padding-bottom: 60px;
}

.business-swiper {
  position: relative;
  width: 100vw;
  margin-top: 35px;
}

.business__text {
  width: fit-content;
  margin: 0 auto;
}

.swiper-slide {
  position: relative;
  width: 58.67vw !important;
  max-width: 220px;
  aspect-ratio: 220 / 391;
  filter: brightness(0.96) contrast(1.05);
}

.swiper-slide::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  background: var(--gradient-blue);
  z-index: -1;
}

.swiper-slide__image {
  position: relative;
  width: 100%;
  aspect-ratio: 220 / 391;
}

.swiper-slide__image::before {
  content: "";
  position: absolute;
  display: block;
  width: 64px;
  height: 64px;
  background-image: url(/wp-content/themes/okinawa-jtb/images/common/icon-circled-arrow-2.svg);
  right: 0px;
  bottom: 0px;
}

.swiper-slide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  border-radius: 40px;
}

.swiper-slide__title {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--font-en);
  font-size: 2.5rem;
  line-height: 1.35;
  color: var(--white);
  text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.swiper-slide__title__text--small {
  font-size: 25px;
  text-align: center;
}

.swiper-slide[data="travel"] .swiper-slide__title {
  left: -1.125em;
}

.swiper-slide[data="solution"] .swiper-slide__title {
  left: -1.9em;
}

.swiper-slide[data="independence"] .swiper-slide__title {
  left: -3.125em;
}

@media (min-width: 580px) {
  .swiper-wrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    position: relative;
    left: -20px;
  }

  .swiper-slide {
    width: 29vw !important;
  }

  .swiper-slide__title {
    font-size: clamp(2rem, 5.52vw, 2.5rem);
  }
}

@media (min-width: 600px) {
  .fv__menu {
    position: absolute;
    bottom: 10px;
    right: 0;
    max-width: clamp(280px, 46.67vw, 355px);
  }

  .swiper-slide__title__text--small {
    font-size: 30px;
  }
}

.contact {
  box-shadow: none;
}

@media (min-width: 768px) {
  .fv {
    position: relative;
  }

  .fv video {
    /* height: calc(100vh - 100px); */
  }

  .fv__menu {
    overflow: hidden;
  }

  .fv__menu-item {
    width: calc(100% + 8px);
    transition: all 0.3s ease;
  }

  .fv__menu-item:hover {
    position: relative;
    opacity: 0.9;
    transform: translateX(-8px);
  }

  .video-wrapper {
    aspect-ratio: 16/9;
  }

  .video-wrapper iframe {
    aspect-ratio: 16/9;
  }

  .news {
    margin-top: 100px;
    margin-left: max(calc(50vw - 583px), 100px);
    border-radius: 64px 0 0 64px;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.16);
    padding: 100px min(100px, max(50px, calc(100px + 50vw - 639px)));
    position: relative;
    background-color: var(--white);
    z-index: 1;
  }

  .news h2.section-title {
    min-width: 296px;
  }

  .news h2.section-title span {
    white-space: nowrap;
  }

  .news__item:first-child {
    margin-top: 70px;
  }

  .about {
    position: relative;
    margin-top: 100px;
    padding: 108px 30px 100px;
  }

  .inset-decorated::before {
    width: 100px;
    top: -94px;
  }

  .about-wrapper {
    gap: 30px;
    position: relative;
    left: calc(max(calc(50vw - 583px), 100px) / 2 - 16px);
    grid-template-columns: repeat(auto-fit, minmax(240px, 338px));
  }

  .about h2.section-title {
    margin-bottom: 90px;
    position: relative;
    left: calc(max(calc(50vw - 583px), 100px) / 2);
  }

  .about__item {
    max-width: 344px;
  }

  .about__item-bg {
    width: calc(100% - 16px);
    max-width: none;
  }

  .sustainability {
    margin-top: 100px;
  }

  .sustainability-wrapper {
    padding: 100px 20px;
    filter: drop-shadow(0px 0px 12px rgba(0, 0, 0, 0.16));
    overflow: hidden;
    border-top-left-radius: 100% 200px;
    border-top-right-radius: 100% 200px;
    border-bottom-left-radius: 100% 200px;
    border-bottom-right-radius: 100% 200px;
  }

  .sustainability__text {
    text-align: center;
    max-width: 1084px;
    margin: 0 auto;
  }

  .sustainability-gallery {
    display: flex;
    flex-direction: row;
    column-gap: min(41px, max(26px, calc(41px + 50vw - 533px)));
    margin: 40px auto 0;
    max-width: 962px;
  }

  .sustainability-gallery__item:first-child {
    width: 38.25%;
  }

  .sustainability-gallery__item:last-child {
    width: 57.49%;
    row-gap: 26px;
    column-gap: min(41px, max(26px, calc(41px + 50vw - 533px)));
  }

  .sustainability-gallery__image,
  .sustainability-gallery__subitem img {
    filter: grayscale(2);
    transition: filter 0.2s;
  }

  .sustainability-gallery__title {
    opacity: 0;
    transition: all 0.3s;
  }

  .sustainability-gallery__item:first-child:hover .sustainability-gallery__image,
  .sustainability-gallery__subitem:hover img {
    filter: grayscale(0);
  }

  .sustainability-gallery__item:first-child:hover .sustainability-gallery__title,
  .sustainability-gallery__subitem:hover .sustainability-gallery__title {
    opacity: 1;
  }

  .sustainability .link {
    margin-top: 40px;
    width: 368px;
    max-width: none;
  }

  .business {
    overflow: hidden;
    background-color: var(--light-grey);
    padding-top: 100px;
    padding-bottom: 90px;
  }

  .business-swiper {
    margin-top: 70px;
  }

  .swiper-wrapper {
    gap: min(70px, max(20px, calc(70px + 50vw - 478px)));
  }

  .swiper-slide {
    width: fit-content !important;
    max-width: min(255px, max(220px, calc(255px + 50vw - 478px)));
  }

  @media (max-width: 956px) {
    .swiper-slide__title {
      font-size: clamp(2rem, 4.2vw, 2.5rem);
    }
  }

  .swiper-slide__image {
    overflow: hidden;
    border-radius: 127.5px;
    transition: all 0.3s;
  }

  .swiper-slide__image img {
    max-width: 255px;
    aspect-ratio: 255 / 453;
  }

  .swiper-slide::after {
    content: "";
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 100%;
    height: 100%;
    border-radius: 127.5px;

    background: transparent;
    border: 1px solid var(--light-blue);
    transition: all 0.3s;
  }

  .swiper-slide__image::before {
    opacity: 0;
    transition: all 0.3s;
    right: -5px;
    bottom: -5px;
    width: 70px;
    height: 70px;
  }

  .swiper-slide:hover .swiper-slide__image {
    border-radius: 40px;
  }

  .swiper-slide:hover::after {
    border-radius: 40px;
    background: var(--gradient-blue);
  }

  .swiper-slide:hover .swiper-slide__image::before {
    opacity: 1;
  }

  .breadcrumb {
    background-color: var(--white);
  }
}