@charset "utf-8";
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}






/* =========================PC=========================================== */
@media screen and (min-width: 768px) {

.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background-color: transparent !important;
}

#main {
  position: relative;
  z-index: 5;
  flex: 1; /* ← これが超重要：空きスペースを埋める */
  width: 100%;
  margin: 0 auto;
  background-color: transparent !important;
}



.wrapper {
  position: relative;
  z-index: 0;
}


    .top_content01 {
  width: 100%;
  max-width: 1100px;
  padding: 30px 20px;
  margin: 0 auto;
  background-color: #fff;
  box-sizing: border-box;
}


.top_content01_box {
  width: 100%;
  background-color:#fff;
}


.scroll span::after {
  content: "";
  display: block;
    margin: 0 auto 150px auto; /* 上 右 下 左 */
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid #fff; /* ブルー ▼の色 */
}


.slider-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  display: none; /* 最初は非表示 */
  pointer-events: none;
}

.bg-slide.show {
  opacity: 1;
  z-index: 1;
}




/* キャッチコピー h3 のマージン調整 */
.slider-caption h3 {
  margin: 0.3em 0;
}


.slider-caption {
  visibility: hidden;
}


.slider-caption h3 {
  margin: 0.3em 0;
  opacity: 0;
  animation: fadeSlideIn 1s ease-out forwards;
}

/* 順番に遅延 */
.slider-caption h3:nth-child(1) {
  animation-delay: 0.3s;
}

.slider-caption h3:nth-child(2) {
  animation-delay: 0.8s;
}

.slider-caption h3:nth-child(3) {
  animation-delay: 1.3s;
}



.slider-caption {
  font-family: "heisei-kaku-gothic-std", sans-serif;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -40%);
  text-align: center;
  color: white;
  font-size: 5rem;
  font-weight: bold;
  line-height: 1.6;
  letter-spacing: 0.2em;
  z-index: 10;

  /* 縁取り線 */
  -webkit-text-stroke: 3px #132F74;

  /* ぼかした黒のシャドウ */
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.8);
}

/* h3の個別調整（必要があれば） */
.slider-caption h3 {
  margin: 0.3em 0;
  white-space: nowrap;
}


.slider-caption h4 {
  font-family: "heisei-kaku-gothic-std", sans-serif;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -40%);
  text-align: center;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.6;
  letter-spacing: 0.2em;
  z-index: 10;
}

/* --- 最新情報セクション --- */
.top_news {
  max-width: 1100px;
  margin: 100px auto;
  padding: 30px 100px;
  background-color: #F9F8F8;

}

/* 見出し（midashi01） */
.midashi01 {
  text-align: center;
  margin-bottom: 40px;
   color: #14245B;
}

.midashi01 h3 {
  font-size: 1.8rem;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.midashi01 h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: #132F74;
  margin: 10px auto 0;
}

/* タブ */
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.news-tabs .tab {
  border: 1px solid #132F74;
  background: #fff;
  padding: 10px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  color: #132F74;
  transition: 0.2s;
}

.news-tabs .tab:hover {
  background-color: #f0f0f0;
    color: #000;
}

.news-tabs .is-active {
  background: #132F74;
  color: #fff;
}

/* ニュースリスト */
.news-list {
  text-align: left;
  border-top: 1px solid #ccc;
}

.news-item {
  padding: 20px 0;
  /*border-bottom: 1px solid #ccc;*/
}

.news-item .meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 5px;
}

.news-item .category {
  display: inline-block;
  background: #132F74;
  color: #fff;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 3px;
  margin-left: 10px;
}


.news-item .category_2 {
  display: inline-block;
  background: #FFD24D;
  color: #000;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 3px;
  margin-left: 10px;
}

.news-item .title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 6px 0;
  color: #222;
}

.news-item .excerpt {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
}

.news-item .detail {
  display: inline-block;
  margin-top: 10px;
  float: right;
  font-size: 0.85rem;
  color: #132F74;
  background-color: #fff;
  border: 1px solid #132F74;
  padding: 5px 22px 5px 32px; /* 左に余白を確保 */
  border-radius: 20px;
  text-decoration: none;
  background-image: url("../img/icon01.png");
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 8px 8px;
  transition: 0.3s;
}

