@charset "UTF-8";
/* ========================================================
# デザイントークン
# ・色 / フォント = CSS 変数（実体は foundation/_token.scss の :root --c-*）
#   → 納品 CSS の :root 1か所でリテーマ可・カスケード上書き可。
# ・レイアウト = Sass 変数（rem() で px 基準）
#   → 演算・@media で扱いやすい。
# theme.json は不使用。
======================================================== */
/* ========================================================
# SCSS 実装専用
======================================================== */
/* ========================================================
# 下線（線なし→出てくる→線が流れて消える）
======================================================== */
/* ========================================================
# 下線（最初に線が出てる→消える→また出てくる）
======================================================== */
/* ========================================================
# 事例一覧で追加するカラー
# （foundation/_token.scss がロックされているため、当バンドルで定義。
#   :root に置くことで納品後も 1 か所でリテーマ可能）
======================================================== */
:root {
  --c-color-surface: #faf9f7;
  --c-color-mute: #7e8382;
  --c-color-frame: #f3f1e9;
}

.p-caseArchive {
  padding-block: 2rem 10rem;
}
@media screen and (width < 768px) {
  .p-caseArchive {
    padding-block: 2rem 5rem;
  }
}

.p-caseArchive__layout {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 5rem;
}
@media screen and (width < 768px) {
  .p-caseArchive__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================================
# 絞り込みパネル（サーバーサイド絞り込みフォーム）
======================================================== */
.p-caseArchive__filter.is-open .p-caseArchive__filterHead {
  border-bottom-color: transparent;
  background-image: linear-gradient(to right, var(--c-color-black) 1px, transparent 1px);
  background-size: 4px 1px;
  background-repeat: repeat-x;
  background-position: bottom;
}

.p-caseArchive__form {
  display: flex;
  flex-direction: column;
}

.p-caseArchive__filterHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(32, 32, 29, 0.5);
  border-bottom: 1px solid rgba(32, 32, 29, 0.5);
  transition: border-bottom-color 0.3s ease-in-out, background-image 0.3s ease-in-out;
}
@media screen and (width < 768px) {
  .p-caseArchive__filterHead {
    padding-block: 1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    cursor: pointer;
    user-select: none;
  }
}

.p-caseArchive__filterTitle {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1;
  color: var(--c-color-black);
}
@media screen and (width < 768px) {
  .p-caseArchive__filterTitle {
    font-size: 1rem;
  }
}

.p-caseArchive__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--c-color-black);
  background-color: var(--c-color-surface, #faf9f7);
  border: 1px dashed var(--c-color-black);
  border-radius: 0.1875rem;
  font-family: var(--c-font-family-sans-en);
  font-weight: 700;
  font-stretch: 80%;
}
@media (any-hover: hover) {
  .p-caseArchive__clear:hover {
    opacity: 1;
  }
}

.p-caseArchive__clear--head {
  margin-left: auto;
}
@media screen and (width < 768px) {
  .p-caseArchive__clear--head {
    display: none;
  }
}

.p-caseArchive__clear--category {
  display: none;
}
@media screen and (width < 768px) {
  .p-caseArchive__clear--category {
    display: flex;
    flex-shrink: 0;
  }
}

.p-caseArchive__filterToggle {
  display: none;
}
@media screen and (width < 768px) {
  .p-caseArchive__filterToggle {
    display: block;
    position: relative;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
  }
  .p-caseArchive__filterToggle::before, .p-caseArchive__filterToggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: var(--c-color-black);
    transition: transform 0.3s ease-in-out;
  }
  .p-caseArchive__filterToggle::before {
    width: 1rem;
    height: 1px;
    translate: -50% -50%;
  }
  .p-caseArchive__filterToggle::after {
    width: 1px;
    height: 1rem;
    translate: -50% -50%;
  }
}

.p-caseArchive__filter.is-open .p-caseArchive__filterToggle::after {
  transform: rotate(90deg);
}

@media screen and (width < 768px) {
  .p-caseArchive__filterBody {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.3s ease-in-out;
  }
}

@media screen and (width < 768px) {
  .p-caseArchive__filter.is-open .p-caseArchive__filterBody {
    grid-template-rows: 1fr;
  }
}

@media screen and (width < 768px) {
  .p-caseArchive__filterBodyInner {
    min-height: 0;
  }
}

.p-caseArchive__groups {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1.5rem;
}
@media screen and (width < 768px) {
  .p-caseArchive__groups {
    gap: 1rem;
    padding-top: 1.25rem;
  }
}

.p-caseArchive__group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
}
@media screen and (width < 768px) {
  .p-caseArchive__group {
    gap: 0.75rem;
  }
}

.p-caseArchive__group--category {
  gap: 0.125rem;
}

