/* ==============================
   分野ページ共通CSS
   前面分野（相続・不動産）＋対応分野（離婚・交通事故・企業法務）
   ※ FV・パンくず・FVアニメーションは page-common.css に集約
   ============================== */

/* ==============================
   メッセージセクション（写真付き・左寄せ）
   ============================== */
.practice-message {
  background: var(--color-bg);
  padding: 100px 0 120px;
}

.practice-message__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.practice-message__en {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 40px;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.practice-message__catch {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 30px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 32px;
  padding-left: 24px;
  border-left: 4px solid var(--color-primary);
  position: relative;
}

.practice-message__catch::before {
  content: '\201C';
  position: absolute;
  top: -24px;
  left: -8px;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 80px;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
}

.practice-message__follow {
  font-family: var(--font-body);
  font-size: 16px;
  color: #555;
  line-height: var(--line-height-body);
}

/* ==============================
   取組方針セクション（セパレータリスト）
   ============================== */
.practice-approach {
  background: var(--color-bg);
  padding: 100px 0;
  border-top: 4px solid var(--color-primary);
}

.practice-approach__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* セクション見出し → page-common.css .section-heading に集約 */

.practice-approach__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.practice-approach__item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.practice-approach__item:first-child {
  padding-top: 0;
}

.practice-approach__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.practice-approach__number {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 36px;
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}

.practice-approach__icon {
  position: absolute;
  bottom: 12px;
  right: 0;
  width: 72px;
  height: 72px;
  color: var(--color-primary);
  opacity: 0.10;
  pointer-events: none;
}

.practice-approach__body {
  flex: 1;
}

.practice-approach__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.practice-approach__keyword {
  color: var(--color-primary);
}

.practice-approach__text {
  font-family: var(--font-body);
  font-size: 15px;
  color: #555;
  line-height: var(--line-height-body);
}

/* ==============================
   よくあるご相談（FAQ）セクション — 2カラムグリッド
   ============================== */
.practice-faq {
  background: var(--color-secondary);
  padding: 100px 0;
}

/* FAQ白背景バリエーション（対応分野等、隣接セクションがgrayの場合） */
.practice-faq--light {
  background: var(--color-bg);
}

.practice-faq__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

.practice-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.practice-faq__item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.practice-faq__item::before {
  content: 'Q';
  position: absolute;
  top: -8px;
  left: 12px;
  font-family: var(--font-english);
  font-weight: 700;
  font-size: 72px;
  color: var(--color-primary);
  opacity: 0.10;
  line-height: 1;
  pointer-events: none;
}

.practice-faq__item[open] {
  box-shadow: var(--shadow);
}

.practice-faq__question {
  display: block;
  padding: 20px 40px 20px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.6;
  position: relative;
  transition: color 0.2s;
}

.practice-faq__question::-webkit-details-marker {
  display: none;
}

.practice-faq__question:hover {
  color: var(--color-primary);
}

/* シェブロン */
.practice-faq__question::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.practice-faq__item[open] .practice-faq__question::after {
  transform: translateY(-30%) rotate(-135deg);
}

.practice-faq__answer {
  overflow: hidden;
  position: relative;
}

.practice-faq__answer::before {
  content: 'A';
  position: absolute;
  bottom: -4px;
  right: 12px;
  font-family: var(--font-english);
  font-weight: 700;
  font-size: 72px;
  color: var(--color-primary);
  opacity: 0.10;
  line-height: 1;
  pointer-events: none;
}

.practice-faq__answer > p {
  padding: 0 20px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #555;
  line-height: var(--line-height-body);
}

/* ==============================
   解決事例セクション（タイムライン風）
   ============================== */
.practice-cases {
  background: var(--color-bg);
  padding: 100px 0;
}

.practice-cases__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

.practice-cases__timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.practice-cases__item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 32px 28px;
  transition: box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.practice-cases__item:hover {
  box-shadow: var(--shadow);
}

.practice-cases__item::before {
  content: attr(data-num);
  position: absolute;
  top: -12px;
  right: 16px;
  font-family: var(--font-english);
  font-weight: 700;
  font-size: 120px;
  color: var(--color-primary);
  opacity: 0.10;
  line-height: 1;
  pointer-events: none;
}

.practice-cases__num {
  display: none;
}

.practice-cases__body {
  flex: 1;
  padding-top: 4px;
}

.practice-cases__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--font-size-card-title);
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 6px;
}

