@charset "utf-8";
/* ==================================================
TOPページリニューアル（front-page.php）26.10.21作成
================================================== */

/* --------------------------------------------------
共通：セクション間の余白（PC 120px／SP 80px）
背景色のないセクションが続く場合は上の余白を0にして、間隔を120pxに揃える
-------------------------------------------------- */
#top_renewal > section:not(#information) {
  padding-top: 120px;
  padding-bottom: 120px;
}

#top_renewal > section:not(.tr_bg):not(#information) + section:not(.tr_bg) {
  padding-top: 0;
}

.tr_bg {
  background-color: #F4F8FB;
}

/* 横スクロールの一覧（動画・メディア掲載・ブログ）は 100vw で画面の端まで広げるため、
   スクロールバーのあるブラウザでページが横にはみ出さないよう切り取る（clip はスクロール領域を作らない） */
#top_renewal {
  overflow-x: clip;
}

.tr_wrap {
  width: 1248px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* 見出し（既存の .box_ttl + .page_ttl_en を使用） */
#top_renewal .tr_ttl {
  margin-top: 0;
  margin-bottom: 8px;
}

/* 英字ラベル下の線（既存 .page_ttl_en::after は margin-top 35px） */
#top_renewal .tr_ttl + .page_ttl_en::after {
  margin-top: 32px;
}

@media screen and (max-width: 767px) {
  #top_renewal .tr_ttl + .page_ttl_en::after {
    margin-top: 24px;
  }
}

/* ボタン：既存の .link_small（6つの理由の「詳しく見る」）をベースに、影の代わりに枠線
   文言が長いので幅を広げ、右の矢印にかからないよう右余白を確保 */
#top_renewal .tr_link {
  width: 240px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px 0 16px;
  border: 1px solid #006cc9;
  box-shadow: none;
  background-color: #fff;
  background-size: 20px;
  background-position: right 16px center;
  transition: background-color 0.3s, color 0.3s;
}

#top_renewal .tr_link:hover {
  background-color: #006cc9;
  background-image: url("../images/index/plan_arr_w@2x.png");
  color: #fff;
  opacity: 1;
}

/* --------------------------------------------------
01 FV（既存のFVに10%割引の記載のみ追加）
-------------------------------------------------- */
/* 予約ボタンの上の「＼HP経由で報酬10%割引／」（＼／は擬似要素の斜線） */
#top_renewal .fv__btn-wrap {
  align-items: flex-start; /* 予約ボタンの下の注意書きの分、電話ボタンが伸びないように */
  margin-top: 4.8rem;
}

/* 予約ボタン＋その下に10%割引の対象者の注意書き */
.tr_fv_reserve_wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 400px;
  width: 100%;
}

#top_renewal .tr_fv_reserve_wrap .fv__btn {
  max-width: none;
  min-height: 76px; /* 電話ボタンと同じ高さ */
}

.tr_fv_campaign {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px; /* 料金ページの「＼ … ／」の半角スペースと同じくらい */
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 600; /* 料金ページの「＼ HP経由で報酬10%割引 ／」と同じ */
  line-height: 1.4;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

#top_renewal .tr_fv_off {
  color: #ff7646;
  font-size: 2rem;
  font-weight: bold;
}

/* 「HP経由で」に下線 */
.tr_fv_hp {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tr_fv_campaign::before,
.tr_fv_campaign::after {
  -webkit-text-stroke: 0.6px currentColor; /* FVは Noto Sans JP で＼／が細く見えるので少し太らせる（CTA帯・事務所ボタンは游ゴシックなので不要） */
}

.tr_fv_campaign::before {
  content: "＼"; /* 料金ページの「＼ HP経由で報酬10%割引 ／」と同じく全角の文字 */
}

.tr_fv_campaign::after {
  content: "／";
}

.tr_fv_note {
  margin-top: 8px;
  color: #666;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* 1行に入らない幅のときは、文のかたまりで折り返す（1文字だけ次の行に落ちないように） */
.tr_fv_note span {
  display: inline-block;
}

/* --------------------------------------------------
03 H1（旧「税理士法人NCPについて」の写真＋白ボックスの重なりを踏襲）
幅1280px基準：写真800px、ボックス654px、重なり175px
-------------------------------------------------- */
.tr_h1_box {
  display: flex;
  align-items: center; /* 段違いに戻す場合：flex-start */
}

.tr_h1_img {
  flex: 0 0 62.5%;
}

#top_renewal .tr_h1_img img {
  display: block;
  width: 100%;
  height: auto;
}

.tr_h1_cnt {
  position: relative;
  flex: 0 0 51.1%;
  margin-left: -13.6%;
  margin-top: 0; /* 段違いに戻す場合：80px */
  padding: 48px 64px;
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tr_h1_ttl {
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.68;
  letter-spacing: 0.2em;
}

.tr_h1_txt {
  padding-top: 24px;
}

.tr_h1_txt p {
  font-size: 1.6rem;
  line-height: 2;
}

/* --------------------------------------------------
04 段階別サービス
-------------------------------------------------- */
.tr_service_list {
  display: flex;
  gap: 24px;
  margin-top: 48px;
}

.tr_service_item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  background-color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tr_service_img {
  width: 140px;
  margin: 0 auto 16px;
}

#top_renewal .tr_service_img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.tr_service_lead {
  color: #006cc9;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
}

.tr_service_ttl {
  margin-top: 4px;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.5;
}

.tr_service_txt {
  margin-top: 16px;
  font-size: 1.4rem;
  line-height: 1.7;
}

.tr_service_menu {
  margin-top: 16px;
}

.tr_service_menu li {
  position: relative;
  padding-left: 1em;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
}

.tr_service_menu li + li {
  margin-top: 8px;
}

.tr_service_menu li::before {
  content: '・';
  position: absolute;
  left: 0;
  top: 0;
}

.tr_service_item .tr_btn {
  margin-top: auto;
  padding-top: 24px;
}
/* 迷っている方向けの導線（/procedure/「このページでわかること」.info_box の見せ方に合わせる） */
.tr_service_guide {
  margin-top: 40px;
  padding: 40px 32px;
  background-color: #F4F8FB;
  text-align: center;
}

.tr_service_guide_ttl {
  display: inline-block;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.6;
  border-bottom: 1px solid #006cc9;
}

/* 狭い画面で「へ」だけ改行されないよう、文節のかたまりで折り返す */
.tr_service_guide_ttl span {
  display: inline-block;
}

.tr_service_guide_txt {
  margin-top: 16px;
  font-size: 1.6rem;
  line-height: 1.7;
}

.tr_service_guide .tr_btn {
  margin-top: 24px;
}

/* --------------------------------------------------
タブレット
-------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .tr_fv_reserve_wrap {
    max-width: 320px;
  }

  .tr_h1_cnt {
    margin-top: 0; /* 段違いに戻す場合：40px */
    padding: 40px;
  }

  .tr_h1_ttl {
    font-size: 2.6rem;
    letter-spacing: 0.1em;
  }

  .tr_h1_txt p {
    font-size: 1.5rem;
    line-height: 1.8;
  }

  .tr_service_list {
    gap: 16px;
  }

  .tr_service_item {
    padding: 40px 24px;
  }}

