@charset "UTF-8";

/**
 * Works Category Page Styles
 * Follows top_div_fl_prefix.mdc rule - using fl_ prefix for top-level divs
 */

/* ----------------------------------------
   パンくずリスト（共通スタイル流用）
---------------------------------------- */
.fl_breadcrumbs {
    padding: 24px 64px;
    display: flex;
    align-items: center;
    background-color: #fff;
}

.fl_breadcrumbs .breadcrumbs-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fl_breadcrumbs .breadcrumbs-home {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

.fl_breadcrumbs .home-icon {
    width: 16px;
    height: 16px;
    background-image: url('../images/home-icon.svg');
    background-repeat: no-repeat;
    background-position: center;
}

.fl_breadcrumbs .breadcrumbs-separator {
    color: #999;
    font-size: 10px;
    font-weight: 500;
}

.fl_breadcrumbs .breadcrumbs-link {
    color: #999;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.fl_breadcrumbs .breadcrumbs-current {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* ----------------------------------------
   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_works_category_section {
    padding: 64px 160px;
    background-color: #fff;
}

.fl_works_category_section .works-category-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    margin-bottom: 24px;
    background-color: #0280A4;
}

.fl_works_category_section .section-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.fl_works_category_section .works-category-close-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 22px 6px 30px;
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 20px;
    text-decoration: none;
    color: #0280A4;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.fl_works_category_section .close-icon {
    width: 16px;
    height: 16px;
    background-image: url('../images/chevron-right-blue.svg');
    transform: rotate(90deg);
    background-repeat: no-repeat;
    background-position: center;
}

.fl_works_category_section .works-category-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: flex-start;
    margin-bottom: 64px;
}

/* 施工事例カードスタイル（共通部分） */
.fl_works_category_section .works-card {
    flex: 0 0 calc(33.333% - 22px);
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
}

.fl_works_category_section .card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.fl_works_category_section .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fl_works_category_section .card-new {
    width: 100px;
    background: #e60012;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    top: 0px;
    left: 0px;
    padding: 4px 0;
    position: absolute;
    transform-origin: left top;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    aspect-ratio: 1 / cos(30deg);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    border-top-left-radius: 10px;
}

.fl_works_category_section .card-new span {
    position: absolute;
    top: 15px;
    left: 10px;
    transform: rotate(-45deg);
}

.fl_works_category_section .card-content {
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fl_works_category_section .card-customer {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-align: center;
}

.fl_works_category_section .card-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fl_works_category_section .card-title-container {
    margin-bottom: 4px;
}

.fl_works_category_section .card-title {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: left;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fl_works_category_section .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fl_works_category_section .tag {
  display: inline-block;
  padding: 2px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.fl_works_category_section .tag-category,
.fl_works_category_section .tag-location,
.fl_works_category_section .tag-building,
.fl_works_category_section .tag-price {
    background-color: #0280A4;
    color: #fff;
}

.fl_works_category_section .card-age {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fl_works_category_section .tag-age {
    background-color: #E0E0E0;
    color: #333;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 400;
}

.fl_works_category_section .age-value {
    color: #333;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.fl_works_category_section .card-divider {
    width: 100%;
    height: 1px;
    background-color: #E0E0E0;
}

.fl_works_category_section .card-work-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fl_works_category_section .tag-work-type {
    background-color: #FFFCEF;
    color: #333;
}

.fl_works_category_section .card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 24px 8px 12px;
    background-color: #fff;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    align-self: flex-start;
    margin-top: 8px;
    letter-spacing: 0.1em;
}

.fl_works_category_section .button-icon {
    width: 16px;
    height: 16px;
    background-image: url('../images/chevron-right.svg');
    background-repeat: no-repeat;
    background-position: center;
}


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

.fl_works_category_section .page_arrow,
.fl_works_category_section .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_works_category_section .page_number.active {
  background-color: #0280A4;
  color: #ffffff;
}

.fl_works_category_section .page_arrow {
  position: relative;
}

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

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

/* ----------------------------------------
   タブナビゲーション
---------------------------------------- */
.fl_works_category_tabs {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 80px 0 40px 0;
}

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

.fl_works_category_tabs .works-category-tab.active {
    background-color: #0280A4;
    position: relative;
    width: 20%;
    height: 64px;
    cursor: pointer;
}

.fl_works_category_tabs .works-category-tab .tab-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 24px 8px;
    text-align: center;
}

.fl_works_category_tabs .works-category-tab.active .tab-content span {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.fl_works_category_tabs .works-category-tab:not(.active) .tab-content span {
    color: #0280A4;
    font-weight: 700;
    font-size: 16px;
}

.fl_works_category_tabs .works-category-tab .tab-arrow {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #0280A4;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.fl_works_category_tabs .works-category-tab:not(.active) .tab-arrow {
    display: none;
}

/* ----------------------------------------
   施工事例一覧に戻るボタン
---------------------------------------- */
.fl_works_category_back {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.fl_works_category_back .works-category-back-btn {
    display: flex;
    align-items: center;
    gap: 32px;
    border: 2px solid #0280A4;
    border-radius: 60px;
    padding: 24px 0 24px 80px;
    text-decoration: none;
    color: #0280A4;
    font-size: 16px;
    font-weight: 700;
    width: 340px;
}

.fl_works_category_back .back-icon {
    width: 16px;
    height: 16px;
    background-image: url('../images/chevron-right-blue.svg');
    background-repeat: no-repeat;
    background-position: center;
}

/* ----------------------------------------
   メディアクエリ
---------------------------------------- */
@media (max-width: 1200px) {
    .fl_works_category_section {
        padding: 40px 60px;
    }
    
    .fl_works_category_section .works-card {
        flex: 0 0 calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    .fl_breadcrumbs {
        padding: 16px 20px;
    }
    
    .fl_works_category_section {
        padding: 40px 20px;
    }
    
    .fl_works_category_section .works-category-section-header {
        padding: 16px;
        flex-direction: column;
        gap: 16px;
    }
    
    .fl_works_category_section .works-card {
        flex: 0 0 100%;
    }
    
    .fl_works_category_tabs {
        flex-wrap: wrap;
    }

    .fl_works_category_back {
        padding-left: 0;
        justify-content: center;
    }
    
    .fl_works_category_back .works-category-back-btn {
        padding: 16px 0 16px 40px;
        width: 280px;
    }
}



@media (max-width: 480px) {
    .fl_works_category_tabs .works-category-tab.active {
        width: 100%;
    }

    .fl_works_category_tabs .works-category-tab {
        width: 100%;
    }
    
    .fl_works_category_tabs .works-category-tab.active .tab-content span {
      font-size: 14px;
  }
  
  .fl_works_category_tabs .works-category-tab:not(.active) .tab-content span {
      font-size: 14px;
  }

    .fl_works_category_back .works-category-back-btn {
      padding: 12px 0 12px 30px;
      width: 240px;
      font-size: 14px;
      gap: 8px;
    }
}
