/*
 * Factoring Flower 公開サイトの正式デザイン(2026-10-21 採用。もとは比較用の「案B」ペイトナー風)
 *
 * レイアウトが public.css の後に読み込み、色の変数と各部の見た目を上書きする。
 * 方針: 白とライトグレーの地に、黒の太い見出しとオレンジのアクセント。
 * 各セクションを中央の白いパネルにまとめ、カードは細い黒の枠線、ボタンは丸いピル型にする。
 */

/* ---------- 色・文字の置き換え(public.css の変数を上書き) ---------- */
.ff-design-b {
  --flower-burgundy: #1A1A1A;
  --flower-burgundy-dark: #000000;
  --flower-rose: #FF6E00;
  --flower-rose-soft: #FFB86A;
  --flower-pink: #FFE9D8;
  --flower-pink-light: #FFF9F2;
  --flower-cream: #FFFBF2;
  --flower-yellow: #FF6E00;
  --flower-yellow-dark: #E05F00;
  --flower-green: #00B048;
  --flower-text: #222222;
  --flower-text-muted: #666666;
  --flower-border: #E4E4E4;
  --ff-cream-warm: #F7F7F7;
  --ff-yellow-soft: #FFF4E8;
  /* Issue #206 で現行の配色がオレンジ・紫系に変わったため、紫系も黒・クリームに置き換える */
  --flower-purple: #1A1A1A;
  --flower-purple-deep: #1A1A1A;
  --flower-purple-dark: #000000;
  --flower-purple-light: #FFF9F2;
  --flower-heading: #1A1A1A;
  --ffb-orange: #FF6E00;
  --ffb-ink: #1A1A1A;
  --ffb-gray: #F7F7F7;
  --ffb-panel-max: 1000px;

  --ff-font: "Noto Sans JP", system-ui, "Hiragino Sans", "Yu Gothic", sans-serif;
  --ff-size-h2: clamp(26px, 3.2vw, 36px);
  --ff-size-h3: 20px;
  --ff-radius: 16px;
  --ff-shadow: none;

}
body.ff-site.ff-design-b { background: var(--ffb-gray); }

