/*===========================================
  ma.css  ―  M&Aコンサルティングページ専用
  既存 common.css の変数・リセットを継承
===========================================*/

/* =====================================================
   MA専用カラー変数
===================================================== */
:root {
  --ma-gold:     #B8902A;
  --ma-gold-lt:  #c0a063;
  --ma-dark:     #3d3425;
  --ma-brown:    #6B4C2A;
  --ma-bg:       #F9F6F0;
  --ma-bg-dark:  #2C2416;
  --ma-red:      #8B1A1A;
}

/* =====================================================
   共通上書き
===================================================== */
#mainWrap {
  background: #fff;
}

/* MA用セクションタイトル */
.ma-sec-title {
  font-size: var(--font-40);
  font-weight: 700;
  font-family: var(--fontH);
  color: var(--ma-dark);
  text-align: center;
  letter-spacing: 1px;
  line-height: 1.4;
  margin-bottom: 70px;
}
.ma-sec-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--ma-gold);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* MA用CTAボタン */
.ma-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  padding: 25px 120px 25px 100px;
  background: #244533;
  color: #fff;
  font-size: var(--font-28);
  font-weight: 700;
  font-family: var(--fontH);
  border-radius: 10px;
  letter-spacing: 1px;
  border: 1px solid #fff;
  transition: background 0.2s, transform 0.15s;
}
.ma-btn-cta::after {
  content: '';
  position: absolute;
  right: 30px;
  top: 52%;
  width: 25px;
  height: 1px;
  background: #fff;
  transform: translateY(-50%);
}
.ma-btn-cta::before {
  content: '';
  position: absolute;
  right: 30px;
  top: 52%;
  width: 10px;
  height: 10px;
  border-top: 1px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}
.ma-btn-cta:hover {
  background: #082214;
  color: #fff;
  transform: translateY(-2px);
}

.ma-cta-wrap {
  text-align: center;
  margin-top: 70px;
}


/* =====================================================
   HERO  #maHero
===================================================== */
#maHero {
  position: relative;
  width: 100%;
  min-height: 800px;
  background: url(../images/visu_top01.webp) no-repeat center center / cover;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ma-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1430px;
  margin: 0 auto;
  padding: 80px 60px;
  text-align:right;
	display: flex;
	justify-content:flex-end;
}


.ma-hero-content {
  max-width: 560px;
  text-align:left;
}
.ma-hero-content p.en {
  font-size: var(--font-17);
  font-weight: 700;
  color: var(--ma-gold-lt);
  line-height: 2;
  font-family: var(--font) !important;
  margin: 0 auto 20px auto;
  padding: 0;
	letter-spacing: 1px;
}


.ma-hero-badges {
  margin-bottom: 20px;
}
.ma-hero-badges p {
  font-size: var(--font-32);
  font-weight: 700;
  color: #fff;
  line-height: 1.7;
  font-family: var(--fontH);
  border-bottom:1px solid var(--ma-gold-lt);
	display: flex;
	align-items:center;
  margin: 0 0;
  padding: 0 0;
}
.ma-hero-badges p span {
	display:block;
 width: 40px;
 margin:12px 10px 0 0;
}
.ma-hero-badges p span img {
 width: 40px;
}


.ma-hero-lead {
  font-size: var(--font-30);
  font-weight: 700;
  color: #e0d2b1;
  font-family: var(--fontH);
  margin-bottom: 8px;
  background: url(../images/icon_arrow01.webp) no-repeat center center / 140px auto;
  padding:40px 0 0 0;
  text-align:center;
}


.ma-hero-catch {
  font-size: var(--font-60);
  font-weight: 700;
  font-family: var(--fontH);
  color: #fff;
  line-height: 1.3;
  letter-spacing: 0;
  margin-bottom: 24px;
  text-align:center;
}

.ma-hero-merit {
  display: block;
  padding: 15px 20px;
  border-radius: 50px;
  font-size: var(--font-28);
  font-weight: 600;
  font-family: var(--fontH);
  color: #fff;
  background:#273250;
  text-align:center;
}
.ma-hero-merit strong {
  font-size: var(--font-36);
  font-weight: 700;
}

#maHero p.tadashi a{
  display: block;
  font-size: var(--font-14);
  font-weight: 700;
  line-height: 1.7;
  font-family: var(--font);
  color:var(--ma-gold-lt);
  margin: 10px 0;
  padding: 0 0;
  text-align:center;
}


