/* ============================================================
   株式会社yfc M&A・事業承継支援サイト 共通スタイル
   ブランドカラーは既存サイト確認後に :root の変数のみ変更すれば
   全体へ反映される設計(要確認: 既存yfcブランドカラーHEX)
   ============================================================ */
:root {
  --navy: #1b3a5c;        /* 濃紺: 信頼・誠実 */
  --navy-dark: #12293f;
  --teal: #2e6e66;        /* 落ち着いた青緑 */
  --teal-dark: #235750;
  --green: #3e7d5c;       /* アクセント: 控えめな緑(売り手系CTA) */
  --gold: #a98a45;        /* アクセント: 控えめな金(装飾のみ・多用しない) */
  --bg: #f7f4ee;          /* 温かみのある薄いベージュ */
  --bg-soft: #fdfcf9;
  --ink: #22303c;
  --muted: #5c6b77;
  --line: #e2dccf;
  --white: #ffffff;
  --danger: #b3462e;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(27, 58, 92, .08);
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Meiryo", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg-soft);
  font-size: 16px;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
ul, ol { padding-left: 1.4em; }
main { display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* --- skip link (アクセシビリティ) --- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 0; }

/* ============ ヘッダー ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand { text-decoration: none; color: var(--navy); line-height: 1.3; }
.brand .brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; letter-spacing: .06em; }
.brand .brand-sub { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .04em; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 4px; list-style: none; padding: 0; }
.gnav a {
  display: block; padding: 10px 8px; text-decoration: none; white-space: nowrap;
  color: var(--ink); font-size: .85rem; font-weight: 500; border-radius: 6px;
}
.gnav a:hover, .gnav a[aria-current="page"] { background: var(--bg); color: var(--navy); }
.header-cta { display: flex; gap: 8px; }
.menu-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-size: .8rem; color: var(--navy); cursor: pointer;
}

/* ============ ボタン ============ */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  border-radius: 999px; font-weight: 700; line-height: 1.4;
  padding: 13px 26px; font-size: .95rem; border: 2px solid transparent;
  transition: opacity .15s ease, transform .15s ease; cursor: pointer;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-sell { background: var(--green); color: #fff; }
.btn-buy { background: var(--navy); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .82rem; }
.btn-lg { padding: 17px 40px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* ============ 見出し ============ */
h1, h2, h3 { line-height: 1.5; color: var(--navy); }
.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2 { color: #fff; }
.sec-label {
  display: block; font-size: .78rem; letter-spacing: .18em;
  color: var(--gold); font-weight: 700; margin-bottom: 8px; text-transform: uppercase;
}
.sec-title {
  font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700;
  margin-bottom: 18px; letter-spacing: .04em;
}
.sec-lead { max-width: 760px; color: var(--muted); margin-bottom: 36px; }
.section-navy .sec-lead { color: rgba(255,255,255,.85); }
.center { text-align: center; }
.center .sec-lead { margin-left: auto; margin-right: auto; }

/* ============ ヒーロー ============ */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--teal-dark) 100%);
  color: #fff; padding: 84px 0 64px; position: relative; overflow: hidden;
}
.hero::after { /* 柔らかな光: 高級感を出しすぎない控えめな装飾 */
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(169,138,69,.18), transparent 70%); pointer-events: none;
}
.hero h1 {
  font-family: var(--font-serif); color: #fff;
  font-size: clamp(1.6rem, 4.2vw, 2.6rem); font-weight: 700;
  letter-spacing: .05em; margin-bottom: 18px;
}
.hero .hero-sub { max-width: 700px; color: rgba(255,255,255,.88); margin-bottom: 34px; font-size: 1.02rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 18px; font-size: .8rem; color: rgba(255,255,255,.65); }

/* サブページ用ページヘッダー */
.page-header {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy) 70%, var(--teal-dark));
  color: #fff; padding: 54px 0 40px;
}
.page-header h1 { color: #fff; font-family: var(--font-serif); font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.page-header .page-lead { color: rgba(255,255,255,.85); max-width: 760px; margin-top: 10px; }

/* パンくず */
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--line); font-size: .78rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 9px 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 6px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ============ カード ============ */
.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: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card p { font-size: .9rem; color: var(--muted); }
.card .card-link { display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 700; }
a.card-wrap { text-decoration: none; color: inherit; display: block; transition: transform .15s; }
a.card-wrap:hover { transform: translateY(-3px); }

