@charset "UTF-8";
:root {
  --inner-width: 1090px;
  --outer-padding: 50px;
  --brand-color: #31a66e;
  --accent-color-yellow: #faf221;
  --accent-color-orange: #f5735f;
  --main-button-color: #31a66e;
  --content-cta-button-color: #f5735f;
  --header-cta-button-color: #ffdf2d;
  --color-border-gray: #d9d9d9;
  --color-light-gray: #f6f6f6;
  --color-gray: #f2f2f0;
  --color-dark-gray: #3c3c3c;
  --color-link: #31a66e;
  --color-text: #212121;
  --color-caution-text: #eb0000;
  --color-selection: rgba(166, 219, 249, 0.57);
  --color-placeholder: #dcdcdc;
  --color-service-pink: #dd80a4;
  --color-service-purple: #af89d3;
  --color-service-blue: #65becc;
  --color-service-green: #52d3a2;
  --color-service-yellow: #e3e531;
  --color-service-brown: #dda969;
  --color-service-light-blue: #33e2d9;
  --color-service-souzoku-green: #1996aa;
  --font-default:
    "Noto Sans", "Noto Sans CJK JP", "Noto Sans Subset", sans-serif;
  --font-serif: "Noto Serif JP", serif;
  --font-awesome: "Font Awesome 5 Free";
}

/* roboto-regular - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto/roboto-v51-latin-regular.woff2') format('woff2');
}
/* roboto-500 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/roboto/roboto-v51-latin-500.woff2') format('woff2');
}
/* roboto-700 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto/roboto-v51-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: Helvetica Neue;
  font-weight: 100;
  font-display: swap;
  src: local("Helvetica Neue Regular");
}
@font-face {
  font-family: Helvetica Neue;
  font-weight: 200;
  font-display: swap;
  src: local("Helvetica Neue Regular");
}
@font-face {
  font-family: Noto Sans Subset;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    local("Noto Sans CJK JP"),
    local("NotoSansCJKjp-Regular"),
    local("NotoSansJP-Regular"),
    url(../fonts/noto-sans/NotoSans_Regular.woff2) format("woff2");
}
@font-face {
  font-family: Noto Sans Subset;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    local("NotoSansCJKjp-Bold"),
    local("NotoSansJP-Bold"),
    url(../fonts/noto-sans/NotoSans_bold.woff2) format("woff2");
}

/* ==========================================================================
   アクセスページ専用 メインビジュアルスタイル
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.section-access {
  padding: 0!important;
}

.section-access {
  margin-top: 30px;
}

.section-access ~ .section-access {
  margin-top: 64px;
}

.section-access__sub-title {
  color: #31a66e;
  color: var(--brand-color);
  display: block;
  line-height: 1;
  text-align: center;
}
.section-access__title h2{
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 8px;
  text-align: center;
}
.section-access__desc {
  margin-top: 16px;
  margin-bottom: 24px;
  width: 100%;
}

@media (max-width: 768px) {

  .section-access ~ .section-access {
    margin-top: 56px;
  }

  .section-access__title h2{
    font-size: 2.6rem;
  }
}

/* --------------------------------------------------------------------------
   MV全体
   -------------------------------------------------------------------------- */
.access-mv {
  position: relative;
  width: 100%;
  background-color: #fff;
  overflow: hidden;
  max-height: 380px;
}