/* --------------------------------------------------
SP
-------------------------------------------------- */
@media screen and (max-width: 767px) {
  #top_renewal > section:not(#information) {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .tr_wrap {
    padding: 0 20px;
  }

  #top_renewal .fv__btn-wrap {
    margin-top: 4rem;
  }

  .tr_fv_reserve_wrap {
    max-width: 100%;
  }

  .tr_fv_campaign {
    font-size: 1.4rem;
  }

  .tr_fv_note {
    font-size: 1.1rem;
    text-align: center;
  }

  .tr_h1_box {
    display: block;
  }

  .tr_h1_img {
    padding-right: 5.5vw;
  }

  .tr_h1_cnt {
    margin: -40px 0 0 5.5vw;
    padding: 32px 6%;
  }

  .tr_h1_ttl {
    font-size: 2.2rem;
  }

  .tr_h1_txt {
    padding-top: 16px;
  }

  .tr_service_list {
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
  }

  .tr_service_item {
    padding: 40px 24px;
  }
  .tr_service_guide {
    padding: 40px 20px ;
  }

  .tr_service_guide_ttl {
    font-size: 1.8rem;
  }

  .tr_service_guide_txt {
    font-size: 1.5rem;
    text-align: left;
  }
}

/* --------------------------------------------------
対応エリア（既存 template-parts/top-area.php をそのまま使用。現行サイトと同じく #tr_company の直後）
見出しの既存 margin-top 25px を0にして余白120pxにそろえる
-------------------------------------------------- */
#top_renewal #area .box_ttl {
  margin-top: 0;
}

/* --------------------------------------------------
NCPグループとは（#about_ncp。左に写真・右に本文の2カラム。#tr_company の直後）
-------------------------------------------------- */
#top_renewal .promotion_ttl {
  margin-top: 0;
}

.tr_about_body {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 48px;
}

.tr_about_img {
  flex-shrink: 0;
  width: 40%;
}

#top_renewal .tr_about_img img {
  display: block;
  width: 100%;
  height: auto;
}

.tr_about_txt {
  flex: 1;
  min-width: 0;
}

.tr_about_txt p {
  font-size: 1.6rem;
  line-height: 1.9;
}

.tr_about_txt p + p {
  margin-top: 16px;
}

@media screen and (max-width: 1024px) {
  .tr_about_body {
    flex-direction: column;
    gap: 32px;
  }

  .tr_about_img {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 767px) {
  .tr_about_body {
    margin-top: 32px;
    gap: 24px;
  }

  .tr_about_txt p {
    font-size: 1.5rem;
    line-height: 1.8;
  }
}

/* --------------------------------------------------
13 料金（既存セクション #fee をそのまま使用。見出しの既存 margin-top 25px を0にして余白120pxにそろえる）
-------------------------------------------------- */
#top_renewal #fee .box_ttl {
  margin-top: 0;
}

/* --------------------------------------------------
05 お悩み
-------------------------------------------------- */
.tr_problem_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.tr_problem_list li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 24px;
  border: 1px solid #dce0eb;
  background-color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-align: center;
}

/* 文のかたまりごとに改行（幅が足りないときもかたまりの切れ目で折り返す） */
.tr_problem_txt {
  display: block;
}

.tr_problem_txt > span {
  display: inline-block;
}

/* 「！」アイコンは文言の長さに関係なく、文言の上・中央に固定 */
.tr_problem_txt::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 8px;
  background: url("../images/top-renewal/icon_problem.svg") no-repeat center / contain;
}

.tr_problem_arrow {
  width: 0;
  height: 0;
  margin: 40px auto 0;
  border-style: solid;
  border-width: 26px 40px 0 40px;
  border-color: #006cc9 transparent transparent transparent;
}

.tr_problem_answer {
  margin-top: 24px;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: #006cc9;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.tr_problem_answer span {
  color: #006cc9;
}

@media screen and (max-width: 1024px) {
  .tr_problem_list li {
    padding: 24px 16px;
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 767px) {
  .tr_problem_list {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 40px;
  }

  .tr_problem_list li {
    min-height: 0;
    padding: 16px;
    font-size: 1.5rem;
  }

  #top_renewal .tr_ttl {
    font-size: 2.4rem;
    letter-spacing: 0.1em;
  }

  .tr_problem_arrow {
    margin-top: 32px;
    border-width: 18px 28px 0 28px;
  }

  .tr_problem_answer {
    margin-top: 16px;
    font-size: 2rem;
    letter-spacing: 0.05em;
  }
}

/* --------------------------------------------------
06 選ばれる6つの理由
-------------------------------------------------- */
.tr_reason_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.tr_reason_item {
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  background-color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tr_reason_num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #006cc9;
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  line-height: 1;
}

.tr_reason_num span {
  font-size: 2.6rem;
}

.tr_reason_img {
  margin-top: 16px;
}

