/* ============================================
   p-works-archive（施工事例アーカイブ 2026）
   ============================================ */

/* page-system.css が main に固定幅 1100px を設定しているため、上書きする */
main {
  width: auto;
  max-width: none;
}

/* ---- アーカイブセクション ---- */
.p-works-archive {
  background-color: #fff;
  margin-inline: auto;
  max-width: 600px;
  padding: 27px 0 49px;
}

/* ---- フィルタートグル ---- */
.p-works-filter {
  margin-bottom: 72px;
}
.p-works-filter__toggle-text {
  font-size: 18px;
  line-height: calc(25 / 18);
  letter-spacing: 0.06em;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
}
@media screen and (min-width: 875px) {
  .p-works-filter__toggle-text {
    font-size: 20px;
  }
}
.p-works-filter__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px 10px 15px;
  background: #b12c26;
  border: none;
  color: #fff;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
}
@media (any-hover: hover) {
  .p-works-filter__toggle:hover {
    opacity: 0.7;
  }
}
.p-works-filter__toggle-icon {
  width: 10px;
  height: 10px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(45deg);
  margin-top: -5px;
  transition: transform 0.35s ease, margin-top 0.35s ease;
}
.p-works-filter__toggle[aria-expanded="true"] .p-works-filter__toggle-icon {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* ---- フィルター本体 ---- */
.p-works-filter__body {
  background: #F8F8F8;
  display: grid;
  grid-template-rows: 0fr;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: grid-template-rows 0.35s ease, box-shadow 0.35s ease;
}
.p-works-filter__body.is-open {
  grid-template-rows: 1fr;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}
.p-works-filter__body > .p-works-filter__form {
  min-height: 0;
  overflow: hidden;
  padding: 0 27px;
  transition: padding 0.35s ease;
}
.p-works-filter__body.is-open > .p-works-filter__form {
  padding: 31px 27px 13px;
}
.p-works-filter__group:not(:last-child) {
  margin-bottom: 31px;
}
.p-works-filter__label {
  font-size: 18px;
  line-height: calc(28 / 18);
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #0A1D3B;
  text-align: center;
  margin-bottom: 21px;
}
@media screen and (min-width: 875px) {
  .p-works-filter__label {
    font-size: 20px;
  }
}
.p-works-filter__tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 11px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.p-works-filter__tag label {
  display: inline-block;
  padding-block: 3px;
  text-align: center;
  border: 1px solid #0A1D3B;
  font-size: 14px;
  line-height: calc(28 / 14);
  letter-spacing: 0.03em;
  font-weight: 500;
  font-family: 'Noto Sans JP', sans-serif;
  color: #0A1D3B;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  user-select: none;
  width: 100%;
}
@media screen and (min-width: 875px) {
  .p-works-filter__tag label {
    font-size: 16px;
  }
}
.p-works-filter__tag label.is-checked {
  background: #b12c26;
  border-color: #b12c26;
  color: #fff;
}
.p-works-filter__tag label.is-long-text {
  font-size: 12px;
  line-height: calc(28 / 12);
}
@media screen and (min-width: 875px) {
  .p-works-filter__tag label.is-long-text {
    font-size: 14px;
  }
}


/* 検索ボタン */
.p-works-filter__submit {
  margin-top: 24px;
  text-align: center;
}
.p-works-filter__btn {
  display: inline-block;
  padding: 5px 40px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  background: transparent;
  color: #b12c26;
  background-color: #fff;
  font-size: 14px;
  line-height: calc(28 / 14);
  letter-spacing: 0.03em;
  font-weight: 500;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-radius: 2px;
}
@media screen and (min-width: 875px) {
  .p-works-filter__btn {
    font-size: 16px;
  }
}
.p-works-filter__btn:hover {
  background: #b12c26;
  color: #fff;
}

/* 閉じるボタン（下部） */
.p-works-filter__close {
  display: block;
  width: 100%;
  margin-top: 21px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
  padding: 8px 0 4px;
}
.p-works-filter__close-icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-right: 1px solid #0A1D3B;
  border-bottom: 1px solid #0A1D3B;
  transform: rotate(-135deg);
  margin-top: 4px;
}

