/* ========================================
   page-practice.css — 分野ページ共通
   前面分野（中小企業法務・遺言相続）＋簡易分野
   ======================================== */

/* ========================================
   FV背景写真（ページ固有）
   ======================================== */
.page-fv--corporate::after {
  background-image: url('/images/fv-corporate.png');
  opacity: 0.12;
}
.page-fv--inheritance::after {
  background-image: url('/images/fv-inheritance.png');
  opacity: 0.12;
}
.page-fv--accident::after {
  background-image: url('/images/fv-accident.png');
  opacity: 0.12;
}
.page-fv--criminal::after {
  background-image: url('/images/fv-criminal.png');
  opacity: 0.14;
}
.page-fv--divorce::after {
  background-image: url('/images/fv-divorce.png');
  opacity: 0.09;
}

/* ========================================
   メッセージセクション
   ======================================== */
.practice-message {
  padding: 48px 0 0;
  background: var(--color-bg);
}
.practice-message__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}
.practice-message__content {
  flex: 1;
  min-width: 0;
}
.practice-message__catch {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 24px;
}
.practice-message__highlight {
  color: var(--color-primary);
  background: linear-gradient(transparent 60%, rgba(184,150,62,0.15) 60%);
}
.practice-message__body {
  margin-bottom: 0;
}
.practice-message__body p {
  font-size: 15px;
  line-height: 2;
  color: #555;
}
/* 担当弁護士（簡易分野ページ用） */
.practice-message__lawyer {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  opacity: 0.7;
}
.practice-message__photo {
  flex: 0 0 275px;
  position: relative;
}
/* L字コーナー装飾 */
.practice-message__photo::before {
  content: '';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}
.practice-message__photo::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: -6px;
  width: 28px;
  height: 28px;
  border-bottom: 2px solid rgba(30,61,107,0.15);
  border-left: 2px solid rgba(30,61,107,0.15);
  pointer-events: none;
  z-index: 1;
}
.practice-message__photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: var(--radius);
}
/* 象徴的写真（人物でない場合）— object-positionを中央に */
.practice-message__photo--symbolic img {
  object-position: center center;
}

/* ========================================
   取組方針セクション（前面分野）
   ======================================== */
.practice-approach {
  position: relative;
  padding: var(--section-gap) 0;
  background: linear-gradient(180deg, #E8ECF0 0%, #E4E8ED 100%);
  overflow: hidden;
}
.practice-approach::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(30,61,107,0.03) 0px,
      rgba(30,61,107,0.03) 1px,
      transparent 1px,
      transparent 64px
    );
  pointer-events: none;
}
/* ウォーターマーク */
.practice-approach__wm {
  position: absolute;
  top: 40px;
  left: -20px;
  font-family: var(--font-english);
  font-size: 120px;
  font-weight: 400;
  color: var(--color-primary);
  opacity: 0.05;
  letter-spacing: 0.05em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}
.practice-approach__inner {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* カード共通 */
.practice-approach__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  position: relative;
  box-shadow: 0 2px 12px rgba(30,61,107,0.06);
}
/* L字コーナー装飾（取組方針カード） */
.practice-approach__card::before {
  content: '';
  position: absolute;
  top: -6px; right: -6px;
  width: 40px; height: 40px;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  opacity: 0.4;
  pointer-events: none;
}
.practice-approach__card::after {
  content: '';
  position: absolute;
  bottom: -6px; left: -6px;
  width: 28px; height: 28px;
  border-bottom: 2px solid rgba(30,61,107,0.15);
  border-left: 2px solid rgba(30,61,107,0.15);
  pointer-events: none;
}
/* 大番号ウォーターマーク（カード右上） */
.practice-approach__card-num-large {
  position: absolute;
  top: 16px; right: 24px;
  font-family: var(--font-english);
  font-size: 80px;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}
/* アイコン: 2列カード（02/03）— 上部中央 */
.practice-approach__card-icon {
  width: 96px; height: 96px;
  margin: 0 auto 20px;
}
.practice-approach__card-icon img {
  width: 96px; height: 96px;
  object-fit: contain;
}
/* アイコン: 横長カード（01）— 左配置 */
.practice-approach__card--wide .practice-approach__card-icon {
  width: 96px; height: 96px;
  margin: 0;
  flex-shrink: 0;
}
.practice-approach__card--wide .practice-approach__card-icon img {
  width: 96px; height: 96px;
}
.practice-approach__card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 12px;
}
/* アクセントセパレータ */
.practice-approach__card-sep {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 16px;
}
.practice-approach__card-text {
  font-size: 15px;
  line-height: 2;
  color: #555;
}
.practice-approach__card-text:last-child {
  margin-bottom: 0;
}

