@charset "UTF-8";

/*
########################################################
  HOME
########################################################
*/

/*
========================================
  スライダーセクション (#slider)
========================================
*/

/* スライダー全体のコンテナ */
#slider {
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding-top: 100px;
  margin-bottom: -40px;
  background: #fff;
}
@media (max-width: 767px) {
  #slider {
    padding-top: 70px;
    margin-bottom: 0;
  }
}

/* Swiper コンテナ */
.swiper {
  width: 100%;
  height: 400px;
  padding: 0 !important;
}

@media (max-width: 767px) {
  .swiper {
    height: auto;
    padding-bottom: 35px !important;
  }
}

.swiper-wrapper {
  align-items: center;
}

@media (max-width: 767px) {
  .swiper-wrapper {
    align-items: stretch;
  }
}

.swiper-slide {
  width: 1100px !important;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .swiper-slide {
    width: 100% !important;
    height: auto;
  }
}

/* アクティブなスライド */
.swiper-slide-active {
  opacity: 1 !important;
}

.swiper-slide img {
  width: 1100px;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* ナビゲーションボタン */
.swiper-button-prev,
.swiper-button-next {
  width: 50%;
  height: 100%;
  top: 0;
  margin-top: 0;
  border-radius: 0;
  transition: all 0.3s ease;
  background: none !important;
}

@media (max-width: 767px) {
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }
}

.swiper-button-prev {
  left: 0;
}

.swiper-button-next {
  right: 0;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 40px;
  font-weight: bold;
  color: #999;
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
  color: #666;
}

/* ページネーション */
.swiper-pagination {
  bottom: 15px !important;
  z-index: 10;
}

@media (max-width: 767px) {
  .swiper-pagination {
    position: absolute !important;
    bottom: 5px !important;
  }
}

.swiper-pagination-bullet {
  width: 13px;
  height: 13px;
  background: var(--color-white) !important;
  opacity: 1;
  border: 1px solid var(--color-black) !important;
  box-shadow: 0 0 4px rgba(102, 100, 100, 0.6);
  margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
  background: #fff;
}
@media (max-width: 767px) {
  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 4px !important;
    background: var(--color-gray) !important;
    box-shadow: 0 0 2px rgba(102, 100, 100, 0.6);
  }
}

/*
========================================
  コンテンツエリア (#content)
========================================
*/

/* HOMEページの見出し (h2) */
#home h2 {
  margin-top: 60px;
  font-size: 28px;
  font-weight: 500;
}
@media (max-width: 767px) {
  #home h2 {
    margin-top: 0px;
    font-size: 24px;
    padding: 0 15px;
  }
}

/*
----------------------------------------
  ニュースセクション
----------------------------------------
*/

/* ニュース一覧へのリンク (.news-link) */
#home .news-link {
  font-size: 16px;
  color: #666;
  font-weight: 500;
  margin-left: 790px;
  line-height: 1;
}
@media (max-width: 767px) {
  #home .news-link {
    margin-left: 0;
    display: block;
    text-align: right;
    font-size: 14px;
    margin-top: 10px;
    padding-right: 15px;
  }
}

#home .news-link:hover {
  color: var(--color-red);
}

/* ニュースリストのスクロールコンテナ (.difficult) */
#home .difficult {
  max-height: 280px;
  overflow: auto;
}
@media (max-width: 767px) {
  #home .difficult {
    max-height: none;
    padding: 0 15px;
  }
}

/* ニュースラッパー (#newsWrap) */
#home #newsWrap .news {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0;
  margin: 0;
}

/* ニュースリストアイテム (.news li) */
#home #newsWrap .news li {
  display: flex;
  align-items: flex-start;
  margin: 0 0 12px 0;
  padding: 0 0 12px 0;
  border-bottom: 1px solid #e0e0e0;
  list-style: none !important;
  list-style-type: none !important;
  position: relative;
}
@media (max-width: 767px) {
  #home #newsWrap .news li {
    flex-wrap: wrap;
    padding: 0 0 10px 0;
    margin: 0 0 10px 0;
  }
}

#home #newsWrap .news li:first-child {
  border-top: 1px solid #e0e0e0;
  padding-top: 12px;
}
@media (max-width: 767px) {
  #home #newsWrap .news li:first-child {
    padding-top: 10px;
  }
}

