@charset "utf-8";
/* ============================================================
   和歌山県スモールM&A  共通スタイル
   配色は :root の変数だけを書き換えれば全ページに反映されます
   ============================================================ */
:root {

  --primary:        #9A6212;
  --primary-dark:   #8A5710;
  --footer-bg:      #3A2A14;
  --accent-on-dark: #F7CE8A;
  --accent-text:    #A0691A;
  --accent-bright:  #E7A93E;
  --ink:            #2A2118;
  --muted:          #6B5D4C;
  --line:           #E6DCC9;
  --paper:          #FFFCF5;
  --surface:        #F7F1E6;
  --tint:           #F6EBD8;
  --tag:            #FBF0DC;
  --on-dark-muted:  #E8D8BC;
  --footer-link:    #EDE2D0;
  --footer-muted:   #C4B49A;
  --footer-rule:    #56411F;
  --band-rule:      #B08A4A;
  --node-sub:       #C9A063;
  --ill-sky:        #F7E7CC;
  --ill-sun:        #E7A93E;
  --ill-h1:         #D9B87A;
  --ill-h2:         #BE9040;
  --ill-h3:         #6E4A12;
  --ill-ground:     #9A6212;
  --ill-wave:       #A06A18;
  --ill-house:      #FBF3E4;
  --ill-roof:       #C9A469;
  --ill-fruit1:     #E7A93E;
  --ill-fruit2:     #E8AD4E;
  --ill-leaf:       #8A8A3A;
  --maxw: 1200px;
}

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px; line-height: 1.95; color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-text); }
h1, h2, h3 { margin: 0; line-height: 1.5; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 920px; }
.center { text-align: center; }
.small { font-size: 13px; line-height: 1.9; color: var(--muted); }
.label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--accent-text); }
.note { font-size: 13px; color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 16px; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  font-size: 15px; font-weight: 700; line-height: 1.4; text-align: center;
  transition: opacity .2s, background-color .2s, color .2s;
}
.btn:hover { opacity: .88; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; border-radius: 6px; }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 17px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-cta { background: #fff; color: var(--primary-dark); }
.btn-cta:hover { color: var(--primary-dark); }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-family: "Zen Old Mincho", serif; font-size: 21px; font-weight: 700; color: var(--primary); }
.brand-sub { font-size: 11px; color: var(--muted); }
.globalnav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.globalnav ul { display: flex; align-items: center; gap: 22px; }
.globalnav a { font-size: 14px; font-weight: 500; color: var(--ink); }
.globalnav a:hover, .globalnav a[aria-current="page"] { color: var(--accent-text); }
.nav-contact { display: flex; align-items: center; gap: 14px; }
.nav-tel { display: flex; flex-direction: column; align-items: flex-end; font-size: 19px; font-weight: 700; color: var(--primary); letter-spacing: .01em; }
.nav-tel small { font-size: 10px; font-weight: 400; color: var(--muted); }
.nav-toggle { display: none; width: 48px; height: 48px; margin-left: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--primary); transition: transform .2s, opacity .2s; }