.p-caseArchive__groupHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.p-caseArchive__groupLabel {
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--c-color-black);
  opacity: 0.5;
  font-family: var(--c-font-family-sans-en);
  font-weight: 700;
  font-stretch: 80%;
  padding: 0;
}

/* ---- ラジオ（カテゴリ）/ チェック（キーワード）共通リスト ---- */
.p-caseArchive__options {
  display: flex;
  flex-direction: column;
  gap: 0.8125rem;
  margin-top: 1rem;
}
@media screen and (width < 768px) {
  .p-caseArchive__options {
    margin-top: 0;
    gap: 0.5rem;
  }
}

.p-caseArchive__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
@media screen and (width < 768px) {
  .p-caseArchive__option {
    gap: 0.375rem;
  }
}

@media screen and (width < 768px) {
  .p-caseArchive__options--keywords {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.75rem;
    row-gap: 0.75rem;
    margin-top: 0.75rem;
    flex-direction: row;
  }
}

.p-caseArchive__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.p-caseArchive__mark {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 1px solid var(--c-color-black);
  opacity: 0.4;
  transition: border-width 0.15s ease-in-out, opacity 0.15s ease-in-out;
}
@media screen and (width < 768px) {
  .p-caseArchive__mark {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.p-caseArchive__mark--radio {
  border-radius: 999px;
}

.p-caseArchive__mark--check {
  border-radius: 0.25rem;
}

.p-caseArchive__option input:checked + .p-caseArchive__mark {
  border-width: 0.5rem;
  opacity: 1;
}
@media screen and (width < 768px) {
  .p-caseArchive__option input:checked + .p-caseArchive__mark {
    border-width: 0.375rem;
  }
}

.p-caseArchive__option input:focus-visible + .p-caseArchive__mark {
  outline: 2px solid var(--c-color-black);
  outline-offset: 2px;
}

.p-caseArchive__optionText {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  color: var(--c-color-black);
}
@media screen and (width < 768px) {
  .p-caseArchive__optionText {
    font-size: 0.875rem;
  }
}

/* ---- 複数選択ドロップダウン（エリア / 物件種別 / 間取り） ---- */
.p-caseArchive__select {
  position: relative;
  width: 100%;
}

.p-caseArchive__selectTrigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9375rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  color: var(--c-color-black);
  background-color: var(--c-color-surface, #faf9f7);
  border: none;
  border-bottom: 1px solid var(--c-color-border);
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  cursor: pointer;
}
@media screen and (width < 768px) {
  .p-caseArchive__selectTrigger {
    font-size: 0.875rem;
    background-color: var(--c-color-white);
  }
}
@media (any-hover: hover) {
  .p-caseArchive__selectTrigger:hover {
    opacity: 1;
  }
}

.p-caseArchive__selectLabel {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.p-caseArchive__select.is-selected .p-caseArchive__selectLabel {
  font-weight: 700;
}

.p-caseArchive__selectIcon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  position: relative;
  background-image: linear-gradient(to bottom, var(--c-color-black) 0.0625rem, transparent 0.0625rem);
  background-size: 0.0625rem 0.1875rem;
  background-repeat: repeat-y;
  background-position: left 0.0625rem;
}
.p-caseArchive__selectIcon::before {
  content: "";
  width: 0.4375rem;
  height: 0.3125rem;
  mask: url("../img/common/icon_arrow.svg") no-repeat center center/contain;
  background-color: var(--c-color-black);
  position: absolute;
  top: 50%;
  right: 0;
  translate: 0 -50%;
  rotate: 90deg;
}

.p-caseArchive__selectPanel {
  display: none;
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.25rem);
  left: 0;
  width: 100%;
  max-height: 15rem;
  overflow-y: auto;
  padding: 1rem;
  background-color: var(--c-color-white);
  border: 1px solid var(--c-color-border);
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1.5rem rgb(from var(--c-color-black) r g b/0.08);
}

.p-caseArchive__select.is-open .p-caseArchive__selectPanel {
  display: block;
}

.p-caseArchive__selectPanel .p-caseArchive__options {
  gap: 1rem;
}
@media screen and (width < 768px) {
  .p-caseArchive__selectPanel .p-caseArchive__options {
    gap: 0.5rem;
  }
}

/* ---- 絞り込むボタン ---- */
.p-caseArchive__actions {
  margin-top: 2rem;
  border-bottom: 1px solid rgba(32, 32, 29, 0.5);
  padding-bottom: 1.5rem;
}
@media screen and (width < 768px) {
  .p-caseArchive__actions {
    padding-bottom: 1rem;
  }
}

.p-caseArchive__submit {
  width: 100%;
  border: none;
  cursor: pointer;
}

/* ========================================================
# 事例カードリスト
======================================================== */
.p-caseArchive__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
@media screen and (width < 768px) {
  .p-caseArchive__main {
    gap: 3rem;
  }
}

.p-caseArchive__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2rem;
  row-gap: 5rem;
}
@media screen and (width < 768px) {
  .p-caseArchive__list {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
}

.p-caseArchive__pager {
  display: flex;
  justify-content: center;
  padding-top: 3rem;
  border-top: 1px solid var(--c-color-border);
}
@media screen and (width < 768px) {
  .p-caseArchive__pager {
    padding-top: 1.5rem;
  }
}

@media screen and (768px <= width <= 1024px) {
  .p-subMv {
    padding-top: 3.375rem;
  }
  .p-subMv__inner,
  .p-caseArchive > .l-inner {
    max-width: none;
    padding-inline: 4rem;
  }
  .p-subMv__inner {
    gap: 1.5rem;
  }
  .c-title1--lg {
    gap: 0.5rem;
  }
  .c-title1--lg .c-title1__heading {
    font-size: 3rem;
    line-height: 1.4;
  }
  .p-subMv__text {
    max-width: none;
    font-size: 1rem;
    line-height: 2;
  }
  .p-caseArchive {
    padding-block: 4rem 5rem;
  }
  .p-caseArchive__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .p-caseArchive__filterHead {
    padding: 1rem 0.5rem;
    cursor: pointer;
    user-select: none;
  }
  .p-caseArchive__filterTitle {
    font-size: 1rem;
  }
  .p-caseArchive__clear--head {
    display: none;
  }
  .p-caseArchive__clear--category {
    display: flex;
    flex-shrink: 0;
  }
  .p-caseArchive__filterToggle {
    display: block;
    position: relative;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
  }
  .p-caseArchive__filterToggle::before, .p-caseArchive__filterToggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: var(--c-color-black);
    transition: transform 0.3s ease-in-out;
  }
  .p-caseArchive__filterToggle::before {
    width: 1rem;
    height: 1px;
    translate: -50% -50%;
  }
  .p-caseArchive__filterToggle::after {
    width: 1px;
    height: 1rem;
    translate: -50% -50%;
  }
  .p-caseArchive__filterBody {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.3s ease-in-out;
  }
  .p-caseArchive__filter.is-open .p-caseArchive__filterBody {
    grid-template-rows: 1fr;
  }
  .p-caseArchive__filterBodyInner {
    min-height: 0;
  }
  .p-caseArchive__groups {
    gap: 1rem;
    padding-top: 1.25rem;
  }
  .p-caseArchive__group {
    gap: 0.75rem;
  }
  .p-caseArchive__group--category {
    gap: 0.125rem;
  }
  .p-caseArchive__options {
    margin-top: 0;
    gap: 0.5rem;
  }
  .p-caseArchive__option {
    gap: 0.375rem;
  }
  .p-caseArchive__options--keywords {
    flex-flow: row wrap;
    column-gap: 0.75rem;
    row-gap: 0.75rem;
    margin-top: 0.75rem;
  }
  .p-caseArchive__mark {
    width: 1.25rem;
    height: 1.25rem;
  }
  .p-caseArchive__option input:checked + .p-caseArchive__mark {
    border-width: 0.375rem;
  }
  .p-caseArchive__optionText,
  .p-caseArchive__selectTrigger {
    font-size: 0.875rem;
  }
  .p-caseArchive__selectTrigger {
    background-color: var(--c-color-white);
  }
  .p-caseArchive__selectPanel .p-caseArchive__options {
    gap: 0.5rem;
  }
  .p-caseArchive__actions {
    padding-bottom: 1rem;
  }
  .p-caseArchive__main {
    gap: 2rem;
  }
  .p-caseArchive__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 3rem;
  }
  .p-caseArchive__pager {
    padding-top: 2rem;
  }
  .c-card2__gallery {
    width: 4.5rem;
    height: 6.5625rem;
    border: 0.1875rem solid var(--c-color-beige);
    border-radius: 0;
  }
  .c-card2__badge {
    font-size: 0.875rem;
  }
  .c-card2__profit {
    flex-direction: column;
    gap: 0.625rem;
  }
  .c-card2__profitItem {
    width: 100%;
    flex: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-right: 0.75rem;
    padding-bottom: 0.5rem;
    background-image: linear-gradient(to right, rgb(from var(--c-color-black) r g b/0.5) 1px, transparent 1px);
    background-size: 5px 1px;
    background-repeat: repeat-x;
    background-position: bottom;
  }
  .c-card2__profitLabel {
    width: 9.75rem;
    flex-shrink: 0;
    padding: 0.5rem 0.625rem;
    font-size: 0.75rem;
    border-radius: 0.125rem;
  }
  .c-card2__profitNum {
    font-size: 2rem;
  }
  .c-card2__profitArrow {
    width: 0.625rem;
    height: 0.5rem;
    rotate: 90deg;
  }
  .c-card2__title {
    font-size: 1.125rem;
  }
  .c-card2__keywords {
    display: none;
  }
}
/* ========================================================
# 事例一覧の導入部（リード文＋実績サマリー＋エリアリンク）
# 修正指示書 2026-08-17 の F-03。h1 直下・絞り込みUIの上に置く。
======================================================== */
.p-caseArchive__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5rem;
  margin-bottom: 4rem;
}
@media screen and (width < 768px) {
  .p-caseArchive__intro {
    display: block;
    margin-bottom: 2.5rem;
  }
}
@media screen and (768px <= width <= 1024px) {
  .p-caseArchive__intro {
    display: block;
  }
}

