/*
 * 子テーマ独自の追加CSS
 * ここにこれまで相談してきたスタイル調整を書き足していけます。
 */

/* ==========================================================
   固定ページタイトル（COMPANY / RECRUIT など見出し部分）
   ========================================================== */

/* 固定ページのメインコンテンツ：サイドバー分の右マージンを打ち消す */
.page-template-default #main_content {
  max-width: 100%;
  margin: 0;
  margin-top: 74px;
}
.p-drawer__inner{
  z-index: 99;
}
[data-drawer=opened] .p-drawerUnderlayer{
  visibility: hidden;
}
.c-drawerNav__a{
  font-size: 16px;
}
/* 親テーマの l-content__top / p-topArea のデフォルト余白・背景演出を打ち消す（top_area/singular.php使用時用） */
#top_title_area.p-topArea {
  padding: 0;
  overflow: visible;
}

.c-pageTitle {
  position: relative;
  background: #fff;
}

/* タイトル・サブタイトル部分 */
.c-pageTitle__inner {
  padding: 88px 0 137px 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.c-pageTitle__main {
  font-size: 78px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  margin: 0 0 12px;
  text-transform: uppercase; /* スラッグを大文字表示 */
  font-family: "Archivo", sans-serif;
}

.c-pageTitle__sub {
  font-size: 20px;
  font-weight: 500;
  color: #333;
  font-style: normal;
  margin-left: 0 !important;
}
.c-pageTitle__sub::before,.c-pageTitle__sub::after{
  content: "";
  margin: 0;
}

/* 左端のパンくず（other/breadcrumb.php を縦書き表示） */
.c-pageTitle__breadcrumb {
  position: absolute;
  left: 68px;
  top: 0; 
  z-index: 2;
  height: 150px;
}

.c-pageTitle__breadcrumb #breadcrumb {
  width: auto;      /* 親テーマの width:100% を打ち消す */
  padding: 0;        /* 親テーマの padding: 8px 0; を打ち消す */
  margin: 0;          /* 親テーマの margin: 0 auto; を打ち消す */
  writing-mode: vertical-rl;
}

.c-pageTitle__breadcrumb .p-breadcrumb__list {
  display: flex;
  flex-wrap: nowrap;   /* 親テーマの flex-wrap: wrap; を打ち消す */
  flex-direction: row;
  align-items: center;
  width: auto;         /* 親テーマの width:100% を打ち消す */
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-pageTitle__breadcrumb .p-breadcrumb__item {
  position: relative;
  display: flex;
  align-items: center;
  max-width: none;      /* 親テーマの max-width:100% を打ち消す */
  padding: 0;            /* 親テーマの padding-right:12px; を打ち消す */
  margin: 0;               /* 親テーマの margin-right:10px; を打ち消す */
  font-size: 14px;
  letter-spacing: 2px;
}

/* 親テーマの矢印区切り(::after)は非表示にして、自前のダッシュ区切りに差し替え */
.c-pageTitle__breadcrumb .p-breadcrumb__item::after {
  content: none;
}

.c-pageTitle__breadcrumb .p-breadcrumb__item + .p-breadcrumb__item::before {
  content: "―";
  display: block;
  margin: 11px 0;
  color: #A6A6A6;
}
.c-pageTitle__breadcrumb .p-breadcrumb__text {
  color: #021B4D;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  writing-mode: sideways-rl;
}

/* パンくず内のホームアイコンは縦書きデザインでは不要なため非表示 */
.c-pageTitle__breadcrumb .p-breadcrumb__text svg {
  display: none;
}

/* アイキャッチ画像部分 */
.c-pageTitle__img {
  width: 100%;
  position: relative;
  padding-left: 120px;
  background: linear-gradient(180deg, #fff 0%, #fff 50%, #021B4D 50%, #021B4D 100%);
}

.c-pageTitle__img img {
  width: 100%;
  height: 400px; /* 画像の高さ。デザインに合わせて調整してください */
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 767px) {
  .page-template-default #main_content {
    max-width: 100%;
    margin: 0;
    margin-top: 60px;
  }
  .c-pageTitle__inner {
    padding: 40px 0 60px 30px;
  }
  .c-pageTitle__main {
    font-size: 36px;
  }
  .c-pageTitle__sub {
    font-size: 16px;
  }
  .c-pageTitle__img img {
    height: 220px;
  }
  .c-pageTitle__breadcrumb {
    left: 5px;
  }
  .c-pageTitle__breadcrumb .p-breadcrumb__text{
    font-size: 10px;
  }
  .c-pageTitle__img {
    padding-left: 30px;
  }
}

.page-template-page02 #main_content {
  max-width: 100%;
  margin: 0;
  margin-top: 74px;
}
.page-template-page02 .p-page__title{
  margin-bottom: 0;
}
.bg_twocolor_20{
  padding-top: 140px;
  position: relative;
  z-index: 0;
  background: linear-gradient(180deg, #021B4D 0%, #021B4D 80%, #fff 80%, #fff 100%);
}
.bg_twocolor_20::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20% 100%;
  z-index: -1;
}
.company_title{
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  line-height: 160%;
  letter-spacing: 0;
  margin: 0 0 10px;
}
.company_txt{
  font-size: 16px;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: 0;
  margin: 0 0 19px;
  color: #fff;
  text-align: center;
}
.company_img{
  margin-left: 30px;
}

