/* WORKS（CASE STUDIES）セクション（カンプ IMG_7871 / IMG_7872 の再現） */

.lh-works {
  --lh-accent: #e4581e;
  --lh-line: #e8e8e8;
  box-sizing: border-box;
  /* STUDIO 側の外枠 (.sd-27) の中に入るので、余白と地色はそちらに任せる */
  width: 100%;
  padding: 0;
  color: #333;
  font-family: inherit;
}

.lh-works *,
.lh-works *::before,
.lh-works *::after {
  box-sizing: border-box;
}

.lh-works__inner {
  width: 1440px;
  max-width: 100%;
  margin: 0 auto;
}

/* --- 見出し --- */
.lh-works__label {
  margin: 0;
  text-align: center;
  color: var(--lh-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  line-height: 1.4;
}

.lh-works__title {
  margin: 14px 0 0;
  text-align: center;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: 52px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-indent: 0.06em;
  line-height: 1.35;
  color: #1a1a1a;
}

.lh-works__title em {
  font-style: normal;
  color: var(--lh-accent);
}

.lh-works__lead {
  margin: 20px 0 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: #444;
}

/* --- カード --- */
.lh-works__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.lh-works__card {
  display: grid;
  grid-template-columns: 45% 1fr;
  background: #fff;
  border: 1px solid var(--lh-line);
}

.lh-works__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.lh-works__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 28px 24px;
}

.lh-works__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #555;
}

.lh-works__num {
  color: var(--lh-accent);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lh-works__num::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 16px;
  margin-left: 14px;
  vertical-align: -3px;
  background: #c9c9c9;
}

.lh-works__case {
  margin: 20px 0 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #1f1f1f;
}

/* 数字のハイライト */
.lh-works__figure {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 10px 0 0;
  color: #1f1f1f;
  font-size: 17px;
  letter-spacing: 0.02em;
  /* 桁数の多い数字（+10,000,000）でも単位を同じ行に収める */
  white-space: nowrap;
}

.lh-works__figure strong {
  color: var(--lh-accent);
  font-size: clamp(26px, 2.6vw, 46px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.lh-works__figure-note {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 500;
  color: #1f1f1f;
}

.lh-works__desc {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: #555;
}

/* 04 の3指標 */
.lh-works__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.lh-works__metric {
  padding: 0 12px;
  border-left: 1px solid var(--lh-line);
}

.lh-works__metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.lh-works__metric-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #666;
  white-space: nowrap;
}

.lh-works__metric-value {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #333;
  white-space: nowrap;
}

.lh-works__metric-value strong {
  color: var(--lh-accent);
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 700;
  line-height: 1.1;
}

/* タグ */
.lh-works__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 20px 0 0;
  list-style: none;
}

.lh-works__tags li {
  padding: 7px 12px;
  border: 1px solid #d8d8d8;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #555;
}

/* --- 下部の導線 --- */
.lh-works__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 36px;
}

.lh-works__foot p {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #444;
}

.lh-works__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 17px 30px;
  border: 1px solid var(--lh-accent);
  color: var(--lh-accent);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lh-works__more:hover,
.lh-works__more:focus-visible {
  background: var(--lh-accent);
  color: #fff;
}

.lh-works__more svg {
  width: 22px;
  height: 12px;
  flex: none;
  display: block;
}

/* カンプではスマホだけ右端にシェブロンが付く */
.lh-works__chevron {
  display: none;
}

/* --- 中間幅は 1 列 --- */
@media (max-width: 1100px) {
  .lh-works__list {
    grid-template-columns: 1fr;
  }

  .lh-works__title {
    font-size: 40px;
  }
}

/* --- スマホ --- */
@media (max-width: 640px) {
  .lh-works__label {
    font-size: 12px;
  }

  .lh-works__title {
    font-size: 30px;
    line-height: 1.45;
  }

  .lh-works__lead {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.9;
  }

  .lh-works__list {
    gap: 14px;
    margin-top: 28px;
  }

  .lh-works__card {
    grid-template-columns: 40% 1fr;
  }

  .lh-works__photo {
    min-height: 100%;
  }

  .lh-works__body {
    position: relative;
    min-width: 0;
    padding: 16px 28px 16px 14px;
  }

  .lh-works__meta {
    font-size: 10px;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    letter-spacing: 0.08em;
  }

  .lh-works__num::after {
    margin-left: 8px;
    height: 12px;
  }

  .lh-works__num {
    font-size: 16px;
  }

  .lh-works__case {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
    word-break: auto-phrase;
  }

  .lh-works__figure {
    margin-top: 8px;
    font-size: 14px;
  }

  /* 狭い列に「+10,000,000 円」まで収める */
  .lh-works__figure strong {
    font-size: 22px;
  }

  .lh-works__figure-note {
    font-size: 14px;
  }

  .lh-works__desc {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.8;
  }

  .lh-works__metrics {
    margin-top: 12px;
  }

  .lh-works__metric {
    padding: 0 5px;
  }

  .lh-works__metric-label {
    font-size: 9px;
    letter-spacing: 0;
    white-space: normal;
  }

  .lh-works__metric-value {
    margin-top: 2px;
    font-size: 9px;
    white-space: normal;
  }

  .lh-works__metric-value strong {
    font-size: 16px;
  }

  .lh-works__tags {
    gap: 6px;
    padding-top: 14px;
  }

  .lh-works__tags li {
    padding: 6px 8px;
    font-size: 10px;
  }

  /* 右端のシェブロン（装飾） */
  .lh-works__chevron {
    display: block;
    position: absolute;
    right: 10px;
    top: 50%;
    width: 12px;
    height: 20px;
    transform: translateY(-50%);
    color: #999;
  }

  .lh-works__foot {
    flex-direction: column;
    gap: 18px;
    margin-top: 28px;
  }

  .lh-works__foot p {
    font-size: 14px;
  }

  .lh-works__more {
    width: 100%;
    max-width: 320px;
    gap: 32px;
  }
}
