/* ===== 全体設定 ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', -apple-system, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: #313333;
  background: #f7f8f6;
}

a { color: #367d1c; }
a:hover { color: #2a6215; }

/* 画面には出さず、読み上げソフトにだけ伝える文字 */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 最上部のブランドカラーのライン */
.brandbar { height: 4px; background: #4c9d2f; }

/* 本文全体を包む白い紙のような枠 */
.doc {
  max-width: 720px; margin: 0 auto; background: #fff;
  border-left: 1px solid #ececec; border-right: 1px solid #ececec; min-height: 100vh;
}

/* ===== ロゴ帯 ===== */
.header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: clamp(20px, 5vw, 30px) clamp(22px, 6vw, 56px);
  border-bottom: 1px solid #eceeec;
}
.header img { height: 40px; width: auto; max-width: clamp(200px, 56vw, 246px); }
.header .tag { font-size: 12px; letter-spacing: .16em; color: #6e766e; font-weight: 500; white-space: nowrap; }

.body { padding: 0 clamp(22px, 6vw, 56px); }
.section { border-bottom: 1px solid #eceeec; }

/* ===== 1. 広告リンク切れのお知らせ ===== */
/* 本文の幅に収まるカード。青みのグレーで、補足枠（無彩色）と条件カード（緑）から見分ける */
.notice-card {
  margin: clamp(24px, 5vw, 32px) 0 0;
  padding: clamp(18px, 4.5vw, 28px);
  background: #eef1f4; border: 1px solid #d7dde3; border-radius: 16px;
}
.notice-card .head-row { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.notice-card .ico {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: #dbe0e5;
  display: inline-flex; align-items: center; justify-content: center;
}
/* ページで最も重要な一文なので、見出しの大きさも2番目に格上げする */
.notice-card .head-row strong { font-weight: 700; color: #262f38; font-size: clamp(19px, 5.2vw, 26px); line-height: 1.45; }
/* 狭い画面では「この広告リンクは／現在無効です」で改行させる */
.notice-card .nbh { display: inline-block; white-space: nowrap; }
.notice-card p { margin: 0 0 0 66px; font-size: 15px; line-height: 1.85; color: #4c565c; letter-spacing: .01em; text-wrap: pretty; }
/* 文の途中で不自然に改行させないためのまとまり */
.notice-card .nb { display: inline-block; white-space: nowrap; }

/* ===== 3. セルフバックのご案内 ===== */
.offer { padding: clamp(34px, 7vw, 52px) 0 clamp(30px, 6vw, 44px); }
.offer h2 { margin: 0 0 18px; font-size: clamp(22px, 5.4vw, 28px); line-height: 1.5; font-weight: 700; color: #1c211c; text-wrap: pretty; }
/* スマホでもお知らせ帯の本文(15px)を下回らないようにする */
.offer p { margin: 0; font-size: clamp(15px, 3.6vw, 16px); line-height: 2; color: #414b45; max-width: 44em; }
.offer strong { font-weight: 700; color: #2c6a20; }

/* ===== セルフバックとは＋STEP ===== */
.block { padding: clamp(34px, 7vw, 52px) 0 clamp(30px, 6vw, 44px); }
.block > h2 { margin: 0 0 8px; font-size: clamp(18px, 4.6vw, 22px); font-weight: 700; color: #1c211c; }
/* 説明文の下に細い区切り線を引き、手順（STEP）と切り分ける */
.block .lead {
  margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid #eceeec;
  font-size: 15px; line-height: 1.9; color: #55605a;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding: 0; }

/* STEP番号を緑の丸バッジにする。白文字が読めるようCTAのチェック丸と同じ濃さに揃える */
.steps .step {
  align-self: flex-start;
  display: inline-flex; align-items: center;
  background: #3a8226; color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  padding: 5px 14px; border-radius: 999px;
}

/* STEP 1 と STEP 2 のあいだに矢印を置く（PCは右向き） */
.steps li:first-child { position: relative; }
.steps li:first-child::after {
  content: '›';
  position: absolute; top: 50%; left: calc(100% + 14px);
  transform: translate(-50%, -50%);
  font-size: 30px; line-height: 1; color: #bcc7b5;
  pointer-events: none;
}
/* 図のキャプションなので本文より一段小さく */
.steps p { margin: 0; font-size: 14px; line-height: 1.7; color: #2f3a33; min-height: 3.4em; }
.step-img {
  display: block; width: 100%; height: auto; aspect-ratio: 460 / 300; object-fit: cover;
  border: 1px solid #e6e9e3; border-radius: 10px; background: #f4f6f2; margin-top: auto;
}

/* ===== 4. アフィリエイトとしての活用について ===== */
/* 補足情報：ニュートラルグレーの角丸ボックス（重要度は控えめ） */
.tip { margin-top: 28px; padding: 20px; background: #f2f2f2; border-radius: 12px; display: flex; gap: 20px; align-items: center; }
.tip .tip-text { flex: 1 1 auto; min-width: 0; }
.tip .tip-title { display: block; font-weight: 700; color: #2f3a2b; margin-bottom: 5px; font-size: 14px; }
.tip .tip-body { font-size: 14px; line-height: 1.85; color: #4a5648; }
.tip .tip-img {
  flex: 0 0 auto; width: 180px; height: auto; aspect-ratio: 460 / 300; object-fit: cover;
  border-radius: 8px; border: 1px solid #e3e3e3;
}

/* ===== 7. ご利用にあたって（登録の条件） ===== */
/* 登録の条件：緑のカード（登録前に必ず読む重要情報） */
.req-card { border: 1px solid #d9e7ce; background: #eef5e9; border-radius: 16px; padding: clamp(22px, 5vw, 28px); }
.req-card .req-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.req-card .req-head .bar { width: 4px; height: 20px; border-radius: 2px; background: #4c9d2f; }
.req-card h2 { margin: 0; font-size: clamp(17px, 4.4vw, 20px); font-weight: 700; color: #1c211c; }
.req-card .intro { margin: 0 0 16px; font-size: 14px; line-height: 1.8; color: #5a625b; }
.req-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.req-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.7; color: #46504a; }
.req-card li svg { flex: 0 0 auto; margin-top: 2px; }
.req-card .note { margin: 14px 0 0; font-size: 12px; line-height: 1.65; color: #666e66; }
.req-card .about-link {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-size: 13px; font-weight: 700; color: #367d1c;
  border: 1px solid #cfe0c4; background: #fff; border-radius: 999px; padding: 8px 16px;
}
.req-card .about-link:hover { background-color: #f2f8ee; border-color: #b7d3a8; }

/* 登録の条件とCTAをひとつのまとまりに見せる（区切り線なし・間隔も詰める） */
.req-section { border-bottom: none; padding-bottom: 0; }

/* ===== 8. CTA（行動を促すボタン） ===== */
.cta { padding: clamp(28px, 6vw, 40px) 0 clamp(40px, 8vw, 60px); text-align: center; }

/* ボタン上の要点。背景は持たせず、左端は条件カード内のテキスト（枠線1px＋内側余白）に揃える */
.cta .cta-points {
  list-style: none; margin: 0 0 14px;
  padding: 0 0 0 calc(clamp(22px, 5vw, 28px) + 1px);
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 20px;
  text-align: left;
}
.cta .cta-points li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: #2c6a20; letter-spacing: .02em;
}
/* チェックを丸で囲み、条件カードの素のチェックマークと見分けがつくようにする */
.cta .pt-mark {
  flex: 0 0 auto; width: 17px; height: 17px; border-radius: 50%;
  background: #3a8226; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
/* 下辺に濃い緑の面を敷き、押すと沈み込む立体ボタン */
.cta a.btn {
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 16px;
  text-decoration: none;
  background: linear-gradient(180deg, #55ab2f 0%, #4c9d2f 100%); color: #fff;
  padding: 17px 28px; border-radius: 14px;
  box-shadow: 0 6px 0 #2c6a20, 0 14px 22px -8px rgba(45,90,30,.28), inset 0 1px 0 rgba(255,255,255,.18);
  transition: background .15s ease, transform .1s ease, box-shadow .1s ease;
}
.cta a.btn:hover { background: linear-gradient(180deg, #5cb434 0%, #52a634 100%); }
.cta a.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #2c6a20, 0 6px 12px -4px rgba(45,90,30,.22), inset 0 1px 0 rgba(255,255,255,.18);
}
.cta .btn-text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
/* ボタン右端の「＞」。STEP間の矢印とは別に、線で描いたアイコンを使う */
.cta .btn-arrow {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.cta .btn-pre { font-size: 12px; font-weight: 500; opacity: .92; }
.cta .btn-main { font-size: clamp(17px, 4.6vw, 19px); font-weight: 700; letter-spacing: .02em; }
/* ボタンの影が下17pxまで届き、押すと4px沈むため、余裕をもって離す */
.cta .secure { margin: 32px 0 0; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6e766e; }

/* ===== フッター ===== */
.footer {
  padding: clamp(24px, 5vw, 32px) clamp(22px, 6vw, 56px);
  border-top: 1px solid #eceeec; background: #fafbfa;
}
/* 運営会社・個人情報保護方針のリンク。コピーライトより上に並べる */
.footer-links {
  list-style: none; margin: 0 0 14px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px;
}
.footer-links a {
  font-size: 12px; line-height: 1.6; color: #6e766e;
  letter-spacing: .02em; text-decoration: underline; text-underline-offset: 2px;
}
.footer-links a:hover { color: #2c6a20; }
.footer p { margin: 0; font-size: 12px; line-height: 1.6; color: #9aa39a; letter-spacing: .02em; text-align: center; }

/* ===== スマートフォン対応（スマホで見ても崩れないようにする設定） ===== */
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 30px; }

  /* 縦並びになるので矢印も下向きに回す */
  .steps li:first-child::after {
    top: calc(100% + 15px); left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .tip { flex-direction: column; align-items: stretch; gap: 14px; }
  .tip .tip-img { width: 100%; }

  /* 画面が狭いときは文節ごとの改行指定を解除し、行末まで文字を詰める */
  .notice-card .nb { display: inline; white-space: normal; }
  .notice-card p br { display: none; }
}

@media (max-width: 480px) {
  .notice-card p { margin-left: 0; }
}
