/* トップページのスタイル */
@charset "UTF-8";

/*=========================================================================================
メインビジュアル
==========================================================================================*/
#input:checked ~ #content {
  transform: translateX(0px);
}
.headline{
  background: url(images/研修制度.png) no-repeat 0 0;
  background-size:100% 100%; 
  background-color: rgba(246, 248, 249, 0.68);
  background-position: center;
  background-blend-mode:lighten ;
  font-size: 2.25rem;
  font-weight: bold;
  margin: auto;
  text-align: center;
  animation: fadein 3s forwards;
}

@keyframes fadein {
  0% {opacity: 0}
  100% {opacity: 1}
} 

.headlinesp{
  display: none;
}

@media screen and (max-width: 768px){
  .headline {display: none;
  }
}



@media screen and (max-width: 480px){
  .headlinesp {
    font-size: 1.25rem;
    font-weight: bold;
  }}


.sub {
  max-width: 70%;
  text-align: left;
  font-size: 2rem;
  margin: 0 auto;
  padding: 0 ;

}

.sub p {
display: inline-block;
text-align: justify;
font-size: 1.5rem;
}

.headlinesp{
display: none;
}

@media screen and (max-width: 1050px){
.headline {
  font-size: 2rem;
}
}

@media screen and (max-width: 768px){
.headline {display: none;
}
}

@media screen and (max-width: 768px){
.headlinesp {
  display: block;
  background: url(images/研修制度レスポンシブ.png) no-repeat 0 0;
  background-size: 100%;
background-color: rgba(246, 248, 249, 0.68);
background-position: center;
background-blend-mode:lighten ;
font-size: 1.75rem;
font-weight: bold;
margin: auto;
text-align: center;
}
.subsp {
max-width: 70%;
text-align: left;
font-size: 1rem;
margin: 0 auto;
padding: 0 ;

}
.subsp p {
display: inline-block;
text-align: justify;
}
}

@media screen and (max-width: 480px){
.headlinesp {
  font-size: 1.25rem;
}
.subsp {
  font-size: 0.9rem;
}
}

.traininglist {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  list-style: none;
  padding: 0;
}

.traininglist li {
  width: calc(100%/3);
  padding: 15px;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(30%);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.traininglist li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.traininglist li img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  cursor: pointer;
  display: block;
  transition: opacity 0.3s ease-in-out;
}

.traininglist li:hover img {
  opacity: 0.7;
}

.traininglist li p {
  width: 90%;
  margin: 0 auto; /* 左右中央揃え */
  text-align: justify;
  line-height: 1.4;
  background-color: rgba(245, 244, 255, 0.8);
  padding: 15px;
  box-sizing: border-box;
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%); /* 垂直・水平方向の中央揃え */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.traininglist li:hover p {
  opacity: 1;
}

@media screen and (max-width: 1050px) {
  .traininglist li {
    width: calc(100%/2);
  }
}

@media screen and (max-width: 780px) {
  .traininglist li {
    width: 100%;
  }
   .traininglist li p {font-size:1.2rem ;}
}

@media screen and (max-width: 480px) {
   .traininglist li p {
    font-size: 1.2rem;
   }}

.explanation h3,
.explanation p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s ease-in-out, transform 2s ease-in-out;
}

.explanation h3.is-visible,
.explanation p.is-visible {
  opacity: 1;
  transform: translateY(0);
}