/* =========================================
   CONTACT セクション
   ========================================= */
.section-contact {
  padding: 120px 24px;
  background-color: #ffffff;
  background: linear-gradient(360deg, rgba(242, 242, 242, 0) 0%, #f2f2f2 100%);
}

.contact-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.section-contact .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-contact .section-title {
  font-family: var(--font-en);
  font-weight: var(--font-weight-demi);
  font-size: 26px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.section-contact .section-subtitle {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.08em;
  line-height: 50px;
  color: #145393;
}

.section-contact .section-intro {
  margin-top: 20px;
  font-size: 16px;
  letter-spacing: 0.16em;
  line-height: 28px;
}

.contact-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 994px;
  width: 100%;
  margin: 0 auto;
}

.contact-box {
  background-color: #fff;
  border-radius: 3px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.08);
}

.contact-box--form a {
  display: block;
  color: #222;
  text-decoration: none;
}

.contact-box--form a:hover {
  color: #222;
}

.contact-box__icon {
  margin-bottom: 16px;
}

.contact-box__icon img {
  width: 40px;
  height: 40px;
  margin: 0 auto;
}

.contact-box__label {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.contact-box__tel {
  display: block;
  font-family: var(--font-en);
  font-weight: var(--font-weight-demi);
  font-size: 40px;
  color: #145393;
  text-decoration: none;
  letter-spacing: 0.06em;
}

.contact-box__note {
  font-family: var(--font-ja);
  font-size: 12px;
}

.contact-box__desc {
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.16em;
}

/* =========================================
   M&A関連コンテンツ・サービス セクション
   ========================================= */
.section-related {
  padding: 80px 24px;
  background-color: #f7f7f7;
}

.related-inner {
  max-width: 1440px;
  margin: 80px auto 0;
}

/* contact ページ：CONTACT 非表示時は margin-top を 0 に */
.is-contact-page .related-inner {
  margin-top: 0;
}

.section-related .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.related-inner .section-header {
  text-align: center;
  margin-bottom: 32px;
}

.related-inner .section-subtitle {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 30px;
  color: #222;
}

.related-inner .section-subtitle::after {
  content: '';
  display: block;
  width: 100px;
  height: 2px;
  background: #222;
  margin: 20px auto 0;
}

.related-inner .section-header__line {
  display: none;
}

.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  display: block;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  width: 100%;
}

.related-card__thumb {
  width: 100%;
  height: 100%;
  position: relative;
}

.related-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.related-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card__thumb img {
  transform: scale(1.05);
}

.related-card__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.related-card:hover::after {
  background: rgba(0, 0, 0, 0.2);
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  position: relative;
  background: #6a818f;
  color: #fff;
  padding: 64px 24px 32px;
  overflow: hidden;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  padding: 0 var(--desktop-gutter);
  margin: 0 auto;
}

/* --- Footer Top: ロゴ + ナビ --- */
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 80px;
}

/* 旧レイアウト（footer-finance.php 用） */
.footer-nav {
  display: flex;
  justify-content: flex-end;
  gap: 60px;
  flex: 1;
}

.footer-nav__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav__col.sp_col1 {
  display: none;
}

.footer-nav__wrapper {
  display: flex;
  gap: 60px;
}

.footer-nav__heading {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.8;
}

.footer-nav__heading:hover {
  opacity: 0.7;
}

.footer-nav__link {
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.1em;
}

.footer-nav__link:hover {
  color: #ffffff;
}

/* --- Footer Top: 横並びレイアウト（B案 / footer-main.php） --- */
.footer-top--b {
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding-bottom: 60px;
}

.footer-brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 26px;
  margin-bottom: 24px;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo img {
  width: 332px;
  height: auto;
}

/* 単独リンク（横一列） */
.footer-primary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 26px;
}

.footer-primary a {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-primary a:hover {
  color: #cfe4f6;
}

/* 見出し＋サブリンクを横流しにする行 */
.footer-rowset {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: baseline;
}

.footer-row__head {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-row__head:hover {
  opacity: 0.72;
}

.footer-row__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}

.footer-row__links a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-row__links a::before {
  content: '\203A';
  color: #cfe4f6;
  font-size: 13px;
}

.footer-row__links a:hover {
  color: #fff;
}

/* サービス・グループ会社（別セクション：SERVICE / GROUP） */
.footer-svc {
  margin-top: 42px;
  display: grid;
  /* Service（2枚）と Group（2枚）を左右半々に。全4タイルが等幅になる */
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.footer-svc__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #cfe4f6;
  margin-bottom: 14px;
}

.footer-svc__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.footer-svc__row--group {
  grid-template-columns: repeat(2, 1fr);
}

.footer-svc-tile {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.footer-svc-tile:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #cfe4f6;
}

/* --- Footer Bottom: ポリシー + SNS --- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-policies {
  display: flex;
  gap: 60px;
}

.footer-policies div {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.footer-policy__link {
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.1em;
}

.footer-policy__link:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.footer-social__link img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}

.footer-social__link:hover img {
  opacity: 1;
}

/* --- Footer Legal: バッジ + コピーライト --- */
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 40px;
}

