@charset "utf-8";

@media screen and (max-width: 768px){
  .mainvisual {
    background-image: url(/resource/img/consulting/hr_service/__ins_consulting-service_top.png);
  }
}

.m_newsList__addition{
  display: flex;
  align-items: center;
}
.m_newsList__ttl{
  width: 100%;
  font-size: 13px;
}
.m_newsList__target{
  color: #333;
}
.m_newsList__btn{
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  margin-bottom: 8px;
  margin-right: 8px;
}
.m_newsList__btnTarget{
  border: 1px solid #383838;
  padding: 0 24px;
  color: #333;
  line-height: 1;
  letter-spacing: 2px;
  font-size: 12px;
  transition: .2s background;
  display: flex;
  justify-content: center;
  align-items: center;
}
.m_newsList__btnTarget::before {
  content: "";
  height: 1em;
  padding: 4px 0;
}

/* 価格表 */
.m_priceList{
  width: calc(50%);
  padding-left: 15px;
  position: relative;
}
.m_priceListHeading{
  display: inline-block;
  color: #fff;
  background-color: var(--theme_hr);
  padding: 5px 10px 5px 10px;
}
.m_priceList__tableWrapper{}
.m_priceList__modalTrigger{
  position: absolute;
  color: var(--theme_hr);
  border: 3px solid #333;
  border-color: var(--theme_hr);
  border-radius: 50%;
  background-color: #fff;
  bottom: 15px;
  right: 15px;
  font-size: 30px;
  padding: 10px;
}
.m_priceList__modalTrigger:hover{
  color: #fff;
  background-color:var(--theme_hr);
}
.m_priceList__tableWrapper--simple .m_priceList__modalClose{
  display:none;
}
.m_priceList__table{
  border: 1px solid #51350B;
}
.m_priceList__serviceTtl{
  font-weight: bold;
}
.m_priceList__serviceDuration{
  text-align: center;
}
.m_priceList__servicePrice{
  text-align: right;
}
.m_priceList__attention{
  font-size: 12px;
}
.m_priceList__table th,
.m_priceList__table td{
  padding: 10px;
  vertical-align: middle;
}
.m_priceList__table tr{
  border-top: 1px solid #51350B;
}
.m_priceList__table tr:nth-of-type(2n){
  background-color:#E5E1DA;
}
.m_priceList__table td{}
.m_priceList__table th + th{
  border-left: 1px dashed #fff;
}
.m_priceList__table td + td{
  border-left: 1px dashed #51350B;
}
.m_priceList__table thead{
  background-color: #51350B;
  text-align: left;
}
.m_priceList__table thead tr{}
.m_priceList__table thead th{
  color: #fff;
}
.m_priceList__table tbody{
  text-align:left;
}
@media screen and (max-width: 768px){
  .m_priceList{
    width: 100%;
    padding: 0;
    margin-top: 40px;
  }
}
/* 簡易版表 */
.m_priceList__tableWrapper--simple{
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  font-weight: bold;
  max-height: 356px;
  overflow-y: auto;
  .m_priceList__dsNone--simple{
    display :none;
  }
  .m_priceList__table{
    border:none;
    width: 100%;
  }
  .m_priceList__serviceDesc{
    display: none;
  }
  .m_priceList__servicePrice{
    width: 46%;
  }
  .m_priceList__attention{
    font-size: 10px;
  }
  thead{
    display: none;
  }
  .m_priceList__table td + td{
    border: none;
    text-align:left;
  }
  .m_priceList__table tr{
    border:none;
  }
  th:nth-of-type(2),
  th:nth-of-type(3),
  td:nth-of-type(2),
  td:nth-of-type(3){
    display: none;
  }
}