/* =====================================================
   選ばれる理由  #maReasons
===================================================== */
#maReasons {
  padding: 90px 0 100px;
  background: url(../images/bg_reasons.webp) no-repeat center center / cover;
}
.ma-reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 0;
}
.ma-reason-card {
  background: #fff;
  border-radius: 15px;
  padding: 10px;
  text-align: center;
display: flex;
	justify-content:flex-start;
}
.ma-reason-card div{
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  border: 2px solid var(--ma-gold);
}
.ma-reason-card h3 {
  font-size: var(--font-32);
  font-weight: 600;
  font-family: var(--fontH);
  color: var(--ma-dark);
  line-height: 1.3;
  margin-bottom: 25px;
  padding-bottom: 25px;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--ma-gold);
}
.ma-reason-card p {
  font-size: var(--font-20);
  font-weight: 600;
  font-family: var(--font);
  color: var(--ma-dark);
  letter-spacing: 2px;
  line-height: 1.6;
  text-align: left;
}


/* =====================================================
   契約の流れ  #maFlow
===================================================== */
#maFlow {
  padding: 90px 0 100px;
  background: #fff;
}
.ma-flow-lead {
  text-align: center;
  font-size: var(--font-20);
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.8;
  font-family: var(--font);
  margin-bottom: 50px;
  margin-top: -30px;
}
.ma-flow-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
}
.ma-flow-step {
  flex: 1;
  min-width: 0;
}
.ma-flow-card {
  height: 100%;
  background: var(--ma-dark);
  border-radius: var(--radius);
  padding: 24px 12px 20px;
  text-align: center;
}
.ma-fs-label {
  display: inline-block;
  background: var(--ma-gold);
  color: #fff;
  font-size: var(--font-11);
  font-weight: 700;
  font-family: var(--fontH);
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.ma-fs-label span {
  font-size: var(--font-14);
  margin-left: 2px;
}
.ma-flow-card h3 {
  font-size: var(--font-15);
  font-weight: 700;
  font-family: var(--fontH);
  color: #fff;
  line-height: 1.5;
}
.ma-flow-arrow {
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ma-gold);
  font-size: var(--font-20);
}


/* =====================================================
   料金体系  #maPrice
===================================================== */
#maPrice {
  padding: 90px 0 100px;
  background: var(--ma-bg);
}
.ma-price-lead {
  text-align: center;
  font-size: var(--font-20);
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.8;
  font-family: var(--font);
  margin-bottom: 50px;
  margin-top: -30px;
}
.ma-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* メインテーブル */
.ma-price-main {
  width: 100%;
}
.ma-price-table-label {
  font-size: var(--font-20);
  font-weight: 600;
  letter-spacing: 2px;
  font-family: var(--font);
  color: var(--tx);
  margin-bottom: 12px;
}
.ma-price-tbl {
  width: 100%;
  border-collapse: collapse;
}
.ma-price-tbl thead tr {
  background: var(--ma-gold-lt);
}
.ma-price-tbl thead th {
  padding: 20px 30px;
  font-size: var(--font-20);
  letter-spacing: 2px;
  font-weight: 700;
  font-family: var(--font);
  color: #fff;
  text-align: center;
  border: 2px solid #f3f0e9;
}
.ma-price-tbl thead th:first-child {
  text-align: center;
  width: 70%;
  border: 2px solid #f3f0e9;
}
.ma-price-tbl tbody tr {
  border-bottom: 1px solid #e8e0d0;
  background: #fff;
}

.ma-price-tbl tbody td {
  padding: 18px 30px;
  font-size: var(--font-22);
  font-weight: 700;
  font-family: var(--fontH);
  color: var(--tx);
  text-align: center;
  border-bottom: 2px solid #f3f0e9;
}
.ma-price-tbl tbody td:last-child {
  color: var(--tx);
  font-weight: 700;
  border-bottom: 2px solid #fff;
  background: #f5f0e8;
}
.ma-price-note {
  font-size: var(--font-14);
  font-weight: 600;
  letter-spacing: 1px;
  font-family: var(--font);
  color: #666;
  margin-top: 10px;
}

