body {
  background-color: #000; /* フォールバック用 */
  color: #f8eaea;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  transition: opacity 1.5s ease-in-out;
  background-attachment: fixed;
}
#top {
  height: 100vh;
  position: relative;
  background: transparent;
  background-color: rgba(0, 0, 0, 0.3);
}
.top-wrap__txt {
  position: absolute;
  top: 40%;
  left: 5%;
  transform: translate(0, 0);
  color: white;
  z-index: 3;
  white-space: nowrap;
}
.top-wrap__txt h1 {
  font-weight: lighter;
  font-size: clamp(3rem, 1.9387rem + 2.2642vw, 3.75rem);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}
.info {
  background-color: rgba(0, 0, 0, 0.8); /* 少し黒くして読みやすさを確保 */
  position: relative;
  z-index: 2;
}

.__inner {
  max-width: clamp(50rem, -512.5rem + 750vw, 68.75rem);
}
.info-wrap {
  padding-top: clamp(40px, 8vw, 80px);
  padding-right: 0;
  padding-bottom: clamp(40px, 8vw, 80px);
  padding-left: 0;
  margin: auto;
}
.info-wrap__title {
  text-align: center;
}
.info-wrap__title h2 {
  font-size: 30px;
  font-weight: 100;
  margin-bottom: 20px;
}
.info-wrap__body {
  width: 100%;
  margin: 0 auto;
}
.info-wrap__body__list__item {
  display: flex;
  padding: 20px 10px;
  border-bottom: #fff solid 2px;
}
.info-wrap__body__list__item__date {
  width: 20%;
}

.info-wrap__body__list__item__head {
  width: 80%;
}
.info-wrap__body__btn {
  display: block;
  width: 20%;
  color: #fff;
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  margin: 40px auto 0 auto;
  transition-duration: 0.4s;
}
.info-wrap__body__btn a {
  color: #fff;
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid #fff;
  padding: 1%;
  transition: color 0.3s ease;
}
.info-wrap__body__btn a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.bg-slide {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 40% center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.bg-slide.active {
  opacity: 1;
}
.company {
  background-color: rgba(0, 0, 0, 0.8); /* 少し黒くして読みやすさを確保 */
  position: relative;
  z-index: 2;
}
.company-wrap {
  margin: 0 auto;
  padding-top: clamp(40px, 8vw, 80px);
  padding-right: 0;
  padding-bottom: clamp(40px, 8vw, 80px);
  padding-left: 0;
}
.company-wrap__head {
  text-align: left;
  padding-bottom: 40px;
}
.company-wrap__head h2 {
  font-size: clamp(4.0625rem, 0.3125rem + 5vw, 5rem);
  line-height: 1.3;
}
.company-wrap__txt {
  line-height: 1.5;
  letter-spacing: 1px;
  padding-bottom: 40px;
}
.company-wrap__btn {
  display: block;
  width: 20%;
  color: #fff;
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  text-decoration: none;
}
.company-wrap__btn a {
  color: #fff;
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid #fff;
  padding: 1%;
}
.company-wrap__btn a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.bar {
  background-color: #fff;
}
.bar-wrap {
  margin: 0 auto;
  padding-top: clamp(40px, 8vw, 80px);
  padding-right: 0;
  padding-bottom: clamp(40px, 8vw, 80px);
  padding-left: 0;
}

.wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem;
  margin: 0 auto;
}

.card {
  position: relative;
  cursor: pointer;
  width: 45%;
  height: 350px;
  padding: 2%;
  box-sizing: border-box;
  transform-style: preserve-3d;
  perspective: 1000px;
  margin-bottom: 40px;
}

.card-front,
.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  text-align: center;
  transition: 0.5s;
  box-shadow: 0 0 10px #555;
}

.card-front {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(80%);
  transform: rotateY(0deg);
}

.card-back {
  padding: 2rem 1rem;
  color: white;
  box-sizing: border-box;
  transform: rotateY(180deg);
  background-color: #000;
}