/* 背景画像 */
.access-mv__bg {
  display: block;
  width: 100%;
}
.access-mv__bg img {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: auto;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

/* コンテンツ全体を背景に重ねる */
.access-mv__inner {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   左側テキストエリア
   -------------------------------------------------------------------------- */
.access-mv__left-content {
  position: absolute;
  top: 26px;
  left: 32px;
}

/* サブテキスト（「新宿で相続が…」） */
.access-mv__lead {
  font-size: 16px;
  color: #212121;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* メインコピー 上段 */
.access-mv__copy-sub {
  font-size: 32px;
  font-weight: 700;
  color: #00A75B;
  font-family: "Noto Serif JP", serif;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-top: 10px!important;
}

.access-mv__copy-sub--small {
  font-size: 26px;
}

/* メインコピー 下段「無料相談」 */
.access-mv__copy-main {
  display: inline-block;
  font-size: 80px;
  font-weight: 900;
  color: #00A75B;
  font-family: "Noto Serif JP", serif;
  line-height: 1.0;
  position: relative;
  margin-top: 10px;
}

.access-mv__copy-main::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -13px;             
  width: 100%;
  height: 12px;         
  background: linear-gradient(
    to right, 
    rgba(250, 242, 33, 1) 0%, 
    rgba(250, 242, 33, 0.9) 60%, 
    rgba(250, 242, 33, 0) 100%
  );
  z-index: -1;
}


/* --------------------------------------------------------------------------
   3つの特徴カード（PC）
   -------------------------------------------------------------------------- */
.access-mv-features {
  position: absolute;
  bottom: 27px;
  left: 24px;
  display: flex;
  gap: 14px;
}

.access-mv-features__card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #7AC94C;
  border-radius: 16px;
  width: 125px;
  max-height: 125px;
  padding: 14px 10px 14px;
  text-align: center;
}

.access-mv-features__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
}
.access-mv-features__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.access-mv-features__text {
  font-size: 13px;
  font-weight: 700;
  color: #3C3C3C;
  line-height: 1.15;
  margin-top: 4px;
}
.access-mv-features__text strong {
  font-size: 18px;
}
.access-mv-features__text--green {
  color: #268758;
  font-size: 12px;
}
.access-mv-features__num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.08em;
  margin: 0 1px;
}
.access-mv-features__note {
  font-size: 8px;
  color: #939393;
  transform: scale(0.85);
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   SP用 特徴カードスクロール
   -------------------------------------------------------------------------- */
.access-mv-features-sp {
  display: none;
}

/* --------------------------------------------------------------------------
   レスポンシブ：タブレット
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  /* .access-mv__copy-sub {
    font-size: 20px;
  }
  .access-mv__copy-main {
    font-size: 72px;
  } */
}

/* --------------------------------------------------------------------------
   レスポンシブ：SP (767px以下)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
  .access-mv {
    max-height: unset;
  }

  .access-mv__lead {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .access-mv__lead.access-mv__lead--small{
    font-size: 14px;
  }

  .access-mv__copy-sub {
    font-size: 22px;
    letter-spacing: 0.01em;
    line-height: 1.4;
  }

  .access-mv__copy-sub--small {
    font-size: 16px;
  }

  /* 「無料相談」 */
  .access-mv__copy-main {
    font-size: 70px;
    margin-top: 10px;
    display: inline-block
  }
}