/* ---------- ボタン ---------- */
.ff-design-b .ff-btn { border-radius: 999px; font-weight: 700; letter-spacing: .04em; }
.ff-design-b .ff-btn--primary, .ff-design-b.ff-site a.ff-btn--primary { background: var(--ffb-orange); color: #fff; }
.ff-design-b .ff-btn--primary::after { content: "›"; margin-left: 10px; font-size: 1.2em; line-height: 1; }
.ff-design-b .ff-btn--secondary, .ff-design-b.ff-site a.ff-btn--secondary { background: #fff; color: var(--ffb-ink); border: 1.5px solid var(--ffb-ink); }
.ff-design-b .ff-btn--burgundy, .ff-design-b.ff-site a.ff-btn--burgundy { background: var(--ffb-ink); color: #fff; }

/* ---------- ヘッダー: 白地、黒のピル型ボタン ---------- */
.ff-design-b .ff-header { background: #fff; border-bottom: 0; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.ff-design-b .ff-header__links { gap: 28px; }
.ff-design-b.ff-site a.ff-header__link { font-size: 14px; letter-spacing: .12em; }
.ff-design-b.ff-site a.ff-header__link:hover { color: var(--ffb-orange); }
.ff-design-b .ff-header__cta, .ff-design-b.ff-site a.ff-header__cta { background: var(--ffb-ink); color: #fff; padding: 0 24px; }
.ff-design-b .ff-header__cta::after { content: none; }

/* ---------- ヒーロー(sections/_hero.html.erb) ---------- */
.ffb-hero {
  position: relative; overflow: hidden;
  padding: 48px 0 40px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F1F1 100%);
}
.ffb-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 24px;
}
.ffb-hero__tag {
  display: inline-block; margin: 0 0 14px; padding: 4px 14px;
  background: #8A8A8A; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .06em;
}
.ffb-hero__title {
  margin: 0; color: var(--ffb-ink);
  font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; line-height: 1.35; letter-spacing: .02em;
}

/* 料率上限を月桂樹のエンブレムで並べる */
.ffb-emblems { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.ffb-emblem {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 124px; height: 124px; padding: 0 14px; text-align: center; color: #6B5A2E; line-height: 1.15;
}
.ffb-emblem__laurel { position: absolute; inset: 0; width: 100%; height: 100%; color: #C9A646; }
.ffb-emblem__label { position: relative; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.ffb-emblem__value { position: relative; margin: 2px 0; font-size: 25px; font-weight: 900; color: #A07D1C; letter-spacing: -.01em; }
.ffb-emblem__sub { position: relative; max-width: 84px; font-size: 9px; font-weight: 700; line-height: 1.25; }

/* ボタンをまとめた白いカード */
.ffb-hero__panel {
  margin-top: 16px; max-width: 460px; padding: 24px;
  background: #fff; border-radius: 20px; box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}
.ffb-hero__lead { margin: 0 0 18px; font-size: 15px; line-height: 1.8; color: var(--flower-text); }
.ffb-hero__cta { display: flex; width: 100%; }
.ffb-hero__cta + .ffb-hero__cta { margin-top: 12px; }
.ffb-hero__card-note { margin: 14px 0 0; font-size: 12px; color: var(--flower-text-muted); line-height: 1.6; }

/* 女性のイラストはオレンジの淡い円の中に収め、下端を円で切る */
.ffb-hero__visual {
  position: relative; justify-self: center; width: min(100%, 520px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; background: #FFE9D8;
}
.ff-site .ffb-hero__illustration {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: block; width: 116%; max-width: none; height: auto;
}

.ffb-hero__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 32px 0 0; padding: 0; list-style: none; }
.ffb-hero__trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.ffb-check {
  position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ffb-orange);
}
.ffb-check::after {
  content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ffb-hero__note { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--flower-text-muted); }

@media (max-width: 899px) {
  .ffb-hero { padding: 28px 0 32px; background: linear-gradient(180deg, #FFFFFF 0%, #F3F3F3 100%); }
  .ffb-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .ffb-hero__text { text-align: center; }
  .ffb-emblems { justify-content: center; }
  .ffb-hero__panel { margin: 20px auto 0; text-align: left; }
  .ffb-hero__visual { width: min(72%, 280px); margin-top: 8px; }
}
@media (max-width: 479px) {
  .ffb-emblem { width: 100px; height: 100px; }
  .ffb-emblem__value { font-size: 21px; }
  .ffb-hero__trust { justify-content: flex-start; }
}

/* ---------- セクション: ライトグレーの地に白いパネル ---------- */
.ff-design-b .ff-section,
.ff-design-b .ff-section[class*="ff-section--"] { padding: 28px 0; background: transparent; color: var(--flower-text); }
.ff-design-b .ff-section > .ff-container {
  width: calc(100% - var(--ff-gutter) * 2); max-width: var(--ffb-panel-max);
  padding: 56px 48px; background: #fff; border-radius: 24px;
}
/* 交互にクリーム地の帯を敷く(ペイトナーの「選ばれる理由」まわりの配色) */
.ff-design-b .ff-section.ff-section--features,
.ff-design-b .ff-section.ff-section--cases,
.ff-design-b .ff-section.ff-section--pricing,
.ff-design-b .ff-section.ff-section--common-conditions { background: #FFF6EC; }
.ff-design-b .ff-scallop { display: none; }
.ff-design-b .ff-decoration, .ff-design-b [class*="ff-deco"] { display: none; }

.ff-design-b .ff-section__header { margin-bottom: 36px; }
.ff-design-b .ff-section__title { color: var(--ffb-ink); font-weight: 900; letter-spacing: .02em; }
.ff-design-b .ff-section__lead { font-size: 15px; color: var(--flower-text); }
.ff-design-b .ff-section__eyebrow,
.ff-design-b [class*="__eyebrow"] { color: var(--ffb-orange); font-weight: 700; letter-spacing: .08em; }

/* 濃い背景だったセクション(仕組み・シミュレーター・CTA)も白パネルの文字色にそろえる */
.ff-design-b .ff-section--about-service,
.ff-design-b .ff-section--about-service *,
.ff-design-b .ff-section--simulator .ff-section__title,
.ff-design-b .ff-section--simulator .ff-section__lead { color: inherit; }
.ff-design-b .ff-section--about-service .ff-section__title,
.ff-design-b .ff-section--simulator .ff-section__title { color: var(--ffb-ink); }

/* ---------- カード: 細い黒枠、影なし ---------- */
.ff-design-b .ff-card {
  background: #fff; border: 1.5px solid var(--ffb-ink); border-radius: 14px; box-shadow: none;
}
.ff-design-b .ff-card__title { color: var(--ffb-ink); font-weight: 900; }
.ff-design-b .ff-stat { border-color: var(--flower-border); background: var(--flower-pink-light); }
.ff-design-b .ff-stat__value { color: var(--ffb-orange); font-weight: 900; }
.ff-design-b .ff-badge { border-radius: 999px; }

/* 「選ばれる理由」風: 番号・アイコンの丸をオレンジに */
.ff-design-b .ff-point { border: 1.5px solid var(--ffb-ink); border-radius: 14px; }
.ff-design-b .ff-point__icon,
.ff-design-b .ff-point:nth-child(even) .ff-point__icon { background: var(--flower-pink); }

/* ---------- 料金プラン ---------- */
.ff-design-b .ff-plan { border: 1.5px solid var(--ffb-ink); }
.ff-design-b .ff-plan--recommended { border: 3px solid var(--ffb-orange); }
.ff-design-b .ff-plan__name { color: var(--ffb-ink); }

/* ---------- 比較表: 自社の列をオレンジで強調 ---------- */
.ff-design-b .ff-compare__table { border-color: var(--flower-border); box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.ff-design-b .ff-compare__table thead th { background: var(--ffb-ink); color: #fff; }
.ff-design-b .ff-compare__table thead th.ff-compare__ours { background: var(--ffb-orange); color: #fff; }
.ff-design-b .ff-compare__table td.ff-compare__ours { background: #fff; color: var(--ffb-orange); font-weight: 900; }

/* ---------- 流れ: 黒枠の箱と番号 ---------- */
.ff-design-b .ff-steps li,
.ff-design-b .ff-step { border-radius: 14px; }

/* ---------- CTA ---------- */
.ff-design-b .ff-cta { background: var(--flower-pink-light); color: var(--flower-text); border-radius: 20px; }
.ff-design-b .ff-cta * { color: inherit; }
.ff-design-b .ff-cta .ff-cta__title, .ff-design-b .ff-cta h2 { color: var(--ffb-ink); }
.ff-design-b .ff-cta .ff-btn--primary, .ff-design-b.ff-site .ff-cta a.ff-btn--primary { color: #fff; }

/* ---------- FAQ: Q をオレンジの丸に ---------- */
.ff-design-b .ff-faq__item { border-color: var(--flower-border); }
.ff-design-b .ff-faq__button { gap: 14px; font-weight: 700; }
.ff-design-b .ff-faq__button::before {
  content: "Q"; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--ffb-orange); color: #fff; font-weight: 900;
}
.ff-design-b .ff-faq__question { flex: 1; }
.ff-design-b .ff-faq__icon { background: var(--ffb-gray); }

/* ---------- 申込フォーム ---------- */
.ff-design-b .ff-input { border-radius: 8px; background: #FAFAFA; }
.ff-design-b .ff-choice input:checked + span { background: var(--ffb-orange); border-color: var(--ffb-orange); }

/* 申込フォームの左側: オレンジ一色の地に白文字 */
.ff-design-b .ff-estimate { border: 1.5px solid var(--ffb-ink); box-shadow: none; }
.ff-design-b .ff-estimate__intro { background: var(--ffb-orange); }
.ff-design-b .ff-estimate__intro .ff-section__eyebrow,
.ff-design-b .ff-estimate__intro .ff-estimate-phone__label { color: #fff; }

/* フッターは黒地(色の変数の置き換えで、現行のえんじ色が黒になる) */

@media (max-width: 767px) {
  .ff-design-b .ff-section { padding: 12px 0; }
  .ff-design-b .ff-section > .ff-container { width: calc(100% - 24px); padding: 36px 18px; border-radius: 18px; }
}

/* ---------- プライバシーポリシー(/privacy) ---------- */
.ff-design-b .ff-privacy__item, .ff-design-b .ff-privacy__contact { border: 1.5px solid var(--ffb-ink); border-radius: 14px; }
.ff-design-b .ff-privacy__number { color: var(--ffb-orange); }
.ff-design-b .ff-privacy__title { color: var(--ffb-ink); }
.ff-design-b .ff-privacy__back .ff-btn { background: var(--ffb-ink); }