.bg_white{
  padding: 120px 0;
  position: relative;
  z-index: 0;
  margin-top: 0;
}
.textRight{
  text-align: right;
}
.links{
  text-align: right;
  font-size: 20px;
}
.mb80{
  margin-bottom: 80px;
}
.mb10{
  margin-bottom: 10px;
}
.mb40{
  margin-bottom: 40px;
}
.mb30{
  margin-bottom: 30px !important;
}
.fs18{
  font-size: 18px;
}
.bg_white::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, #E5E5E5 1px, transparent 1px);
  background-size: 20% 100%;
  z-index: -1;
}
.entitle{
  font-size: 68px;
  font-weight: 400;
  font-family: "Archivo", sans-serif;
  line-height: 100%;
  letter-spacing: 0;
  color: #021B4D;
  margin: 0 0 4px;
}
.bg_gray{
  position: relative;
  background-color: #F4F5F8;
  z-index: 0;
  padding: 120px 0;
}
.bg_gray::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, #E5E5E5 1px, transparent 1px);
  background-size: 20% 100%;
  z-index: -1;
}

table.type1 {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px; /* 行と行の間にすき間を作る */
}

table.type1 tr {
  border: none; /* tr自体には枠線をつけない */
}

table.type1 th,
table.type1 td {
  border: #021B4D solid 1px;
}

table.type1 th {
  width: 240px;
  background-color: #021B4D;
  text-align: center;
  vertical-align: middle;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 160%;
  padding: 20px 10px;
  border-right: none; /* thとtdの境界線を1本にまとめる */
}