.p-caseArchive__leadText {
  flex: 1 1 0;
  min-width: 0;
  font-size: 1rem;
  line-height: 2;
  color: var(--c-color-black);
}
@media screen and (width < 768px) {
  .p-caseArchive__leadText {
    font-size: 0.875rem;
  }
}
.p-caseArchive__leadText + .p-caseArchive__leadText {
  margin-top: 1rem;
}

/* 実績サマリー（掲載事例数・平均収益改善率・対応エリア・対応物件種別） */
.p-caseArchive__stats {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3rem;
  margin-top: 0.3125rem;
  min-width: 24.8125rem;
  flex-shrink: 0;
  padding-block: 1.25rem;
  padding-inline: 1rem;
  border-top: 0.0625rem solid var(--c-color-border);
  border-bottom: 0.0625rem solid var(--c-color-border);
}
@media screen and (width <= 1024px) {
  .p-caseArchive__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: auto;
    min-width: 0;
    margin-top: 1.25rem;
    padding-block: 0 0.75rem;
    padding-inline: 0;
    border-top: 0;
  }
  .p-caseArchive__stats:has(.p-caseArchive__statsItem:nth-child(4)) {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1rem;
  }
  .p-caseArchive__stats:has(.p-caseArchive__statsItem:nth-child(4)) .p-caseArchive__statsItem:nth-child(odd)::before {
    content: none;
  }
}