/* ---- 事例リスト（1カラム） ---- */
.p-works-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 34px;
  max-width: 600px;
}
.p-works-card {
  background: #F8F8F8;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}
.p-works-card__link {
  padding: 25px 27px 27px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.p-works-card__link:hover {
  opacity: 0.7;
}

/* カード：画像 */
.p-works-card__image {
  position: relative;
  background: #f0f0f0;
  width: 100%;
}
.p-works-card__image img {
  aspect-ratio: 280 / 194;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* カード：テキスト */
.p-works-card__title {
  font-size: 16px;
  line-height: calc(24 / 16);
  letter-spacing: 0.089em;
  font-weight: 500;
  color: #fff;
  background: #b12c26;
  text-align: center;
  padding: 6px 15px 11px;
}
@media screen and (min-width: 875px) {
  .p-works-card__title {
    font-size: 18px;
  }
}
.p-works-card__type {
  font-size: 14px;
  line-height: calc(20 / 14);
  letter-spacing: 0.089em;
  font-weight: 500;
  color: #090909;
  text-align: center;
  padding-top: 17px;
}
@media screen and (min-width: 875px) {
  .p-works-card__type {
    font-size: 16px;
  }
}
/* 各ターム名（外壁塗装、シーリング工事 等）を nowrap にして、
   改行は「・」の位置でのみ発生させる。 */
.p-works-card__type-word {
  display: inline-block;
  white-space: nowrap;
}
.p-works-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
/* 結果なしのスタイル */
.p-works-empty {
  text-align: center;
  color: #000000;
  font-size: 16px;
  padding-block: 30px 40px;
}
@media screen and (min-width: 875px) {
  .p-works-empty {
    font-size: 18px;
  }
}

/* ============================================
   p-works-single（施工事例詳細 2026）
   ============================================ */

.p-works-single {
  background-color: #fff;
  margin-inline: auto;
  max-width: 600px;
  padding-block: 30px 80px;
}

/* タイトル */
.p-works-single__title {
  font-size: 18px;
  line-height: calc(25 / 18);
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #000000;
  margin-bottom: 25px;
  text-align: center;
}
@media screen and (min-width: 875px) {
  .p-works-single__title {
    font-size: 20px;
  }
}

/* Before / After */
.p-works-ba {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-inline: 27px;
}
.p-works-ba__item {
  width: 100%;
}
.p-works-ba__item img {
  aspect-ratio: 280 / 193;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
}
.p-works-ba__label {
  background: #0A1D3B;
  color: #fff;
  font-size: 16px;
  line-height: calc(24 / 16);
  letter-spacing: 0.089em;
  font-weight: 700;
  padding: 1px 10px;
  display: block;
  text-align: center;
}
@media screen and (min-width: 875px) {
  .p-works-ba__label {
    font-size: 18px;
  }
}
.p-works-ba__item--after .p-works-ba__label {
  background: #b12c26;
}
.p-works-ba__item--after {
  position: relative;
}

/* 矢印（三角形）の実装 */
.p-works-ba__item--after::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -35px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 24px solid #b12c26;
}

/* 物件情報 */
.p-works-info {
  margin-top: 32px;
}
.p-works-info__title,
.p-works-gallery__title,
.p-works-voice__title {
  background: #b12c26;
  color: #fff;
  font-size: 18px;
  line-height: calc(25 / 18);
  letter-spacing: 0.05em;
  font-weight: 700;
  font-family: "Noto Serif JP", serif;
  text-align: center;
  padding: 6px 14px;
  margin-bottom: 24px;
}
@media screen and (min-width: 875px) {
  .p-works-info__title,
  .p-works-gallery__title,
  .p-works-voice__title,
  .p-works-message__title {
    font-size: 20px;
  }
}
.p-works-info__title {
  margin-bottom: 0;
}
.p-works-info__list {
  margin: 0;
  text-align: center;
  padding: 20px 25px 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}
.p-works-info__label {
  flex: 0 0 auto;
  padding-block: 3px 5px;
  background: #f8f8f8;
  color: #0A1D3B;
  font-size: 18px;
  line-height: calc(28 / 18);
  letter-spacing: 0.05em;
  font-weight: 700;
  display: block;
}
@media screen and (min-width: 875px) {
  .p-works-info__label {
    font-size: 20px;
  }
}
.p-works-info__value {
  padding-block: 20px;
  color: #000000;
  font-size: 14px;
  line-height: calc(28 / 14);
  letter-spacing: 0.03em;
  font-weight: 500;
}
@media screen and (min-width: 875px) {
  .p-works-info__value {
    font-size: 16px;
  }
}

/* 施工の様子 */
.p-works-gallery {
  margin-top: 31px;
}
.p-works-gallery__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.p-works-gallery__item {
  padding-inline: 27px;
}
.p-works-gallery__item + .p-works-gallery__item {
  margin-top: 16px;
}
.p-works-gallery__item img {
  aspect-ratio: 280 / 196;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
}
.p-works-gallery__caption {
  font-size: 14px;
  line-height: calc(28 / 14);
  letter-spacing: 0.03em;
  font-weight: 500;
  color: #000000;
  margin-top: 3px;
}
@media screen and (min-width: 875px) {
  .p-works-gallery__caption {
    font-size: 16px;
  }
}

/* お客様の声 */
.p-works-voice {
  margin-top: 66px;
}

/* 担当者からのメッセージ */
.p-works-message {
  margin-top: 67px;
}


/* ============================================
   p-works-related（詳細ページ：その他の施工事例スライダー）
   ============================================ */
.p-works-related {
  margin-top: 71px;
}
.p-works-related__title {
  margin-bottom: 24px;
}