/* 事例 */
.ma-price-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ma-price-ex {
  background: #fff;
  overflow: hidden;
  padding:30px;
}
.ma-price-ex-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  border-bottom: 1px solid #f3f0e9;
  background: #eee6d1;
}
.ma-price-ex-badge {
  display: inline-block;
  background: var(--ma-dark);
  color: #fff;
  font-size: var(--font-16);
  letter-spacing: 1px;
  font-weight: 700;
  font-family: var(--fontH);
  padding: 16px 30px;
  white-space: nowrap;
}
.ma-price-ex-head p {
  font-size: var(--font-16);
  letter-spacing: 1px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--tx);
}
.ma-price-ex-head p strong {
  font-size: var(--font-20);
  font-weight: 800;
  font-family: var(--fontH);
}
.ma-price-ex-tbl {
  width: 100%;
  border-collapse: collapse;
  padding: 0 20px;
}
.ma-price-ex-tbl thead tr {
  border-bottom: 1px solid #ccc;
}
.ma-price-ex-tbl thead th {
  padding: 22px 20px  12px 20px;
  font-size: var(--font-16);
  letter-spacing: 1px;
  font-weight: 900;
  font-family: var(--font);
  color: var(--tx);
  text-align: left;
  background: none;
  border: none;
}
.ma-price-ex-tbl tbody tr {
  border-bottom: 1px dashed #ccc;
}
.ma-price-ex-tbl tbody td {
  padding: 12px 20px;
  font-size: var(--font-15);
  font-weight: 600;
  letter-spacing: 1px;
  font-family: var(--font);
  color: var(--tx);
  text-align: left;
  background: none;
  border: none;
}

/* 合計行 */
.ma-price-total td {
  color: var(--ma-red) !important;
  font-weight: 800 !important;
  border-top: 1px solid #ccc !important;
  border-bottom: none !important;
  background: #f3f0e9 !important;
}

.ma-price-ex-note {
  padding: 14px 20px 18px;
  font-size: var(--font-16);
  font-weight: 600;
  letter-spacing: 1px;
  font-family: var(--font);
  color: #555;
  line-height: 1.8;
}
.ma-price-ex-note strong {
  color: var(--ma-red) !important;
  font-weight: 700;
}

/* SP */
@media screen and (max-width: 959px) {
  .ma-price-examples {
    grid-template-columns: 1fr;
  }
  .ma-price-tbl thead th,
  .ma-price-tbl tbody td {
    padding: 14px 16px;
    font-size: 1.4rem;
  }
}


/* =====================================================
   よくある質問  #maFaq
===================================================== */
#maFaq {
  padding: 90px 0 100px;
  background: #fff;
}
.ma-faq-list {
  max-width: 960px;
  margin: 0 auto;
}
.ma-faq-item {
  border-top: 1px solid #ccc;
}
.ma-faq-item:last-child {
  border-bottom: 1px solid #ccc;
}
.ma-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 10px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.ma-faq-qnum {
  flex-shrink: 0;
  font-size: var(--font-20);
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--fontH);
  color: var(--tx);
  min-width: 42px;
}
.ma-faq-qtext {
  flex: 1;
  font-size: var(--font-20);
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--font);
  color: var(--tx);
  line-height: 1.6;
}
.ma-faq-toggle {
  flex-shrink: 0;
  font-size: var(--font-28);
  font-weight: 300;
  color: #aaa;
  min-width: 28px;
  text-align: right;
}
.ma-faq-btn.is-open .ma-faq-toggle {
  color: var(--ma-gold);
}
.ma-faq-body {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}
.ma-faq-body-inner {
  padding: 0 10px 28px 58px;
}
.ma-faq-body-inner p {
  font-size: var(--font-17);
  font-weight: 600;
  letter-spacing: 1px;
  font-family: var(--font);
  color: #555;
  line-height: 1.9;
}
@media screen and (max-width: 959px) {
  .ma-faq-btn { padding: 20px 6px; gap: 10px; }
  .ma-faq-qnum { font-size: 1.7rem; min-width: 36px; }
  .ma-faq-qtext { font-size: 1.6rem; }
  .ma-faq-body-inner { padding: 0 6px 20px 46px; }
  .ma-faq-body-inner p { font-size: 1.5rem; }
}