table.type1 td {
  background-color: #fff;
  padding: 20px 25px !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 160%;
  vertical-align: middle;
}
@media (max-width: 768px) {
  table.type1 th {
    font-size: 14px;
  }
  table.type1 td {
    font-size: 14px;
    padding: 15px !important;
  }
}
.company_txt2{
  font-size: 16px;
  font-weight: 500;
  color: #333;
}
.company_txt3{
  font-size: 16px;
  font-weight: 500;
  color: #A6A6A6;
}
.titleh3{
  font-size: 42px;
  font-weight: 500;
  margin: 0 0 16px;
  color: #021B4D;
  line-height: 160%;
}
.titleh3._center{
  text-align: center;
}
.titleh4{
  font-size: 26px;
  font-weight: 700;
  padding-left: 40px;
  position: relative;
  color: #021B4D;
  margin: 0 0 30px;
  line-height: 140%;
}
.titleh4::before {
    content: "";
    position: absolute;
    width: 32px;
    height: 1px;
    background-color: #021B4D;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    left: 0;
}
.bg_blue{
  background-color: #021B4D;
  padding: 120px 0;
  position: relative;
  z-index: 0;
}
.bg_blue::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20% 100%;
  z-index: -1;
}
.bg_blue .entitle,.bg_blue .subtitle{
  color: #fff;
}
.bg_blue .subtitle::before{
  background-color: #fff;
}
.selection-inr{
  height: 222px;
  display: grid;
  grid-template-columns: 1fr 35% 35%;
}
.selection-inr .selectionbox{
  padding: 44px 0 44px 30px;
  background-color: rgba(255,255,255);
  position: relative;
}
.selection-inr .selectionbox._02{
  padding-left: 98px;
  background-color: rgba(231,231,231);
}
.selection-inr .selectionbox._02::before{
  right: -44px;
  border-color: transparent transparent transparent rgba(231,231,231);
}
.selection-inr .selectionbox._03{
  padding-right: 50px;
  padding-left: 98px;
  background-color: rgba(217,217,217);
}
.selection-inr .selectionbox._03::before{
  display: none;
}
.selection-inr .selectionbox::before{
  content: "";
  position: absolute;
  border-style:solid;
  right: -44px;
  top: 0;
  height: 100%;
  border-width: 135px 0 135px 44px;
  border-color: transparent transparent transparent rgba(255,255,255);
  z-index: 1;
}
.selection-inr .selectionbox .selflex{
  display: flex;
  gap: 0 12px;
  margin-bottom: 36px;
  align-items: center;
}
.selection-inr .selectionbox .selflex .sel-number p{
  font-size: 88px;
  color: #021B4D;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 0;
  font-family: "Inter", sans-serif;
}
.selection-inr .selectionbox .selflex .sel-txtbox p{
  font-size: 20px;
  line-height: 160%;
  letter-spacing: 0;
  font-family: "Inter", sans-serif;
  color: #333;
}
.sel-txt{
  font-size: 16px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
}
.project-map{
  display: block;
}
.project-title h3{
  width: 112px;
  height: 46px;
  background-color: #021B4D;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 160%;
  letter-spacing: 0;
}
.project-title._02 h3{
  width: 136px;
}
.project-mapbox{
  margin-bottom: 70px;
  position: relative;
}
.project-mapbox._02{
  margin-bottom: 0;
}
.project-mapbox img{
  width: 60%;
  margin: 0 auto;
  text-align: center;
  display: block;
}
.project-map._02 .project-mapbox{
  width: 100%;
}
@media screen and (max-width: 767px) {
  .page-template-page02 #main_content {
    margin-top: 60px;
  }
  .bg_twocolor_20{
    padding-top: 60px;
    background: linear-gradient(180deg, #021B4D 0%, #021B4D 90%, #fff 90%, #fff 100%);
  }
  .company_title{
    font-size: 28px;
  }
  .company_txt{
    font-size: 14px;
    text-align: left;
  }
  .spmb40{
    margin-bottom: 40px !important;
  }
  .spmb30{
    margin-bottom: 30px !important;
  }
  .bg_white{
    padding: 60px 0;
  }
  table.type1 th {
    width: 100px;
  }
  .bg_gray{
    padding: 60px 0;
  }
  .titleh3{
    font-size: 36px;
  }
  .titleh3._center{
    text-align: center;
  }
  .titleh4{
    font-size: 24px;
  }
  .bg_blue{
    padding: 60px 0;
  }
  .selection-inr{
    height: 150px;
    display: grid;
    grid-template-columns: 1fr 35% 35%;
  }
  .selection-inr .selectionbox{
    padding: 20px 0 20px 20px;
    background-color: rgba(255,255,255);
    position: relative;
  }
  .selection-inr .selectionbox._02{
    padding-left: 30px;
    background-color: rgba(231,231,231);
  }
  .selection-inr .selectionbox._02::before{
    right: -14px;
    border-color: transparent transparent transparent rgba(231,231,231);
  }
  .selection-inr .selectionbox._03{
    padding-right: 10px;
    padding-left: 20px;
    background-color: rgba(217,217,217);
  }
  .selection-inr .selectionbox._03::before{
    display: none;
  }
  .selection-inr .selectionbox::before{
    content: "";
    position: absolute;
    border-style:solid;
    right: -14px;
    top: 0;
    border-width: 97px 0 97px 15px;
    border-color: transparent transparent transparent rgba(255,255,255);
    z-index: 1;
  }
  .selection-inr .selectionbox .selflex{
    display: block;
    gap: 0 8px;
    margin-bottom: 10px;
    align-items: center;
  }
  .selection-inr .selectionbox .selflex .sel-number p{
    font-size: 32px;
    color: #021B4D;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0;
    font-family: "Inter", sans-serif;
  }
  .selection-inr .selectionbox .selflex .sel-txtbox p{
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0;
    font-family: "Inter", sans-serif;
    color: #333;
  }
  .sel-txt{
    font-size: 12px;
    font-weight: 500;
    font-family: "Inter", sans-serif;
  }
  .project-map{
    display: block;
    gap: 0;
  }
  .project-title{
    margin-bottom: 20px;
  }
  .project-title h3{
    width: 85px;
    height: 30px;
    font-size: 16px;
  }
  .project-mapbox img{
    width: 100%;
  }
  .project-map._02 .project-mapbox img{
   width: 100%;
  }
}
.type1 .qual-table {
    border-right: none;
    border-collapse: collapse;
    width: auto;
}
.type1 .qual-table td {
    border: none;
    padding: 0 20px 2px 0 !important;
    background: none;
}
.type1 .qual-table td:first-child {
    padding-right: 1em;
}
.type1 .qual-table td:last-child {
    text-align: left;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .type1 .qual-table tr {
        display: block !important;
        width: 100%;
        padding-bottom: 5px;
    }
    .type1 .qual-table tr {
        display: flex;
        justify-content: space-between;
    }
    .type1 .qual-table td {
        display: inline;
        padding: 0 !important;
    }
    .type1 .qual-table td:first-child {
        padding-right: 0.5em;
    }
}
