@charset "utf-8";
/*
Theme Name:miyauchi-youkou.jp
Description:宮内洋行
Author:TCD
Author URI:https://tcd-theme.com/
Template:cure_tcd082
Version:2.16.2
*/

#page_header h1.title {
  display: none;
}

#side_button .item:first-child a {
  border-top-left-radius: 5px;
}

#side_button .item:last-child a {
  border-bottom-left-radius: 5px;
}

#index_box_content .box_item:first-child,
#index_box_content .box_item:first-child .title {
  border-top-left-radius: 5px;
}

#index_box_content .box_item:last-child,
#index_box_content .box_item:last-child .title {
  border-top-right-radius: 5px;
}

.ch1_headline {
  display: table;
  margin: 0.25rem auto 10px;
  font-weight: 600;
  font-size: 14px;
  color: #006699;
}

.ch1 {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.6rem;
}

.ch1.max {
  width: 100%;
}

#content_header {
  padding: 5px 0 90px 0 !important;
}

#page_content {
  padding: 40px 0 110px !important;

}

#content_header .catch {
  margin-top: 3rem;

}

#faq_archive,
#service_archive {
  padding: 4rem 0 150px 0;
}

/* 記事リスト（front-page / index 共通） */
.cb_post_list_wrap {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

.cb_post_list_row {
  display: flex;
  align-items: center;
  padding: 22px 24px;
  gap: 18px;
  border-bottom: 1px solid #e5e5e5;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.cb_post_list_row:hover {
  background: #f2f9ff;
}

.cb_post_list_row:last-child {
  border-bottom: none;
}

.cb_post_list_date {
  color: #999;
  font-size: 13px;
  font-family: Arial, sans-serif;
  white-space: nowrap;
  min-width: 105px;
}

.cb_post_list_date::before {
  font-family: 'footer_bar';
  content: '\e912';
  font-size: 14px;
  margin-right: 5px;
  vertical-align: -1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cb_post_list_badge {
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 11px;
  color: #555;
  padding: 10px 12px;
  min-width: 90px;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.cb_post_list_title {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.index_post_list .cb_headline {
  text-align: center;
  margin: 0 0 25px 0;
  font-weight: 600;
}

.index_post_list .cb_catch {
  text-align: center;
  font-weight: 500;
  margin: 0 0 60px 0;
}

/*ブログ一覧ページ*/

#blog_archive>div:first-child:not(#content_header) {
  padding-top: 0px !important;
  margin-top: 4rem;
}

/*キャッチのロゴ*/
.catch_img {
  opacity: .8;
  max-width: 400px;
}

@media screen and (max-width: 500px) {
  .catch_img {
    opacity: .8;
    max-width: 225px;
  }
}

/*四角のブロックエリア*/
#page_header .sub_title {
  display: none;
}

/* コンテンツスライダー：グリッドレイアウト */
.index_content_slider .cb_content_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.index_content_slider .cb_content_grid .item {
  width: auto;
  height: auto;
}

.index_content_slider .image_wrap {
  height: 200px !important;
}

.index_content_slider .cb_content_grid .desc_area {
  height: auto;
  min-height: 80px;
  padding: 20px 28px;
  border-right: none;
  display: flex;
  align-items: center;
}

.index_content_slider .cb_content_grid .desc {
  position: static;
  -webkit-transform: none;
  transform: none;
  top: auto;
  line-height: 1.7;
}

.index_content_slider .item a {
  border: 1px solid #dbdbdb;
}

@media screen and (max-width: 767px) {
  .cb_post_list_wrap {
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .cb_post_list_row {
    flex-wrap: wrap;
    align-items: center;
    padding: 16px;
    gap: 15px 0;
  }

  .cb_post_list_title {
    width: 100%;
    margin-top: 6px;
  }

  .index_content_slider .cb_content_grid {
    grid-template-columns: 1fr;
  }

  .index_content_slider .image_wrap {
    height: 180px !important;
  }

  .index_content_slider .cb_content_grid .desc_area {
    padding: 16px 20px;
  }

  .index_content_slider .cb_content_grid .item:nth-child(odd) .desc_area {
    border-right: none;
  }

  .index_content_slider .cb_content_grid .item {
    padding: 0 1.25rem;
  }


}

.index_content_slider {
  padding: 120px 0 30px;
}

@media screen and (max-width: 550px) {
  .cb_contents .link_button {
    margin: 40px 0 2.25rem 0 !important;
  }
}

@media screen and (max-width: 500px) {
  .index_content_slider .image_wrap {
    height: 140px !important;
  }
}

/* プロフィールページ レイアウト修正
   親テーマの固定 height:400px と absolute 中央配置を解除し、
   テキスト量に合わせて高さが伸びる flexbox レイアウトに切り替える */
.design2_content2 .item {
  display: flex;
  align-items: flex-start;
}

.design2_content2 .image {
  flex-shrink: 0;
}

.design2_content2 .content {
  height: auto;
  min-height: 400px;
}

.design2_content2 .item_list.layout_type2 .content {
  min-height: 300px;
}

.design2_content2 .content_inner {
  position: static;
  top: auto;
  -webkit-transform: none;
  transform: none;
  width: auto;
}

@media screen and (max-width: 950px) {
  .design2_content2 .content {
    height: auto !important;
    min-height: 300px;
  }

  .design2_content2 .item_list.layout_type2 .content {
    height: auto !important;
    min-height: 200px;
  }
}

@media screen and (max-width: 750px) {
  .design2_content2 .item {
    display: block;
  }

  .design2_content2 .content {
    min-height: 0;
  }
}