#top_renewal .tr_reason_img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tr_reason_ttl {
  margin-top: 16px;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.5;
}

/* 見出しの強調部分：青文字＋青のマーカー（下線） */
.tr_reason_em {
  color: #006cc9;
  font-size: 1.1em; /* 見出しより気持ち大きく（PC 22px／SP 約20px） */
  background: linear-gradient(to top, rgba(0, 108, 201, 0.1) 0.8em, transparent 0.8em); /* 相続手続きページの見出し（.block_ttl span）と同じ色。高さは文字24pxに19pxの比率 */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.tr_reason_txt {
  margin-top: 10px;
  font-size: 1.4rem;
  line-height: 1.8;
}

.tr_reason_btn {
  margin-top: 48px;
}

@media screen and (max-width: 1024px) {
  .tr_reason_list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media screen and (max-width: 767px) {
  .tr_reason_list {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .tr_reason_item {
    padding: 24px 16px 32px;
  }

  .tr_reason_ttl {
    font-size: 1.8rem;
  }

  .tr_reason_btn {
    margin-top: 32px;
  }
}

/* 03の相関図は切れないよう全体を表示 */
#top_renewal .tr_reason_img--fit img {
  object-fit: contain;
}

/* 青ボタン（既存 .blue_btn）は角丸なし（既存はPC 6px／SP 12px） */
#top_renewal .blue_btn a {
  border-radius: 0;
}

/* ボタン1つだけの時の幅（既存は540px）。料金の2つ並び（#fee .btn_wrap）は既存の width:100% が優先される */
#top_renewal .blue_btn a {
  width: 420px;
  max-width: 100%;
}

/* 料金の2つ並び（index.css で width:100%）も最大420px */
#top_renewal #fee .company_money .btn_wrap .blue_btn a {
  max-width: 420px;
}

/* 文言が長いボタンは <span> で囲んだかたまりごとに改行する */
#top_renewal .blue_btn a span {
  display: inline-block;
}

/* 既存（common.css）はSPで 1.8rem に大きくなるので、PCと同じ 1.6rem にそろえる */
@media screen and (max-width: 767px) {
  #top_renewal .blue_btn a {
    font-size: 1.6rem;
    padding-top: 16px; /* 既存は上21px／下18px（高さ67px）→ 高さ60px */
    padding-bottom: 16px;
  }
}

/* --------------------------------------------------
文字サイズの基準（PC／SP）
h2：3.2rem／2.4rem　h3：2rem／1.8rem　p：1.6rem／1.5rem　カード内のp：1.4rem
-------------------------------------------------- */
@media screen and (max-width: 767px) {
  .tr_service_ttl {
    font-size: 1.8rem;
  }
}

/* --------------------------------------------------
共通：見出し下のリード文
-------------------------------------------------- */
.tr_lead {
  margin-top: 32px;
  font-size: 1.6rem;
  line-height: 1.8;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .tr_lead {
    margin-top: 24px;
    font-size: 1.5rem;
    text-align: left;
  }
}

/* --------------------------------------------------
18 動画（既存の #youtube を流用）
元のスタイルは管理画面「外観 → カスタマイズ → 追加CSS」にあり（他ページでも使うため残している）。
TOPの見た目はここで管理する。余白は8の倍数に調整済み。セクション上下の余白は共通ルール
-------------------------------------------------- */
#top_renewal #youtube .youtube_box {
  box-sizing: border-box;
  max-width: 1000px;
  margin: 0 auto;
}

#top_renewal #youtube .youtube_list {
  display: flex;
  gap: 32px;
  margin-top: 48px;
}

#top_renewal #youtube .youtube_item {
  flex: 1;
}

#top_renewal #youtube .youtube_embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 0;
}

#top_renewal #youtube .youtube_embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#top_renewal #youtube .youtube_embed img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

#top_renewal #youtube .youtube_play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  z-index: 1;
  transition: background-color 0.3s;
}

#top_renewal #youtube .youtube_embed:hover .youtube_play {
  background-color: #c00;
}

#top_renewal #youtube .youtube_play span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 24px;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}

#top_renewal #youtube .youtube_caption {
  margin-top: 16px;
  font-size: 1.6rem;
  line-height: 1.6;
  font-weight: 700;
}

@media screen and (max-width: 767px) {
  #top_renewal #youtube .youtube_box {
    padding: 0 20px;
  }

  /* SPはブログ・メディア掲載と同じ横スクロール（カード幅240px・スクロールバー非表示・画面の端まで） */
  #top_renewal #youtube .youtube_list {
    flex-direction: row; /* 追加CSS（管理画面）の column を打ち消す */
    gap: 16px;
    margin: 32px calc(50% - 50vw) 0;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  #top_renewal #youtube .youtube_list::-webkit-scrollbar {
    display: none;
  }

  #top_renewal #youtube .youtube_item {
    flex: 0 0 240px;
  }

  #top_renewal #youtube .youtube_caption {
    font-size: 1.4rem;
  }
}


/* --------------------------------------------------
09 担当スタッフ（スライダーはSwiper。footer.php の .swiper-container とは別クラス）
-------------------------------------------------- */
.tr_staff_slider {
  margin-top: 48px;
  overflow: hidden;
}

.tr_staff_item {
  height: auto;
}

#top_renewal .tr_staff_img img {
  display: block;
  width: 100%;
  height: auto;
}

.tr_staff_role {
  margin-top: 16px;
  color: #737373;
  font-size: 1.2rem;
  line-height: 1.5;
}

.tr_staff_name {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.5;
}

.tr_staff_img + .tr_staff_name {
  margin-top: 16px;
}

.tr_staff_kana {
  color: #737373;
  font-size: 1.2rem;
  line-height: 1.5;
}

.tr_staff_record {
  margin-top: 8px;
  color: #006cc9;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.6;
}

.tr_staff_comment {
  margin-top: 8px;
  font-size: 1.4rem;
  line-height: 1.7;
}

