/* ページ内共通CSS */
a{
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  text-decoration: none;
  color: #333333;
}

.l_section--primary .m_heading--primary .m_heading__ttl {
  color: var(--theme_hr);
  padding: 5px 0; 
  border-bottom:1px solid #eee;
  width: auto;
  margin: 0;
  font-size: inherit;
}

/* ================
トップ画像
================*/
@media screen and (max-width: 768px) {
  .l_main__body .mainvisual{
    aspect-ratio: 10 / 3;
    background-image: url(/resource/img/consulting/assessment202605/__ie__ins_assessment-service_top.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
    width: auto;
    height: auto;
    padding-top: 0;
    margin-bottom: 10px;
  }
}

/* ================
アセスメント新着情報
================*/
.m_news .m_newsList {
  height: 220px;
}
.m_newsList__text .m_newsList__link {
  font-size: 13px;
}

/* ================
資料ダウンロード
================*/
/* 見出し */
.m_downloadHeading {
  color: var(--theme_hr);
  padding: 5px 0; 
  border-bottom:1px solid #eee;
  margin-bottom: 16px;
}

/* 1件分のカード */
.m_downloadItem {
  display: flex;
  gap: 24px;
  padding: 4px 0;
}

/* サムネイル画像 */
.m_downloadItem__img {
  width: 140px;
  flex-shrink: 0;
}

.m_downloadItem__img img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* テキスト側 */
.m_downloadItem__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* タイトル */
.m_downloadItem__title {
  font-size: 15px;
  font-weight: 900;
  color: #333;
  line-height: 1.4;
  margin: 0 0 8px;
  position: relative;
  padding-left: 14px;
}

.m_downloadItem__title::before {
  content: "";
  position: absolute;  
  left: 0;
  top: 50%;
  transform: translateY(-50%); 
  width: 6px;
  height: 18px;
  background-color: #1a2d5a; 
}

/* 説明文 */
.m_downloadItem__text {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* ボタン配置 */
.m_downloadItem__btnWrap {
  margin-top: auto;
  padding-top: 12px;
}

/* ダウンロードボタン */
.m_downloadItem__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  border: 2px solid #1a2d5a;
  color: #1a2d5a;
  font-size: 12px;
  font-weight: 900;
  padding: 12px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  box-sizing: border-box;
}

.m_downloadItem__btn::before {
  content: "\f019";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 6px;
}

.m_downloadItem__btn:hover {
  background-color: #1a2d5a;
  color: #fff;
}

/* ================
資料ダウンロード
================*/
#downloadDocuments {
  width: calc(50%);
  padding-left: 15px;
}

@media screen and (max-width: 768px) {
  #downloadDocuments {
    width: 100%;
    padding: 0;
    margin-top: 40px;
  }
}

/* ================
一押しサービス・事例
================*/
.infoBoxListWrap {}
.articleBox{
  position: relative;

  &.__large {
    .articleBox__title {
      --articleBox_title_fz: 20px;
      --articleBox_title_lh: 1.3;
      font-size: var(--articleBox_title_fz);
      height: calc(var(--articleBox_title_fz) * 2 * var(--articleBox_title_lh));
    }
    .articleBox__image {
      margin-top: 10px;
    }
  }

  &.__mini {
    padding-top: var(--articleBox_padding);
    padding-bottom: var(--articleBox_padding);
    .articleBox__main{
      display: flex;
      justify-content: space-between;
    }
    &:not(:first-child) {
      border-top: 1px solid #e4e4e4;
    }
    .articleBox__image {
      max-width: 38%; 
      padding-left: 5px;
    }
  }
}

.articleGrid {
  padding-top: 0px;
  padding-bottom: 40px;
  &:not(:last-child) {
    padding-top: 20px;
  }
}

