@charset "UTF-8";

#wrap {
  width: 100%;
  overflow-x: hidden;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333333;
}

#input:checked ~ #content {
  transform: translateX(0px);
}

.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(217, 130, 75, 0.82) 0%, rgba(184, 93, 38, 0.88) 100%),
              url('images/研修制度.png') center 30% / cover no-repeat;
  color: #ffffff;
  
  padding-top: 120px;
  padding-bottom: 50px;
  padding-left: 20px;
  padding-right: 20px;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  text-align: center;
  margin-bottom: 24px;
  animation: fadein 2s forwards;
  box-sizing: border-box;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0;
  position: relative;
  display: inline-block;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.75), 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-description {
  font-size: 1.3rem; 
  line-height: 1.8;
  color: #ffffff;
  text-align: center; 
  margin: 24px auto 0;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@keyframes fadein {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.training-container {
  max-width: 1240px;
  margin: 60px auto 100px;
  padding: 0 20px;
}

.traininglist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.training-card {
  width: calc(33.333% - 22px);
  max-width: 380px;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.training-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
}

/* 画像とオーバーレイの親*/
.card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f8f9fa;
}

.card-image-wrapper img.items {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.training-card:hover img.items {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 38, 0.94);
  color: #ffffff;
  padding: 16px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
}

.training-card:hover .card-overlay {
  opacity: 1;
  visibility: visible;
}

.card-title {
  font-size: 1.8rem; 
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 6px;
  text-align: left;
  flex-shrink: 0;
}

.card-desc {
  font-size: 1.35rem; 
  line-height: 1.6;
  color: #f8fafc;
  margin: 0 0 8px 0;
  text-align: left;
  white-space: normal;
}

.card-desc strong {
  color: #ffffff;
  display: inline-block;
  margin-top: 8px;
}

.card-list {
  list-style: none;
  padding: 0 0 0 1em;
  margin: 0 0 12px 0;
}

.card-list li {
  font-size: 1.35rem; 
  line-height: 1.6;
  color: #f8fafc;
  text-indent: -1em;
  margin-bottom: 6px;
}

.card-caption {
  padding: 20px 20px;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  background-color: #ffffff;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}


.training-card:hover .card-caption {
  opacity: 0;
  visibility: hidden;
}

@media screen and (max-width: 1024px) {
  .training-card {
    width: calc(50% - 16px);
  }
}


@media screen and (max-width: 768px) {
  .hero-section {
    background: linear-gradient(135deg, rgba(217, 130, 75, 0.82) 0%, rgba(184, 93, 38, 0.88) 100%),
                url('images/研修制度レスポンシブ.png') center 40% / cover no-repeat;
    padding-top: 90px;
    padding-bottom: 30px;
    padding-left: 16px;
    padding-right: 16px;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1.1rem; 
    line-height: 1.6;
    margin: 16px auto 0;
    text-align: center;
  }

  .headerlogo img {
    width: 90px;
    max-width: 90%;
    max-height: 70%;
    justify-content: stretch;
  }
}


@media screen and (max-width: 640px) {
  .training-card {
    width: 100%;
    max-width: 420px;
  }

  .card-caption {
    font-size: 1.35rem; 
  }

  .card-title {
    font-size: 1.6rem; 
  }

  .card-desc,
  .card-list li {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 1.4rem;
  }

  .headerlogo img {
    width: 90px;
    max-width: 80%;
    max-height: 60%;
    justify-content: stretch;
  }
}