/* 矢印・ドット */
.tr_staff_nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.tr_staff_prev,
.tr_staff_next {
  position: relative;
  width: 36px; /* エリアページのスタッフ（area.css .staff_arrow）と同じ */
  height: 36px;
  border: 1px solid #006cc9;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}

.tr_staff_prev::before,
.tr_staff_next::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #006cc9;
  border-right: 2px solid #006cc9;
}

.tr_staff_prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.tr_staff_next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.tr_staff_prev:hover,
.tr_staff_next:hover {
  background-color: #006cc9;
}

.tr_staff_prev:hover::before,
.tr_staff_next:hover::before {
  border-color: #fff;
}

.tr_staff_prev.swiper-button-disabled,
.tr_staff_next.swiper-button-disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

#top_renewal .tr_staff_pagination {
  position: static;
  display: flex;
  gap: 8px;
  width: auto;
}

#top_renewal .tr_staff_pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0;
  background-color: #c8c8c8;
  opacity: 1;
}

#top_renewal .tr_staff_pagination .swiper-pagination-bullet-active {
  background-color: #006cc9;
}

.tr_staff_btn {
  margin-top: 40px;
}

@media screen and (max-width: 767px) {
  .tr_staff_slider {
    margin-top: 32px;
  }

  #top_renewal .tr_staff_pagination {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 200px;
  }

  .tr_staff_btn {
    margin-top: 32px;
  }
}

/* --------------------------------------------------
11-2 一般の税理士と税理士法人NCPの違い（旧 images/pre-inheritance/figure_01.png をHTMLの表に置き換え）
-------------------------------------------------- */
.tr_compare_table {
  width: 100%;
  max-width: 800px;
  margin: 48px auto 0;
  border-collapse: separate;
  border-spacing: 16px 8px; /* 横は項目の外に三角を置くため16px */
  table-layout: fixed;
}

.tr_compare_table th,
.tr_compare_table td {
  padding: 16px;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.6;
  text-align: center;
  vertical-align: middle;
}

/* 列幅：一般 / 項目 / NCP */
.tr_compare_table .tr_compare_general,
.tr_compare_table .tr_compare_ncp {
  width: 40%;
}

.tr_compare_table thead th {
  color: #fff;
  font-size: 1.8rem;
}

.tr_compare_table thead .tr_compare_general {
  background-color: #9aa3ab;
}

.tr_compare_table thead .tr_compare_ncp {
  background-color: #006cc9;
}

.tr_compare_table tbody .tr_compare_general {
  background-color: #e8ecef;
}

.tr_compare_table tbody .tr_compare_ncp {
  background-color: #e5f0f9;
}

/* 中央の項目と左右の三角（三角は項目の枠の外、左右の列とのすき間に置く） */
.tr_compare_table .tr_compare_item {
  position: relative;
  background-color: #f4f5f6;
}

.tr_compare_table .tr_compare_item::before,
.tr_compare_table .tr_compare_item::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
}

.tr_compare_table .tr_compare_item::before {
  left: -14px;
  border-width: 8px 12px 8px 0;
  border-color: transparent #b9c0c6 transparent transparent;
}

.tr_compare_table .tr_compare_item::after {
  right: -14px;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #006cc9;
}

.tr_compare_em {
  display: block;
  color: #c92e00;
  font-weight: bold;
}

.tr_compare_em--large {
  font-size: 2.4rem;
}

.tr_compare_calc {
  display: block;
  margin-top: 8px;
  font-size: 1.5rem;
  font-weight: normal;
}

.tr_compare_note {
  display: block;
  margin-top: 8px;
  color: #595959;
  font-size: 1.2rem;
  font-weight: normal;
  line-height: 1.6;
}

/* 下のまとめ */
.tr_compare_point {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 24px;
  background-color: #e5f0f9;
  text-align: center;
}

.tr_compare_point_ttl {
  font-size: 2.6rem;
  font-weight: bold;
  line-height: 1.6;
}

.tr_compare_point_ttl strong,
.tr_compare_answer strong {
  color: #ff7646;
}

.tr_compare_point_txt {
  margin-top: 8px;
  font-size: 1.4rem;
  line-height: 1.7;
}

.tr_compare_arrow {
  width: 0;
  height: 0;
  margin: 16px auto 0;
  border-style: solid;
  border-width: 16px 24px 0 24px;
  border-color: #006cc9 transparent transparent transparent;
}

.tr_compare_answer {
  max-width: 800px;
  margin: 16px auto 0;
  padding: 24px;
  background-color: #fdf1ec;
  font-size: 2.6rem;
  font-weight: bold;
  line-height: 1.6;
  text-align: center;
}

.tr_compare_answer strong {
  font-size: 3rem;
}

/* 狭い画面で「す！」だけ改行されないよう、文節のかたまりで折り返す */
.tr_compare_point_ttl > span,
.tr_compare_point_ttl > strong,
.tr_compare_answer > span {
  display: inline-block;
}

/* SP：項目名を上に横並び2列（旧画像のSP版と同じ並び） */
@media screen and (max-width: 767px) {
  .tr_compare_table {
    display: block;
    margin-top: 32px;
    border-spacing: 0;
  }

  .tr_compare_table thead,
  .tr_compare_table tbody {
    display: block;
  }

  .tr_compare_table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 8px;
    margin-top: 8px;
  }

  .tr_compare_table th,
  .tr_compare_table td {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 8px;
    font-size: 1.4rem;
  }

  .tr_compare_table .tr_compare_general,
  .tr_compare_table .tr_compare_ncp {
    width: auto;
  }

  .tr_compare_table .tr_compare_blank {
    display: none;
  }

  .tr_compare_table .tr_compare_item {
    grid-column: 1 / -1;
    order: -1;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 1.3rem;
  }

  .tr_compare_table .tr_compare_item::before,
  .tr_compare_table .tr_compare_item::after {
    display: none;
  }

  .tr_compare_table thead th {
    font-size: 1.5rem;
  }

  .tr_compare_em--large {
    font-size: 2rem;
  }

  .tr_compare_calc {
    font-size: 1.3rem;
  }

  .tr_compare_note {
    font-size: 1.1rem;
  }

  .tr_compare_point,
  .tr_compare_answer {
    padding: 16px;
  }

  .tr_compare_point_ttl,
  .tr_compare_answer {
    font-size: 1.8rem;
  }

  .tr_compare_answer strong {
    font-size: 1.2em;
  }

  .tr_compare_point_txt {
    font-size: 1.3rem;
    text-align: left;
  }
}

