@import url(./global/_variable.css);

/* top */
/* ============================================ */

.area_visual {
  overflow: hidden;
  width: 100%;
  height: calc(100svh - 90px);
  /* height: auto; */
  margin-top: 90px;
  position: relative;

  @media (width < 1071px) {
    height: calc(100svh - 50px);
    /* height: auto; */
    margin-top: 50px;
  }
}

/* .area_visual_img {
  width: 100%;
  height: auto;
  img {
    width: 100%;
    height: auto;
  }
} */

.area_visual_img {
  position: absolute;
  width: 100%;
  bottom: 0px;
  opacity: 0;
  animation-name: opning;
  animation-delay: 0s;
  animation-duration: 10s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;

  @media (width < 480px) {
    animation-name: opning_mb;
    bottom: 157px;
    animation-duration: 8s;
    height: calc(100svh - 50px - 157px);
  }

  img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center bottom;
  }
}

@keyframes opning {
  0% {
    bottom: 0px;
    opacity: 0;
  }

  30% {
    bottom: 0px;
    opacity: 1;
  }

  60% {
    bottom: -150vw;
    opacity: 0;
  }

  71% {
    opacity: 0;
    bottom: 0px;
  }

  100% {
    bottom: 0px;
    opacity: 1;
  }
}


@keyframes opning_mb {
  0% {
    bottom: 158px;
    opacity: 0;
  }

  35% {
    bottom: 140px;
    opacity: 1;
  }

  45% {
    bottom: -150vw;
    opacity: 0;
  }

  50% {
    bottom: 158px;
    opacity: 0;
  }

  75% {
    bottom: 158px;
    opacity: 1;
  }

  100% {
    bottom: 158px;
    opacity: 1;
  }
}


.area_visual_logo {
  position: absolute;
  top: 10svh;
  opacity: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 1)) drop-shadow(0 0 5px rgba(255, 255, 255, 1)) drop-shadow(0 0 10px rgba(255, 255, 255, 1)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
  animation-name: logo;
  animation-delay: 6s;
  animation-duration: 0.6s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;

  @media (width < 480px) {
    animation-delay: 4s;
  }
}

@keyframes logo {
  0% {
    opacity: 0;
  }

  /* 80% {
    top: 10svh;
  }
  85%{
    top: 7svh;
  }
  90% {
    top: 10svh;
  }
  95% {
    top: 9svh;
  } */
  100% {
    opacity: 1;
  }
}

.area_visual_news {
  background-color: rgba(0, 0, 0, 0.76);
  color: #FFF;
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 64px 16px 16px;
  width: 60%;
  max-width: 780px;
  box-sizing: border-box;

  @media (width < 896px) {
    left: 20px;
    bottom: 20px;
    width: calc(100% - 40px);
  }

  @media (width < 480px) {
    position: relative;
    left: 0px;
    bottom: auto;
    width: 100%;
    height: 158px;
    overflow: hidden;
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 16px 20px 16px 20px;
    background-color: rgba(0, 0, 0, 1.00);
  }
}

.hd_topnews {
  font-size: clamp(1rem, 0.52vw + 0.879rem, 1.5rem);
  line-height: 1em;
}

.topnews {
  @media (width < 480px) {
    /* margin-top: 20px; */
  }
}

.topnews img {
  /* width: 130px;
  height: 90px;
  object-fit: cover; */

  @media (width < 480px) {
    /* height: 80px; */
  }
}

.topnews_item {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 20px;

  @media (width < 480px) {
    /* grid-template-columns: 100px 1fr; */
    gap: 14px;
  }
}

.topnews_date {
  color: var(--point_c);
  line-height: 1em;
}

.topnews_ttl {
  margin-top: 6px;
  color: #fff;
  max-width: 420px;
  /* white-space: nowrap; */
  overflow: hidden;
  /* text-overflow: ellipsis; */
  font-size: clamp(0.875rem, 0.13vw + 0.844rem, 1rem);
  line-height: 1.4em;

  @media (width < 480px) {
    white-space: wrap;
    line-height: 1.4em;
    margin-top: 4px;
    height: 68px;
  }
}

