.about-section {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

/* 背景画像 */
.background {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

#corpBK{
	background: url('../img/kyotobkimg.jpg') center/cover no-repeat;
}
#serviceBK{
	background: url('../img/service_leadbkimg.jpg') center/cover no-repeat;
}
#careerBK{
	background: url('../img/careerimg.jpg') center/cover no-repeat;
}
#jobofferBK{
	background: url('../img/jboffer2_bkimg.jpg') center/cover no-repeat;
}
#contactusBK{
	background: url('../img/service_titlebk.jpg') center/cover no-repeat;
}
#newsBK{
	background: url('../img/topcont2_bg.jpg') center/cover no-repeat;
}

/* 斜め白背景 */
.angled-overlay {
  position: absolute;
  top: 0;
  right: -45%;
  width: 45%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6); /* 少しだけ濃くする */
  clip-path: polygon(20% 0, 100% 0%, 100% 100%, 0% 100%);
  animation: slideInOverlay 0.5s ease-out 0.5s forwards;
}

/* テキスト */
.text-wrapper {
  position: absolute;
  bottom: 40px;
  left: 62%;
  text-align: left;
  z-index: 2;
}

.title {
  font-size: 28px;
  color: #000;
  margin: 0;
  line-height: 1.2;
  opacity: 0;
  animation: slideInTitle 0.5s ease-out 1s forwards;
}

.subtitle {
  font-size: 50px;
  color: #FFFFFF; /* or #777 */
  mix-blend-mode: multiply;
  margin: 0;
  line-height: 1;
  opacity: 0;
  animation: slideInSubtitle 0.5s ease-out 1.4s forwards;
	font-family: Arial, Helvetica, "sans-serif";
	font-weight:bold;
}

/* アニメーション */
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideInOverlay {
  to { right: 0%; }
}

@keyframes slideInTitle {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInSubtitle {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


@media (max-width: 768px) {
  .about-section {
    height: 200px;
  }

.angled-overlay {
    right: -80%; /* ← ここがポイント！ */
    width: 60%;
    clip-path: polygon(50% 0, 100% 0%, 100% 100%, 0% 100%);
    animation: slideInOverlaySP 0.5s ease-out 0.5s forwards;
  }

  @keyframes slideInOverlaySP {
    from {
      right: -80%;
    }
    to {
      right: 0%;
    }
  }

  .title {
    font-size: 18px;
  }

  .subtitle {
    font-size: 26px;
  }

  .text-wrapper {
    right: 10%;
    bottom: 30px;
  }
}