/* プラン*/
.m_planList {
  margin: 16px 0px 0
}
.m_planList__item {}
.m_planList__item + .m_planList__item{
  margin-top: 30px
}
.m_plan{}
.m_plan__inner{
  margin-top: 10px;
  padding-left: 30px;
}
.m_plan__ttlWrap{
  color: #333;
  border-left: 10px solid #333;
  border-color: var(--theme_hr);
  padding: 0;
  padding-left: 20px;
}
.m_plan__ttl{
  font-size: 20px;
}
.m_plan__body{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start
}
.m_plan__desc{
  margin-right: 20px;
}
.m_plan__btnTarget{
  position:relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 170px;
  height: 60px;
  border: 1px solid #333;
  border-color:var(--theme_hr);
  border-radius:8px;
  color:var(--theme_hr);
  font-size: 14px;
}
.m_plan__btnTarget:before{
  position: absolute;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  right: 14px;
}
.m_plan__btnTarget:after{
  content:"";
  border-radius: 50%;
  background-color: var(--theme_hr);
  color: #fff;
  width: 22px;
  height: 22px;
  margin-left: 5px;
}
.m_plan__btnTarget:hover{
  background-color:var(--theme_hr);
  color: #fff;
}
.m_plan__btnTarget:hover:before{
  color: var(--theme_hr);
}
.m_plan__btnTarget:hover:after{
  background-color: #fff;
}
.m_plan__serviceList{
  margin-top:30px;
  position: relative;
}
.m_plan__serviceList__ttl{
  color: var(--theme_hr);
  font-size: 13px;
  font-weight: bold;
}
.m_plan__serviceList__list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 5px;
}
.m_plan__serviceList__list:after {
  content:"";
  width: calc(100% / 3 - (15px * 4 / 3));
}

.m_plan__detail{
  width: calc(100% / 3 - (15px * 4 / 3));
  --m_plan__detail_padding: 15px;
  padding-top: var(--m_plan__detail_padding);
  padding-bottom: var(--m_plan__detail_padding);
}
.m_plan__detail__main{
  display: flex;
  justify-content: space-between;
}
.m_plan__detail__title {
  color: #333;
  --m_plan__detail_title_fz: 14px;
  --m_plan__detail_title_lh: 1.5;
  font-size: var(--m_plan__detail_title_fz);
  font-weight: bold;
  line-height: var(--m_plan__detail_title_lh);
  -webkit-box-orient: vertical;
  display: -webkit-box;
  font-size: var(--m_plan__detail_title_fz);
  font-weight: bold;
  height: calc(var(--m_plan__detail_title_fz) * 2 * var(--m_plan__detail_title_lh));
  -webkit-line-clamp: 2;
  line-height: var(--m_plan__detail_title_lh);
  overflow: hidden;
  text-overflow: ellipsis;
  &:has(+ .m_plan__detail__attribute) { margin-bottom: 8px; }
}
.m_plan__detail__link {
  transition: .3s opacity;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  &:hover{
    opacity: .6;
  }
}
.m_plan__detail__image {
  line-height: 0;
  width: 38%;
  padding-left: 5px;
  img {
    height: auto;
    width: 100%;
  }
  &:has([src$="webinsource_logo_color.svg"]) {
    border: 1px solid #e4e4e4;
    margin-bottom: 10px;
    padding: 10px;
  }
  &:has(a) { position: relative; }
}