#topnews_carousel {
  position: relative;
  container-type: inline-size;

  .splide__track {
    .splide__list {
      .splide__slide {}
    }
  }

  .splide__arrow--prev,
  .splide__arrow--next {
    position: absolute;
    top: -6%;
    background-color: none;
    border: none;
    cursor: pointer;

    @media (width < 480px) {
      top: -30%;
    }
  }

  .splide__arrow--prev {
    right: -10px;

    @media (width < 480px) {
      grid-template-columns: 1fr;
      right: 30px;
    }
  }

  .splide__arrow--next {
    right: -28px;

    @media (width < 480px) {
      right: 16px;
    }
  }

  .button::before {
    content: "";
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    margin: auto;
    width: 24px;
    aspect-ratio: 1 / 1;
  }

  .prev::before {
    background-image: url(../images/common/arrow01.svg);
  }

  .next::before {
    background-image: url(../images/common/arrow01.svg);
    transform: rotate(180deg);
    transform-origin: center center;
  }

  /* .button:disabled::before {
    opacity: .5;
  } */
}

.mouse_scroll {
  position: absolute;
  bottom: 0px;
  right: 12.5vw;
  opacity: 0;
  animation-name: d_scroll;
  animation-delay: 9s;
  animation-duration: 0.3s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;

  @media (width < 896px) {
    display: none;
  }

  a {
    display: inline-block;
    position: absolute;
    right: 0px;
    bottom: 0;
    z-index: 2;
    padding: 10px 10px 110px;
    overflow: visible;
    color: #000;

    &:hover {
      opacity: 0.6;
    }

    .txt_scroll {
      position: absolute;
      font-size: 14px;
      font-weight: 700;
      font-family: "Montserrat", sans-serif;
      line-height: 1;
      text-transform: uppercase;
      text-decoration: none;
      white-space: nowrap;
      transform: rotate(90deg) translate(0%, 0%);
      left: -95%;
      top: -20%;
    }
  }

  a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 100px;
    background: #FFF;
  }

  a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 100px;
    background: #000;
    animation: sdl 1.5s cubic-bezier(1, 0, 0, 1) infinite;
  }
}

@keyframes sdl {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }

  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }

  50.1% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }

  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

@keyframes d_scroll {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}


.area_value {
  padding: 7.29vw 20px 0;
  display: grid;
  grid-template-columns: 55vw 1fr;
  gap: 8.85vw;
  align-items: center;
  position: relative;
  overflow: hidden;

  @media (width < 896px) {
    grid-template-columns: 1fr;
    padding: 50px 20px 0;
  }
}

.area_value_bg {
  position: absolute;
  top: 0px;
  left: 0px;
  opacity: 0.1;

  @media (width < 896px) {
    transform: rotate(58deg) translateY(-22vw) translateX(20vw);
  }
}

.area_value_left {
  text-align: right;
  position: relative;

  @media (width < 896px) {
    text-align: left;
  }
}

.area_value_right {
  position: relative;
}

.area_value_left_img {
  margin-top: 4.16vw;
  margin-left: -20px;

  @media (width < 896px) {
    display: none;
  }
}

.area_value_right_img {
  display: none;
  margin-top: 50px;
  margin-inline: -20px;

  @media (width < 896px) {
    display: block;
  }
}

.txt_area {
  font-size: clamp(1rem, 0.13vw + 0.969rem, 1.125rem);
  line-height: 2em;
}

.txt_area_top {
  font-size: 24px;
  margin-bottom: 12px;
}

.box_btn_area {
  padding-top: 4.37vw;

  @media (width < 480px) {
    padding-top: 30px;
  }
}