.news-item .detail:hover {
  background-color: #132F74;
  color: #fff;
  background-image: url("../img/icon01_b.png"); /* ホバー時のアイコンに切り替え */
   transition: 0.3s;
}

/* 一覧ボタン */
.top_newsbt {
  text-align: center;
  margin-top: 40px;
}

.news-btn {
  display: inline-block;
  background: #132F74;
  color: #fff;
  padding: 14px 70px 14px 50px; /* ←右側に余白多め（アイコン用） */
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 6px;
  background-image: url("../img/icon01_b.png");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 10px 10px;
  letter-spacing: 0.1em; /* ← 文字間隔ここ */
  transition: 0.3s;
  border: 1px solid #132F74; 
}

.news-btn:hover {
  background-image: url("../img/icon01.png");
  background-color: #fff;
  transition: 0.3s;
  color: #132F74!important;
  border: 1px solid #132F74; 
}

.news_item_set {
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 15px;
  border-bottom: 1px dotted #ccc; /* グレーの点線ボーダー */
}

.news_item_set::after {
  content: "";
  display: block;
  clear: both;
}



/*yfsブランド*/
.top_brand {
  max-width: 1100px;
  margin: 150px auto 100px;
  padding: 30px 0px;
 
}

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
 padding: 20px 0 40px 0;

}

.brand-logos2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* ← 左詰めに変更 */
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0 0px 0;

}

.midashi01b {
  font-size: 1.3em;
  border-left: 5px solid #132F74;
  padding-left: 10px;
  
}




.yfsb_child {
  width: calc((100% - 100px) / 6); /* gap20px × 5 = 100px */
  text-align: center;
}

.yfsb_child img {
  width: 180px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 auto;

  border: 1px solid #ccc;      /* 薄いグレーの枠線 */
  padding: 1px;                /* 枠と画像の間にスペース */
  box-sizing: border-box;      /* パディング込みでサイズ維持 */
  background-color: #fff;      /* 背景白（任意） */
}

.yfsb_child_name {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
}



/***ビジネス***/

.business-section {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 0;
  flex-wrap: wrap;
}

.biz-card {
  width: calc(50% - 20px);
  border: 1px solid #ccc;
  padding: 30px 20px;
  box-sizing: border-box;
  text-align: center;
  background-color: #fff;
}

.biz-icon img {
  width: 60px;
  height: auto;
  margin-bottom: 15px;
}

.biz-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #132F74;
  margin-bottom: 10px;
  line-height: 1.4;
}

.biz-title span {
  display: block;
  font-size: 0.7rem;
  font-weight: normal;
  color: #333;
}

.biz-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #222;
}

.biz-image img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 4px;
}





/***リクルートバナー***/

.top_recruit {
  margin: 100px auto 150px;
  text-align: center;
}

.top_recruit_bt img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}





















}





@supports (-webkit-touch-callout: none) {
  .slider-bg {
    background-attachment: scroll !important;
  }
}





/* =========================スマホ=========================================== */
@media screen and (max-width: 767px) {

 .slider-caption h1 {
    font-size: 1.5rem;
  }

}


/* スマートフォン用スタイル */
@media screen and (max-width: 767px) {
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background-color: transparent !important;
}

#main {
  position: relative;
  z-index: 5;
  flex: 1; /* ← これが超重要：空きスペースを埋める */
  width: 100%;
  margin: 0 auto;
  background-color: transparent !important;
}



.wrapper {
  position: relative;
  z-index: 0;
}


    .top_content01 {
  width: 100%;
  max-width: 1100px;
  padding: 30px 20px;
  margin: 0 auto;
  background-color: #fff;
  box-sizing: border-box;
}

.slider-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  display: none; /* 最初は非表示 */
  pointer-events: none;
}

.bg-slide.show {
  opacity: 1;
  z-index: 1;
}




/* キャッチコピー h3 のマージン調整 */
.slider-caption h3 {
  margin: 0.3em 0;
}


.slider-caption {
  visibility: hidden;
}


