body {
    margin: 0;
    padding: 0;
    background-image:  url(../images/recruit/background0);
    background-repeat: no-repeat;

}

.first-view {
    position: relative;
    height: 100vh;
    overflow: hidden;
    text-align: center;
    padding-top: 50px;
}
.first-view h1{
    font-size: 40px;
    font-weight: bold;
}
.text-content 
{
    text-align: right;
    margin-right: 60px;
    margin-top: 30px;
}
.first-view p{
    font-size: 25px;
}
.first-view-bg img {
    width: 100%;
    height: auto;
    display: block;
}


.pc-img {
  display: block;}

.sp-img {
  display: none;
}


.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.floating-photo {
    position: absolute;
    width: 20%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

/* 表示アニメーション */
.floating-photo.visible {
    opacity: 1;
    transform: translateY(0);
}


/* 写真ごとの配置（参考画像ベースで調整） */
.photo1 {
    top: 20%;
    left: 0;
}

.photo2 {
    top: 40%;
    left: 25%;
    width: 25%;
}

.photo3 {
    top: 65%;
    left: 10%;
    width: 30%;
}

.photo4 {
    top: 70%;
    left: 60%;
    width: 25%;
}


section{
    max-width: 850px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 80px;
    margin-bottom: 50px;
}



.recruit-profile {
    position: relative;
    padding: 60px 20px;
    font-family: "Helvetica", sans-serif;
    color: #333;
    overflow: hidden;
}



.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.section-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.profile-content {
    display: block;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.profile-img img {
    flex-shrink: 0;
    width: 180px;
    margin-top: 0;
    /* 必要に応じて上余白も調整可 */
}


.profile-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 2fr));
    gap: 30px;
    flex: 1;
}

.item {
    position: relative;
    display: flex;
    align-items: center;
    /* ←ここを flex-start から center に変更 */
    gap: 12px;
    padding: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
    border-radius: 8px;
}


.item::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 14px;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    z-index: -2;
}

/* 青カード */
.item.blue {

    background-color: #fff;
    border: 4px solid #2E71D5;
}

.item.blue::before {
    background-color: #2E71D5
}

/* 赤カード */
.item.red {
    background-color: #fff;
    border: 4px solid #CA2541;
}

.item.red::before {
    background-color: #CA2541;

}

/* アイコン画像 */
.icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* テキスト部分 */
.text-blue {
    color: #003C81;
}

.text-red {
    color: #720000;
}

.CareerPath img{
    max-width: 850px;
    text-align: center;
}

.Human img{
    max-width: 850px;
    text-align: center;
}

table {
  border-collapse: collapse;
  width: 100%;
  background-color: #fff;

}

th, td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background-color: #F3F3F3;
  width: 20%;
}


 .al-center{
    align-items: center;
 }
.senkou img{
    max-width: 850px;
    text-align: center;
}
  @media screen and (max-width: 768px) {
    .first-view h1{
    font-size: 25px;
    font-weight: bold;
}
    .first-view p{
    font-size: 18px;
}
.CareerPath img{
    max-width: 400px;
        margin: 0 auto;
}
.Human img{
    max-width: 400px;
        margin: 0 auto;
}

.floating-photo {
    width: 50%;
}
.first-view {
    height: 50vh;}

.senkou img{
    max-width: 400px;
    margin: 0 auto;
}
.photo1{
    display: none;
}
.photo4{
    display: none;
}

  .pc-img {
    display: none;
  }
  .sp-img {
    display: block;
  }
  section{
    max-width: 450px;
    margin: 0 auto;
    margin-bottom: 30px;
    margin-top: 20px;
  }

}