/* ご紹介キャンペーンのページ。形はエージェントのLP（style.css）と同じで、色だけオレンジ系に変えて見分けられるようにする */
.theme-campaign {
  --ink: #3a2c22;
  --text: #4b3d33;
  --muted: #6e5f54;
  --green: #b8521a;
  --green-dark: #9a4314;
  --leaf: #f0a04b;
  --blue: #a3481a;
  --sky: #fde3cf;
  --sky-pale: #fff3e8;
  --cream: #fdf8f1;
  --marker: #fde2b8;
  --line: #eee3d8;
  --soft: #fdebdc;
  --shadow: 0 12px 32px rgba(58, 44, 34, .08);
}
body.theme-campaign { background: var(--cream); }

/* 緑が直接書かれているところをオレンジ系に置き換える */
.theme-campaign .hero { background: linear-gradient(180deg, #fbd9bf 0%, #fde7d4 40%, #fff3e6 78%, #fdf6ea 100%); }
.theme-campaign .btn-primary { box-shadow: 0 10px 22px rgba(184, 82, 26, .28); }
.theme-campaign .icon-badge, .theme-campaign .tl-icon, .theme-campaign .faq-badge { background: var(--soft); }
.theme-campaign .timeline .now .tl-icon { background: var(--green); }
.theme-campaign .timeline::before { background: repeating-linear-gradient(90deg, var(--leaf) 0 12px, transparent 12px 20px); }
.theme-campaign .btn-outline:hover { background: var(--soft); }
.theme-campaign .faq-list details[open] { background: #fff1e4; }
.theme-campaign .faq-list summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10M12 7v10' fill='none' stroke='%23b8521a' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.theme-campaign .faq-list details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' fill='none' stroke='%23b8521a' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.theme-campaign .closing { background: linear-gradient(180deg, #fdf6ea 0%, #fde7d4 45%, #fbd9bf 100%); }
.theme-campaign .site-footer { background: #3a2c22; }
.theme-campaign .tstudy { background: var(--sky-pale); border-color: #f6dcc6; }
.theme-campaign .tstudy-icon .icon { color: var(--green); }

/* 最初の画面 */
.theme-campaign .hero h1 .mark { background: linear-gradient(transparent 64%, var(--marker) 64%); }
/* 紹介料の白い箱の左に貼る「総額300万円」の赤い丸 */
.fact-with-badge { position: relative; padding-left: 84px !important; }
.c-badge { position: absolute; z-index: 1; left: -58px; top: 50%; display: grid; place-content: center; width: 112px; height: 112px; margin-top: -56px; border-radius: 50%; background: #d63a2a; color: #ffe27a; text-align: center; line-height: 1.2; transform: rotate(-10deg); box-shadow: 0 8px 18px rgba(214, 58, 42, .3); outline: 2px dashed rgba(255, 226, 122, .55); outline-offset: -7px; }
.c-badge small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.c-badge strong { display: block; margin: 1px 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
/* キャンペーンの最初の画面の説明文（エージェントのLPより1px大きい） */
.theme-campaign .hero-lead { font-size: clamp(14px, 1.25vw, 16px); text-wrap: balance; word-break: auto-phrase; }
.fact-tax { align-self: flex-end; margin-left: -8px; padding-bottom: 4px; color: var(--muted); font-size: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }

/* 各欄の共通 */
.c-seminar, .c-methods, .c-conditions, .c-fee, .c-rules { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
/* 背景は生成りと白（上の角を丸める）を交互に並べる */
.c-seminar, .c-methods, .c-fee { background: var(--cream); }
.c-conditions, .c-rules { background: var(--white); border-radius: 56px 56px 0 0; }
.c-head { max-width: 760px; margin: 0 auto; text-align: center; }
.c-head .sec-ja { justify-content: center; }
.c-head h2 { margin: 16px 0 12px; color: var(--ink); font-size: clamp(24px, 2.8vw, 36px); line-height: 1.5; letter-spacing: .04em; }
.c-lead { margin: 0; font-size: 16px; line-height: 2; text-wrap: pretty; }
.c-head .c-lead { text-wrap: balance; word-break: auto-phrase; }
.c-note { margin: 28px auto 0; max-width: 960px; padding: 18px 24px; border-left: 4px solid var(--leaf); border-radius: 0 18px 18px 0; background: var(--white); color: var(--ink); font-size: 14.5px; line-height: 1.9; }
.c-cta { margin-top: 36px; text-align: center; }
.c-conditions .c-note { background: var(--cream); }

/* ご紹介パートナー説明会 */
.c-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; }
.c-fact { display: grid; justify-items: center; gap: 4px; padding: 26px 18px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow); text-align: center; }
.c-fact-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 8px; border-radius: 50%; background: var(--soft); }
.c-fact-icon .icon { width: 32px; height: 32px; }
.c-fact dt { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.c-fact dd { margin: 0; color: var(--ink); font-size: 18px; font-weight: 700; }
.c-seminar .tstudy { margin-top: 28px; }
.c-seminar .tstudy p { margin: 0; font-size: 14.5px; line-height: 1.9; }
.c-seminar .tstudy a { color: var(--green-dark); font-weight: 700; }
.c-how { background: var(--white); }

/* 紹介のしかた */
.c-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 44px 0 0; padding: 0; list-style: none; }
.c-card { position: relative; padding: 34px 26px 28px; border-radius: 26px; background: var(--white); box-shadow: var(--shadow); }
.c-num { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%; background: var(--green); color: var(--white); font-size: 22px; font-weight: 700; box-shadow: 0 6px 14px rgba(184, 82, 26, .25); }
.c-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 19px; letter-spacing: .04em; }
.c-card p { margin: 0; font-size: 14.5px; line-height: 1.9; text-align: justify; text-justify: inter-character; line-break: strict; }
.c-card code { display: block; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--cream); color: var(--green-dark); font-size: 12.5px; overflow-wrap: anywhere; }

/* 紹介が成立するとき */
.c-cond-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: stretch; margin-top: 40px; }
.c-cond { padding: 30px 28px; border-radius: 26px; background: var(--cream); }
.c-cond-tag { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 0 12px; border-radius: 12px; background: var(--soft); color: var(--green-dark); font-size: 18px; font-weight: 700; }
.c-cond h3 { margin: 0 0 8px; color: var(--ink); font-size: 19px; }
.c-cond > p:not(.c-cond-tag) { margin: 0; font-size: 15px; line-height: 1.9; }
.c-cond-or { align-self: center; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 700; }
.conditions { margin-top: 18px; padding: 16px 20px; border-radius: 18px; background: var(--white); color: var(--ink); font-size: 14px; }
.conditions strong { display: block; margin-bottom: 6px; font-size: 13.5px; }
.conditions ul { margin: 0; padding-left: 1.3em; line-height: 1.9; }
.conditions li::marker { color: var(--green); }

/* 紹介料について */
/* 左に5万円の箱、右に「対象」「お支払い」を1行ずつ2段で並べる */
.c-fee-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; margin: 40px 0 0; }
.c-fee-grid > div { display: grid; align-content: center; gap: 6px; padding: 26px 24px; border-radius: 26px; background: var(--white); box-shadow: var(--shadow); }
.c-fee-grid dt { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.c-fee-grid dd { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.8; }
.c-fee-main { grid-row: span 2; background: linear-gradient(135deg, #fde3cf, #fff3e6) !important; text-align: center; }
.c-fee-grid > .c-fee-item { display: flex; align-items: center; gap: 18px; padding: 24px 28px; }
/* 「対象」「お支払い」はキーカラーの箱に白い文字 */
.c-fee-grid .c-fee-item dt { flex: none; min-width: 6.4em; padding: 5px 10px; border-radius: 8px; background: var(--green); color: var(--white); text-align: center; }
.c-fee-item dd { font-size: 17px; }
.c-fee-num { display: block; color: var(--green); font-size: clamp(72px, 8vw, 108px); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.c-fee-num small { margin-left: 4px; color: var(--ink); font-size: .28em; letter-spacing: 0; }
.c-fee-sub { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.c-fee-item strong { color: var(--green-dark); }
.c-fee-aside { font-size: calc(1em - 1px); }
.c-lead.c-fee-note { max-width: 760px; margin: 26px auto 0; font-size: 14px; text-align: center; text-wrap: balance; word-break: auto-phrase; }

/* ご紹介の前に */
.c-rule-list { counter-reset: rule; display: grid; gap: 12px; max-width: 820px; margin: 36px auto 0; padding: 0; list-style: none; }
.c-rule-list li { counter-increment: rule; position: relative; padding: 18px 22px 18px 66px; border-radius: 18px; background: var(--cream); color: var(--ink); font-size: 15.5px; line-height: 1.8; }
.c-rule-list li::before { content: counter(rule); position: absolute; left: 18px; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--white); color: var(--green-dark); font-size: 15px; font-weight: 700; }
.c-terms { margin: 26px 0 0; text-align: center; font-size: 15px; }
.c-terms a { color: var(--green-dark); font-weight: 700; text-underline-offset: 3px; }
/* 「紹介が成立するとき」の欄の下に続ける「ご紹介の前に」の小見出し */
.c-subhead { margin: clamp(48px, 6vw, 72px) 0 0; color: var(--ink); font-size: clamp(19px, 2vw, 24px); letter-spacing: .04em; text-align: center; }
/* 参加の流れの欄の、リンクの注意とT勉強会の案内 */
.c-how .c-note { background: var(--cream); font-size: 12.5px; }
.c-how .tstudy { max-width: 960px; margin: 20px auto 0; align-items: center; }
.theme-campaign .faq { background: var(--cream); }
.theme-campaign .faq-list details { background: var(--white); }
.theme-campaign .c-how { border-radius: 56px 56px 0 0; }

/* 規約のページ */
.terms-main { padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); background: linear-gradient(180deg, #fde7d4 0, var(--cream) 320px) no-repeat, var(--cream); }
.terms-doc { max-width: 860px; margin: 0 auto; padding: clamp(28px, 5vw, 64px); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.terms-doc .eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .24em; }
.terms-doc h1 { margin: 0; color: var(--ink); font-size: clamp(24px, 3vw, 34px); line-height: 1.5; letter-spacing: .04em; word-break: keep-all; overflow-wrap: anywhere; }
.terms-doc .doc-no { display: inline-block; margin: 14px 0 22px; padding: 4px 14px; border-radius: 999px; background: var(--soft); color: var(--green-dark); font-size: 13px; font-weight: 700; }
.terms-doc h2 { display: flex; align-items: center; gap: 10px; margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 19px; letter-spacing: .04em; scroll-margin-top: 80px; }
.terms-doc h2::before { content: ""; width: 6px; height: 22px; flex: none; border-radius: 3px; background: var(--green); }
.terms-doc p, .terms-doc li { font-size: 15px; line-height: 2; }
.terms-doc ol, .terms-doc ul { padding-left: 1.5em; }
.terms-doc li { margin: 4px 0; }
.terms-doc li::marker { color: var(--green); font-weight: 700; }
.terms-doc .table-wrap { overflow-x: auto; margin: 14px 0; border-radius: 18px; border: 1px solid var(--line); }
.terms-doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.terms-doc th, .terms-doc td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.8; }
.terms-doc tr:last-child th, .terms-doc tr:last-child td { border-bottom: 0; }
.terms-doc th { width: 30%; background: var(--cream); color: var(--ink); font-weight: 700; }
.terms-doc h3 { margin: 28px 0 8px; color: var(--ink); font-size: 16px; }
.terms-doc tr:first-child th[scope="col"] { width: auto; white-space: nowrap; }
.terms-doc .conditions { margin: 14px 0; }
.theme-campaign .company { color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.terms-doc .signature { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); text-align: right; color: var(--ink); }
.terms-doc a { color: var(--green-dark); font-weight: 700; }

@media (max-width: 900px) {
  .c-facts, .c-cards { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .c-cond-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .c-cond-or { justify-self: center; }
  .c-fee-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .c-fee-main { grid-row: auto; }
  .theme-campaign .hero-facts { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .fact-with-badge { padding-left: 96px !important; }
  .c-badge { left: 8px; width: 80px; height: 80px; margin-top: -40px; outline-offset: -5px; }
  .c-badge small { font-size: 8.5px; letter-spacing: -.02em; }
  .c-badge strong { font-size: 15px; }
  .theme-campaign .hero-facts .fact-with-badge { gap: 8px; }
  .theme-campaign .hero-facts .fact-with-badge .fact-label { font-size: 11px; white-space: nowrap; }
  .theme-campaign .hero-facts .fact-with-badge .fact-label strong { font-size: 14px; }
  .theme-campaign .hero-facts .fact-with-badge .fact-fee { font-size: 32px; white-space: nowrap; }
  .theme-campaign .hero-facts .fact-with-badge .fact-fee small { font-size: 18px; }
  .theme-campaign .hero-facts .fact-with-badge .fact-tax { white-space: nowrap; font-size: 11px; }
  .c-methods, .c-fee { border-radius: 32px 32px 0 0; }
  .c-fee-grid > .c-fee-item { gap: 12px; padding: 16px 16px; }
  .c-fee-grid .c-fee-item dt { min-width: 5.6em; padding: 4px 8px; font-size: 12px; letter-spacing: .04em; }
  .c-lead.c-fee-note { font-size: 13px; }
  .c-how .c-note { font-size: 12px; }
  .c-fee-item dd { font-size: 14px; line-height: 1.6; }
  .c-lead { font-size: 15px; }
  .c-fact { grid-template-columns: auto 1fr; justify-items: start; column-gap: 14px; padding: 16px 18px; text-align: left; }
  .c-fact-icon { grid-row: 1 / span 2; width: 50px; height: 50px; margin: 0; }
  .c-fact dd { font-size: 16px; }
  .c-card { padding: 26px 20px 22px; }
  .c-cond { padding: 24px 20px; }
  .c-note { padding: 16px 18px; font-size: 14px; }
  .c-rule-list li { padding: 16px 16px 16px 58px; font-size: 14.5px; }
  .c-rule-list li::before { left: 14px; }
  .terms-doc { padding: 26px 18px; border-radius: 22px; }
  .terms-doc h2 { font-size: 17px; }
  .terms-doc p, .terms-doc li { font-size: 14.5px; }
  .terms-doc th { width: 34%; }
}
@media (max-width: 360px) {
  /* とても小さいスマホでは、紹介料の箱の中を2行（説明／5万円）にする */
  .theme-campaign .hero-facts .fact-with-badge { flex-wrap: wrap; row-gap: 0; padding-left: 86px !important; padding-right: 12px; }
  .theme-campaign .hero-facts .fact-with-badge .fact-label { flex-basis: 100%; }
  .c-badge { left: 6px; width: 72px; height: 72px; margin-top: -36px; }
  .c-badge small { font-size: 7.5px; }
  .c-badge strong { font-size: 13.5px; }
}