.practice-cases__meta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.practice-cases__text {
  font-family: var(--font-body);
  font-size: 15px;
  color: #555;
  line-height: var(--line-height-body);
}

/* ==============================
   対応分野 — 対応内容セクション
   ============================== */
.practice-coverage {
  background: var(--color-bg);
  padding: 100px 0;
  border-top: 4px solid var(--color-primary);
}

.practice-coverage__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

.practice-coverage__en {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 40px;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  text-align: center;
}

/* coverage見出し → page-common.css .section-heading に集約 */

.practice-coverage__body {
  font-family: var(--font-body);
  font-size: 15px;
  color: #555;
  line-height: var(--line-height-body);
  max-width: 720px;
  margin: 0 auto 32px;
}

/* 上段：対応領域 */
.practice-coverage__upper {
  max-width: 720px;
  margin: 0 auto;
}

.practice-coverage__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.practice-coverage__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(45, 184, 122, 0.08);
  border: 1px solid rgba(45, 184, 122, 0.25);
  border-radius: 20px;
  padding: 8px 20px;
}

/* 下段：事例 */
.practice-coverage__lower {
  max-width: 720px;
  margin: 48px auto 0;
}

.practice-coverage__note {
  font-family: var(--font-body);
  font-size: 13px;
  color: #999;
  text-align: center;
  margin-top: 20px;
}

/* ==============================
   顧問契約 比較表
   ============================== */
.practice-compare {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 720px;
  margin: 48px auto 0;
}

.practice-compare__col {
  flex: 1;
  padding: 28px 24px;
  border-radius: var(--radius);
}

.practice-compare__col--without {
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.practice-compare__col--with {
  background: rgba(45, 184, 122, 0.06);
  border: 1px solid rgba(45, 184, 122, 0.2);
}

.practice-compare__label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.practice-compare__col--with .practice-compare__label {
  color: var(--color-primary);
  border-bottom-color: rgba(45, 184, 122, 0.2);
}

.practice-compare__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.practice-compare__list li {
  font-family: var(--font-body);
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.practice-compare__col--without .practice-compare__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #bbb;
}

.practice-compare__col--with .practice-compare__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.practice-compare__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  color: var(--color-primary);
  opacity: 0.4;
}

/* ==============================
   アニメーション
   ============================== */

/* FV・パンくずアニメーション → page-common.css に集約 */

/* --- @keyframes 定義 --- */
@keyframes practiceSlideLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes practiceSlideLeftSP {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes practiceQuoteScale {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 0.15; transform: scale(1); }
}

@keyframes practiceSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes practiceNumberSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes practiceIconFade {
  from { opacity: 0; }
  to   { opacity: 0.10; }
}

@keyframes practiceFaqSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes practiceWatermarkFade {
  from { opacity: 0; }
  to   { opacity: 0.10; }
}

@keyframes practiceTagScaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* --- メッセージ: 引用符スケールイン + キャッチ左スライド --- */
.practice-message.fade-in {
  opacity: 0;
  transform: none;
}

.practice-message.fade-in.is-visible {
  opacity: 1;
}

.practice-message.fade-in .practice-message__catch {
  opacity: 0;
}