#home #newsWrap .news li::marker {
  display: none;
}

/* ニュースの日付 (span:first-child) */
#home #newsWrap .news li span:first-child {
  flex-shrink: 0;
  width: 75px;
  font-size: 16px;
  color: #666;
  order: 0;
}
@media (max-width: 767px) {
  #home #newsWrap .news li span:first-child {
    width: 60px;
    font-size: 13px;
  }
}

/* ニュースのタイトル (span:last-child) */
#home #newsWrap .news li span:last-child {
  flex: 1;
  margin-left: 15px;
  line-height: 1.5;
  order: 2;
  margin-left: 5px;
  margin-top: 3px;
}
@media (max-width: 767px) {
  #home #newsWrap .news li span:last-child {
    width: 100%;
    margin-left: 0;
    margin-top: 0px;
    font-size: 14px;
  }
}

/* ニュースカテゴリーバッジ (::after疑似要素) */
#home #newsWrap .news li::after,
#news .news_content > div > span::after {
  content: '';
  display: inline-block;
  width: 60px;
  height: 24px;
  margin-top: 4px;
  margin-left: 5px;
  margin-right: 5px;
  flex-shrink: 0;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  text-align: center;
  line-height: 24px;
  order: 1;
}
@media (max-width: 767px) {
  #home #newsWrap .news li::after,
  #news .news_content > div > span::after {
    width: 50px;
    height: 20px;
    font-size: 11px;
    line-height: 20px;
    margin-left: 8px;
    margin-right: 10px;
    margin-top: 2px;
  }
}

/* ニュースカテゴリー別のバッジ色 */
#home #newsWrap .news li.news-info::after,
#news .news_content .news-info > span::after {
  content: 'お知らせ';
  background-color: var(--color-orange);
}

#home #newsWrap .news li.news-recruit::after,
#news .news_content .news-recruit > span::after {
  content: '採用情報';
  background-color: var(--color-purple);
}

#home #newsWrap .news li.news-ir::after,
#news .news_content .news-ir > span::after {
  content: 'IR情報';
  background-color: var(--color-blue);
}

#home #newsWrap .news li.news-general::after,
#news .news_content .news-general > span::after {
  content: 'ニュース';
  background-color: var(--color-red);
}

#home #newsWrap .news li.news-locations::after,
#news .news_content .news-locations > span::after {
  content: '事業所';
  background-color: var(--color-green);
}

/* ニュースのリンク */
#home #newsWrap a {
  text-decoration: none;
  color: var(--color-black);
}

#home #newsWrap a:hover {
  text-decoration: underline;
  color: var(--color-red);
}

/*
----------------------------------------
  事業内容セクション
----------------------------------------
*/

/* 事業内容カードコンテナ (.card-container) */
#home .card-container,
#business .card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  #home .card-container,
  #business .card-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
}

/* 個別のカード (a) */
#home .card-container a,
#business .card-container a {
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  display: inline-block;
  width: 100%;
  min-height: 350px;
  text-decoration: none;
}
@media (max-width: 767px) {
  #home .card-container a,
  #business .card-container a {
    height: auto;
    min-height: 300px;
  }
}

#home .card-container a:hover,
#business .card-container a:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* カードの画像ラッパー (.img-wrap) */
#home .card-container a .img-wrap,
#business .card-container a .img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}
@media (max-width: 767px) {
  #home .card-container a .img-wrap,
  #business .card-container a .img-wrap {
    height: 180px;
  }
}

/* カード内の画像 */
#home .card-container a .img-wrap img,
#business .card-container a .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

#home .card-container a:hover .img-wrap img,
#business .card-container a:hover .img-wrap img {
  transform: scale(1.1);
}

/* カードのコンテンツエリア (.card-content) */
#home .card-container a .card-content,
#business .card-container a .card-content {
  flex: 1;
  padding: 15px;
}

/* カードのタイトル (h3) */
#home .card-container a .card-content h3,
#business .card-container a .card-content h3 {
  font-size: 17px;
  text-align: center;
  font-weight: 500;
  margin: 0 0 5px 0;
  border:none;
  color: var(--color-black);
  overflow: hidden;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1;
}
@media (max-width: 767px) {
  #home .card-container a .card-content h3,
  #business .card-container a .card-content h3 {
    font-size: 16px;
  }
}