/* カード01: 横長フルワイド */
.practice-approach__card--wide {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 24px;
}
.practice-approach__card--wide .practice-approach__card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
  margin-top: 4px;
}
.practice-approach__card--wide .practice-approach__card-body {
  flex: 1;
  min-width: 0;
}

/* カード02・03: 2列 */
.practice-approach__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ========================================
   よくあるご相談（FAQ）— 分野ページ共通
   ======================================== */
.practice-faq {
  position: relative;
  padding: var(--section-gap) 0;
  background: var(--color-bg);
  overflow: hidden;
}
/* ウォーターマーク */
.practice-faq__wm {
  position: absolute;
  top: 40px;
  right: -20px;
  font-family: var(--font-english);
  font-size: 120px;
  font-weight: 400;
  color: var(--color-primary);
  opacity: 0.05;
  letter-spacing: 0.05em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}
.practice-faq__inner {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}
.practice-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FAQ Item — page-common.css に移動済み */

/* ========================================
   解決事例セクション（前面分野）
   ======================================== */
.practice-cases {
  position: relative;
  padding: var(--section-gap) 0;
  background: linear-gradient(180deg, #E8ECF0 0%, #E4E8ED 100%);
  overflow: hidden;
}
.practice-cases::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(30,61,107,0.03) 0px,
      rgba(30,61,107,0.03) 1px,
      transparent 1px,
      transparent 64px
    );
  pointer-events: none;
}
/* ウォーターマーク */
.practice-cases__wm {
  position: absolute;
  top: 40px;
  left: -20px;
  font-family: var(--font-english);
  font-size: 120px;
  font-weight: 400;
  color: var(--color-primary);
  opacity: 0.05;
  letter-spacing: 0.05em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}
.practice-cases__inner {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}
.practice-cases__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.practice-cases__item {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  box-shadow: 0 2px 12px rgba(30,61,107,0.06);
}
/* 番号ウォーターマーク */
.practice-cases__item[data-num]::before {
  content: attr(data-num);
  position: absolute;
  top: 12px; right: 20px;
  font-family: var(--font-english);
  font-size: 72px;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
}
/* L字コーナー装飾（解決事例カード） */
.practice-cases__item::after {
  content: '';
  position: absolute;
  top: -6px; right: -6px;
  width: 40px; height: 40px;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  opacity: 0.4;
  pointer-events: none;
}
.practice-cases__corner {
  position: absolute;
  bottom: -6px; left: -6px;
  width: 28px; height: 28px;
  border-bottom: 2px solid rgba(30,61,107,0.15);
  border-left: 2px solid rgba(30,61,107,0.15);
  pointer-events: none;
}
/* 事例ヘッダー */
.practice-cases__head {
  margin-bottom: 20px;
}
.practice-cases__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  padding: 3px 12px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.practice-cases__label {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}
.practice-cases__period {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(30,61,107,0.06);
  padding: 4px 12px;
  border-radius: 20px;
}
/* 概要/対応/結果 DL */
.practice-cases__dl {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 16px;
  margin-bottom: 12px;
}
.practice-cases__dl dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  padding: 4px 0;
}
.practice-cases__dl dd {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  padding: 4px 0;
  margin: 0;
}
.practice-cases__note {
  font-size: 13px;
  color: #999;
  line-height: 1.6;
}

/* ========================================
   対応内容セクション（簡易分野用）
   ======================================== */
.practice-coverage {
  position: relative;
  padding: var(--section-gap) 0;
  background: linear-gradient(180deg, #E8ECF0 0%, #E4E8ED 100%);
  overflow: hidden;
}
.practice-coverage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(30,61,107,0.03) 0px,
      rgba(30,61,107,0.03) 1px,
      transparent 1px,
      transparent 64px
    );
  pointer-events: none;
}
/* ウォーターマーク */
.practice-coverage__wm {
  position: absolute;
  top: 40px;
  left: -20px;
  font-family: var(--font-english);
  font-size: 120px;
  font-weight: 400;
  color: var(--color-primary);
  opacity: 0.05;
  letter-spacing: 0.05em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}
.practice-coverage__inner {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}
.practice-coverage__body {
  margin-bottom: 32px;
}
.practice-coverage__body p {
  font-size: 15px;
  line-height: 2;
  color: #555;
}
.practice-coverage__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.practice-coverage__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(30,61,107,0.06);
  padding: 6px 16px;
  border-radius: 20px;
}
.practice-coverage__note {
  margin-top: 20px;
  font-size: 13px;
  color: #999;
  line-height: 1.6;
}

/* ========================================
   RESPONSIVE — Tablet (1024px)
   ======================================== */
