/*
 Theme Name:   FAKE Child
 Template:     fake_tcd074
 Version:      1.0.0
*/

/* FAKE スライダーアニメーションをフェードのみに変更 */
#index_slider.animation_type1 .item .image_wrap,
#index_slider.animation_type1 .item.slick-active .image_wrap,
#index_slider.animation_type1 .item.first_item .image_wrap {
  animation: none !important;
  left: 0 !important;
}

/* slickのフェード挙動を滑らかにする */
#index_slider .slick-slide {
  transition: opacity 1.5s ease !important;
  opacity: 0;
}

#index_slider .slick-slide.slick-active {
  opacity: 1;
}

/* type4 の transition を有効にしてフェード効果を付ける */
/* .item の重なりを解除してスライド動作を有効にする */
#index_slider.animation_type4 .item {
  opacity: 0 !important;
  transition: opacity 1.5s ease-in-out !important;
}

#index_slider.animation_type4 .item.slick-active {
  opacity: 1 !important;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  /* margin-bottom: 10px; */
  list-style: none;
  font-size: 1.2rem;
  padding-top: 10px;
  padding-bottom: 10px;
}

.news-list li a {
  text-decoration: none;
  color: #333;
}

.news-date {
  color: #7b7b7b;
  font-size: 0.9rem;
  margin-right: 1.2rem;
}

.news-category {
  margin-right: 1rem;
}

.news-archive-button,
.business-archive-button {
  margin-top: 45px;
}

.news-archive-button a,
.business-archive-button a {
  background: #000;
  color: #fff !important;
  display: inline-block;
  min-width: 250px;
  height: 60px;
  line-height: 60px;
  padding: 0 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin-bottom: 50px;
}

/* .news-archive-button a {
  display: inline-block;
  padding: 8px 16px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
} */

.news-archive-button a:hover,
.business-archive-button a:hover {
  background-color: #464646;
}

/* 外枠全体 */
.news-list {
  border: 1px solid #ccc;
  /* 外枠の線 */
  border-radius: 8px;
  overflow: hidden;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

/* 各投稿（お知らせ）ごとの横線区切り */
.news-list li {
  border-bottom: 1px solid #e0e0e0;
  /* 横線 */
  padding: 16px 21px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 最後の項目は下線なしに */
.news-list li:last-child {
  border-bottom: none;
}

/* カテゴリラベルも横並びを意識 */
.news-date {
  color: #555;
  font-size: 0.9em;
  min-width: 100px;
}

.news-category {
  font-size: 0.85em;
  border-radius: 4px;
  padding: 2px 6px;
  color: white;
}

/* タイトルリンク */
.news-list a {
  text-decoration: none;
  color: #333;
}

.news-list a:hover {
  text-decoration: underline;
}


.news-category {
  display: inline-block;
  padding: 0.1em 1.2em;
  border-radius: 20px;
  color: #fff;
  font-size: 0.85em;
}

/* カテゴリ「事業報告」 */
.news-category.category-jigyohoukoku {
  background-color: #28a745;
}

/* カテゴリ「業界動向」 */
.news-category.category-gyoukai-doukou {
  background-color: #431df0;
}

/* カテゴリ「会社情報」など */
.news-category.category-kaisha-jouhou {
  background-color: #ff9800;
}

/* カテゴリ「お知らせ」など */
.news-category.category-oshirase {
  background-color: #0073aa;
}

.post_content ul.news-list {
  text-align: left;
}

@media screen and (max-width: 768px) {
  .news-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .news-date,
  .news-category {
    display: inline-block;
    margin-right: 10px;
    font-size: 0.85em;
  }

  .news-list li a {
    margin-top: 8px;
    display: block;
    font-size: 1em;
  }
  .post_content ul {
    margin-left: 0 !important;
  }
  #article {
    padding: 0 12px !important;
  }

  .index_cb_header {
    margin: 50px 20px 0 !important;
  }
}


.post_content {
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.cb_contents.last {
  padding-bottom: 150px;
  text-align: center;
}

.index_content1 .image_list img {
  width: 100% !important;
  float: none !important;
}

.display-flex {
  display: flex;
  align-items: center;
}

.mb-50 {
  margin-bottom: 50px !important;
}

.index_free_space {
  padding-top: 0 !important;
}

.index_content1 {
  padding-bottom: 0 !important;
}

.index_content1,
.index_work_list,
.dc_content,
#main_contents {
  width: 900px !important;
}

@media screen and (max-width: 767px) {
  .news-archive-button a,
  .business-archive-button a {
    margin-bottom: 30px;
  }

  .index_content1,
  .index_work_list,
  .dc_content,
  #main_contents {
    width: 100% !important;
    padding: 0 15px;
    /* 任意：余白を追加して見やすくする */
    box-sizing: border-box;
  }

  .display-flex {
    display: block;
    text-align: center;
  }
}