/* カードの説明文 (p) */
#home .card-container a .card-content p,
#business .card-container a .card-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}
@media (max-width: 767px) {
  #home .card-container a .card-content p,
  #business .card-container a .card-content p {
    font-size: 13px;
  }
}

/*
----------------------------------------
  イメージリンクセクション
----------------------------------------
*/

/* イメージリンクコンテナ (.image-links) */
#home .image-links {
  display: flex;
  gap: 30px;
}
@media (max-width: 767px) {
  #home .image-links {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }
}

/* 個別のイメージリンク (.image-link) */
#home .image-links .image-link {
  position: relative;
  display: block;
  flex: 1;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  border-radius: 7px;
  height: 300px;
}
@media (max-width: 767px) {
  #home .image-links .image-link {
    height: 200px;
  }
}

#home .image-links .image-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* イメージリンク内の画像 */
#home .image-links .image-link img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 767px) {
  #home .image-links .image-link img {
    height: 100%;
    object-fit: cover;
  }
}

/* イメージリンクのオーバーレイ (.overlay) */
#home .image-links .image-link .overlay {
  position: absolute;
  inset: 0;
  font-size: 23px;
  font-weight: 500;
  padding-top: 20px;
}
@media (max-width: 767px) {
  #home .image-links .image-link .overlay {
    font-size: 18px;
    padding-top: 15px;
  }
}

/* オーバーレイのテキスト (.text) */
#home .image-links .image-link .overlay .text {
  text-align: center;
  color: var(--color-black);
  background: rgba(255, 255, 255, 0.7);
  align-items: flex-start;
  line-height: 50px;
  border-radius: 20px;
  width: 500px;
  margin: auto;
}
@media (max-width: 767px) {
  #home .image-links .image-link .overlay .text {
    width: 90%;
    line-height: 1.4;
    padding: 15px 10px;
    border-radius: 10px;
    font-size: 16px;
  }
}

/*
----------------------------------------
  バナーセクション
----------------------------------------
*/

/* バナー全体 (.banner) */
#home .banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #16368a;
  color: #fff;
  text-decoration: none;
  width: 100%;
  height: 100px;
  box-sizing: border-box;
  transition: background 0.3s ease;
}
@media (max-width: 767px) {
  #home .banner {
    height: auto;
    padding: 20px 15px;
    flex-direction: column;
    gap: 15px;
  }
}

#home .banner:hover {
  background-color: #1d46b4;
  color: #fff;
}

/* バナーの左側コンテンツ (.banner-left) */
#home .banner .banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin: auto;
}
@media (max-width: 767px) {
  #home .banner .banner-left {
    flex-direction: column;
    gap: 10px;
    margin: 0;
    text-align: center;
  }
}

/* バナーのアイコン (.banner-icon) */
#home .banner .banner-left .banner-icon img {
  width: 50px;
}
@media (max-width: 767px) {
  #home .banner .banner-left .banner-icon img {
    width: 40px;
  }
}

#home .banner:hover .banner-left .banner-icon img {
  opacity: 1;
  transition-duration: 0.3s;
  background: none;
}

/* バナーのテキストエリア (.banner-text) */
#home .banner .banner-left .banner-text small {
  display: block;
  font-size: 18px;
  opacity: 0.8;
}
@media (max-width: 767px) {
  #home .banner .banner-left .banner-text small {
    font-size: 12px;
  }
}

#home .banner .banner-left .banner-text strong {
  display: block;
  font-size: 25px;
}
@media (max-width: 767px) {
  #home .banner .banner-left .banner-text strong {
    font-size: 16px;
  }
}

/* バナーの右側（矢印エリア .banner-right） */
#home .banner .banner-right {
  padding: 30px;
  font-size: 35px;
  transition: transform 0.3s ease;
  font-weight: 500;
}
@media (max-width: 767px) {
  #home .banner .banner-right {
    padding: 0;
    font-size: 25px;
  }
}

#home .banner:hover .banner-right {
  transform: translateX(8px);
}
@media (max-width: 767px) {
  #home .banner:hover .banner-right {
    transform: translateY(5px);
  }
}