.articleGrid__item {
  --articleBox_padding: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  @media screen and (max-width: 768px) {
    flex-direction: column;
    gap: 0;
  }

  &.__upper {
    @media screen and (max-width: 768px) {
      flex-direction: column;
    }

    .articleGrid__inner.__mainCol {
      width: calc(100% / 3 * 2 - (15px * 2 / 3));
      display: flex;
      justify-content: space-between;
      @media screen and (max-width: 768px) { width: calc(100%);}
      @media screen and (max-width: 599px) { flex-direction: column;}
      .articleBox{
        width: calc(100% / 2 - (15px * 2 / 2));
        padding-bottom: var(--articleBox_padding);
        @media screen and (max-width: 599px) {
          width: calc(100%);
          padding-top: var(--articleBox_padding);
        }
      }
      .articleBox:nth-of-type(2){
        @media screen and (max-width: 599px) {
          border-top: 1px solid #e4e4e4;
        }
      }
    }
    .articleGrid__inner.__subCol {
      width: calc(100% / 3 * 1 - (15px * 4 / 3));
      @media screen and (max-width: 768px) {
        width: calc(100%);
        border-top: 1px solid #e4e4e4;
      }
      .__mini:first-of-type{
        padding-top: 0;
        @media screen and (max-width: 768px) { padding-top: var(--articleBox_padding);}
      }
    }
  }

  &.__lower {
    .articleGrid__inner {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      @media screen and (max-width: 768px) {
        border-top: 1px solid #E4E4E4;
      }
      .articleBox{
        border-top: 1px solid #E4E4E4;
        width: calc(100% / 3 - (15px * 4 / 3));
        @media screen and (max-width: 768px) {
          width: calc(100% / 2 - (15px * 2 / 2));
        }
        .articleBox__title {
          @media screen and (max-width: 768px) {
            --articleBox_title_fz: 12px;
          }
        }
      }
      .articleBox:nth-of-type(1),
      .articleBox:nth-of-type(2){
        @media screen and (max-width: 768px) {
          border: none;
        }
      }
      .articleBox:nth-of-type(3){
        @media screen and (max-width: 599px) {
          border-top: 1px solid #E4E4E4;
        }
      }
    }
  }

  &:is(.__upper, .__lower) {
    .articleGrid__inner {
    @media screen and (max-width: 599px) { width: 100%; }
    }
  }
}

.articleBox__title {
  .panelSlider & {
    --articleBox_title_fz: 14px;
  }
  --articleBox_title_fz: 14px;
  --articleBox_title_lh: 1.5;
  font-size: var(--articleBox_title_fz);
  font-weight: bold;
  line-height: var(--articleBox_title_lh);
  -webkit-box-orient: vertical;
  display: -webkit-box;
  font-size: var(--articleBox_title_fz);
  font-weight: bold;
  height: calc(var(--articleBox_title_fz) * 2 * var(--articleBox_title_lh));
  -webkit-line-clamp: 2;
  line-height: var(--articleBox_title_lh);
  overflow: hidden;
  text-overflow: ellipsis;
  &:has(+ .articleBox__attribute) { margin-bottom: 8px; }
}
.articleBox__link {
  transition: .3s opacity;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  &:hover{
    opacity: .6;
  }
}
.articleBox__image {
  line-height: 0;
  img {
    height: auto;
    width: 100%;
  }

  &:has([src$="webinsource_logo_color.svg"]) {
    border: 1px solid #e4e4e4;
    margin-bottom: 10px;
    padding: 10px;
  }

  &:has(a) { position: relative; }
}

.articleBox__extra{
  display: flex;
  flex-wrap: wrap;
  align-items:center;
  line-height: 1;
  margin-top: 5px;
  gap: 5px 10px;

  .articleBox__type{
    font-size: 12px;
    color: #666;

    &.articleBox__type--bup{
      color: var(--theme_bup);
    }
  }

  .articleBox__date {
    font-size: 12px;
    color: var(--theme_date);
    width: fit-content;
  }
}

/* ================
サービス一覧
================*/
.m_serviceGraph__wrap .m_serviceGraph__lineList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.m_serviceGraph__wrap .m_serviceGraph__lineItem {
  width: 100%;
}

.m_serviceGraph__lineItem .m_serviceGraph__lineTarget {
  height: auto;
  min-height: 40px;
  line-height: 1.3;
  font-size: 14px;
}

.m_lineUp__card .m_lineUp__cardWrap {
  color: inherit;
}

.m_lineUp__cardInner .m_lineUp__cardTtl {
  font-weight: bold;
}

.m_lineUp__cardTtl--narrow {
  letter-spacing: -0.5px
}

.m_lineUp__cardInner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.m_lineUp__cardInner .m_lineUp__cardCopy {
  font-size: 14px;
  text-align: left;
  font-weight: 400;
  padding-bottom: 20px;
}

.m_lineUp__cardWrap .m_lineUp__cardTag--static {
  position: static;
}

.m_lineUp__cardPrice {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
  margin-bottom: 12px; 
}

.m_lineUp__cardPriceLbl {
  font-size: 11px;
  font-weight: bold;
  color: #6b7280;
}

.m_lineUp__cardPriceNum {
  font-size: 18px;
  font-weight: 900;
  color: var(--theme_hr);
  line-height: 1;
}

.m_lineUp__cardPriceUnit {
  font-size: 10px;
  font-weight: bold;
  color: #4b5563;
}

@media screen and (max-width: 768px) {
  .m_lineUp__cardPrice {
    padding-top: 8px;
    margin-bottom: 8px;
  }
  .m_lineUp__cardPriceNum {
    font-size: 16px; 
  }
}