.footer-badge img {
  height: 40px;
  width: auto;
}

.footer-copyright {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #fff;
}

.footer-badge-sp {
  display: none !important;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
  /* Contact セクション */
  .section-contact {
    padding: 60px 20px;
  }

  .section-contact .section-header {
    margin-bottom: 20px;
  }

  .section-contact .section-title {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 10px;
  }

  .section-contact .section-subtitle {
    font-size: 24px;
    text-wrap: nowrap;
    line-height: 1.2;
  }

  .section-contact .section-intro {
    font-size: 14px;
    line-height: 22px;
    text-align: left;
    margin-top: 10px;
  }

  .contact-boxes {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-box {
    padding: 32px 20px;
  }

  .contact-box__icon {
    margin-bottom: 12px;
  }

  .contact-box__label {
    font-size: 22px;
    line-height: 38px;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
  }

  .contact-box__tel {
    font-size: 30px;
  }

  .contact-box__note {
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .contact-box__desc.font-ja {
    text-align: left;
  }

  .section-related {
    padding: 60px 20px;
  }

  .related-inner .section-subtitle {
    font-size: 21px;
    line-height: 38px;
    letter-spacing: 0.12em;
    text-align: center;
  }

  .related-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .related-card__title {
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0.12em;
  }

  /* Footer */
  .site-footer {
    position: relative;
    padding: 60px 20px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
  }

  /* 旧レイアウト（footer-finance.php 用） */
  .footer-nav {
    flex-direction: column;
    gap: 12px 20px;
    width: 100%;
  }

  .footer-nav__col {
    min-width: 0;
  }

  .footer-nav__col.pc_col1 {
    display: none;
  }

  .footer-nav__col.sp_col1 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 0;
  }

  .footer-nav__wrapper {
    gap: 0;
  }

  .footer-nav__wrapper .footer-nav__col:last-child {
    padding: 0;
    border-top: 0;
  }

  .footer-nav__heading {
    font-family: var(--font-ja);
    width: 50%;
    font-weight: 500;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0.12em;
    text-wrap: nowrap;

    font-feature-settings:
      'pwid' on,
      'halt' on;
  }

  .footer-nav__col:last-child {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .footer-nav__col.pc_col2,
  .footer-nav__col.pc_col3 {
    width: 50%;
  }

  .footer-nav__col.pc_col2 .footer-nav__link,
  .footer-nav__col.pc_col3 .footer-nav__link {
    padding-left: 0.5em;
    font-size: 12px;
  }

  /* B案 */
  .footer-top--b {
    align-items: stretch;
  }

  .footer-brandrow {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 22px;
    margin-bottom: 20px;
  }

  .footer-logo {
    text-align: center;
  }

  .footer-logo img {
    height: 40px;
    width: auto;
  }

  .footer-top--b .footer-logo {
    text-align: left;
  }

  .footer-primary {
    justify-content: flex-start;
    gap: 10px 20px;
    width: 100%;
  }

  .footer-primary a {
    font-size: 14px;
  }

  .footer-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-rowset {
    gap: 18px;
  }

  .footer-svc {
    margin-top: 32px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-svc__row,
  .footer-svc__row--group {
    grid-template-columns: 1fr;
  }

  /* 背景ロゴと重なるため不透明に */
  .footer-svc-tile {
    min-height: 0;
    padding: 14px 18px;
    background: #7b8f9b;
  }

  .footer-svc-tile:hover {
    background: #869aa6;
    color: #fff;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .footer-social {
    order: -1;
    justify-content: center;
    border-block: 1px solid #fff;
    padding: 30px 0;
    width: 100%;
  }

  .footer-policies {
    flex-direction: column;
    gap: 0;
  }

  .footer-policies div {
    gap: 15px;
  }

  .policie-1 {
    padding-bottom: 40px;
    border-bottom: 1px solid #fff;
  }

  .policie-2 {
    padding-block: 40px;
    border-bottom: 1px solid #fff;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-badge-sp {
    display: block !important;
  }

  .footer-badge-sp .img-wrapper {
    display: block !important;
  }

  .footer-badge-sp .img-wrapper img {
    height: 40px;
  }
}