@media (max-width: 1280px) {
  .practice-message { padding: 40px 0 0; }
  .practice-message__inner { gap: 32px; }
  .practice-message__catch { font-size: 22px; }
  .practice-message__photo { flex: 0 0 180px; }
  .practice-message__photo img { height: 260px; }

  .practice-approach__card { padding: 32px 28px 28px; }
  .practice-approach__card-title { font-size: 18px; }
  .practice-approach__card--wide { flex-direction: column; gap: 16px; }
  .practice-approach__card--wide .practice-approach__card-icon { margin: 0 auto 12px; }
  .practice-approach__row { grid-template-columns: 1fr 1fr; gap: 20px; }

  .practice-approach__wm,
  .practice-faq__wm,
  .practice-cases__wm,
  .practice-coverage__wm { font-size: 80px; }
}

/* ========================================
   RESPONSIVE — SP (768px)
   ======================================== */
@media (max-width: 768px) {
  /* メッセージ SP — 写真を縮小して残す */
  .practice-message { padding: 32px 0 24px; }
  .practice-message__inner { flex-direction: column; gap: 20px; }
  .practice-message__catch { font-size: 20px; margin-bottom: 16px; }
  .practice-message__body p { font-size: 14px; }
  .practice-message__photo { flex: none; width: 50%; max-width: 200px; margin: 0 auto; }
  .practice-message__photo img { height: 200px; object-position: center 15%; }

  /* 取組方針 SP */
  .practice-approach { padding: 48px 0; }
  .practice-approach__card { padding: 28px 20px 24px; }
  .practice-approach__card-num-large { font-size: 56px; top: 10px; right: 14px; }
  .practice-approach__card-icon { width: 72px; height: 72px; }
  .practice-approach__card-icon img { width: 72px; height: 72px; }
  .practice-approach__card--wide .practice-approach__card-icon { width: 72px; height: 72px; }
  .practice-approach__card--wide .practice-approach__card-icon img { width: 72px; height: 72px; }
  .practice-approach__card-title { font-size: 20px; }
  .practice-approach__card-title br { display: none; }
  .practice-approach__card-text { font-size: 14px; }
  .practice-approach__card-sep { width: 32px; }
  .practice-approach__card--wide { flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .practice-approach__card--wide .practice-approach__card-icon { margin: 0 auto 12px; }
  .practice-approach__card-icon[style] { margin-top: 0 !important; }
  .practice-approach__row { grid-template-columns: 1fr; gap: 16px; }
  .practice-approach__wm { font-size: 64px; top: 20px; }

  /* L字装飾 SP — 全カード共通で縮小（.faq-itemはpage-common.cssに移動済み） */
  .practice-approach__card::before,
  .practice-cases__item::after { width: 32px; height: 32px; top: -5px; right: -5px; }
  .practice-approach__card::after,
  .practice-cases__corner { width: 24px; height: 24px; bottom: -5px; left: -5px; }
  .practice-message__photo::before { width: 32px; height: 32px; top: -5px; right: -5px; }
  .practice-message__photo::after { width: 24px; height: 24px; bottom: -5px; left: -5px; }

  /* FAQ SP（.faq-itemのSPルールはpage-common.cssに移動済み） */
  .practice-faq { padding: 48px 0; }
  .practice-faq__wm { font-size: 64px; top: 20px; }

  /* 解決事例 SP */
  .practice-cases { padding: 48px 0; }
  .practice-cases__wm { font-size: 64px; top: 20px; }
  .practice-cases__item { padding: 24px 20px; }
  .practice-cases__item[data-num]::before { font-size: 56px; top: 8px; right: 12px; }
  .practice-cases__label { font-size: 16px; }
  .practice-cases__dl { grid-template-columns: 1fr; gap: 0; }
  .practice-cases__dl dt {
    font-size: 13px;
    padding: 8px 0 2px;
  }
  .practice-cases__dl dt:first-of-type { padding-top: 0; }
  .practice-cases__dl dd {
    font-size: 14px;
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(30,61,107,0.06);
  }
  .practice-cases__dl dd:last-of-type { border-bottom: none; }

  /* 対応内容 SP */
  .practice-coverage { padding: 48px 0; }
  .practice-coverage__wm { font-size: 64px; top: 20px; }
  .practice-coverage__body p { font-size: 14px; }
  .practice-coverage__tags { gap: 6px; }
  .practice-coverage__tag { font-size: 12px; padding: 5px 12px; line-height: 1.5; }
  .practice-coverage__note { font-size: 12px; margin-top: 16px; }


  /* アニメーション SP — 移動量縮小 */
  .anim-slide-left { transform: translateX(-12px); }
  .anim-clip { transform: translateY(12px); }
}
