@charset "UTF-8";

/* お役立ち情報カテゴリーページ用スタイル */
/* ----------------------------------------
   MV画像
---------------------------------------- */
.fl_works_mv::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center bottom 23%;
  z-index: 0;
  filter: brightness(60%);
}

body.roof-repair .fl_works_mv::before{
  background-image: url('../images/top-service-roof.jpg');
}
body.wall-painting .fl_works_mv::before{
  background-image: url('../images/top-service-wallpaint.jpg');
}
body.toilet-renovation .fl_works_mv::before{
  background-image: url('../images/top-service-toilet.png');
    background-position: center bottom 67%;
}
body.bathroom-renovation .fl_works_mv::before{
  background-image: url('../images/top-service-bath.jpg');
}
body.kitchen-renovation .fl_works_mv::before{
  background-image: url('../images/top-service-kitchen.jpg');
}

/* パンくずリスト */
.fl_breadcrumbs {
  background-color: #ffffff;
  padding: 24px 64px;
}

.fl_breadcrumbs .container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fl_breadcrumbs .home_link,
.fl_breadcrumbs .breadcrumb_link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #999999;
  font-size: 14px;
  font-weight: 500;
}

.fl_breadcrumbs .home_icon {
  width: 16px;
  height: 16px;
  background-image: url('../images/home-icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 4px;
}

.fl_breadcrumbs .separator {
  color: #999999;
  font-size: 10px;
}

.fl_breadcrumbs .current {
  color: #666666;
  font-size: 14px;
  font-weight: 500;
  max-width: 600px;
}

/* コンテンツセクション */
.fl_helpful_category_content {
  padding: 64px 0;
  background-color: #ffffff;
  position: relative;
}

.fl_helpful_category_content:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f8f8f8;
  opacity: 0.5;
  z-index: 0;
}

.fl_helpful_category_content .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* コンテンツヘッダー */
.fl_helpful_category_content .content_header {
  margin-bottom: 32px;
}

.fl_helpful_category_content .section_title {
  font-size: 24px;
  font-weight: 700;
  color: #0280A4;
  display: flex;
  align-items: center;
  gap: 16px;
}

.fl_helpful_category_content .section_line {
  display: block;
  width: 4px;
  height: 24px;
  background-color: #0280A4;
}

/* 記事リスト */
.fl_helpful_category_content .article_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
  margin-bottom: 64px;
}

/* 記事カード */
.fl_helpful_category_content .article_card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.06), 0px 4px 8px -2px rgba(0, 0, 0, 0.1);
  border: 0.7px solid #C4C4C4;
  transition: transform 0.3s ease;
}

.fl_helpful_category_content .article_card:hover {
  transform: translateY(-5px);
}

.fl_helpful_category_content .card_image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.fl_helpful_category_content .card_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fl_helpful_category_content .card_content {
  padding: 16px;
}

.fl_helpful_category_content .card_meta {
  margin-bottom: 16px;
}

.fl_helpful_category_content .card_date {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.fl_helpful_category_content .clock_icon {
  width: 12px;
  height: 12px;
}

.fl_helpful_category_content .card_date span {
  font-size: 14px;
  color: #666666;
  letter-spacing: 0.02em;
}

.fl_helpful_category_content .card_title {
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.fl_helpful_category_content .card_line {
  width: 100%;
  height: 0.7px;
  background-color: #ECF0F6;
  margin: 8px 0;
}

.fl_helpful_category_content .card_tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fl_helpful_category_content .tag {
  display: inline-flex;
  padding: 2px 16px;
  background-color: #0280A4;
  color: #ffffff;
  font-size: 14px;
  border-radius: 30px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ページネーション */
.fl_helpful_category_content .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.fl_helpful_category_content .page_arrow,
.fl_helpful_category_content .page_number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #0280A4;
  border: 1px solid #0280A4;
  transition: all 0.3s ease;
}

.fl_helpful_category_content .page_number.active {
  background-color: #0280A4;
  color: #ffffff;
}

.fl_helpful_category_content .page_arrow {
  position: relative;
}

.fl_helpful_category_content .prev_arrow .arrow_icon {
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2px solid #0280A4;
  border-left: 2px solid #0280A4;
  transform: rotate(-45deg);
}

.fl_helpful_category_content .next_arrow .arrow_icon {
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2px solid #0280A4;
  border-right: 2px solid #0280A4;
  transform: rotate(45deg);
}

/* カテゴリセクション */
.fl_helpful_category_section {
  background-color: #F6FDFF;
  padding: 32px 0 64px;
}

.fl_helpful_category_section .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* セクションヘッダー */
.fl_helpful_category_section .section_header {
  margin-bottom: 40px;
  text-align: center;
}

.fl_helpful_category_section .section_tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.fl_helpful_category_section .section_tag span {
  color: #979797;
  font-family: 'DIN 2014', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.fl_helpful_category_section .section_tag .line {
  display: block;
  width: 40px;
  height: 2px;
  background-color: #979797;
}

.fl_helpful_category_section .section_title {
  font-size: 32px;
  font-weight: 700;
  color: #0280A4;
}

/* タブメニュー */
.fl_helpful_category_section .tab_menu {
  margin: 80px 0 40px 0;
  display: flex;
  width: 100%;
  justify-content: center;
}

.fl_helpful_category_section .tab_wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.fl_helpful_category_section .tab {
  position: relative;
  width: 20%;
  height: 64px;
  border: 1px solid #0280A4;
  border-radius: 6px 6px 0 0;
  overflow: visible;
  cursor: pointer;
}

.fl_helpful_category_section .tab_inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 24px 8px;
  background-color: #ffffff;
  border: 1px solid #0280A4;
  border-radius: 6px 6px 0 0;
}

.fl_helpful_category_section .tab.active .tab_inner {
  background-color: #0280A4;
  color: #ffffff;
  border: none;
}

.fl_helpful_category_section .tab:not(.active) .tab_inner span {
  color: #0280A4;
  font-weight: 700;
  font-size: 16px;
}

.fl_helpful_category_section .tab span {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.fl_helpful_category_section .tab_arrow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 8px;
  background-color: #0280A4;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  display: none;
}

.fl_helpful_category_section .tab.active .tab_arrow {
  display: block;
}

/* カテゴリー記事リスト */
.fl_helpful_category_section .tab_article_list .category-article-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
  margin-bottom: 32px;
}

/* 記事カード (カテゴリーセクション用) */
.fl_helpful_category_section .article_card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.06), 0px 4px 8px -2px rgba(0, 0, 0, 0.1);
  border: 0.7px solid #C4C4C4;
  transition: transform 0.3s ease;
}