.area_movie {
  padding: 7.81vw 12.5vw;
  position: relative;

  @media (width < 896px) {
    padding: 50px 20px;
  }

  .btn_link {
    margin: auto;
    padding-top: 4.37vw;

    @media (width < 480px) {
      padding-top: 30px;
    }
  }
}

.area_movie_bg {
  position: absolute;
  right: 0px;
  bottom: 0px;
  opacity: 0.1;
}

.area_movie_ttl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4.37vw;
  align-items: center;
  position: relative;

  @media (width < 480px) {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.area_movie_ttl_txt {
  text-align: center;
}

.txt_movie {
  display: inline-block;
  max-width: 740px;
  line-height: 1.6em;
  text-align: justify;

}

.area_movie_movie {
  padding-top: 4.37vw;
  display: grid;
  grid-template-columns: 66.65% 1fr;
  gap: 10px;
  position: relative;

  @media (width < 480px) {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

.column_double {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;

  @media (width < 480px) {
    grid-template-columns: 1fr 1fr;
  }
}

/* 動画サムネイル（クリックでポップアップ） */
.movie_thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
  cursor: pointer;

  img {
    width: 100%;
    height: 100%;
    /* サムネイルの黒帯部分をカットして枠いっぱいに表示 */
    object-fit: cover;
    transition: transform 0.3s;
  }

  &:hover img {
    transform: scale(1.05);
  }
}

.movie_thumb_play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    translate: 3px 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #fff;
  }
}

/* YouTubeショート */
.area_movie_shorts {
  padding-top: 4.37vw;
  position: relative;

  @media (width < 480px) {
    padding-top: 40px;
  }
}

.shorts_ttl {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 20px;

  @media (width < 480px) {
    gap: 20px;
    margin-bottom: 16px;
  }

  img {
    width: 120px;
    height: auto;

    @media (width < 480px) {
      width: 80px;
    }
  }

  span {
    display: inline-block;
    padding: 6px 14px;
    background-color: #41464b;
    border-radius: 4px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.5em;

    @media (width < 480px) {
      font-size: 0.8125rem;
      width: 200px;
    }
  }
}

#movie_shorts {
  position: relative;

  /* 4本以下（スライドしない時）はPC・タブレットで中央寄せ */
  &.is_static .splide__list {
    @media (width >=480px) {
      justify-content: center;
    }
  }

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

  .splide__arrow--prev,
  .splide__arrow--next {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    width: 40px;
    aspect-ratio: 1 / 1;
    background-color: #B3B3B3;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
  }

  .splide__arrow--prev {
    left: -20px;

    @media (width < 896px) {
      left: -10px;
    }
  }

  .splide__arrow--next {
    right: -20px;

    @media (width < 896px) {
      right: -10px;
    }
  }

  .button::before {
    content: "";
    /* 矢印SVGをマスクにして白で塗る */
    background-color: #fff;
    mask: url(../images/common/arrow01.svg) no-repeat center / contain;
    position: absolute;
    inset: 0;
    margin: auto;
    width: 20px;
    aspect-ratio: 1 / 1;
  }

  .next::before {
    transform: rotate(180deg);
  }

  .button:disabled {
    opacity: 0.3;
    cursor: default;
  }
}

/* 動画ポップアップ（横動画） */
.movie_modal {
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;

  &::backdrop {
    background-color: rgba(0, 0, 0, 0.75);
  }
}

.movie_modal_inner {
  position: relative;
}

.movie_modal_movie {
  /* 画面に収まる横長サイズ */
  width: min(90vw, calc(80dvh * 16 / 9));
  aspect-ratio: 16 / 9;

  iframe {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
  }
}

.movie_modal_close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;

  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 2px;
    background-color: #fff;
  }

  &::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  &::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}

/* ショート動画ポップアップ */
.shorts_modal {
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
  max-width: none;
  max-height: none;

  &::backdrop {
    background-color: rgba(0, 0, 0, 0.75);
  }
}