/* --------------------------------------------------------------------------
   レスポンシブ：SP (520px以下)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 520px) {
  .access-mv {
    height: auto;
    background-color: #fff;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .access-mv__bg {
    position: relative;
  }

  /* 背景画像 */
  .access-mv__bg img {
    width: 100%;
    display: block;
    min-height: unset;
  }

  /* インナー：背景上に重ねるのは同じ */
  .access-mv__inner {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    padding: 0 16px;
  }

  /* テキスト位置 */
  .access-mv__left-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;       
    max-width: 1200px; 
    text-align: center; 
    
  }

  /* PC特徴カードを非表示 */
  .access-mv-features {
    display: none;
  }

  /* SP用スクロールカード表示 */
  .access-mv-features-sp {
    display: block;
    overflow: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    white-space: nowrap;
  }

  .access-mv-features-sp__inner {
    display: inline-flex;
    gap: 0;
    animation: loop-scroll-sp 25s linear infinite;
    flex-shrink: 0;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
  }

  .access-mv-features-sp__card {
    flex: 0 0 auto;
    width: 200px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #7AC94C;
    border-radius: 16px;
    padding: 10px 8px;
    text-align: center;
    box-sizing: border-box;
    margin-right: 14px;
    white-space: normal;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px;
  }

  .access-mv-features-sp__icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  .access-mv-features-sp__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .access-mv-features-sp__text {
    font-size: 13px;
    font-weight: 700;
    color: #3C3C3C;
    line-height: 1.4;
    text-align: left;
  }
  .access-mv-features-sp__text strong { font-size: 18px; }
  .access-mv-features-sp__text--green { color: #268758; font-size: 11px; }
  .access-mv-features-sp__num { font-size: 24px; font-weight: 700;}
  .access-mv-features-sp__note { font-size: 10px; color: #939393; display: block; transform: scale(0.85); transform-origin: left; margin-top: 2px; }

  @keyframes loop-scroll-sp {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
  }
}

/* ==========================================================================
   アクセスページ専用 セクションナビゲーション
   ========================================================================== */

.access-nav {
  width: 100%;
  background-color: #fff;
  margin-top: 30px;
}

.access-nav__inner {
  display: flex;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   各ボタン
   -------------------------------------------------------------------------- */
.access-nav__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 9px 16px;
  text-decoration: none;
  color: #212121;
  font-size: 15px;
  font-weight: 700;
  border-right: 1px solid #E0E0E0;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.access-nav__btn:first-child {
  border-left: 1px solid #E0E0E0;
}

.access-nav__btn:hover {
  background-color: #F5FBF8;
  color: #00A75B;
  text-decoration: none;
}

.access-nav__btn:hover .access-nav__icon {
  background-color: #007D44;
}

/* --------------------------------------------------------------------------
   アイコン（緑丸 ∨）
   -------------------------------------------------------------------------- */
.access-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #31A66E;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.access-nav__icon::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* --------------------------------------------------------------------------
   レスポンシブ：SP (767px以下) 
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
  .access-nav__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .access-nav__btn {
    justify-content: center;
    padding: 16px 14px;
    font-size: 14px;
    border-right: none;
    border-bottom: 1px solid #E0E0E0;
    white-space: normal;
    border-left: 1px solid #E0E0E0;
  }

  /* 右列（2・4番目）に左ボーダーで縦の区切り線 */
  .access-nav__btn:nth-child(2n) {
    border-left: 1px solid #E0E0E0;
    border-right: 1px solid #E0E0E0;
  }

  .access-nav__btn:nth-child(-n+2) {
    border-top: 1px solid #E0E0E0;
  }
}

/* --------------------------------------------------------------------------
   レスポンシブ：SP (420px以下) 
   -------------------------------------------------------------------------- */
@media screen and (max-width: 420px) {
  .access-nav {
    margin-top: 40px;
  }
  
  .access-nav__btn {
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 13px;
  }
}


/* ==========================================================================
   access-service-card（PC：カードグリッド / SP：アコーディオン）
   ========================================================================== */

/* --------------------------------------------------------------------------
   PC：カードグリッド（既存スタイルを維持）
   -------------------------------------------------------------------------- */
@media (min-width: 769px) {
  .access-service-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .access-service-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
 
  .access-service-card__item {
    padding: 0;
  }
}

.access-service-card__item {
  border: 1px solid #d9d9d9;
  border: 1px solid var(--color-border-gray);
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 16px;
}

/* --------------------------------------------------------------------------
   タイトル：PC はそのまま見出し風 / SP はボタン
   -------------------------------------------------------------------------- */
.access-service-card__title {
  width: 100%;
  background: none;
  border: none;
  cursor: default;
  text-align: left;
  color: #212121;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.5;
  padding-bottom: 8px;
  position: relative;
}

.access-service-card__title::before {
  background: #31a66e;
  background: var(--brand-color);
  bottom: -1px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  width: 80px;
}

.access-service-card__title a {
  color: #212121;
  color: var(--color-text);
}
.access-service-card__title a:hover {
  color: #31a66e;
  color: var(--color-link);
  text-decoration: none;
}

.access-service-card__footer {
  margin-top: 8px;
}
.access-service-card__footer .link-button {
  min-width: 0;
  width: 100%;
}

/* --------------------------------------------------------------------------
   トグルアイコン（SP のみ表示）
   -------------------------------------------------------------------------- */
.access-service-card__toggle-icon {
  display: none;
}

/* --------------------------------------------------------------------------
   body：PC は常に表示
   -------------------------------------------------------------------------- */
.access-service-card__body {

  flex: 1;
  display: flex;
  flex-direction: column;
}

.access-service-card__content {
  flex: 1;
  margin-top: 16px;
}

.access-service-card__footer {
  margin-top: 16px;
}

.access-service-card__footer .link-button {
  min-width: 0;
  width: 100%;
}