.m_plan__detail__extra{
  display: flex;
  flex-wrap: wrap;
  align-items:center;
  line-height: 1;
  margin-top: 5px;
  gap: 5px 10px;
  .m_plan__detail__type{
    font-size: 12px;
    color: #666;
    &.m_plan__detail__type--bup{
      color: var(--theme_bup);
    }
  }
  .m_plan__detail__date {
    font-size: 12px;
    color: var(--theme_date);
    width: fit-content;
  }
}
@media screen and (max-width: 768px) {
  .m_planList {
    margin: 16px 0 0;
  }
  .m_plan {
    overflow:hidden!important
  }
  .m_plan__inner{
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .m_plan__ttl {
    width: 100%;
  }
  .m_plan__body{
    width: 100%;
    display: block;
  }
  .m_plan__btnTarget{
    margin: 0 0 0 auto;
    margin-top: 10px;
    height: 40px;
  }
  .m_plan__detail{ width: calc(100% / 2 - (15px * 2 / 2));}
  .m_plan__detail__inner {border-top: 1px solid #E4E4E4;}
  .m_plan__detail__title {
    --m_plan__detail_title_fz: 12px;
  }
  .m_plan__detail:nth-of-type(1),
  .m_plan__detail:nth-of-type(2){
    border: none;
  }
}
@media screen and (max-width: 599px) {
  .m_plan__detail__inner {width: 100%;}
  .m_plan__detail:nth-of-type(3){
    border-top: 1px solid #E4E4E4;
  }
}

/* -----------
ご相談はこちら
----------- */
.m_inquirySec{
  border: 20px solid #E6E6E6;
  padding: 20px;
}
.m_inquirySec__txt{
  text-align: center;
  font-weight: bold;
}
.m_inquirySec__btnWrap{
  display:flex;
  gap: 20px;
  margin-top: 20px;
}
.m_inquirySec__btn {
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 62px;
  color: var(--theme_hr);
  border: 1px solid #333;
  border-color: var(--theme_hr);
  border-radius: 30px;
}
.m_inquirySec__btn:hover{
  color: #fff;
  background-color: var(--theme_hr);
}
.m_inquirySec__btn.m_inquirySec__btn--shodan{
  color: #fff;
  background-color: var(--theme_hr);
}
.m_inquirySec__btn.m_inquirySec__btn--shodan:hover{
  color: var(--theme_hr);
  background-color: #fff;
}
.m_inquirySec__btn.m_inquirySec__btn--inquiry{}
@media screen and (max-width: 599px) {
  .m_inquirySec__btnWrap{
    justify-content: center;
    flex-wrap: wrap;
  }
  .m_inquirySec__btn {
    max-width: 300px;
    min-width: 250px;
  }
}

/* -----------
QAリスト
----------- */
.m_qaList{}
.m_qaList__item{}
.m_qaList__item + .m_qaList__item{
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #bbb;
}

/* QA */
.m_qa {}
.m_qa__q, .m_qa__a {
  display: flex;
  align-items: center;
  list-style: none;
  position: relative;
}
.m_qa__q{
  margin-bottom: 20px;
}
.m_qa__q:before, .m_qa__a:before {
  display: flex;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -19px;
}
.m_qa__text {
  padding-left: 40px;
}
.m_qa__link:hover {
  opacity: 0.6;
  transition: .4s;
}

/* お役立ちコラム */
.l_sec__item.m_lineup {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.m_lineup__item__ttl {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 0px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #333333;
  text-rendering: optimizelegibility;
}
.m_lineup__item__date {
  font-size: 12px;
  color: #d66c00;
}
.m_lineup__item__imgMain {
  width: 100%;
}
.m_lineup__item__link {
  color: #333;
  text-decoration: none;
  transition: .3s;
}
.m_lineup__item__link:hover {
  opacity: .6;
}
@media screen and (max-width: 768px) {
  .l_sec__item.m_lineup {
    grid-template-columns: 1fr;
  }
}
.m_column__link {
  display: flex;
  justify-content: flex-end;
}

/*********
js
**********/
/* モーダル */

/* 背景 */
.js_priceList__modalBg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999998;
}
.js_priceList__modalBg.is_active {
  opacity: 1;
  visibility: visible;
}

/* モーダル中身 */
.js_priceList__modal{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 1167px;
  max-height: 90vh;
  background: #fff;
  opacity: 0;
  overflow: visible;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999999;
  font-family: helvetica neue, noto sans jp, yu gothic, YuGothic, ヒラギノ角ゴ pron w3, hiragino kaku gothic pron, Arial, メイリオ, Meiryo, sans-serif;
  line-height: 1.5;
  padding:30px;
}
.js_priceList__modal.is_active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
/*　要注意（現状維持）:
   セレクタの起点が汎用の .is_active のため、th/td の nth-of-type 指定が
   「.is_active を持つ任意の要素の中の表」に効いてしまう。
   このページには該当する表が価格表しかないため現状は無害。
   将来 .is_active を持つ要素内に表を置く場合は .js_priceList__modal 起点に
   限定すること（今回のリファクタでは値・挙動を変えないため未修正）。 */
.is_active{
  .m_priceList__modalClose {
    position: absolute;
    top: -45px;
    right: -30px;
    font-size: 50px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
  }
  .m_priceList__modalClose:hover {
    opacity: 0.6;
  }
  .m_priceList__table{
    width: 1090px;
  }
  .m_priceList__serviceDesc{
    display:block;
    margin-top:5px;
  }
  th:nth-of-type(1){ width: 50%;}
  th:nth-of-type(2){ width: 25%;}
  th:nth-of-type(3){ width: 10%;}
  th:nth-of-type(4){ width: 15%;}
}
/* モーダル内スクロール用ラッパー */
.m_priceList__modalContent {
  max-height: 80vh;
  overflow: auto;
  padding-bottom: 5px;
}
@media screen and (max-width: 768px){
  .m_priceList__modalContent {
    padding: 0 10px 10px 0;
  }
}