.shorts_modal_inner {
  --shorts-h: min(78dvh, 760px);
  position: relative;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;

  @media (width < 896px) {
    --shorts-h: 55dvh;
    width: 92vw;
    max-height: 88dvh;
    padding: 16px;
    overflow-y: auto;
  }
}

.shorts_modal_left {
  text-align: center;
}

.shorts_modal_movie {
  height: var(--shorts-h);
  aspect-ratio: 9 / 16;
  margin: 0 auto;

  iframe {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
  }
}

.shorts_modal_link {
  display: inline-block;
  margin-top: 10px;
  color: #333;
  text-decoration: underline;
}

.shorts_modal_close {
  position: absolute;
  /* 白枠の右上（枠の外だと画面上部にはみ出すため） */
  top: 6px;
  right: 6px;
  width: 30px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;

  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: #333;
  }

  &::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  &::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}

/* 前後のショートへ移動する矢印 */
.shorts_modal_arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 44px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #B3B3B3;
  cursor: pointer;

  &::before {
    content: "";
    background-color: #fff;
    mask: url(../images/common/arrow01.svg) no-repeat center / contain;
    position: absolute;
    inset: 0;
    margin: auto;
    width: 22px;
    aspect-ratio: 1 / 1;
  }

  @media (width < 896px) {
    /* 動画の縦中央に合わせる */
    top: calc(16px + 55dvh / 2);
    width: 36px;
  }
}

.shorts_modal_arrow--prev {
  left: -64px;

  @media (width < 896px) {
    left: 6px;
  }
}

.shorts_modal_arrow--next {
  right: -64px;

  &::before {
    transform: rotate(180deg);
  }

  @media (width < 896px) {
    right: 6px;
  }
}

.area_business {
  padding: 7.81vw 12.5vw;
  position: relative;
  background-image: url(../images/common/bg_business.webp);
  background-size: cover;
  z-index: 0;

  @media (width < 896px) {
    padding: 40px 20px 50px;
  }
}

.area_business_ttl {
  .inner_line {
    &::before {
      background-color: #E0DFE0;
    }
  }
}

.list_business {
  padding-top: 4.37vw;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  column-gap: 1.82vw;
  row-gap: 2.2vw;

  @media (width < 480px) {
    padding-top: 40px;
    column-gap: 10px;
    row-gap: 16px;
  }
}

.item_business {
  .item_business_thumb {
    border: #000 solid 2px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;

    img {
      position: relative;
      transition: all .3s ease-out;
    }
  }

  a {
    color: var(--font_c);

    &:hover {
      .item_business_thumb {
        img {
          transform: scale(1.2);
        }
      }
    }
  }
}

.item_business_txt {
  font-size: clamp(0.875rem, 0.13vw + 0.844rem, 1rem);
  line-height: 1.4em;
  text-align: center;
  padding-top: 8px;
}

.area_recruit {
  padding: 7.81vw 12.5vw;
  position: relative;
  z-index: 1;

  @media (width < 896px) {
    padding: 50px 20px;
  }
}

.area_recruit_bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.76) 100%), url(<path-to-image>) lightgray -45px -2917.876px / 104.688% 675.706% no-repeat;
  box-shadow: 0 0 20px 10px rgba(146, 80, 55, 0.12);
  z-index: 2;
}

.blended {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;

  img {
    mix-blend-mode: multiply;
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: bottom;
  }
}

.area_recruit_inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16.92vw;

  @media (width < 1195px) {
    gap: 4vw;
  }

  @media (width < 960px) {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.area_recruit_ttl {
  .ttl_area {
    color: #FFF;

    .hd_ttl_area {
      .inner_line {
        &::before {
          background-color: #434343;
        }
      }
    }
  }
}

.column_recruit_double {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.937vw;

  @media (width < 480px) {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.column_recruit_single {
  padding-top: 0.937vw;

  @media (width < 480px) {
    padding-top: 8px;
  }
}