h1 {
  font-size: 24px; /* サイズを変更する */
  color: #EB9439;
  text-shadow: 
    0 0 0.10em #FFF,
    0 0 0.15em #FFF,
    0 0 0.80em #FFF,
    0 0 1.00em #FFF;
  line-height: 3;
}

h2 {
  font-size: 36px; /* サイズを変更する */
  color: #EB9439;
  text-shadow: 
    0 0 0.10em #FFF,
    0 0 0.15em #FFF,
    0 0 0.80em #FFF,
    0 0 1.00em #FFF;
  line-height: 3;
}


.main-visual {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.main-visual video {
  position: absolute;
  object-fit: cover;
}

.main-visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* 黒色で透過度30%に設定 */
  z-index: 1;
}

.main-visual-text {
  position: absolute;
  top: 50%;
  left: 50%;  /* こちらを 50% に修正します */
  transform: translate(-50%, -50%);  /* そして、translateのX値を -50% に修正します */
  color: #fff;
  text-align: center;
  z-index: 2;
}

.main-visual-text p {
    font-size: 4.25vw;
  font-weight: bold;
font-family: 'Zen Old Mincho', serif;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 15px;
  box-sizing: border-box;
}

.banner-category {
  opacity: 0;
  transform: scale(0.1);
  transition: opacity 1s, transform 1s;
  padding: 50px 0;
  overflow: hidden;
  position: relative;
}

.banner-category.visible {
  opacity: 1;
  transform: scale(1);
}

.bg,
.bg2,
.bg3 {
  animation: slide 3s ease-in-out infinite alternate;
  background-image: linear-gradient(-60deg, #FFDC73 33.3%, #FBEAD7 33.3%, #FBEAD7 66.6%, #EB9439 66.6%);
  bottom: 0;
  left: -50%;
  opacity: 0.5;
  position: absolute;
  right: -50%;
  top: 0;
  z-index: -1;
}

.bg2 {
  animation-direction: alternate-reverse;
  animation-duration: 4s;
}

.bg3 {
  animation-duration: 5s;
}

.banner-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  position: relative;
}

.banner-wrapper img {
  width: 100%;
  max-width: 1200px;
  height: auto;
}

.banner-link {
  opacity: 0;
  transform: translateY(20px) scale(0.5);
  transition: opacity 1s, transform 1s;
}

.banner-link.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.parallax-container {
  position: relative;
  background-image: url('../img/top/parallax-bg1.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 0px;
}

.parallax-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #EB9439;
  text-shadow: 
    0 0 0.10em #FFF,
    0 0 0.15em #FFF,
    0 0 0.80em #FFF,
    0 0 1.00em #FFF;
  text-align: center;
  margin-left: 1px;
  margin-right: 1px;
  box-sizing: border-box;
  width: 80%;
}

.white-background {
  background-color: white;
  padding: 18px;
  border-radius: 5px;
  text-align: left;
}

.business-container {
  display: flex;
  justify-content: space-between;
  width: 70%;
  margin: 0 auto;
  padding: 5% 15% 5% 15%;
  background: linear-gradient(to left bottom, #FFF 50%, #DDD 50%);
}

.business-item {
  width: calc(45% - 10px);
  opacity: 0;
  transform: translateY(300px);
  transition: opacity 0.5s, transform 1s;
}

.business-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.business-item img {
  width: 100%;
  height: auto;
  display: block;
}

.business-text {
  background-color: white;
  color: black;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* This adds a subtle shadow */
  padding: 20px;
  text-align: center;
}

.news-wrapper {
    display: flex;
    justify-content: center;
    padding: 50px;
    box-sizing: border-box;
  background: linear-gradient(to right bottom, #FFF 50%, #FFE5CC 50%);
}

.news-container {
    color: #fff;
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
}

.news-header {
    background-color: none;
    width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
    position: relative;
}

.news-header::before,
.news-header::after {
    content: "";
    position: absolute;
    height: 5px; /* 線の高さ */
    bottom: 0;
}

.news-header::before {
    width: 20%; /* 左側の線の幅 */
    background: red; /* 左側の線の色 */
    left: 0;
}

.news-header::after {
    width: 80%; /* 右側の線の幅 */
    background: orange; /* 右側の線の色 */
    right: 0;
}
.news-info a {
    color: red; /* Link color */
}

.news-info a:hover {
    color: orange; /* Link color when hovered over */
}

h3 {
    color: #EB9439;
    margin: 0;
    padding: 0 20px; 
    box-sizing: border-box;
  font-size: 24px;
}

.news-container-inner {
    background-color: #fff;
    color: #000;
    width: 100%;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.news-item {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.news-date {
    font-weight: bold;
    margin-right: 10px;
    box-sizing: border-box;
}

.news-info {
    margin-left: 10px;
    box-sizing: border-box;
}

@media (min-width: 769px) {
  .main-visual {
    height: calc(100vh - 0px);
  }

  .main-visual video {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .main-visual-text p {

  }

  .parallax-container {
    height: 600px;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .business-container {
    flex-direction: column;
    width: 70%;
  padding: 5% 15% 5% 15%;
  }

  .business-item {
    width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  h1 {
  font-size: 15px; /* サイズを変更する */
  color: #FFF;
  text-shadow: none;
  line-height: 2;
  }

  h2 {
  font-size: 24px; /* サイズを変更する */
  color: #FFF;
  text-shadow: none;
  line-height: 3;
  }

  .main-visual {
    height: 100vh;
  }

  .main-visual video {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    min-width: 100%;
    width: auto;
  }

.main-visual-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  text-align: center;
}

  .main-visual-text p {
    font-size: 2.0rem;
  }

.main-visual-text img {
  max-width: 70%; /* 画像の幅が親要素を超えないように制限 */
  height: auto; /* 高さは幅に応じて自動調整 */
}


  .container {
  width: 100%;
  padding: 0;
  margin: 0;
  }

  .banner-wrapper {
    flex-direction: column;
  }

  .parallax-container {
  position: relative;
  background: linear-gradient(90deg, rgb(250, 220, 100), rgb(255, 90, 205));
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 0px;
  height: 500px;
  }

  .parallax-content {
  margin-left: 1px;
  margin-right: 1px;
  box-sizing: border-box;
  width: 98%;
  }

  .parallax-content h2 {
  font-size: 24px;
  }

  .parallax-content p {
  font-size: 16px;
  }

  .business-container {
    flex-direction: column;
    width: 90%;
    padding: 5%;
  }

  .business-item {
    width: 100%;
    margin-bottom: 20px;
  }

.news-wrapper {
    padding: 20px;
}

  .news-container-inner {
    width: 100%;
  }
}