.practice-message.fade-in.is-visible .practice-message__catch {
  animation: practiceSlideLeft 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.practice-message.fade-in .practice-message__catch::before {
  opacity: 0;
}

.practice-message.fade-in.is-visible .practice-message__catch::before {
  animation: practiceQuoteScale 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

.practice-message.fade-in .practice-message__follow {
  opacity: 0;
}

.practice-message.fade-in.is-visible .practice-message__follow {
  animation: practiceSlideUp 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

/* --- 取組方針: 番号のスライドイン --- */
.practice-approach__item.stagger-child .practice-approach__number {
  opacity: 0;
}

.practice-approach__item.stagger-child.is-visible .practice-approach__number {
  animation: practiceNumberSlideUp 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* --- 取組方針: アイコンウォーターマークのフェードイン --- */
.practice-approach__item.stagger-child .practice-approach__icon {
  opacity: 0;
}

.practice-approach__item.stagger-child.is-visible .practice-approach__icon {
  animation: practiceIconFade 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

/* --- セクション見出しアンダーライン --- */
.fade-in.is-visible .section-heading::after {
  animation: underline-grow 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.section-heading::after {
  transform: scaleX(0);
  transform-origin: center;
}

/* --- FAQ: アイテム時間差登場 --- */
.practice-faq__item.stagger-child {
  opacity: 0;
}

.practice-faq__item.stagger-child.is-visible {
  animation: practiceFaqSlideUp 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* --- FAQ: 回答スムーズ展開 --- */
.practice-faq__answer {
  overflow: hidden;
  position: relative;
}

.practice-faq__item[open] .practice-faq__answer {
  animation: faqReveal 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- 解決事例カード: ホバーリフト --- */
.practice-cases__item {
  transition: box-shadow 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.practice-cases__item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* --- 解決事例: ウォーターマーク数字のフェードイン --- */
.practice-cases__item.stagger-child::before {
  opacity: 0;
}

.practice-cases__item.stagger-child.is-visible::before {
  animation: practiceWatermarkFade 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

/* --- Q/A ウォーターマーク: フェードイン --- */
.practice-faq__item.stagger-child::before {
  opacity: 0;
}

.practice-faq__item.stagger-child.is-visible::before {
  animation: practiceWatermarkFade 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

/* --- 対応内容タグ: スケールイン --- */
.practice-coverage__tag.stagger-child {
  opacity: 0;
}

.practice-coverage__tag.stagger-child.is-visible {
  animation: practiceTagScaleIn 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* --- アクセシビリティ: モーション軽減 --- */
/* FVのreduced-motion → page-common.css に集約 */
@media (prefers-reduced-motion: reduce) {
  .practice-message.fade-in .practice-message__catch,
  .practice-message.fade-in .practice-message__catch::before,
  .practice-message.fade-in .practice-message__follow,
  .practice-approach__item.stagger-child .practice-approach__number,
  .practice-approach__item.stagger-child .practice-approach__icon,
  .practice-faq__item.stagger-child,
  .practice-cases__item.stagger-child::before,
  .practice-faq__item.stagger-child::before,
  .practice-coverage__tag.stagger-child {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .practice-faq__item[open] .practice-faq__answer {
    animation: none;
  }

  .practice-cases__item:hover {
    transform: none;
  }
}


/* ==============================
   Responsive - Tablet (max-width: 1024px)
   ============================== */
@media (max-width: 1024px) {
  /* FV・パンくず → page-common.css に集約 */

  /* メッセージ */
  .practice-message {
    padding: 80px 0 100px;
  }

  .practice-message__catch {
    font-size: 26px;
  }

  .practice-message__catch::before {
    font-size: 64px;
    top: -20px;
  }

  /* 取組方針アイコン */
  .practice-approach__icon {
    width: 64px;
    height: 64px;
  }

  /* FAQ */
  .practice-faq__item::before {
    font-size: 56px;
  }

  /* 解決事例 */
  .practice-cases__item::before {
    font-size: 96px;
  }

  /* 比較表 */
  .practice-compare {
    max-width: 640px;
  }
}

/* ==============================
   Responsive - SP (max-width: 768px)
   ============================== */
@media (max-width: 768px) {
  /* FV・パンくず → page-common.css に集約 */

  /* メッセージ */
  .practice-message {
    padding: 48px 0 64px;
  }

  .practice-message__inner {
    max-width: 100%;
  }

  .practice-message__catch {
    font-size: 22px;
    line-height: 1.7;
    padding-left: 16px;
    border-left-width: 3px;
  }

  .practice-message__catch::before {
    font-size: 52px;
    top: -16px;
    left: -4px;
  }

  .practice-message__follow {
    font-size: 15px;
  }

  /* 取組方針 */
  .practice-approach {
    padding: 48px 0;
    border-top-width: 3px;
  }

  /* approach見出しSP → page-common.css .section-heading に集約 */

  .practice-approach__item {
    gap: 12px;
    padding: 24px 0;
  }

  .practice-approach__number {
    font-size: 24px;
    min-width: 28px;
  }

  .practice-approach__icon {
    width: 56px;
    height: 56px;
  }

  .practice-approach__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
  }

  .practice-approach__text {
    font-size: 14px;
  }

  /* FAQ */
  .practice-faq {
    padding: 48px 0;
  }

  /* faq見出しSP → page-common.css .section-heading に集約 */

  .practice-faq__item::before {
    font-size: 48px;
    top: -4px;
    left: 8px;
  }

  .practice-faq__question {
    padding: 16px 36px 16px 16px;
    font-size: 15px;
  }

  .practice-faq__question::after {
    right: 12px;
    width: 7px;
    height: 7px;
  }

  .practice-faq__answer::before {
    font-size: 48px;
    right: 8px;
  }

  .practice-faq__answer > p {
    padding: 0 16px 16px;
    font-size: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 12px;
    border-left: none;
    margin-left: 0;
  }

  /* 解決事例 */
  .practice-cases {
    padding: 48px 0;
  }

  /* cases見出しSP → page-common.css .section-heading に集約 */

  .practice-cases__timeline {
    gap: 16px;
  }

  .practice-cases__item {
    padding: 24px 20px;
  }

  .practice-cases__item::before {
    font-size: 80px;
    top: -8px;
    right: 12px;
  }

  .practice-cases__title {
    font-size: 20px;
    font-weight: 700;
  }

  .practice-cases__meta {
    font-size: 12px;
  }

  .practice-cases__text {
    font-size: 14px;
  }

  /* 対応内容 */
  .practice-coverage {
    padding: 48px 0;
    border-top-width: 3px;
  }

  /* coverage見出しSP → page-common.css .section-heading に集約 */

  .practice-coverage__body {
    font-size: 14px;
  }

  .practice-coverage__tags {
    gap: 8px;
  }

  .practice-coverage__tag {
    font-size: 13px;
    padding: 6px 16px;
  }

  .practice-coverage__lower {
    margin-top: 32px;
  }

  .practice-coverage__note {
    font-size: 12px;
    margin-top: 16px;
  }

  /* SP: メッセージのスライド距離を縮小 */
  .practice-message.fade-in.is-visible .practice-message__catch {
    animation-name: practiceSlideLeftSP;
  }

  /* SP: FVアニメーション遅延 → page-common.css に集約 */

  /* SP: ホバーリフト無効化（タッチデバイス） */
  .practice-cases__item:hover {
    transform: none;
  }

  /* 比較表 */
  .practice-compare {
    flex-direction: column;
    gap: 0;
    margin-top: 32px;
  }

  .practice-compare__col {
    padding: 20px 16px;
    border-radius: 0;
  }

  .practice-compare__col--without {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .practice-compare__col--with {
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: none;
  }

  .practice-compare__arrow {
    width: auto;
    height: 32px;
    background: #f5f5f5;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
  }

  .practice-compare__label {
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .practice-compare__list li {
    font-size: 14px;
  }

  .practice-compare__arrow svg {
    transform: rotate(90deg);
  }
}
