/* 사진·이미지와 글을 번갈아 놓는 공통 섹션 (양도세·기장 페이지)
   PC는 좌우 교차, 모바일은 이미지 위·글 아래. 색은 각 페이지가 --tf-story-* 로 넘겨준다. */
.tf-story {
  --tf-story-ink: #101B34;
  --tf-story-body: #4A5363;
  --tf-story-brand: #0D7CF4;
  --tf-story-img-bg: #EEF3FA;
}
.tf-story-head { margin-bottom: 56px; }
.tf-story-head h2 {
  margin: 0; color: var(--tf-story-ink);
  font-size: clamp(1.75rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.3; letter-spacing: -1.2px;
}
.tf-story-head h2 em { font-style: normal; color: var(--tf-story-brand); }
.tf-story-list { display: grid; gap: 96px; }
.tf-story-row {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 72px; align-items: center;
}
.tf-story-row:nth-child(even) .tf-story-img { order: 2; }
.tf-story-img {
  margin: 0; overflow: hidden; border-radius: 20px;
  background: var(--tf-story-img-bg); aspect-ratio: 5 / 4;
}
.tf-story-img img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 25%; }
.tf-story-num { display: block; margin-bottom: 12px; color: var(--tf-story-brand); font-size: 0.92rem; font-weight: 800; letter-spacing: 0.4px; }
.tf-story-text h3 {
  margin: 0 0 18px; color: var(--tf-story-ink);
  font-size: clamp(1.5rem, 2.3vw, 2.1rem); font-weight: 700; line-height: 1.34; letter-spacing: -0.9px;
  word-break: keep-all;
}
.tf-story-text p { margin: 0; max-width: 460px; color: var(--tf-story-body); font-size: 1.02rem; line-height: 1.85; word-break: keep-all; }

/* 섹션 안에 이미지 한 장만 곁들일 때 (제목 옆 / 아래) */
.tf-figure { margin: 0; overflow: hidden; border-radius: 20px; background: var(--tf-story-img-bg, #EEF3FA); aspect-ratio: 5 / 4; }
.tf-figure img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* 스크롤해서 들어올 때 살짝 떠오름 — story-rows.js 가 켤 때만 */
.tf-story.is-anim .tf-story-row { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.tf-story.is-anim .tf-story-img img { transform: scale(1.06); transition: transform 1.4s ease; }
.tf-story.is-anim .tf-story-row.is-in { opacity: 1; transform: none; }
.tf-story.is-anim .tf-story-row.is-in .tf-story-img img { transform: none; }

@media (max-width: 900px) {
  .tf-story-list { gap: 64px; }
  .tf-story-row { grid-template-columns: 1fr; gap: 24px; }
  .tf-story-row:nth-child(even) .tf-story-img { order: 0; }
}
@media (max-width: 767px) {
  .tf-story-head { margin-bottom: 28px; }
  .tf-story-head h2 { font-size: 1.6rem; letter-spacing: -0.8px; }
  .tf-story-list { gap: 52px; }
  .tf-story-row { gap: 20px; }
  .tf-story-img, .tf-figure { aspect-ratio: 4 / 3; border-radius: 16px; }
  .tf-story-num { margin-bottom: 8px; font-size: 0.84rem; }
  .tf-story-text h3 { margin-bottom: 12px; font-size: 1.42rem; letter-spacing: -0.7px; }
  .tf-story-text p { font-size: 0.98rem; line-height: 1.75; }
}