/* =====================================================
   担当者紹介  #maStaff
===================================================== */
#maStaff {
  padding: 90px 0 100px;
  background: var(--ma-bg);
}
.ma-staff-wrap {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.ma-staff-photo {
  flex-shrink: 0;
  width:300px;
  height:300px;
}
.ma-staff-info {
  flex: 1;
}
.ma-staff-role {
  font-size: var(--font-15);
  font-weight: 600;
  font-family: var(--font);
  color: var(--ma-gold);
  letter-spacing: 1px;
  margin-bottom: 15px;
}
.ma-staff-name {
  font-size: var(--font-22);
  font-weight: 700;
  font-family: var(--fontH);
  color: var(--ma-dark);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.ma-staff-name span {
  font-size: var(--font-15);
  margin-left: 0;
}
.ma-staff-text {
  font-size: var(--font-18);
  font-family: var(--font);
  font-weight: 600;
  font-family: var(--font);
  line-height: 2;
  letter-spacing: 1px;
}


/* =====================================================
   M&Aを始めた理由  #maReason
===================================================== */
#maReason {
  padding: 90px 0 100px;
  background: #fff;
}
.ma-reason-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ma-reason-item {
  background: #e6dcc4;
  border-radius: 15px;
  padding: 10px;
  text-align: center;
	display: flex;
	justify-content:flex-start;
}
.ma-reason-item div{
  text-align: center;
  border: 1px solid var(--ma-gold);
  border-radius: 10px;
}
.ma-reason-item p.ma-reason-num {
  font-size: var(--font-16);
  font-weight: 700;
  font-family: var(--fontH);
  color: var(--ma-gold);
  letter-spacing: 1px;
  margin-bottom: 12px;
  background: #74192c;
  color: #fff;
  display: inline-block;
  padding: 4px 16px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.ma-reason-item p.ma-reason-num span{
  font-size: var(--font-23);
}

.ma-reason-item h3 {
  padding: 10px 30px 30px 30px;
  font-size: var(--font-24);
  font-weight: 600;
  font-family: var(--fontH);
  color: var(--ma-dark);
  line-height: 1.3;
  letter-spacing: 0;
}
.ma-reason-item p {
  padding: 20px 30px 30px 30px;
  font-size: var(--font-18);
  font-weight: 600;
  font-family: var(--font);
  color: var(--ma-dark);
  letter-spacing: 2px;
  line-height: 1.6;
  text-align: left;
  background: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}


/* =====================================================
   フォーム  #maForm
===================================================== */
#maForm {
  padding: 0 0 70px;
  background: #e9eefe;
}
#maForm iframe {
  display: block;
  width: 100%;
  height:1600px;
  border: none;
}


