/* --------------------------------------------------
12 相続税の負担を抑えたNCPの事例（ワイヤーの「図解：Before → After」はHTMLで表現）
CASE番号は .tr_reason_num を共用
-------------------------------------------------- */
.tr_case_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.tr_case_item {
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  background-color: #fff;
}

/* 結果の図：グレー（見直し前）と青（見直し後）の棒グラフ＋右上に金額。棒の高さは図解用で実際の比率ではない */
.tr_case_result {
  position: relative;
  margin-top: 16px;
  padding: 16px 16px 24px;
  background-color: #f7f7f7;
}

.tr_case_flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #595959;
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.5;
}

.tr_case_arrow {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent #006cc9;
}

/* グラフと金額をひとまとめにして中央寄せ。1列表示（1024px以下）でも横に伸びすぎないよう幅を止める */
.tr_case_figure {
  position: relative;
  max-width: 272px;
  margin: 8px auto 0;
  padding-top: 56px;
}

.tr_case_chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 16px;
  height: 112px;
  border-bottom: 1px solid #9aa3ab;
}

.tr_case_bar {
  display: block;
  width: 56px;
}

.tr_case_bar--before {
  height: 100%;
  background-color: #9aa3ab;
}

/* 青い棒の高さは事例ごとに front-page.php の style 属性で指定（CASE01は実際の比率80%、02・03は金額の大小を表すイメージ） */
.tr_case_bar--after {
  height: 64%;
  background-color: #006cc9;
}

/* 棒と棒の間の矢印（見直し前 → 見直し後）。グレーの点線で右下へ下がる矢印（images/top-renewal/arrow_case01〜03.svg、Figma node 407:2）
   SVGは原寸で表示し、Figmaどおりグレーの棒の上端の高さから右寄せで置く */
.tr_case_bar_arrow {
  flex: 1;
  align-self: flex-start;
  margin: 0 8px;
  background-repeat: no-repeat;
  background-position: right top;
}

/* 青い棒の高さに合わせて事例ごとに傾きを変える */
.tr_case_bar_arrow--01 {
  height: 35px;
  background-image: url("../images/top-renewal/arrow_case01.svg");
}

.tr_case_bar_arrow--02 {
  height: 63px;
  background-image: url("../images/top-renewal/arrow_case02.svg");
}

.tr_case_bar_arrow--03 {
  height: 22px;
  background-image: url("../images/top-renewal/arrow_case03.svg");
}

.tr_case_amount {
  position: absolute;
  top: 0;
  right: 0;
  color: #c92e00;
  font-size: 4rem;
  font-weight: bold;
  line-height: 1.2;
  white-space: nowrap;
}

.tr_case_amount span {
  font-size: 1.8rem;
}

.tr_case_amount em {
  font-size: 1.4rem;
  font-style: normal;
}

.tr_case_ttl {
  margin-top: 16px;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.5;
}

.tr_case_txt {
  margin-top: 8px;
  font-size: 1.4rem;
  line-height: 1.8;
}

.tr_case_meta {
  margin-top: auto;
  padding-top: 16px;
  color: #737373;
  font-size: 1.2rem;
  line-height: 1.7;
}

@media screen and (max-width: 1024px) {
  .tr_case_list {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 767px) {
  .tr_case_list {
    gap: 16px;
    margin-top: 32px;
  }

  .tr_case_item {
    padding: 24px 16px;
  }

  .tr_case_amount {
    font-size: 3.2rem;
  }

  .tr_case_bar {
    width: 48px;
  }

  .tr_case_ttl {
    font-size: 1.8rem;
  }
}

/* --------------------------------------------------
15 ご相談から申告までの流れ
/procedure/ の流れ図（images/procedure/flow_chart01.png）のトンマナ：薄いグレーブルーの丸にアイコン、丸の上に青い番号の丸、番号を点線でつなぐ
アイコンは images/top-renewal/icon_flow01〜05.svg
-------------------------------------------------- */
.tr_flow_note {
  color: #c92e00;
  font-weight: bold;
}

/* 注意アイコン（/procedure/ の .info_box_ttl_icon と同じ images/procedure/caution-icon.svg） */
#top_renewal .tr_flow_note_icon {
  display: block;
  width: 22px;
  height: 22px;
}

/* 「⚠注意」：アイコン＋文字に赤い下線（Figma 368:11905） */
.tr_flow_caution {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 8px;
  padding: 0 4px;
  border-bottom: 1px solid #bf382b;
  vertical-align: bottom;
}

.tr_flow_box {
  margin-top: 56px;
  padding: 56px 40px;
  background-color: #fff;
}

.tr_flow_list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding-top: 28px;
}

/* 番号をつなぐ点線（番号の中心の高さ＝丸の上端） */
.tr_flow_list::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 10%;
  right: 10%;
  border-top: 2px dashed #006cc9;
}

.tr_flow_item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tr_flow_fig {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background-color: #e4ebf3;
}

#top_renewal .tr_flow_fig img {
  width: 80px;
  height: 80px;
  margin-top: 16px;
  filter: drop-shadow(0 0 8px rgba(2, 90, 165, 0.20));
}

.tr_flow_num {
  position: absolute;
  top: -28px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding-left: 0.1em; /* letter-spacing で右にできる余白の分、中央に寄せる */
  border: 1px solid #fff;
  box-sizing: border-box;
  border-radius: 50%;
  background-color: #006cc9;
  color: #fff;
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.1em;
  transform: translateX(-50%);
}

.tr_flow_ttl {
  margin-top: 24px;
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-align: center;
}

.tr_flow_btn {
  margin-top: 56px;
}

