/* ============================================
   Cocoon（スキン：メイド・イン・ヘブン）風のスタイル
   fx-research.site の配色に合わせています
   色を変えたいときは :root の値だけ変える
   ============================================ */
:root {
  --main: #40210f;        /* メインカラー（こげ茶）：サイト名・見出し */
  --main-soft: #e2dedb;   /* メインカラーの薄い色 */
  --key: #19448e;         /* リンクの色（紺） */
  --cta: #e8590c;         /* 申し込みボタンの色 */
  --cta-dark: #b8460a;
  --text: #333;
  --sub: #777;
  --line: #ccc;
  --line-soft: #e5e2dd;
  --body-bg: #f5f4f1;     /* ページの背景（ベージュ） */
  --card-bg: #fff;        /* 記事部分の背景 */
  --soft-bg: #f7f6f3;

  /* ボックスの色 */
  --info: #2e6fb5;  --info-bg: #eef5fc;
  --alert: #c0392b; --alert-bg: #fdf0ee;
  --memo: #9a7b0a;  --memo-bg: #fdf9e8;
  --good: #2a8a4a;  --good-bg: #ecf7ef;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--body-bg);
  font-family: "Meiryo", "メイリオ", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  word-wrap: break-word;
}

a { color: var(--key); }
a:hover { opacity: .8; }
img { max-width: 100%; height: auto; vertical-align: bottom; }

/* ---------- ヘッダー（ロゴ中央） ---------- */
.site-header {
  background: #fff;
  text-align: center;
  padding: 22px 16px;
  border-bottom: 4px solid var(--main);
}
.site-name {
  color: var(--main);
  font-weight: bold;
  font-size: clamp(22px, 4.5vw, 30px);
  line-height: 1.2;
  text-decoration: none;
}
.site-tagline { margin: 6px 0 0; font-size: 13px; color: var(--sub); }

/* ---------- 本文の枠（1カラム・狭め） ---------- */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}
article {
  background: var(--card-bg);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 30px clamp(16px, 4vw, 40px) 40px;
}

.pr-notice {
  font-size: 13px;
  color: var(--sub);
  margin: 0 0 8px;
}
.updated {
  font-size: 13px;
  color: var(--sub);
  margin: 0 0 20px;
}
.updated::before { content: "↻ "; }

/* ---------- 見出し ---------- */
h1 {
  font-size: clamp(22px, 3.6vw, 28px);
  line-height: 1.5;
  margin: 0 0 8px;
  color: var(--text);
}
article h2 {
  font-size: 22px;
  line-height: 1.5;
  margin: 72px 0 24px;
  padding: 14px 18px;
  background: var(--main);
  color: #fff;
  border-radius: 6px;
}
article h3 {
  font-size: 19px;
  line-height: 1.5;
  margin: 44px 0 16px;
  padding: 6px 0 6px 14px;
  border-left: 6px solid var(--main);
  border-bottom: 1px solid var(--line);
}
article h4 {
  font-size: 17px;
  margin: 32px 0 12px;
  padding: 6px 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}
article p { margin: 0 0 1.6em; }

