/* コンポーネント指定 */
:root {
  --color_black: #1e1e1e;
  --color_back: #f2f2f6;
  --color_cta: #ff9600;
  --color_gray02: #C8C8C8;
  --text-2sm: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 22px;
  --height-2sm: 18px;
  --height-sm: 22px;
  --height-base: 24px;
  --height-lg: 24px;
  --height-xl: 28px;
  --height-2xl: 30px;
}

/* CTA */
.w-beforeToc,
.archive-cta {
  margin-top: 40px !important;
  margin-bottom: 56px !important;
}

.main-cta {
  position: relative;
  max-width: 640px;
  margin: auto;
  border-radius: 8px;
}

.main-cta-img {
  width: 100%;
  border-radius: 8px;
}

.main-cta-btn {
  bottom: 20px;
  max-width: 264px;
  width: calc(100% - 120px);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0;
  background: var(--the-btn-bg);
  border-radius: var(--the-btn-radius, 0);
  letter-spacing: var(--swl-letter_spacing, 1px);
  line-height: 1.5;
  margin: 0;
  min-width: var(--the-min-width);
  padding: var(--the-padding);
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  border: #fff 2px solid;
  background-color: #ff9600;
  border: #fff 2px solid;
  border-radius: 8px;
}

.main-cta-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
    0 12px 24px -12px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

@media screen and (max-width: 767px) {
  .main-cta-btn {
    width: calc(100% - 48px);
  }
}

.main-cta .swell-block-button__link {
  margin-bottom: 0;
}

.main-cta-btn .swell-block-button__link {
  width: 100%;
}

.main-cta-btn svg {
  right: 24px;
  position: absolute;
}

.side-cta .main-cta-btn {
  bottom: 20px;
  width: calc(100% - 48px);
}

/* 固定フッター */
#footer-banner {
  display: none;
  width: 100%;
  padding: 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999;
  transition: all 0.2s;
  line-height: 0;
}

#footer-banner .inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

#footer-banner .footer-banner-link {
  transition: all 0.3s;
}

#footer-banner .footer-banner-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

#footer-banner .footer-banner-link svg {
  display: block;
  width: 20px;
  height: 20px;
  margin-left: 12px;
  transition: all 0.3s;
}

#footer-banner .footer-banner-link img {
  width: 100%;
  max-width: 600px;
}

#footer-banner_close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  background-color: #fff;
}

@media screen and (max-width: 767px) {
  #footer-banner {
    padding: 8px 12px;
  }

  #footer-banner .footer-banner-link svg {
    width: 12px;
    height: 12px;
    margin-left: 4px;
  }

  @media screen and (max-width: 599px) {
    #footer-banner {
      padding: 0;
    }

    #footer-banner .footer-banner-link svg {
      display: none;
    }
  }
}

.p-fixBtnWrap {
  bottom: 7.5em !important;
}

@media screen and (max-width: 599px) {
  .p-fixBtnWrap {
    bottom: 4.5em !important;
  }
}

/* 関連する案件 */
.job-title {
  color: var(--color_main);
  font-size: var(--text-xl);
  font-weight: bold;
  line-height: var(--height-base);
  padding-bottom: 12px;
  text-align: center;
  position: relative;
  margin-bottom: 40px;
}

.job-title:after {
  content: "";
  background-color: var(--color_main);
  width: 88px;
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.job-container {
  background-color: var(--color_back);
  padding: 56px 20px 48px;
  position: relative;
  max-width: 1056px;
  margin: 24px auto 0;
}

@media screen and (max-width: 599px) {
  .job-container {
    padding: 56px 20px 48px;
  }
}

.job-swiper {
  padding: 0 4px;
  position: initial !important;
}

.job-wrapper {
  padding: 4px 0;
}

@media screen and (max-width: 599px) {
  .swiper-wrapper {
    max-width: calc(100% - 100px) !important;
  }
}

.job-col {
  padding: 24px 16px;
  border-radius: 8px;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.15);
  background-color: #fff;
  align-self: stretch;
  height: auto !important;
  color: var(--color_black);
  text-decoration-line: none;
  text-align: left;
}

.job-col:hover {
  background-color: var(--color_main);
}

.job-col-main {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color_gray02);
}

.job-col-sub {
  margin-top: 16px;
}

.job-col-module {
  padding: 2px 8px;
  background-color: #f89600;
  color: #fff;
  font-size: var(--text-sm);
  line-height: var(--height-sm);
  margin-right: 8px;
  margin-bottom: 8px;
  display: inline-block;
}

.job-col .job_title {
  color: #f89600;
  font-size: var(--text-lg);
  font-weight: bold;
  line-height: var(--height-lg);
  text-align: left;
  margin-bottom: 16px;
}

.job-col:hover .job_title {
  color: #fff;
}

.job-col:hover * {
  color: #fff;
}

.job-col:hover img {
  filter: invert(100%);
}

.job-col dl {
  display: flex;
  margin-bottom: 6px;
  gap: 4px;
}

.job-col dt {
  font-size: var(--text-sm);
  line-height: var(--height-sm);
  font-weight: bold;
  min-width: 72px;
}

.job-col .job-col-main dt {
  min-width: initial;
  margin-right: 8px;
}

.job-col .job-col-main dt img {
  margin-bottom: 0 !important;
}

.job-col dd {
  font-size: var(--text-sm);
  line-height: var(--height-sm);
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.job-col .job-col-main dd {
  font-size: var(--text-base);
  line-height: var(--height-base);
}

.job-col-income {
  font-size: var(--text-xl);
  line-height: var(--height-xl);
  color: var(--color_cta);
  font-weight: bold;
  margin: 0 4px;
}

.main_area {
  font-size: var(--text-base);
  line-height: var(--height-base);
}

.sub_area {
  display: block;
  margin-left: 8px;
  font-size: var(--text-2sm);
  line-height: var(--height-2sm);
}

.sub_area:before {
  content: "- ";
}

.swiper-button-next,
.swiper-button-prev {
  background-color: var(--color_main) !important;
  border-radius: 50%;
  width: 48px !important;
  top: 50% !important;
  width: 48px !important;
  height: 48px !important;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
}

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

.job-col .btn_inner:hover {
  background-color: var(--color_cta) !important;
  color: #fff !important;
}

.swiper-button-next {
  right: -24px !important;
}

.swiper-button-prev {
  left: -24px !important;
}

.job-col:hover {
  opacity: 0.8;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  height: calc(var(--swiper-nav-size) * 0.4) !important;
  width: calc(var(--swiper-nav-size) * 0.4) !important;
  -webkit-transform: rotate(35deg) skew(-10deg, 10deg) !important;
  transform: rotate(35deg) skew(-10deg, 10deg) !important;
}

.swiper-button-prev:after {
  left: calc(var(--swiper-nav-size) * 0.15) !important;
}

.swiper-button-next:after {
  right: 0 !important;
}

.job-button {
  margin-top: 24px;
  font-weight: bold;
}

/* カテゴリーと記事一覧のツリー構造 */
#customize-tree {
  padding: 0;
}

#customize-tree .children {
  padding: 0;
  list-style: none;
  display: none; /* 初期状態で非表示 */
}

#customize-tree .children.visible {
  display: block; /* 表示時 */
}