/* タブレット・SP：縦に並べ、点線も縦に（/procedure/ のSP版と同じ並び） */
@media screen and (max-width: 1024px) {
  .tr_flow_box {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  .tr_flow_list {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 16px;
  }

  .tr_flow_list::before {
    top: 72px;
    bottom: 56px;
    left: 56px;
    right: auto;
    border-top: 0;
    border-left: 2px dashed #006cc9;
  }

  .tr_flow_item {
    flex-direction: row;
    gap: 24px;
  }

  .tr_flow_fig {
    flex-shrink: 0;
    width: 112px;
    height: 112px;
  }

  #top_renewal .tr_flow_fig img {
    width: 64px;
    height: 64px;
    margin-top: 8px;
  }

  .tr_flow_num {
    top: -16px;
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }

  .tr_flow_ttl {
    margin-top: 0;
    text-align: left;
  }
}

@media screen and (max-width: 767px) {
  /* SPは「⚠注意」を1行目に置き、本文はその下から（リード文と同じ左ぞろえ） */
  .tr_flow_caution {
    display: flex;
    width: fit-content;
    margin: 0 0 8px;
  }

  .tr_flow_box {
    margin-top: 32px;
    padding: 32px 16px;
  }

  .tr_flow_list::before {
    top: 64px;
    bottom: 48px;
    left: 48px;
  }

  .tr_flow_fig {
    width: 96px;
    height: 96px;
  }

  #top_renewal .tr_flow_fig img {
    width: 56px;
    height: 56px;
  }

  .tr_flow_btn {
    margin-top: 40px;
  }
}

/* --------------------------------------------------
14 CTA帯・21 最終CTA（共通パーツ template-parts/cta-consult.php。スタイルは css/cta-consult.css）
TOPでは共通の余白指定（#top_renewal > section:not(#information) の120px）より優先させて、パーツの余白（PC64／SP56）に戻す
※TOPの見た目を保つための指定なので消さないこと（消すと余白120px・背景#F4F8FBになる）
-------------------------------------------------- */
#top_renewal > section#tr_cta,
#top_renewal > section#tr_cta_last {
  padding-top: 64px;
  padding-bottom: 64px;
  background-color: #E5F0F9; /* .tr_bg（#F4F8FB）より優先して、パーツの背景色に戻す */
}

@media screen and (max-width: 767px) {
  #top_renewal > section#tr_cta,
  #top_renewal > section#tr_cta_last {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

/* --------------------------------------------------
08 お客様の声（/voice/ の投稿を表示。満足度は既存の index.css #voice .voice_level を使用）
スライドの並び：タイトル（上・横幅いっぱい）→ 左にアンケートの画像、右にお客様より → 担当スタッフより → 詳しく見る（すべて左ぞろえ）
矢印・ドットの見た目は担当スタッフの .tr_staff_nav / .tr_staff_prev / .tr_staff_next / .tr_staff_pagination を共用
-------------------------------------------------- */
.tr_voice_level_wrap {
  text-align: center;
}

#top_renewal #voice .voice_level {
  margin: 48px 0 0;
}

/* 満足度の文字をひとまわり大きく（PC・タブレットのみ。SPは index.css のまま） */
@media screen and (min-width: 768px) {
  #top_renewal #voice .voice_level > span {
    gap: 16px;
  }

  #top_renewal #voice .voice_level > span > span:nth-child(1) {
    font-size: 2rem;
  }

  #top_renewal #voice .voice_level > span > span:nth-child(1) > span {
    font-size: 3.6rem;
  }

  #top_renewal #voice .voice_level > span > span:nth-child(2) {
    font-size: 2rem;
  }

  #top_renewal #voice .voice_level > span > span:nth-child(2) > span {
    font-size: 10rem;
  }
}

.tr_voice_slider {
  max-width: 1000px;
  margin: 48px auto 0;
  overflow: hidden;
}

.tr_voice_item {
  height: auto;
  padding: 40px;
  background-color: #F4F8FB;
}

.tr_voice_ttl {
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-align: center;
}

/* タイトルの下：左に画像、右に文章 */
.tr_voice_row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 24px;
}

/* アンケートの画像 */
.tr_voice_img {
  flex-shrink: 0;
  width: 45%;
  padding: 16px;
  background-color: #fff;
}

#top_renewal .tr_voice_img img {
  display: block;
  width: 100%;
  height: auto;
}

.tr_voice_body {
  flex: 1;
  min-width: 0;
}

.tr_voice_staff {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #dce0eb;
}

.tr_voice_label {
  display: inline-block;
  padding: 0 8px;
  background-color: rgba(0, 108, 201, 0.1);
  color: #006cc9;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.7;
}

.tr_voice_txt {
  margin-top: 8px;
  font-size: 1.4rem;
  line-height: 1.8;
}

.tr_voice_profile {
  margin-top: 8px;
  color: #006cc9;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.7;
}

#top_renewal .tr_voice_item .tr_link {
  margin: 24px 0 0;
}

.tr_voice_btn {
  margin-top: 40px;
}

@media screen and (max-width: 1024px) {
  .tr_voice_row {
    flex-direction: column;
    gap: 24px;
  }

  .tr_voice_img {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  #top_renewal #voice .voice_level {
    margin-top: 32px;
  }

  .tr_voice_slider {
    margin-top: 32px;
  }

  .tr_voice_item {
    padding: 24px 16px;
  }

  .tr_voice_ttl {
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    text-align: left;
  }

  .tr_voice_img {
    padding: 8px;
  }

  #top_renewal .tr_voice_item .tr_link {
    margin: 24px auto 0;
  }

  .tr_voice_btn {
    margin-top: 32px;
  }
}

/* --------------------------------------------------
16 FAQ（既存セクション #faq をそのまま使用。スタイルは index.css。#tr_cta の直後へ移動）
余白だけ8の倍数にそろえる（既存は45px／40px／27px、SPは35px／30px／20px）
-------------------------------------------------- */
#top_renewal #faq .faq_contents {
  margin-top: 48px;
}

#top_renewal #faq .faq_contents dl:not(:last-of-type) {
  margin-bottom: 40px;
  padding-bottom: 40px;
}

