.hero {
  position: relative;
  background-color: var(--color-white);
  overflow: hidden;
  margin-bottom: 85px;
}
.hero__inner {
  margin: 0 auto;
  position: relative;
  padding: 80px 24px 94px;
}

.hero__background {
  position: absolute;
  right: 0;
  background-repeat: no-repeat;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  margin-right: calc(50% - 50vw);
  height: 618px;
  overflow: hidden;
  left: 280px;
}

.hero__background-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__background-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  /* 初期表示時はtransitionを無効にする */
  transition: none;
}

.hero__background-slide--active {
  opacity: 1;
}

/* JavaScript実行後にtransitionを有効にするためのクラス */
.hero__background-slide--transition-enabled {
  transition: opacity 1.5s ease-in-out;
}

.hero__background img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero__image {
  width: 305px;
  height: 305px;
  position: relative;
  z-index: 10;
  left: -48px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  z-index: 10;
}

.hero__title-group {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title-item {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 4px 24px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__title {
  font-family: var(--font-family-main);
  font-size: var(--font-size-3);
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-black);
  letter-spacing: 0.15em;
  white-space: pre;
  margin: 0;
}

.hero__information {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #e04212;
  padding: 24px 160px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  margin-right: calc(50% - 50vw);
  padding-right: calc(50vw - 50%);
}

.hero__opening-info {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__opening-status {
  background-color: var(--color-white);
  padding: 8px 24px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.hero__opening-text {
  font-family: var(--font-family-main);
  font-size: var(--font-size-4);
  font-weight: 500;
  line-height: 1.5;
  color: #e04212;
  letter-spacing: 3.2px;
  white-space: pre;
  margin: 0;
}

.hero__opening-text--open {
  color: #e04212;
}

.hero__opening-text--closed {
  color: #666666;
}

.hero__opening-time {
  font-family: "Hiragino Kaku Gothic Pro", sans-serif;
  font-size: var(--font-size-9);
  font-weight: 600;
  line-height: 1.5;
  color: #e04212;
  white-space: pre;
  margin: 0;
}

.hero__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
}

.hero__detail-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: center;
}

.hero__detail-text p {
  font-family: var(--font-family-main);
  font-size: var(--font-size-9);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-white);
  white-space: pre;
  margin: 0;
}

.hero__buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}


@media screen and (max-width: 960px) {
  .hero {
    margin-bottom: 40px;
  }
  .hero__inner {
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  .hero__content {
    display: contents;
  }
  .hero__image {
    position: absolute;
    height: 155px;
    width: 155px;
    right: -16px;
    top: 80px;
    left: auto;
    z-index: 0;
  }
  .hero__title-group {
    order: 1;
    gap: 0;
    padding-left: 4px;
    position: relative;
    z-index: 1;
    padding: 24px 0;
  }
  .hero__title {
    font-size: 27px;
    line-height: 2;
    padding: 0;
  }
  .hero__title-item {
    padding: 0;
  }
  .hero__background {
    order: 2;
    border-radius: 0;
    position: static;
    margin-right: 0;
    width: 100vw;
    height: 290px;
    margin-inline: calc(50% - 50vw);
  }
  .hero__information {
    order: 3;
    border-radius: 10px;
    flex-direction: column;
    gap: 24px;
    margin: 0;
    margin-top: -32px;
    padding: 24px;;
    position: relative;
  }
  .hero__buttons {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin: auto;
  }
  .hero__buttons .c-btn {
    width: 176px;
  }

}
