

.loading {
  /*ローディング画面の縦横幅を画面いっぱいになるように指定*/
  width: 100vw;
  height: 100vh;
  /*ローディング画面の表示位置を固定*/
  position: fixed;
  z-index: 999;
  background: rgba(0,0,0,0.8);
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  /*ローディング画面を0.5秒かけて非表示にする*/
  transition: all 0.5s linear;
}

/*ローディング画面を非表示にする*/
.loading.loaded {
  /*0.5秒かけてopacityを0にする*/
  opacity: 0;
  visibility: hidden;
}

.loading-text {
  color: #FFF;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #FFF;
  border-left-color: #1082ce; 
  /* アニメーションを1秒かけて実行 */
  animation: spinner-rotation 1s linear infinite;
}

/* アニメーションの設定 */
@keyframes spinner-rotation {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}





body.history{
color: #000;
overflow-x: hidden !important;
background: url("../images/img_history_bg.png") #FCC046 no-repeat !important;

}

body.history #contents{
padding: 0;
margin: 0;
}

body.history #contents section{
display: inline-block;
}


.container {
  overflow: hidden;
  scroll-behavior: auto;
  max-width: 100%;
  display: flex;
  gap: 1px;
  
  height: 100vh;
}


@media (prefers-reduced-motion) {
  .container {
    scroll-behavior: auto;
  }
}


.item {
  user-select: none;
  flex: none;
}

main {
  margin: auto !important;
  padding: 0 !important;
  height: 100vh;
  overflow: hidden;
}



.container-wrapper {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.button {
  position: absolute;
  width: 3rem;
  height: 3rem;
  justify-content: center;
  align-items: center;
  user-select: none;
  background: #000;
  border-radius: 100%;
  font-size: 1.2em;
  top: 50%;
  margin: -1.5rem;
  border: none;
  color: #FFF;
  
  display: none;
}

.button.left {
  left: 2em;
}

.button.right {
  right: 2em;
}





div.main{
width: 100%;
padding: 150px 50px 0 50px;
height: 90vh;
}
.sp{
display: none;
}

#wrapper,
#contents section{
width: 100%;

  height: 100vh;
border: none;
}

.box_text{
border: solid 2px #000;
background: #FFF;
border-radius: 20px;
font-weight: bold;
padding: 0px;
width: 300px;
color: #333;
position: relative;

margin: 0 0 0 40px;
height: max-content;
margin-top: 200px;
}
.box_text:last-child{
margin-right: 50px;
}

.box_text::before{
    content: '';
    position: absolute; /* 絶対位置を設定 */
    top: -50px;
    left: 0;
    width: 100%; /* 親要素に合わせる */
    height: 60px; /* 親要素に合わせる */
    background-image: url('../images/icon_car_1.png'); /* アイコン画像のURL */
    background-size: contain; /* 画像を要素に合わせてリサイズ */
    background-repeat: no-repeat; /* 画像を繰り返さない */
    background-position: center; /* 画像を中央に配置 */
    z-index: -1; /* 背景にするために下に配置 */
}
.box_text:nth-of-type(2n)::before{
    background-image: url('../images/icon_car_2.png');
}
.box_text:nth-of-type(3n)::before{
    background-image: url('../images/icon_car_3.png');
    width: 100%; /* 親要素に合わせる */
    height: 70px; /* 親要素に合わせる */
}
      


.box_text p{
font-size: 16px;
font-family: "corporate-logo-ver2", sans-serif;
padding: 10px;
margin: 0;
}
.box_text p.date{
text-align: center;
font-size: 25px;
border-bottom: solid 2px #000;
}

.box_text:nth-child(odd){
margin-top: 300px;
}
.box_text p.image{
padding: 0;
}
.box_text div.image img,
.box_text div.image{
border-radius: 0 0 18px 18px;
}

.swiper-backface-hidden .swiper-slide img{
z-index: 999;
position: relative;

}




@media screen and (max-width: 800px) {

body.history{
color: #000;
overflow-x: hidden;
background: url("../images/bg_sp.png") #FCC046 no-repeat left top !important;
background-size: 100% !important;
}

.container {
  overflow-x: auto;
  scroll-behavior: smooth;
  max-width: 100%;
  display: flex;
  gap: 1px;
}


body.history #contents{
margin: 0 0 0 0;
}

.pc{
display: none;
}
.sp{
display: inherit;
}

body.history .inner{
width: 100%;
padding: 0 !important;
}

#wrapper{
padding: 0;
}


div.main{
padding: 100px 20px 0 20px;
}


.box_text{
margin: 150px 0 0 20px;
width: 180px;

}

.box_text:nth-child(odd){
margin-top: 100px;
}

.box_text p{
font-size: 13px;
}

.box_text p.date{
font-size: 18px;
}



}
