/*===================================================================
  archive-item
===================================================================*/
/*========================
  fv
========================*/
/* @media screen and (min-width:1200px) {
  .fv {
    max-width: 1140px;
    margin: 0 auto;
  }
} */

/* 背景は .fv-bg に付ける（全幅にするため） */
.fv-bg {
  position: relative;
  width: 100%;
  background: url(http://toyota-lf.sundesign.jp/machine/wp-content/uploads/2025/12/Web-1920-–-2.png);
  background-position: 50% 50%;
  background-size: cover;
  min-height: 9rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.fv-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.inner--item {
  width: 90%;
  max-width: 1150px;
  margin: 0 auto;
}

.custom-page-header {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 5rem;
}

.fv-tit {
  margin-top: 15px;
  padding-left: 30px;
}

.fv-tit-lead {
  color: #da2228;
  padding-left: 30px;
}


/*========================
  item-heading
========================*/
.area_link {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px;
  text-align: right;
}

.area_link a {
  background: #333;
  color: #fff;
  padding: 15px;
  font-size: 18px;
}

.area_link a:hover {
  opacity: 0.8;
}

.item-select-wrap {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 40px 30px 20px;
  background-color: var(--color-gray);
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  list-style: none;
}

.item-select-list {
  width: calc(33.333% - 13.3333333333px);
  margin: 0;
}

.item-select-btn {
  background-color: #da2228;
  color: #fff;
  border: 1px solid var(--color-navy);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 60px;
  font-size: var(--fs18);
  font-weight: 500;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, .12);
}

.item-select-btn:hover {
  background: linear-gradient(90deg, #DA2228, #FF9933);
  color: #fff;
}

.item-select-list.current .item-select-btn {
  background-color: var(--color-navy);
  color: #fff;
}

@media screen and (max-width: 600px) {
  .item-select-list {
    width: 100%;
  }

  .item-select-wrap {
    flex-direction: column;
  }

  .area_link a {
    font-size: 16px;
  }

  .item-category-tit {
    margin-left: 15px!important;
    margin-right: 15px!important;
  }

  .item-list {
    width: 100%;
    margin-left: 15px!important;
    margin-right: 15px!important;
  }
}

/*========================
  item-main
========================*/
.item-main {
  margin-bottom: 100px;
}

.item-wrap {
    display: flex;
    flex-wrap: wrap;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
    gap: 30px;
}

.item-list {
  width: calc((100% - 60px) / 3);
    box-sizing: border-box;
    margin: 0;
    border: 1px solid var(--color-navy);
    background-color: #fff;
    list-style: none;
}

.item-list:nth-child(4n) {
  margin-right: 0;
}
.item-list::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--color-gray);
  position: absolute;
  bottom: -8px;
  right: -8px;
  z-index: -1;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
}
.item-list:hover::before {
  bottom: 0;
  right: 0;
}

.item-category-tit {
  max-width: 1140px;
  margin: 0 auto;
  margin-top: 80px;
  margin-bottom: 30px;
}

.item-item {
  position: relative;
  z-index: 2;
  background-color: #fff;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
  padding-top: 10px;
}
.item-item:hover {
  opacity: 1;
}

.item-img {
  position: relative;
  overflow: hidden;
}

.item-img img {
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
  z-index: 1;
}

.item-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.3s ease;
  z-index: 2;
}

.item-item:hover .item-img::after {
  background: rgba(255, 255, 255, 0.3);
}

.item-label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 30px;
  width: 120px;
  font-size: 14px;
  background-color: var(--color-navy);
  color: #fff;
  position: absolute;
  top: -8px;
  left: -8px;
  z-index: 3;
}

.item-tit {
  font-weight: 500;
  border-bottom: 1px solid var(--color-navy);
  background: #da2228;
  border: 1px solid #da2228;
  font-size: 16px;
  margin-bottom: 0;
  margin-top: 10px;
  padding: 5px 0 5px 5px;
  
}