/* =====================================================
   SP  max-width: 959px
===================================================== */
@media screen and (max-width: 959px) {

  /* ---- 共通 ---- */
  .ma-sec-title {
    font-size: 2.6rem;
    margin-bottom: 36px;
    letter-spacing: 1px;
  }
  .ma-cta-wrap {
    margin-top: 40px;
  }
  .ma-btn-cta {
    width: 90%;
    padding: 18px 60px 18px 20px;
    font-size: 1.8rem;
    justify-content: center;
  }
  .ma-btn-cta::after {
    right: 20px;
    width: 20px;
  }
  .ma-btn-cta::before {
    right: 20px;
    width: 8px;
    height: 8px;
  }

  /* ---- HERO ---- */
  #maHero {
    min-height: 100svh;
  background: url(../images/visu_top01_sp.webp) no-repeat center center / cover;
    background-position: center top;
  }
  .ma-hero-inner {
    width: 100%;
    max-width:400px;
    padding: 45vh 20px 60px;
    justify-content: flex-start;
  }
  .ma-hero-content {
    max-width: 100%;
    width: 100%;
  }
  .ma-hero-content p.en {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }
  .ma-hero-badges {
    margin-bottom: 0;
  }
  .ma-hero-badges p {
    font-size: 1.8rem;
    line-height: 1.6;
  }
  .ma-hero-badges p span {
    width: 28px;
    margin: 8px 8px 0 0;
  }
  .ma-hero-badges p span img {
    width: 28px;
  }
  .ma-hero-lead {
    font-size: 2.0rem;
    background-size: 80px auto;
    padding-top: 30px;
  }
  .ma-hero-catch {
    font-size: 3.4rem;
    margin-bottom: 16px;
  }
  .ma-hero-merit {
    font-size: 1.8rem;
    padding: 12px 16px;
    margin-bottom: 12px;
  }
  .ma-hero-merit strong {
    font-size: 2.4rem;
  }
  #maHero p.tadashi a {
    font-size: 1.2rem;
  }

  /* ---- 選ばれる理由 ---- */
  #maReasons {
    padding: 60px 0 70px;
  }
  .ma-reasons-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ma-reason-card h3 {
    font-size: 2.4rem;
  }
  .ma-reason-card p {
    font-size: 1.6rem;
  letter-spacing: 1px;
  }

  /* ---- 契約の流れ ---- */
  #maFlow {
    padding: 60px 0 70px;
  }
  .ma-flow-lead {
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 30px;
    margin-top: 0;
  }
  .ma-flow-track img {
    width: 90%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
  }

  /* ---- 料金体系 ---- */
  #maPrice {
    padding: 60px 0 70px;
  }
  .ma-price-lead {
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-top: 0;
  }
  .ma-price-wrap {
    gap: 24px;
  }
  .ma-price-tbl {
    border: 1px solid var(--ma-gold-lt);
  }
  .ma-price-tbl thead th {
    border-right: 1px solid var(--ma-gold-lt);
}
.ma-price-tbl thead th:first-child {
    border-left: 1px solid var(--ma-gold-lt);
}
  .ma-price-table-label {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }
  .ma-price-tbl thead th {
    padding: 12px 10px;
    font-size: 1.4rem;
    letter-spacing: 1px;
  }
  .ma-price-tbl tbody td {
    padding: 12px 10px;
    font-size: 1.5rem;
  }
  .ma-price-tbl tbody tr:last-child td {
    border-bottom: 1px solid var(--ma-gold-lt);
}
  .ma-price-examples {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ma-price-ex {
    padding: 0;
    border: 1px solid var(--ma-gold-lt);
  }
  .ma-price-ex-badge {
    font-size: 1.4rem;
    padding: 12px 16px;
  }
  .ma-price-ex-head p {
    font-size: 1.4rem;
  }
  .ma-price-ex-head p strong {
    font-size: 1.7rem;
  }
  .ma-price-ex-tbl thead th {
    font-size: 1.25rem;
    padding: 10px;
    letter-spacing: 0;
  }
  .ma-price-ex-tbl tbody td {
    font-size: 1.25rem;
    padding: 10px;
    letter-spacing: 0;
  }
  .ma-price-ex-note {
    font-size: 1.25rem;
    padding: 10px;
    letter-spacing: 0;
  }

  /* ---- FAQ ---- */
  #maFaq {
    padding: 60px 0 70px;
  }
  .ma-faq-btn {
    padding: 20px 6px;
    gap: 10px;
  }
  .ma-faq-qnum {
    font-size: 1.6rem;
    min-width: 36px;
  }
  .ma-faq-qtext {
    font-size: 1.6rem;
    letter-spacing: 0;
  }
  .ma-faq-toggle {
    font-size: 2.4rem;
  }
  .ma-faq-body-inner {
    padding: 0 6px 20px 42px;
  }
  .ma-faq-body-inner p {
    font-size: 1.5rem;
    letter-spacing: 0;
  }

  /* ---- 担当者紹介 ---- */
  #maStaff {
    padding: 60px 0 70px;
  }
  .ma-staff-wrap {
    flex-direction: column;
    padding: 24px 20px;
    gap: 24px;
    max-width: 100%;
  }
  .ma-staff-photo {
    width: 100%;
    height: auto;
    max-width: 240px;
    margin: 0 auto;
  }
  .ma-staff-photo img {
    width: 100%;
    height: auto;
  }
  .ma-staff-role {
    font-size: 1.4rem;
  }
  .ma-staff-name {
    font-size: 2.0rem;
  }
  .ma-staff-text {
    font-size: 1.5rem;
    letter-spacing: 0;
    line-height: 1.9;
  }

  /* ---- M&Aを始めた理由 ---- */
  #maReason {
    padding: 60px 0 70px;
  }
  .ma-reason-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ma-reason-item h3 {
    font-size: 2.0rem;
    padding: 10px 20px 20px;
  }
  .ma-reason-item p {
    font-size: 1.5rem;
    padding: 16px 20px 20px;
    letter-spacing: 0;
  }
  .ma-reason-item p.ma-reason-num {
    font-size: 1.4rem;
  }

  /* ---- フォーム ---- */
  #maForm {
    padding: 0 0 50px;
  }
  #maForm iframe {
  display: block;
  width: 100%;
  height:2000px;
  border: none;
}

  /* ---- footTel ---- */
  #footTel {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    padding: 0 20px;
  }
  #footTel p {
    font-size: 1.6rem;
  }
  #footTel div.tel {
    margin: 0 0 0 0;
  }
  #footTel div.tel img {
    max-width: 260px;
  }
  #footTel div.privacyIcon img {
    width: 80px;
  }
  
  footer p.copyright {
    background: #008B54;
    color: #fff;
  }

}