/* --------------------------------------------------------------------------
   SP：アコーディオン
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

  /* カード間の区切り */
  .access-service-card__item {
    border: none;
    border-bottom: 1px solid #d9d9d9;
    border-bottom: 1px solid var(--color-border-gray);
    border-right: 1px solid #d9d9d9;
    border-right: 1px solid var(--color-border-gray);
    border-left: 1px solid #d9d9d9;
    border-left: 1px solid var(--color-border-gray);
    padding: 0;
  }
  .access-service-card__item:first-child {
    border-top: 1px solid #d9d9d9;
    border-top: 1px solid var(--color-border-gray);
  }

  /* タイトル：SPでクリッカブルに */
  .access-service-card__title {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.5rem;
    line-height: 1.8;
    color: #212121;
    color: var(--color-text);
    padding: 16px;
    border-bottom: none;
  }


  /* ::before の下線装飾はSPでは非表示 */
  .access-service-card__title::before {
    display: none;
  }

  /* ＋／－ アイコン */
  .access-service-card__toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #31a66e;
    color: var(--brand-color);
    font-size: 2rem;
    line-height: 1;
    margin-left: 8px;
  }

  /* 閉じているとき：＋ */
  .access-service-card__title[aria-expanded="false"] .access-service-card__toggle-icon::before {
    content: "+";
  }

  /* 開いているとき：－ */
  .access-service-card__title[aria-expanded="true"] .access-service-card__toggle-icon::before {
    content: "−";
  }

/* body：開閉アニメーション */
.access-service-card__body {
  background-color: #F6F6F6;
  padding: 0 16px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.access-service-card__title[aria-expanded="true"] + .access-service-card__body {
  max-height: 200px; 
}

.access-service-card__content {
  margin-top: 20px;
}

.access-service-card__footer {
  padding-bottom: 16px;
}

  /* ボタン：緑の塗りつぶしスタイル（画像に合わせて） */
  .access-service-card__footer .link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #31a66e;
    background-color: var(--brand-color);
    color: #fff;
    border-radius: 30px;
    padding: 2px 16px;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
  }

}

/* ==========================================================================
   アクセスページ専用 メインビジュアルスタイル
   ========================================================================== */

.features__wrap .flex-section {
  margin-top: 20px;
}

.features__wrap .section__content:not(:first-of-type) {
  margin-top: 32px;
}

.features__wrap .flex-section__primary {
  display: flex;
  align-items: center;
}

.features__wrap .flex-section__primary img {
  width: 100%;
}

.features-pattern__wrap {
  margin-top: 40px;
}

.features-pattern__title {
  font-size: 18px;
  font-weight: bold;
  color: #31A66E;
  border-bottom: 1px solid #31A66E;
  padding-bottom: 6px;
}

.features-pattern-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  width: 100%;
  margin-top: 16px;
}

.features-pattern-card__item {
  border: 1px solid #d9d9d9;
  border: 1px solid var(--color-border-gray);
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 24px;
}

.features-pattern-card__title {
  width: 100%;
  background: none;
  border: none;
  cursor: default;
  text-align: left;
  border-bottom: 1px solid #d9d9d9;
  border-bottom: 1px solid var(--color-border-gray);
  color: #212121;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.5;
  padding-bottom: 8px;
  position: relative;
}

.features-pattern-card__title::before {
  background: #31a66e;
  background: var(--brand-color);
  bottom: -1px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  width: 80px;
}

.features-pattern-card__title a {
  color: #212121;
  color: var(--color-text);
}
.features-pattern-card__title a:hover {
  color: #31a66e;
  color: var(--color-link);
  text-decoration: none;
}

.features-pattern-card__footer {
  margin-top: 8px;
}
.features-pattern-card__footer .link-button {
  min-width: 0;
  width: 100%;
}

.features-pattern-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.features-pattern-card__content {
  flex: 1;
  margin-top: 16px;
}

.features-pattern-card__footer {
  margin-top: 16px;
}

.features-pattern-card__footer .link-button {
  min-width: 0;
  width: 100%;
}