.p-caseArchive__statsItem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  white-space: nowrap;
}
@media screen and (width <= 1024px) {
  .p-caseArchive__statsItem {
    gap: 0;
  }
}
.p-caseArchive__statsItem + .p-caseArchive__statsItem::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -1.5rem;
  width: 0.0625rem;
  height: 2.625rem;
  background-image: linear-gradient(to bottom, var(--c-color-black) 0.0625rem, transparent 0.0625rem);
  background-size: 0.0625rem 0.25rem;
  background-repeat: repeat-y;
  background-position: left top;
}
@media screen and (width <= 1024px) {
  .p-caseArchive__statsItem + .p-caseArchive__statsItem::before {
    left: 0;
    bottom: -0.25rem;
    height: 3.5625rem;
  }
}

.p-caseArchive__statsLabel {
  font-family: var(--c-font-family-sans-ja);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--c-color-black);
  text-align: center;
}
@media screen and (width <= 1024px) {
  .p-caseArchive__statsLabel {
    font-size: 0.75rem;
  }
}

.p-caseArchive__statsValue {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  color: var(--c-color-black);
}
@media screen and (width <= 1024px) {
  .p-caseArchive__statsValue {
    gap: 0.125rem;
  }
}

.p-caseArchive__statsNum {
  font-family: var(--c-font-family-serif-ja);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
}
@media screen and (width <= 1024px) {
  .p-caseArchive__statsNum {
    font-size: 1.625rem;
  }
}

.p-caseArchive__statsUnit {
  font-family: var(--c-font-family-sans-ja);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1;
}
@media screen and (width <= 1024px) {
  .p-caseArchive__statsUnit {
    font-size: 0.75rem;
  }
}

/* ========================================================
# タクソノミー別アーカイブ（エリア別・カテゴリ別）
# 絞り込みパネルを持たないため、1カラムで表示する。
======================================================== */
.p-caseArchive--taxonomy .p-caseArchive__lead {
  margin-bottom: 4rem;
}
@media screen and (width < 768px) {
  .p-caseArchive--taxonomy .p-caseArchive__lead {
    margin-bottom: 2.5rem;
  }
}
.p-caseArchive--taxonomy .p-caseArchive__list--full {
  grid-template-columns: repeat(3, 1fr);
}
@media screen and (768px <= width <= 1024px) {
  .p-caseArchive--taxonomy .p-caseArchive__list--full {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (width < 768px) {
  .p-caseArchive--taxonomy .p-caseArchive__list--full {
    grid-template-columns: 1fr;
  }
}

.p-caseArchive__serviceLink {
  margin-top: 1.5rem;
}
@media screen and (width < 768px) {
  .p-caseArchive__serviceLink {
    margin-top: 1rem;
  }
}