#top_renewal #faq .faq_contents dt {
  margin-bottom: 24px;
}

.tr_faq_btn {
  margin-top: 56px;
}

@media screen and (max-width: 767px) {
  #top_renewal #faq .faq_contents {
    margin-top: 32px;
  }

  #top_renewal #faq .faq_contents dl:not(:last-of-type) {
    margin-bottom: 32px;
    padding-bottom: 32px;
  }

  #top_renewal #faq .faq_contents dt {
    margin-bottom: 16px;
  }

  .tr_faq_btn {
    margin-top: 40px;
  }
}

/* --------------------------------------------------
16-2 代表挨拶（文章・写真・実績は /message/ と同じ。写真は images/message/message-img.jpg）
-------------------------------------------------- */
.tr_message_body {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-top: 48px;
}

.tr_message_img {
  flex-shrink: 0;
  width: 40%;
}

#top_renewal .tr_message_img img {
  display: block;
  width: 100%;
  height: auto;
}

.tr_message_cnt {
  flex: 1;
  min-width: 0;
}

.tr_message_lead {
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.tr_message_txt {
  margin-top: 16px;
  font-size: 1.6rem;
  line-height: 1.8;
}

.tr_message_lead + .tr_message_txt {
  margin-top: 24px;
}

.tr_message_txt a {
  color: #006cc9;
  text-decoration: underline;
}

.tr_message_role {
  margin-top: 24px;
  color: #737373;
  font-size: 1.2rem;
  line-height: 1.5;
}

.tr_message_name {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.5;
}

.tr_message_name span {
  font-size: 1.4rem;
}

/* 実績（参考：Figma node 355:5990。ボックスなし、点線の縦線で区切る） */
.tr_message_stats {
  display: flex;
  margin-top: 24px;
}

.tr_message_stats li {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-left: 1px dashed #737373;
  text-align: center;
}

.tr_message_stats li:last-child {
  border-right: 1px dashed #737373;
}

.tr_message_stats_label {
  color: #737373;
  font-size: 1.2rem;
  line-height: 1.5;
}

.tr_message_stats_val {
  color: #006cc9;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.4;
}

.tr_message_note {
  margin-top: 8px;
  color: #737373;
  font-size: 1.2rem;
  text-align: right;
}

#top_renewal .tr_message_cnt .tr_link {
  margin: 24px 0 0;
}

@media screen and (max-width: 1024px) {
  .tr_message_body {
    flex-direction: column;
    gap: 32px;
  }

  .tr_message_img {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 767px) {
  .tr_message_body {
    margin-top: 32px;
  }

  .tr_message_lead {
    font-size: 1.8rem;
    letter-spacing: 0.05em;
  }

  .tr_message_txt {
    font-size: 1.5rem;
  }

  .tr_message_stats li {
    padding: 0;
  }

  .tr_message_stats_val {
    font-size: 1.6rem;
  }

  #top_renewal .tr_message_cnt .tr_link {
    margin: 24px auto 0;
  }
}

/* --------------------------------------------------
02 メディア掲載（/media/ の投稿を新しい順に3件。#tr_message の直後）
表紙は縦長・横長が混ざるので、枠の中に全体を表示（contain）
-------------------------------------------------- */
.tr_media_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px; /* 動画・ブログと同じ（幅1000px・間隔32px） */
  max-width: 1000px;
  margin: 48px auto 0;
}

.tr_media_link {
  display: block;
  color: #333;
  transition: opacity 0.3s;
}

.tr_media_link:hover {
  opacity: 0.7;
}

.tr_media_img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 384 / 270;
  padding: 16px;
  background-color: #E5F0F9; /* 既存の表紙画像（media01〜03）の背景色に合わせて、枠と画像をなじませる */
}

#top_renewal .tr_media_img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tr_media_ttl {
  margin-top: 16px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
}

.tr_media_btn {
  margin-top: 48px;
}

@media screen and (max-width: 1024px) {
  .tr_media_list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* SPは横スクロール（BEHEALTHYのTOPと同じくカード幅240px・スクロールバー非表示・画面の端まで） */
@media screen and (max-width: 767px) {
  .tr_media_list {
    display: flex;
    gap: 16px;
    margin: 32px calc(50% - 50vw) 0;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .tr_media_list::-webkit-scrollbar {
    display: none;
  }

  .tr_media_item {
    flex: 0 0 240px;
  }

  .tr_media_ttl {
    font-size: 1.4rem;
  }

  .tr_media_btn {
    margin-top: 32px;
  }
}

/* --------------------------------------------------
17 会社情報（旧 #access を置き換え。#tr_media の直後）
会社概要の表 → 所在地（事務所カード4つ。データは front-page.php の $tr_office）
-------------------------------------------------- */
.tr_company_table {
  width: 100%;
  max-width: 850px;
  margin: 48px auto 0;
  border-collapse: collapse;
  border-top: 1px solid #d9d9d9;
}

.tr_company_table th,
.tr_company_table td {
  padding: 16px;
  border-bottom: 1px solid #d9d9d9;
  font-size: 1.6rem;
  line-height: 1.6;
  text-align: left;
  vertical-align: top; /* 項目名は上ぞろえ（Figma 367:11873） */
}

.tr_company_table th {
  width: 200px;
  background-color: #E5F0F9;
  font-weight: bold;
}

.tr_company_table td {
  background-color: #fff;
}

.tr_company_tel {
  color: #006cc9;
  text-decoration: underline;
}

.tr_company_tel:hover {
  text-decoration: none;
}

.tr_company_en {
  margin-left: 1em;
}

.tr_company_subttl {
  margin-top: 64px;
  font-size: 2.4rem;
  font-weight: bold;
  text-align: center;
}

.tr_office_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.tr_office_item {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background-color: #fff;
}

#top_renewal .tr_office_img img {
  width: 100%;
  height: auto;
  aspect-ratio: 401 / 232;
  object-fit: cover;
}

.tr_office_name {
  margin-top: 16px;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.5;
}

.tr_office_address {
  margin-top: 8px;
  font-size: 1.4rem;
  line-height: 1.7;
}

.tr_office_access {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
}

.tr_office_access img {
  flex-shrink: 0;
}

/* Googleマップへのリンク（アイコン＋アクセス文） */
.tr_office_access a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.3s;
}