.card:hover .card-front {
  transform: rotateY(-180deg);
}

.card:hover .card-back {
  transform: rotateY(0deg);
}

.card-title {
  padding: 1%;
  font-size: 32px;
  font-weight: bold;
}

.card-description {
  line-height: 1.5;
  text-align: left;
  margin: 20px 20px 40px 20px;
}
.wrapper__head {
  text-align: center;
  padding: 40px 0 40px 0;
  color: #000;
}
.wrapper__head h2 {
  font-size: 30px;
  line-height: 1.5;
}
.wrapper__txt {
  width: 80%;
  font-size: 20px;
  text-align: center;
  margin: 0 auto;
  line-height: 1.8;
  letter-spacing: 1px;
  padding-bottom: 40px;
  color: #000;
  font-weight: bold;
  max-width: 1100px;
}
.card-btn {
  display: block;
  width: 55%;
  color: #fff;
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  text-decoration: none;
  margin: 0 auto;
}
.card-btn a {
  color: #fff;
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid #fff;
  padding: 1%;
}
.card-btn a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.recruit {
  position: relative;
  background-image: url(../img/edge2.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.recruit-wrap {
  position: relative;
  margin: 0 auto;
  padding: 100px 0 100px 0;
  z-index: 1;
}
.recruit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* ←薄い黒い膜 */
  z-index: 0; /* 背景の上、テキストの下 */
}
.recruit-wrap__head {
  text-align: center;
  padding-bottom: 40px;
}
.recruit-wrap__head h2 {
  font-size: 32px;
  line-height: 1.3;
}
.recruit-wrap__txt {
  text-align: center;
  line-height: 1.5;
  letter-spacing: 1px;
  padding-bottom: 40px;
  color: #fff;
  font-weight: bold;
}
.recruit-wrap__btn {
  display: block;
  width: 250px;
  color: #fff;
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  text-decoration: none;
  margin: 0 auto;
}
.recruit-wrap__btn a {
  color: #fff;
  display: block;
  width: 100%;
  border: 1px solid #fff;
  padding: 1%;
}
.recruit-wrap__btn a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.footer {
  background-color: #000;
  padding: 40px 0;
  text-align: center;
  color: #fff;
}

main {
  opacity: 0;
  transition: opacity 4s ease-out;
}

/* 読み込み完了後に表示 */
body.loaded main {
  opacity: 1;
}
/* ロゴローダー画面（ロゴだけ中央に表示） */
.logo-loader {
  position: fixed;
  z-index: 9999;
  background: #000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: logoFadeOut 1.5s ease-out 2s forwards;
}

.logo-loader img {
  width: 40%;
  opacity: 0;
  animation: logoFadeIn 1s ease-out 0.4s forwards;
}

/* ロゴが表示される */
@keyframes logoFadeIn {
  to {
    opacity: 1;
  }
}

/* ロゴと黒背景がフェードアウト */
@keyframes logoFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ページ本体のフェードイン遅延表示 */
body:not(.loaded) main {
  opacity: 0;
  transition: opacity 1s ease-out 2.4s; /* ロゴ後に表示 */
}
body.loaded main {
  opacity: 1;
}
@media (max-width: 1100px) {
  .bar-wrap__body,
  .golf-wrap__body {
    flex-direction: column;
    width: 90%;
    margin: 0 auto;
  }

  .bar-wrap__body__left,
  .golf-wrap__body__left {
    width: 100%;
    justify-content: center;
  }

  .bar-wrap__body__left__img img,
  .golf-wrap__body__left__img img {
    position: static !important;
    width: 100%;
    height: 300px;
    top: 0;
    left: 0;
  }

  .bar-wrap__body__right,
  .golf-wrap__body__right {
    width: 100%;
    margin-left: 0;
    padding: 24px;
    box-sizing: border-box;
  }
  .golf-wrap {
    margin: 0 auto;
    padding: 40px 0 40px 0;
  }
  .bar-wrap {
    margin: 0 auto;
    padding: 40px 0 40px 0;
  }
  .recruit-wrap {
    padding: 50px 0 50px 0;
  }
  @media screen and (max-width: 850px) {
    .top-wrap__txt h1 {
      font-size: clamp(1.375rem, -0.1806rem + 6.2222vw, 3.125rem);
    }
    .company-wrap__head h2 {
      width: 90%;
      font-size: clamp(2rem, 0.1667rem + 7.3333vw, 4.0625rem);
      margin: 0 auto;
    }
  }
  .info-wrap__body {
    width: 90%;
    margin: 0 auto;
  }
  .company-wrap__txt {
    width: 90%;
    margin: 0 auto;
  }
  .company-wrap__btn {
    display: block;
    width: 30%;
    color: #fff;
    text-align: center;
    font-size: 20px;
    margin: 0 auto;
  }
  .wrapper__head {
    text-align: center;
    padding: 20px 0 20px 0;
    color: #000;
  }
  .wrapper__txt {
    width: 90%;
    font-size: 16px;
    text-align: center;
    margin: 0 auto;
    line-height: 1.8;
    letter-spacing: 1px;
    padding-bottom: 40px;
    color: #000;
    font-weight: bold;
    max-width: 1100px;
  }
  .br-control {
    display: none;
  }
  .card-title {
    padding: 1%;
    font-size: 28px;
    font-weight: bold;
  }
  .card-btn {
    display: block;
    width: 76%;
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    text-decoration: none;
    margin: 0 auto;
  }
  .recruit-wrap__txt {
    width: 90%;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 1px;
    padding-bottom: 20px;
    color: #fff;
    font-weight: bold;
    margin: 0 auto;
  }
  .info-wrap__body__btn {
    display: block;
    width: 30%;
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    margin: 40px auto 0 auto;
    transition-duration: 0.4s;
  }
  .info-wrap__body__list__item__date {
    width: 40%;
  }

  .info-wrap__body__list__item__head {
    width: 60%;
  }
  @media screen and (max-width: 450px) {
    .recruit-wrap__head {
      padding-bottom: 20px;
    }
    .recruit-wrap__btn {
      display: block;
      width: 90%;
      color: #fff;
      text-align: center;
      line-height: 50px;
      font-size: 18px;
      text-decoration: none;
      margin: 0 auto;
    }
    .recruit-wrap__btn a {
      color: #fff;
      display: block;
      width: 100%;
      border: 1px solid #fff;
    }
    .recruit-wrap {
      padding: 20px 0 20px 0;
    }
    .info-wrap__body__btn {
      width: 100%;
    }
    .company-wrap__btn {
      width: 90%;
    }
    .wrapper {
      flex-direction: column;
    }
    .card {
      position: relative;
      cursor: pointer;
      width: 90%;
      height: 350px;
      padding: 2%;
      box-sizing: border-box;
      transform-style: preserve-3d;
      perspective: 1000px;
      margin-bottom: 40px;
      margin: 0 auto;
    }
    .wrapper__txt {
      padding-bottom: 20px;
    }
    p {
      text-align: left;
      font-size: clamp(0.875rem, 0.5673rem + 1.5385vw, 1rem);
    }
    .info-wrap__title h2 {
      font-size: clamp(1.5rem, 0.5769rem + 4.6154vw, 1.875rem);
    }
    .wrapper__head h2 {
      font-size: clamp(1.5rem, 0.5769rem + 4.6154vw, 1.875rem);
    }
    .recruit-wrap__head h2 {
      font-size: clamp(1.5rem, 0.5769rem + 4.6154vw, 1.875rem);
    }
    .company-wrap__head h2 {
      font-size: clamp(1.75rem, 1.1346rem + 3.0769vw, 2rem);
    }

  }
}