/* 悩みリスト */
.worry-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.worry-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 16px 12px 42px; position: relative; font-size: .92rem;
}
.worry-list li::before {
  content: "✓"; position: absolute; left: 15px; top: 12px;
  color: var(--teal); font-weight: 700;
}

/* リスクタグ */
.risk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.risk-item {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: 6px; padding: 10px 12px; font-size: .85rem; font-weight: 500;
}

/* 支援範囲フロー図 */
.flow-diagram { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 28px 0 10px; }
.flow-step {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 10px; text-align: center; position: relative;
}
.flow-step .flow-num {
  display: inline-block; background: var(--navy); color: #fff; border-radius: 50%;
  width: 26px; height: 26px; line-height: 26px; font-size: .78rem; margin-bottom: 6px;
}
.flow-step .flow-name { font-weight: 700; font-size: .85rem; display: block; }
.flow-step .flow-desc { font-size: .74rem; color: var(--muted); display: block; margin-top: 4px; }
.flow-support {
  margin-top: 10px; background: rgba(62,125,92,.1); border: 1.5px dashed var(--green);
  border-radius: 8px; text-align: center; padding: 10px; font-weight: 700;
  color: var(--green); font-size: .9rem;
}

/* 縦型ステップ(支援の流れ) */
.step-list { list-style: none; padding: 0; counter-reset: step; }
.step-list > li {
  position: relative; padding: 0 0 30px 66px; counter-increment: step;
}
.step-list > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px;
  background: var(--navy); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
}
.step-list > li:not(:last-child)::after {
  content: ""; position: absolute; left: 22px; top: 50px; bottom: 4px; width: 2px; background: var(--line);
}
.step-list h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step-list p { font-size: .9rem; color: var(--muted); }

/* ============ テーブル ============ */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.tbl th { background: var(--bg); color: var(--navy); font-weight: 700; white-space: nowrap; }
.tbl .tbd { color: var(--danger); font-weight: 700; }

/* 要確認バッジ・コメントクラス */
.badge-tbd {
  display: inline-block; background: #fdf1ec; color: var(--danger);
  border: 1px solid #eac6ba; border-radius: 4px; font-size: .74rem;
  font-weight: 700; padding: 1px 8px; vertical-align: middle;
}
.note-box {
  background: var(--bg); border-left: 4px solid var(--gold);
  border-radius: 6px; padding: 16px 18px; font-size: .86rem; color: var(--muted); margin: 22px 0;
}
.note-box strong { color: var(--ink); }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 700; list-style: none; position: relative; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q."; color: var(--gold); margin-right: 8px; font-family: var(--font-serif); }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 14px; font-size: 1.3rem; color: var(--muted); font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 18px 18px 18px; font-size: .92rem; color: var(--muted); border-top: 1px dashed var(--line); }
.faq-item .faq-a p { padding-top: 12px; }
.faq-item .faq-a p::before { content: "A. "; color: var(--teal); font-weight: 700; }

