@charset "UTF-8";
/* ==========================================================================
   works.css
   ビューティーハウス コーポレートサイト / 施工実績ページ専用スタイル
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. イントロ
   -------------------------------------------------------------------------- */
.wk-intro {
  padding-top: clamp(48px, 7vw, 90px);
}

.wk-intro__text {
  max-width: 860px;
  margin-top: clamp(18px, 2.6vw, 28px);
  font-size: 1.5rem;
}

.wk-intro__note {
  margin-top: 18px;
  font-size: 1.25rem;
  color: var(--c-ink-soft);
}

/* --------------------------------------------------------------------------
   2. 施工写真
   -------------------------------------------------------------------------- */
.wk-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-m);
  box-shadow: var(--sh-md);
}

.wk-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   3. ビフォーアフター比較スライダー（実写が揃ったら再び使用する）
   -------------------------------------------------------------------------- */
.cmp {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--c-sea-pale);
  box-shadow: var(--sh-md);
  touch-action: pan-y;
  --pos: 50%;
}

.cmp__after {
  display: block;
  width: 100%;
  height: auto;
}

.cmp__before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--pos);
  overflow: hidden;
}

.cmp__before img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
}

.cmp__tag {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 4px 14px;
  font-family: var(--f-en);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--c-white);
  border-radius: 999px;
  pointer-events: none;
}

.cmp__tag--before {
  left: 14px;
  background: rgba(16, 32, 63, 0.76);
}

.cmp__tag--after {
  right: 14px;
  background: var(--c-brand);
}

.cmp__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 2;
  width: 2px;
  margin-left: -1px;
  background: var(--c-white);
  box-shadow: 0 0 12px rgba(16, 32, 63, 0.3);
  pointer-events: none;
}

.cmp__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--c-brand);
  background: var(--c-white);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(16, 32, 63, 0.24);
  transition: scale 0.3s var(--ease);
}

.cmp__knob svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cmp:hover .cmp__knob {
  scale: 1.08;
}

.cmp__range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.cmp__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 56px;
  height: 100%;
  cursor: ew-resize;
}

.cmp__range::-moz-range-thumb {
  width: 56px;
  height: 100%;
  border: none;
  cursor: ew-resize;
}

/* キーボード操作時のフォーカス表示（range本体は透明なため、つまみ側に表示する） */
.cmp:has(.cmp__range:focus-visible) .cmp__knob,
.cmp:focus-within .cmp__knob {
  outline: 3px solid var(--c-brand);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. 事例
   -------------------------------------------------------------------------- */
.wk-list {
  padding-top: clamp(36px, 5vw, 64px);
}

.wk-case {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.wk-case + .wk-case {
  margin-top: clamp(44px, 6vw, 88px);
  padding-top: clamp(44px, 6vw, 88px);
  border-top: 1px solid var(--c-line);
}

.wk-case--rev .wk-case__media {
  order: 2;
}

.wk-case__tag {
  display: inline-block;
  padding: 5px 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-brand);
  background: var(--c-sea-pale);
  border-radius: 999px;
}

.wk-case__title {
  margin-top: 14px;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1.55;
}

.wk-case__text {
  margin-top: 14px;
  font-size: 1.48rem;
  line-height: 2.1;
  color: var(--c-ink-mid);
}

.wk-case__spec {
  margin-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--c-line);
}

.wk-case__spec > div {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--c-line);
}

.wk-case__spec dt {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-ink-soft);
}

.wk-case__spec dd {
  font-size: 1.4rem;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   4. そのほかの事例
   -------------------------------------------------------------------------- */
.wk-other__head {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.5fr;
  gap: clamp(18px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 60px);
}

.wk-other__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 26px);
}

.wk-other__item {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  background: var(--c-white);
  border-radius: var(--radius-m);
  box-shadow: var(--sh-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.wk-other__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
}

.wk-other__tag {
  display: inline-block;
  padding: 5px 15px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-tile-dark);
  background: var(--c-tile-pale);
  border-radius: 999px;
}

.wk-other__title {
  margin-top: 12px;
  font-size: clamp(1.7rem, 2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.6;
}

.wk-other__text {
  margin-top: 10px;
  font-size: 1.4rem;
  line-height: 1.95;
  color: var(--c-ink-mid);
}

/* --------------------------------------------------------------------------
   5. 症状チェック
   -------------------------------------------------------------------------- */
.wk-check__head {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.5fr;
  gap: clamp(18px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 60px);
}

.wk-check__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px clamp(16px, 2.4vw, 28px);
}

.wk-check__list li {
  position: relative;
  padding: 18px 20px 18px 58px;
  font-size: 1.48rem;
  font-weight: 500;
  background: var(--c-sky);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
}

.wk-check__list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 20px;
  translate: 0 -50%;
  width: 22px;
  height: 22px;
  background: var(--g-sea);
  border-radius: 6px;
}

.wk-check__list li::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 26px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--c-white);
  border-bottom: 2px solid var(--c-white);
  transform: translateY(-70%) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. レスポンシブ
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .wk-other__head,
  .wk-check__head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .wk-other__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .wk-case {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .wk-case--rev .wk-case__media {
    order: 0;
  }
}

@media (max-width: 768px) {
  .wk-check__list {
    grid-template-columns: 1fr;
  }

  .wk-case__spec > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .cmp__knob {
    width: 44px;
    height: 44px;
  }

  .cmp__knob svg {
    width: 18px;
    height: 18px;
  }
}