.slider-caption h3 {
  margin: 0.3em 0;
  opacity: 0;
  animation: fadeSlideIn 1s ease-out forwards;
}

/* 順番に遅延 */
.slider-caption h3:nth-child(1) {
  animation-delay: 0.3s;
}

.slider-caption h3:nth-child(2) {
  animation-delay: 0.8s;
}

.slider-caption h3:nth-child(3) {
  animation-delay: 1.3s;
}



.slider-caption {
  font-family: "heisei-kaku-gothic-std", sans-serif;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -40%);
  text-align: center;
  color: white;
   font-weight: bold;
  line-height: 1.6;
  letter-spacing: 0.2em;
  z-index: 10;

  /* 縁取り線 */
  -webkit-text-stroke: 3px #132F74;

  /* ぼかした黒のシャドウ */
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.8);
}

/* h3の個別調整（必要があれば） */
.slider-caption h3 {
  margin: 0.3em 0;
  white-space: nowrap;
}


/* --- 最新情報セクション --- */
.top_news {
  max-width: 1100px;
  margin: 100px auto;
  padding: 30px 100px;
  background-color: #F9F8F8;

}

/* 見出し（midashi01） */
.midashi01 {
  text-align: center;
  margin-bottom: 40px;
   color: #14245B;
}

.midashi01 h3 {
  font-size: 2.0rem;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.midashi01 h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: #132F74;
  margin: 10px auto 0;
}

/* タブ */
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.news-tabs .tab {
  border: 1px solid #132F74;
  background: #fff;
  padding: 10px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  color: #132F74;
  transition: 0.2s;
}

.news-tabs .tab:hover {
  background-color: #f0f0f0;
    color: #000;
}

.news-tabs .is-active {
  background: #132F74;
  color: #fff;
}

/* ニュースリスト */
.news-list {
  text-align: left;
  border-top: 1px solid #ccc;
}

.news-item {
  padding: 20px 0;
  /*border-bottom: 1px solid #ccc;*/
}

.news-item .meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 5px;
}

.news-item .category {
  display: inline-block;
  background: #132F74;
  color: #fff;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 3px;
  margin-left: 10px;
}


.news-item .category_2 {
  display: inline-block;
  background: #FFD24D;
  color: #000;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 3px;
  margin-left: 10px;
}

.news-item .title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 6px 0;
  color: #222;
}

.news-item .excerpt {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
}

.news-item .detail {
  display: inline-block;
  margin: 10px 30px 0 30px; /* 上10px、左右30px、下0px */
  font-size: 0.85rem;
  color: #132F74;
  background-color: #fff;
  border: 1px solid #132F74;
  padding: 6px 22px 6px 32px; /* 縦paddingを均等にして中央寄せ */
  border-radius: 20px;
  text-decoration: none;
  background-image: url(../img/icon01.png);
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 8px 8px;
  transition: 0.3s;
  line-height: 1.4;
  vertical-align: middle;
  text-align: center;
  float: none; /* ← float解除してmargin適用を優先（必要に応じて） */
}

.news-item .detail:hover {
  background-color: #132F74;
  color: #fff;
  background-image: url("../img/icon01_b.png"); /* ホバー時のアイコンに切り替え */
   transition: 0.3s;
}

/* 一覧ボタン */
.top_newsbt {
  text-align: center;
  margin-top: 40px;
}

.news-btn {
  display: inline-block;
  background: #132F74;
  color: #fff;
  padding: 14px 70px 14px 50px; /* ←右側に余白多め（アイコン用） */
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 6px;
  background-image: url("../img/icon01_b.png");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 10px 10px;
  letter-spacing: 0.1em; /* ← 文字間隔ここ */
  transition: 0.3s;
  border: 1px solid #132F74; 
}

.news-btn:hover {
  background-image: url("../img/icon01.png");
  background-color: #fff;
  transition: 0.3s;
  color: #132F74;
  border: 1px solid #132F74; 
}

.news_item_set {
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 15px;
  border-bottom: 1px dotted #ccc; /* グレーの点線ボーダー */
}

.news_item_set::after {
  content: "";
  display: block;
  clear: both;
}