.fl_helpful_category_section .article_card:hover {
  transform: translateY(-5px);
}

.fl_helpful_category_section .card_image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.fl_helpful_category_section .card_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fl_helpful_category_section .card_content {
  padding: 16px;
}

.fl_helpful_category_section .card_meta {
  margin-bottom: 16px;
}

.fl_helpful_category_section .card_date {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.fl_helpful_category_section .clock_icon {
  width: 12px;
  height: 12px;
}

.fl_helpful_category_section .card_date span {
  font-size: 14px;
  color: #666666;
  letter-spacing: 0.02em;
}

.fl_helpful_category_section .card_title {
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.fl_helpful_category_section .card_line {
  width: 100%;
  height: 0.7px;
  background-color: #ECF0F6;
  margin: 8px 0;
}

.fl_helpful_category_section .card_tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fl_helpful_category_section .tag {
  display: inline-flex;
  padding: 2px 16px;
  background-color: #0280A4;
  color: #ffffff;
  font-size: 14px;
  border-radius: 30px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* 戻るボタン */
.fl_helpful_category_section .back_button {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.fl_helpful_category_section .back_button .arrow_icon {
  width: 16px;
  height: 16px;
  background-image: url(../images/chevron-right-blue.svg);
  background-size: contain;
  background-repeat: no-repeat;
}

.fl_helpful_category_section .back_btn {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #0280A4;
  font-size: 16px;
  font-weight: 700;
  padding: 24px 0 24px 53px;
  transition: opacity 0.3s ease;
  border-radius: 60px;
  border: 1px solid #0280A4;
  background-color: #fff;
  gap: 32px;
  width: 340px;
}

.fl_helpful_category_section .back_btn:hover {
  opacity: 0.8;
}

.fl_helpful_category_section .back_icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

/* トップへ戻るボタン */
.page_top_button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
}

.page_top_button .top_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  border: 1px solid #0280A4;
  border-radius: 50px;
  box-shadow: 0px 2px 4px -2px rgba(2, 128, 164, 0.08), 0px 4px 8px -2px rgba(2, 128, 164, 0.2);
  transition: all 0.3s ease;
}

.page_top_button .top_btn:hover {
  background-color: #0280A4;
}

.page_top_button .top_btn:hover img {
  filter: brightness(0) invert(1);
}

.page_top_button .top_btn img {
  width: 24px;
  height: 24px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1200px) {
  .fl_helpful_category_content .container,
  .fl_helpful_category_section .container {
    max-width: 940px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .fl_helpful_category_content .article_list,
  .fl_helpful_category_section .tab_article_list {
    grid-template-columns: repeat(2, 1fr);
  }

  .fl_helpful_category_section .tab {
    width: 160px;
  }

  .fl_helpful_category_section .tab_inner {
    padding: 16px 8px;
  }
}

@media screen and (max-width: 960px) {
  .fl_helpful_category_section .tab span {
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  .fl_breadcrumbs {
    padding: 16px 20px;
  }

  .fl_helpful_category_content .section_title {
    font-size: 20px;
  }

  .fl_helpful_category_section .section_title {
    font-size: 24px;
  }

  .fl_helpful_category_section .tab_wrapper {
    flex-wrap:wrap;
  }

  .fl_helpful_category_section .tab {
    width: calc(50% - 8px);
  }

  .fl_helpful_category_content .article_list,
  .fl_helpful_category_section .tab_article_list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .fl_helpful_category_section .tab_article_list .category-article-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fl_helpful_category_content .pagination {
    flex-wrap: wrap;
  }

  .fl_breadcrumbs .current {
    max-width: 300px;
  }
}

@media screen and (max-width: 480px) {
  .fl_helpful_category_section .tab {
    width: 100%;
  }

  .fl_helpful_category_section .tab:not(.active) .tab_inner span {
    font-size: 14px;
  }

  .fl_helpful_category_content .article_list,
  .fl_helpful_category_section .tab_article_list {
    grid-template-columns: 1fr;
  }

  .fl_breadcrumbs .current {
    max-width: 160px;
  }
}