@media (max-width: 767px) {
  .features-pattern-card {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
 
  .features-pattern-card__item {
    padding: 16px;
  }

  .features-pattern-card__title {
    font-size: 15px;
  }

  .features-pattern-card__content {
    margin-top: 8px;
  }
}

/* ==========================================================================
   解決事例 アイコン付き詳細ボックス
   ========================================================================== */

/* カード全体をリンクに・横並びレイアウト */
.p-case-icon__link {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #D7D7D7;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.p-case-icon__link:hover {
  text-decoration: none;
}

.p-case-icon__box:not(:first-of-type) {
  margin-top: 24px;
} 

/* --------------------------------------------------------------------------
   左：メインコンテンツ
   -------------------------------------------------------------------------- */
.p-case-icon__main {
  flex: 1;
  padding: 17px 24px 13px;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   ヘッダー：プロフィール（左）＋タイトルエリア（右）を横並び
   -------------------------------------------------------------------------- */
.p-case-icon__header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

/* 左カラム：アイコン＋テキストを縦並び */
.p-case-icon__profile {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 106px;
}

.p-case-icon__image {
  width: 64px;
  height: 64px;
}
.p-case-icon__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p-case-icon__profile-text {
  font-size: 1.3rem;
  color: #212121;
  text-align: center;
  white-space: nowrap;
  margin: 0;
}

/* 右カラム：カテゴリ＋タイトルを縦並び */
.p-case-icon__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   カテゴリタグ
   -------------------------------------------------------------------------- */
.p-case-icon__category-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.p-case-icon__category {
  display: inline-block;
  border-radius: 13px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 1px 30px 2px;
  white-space: nowrap;
  background-color: #aeaeae;
  
}

.p-case-icon__category--isan    { background-color: #DD80A4; }
.p-case-icon__category--igon    { background-color: #52d3a2; }
.p-case-icon__category--daiko   { background-color: #E39191; }
.p-case-icon__category--iryubun { background-color: #F5A623; }

/* --------------------------------------------------------------------------
   タイトル
   -------------------------------------------------------------------------- */
.p-case-icon__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #31A66E;
  line-height: 1.5;
  margin-top: 6px;
  border-bottom: 2px solid #31A66E;
  padding-bottom: 5px;
}

.p-case-icon__title-sub {
  color: #F5735F;
}

/* --------------------------------------------------------------------------
   詳細テーブル（遺産・背景・対応）
   -------------------------------------------------------------------------- */
.p-case-icon__detail {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.p-case-icon__detail-row {
  display: flex;
  align-items: stretch;
}

.p-case-icon__detail-label {
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #212121;
  background-color: #F0F0F0;
  text-align: center;
  padding: 5px 15px;
}


.p-case-icon__detail-row:not(:last-of-type) .p-case-icon__detail-label{
  border-bottom: 1px solid #fff;
}

.p-case-icon__detail-contents {
  flex: 1;
  font-size: 1.5rem;
  color: #212121;
  line-height: 1.6;
  padding: 5px 15px;
}

.p-case-icon__detail-row:not(:last-of-type) .p-case-icon__detail-contents{
  border-bottom: 1px solid #F0F0F0;
}

.p-case-icon__footer {
  display: none;
}

/* --------------------------------------------------------------------------
   結果ボックス
   -------------------------------------------------------------------------- */
.p-case-icon__result {
  background-color: #ECFBF0;
  border-left: 3px solid #31A66E;
  padding: 12px 16px;
}

.p-case-icon__result-text {
  font-size: 1.5rem;
  color: #3C3C3C;
  line-height: 1.7;
  margin: 0;
}

.p-case-icon__result-text strong {
  font-weight: 700;
  color: #212121;
}

/* --------------------------------------------------------------------------
   右：細長い矢印ボタン
   -------------------------------------------------------------------------- */

   @media (min-width: 520px) {
    .p-case-icon__arrow {
      flex-shrink: 0;
      width: 30px;
      background-color: #31A66E;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background-color 0.2s;
    }

    .p-case-icon__link:hover {
      background-color: rgb(236, 251, 240);
    }

    .p-case-icon__link:hover .p-case-icon__arrow {
      background-color: #007D44;
    }

    /* 矢印アイコン（>） */
    .p-case-icon__arrow-icon {
      display: block;
      width: 10px;
      height: 10px;
      border-top: 2px solid #fff;
      border-right: 2px solid #fff;
      transform: rotate(45deg) translate(-2px, 2px);
    }
   }

/* --------------------------------------------------------------------------
   SP（767px以下）
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .p-case-icon__main {
    padding: 16px;
  }

  .p-case-icon__image {
    width: 64px;
    height: 64px;
  }

  .p-case-icon__profile-text {
    font-size: 1.2rem;
  }

  .p-case-icon__title {
    font-size: 1.6rem;
    padding-bottom: 8px;
  }

  .p-case-icon__title-sub {
    display: block;
    font-size: 1.6rem;
    margin-top: 2px;
  }

  .p-case-icon__detail-label {
    display: flex;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   SP（520px以下）
   -------------------------------------------------------------------------- */

@media (max-width: 520px) {

  .p-case-icon__header {
    padding-bottom: 0;
    margin-bottom: 16px;
    gap: 10px;
  }

  .p-case-icon__footer {
    display: block;
    margin-top: 24px;
  }

  .p-case-icon__footer .link-button {
    min-width: 0;
    width: 100%;
  }

  .p-case-icon__footer .link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #31a66e;
    background-color: var(--brand-color);
    color: #fff;
    border-radius: 30px;
    padding: 2px 16px;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
  }
}

/* ==========================================================================
   アクセスページ メリットセクション
   ========================================================================== */

.access-merit {
  margin-top: 48px;
}

.access-merit__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  gap: 24px;
}

/* --------------------------------------------------------------------------
   カード
   -------------------------------------------------------------------------- */
.access-merit__card {
  position: relative;
  padding: 20px 20px 24px;
  border: 1px solid #D7D7D7;
}

/* --------------------------------------------------------------------------
   番号バッジ（上部中央）
   -------------------------------------------------------------------------- */
.access-merit__num {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background-color: #31A66E;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif JP", serif;
}

/* --------------------------------------------------------------------------
   タイトル
   -------------------------------------------------------------------------- */
.access-merit__title {
  display: grid;
  align-items: center;
  font-size: 1.7rem;
  font-weight: 700;
  color: #31A66E;
  line-height: 1.2;
  text-align: center;
  margin-bottom:16px;
  min-height: 60px;
}

.access-merit__title-sub {
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  margin-top: -12px;
}

/* --------------------------------------------------------------------------
   本文
   -------------------------------------------------------------------------- */
.access-merit__text {
  font-size: 1.4rem;
  color: #3C3C3C;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   SP（767px以下）：縦1列
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .access-merit {
    margin-top: 40px;
  }

  .access-merit__inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .access-merit__card {
    padding: 20px 16px 16px;
  }

  .access-merit__title {
    min-height: 26px;
  }

  .access-merit__title-sub {
    margin-top: 3px;
  }

  .access-merit__text {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
    新宿支店の弁護士紹介
   ========================================================================== */

.access-lawyer-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
  width: 100%;
  margin-top: 40px;
}

.access-lawyer-card__item {
  border: 1px solid #d9d9d9;
  border: 1px solid var(--color-border-gray);
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 24px;
}

.access-lawyer-card__title {
  width: 100%;
  background: none;
  border: none;
  cursor: default;
  text-align: left;
  border-bottom: 2px solid #d9d9d9;
  border-bottom: 2px solid var(--color-border-gray);
  color: #212121;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.5;
  padding-bottom: 8px;
  position: relative;
}

.access-lawyer-card__title::before {
  background: #31a66e;
  background: var(--brand-color);
  bottom: -1px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 80px;
}

.access-lawyer-card__content {
  flex: 1;
  margin-top: 16px;
}

.access-lawyer-card__footer {
  margin-top: 16px;
  padding-top: 12px;
  color: #6D6D6D;
  font-size: 11px;
  border-top: 1px solid #D7D7D7;
}


@media (max-width: 767px) {
  .access-lawyer-card {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
 
  .access-lawyer-card__item {
    padding: 16px;
  }

  .access-lawyer-card__title {
    font-size: 20px;
  }

  .access-lawyer-card__content {
    font-size: 15px;
  }

  .access-lawyer-card__footer {
    font-size: 12px;
  }
}