.tr_office_access a:hover {
  opacity: 0.7;
}

.tr_office_branch {
  margin-top: 8px;
  color: #737373;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* ボタンはカードの下端にそろえる（上は所属との間を24pxあける） */
.tr_office_branch {
  margin-bottom: 24px;
}

/* ＼相続専門／＋ボタン（会社概要ページ company.css の .btn_sub と同じ作り。＼／は擬似要素の斜線）
   参考と同じく「相続専門」もリンクに含める（a の中に span を2つ）。どこに乗せてもボタンが hover の見た目になる */
.tr_office_btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto auto 0;
}

#top_renewal .tr_office_btn:hover {
  opacity: 1; /* 共通の a:hover の半透明を打ち消す（ほかの .tr_link と同じ） */
}

#top_renewal .tr_office_btn:hover .tr_link {
  background-color: #006cc9;
  background-image: url("../images/index/plan_arr_w@2x.png");
  color: #fff;
}

.tr_office_btn_sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #006cc9;
  font-size: 1.6rem;
  font-weight: bold;
}

.tr_office_btn_sub::before {
  content: "＼"; /* 料金ページの「＼ HP経由で報酬10%割引 ／」と同じく全角の文字 */
}

.tr_office_btn_sub::after {
  content: "／";
}


@media screen and (max-width: 767px) {
  .tr_company_table {
    margin-top: 32px;
  }

  .tr_company_table th,
  .tr_company_table td {
    display: block;
    width: 100%;
    font-size: 1.5rem;
  }

  .tr_company_table th {
    padding: 8px 16px;
    border-bottom: none;
  }

  .tr_company_en {
    display: block;
    margin-left: 0;
  }

  .tr_company_subttl {
    margin-top: 48px;
    font-size: 1.8rem;
  }

  .tr_office_list {
    gap: 16px;
    margin-top: 24px;
  }

  .tr_office_item {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* 事務所カードの列数：PC 4列／1024px以下 2列／560px以下 1列 */
@media screen and (max-width: 1024px) {
  .tr_office_list {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* ボタン幅240pxでカードが押し広げられないように */
  }
}

@media screen and (max-width: 560px) {
  .tr_office_list {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------
19 ブログ（#tr_blog、背景あり）・お知らせ（#tr_news、白背景）。#about_ncp の直後。旧 newslist.php の INFORMATION スライダーはここへ移動
ブログ：/blog/ の新しい順3件（カード。18 動画 #youtube の .youtube_list と同じ見た目：幅1000px・間隔32px・タイトル太字）
お知らせ：投稿の新しい順3件（日付＋タイトルの行。幅はブログと同じ1000px）
-------------------------------------------------- */
.tr_blog_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 48px auto 0;
}

.tr_blog_link {
  display: block;
  color: #333;
  transition: opacity 0.3s;
}

.tr_blog_link:hover {
  opacity: 0.7;
}

#top_renewal .tr_blog_img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tr_blog_date {
  display: block;
  margin-top: 16px;
  color: #737373;
  font-size: 1.2rem;
  line-height: 1.6;
}

.tr_blog_ttl {
  margin-top: 8px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
}

.tr_news_btn {
  margin-top: 48px;
}

.tr_blog_btn {
  margin-top: 48px;
}

.tr_news_list {
  max-width: 1000px;
  margin: 48px auto 0;
  border-top: 1px solid #d9d9d9;
}

.tr_news_link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px;
  border-bottom: 1px solid #d9d9d9;
  background-color: #fff;
  color: #333;
  transition: color 0.3s;
}

.tr_news_link:hover {
  color: #006cc9;
}

.tr_news_date {
  flex-shrink: 0;
  color: #737373;
  font-size: 1.4rem;
  line-height: 1.6;
}

.tr_news_ttl {
  font-size: 1.6rem;
  line-height: 1.6;
}

@media screen and (max-width: 1024px) {
  .tr_blog_list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* SPのブログはメディア掲載と同じ横スクロール（カード幅240px・スクロールバー非表示・画面の端まで） */
@media screen and (max-width: 767px) {
  .tr_blog_list {
    display: flex;
    gap: 16px;
    margin: 32px calc(50% - 50vw) 0;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .tr_blog_list::-webkit-scrollbar {
    display: none;
  }

  .tr_blog_item {
    flex: 0 0 240px;
  }

  .tr_blog_ttl {
    font-size: 1.4rem;
  }

  .tr_news_btn {
    margin-top: 32px;
  }

  .tr_blog_btn {
    margin-top: 32px;
  }

  .tr_news_list {
    margin-top: 32px;
  }

  .tr_news_link {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 0;
  }

  .tr_news_date {
    font-size: 1.2rem;
  }

  .tr_news_ttl {
    font-size: 1.5rem;
  }
}

/* 右下の固定ボタンの×アイコン：img に height 属性を入れたので、CSSの幅（PC 30px／SP 20px）に合わせて高さを自動にする */
#top_renewal ~ .fixed_contact_area > img {
  height: auto;
}

/* --------------------------------------------------
SPの横スクロール（YouTube・メディア掲載・ブログ）のスクロールバーと「※横スクロールできます」
front-page.php のJSで各リストの直後に追加し、はみ出しているときだけ .is-active で表示
-------------------------------------------------- */
.tr_hscroll_bar,
.tr_hscroll_note {
  display: none;
}

@media screen and (max-width: 767px) {
  .tr_hscroll_bar.is-active {
    display: block;
    height: 6px;
    margin-top: 16px;
    background-color: rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }

  .tr_hscroll_thumb {
    display: block;
    width: 0;
    height: 100%;
    background-color: #006cc9;
    will-change: transform;
  }

  .tr_hscroll_note.is-active {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 1.2rem;
    line-height: 1.5;
  }
}