/* 写真プレースホルダ(実写真差し替え前提 ※要確認) */
.ph {
  background: linear-gradient(135deg, #d8e2e8, #cfd9d3);
  border: 1px dashed #9fb0ba; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #5a6b76; font-size: .8rem; text-align: center; padding: 14px;
  min-height: 200px;
}

/* ============ フォーム ============ */
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.req, .opt {
  display: inline-block; font-size: .68rem; border-radius: 4px; padding: 1px 7px;
  margin-left: 8px; vertical-align: middle; font-weight: 700;
}
.req { background: var(--danger); color: #fff; }
.opt { background: #e6e2d8; color: var(--muted); }
.form-row input[type="text"], .form-row input[type="tel"], .form-row input[type="email"],
.form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #c9c2b4; border-radius: 8px;
  font-size: 16px; /* iOSズーム防止 */ font-family: inherit; background: var(--bg-soft);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--teal); outline-offset: 1px; background: #fff;
}
.form-row .field-note { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.form-row .field-error { display: none; color: var(--danger); font-size: .8rem; font-weight: 700; margin-top: 4px; }
.form-row.has-error .field-error { display: block; }
.form-row.has-error input, .form-row.has-error select, .form-row.has-error textarea { border-color: var(--danger); }
.consent-box {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px; font-size: .84rem; color: var(--muted); max-height: 180px; overflow-y: auto; margin-bottom: 14px;
}
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.checkbox-row input { width: 20px; height: 20px; margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; } /* honeypot */

/* 確認画面 */
.confirm-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 24px; }
.confirm-table th, .confirm-table td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: top; }
.confirm-table th { width: 34%; color: var(--navy); font-weight: 700; }
.form-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin-bottom: 30px; font-size: .82rem; }
.form-steps li { flex: 1; text-align: center; padding: 9px 4px; background: #eee9dd; border-radius: 6px; color: var(--muted); }
.form-steps li.active { background: var(--navy); color: #fff; font-weight: 700; }

/* ============ CTAバンド ============ */
.cta-band { background: linear-gradient(120deg, var(--teal-dark), var(--navy)); color: #fff; padding: 60px 0; }
.cta-band h2 { color: #fff; font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.85); font-size: .92rem; margin-bottom: 26px; }
.cta-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cta-col { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.cta-col h3 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.cta-col p { font-size: .8rem; min-height: 3em; }
.cta-tel { margin-top: 30px; text-align: center; font-size: .9rem; color: rgba(255,255,255,.85); }
.cta-tel strong { font-size: 1.35rem; letter-spacing: .04em; }

/* ============ フッター ============ */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.8); font-size: .84rem; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 26px; padding: 54px 0 40px; }
.footer-brand .brand-name { font-family: var(--font-serif); color: #fff; font-size: 1.15rem; display: block; margin-bottom: 8px; }
.site-footer h4 { color: #fff; font-size: .88rem; margin-bottom: 12px; border-left: 3px solid var(--gold); padding-left: 8px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 16px 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .76rem; }

/* ============ コラム ============ */
.article-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 36px; }
.article-body h2 { font-size: 1.3rem; margin: 38px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--teal); }
.article-body h3 { font-size: 1.08rem; margin: 26px 0 10px; padding-left: 10px; border-left: 4px solid var(--gold); }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 0; }
.article-meta { font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.article-meta .cat { background: var(--teal); color: #fff; border-radius: 4px; padding: 2px 10px; margin-right: 10px; font-weight: 700; }
.term-note { background: var(--bg); border-radius: 6px; padding: 12px 16px; font-size: .84rem; color: var(--muted); margin: 0 0 16px; }
.term-note strong { color: var(--teal); }

/* ============ 支援パッケージLP(package.html) ============ */
.page-header-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.page-header .hero-note { color: rgba(255,255,255,.65); }
.pkg-card { display: flex; flex-direction: column; }
.pkg-no { font-size: .72rem; letter-spacing: .2em; color: var(--gold); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.pkg-copy { font-size: .88rem; color: var(--muted); }
.pkg-card h4 { font-size: .8rem; color: var(--teal); letter-spacing: .08em; margin: 16px 0 6px; padding-bottom: 3px; border-bottom: 1px dashed var(--line); }
.pkg-list { list-style: none; padding: 0; display: grid; gap: 4px; font-size: .87rem; color: var(--muted); }
.pkg-list li { padding-left: 1.1em; position: relative; }
.pkg-list li::before { content: "・"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.pkg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chip { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; font-size: .76rem; padding: 2px 12px; color: var(--ink); }
.pkg-price { margin-top: auto; padding: 14px 16px; background: var(--bg); border-radius: 8px; }
.pkg-price .pkg-meta { font-size: .8rem; color: var(--muted); }
.pkg-price strong { font-size: 1.1rem; color: var(--navy); }
.pkg-price .pkg-price-note { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.pkg-card .btn { margin-top: 16px; }
.case-card .case-badge { display: inline-block; background: var(--navy); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 4px; padding: 2px 10px; }
.tbl td.cmp-yfc { background: rgba(46,110,102,.07); font-weight: 500; }

/* ============ レスポンシブ ============ */
@media (max-width: 1180px) {
  .gnav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; gap: 0; padding: 8px 12px; }
  .gnav a { padding: 13px 10px; font-size: .95rem; border-bottom: 1px solid var(--bg); }
  .menu-toggle { display: block; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 1024px) {
  .header-cta .btn-buy { display: none; }
  .grid-4, .risk-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .flow-diagram { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding: 52px 0; }
  .hero { padding: 56px 0 44px; }
  .hero-cta .btn, .page-header-cta .btn { width: 100%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cta-cols { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .article-body { padding: 26px 18px; }
  .form-panel { padding: 24px 18px; }
  .header-cta .btn-sell { padding: 9px 14px; font-size: .78rem; }
  .sec-title { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a.card-wrap { transition: none; }
}

/* ---- ロゴ・メール画像(2026-07-04追加) ---- */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; flex: 0 0 auto; }
.brand-text { display: block; }
img.mail-img { display: inline-block; vertical-align: middle; }