/*yfsブランド*/
.top_brand {
  max-width: 1100px;
  margin: 150px auto 100px;
  padding: 30px 0px;
 
}

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
}



.brand-logos2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
}

.midashi01b {
  font-size: 1.3em;
  border-left: 5px solid #132F74;
  padding-left: 10px;
  
}

.yfsb_child {
  width: calc((100% - 100px) / 6); /* gap20px × 5 = 100px */
  text-align: center;
}


.yfsb_child img {
  width: 180px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 auto;

  border: 1px solid #ccc;      /* 薄いグレーの枠線 */
  padding: 1px;                /* 枠と画像の間にスペース */
  box-sizing: border-box;      /* パディング込みでサイズ維持 */
  background-color: #fff;      /* 背景白（任意） */
}

.yfsb_child_name {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
}



/***ビジネス***/

.business-section {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 0;
  flex-wrap: wrap;
}

.biz-card {
  width: calc(50% - 20px);
  border: 1px solid #ccc;
  padding: 30px 20px;
  box-sizing: border-box;
  text-align: center;
  background-color: #fff;
}

.biz-icon img {
  width: 60px;
  height: auto;
  margin-bottom: 15px;
}

.biz-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #132F74;
  margin-bottom: 10px;
  line-height: 1.4;
}

.biz-title span {
  display: block;
  font-size: 0.7rem;
  font-weight: normal;
  color: #333;
}

.biz-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #222;
}

.biz-image img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 4px;
}





/***リクルートバナー***/

.top_recruit {
  margin: 100px auto 150px;
  text-align: center;
}

.top_recruit_bt img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

















.hero {
  height: auto;
  /*padding: 60px 0 40px;*/
  flex-direction: column;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .slider-caption {
    font-size: 2.5rem;
    top: -30px; /* ← 少し上へ */
    transform: translate(-50%, -40%);
    -webkit-text-stroke: 1px #132F74;
    white-space: nowrap; /* ← 折り返さない */
  }
}


.slider-caption h3 {
  

}

.top_news {
  padding: 20px;
  margin: 60px auto;
}

.news-tabs {
  flex-direction: column;
  gap: 10px;
}

.news-tabs .tab {
  width: 100%;
  text-align: center;
}

.news-item .detail {
  display: block;
 
}

.news-btn {
  padding: 12px 45px 12px 30px;
  background-position: right 15px center;
}

.brand-logos {
  flex-wrap: wrap;
  justify-content: center;
}

.yfsb_child {
  width: calc((100% - 40px) / 2);
}

.yfsb_child img {
  width: 140px;
  height: auto;
}

.business-section {
  flex-direction: column;
  gap: 30px;
  padding: 30px 0;
}

.biz-card {
  width: 100%;
}

.biz-title {
  font-size: 1.2rem;
}

.biz-desc {
  font-size: 1rem;
}

.top_recruit {
  margin: 60px auto 100px;
}

}




/* スマホ対応 */
@media screen and (max-width: 768px) {
  .brand-logos {
    justify-content: center;
    gap: 15px;
  }

  .yfsb_child {
    width: calc(50% - 15px); /* 2列 */
  }

  .yfsb_child img {
    width: 150px;
    height: 100px;
  }
}

/* ===== spnav / pcnav 切り替え対応 ===== */
@media screen and (max-width: 1023px) {
  .spnav {
    display: block !important;
  }
  .pcnav {
    display: none !important;
  }
}

@media screen and (min-width: 1024px) {
  .spnav {
    display: none !important;
  }
  .pcnav {
    display: flex !important;
    max-width: 100%;
    flex-wrap: wrap;
  }
}

/* iPadサイズ対策：幅狭時にナビ縮小 */
@media screen and (max-width: 1100px) {
  .head_nav1 a {
    width: 100px;
    font-size: 12px;
  }
}

/* デフォルトは非表示 */
.topKeyimages_ts {
  display: none;
}

@media screen and (max-width: 768px) {
  .topKeyimages_ts {
    display: block;
  }
  .slider-bg {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .news-tabs button.tab:nth-child(2),
  .news-tabs button.tab:nth-child(3) {
    display: none;
  }
}