.item-tit a{
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.item-contents {
  display: flex;
  border: 1px solid #F7CCD4;
  border-bottom: none;
}

.item-contents-tit {
  width: 45%;
}

.item-contents-detail {
  width: 55%;
}

.item-contents-name {
  border-right: 1px solid #F7CCD4;
  background: #FDF5F6;
}

.item-contents-name,
.item-contents-text {
  min-height: 35px;
  font-size: 14px;
  padding: 5px!important;
  border-bottom: 1px solid #F7CCD4;
}

.item-contents-tit p,
.item-contents-detail p {
  margin: 0;
  padding-left: 15px!important;
}

.item-no-post {
  text-align: center;
  padding: 50px 0;
}

@media screen and (max-width: 1024px) {
  .item-list {
    width: calc(33.333% - 30px);
  }
  .item-list:nth-child(3n) {
    margin-right: 0px;
  }
  .item-list:nth-child(4n) {
    margin-right: 30px;
  }
}
@media screen and (max-width: 900px) {
  .item-list {
    width: calc(50% - 30px);
  }
  .item-list:nth-child(2n) {
    margin-right: 0px;
  }
  .item-list:nth-child(3n) {
    margin-right: 30px;
  }
}
@media screen and (max-width: 600px) {
  .item-list {
    width: calc(100% - 5px);
    margin-right: 0;
  }
  .item-list:nth-child(2n), .item-list:nth-child(3n) {
    margin-right: 0px;
  }

  .item-single {
    margin-left: 15px!important;
    margin-right: 15px!important;
  }
}


/*===================================================================
  item-single
===================================================================*/
/*========================
  item-layout
========================*/
.item-single-flex {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

/*========================
  item-sidebar
========================*/
.item-sidebar {
  width: 220px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.item-other-block {
  margin-bottom: 40px;
  border: 2px solid var(--color-navy);
  text-align: center;
}

.item-other-tit {
  font-weight: 500;
  background-color: var(--color-navy);
  color: #fff;
  padding: 5px 15px;
  font-size: var(--fs18);
}

.item-other-recommend {
  font-size: 14px;
  margin-right: 5px;
}

.item-other-item {
  padding: 10px 15px;
  border-bottom: 1px solid var(--color-navy);
}

.item-other-list:last-child .item-other-item {
  border-bottom: none;
}

/*========================
  item-single
========================*/
.item-single {
  /* width: calc(50% - 300px); */
  margin: 0 auto;
  margin-bottom: 100px;
}

.item-single-tit {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 10px 0px;
  border-top: none;
  margin: 30px 15px 20px 15px;
  border-bottom: 2px #da2228 solid;
}

.item-single-wrap {
  margin-bottom: 40px;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.item-single-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.item-single-wrap .swiper-slide {
    width: 100% !important;
}

.item-single-desc-lead {
  background-color: var(--color-navy);
  margin: 0;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  color: #fff;
  padding: 0 20px;
}

.item-single-desc {
  padding: 30px;
  border: 2px solid var(--color-navy);
}
.item-single-desc ul, .item-single-desc li {
  list-style-type: disc;
  margin-left: 1em;
}

/*========================
  item-price
========================*/
.item-price {
  margin-bottom: 60px;
}

.item-price-block {
  margin-bottom: 30px;
}

.item-price-name {
  font-size: var(--fs18);
  font-weight: 500;
  border-left: 4px solid var(--color-navy);
  line-height: 1.3;
  padding: 5px 10px 5px 15px;
  background-color: var(--color-gray);
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-bottom: 10px;
}

.item-price-wrap {
  border: 1px solid var(--color-navy);
}
.item-price-wrap .item-price-list:first-child {
  border-left: none;
}

.item-price-list {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 100px;
  text-align: center;
  border-left: 1px solid var(--color-navy);
  margin: 0 !important;
}

.item-price-kg {
  background-color: rgba(16, 30, 54, 0.6);
  color: #fff;
  padding: 5px;
}

.item-price-price {
  padding: 5px;
}

@media screen and (max-width: 1024px) {
  .item-single {
    width: calc(100% - 260px);
  }

  .item-single-contents {
    width: calc(100% - 260px);
  }
}
@media screen and (max-width: 900px) {
  .item-single {
    width: 93%;
    -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
            order: 1;
    margin-bottom: 60px;
  }
  .item-sidebar {
    -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
            order: 2;
  }
}
@media screen and (max-width: 600px) {
  .item-single-img {
    width: 100%;
    margin-bottom: 20px;
  }
  .item-single-contents {
    width: 100%;
  }
  .item-single-desc {
    padding: 15px;
  }
}

/*===================================================================
  entry-form
===================================================================*/

/*========================
  privacy-policy
========================*/
.form-pp {
  margin: 20px 0;
  text-align: center;
}

/*========================
  submit
========================*/
.form-submit {
  text-align: center;
  margin-bottom: 50px;
}

.wpcf7-spinner {
  display: none;
}

/*===================================================================
  used-form
===================================================================*/
.used-form {
  width: 90%;
  max-width: 1150px;
  margin: 0 auto;
  padding-top: 100px;
}

.used-form-tit {
  text-align: center;
  margin-bottom: 50px;
}

.used-form-tit .sp-break {
  display: inline;
}

.used-form h2 {
  margin: 0 auto;
  position: relative;
  display: inline-block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding-bottom: 16px;
  border-top: none;
  border-bottom: none;
}

.used-form h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #da2228;
  border-radius: 2px;
}

/* スマホで改行 */
@media (max-width: 768px) {
  .used-form-tit .sp-break {
    display: block;
  }
}

/*===================================================================
  recruit
===================================================================*/

/*========================
  top
========================*/
/* 採用ページおよびその下層ページ共通 */
body.page-id-33,
body.parent-pageid-33 {
  background-color: #fdf5f6!important;
  position: relative;
  overflow: hidden;
}

/* 要素を最前面へ */
body.page-id-33 .site-body,
body.parent-pageid-33 .site-body {
  z-index: 10;
}
body.page-id-33 .entry-body,
body.parent-pageid-33 .entry-body {
  background-color: #fff;
  padding: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 左上で回転する画像 */
body.page-id-33::before,
body.parent-pageid-33::before {
  content: "";
  position: fixed;
  top: 40px;
  left: 40px;
  width: 300px;
  height: 300px;
  background-image: url('https://toyota-lf.sundesign.jp/machine/wp-content/uploads/2025/11/recruit-circle.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.15;
  animation: rotate-bg 30s linear infinite; /* ゆっくり回転 */
  z-index: 0;
}

/* 右下の静止画像 */
body.page-id-33::after,
body.parent-pageid-33::after {
  content: "";
  position: fixed;
  bottom: -50px;
  right: 0px;
  width: 300px;
  height: 300px;
  background-image: url('https://toyota-lf.sundesign.jp/machine/wp-content/uploads/2025/11/back-img.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: 0; 
}

/* 回転アニメーション */
@keyframes rotate-bg {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.menu {
  background: #fff;
}

/*========================
  menu
========================*/
/* 隙間削除 */
#block-7 {
  display: none;
}

/* メニューリンク全体を左揃えに */
/* .widget_nav_menu .menu-item > a {
  display: inline-block;
  width: calc(100% - 1.5em); 
  text-align: left;
} */

/* サブメニューを初期非表示 */
/* .widget_nav_menu .menu-item-has-children > .sub-menu {
  display: none;
  margin-left: 20px;
} */

/* 追加した「＋」ボタン */
/* .widget_nav_menu .menu-item-has-children > .toggle-btn {
  display: inline-block;
  color: #da2228;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  margin-left: 5px;
  user-select: none;
  transition: transform 0.2s;
} */

/* openクラスで「＋」を回転（＝下向き） */
/* .widget_nav_menu .menu-item-has-children.open > .toggle-btn {
  transform: rotate(45deg);
} */

/*========================
  tab
========================*/
/* ▼ リクルートページ右端の縦書きタブ▼ */
.recruit-tabs {
  position: fixed;
  right: 0;
  top: 20%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 9999;
}

.recruit-tabs .tab-link {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem!important;
  padding: 22px 18px!important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 左端のアクセントライン */
.recruit-tabs .tab-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
}

/* 技術職タブ */
.recruit-tabs .tab-link[href*="engineer"]::before {
  background-color: #da2228;
}

/* 営業職タブ */
.recruit-tabs .tab-link[href*="salesman"]::before {
  background-color: #00889F;
}

/* ホバー時の動き */
.recruit-tabs .tab-link:hover {
  transform: translateX(-5px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

/* ▼ wrapper（タブ＋ボタン） */
.recruit-tabs-wrap {
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none; /* 子要素だけ操作可 */
}

.recruit-tabs-wrap * {
  pointer-events: auto;
}

/* ▼ スマホ専用ボタン（初期は非表示） */
.entry-button-sp {
  display: none;
}


/*========================
  スマホ表示（下部横並びタブ）
========================*/
@media (max-width: 991px) {
  .recruit-tabs {
    flex-direction: row; /* 横並び */
    justify-content: space-between;
    gap: 0;
    z-index: 9999;
    position: static;
  }

  .recruit-tabs .tab-link {
    writing-mode: horizontal-tb; /* 横書き */
    background-color: #333;
    flex: 1; /* 均等幅 */
    text-align: center;
    font-size: 1.3rem;
    padding: 19px 0 15px;
    border-radius: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
  }

  /* 上部のアクセントライン（赤・青） */
  .recruit-tabs .tab-link::before {
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
    border-radius: 0;
  }

  /* ホバー時の動きをスマホでは抑える */
  .recruit-tabs .tab-link:hover {
    transform: none;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
  }

  .recruit-tabs-wrap {
    display: flex;
    flex-direction: column;
  }

  .recruit-tabs {
    order: 1;
  }

  .entry-button-sp {
    order: 2;
    display: block;
    width: 100%;
    background-color: #da2228;
    color: #fff;
    text-align: center;
    padding: 18px 0;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
  }
}

/*========================
  レスポンシブ
========================*/
/* Lightning OuterやCoverのはみ出し対策 */
.vk_outer-container,
.wp-block-cover,
.wp-block-group.alignfull {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}

/*========================
  ハンバーガーメニュー
========================*/
/* スマホ時にサイドメニュー非表示 */
@media screen and (max-width: 991px) {
  .sub-section--col--two.sub-section--pos--left {
    display: none;
  }
}

/* ハンバーガーアイコン */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  pointer-events: auto; /* 念のため有効化 */
  background: rgba(255, 255, 255, 0.7); /* 白半透明 */
  border-radius: 6px; /* 角を少し丸く */
  padding: 8px; /* 内側に余白を追加 */
}
.hamburger span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

/* スマホでのみ表示 */
@media screen and (max-width: 991px) {
  .hamburger {
    display: flex;
  }
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100%;
  background: #333;
  color: #fff;
  transition: right 0.3s ease;
  z-index: 9998;
  padding-top: 60px;
  pointer-events: auto; /* メニューもクリック可能に */
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu ul li a {
  display: block;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.mobile-menu ul li a:hover {
  background: rgba(255,255,255,0.1);
}

/* 開いた状態 */
.mobile-menu.open {
  right: 0;
}

/*===================================================================
  recruit
===================================================================*/
.monthly-jump {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: space-around;
}

.monthly-jump-btn {
  flex: 1 0 80px;   /* ← ここがポイント */
  text-align: center;
  padding: 6px 4px;
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid #ccc;
  text-decoration: none;
  background: #f7f7f7;
}

.monthly-jump-btn.is-active {
  background: #333;
  color: #fff;
  border-color: #333;
}
