/* はじめの文章 */
.intro__text {
  max-width: 40em;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 2.1;
}

/* Before / After: つまみを左右に動かして見比べる */
.ba-list {
  display: grid;
  gap: 24px;
}
@media (min-width: 860px) {
  .ba-list { grid-template-columns: repeat(3, 1fr); }
}
.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 500 / 356;
  overflow: hidden;
  background: var(--bg-2);
  user-select: none;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  pointer-events: none;
}
.ba__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: rgba(14, 14, 13, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 5 2 10l5 5M13 5l5 5-5 5' fill='none' stroke='%23e3c547' stroke-width='1.6'/%3E%3C/svg%3E") center / 18px no-repeat;
  transform: translate(-50%, -50%);
}
.ba__label {
  position: absolute;
  top: 12px;
  padding: 2px 10px;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.12em;
  background: rgba(14, 14, 13, 0.7);
  pointer-events: none;
}
.ba__label--before { left: 12px; }
.ba__label--after { right: 12px; }
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba:has(.ba__range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.ba-note { margin-top: 16px; font-size: 12px; color: var(--text-sub); }

/* こんな方に */
.targets { border-top: 1px solid var(--line); }
.target {
  display: grid;
  gap: 24px;
  padding: clamp(32px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}
.target__no {
  font-family: var(--display);
  font-size: 20px;
  color: var(--accent);
}
.target__title {
  margin-top: 4px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}
.target__body p { margin-top: 16px; color: var(--text-sub); }
/* 写真の縦横比が違っても同じ大きさにそろえる */
.target__image img { width: 100%; aspect-ratio: 500 / 356; object-fit: cover; }
@media (min-width: 860px) {
  .target { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .target:nth-child(even) .target__image { order: -1; }
}

/* 事例 */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 16px;
}
@media (min-width: 860px) {
  .cases { grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
}
.cases img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.cases figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
}

/* お客様の声 */
.voices {
  display: grid;
  gap: 20px;
}
@media (min-width: 860px) {
  .voices { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.voice {
  padding: clamp(24px, 3vw, 36px);
  background: #fbfaf6;
  border: 1px solid var(--line);
}
.voice__profile {
  display: flex;
  align-items: center;
  gap: 16px;
}
.voice__icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.voice__who { font-size: 13px; line-height: 1.6; color: var(--text-sub); }
.voice__who strong { display: block; font-size: 14px; color: var(--text); }
.voice__title {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.6;
}
.voice__text { margin-top: 12px; font-size: 14px; color: var(--text-sub); }

/* 実績 */
.record {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .record { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.record__title {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.7;
}
.record__text { margin-top: 20px; color: var(--text-sub); }
.record__image img { width: 100%; }

/* 対応エリア */
.areas {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}
@media (min-width: 860px) {
  .areas { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
}
.area {
  padding-top: 20px;
  border-top: 1px solid var(--text);
}
.area__title {
  font-size: 17px;
}
.area__body {
  margin-top: 12px;
  font-size: 13px;
  line-height: 2;
  color: var(--text-sub);
}
.area__body strong {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--text);
}