/* 文字の装飾（Cocoonの「マーカー」「太字」など） */
.marker { background: linear-gradient(transparent 60%, #ffe89a 60%); font-weight: bold; }
.marker-red { background: linear-gradient(transparent 60%, #ffcfcf 60%); font-weight: bold; }
.marker-blue { background: linear-gradient(transparent 60%, #cfe5ff 60%); font-weight: bold; }
.red { color: var(--alert); font-weight: bold; }
.small { font-size: 13px; }

/* ---------- 目次（Cocoon風） ---------- */
.toc {
  display: table;
  margin: 32px auto;
  padding: 16px 28px 16px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  max-width: 100%;
}
.toc-title { margin: 0 0 6px; font-weight: bold; text-align: center; }
.toc ol { margin: 0; padding-left: 1.6em; }
.toc li { margin: 2px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
h2[id], h3[id] { scroll-margin-top: 16px; }

/* ---------- ボックス（Cocoonの「アイコンボックス」風） ---------- */
.box {
  position: relative;
  margin: 28px 0;
  padding: 16px 18px 16px 58px;
  border-radius: 8px;
  border: 2px solid;
}
.box::before {
  position: absolute;
  left: 16px;
  top: 14px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
}
.box > :last-child { margin-bottom: 0; }
.box-info  { border-color: var(--info);  background: var(--info-bg); }
.box-info::before  { content: "i"; background: var(--info); font-family: Georgia, serif; }
.box-alert { border-color: var(--alert); background: var(--alert-bg); }
.box-alert::before { content: "!"; background: var(--alert); }
.box-memo  { border-color: var(--memo);  background: var(--memo-bg); }
.box-memo::before  { content: "✎"; background: var(--memo); }
.box-good  { border-color: var(--good);  background: var(--good-bg); }
.box-good::before  { content: "✓"; background: var(--good); }

/* タイトル付きの枠（Cocoonの「見出しボックス」風） */
.tab-box {
  position: relative;
  margin: 40px 0 28px;
  padding: 22px 18px 16px;
  border: 2px solid var(--main);
  border-radius: 8px;
}
.tab-box-title {
  position: absolute;
  top: -15px;
  left: 14px;
  margin: 0;
  padding: 0 12px;
  background: var(--main);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 28px;
  border-radius: 4px;
}
.tab-box > :last-child { margin-bottom: 0; }

/* チェックリスト */
.check-list { list-style: none; padding: 0; margin: 0 0 1.6em; }
.check-list li { position: relative; padding-left: 1.8em; margin: 4px 0; }
.check-list li::before { content: "✓"; position: absolute; left: .2em; color: var(--good); font-weight: bold; }

/* ---------- 吹き出し（Cocoon風） ---------- */
.balloon { display: flex; gap: 14px; align-items: flex-start; margin: 28px 0; }
.balloon-icon { flex: none; width: 64px; text-align: center; font-size: 11px; color: var(--sub); line-height: 1.4; }
.balloon-icon img { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); object-fit: cover; background: var(--soft-bg); display: block; margin-bottom: 4px; }
.balloon-text {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.balloon-text > :last-child { margin-bottom: 0; }
.balloon-text::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -8px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.balloon.right { flex-direction: row-reverse; }
.balloon.right .balloon-text { background: var(--soft-bg); }
.balloon.right .balloon-text::before { left: auto; right: -8px; background: var(--soft-bg); border-left: 0; border-bottom: 0; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }

/* ---------- 結論ボックス ---------- */
.conclusion {
  margin: 32px 0;
  padding: 22px 18px 6px;
  border: 3px solid var(--main);
  border-radius: 10px;
}
.conclusion-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 16px;
  background: var(--main);
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  border-radius: 999px;
}
.conclusion-text { margin: 0 0 12px; }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fit-col { border-radius: 8px; padding: 12px 14px; }
.fit-col ul { margin: 0; padding-left: 1.2em; font-size: 15px; }
.fit-title { margin: 0 0 4px !important; font-weight: bold; }
.fit-yes { background: var(--good-bg); }
.fit-yes .fit-title { color: var(--good); }
.fit-no { background: #f3f3f3; }
.fit-no .fit-title { color: var(--sub); }
@media (max-width: 600px) { .fit { grid-template-columns: 1fr; } }

/* ---------- ボタン（マイクロコピー付き） ---------- */
.cta-micro {
  text-align: center;
  font-weight: bold;
  color: var(--cta);
  font-size: 15px;
  margin: 28px 0 -16px !important;
}
.cta {
  display: block;
  max-width: 440px;
  margin: 24px auto;
  padding: 16px 20px;
  background: var(--cta);
  color: #fff !important;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--cta-dark);
  transition: transform .1s, box-shadow .1s;
}
.cta::after { content: " ›"; }
.cta:hover { opacity: 1; transform: translateY(2px); box-shadow: 0 2px 0 var(--cta-dark); }

/* ---------- キャンペーンの表 ---------- */
.campaign {
  margin: 32px 0;
  padding: 18px;
  border: 2px dashed var(--cta);
  border-radius: 10px;
  background: #fffaf6;
}
.campaign-title { margin: 0 0 10px !important; font-weight: bold; color: var(--cta); }
.campaign table { width: 100%; border-collapse: collapse; font-size: 15px; }
.campaign th, .campaign td { border-bottom: 1px solid var(--line-soft); padding: 8px; text-align: left; vertical-align: top; }
.campaign th { width: 30%; white-space: nowrap; color: var(--sub); font-weight: normal; }

/* ---------- 表 ---------- */
.table-wrap { overflow-x: auto; margin-bottom: 8px; }
.spec, .compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td, .compare th, .compare td { border: 1px solid var(--line); padding: 8px 10px; }
.spec th { background: #eee; width: 35%; text-align: left; }
.compare { min-width: 520px; }
.compare th, .compare td { text-align: center; }
.compare thead th { background: var(--main); color: #fff; }
.compare thead th:nth-child(2) { background: var(--cta); }
.compare tbody th { background: #eee; white-space: nowrap; }
.compare tbody td:nth-child(2) { background: #fff7f0; font-weight: bold; }
.note { font-size: 13px; color: var(--sub); }

/* ---------- 良い評判・気になる評判 ---------- */
.pros-cons { list-style: none; padding: 0; margin: 0 0 1.6em; }
.pros-cons li { position: relative; padding: 10px 14px 10px 40px; border-radius: 8px; margin-bottom: 8px; }
.pros-cons li::before { position: absolute; left: 14px; font-weight: bold; }
.pros-cons .pro { background: var(--good-bg); }
.pros-cons .pro::before { content: "○"; color: var(--good); }
.pros-cons .con { background: var(--alert-bg); }
.pros-cons .con::before { content: "△"; color: var(--alert); }

/* ---------- 手順（Cocoonの「タイムライン」風） ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.6em; }
.steps li { position: relative; counter-increment: step; padding: 0 0 22px 52px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  line-height: 34px;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  font-weight: bold;
  text-align: center;
}
.steps li::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; background: var(--main-soft); }
.steps li:last-child::after { display: none; }

/* ---------- よくある質問 ---------- */
.faq { margin: 0 0 1.6em; }
.faq dt { position: relative; margin-top: 18px; padding: 10px 14px 10px 44px; background: var(--soft-bg); border-radius: 6px; font-weight: bold; }
.faq dd { position: relative; margin: 0; padding: 10px 14px 4px 44px; }
.faq dt::before, .faq dd::before { position: absolute; left: 14px; font-weight: bold; font-size: 18px; line-height: 1.6; }
.faq dt::before { content: "Q"; color: var(--main); }
.faq dd::before { content: "A"; color: var(--cta); }

/* ---------- リスクの注意書き ---------- */
.risk { margin: 48px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft-bg); font-size: 13px; color: #555; line-height: 1.7; }
.risk-title { margin: 0 0 4px !important; font-weight: bold; color: var(--text); }
.risk p { margin: 0; }

/* ---------- 運営者情報などの表 ---------- */
.info { width: 100%; border-collapse: collapse; }
.info th, .info td { border: 1px solid var(--line); padding: 10px; text-align: left; }
.info th { background: #eee; width: 30%; white-space: nowrap; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--main);
  color: #fff;
  text-align: center;
  padding: 28px 16px;
  font-size: 13px;
}
.site-footer a { color: #fff; }
.site-footer p { margin: 8px 0 0; opacity: .85; }

/* ---------- スマホで画面下に固定するボタン ---------- */
.sticky-cta { display: none; }
@media (max-width: 767px) {
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .95);
    border-top: 1px solid var(--line);
    z-index: 10;
  }
  .sticky-cta .cta { margin: 0 auto; padding: 12px 16px; box-shadow: none; }
  body.has-sticky-cta { padding-bottom: 76px; }
  .container { padding: 12px 8px 40px; }
  article { border-radius: 6px; }
  article h2 { font-size: 20px; padding: 12px 14px; }
  article h3 { font-size: 18px; }
}