.index_content1.num1 .desc {
  text-align: center;
}

.work_list .item {
  width: calc(100% / 2 - 10px) !important;
}

.post_content td,
.post_content th {
  vertical-align: middle;
}

/* テーブルスタイル */
.post_content td.grey {
  background-color: #f8f8f8;
}

.iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9の比率 */
  height: 0;
  overflow: hidden;
}

.iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.page .post_content {
  margin: 30px auto;
}

#page_header {
  min-height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

#blog_list .category {
  background: #000;
  color: #fff;
  min-width: 130px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  font-size: 12px;
  padding: 0 15px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.read-more {
  margin-top: 10px;
}

.read-more a {
  color: #0073aa;
  text-decoration: none;
  font-weight: bold;
}

.read-more a:hover {
  text-decoration: underline;
}

#footer_logo img {
  width: 150px;
  height: auto;
}

.work_data_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.work_data_table th,
.work_data_table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

.work_data_table th.wide,
.work_data_table td:nth-child(2) {
  width: 35%;
  /* 工事名の列を広く */
}


.work_data_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.work_data_table th,
.work_data_table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

.work_data_table th.wide,
.work_data_table td:nth-child(2) {
  width: 35%;
  /* 工事名を広く */
}

.work_list .item .title {
  text-align: center;
  font-weight: normal;
  line-height: 1.6;
  max-height: 3.2em;
  overflow: visible !important;
  color: #000;
  -webkit-transition-property: color;
  -webkit-transition-duration: 0.2s;
  -webkit-transition-timing-function: ease;
  transition-property: color;
  transition-duration: 0.2s;
  transition-timing-function: ease;
  margin-top: -10px !important;
}

.work_list .item .link {
  height: 130px;
}

@media screen and (max-width: 650px) {

  .post_content table.tablepress {
    width: 98% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .tablepress th,
  .tablepress td {
    line-height: 1.3 !important;
  }

  .work_area .work_list {
    margin: 20px 0;
  }

  .work_card_custom .text_wrap_custom h3 {
    line-height: 1.5;
  }
}

.child_category_list .headline {
  display: none !important;
}


.catch_text {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.sub_image img {
  max-width: 100%;
  margin-bottom: 20px;
}

p.has-text-align-center {
  margin-bottom: 0 !important;
  line-height: 1.2 !important;
  font-weight: bold;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* トップページ修正 */
@media screen and (max-width: 1050px) {
  #header_logo .mobile_logo_image {
    display: block;
    width: 57%;
    height: auto;
  }
}

@media screen and (max-width: 900px) {
  .work_list .item .image_wrap_inner {
    width: 100%;
    height: 230px;
    position: absolute;
    top: 0px;
  }
  .work_list .item .image {
    width: 100%;
    height: 230px;
}
.work_list {
    /* margin: 0 -10px 0 0; */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: block;
}
.work_list .item {
  margin: 0;
}
.work_list .category {
  font-size: 16px;
  font-weight: bold;
}
}

/* トップページ修正ここまで */
@media screen and (max-width: 650px) {

  td.grey {
    letter-spacing: -0.05rem;
    padding: 10px 7px !important;
  }

}
.wp-block-cover img.wp-block-cover__image-background {
  background-size: cover;
}

.catch-section {
  text-align: center;
}
@media screen and (max-width: 760px) {
.catch-section {
  text-align: left;
}
}

.dc_image_content .title {
  line-height: 2.3 !important;
}
@media screen and (max-width: 768px) {
    .card_section {
        flex-direction: row !important;
    }
}