/* ---------- ヒーロー ---------- */
.hero { padding: 64px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-family: "Zen Old Mincho", serif; font-size: clamp(32px, 4.2vw, 52px); font-weight: 700; line-height: 1.45; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hero-illust { width: 100%; border-radius: 12px; display: block; }
.hero-figure figcaption { font-size: 11px; color: var(--muted); }

/* ---------- 数字バー ---------- */
.stats { background: var(--primary-dark); color: #fff; padding: 30px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats-grid div { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 6px 12px; }
.stats-grid div + div { border-left: 1px solid var(--band-rule); }
.stats-grid strong { font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: var(--accent-on-dark); line-height: 1.3; }
.stats-grid span { font-size: 13px; color: var(--on-dark-muted); }

/* ---------- セクション共通 ---------- */
.section { padding: 76px 0; }
.section--tint { background: var(--surface); }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-bottom: 40px; }
.section-head h2 { font-family: "Zen Old Mincho", serif; font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.section-head p { font-size: 15px; color: var(--muted); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px; }
.card h3 { font-size: 18px; font-weight: 700; color: var(--primary); }
.card p { font-size: 14px; color: var(--muted); }

/* お悩み */
.card-num { display: flex; gap: 18px; align-items: flex-start; }
.card-num .num { font-family: "Zen Old Mincho", serif; font-size: 26px; font-weight: 700; color: var(--accent-text); line-height: 1.2; }
.card-num h3 { margin-bottom: 6px; }

/* 理由 */
.card-reason { display: flex; flex-direction: column; gap: 12px; }
.card-reason .badge { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 16px; font-weight: 700; }
.card-reason.is-accent { border: 1.5px solid var(--primary); }
.card-reason.is-accent h3 { color: var(--accent-text); }

/* 報酬比較（トップ） */
.compare { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.compare-title { font-size: 15px; font-weight: 700; }
.compare ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; flex: 1 1 520px; }
.compare li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 16px; background: var(--surface); border-radius: 6px; font-size: 14px; }
.compare li span { color: var(--muted); font-size: 13px; }
.compare li strong { font-weight: 700; }
.compare li.is-accent { background: var(--tag); }
.compare li.is-accent span, .compare li.is-accent strong { color: var(--accent-text); font-weight: 700; }

/* スモールM&Aとは */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.about-text { display: flex; flex-direction: column; gap: 16px; }
.about-text .lead { font-size: 17px; }
.about-text .lead strong { color: var(--primary); }
.about-text p { color: var(--muted); font-size: 15px; }
.about-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 32px 34px; display: flex; flex-direction: column; gap: 20px; }
.about-box h3 { font-size: 17px; }
.flowline { display: flex; align-items: center; gap: 12px; color: var(--primary); }
.flowline-item { flex: 1; border-radius: 8px; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.flowline-item strong { font-size: 15px; }
.flowline-item span { font-size: 12px; color: var(--muted); }
.flowline-item.is-warn { background: var(--tag); }
.flowline-item.is-warn strong { color: var(--accent-text); }
.flowline-item.is-ok { background: var(--tint); }
.flowline-item.is-ok strong { color: var(--primary); }
.flowline-item.is-fill { background: var(--primary); }
.flowline-item.is-fill strong { color: #fff; }
.flowline-item.is-fill span { color: var(--on-dark-muted); }

/* 流れ */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.step { position: relative; padding: 0 16px 0 0; display: flex; flex-direction: column; gap: 6px; }
.step .dot { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); margin-bottom: 14px; position: relative; }
.step .dot::after { content: ""; position: absolute; top: 9px; left: 20px; width: calc(100% + 16px); height: 2px; background: var(--line); }
.step:last-child .dot::after { display: none; }
.step.is-sub .dot { background: var(--node-sub); }
.step:last-child .dot { background: var(--primary-dark); }
.step-no { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.step h3 { font-size: 16px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.85; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 3px 9px; }
.tag-free { color: var(--accent-text); background: var(--tag); }
.tag-paid { color: var(--muted); background: var(--surface); }
.section--tint .tag-paid { background: #fff; }
.steps + .center { margin-top: 40px; }

/* 専門家 */
.member { display: flex; gap: 18px; align-items: flex-start; }
.member .photo { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 50%; background: var(--tint); display: flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1.4; text-align: center; color: var(--muted); }
.member .role { font-size: 11px; font-weight: 700; color: var(--accent-text); }
.member h3 { font-family: "Zen Old Mincho", serif; font-size: 21px; color: var(--ink); margin: 2px 0 4px; }
.member p { font-size: 13px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.faq summary { display: flex; align-items: center; gap: 14px; padding: 20px 46px 20px 24px; font-size: 16px; font-weight: 700; cursor: pointer; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .q { font-size: 16px; font-weight: 900; color: var(--accent-text); }
.faq .answer { display: flex; gap: 14px; padding: 0 24px 22px; }
.faq .a { font-size: 16px; font-weight: 900; color: var(--primary); }
.faq .answer p { font-size: 14px; color: var(--muted); }

/* 会社概要 */
.deflist { display: grid; grid-template-columns: 160px 1fr; }
.deflist dt { padding: 16px 0; font-size: 14px; font-weight: 700; color: var(--muted); border-top: 1px solid var(--line); }
.deflist dd { padding: 16px 0; font-size: 15px; border-top: 1px solid var(--line); }

/* ---------- 下層ページ ---------- */
.page-head { background: var(--primary-dark); color: #fff; padding: 36px 0 40px; }
.page-head .label { color: var(--accent-on-dark); margin-bottom: 8px; }
.page-head h1 { font-family: "Zen Old Mincho", serif; font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; }
.page-head p { margin-top: 10px; font-size: 15px; color: var(--on-dark-muted); }
.breadcrumb { display: flex; gap: 10px; font-size: 12px; color: var(--on-dark-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--on-dark-muted); text-decoration: underline; }
.fee-block { margin-bottom: 52px; }
.fee-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.fee-head h2 { font-family: "Zen Old Mincho", serif; font-size: clamp(20px, 2.6vw, 28px); }
.pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 4px; font-size: 14px; font-weight: 700; color: #fff; }
.pill-sell { background: var(--primary); }
.pill-buy { background: var(--accent-text); }
.table-scroll { overflow-x: auto; }
.fee-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 640px; }
.fee-table th, .fee-table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table thead th { background: var(--surface); font-size: 13px; color: var(--muted); }
.fee-table tbody th { font-size: 15px; width: 26%; }
.fee-table .fee { font-size: 15px; font-weight: 700; width: 20%; white-space: nowrap; }
.fee-table td { font-size: 14px; color: var(--muted); }
.fee-table tbody tr.is-last { background: var(--tag); }
.fee-table tbody tr.is-last th, .fee-table tbody tr.is-last .fee { color: var(--accent-text); }
.fee-table tbody tr.is-last td { color: var(--ink); }
.fee-table tbody tr:last-child th, .fee-table tbody tr:last-child td { border-bottom: none; }
.compare-box { background: var(--surface); border-radius: 12px; padding: 36px 40px; display: flex; flex-direction: column; gap: 18px; }
.compare-box h2 { font-family: "Zen Old Mincho", serif; font-size: 26px; }
.compare-box .card { display: flex; flex-direction: column; gap: 8px; }
.compare-box .card.is-accent { border: 2px solid var(--primary); }
.ctitle { font-size: 14px; color: var(--muted); }
.card.is-accent .ctitle { color: var(--accent-text); font-weight: 700; }
.camount { font-size: 24px; font-weight: 700; }
.card.is-accent .camount { font-size: 30px; font-weight: 900; color: var(--accent-text); }
.camount small { font-size: 13px; margin-left: 8px; }
.article h2 { font-family: "Zen Old Mincho", serif; font-size: 20px; margin: 32px 0 10px; }
.article p { font-size: 15px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: var(--primary-dark); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.cta-title { font-family: "Zen Old Mincho", serif; font-size: clamp(22px, 3vw, 32px); font-weight: 700; }
.cta-lead { font-size: 15px; color: var(--on-dark-muted); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; margin-top: 6px; }
.cta-tel { display: flex; flex-direction: column; align-items: flex-start; }
.cta-tel span { font-size: 12px; color: var(--on-dark-muted); }
.cta-tel a { font-size: 30px; font-weight: 900; color: #fff; letter-spacing: .01em; }

/* ---------- フッター ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-link); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-name { font-family: "Zen Old Mincho", serif; font-size: 19px; font-weight: 700; color: #fff; }
.footer-brand p { margin-top: 10px; font-size: 13px; line-height: 1.9; color: var(--footer-muted); }
.footer-brand a { color: var(--footer-muted); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--accent-bright); }
.footer-nav a { font-size: 13px; color: var(--footer-link); }
.footer-nav a:hover { color: var(--accent-bright); }
.footer-note { border: 1px solid var(--footer-rule); border-radius: 8px; padding: 16px 18px; }
.footer-note span { font-size: 12px; font-weight: 700; color: #fff; }
.footer-note p { margin-top: 6px; font-size: 11px; line-height: 1.8; color: var(--footer-muted); }
.copyright { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--footer-rule); font-size: 11px; color: var(--footer-muted); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .step:nth-child(3n) .dot::after { display: none; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .header-inner { min-height: 72px; }
  .nav-toggle { display: block; }
  .globalnav {
    position: fixed; inset: 72px 0 auto; display: none; flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 24px 28px; background: #fff; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .globalnav.is-open { display: flex; }
  .globalnav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .globalnav ul a { display: block; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-contact { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 18px; }
  .nav-tel { align-items: center; font-size: 22px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-box { padding: 24px; }
}
@media (max-width: 700px) {
  body { font-size: 15px; }
  .section { padding: 52px 0; }
  .hero { padding: 36px 0 40px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stats-grid div { flex-direction: row; justify-content: space-between; align-items: baseline; text-align: left; padding: 14px 0; }
  .stats-grid div + div { border-left: none; border-top: 1px solid var(--band-rule); }
  .stats-grid span { text-align: right; max-width: 55%; font-size: 12px; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 0 0 24px 32px; }
  .step .dot { position: absolute; left: 0; top: 4px; margin: 0; width: 16px; height: 16px; }
  .step .dot::after { top: 16px; left: 7px; width: 2px; height: calc(100% + 40px); }
  .step:last-child .dot::after { display: none; }
  .compare ul { grid-template-columns: 1fr; }
  .flowline { flex-direction: column; }
  .flowline svg { transform: rotate(90deg); }
  .flowline-item { width: 100%; }
  .deflist { grid-template-columns: 1fr; }
  .deflist dt { padding-bottom: 0; border-top: 1px solid var(--line); }
  .deflist dd { padding-top: 4px; border-top: none; }
  .compare-box { padding: 24px; }
  .cta-actions { flex-direction: column; gap: 14px; }
  .cta-tel { align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .btn-lg { width: 100%; }
  .hero-actions .btn { width: 100%; }
}
