/* 新トップページ専用（2026-11-01 承認：design/comp_A_mobile.png）。トップ以外のページには読み込まない */
body.top {
  --bg: #fffdf4;
  --ink: #0b2f3a;
  --accent: #0b7a69;
  --cta: #f7c82b;
  --band: #f1f8f2;
  --card: #ffffff;
  --line: #e3ead8;
  --sub: #4a6a70;
  background: var(--bg);
  color: var(--ink);
}
body.top main { max-width: none; padding: 0; }
body.top .top-wrap { max-width: 560px; margin: 0 auto; padding: 0 20px; }
body.top section { padding: 26px 0; }
body.top .top-band { background: var(--band); }
body.top main a { color: var(--accent); }

body.top h1, body.top h2 { font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif; }
body.top h2 { font-size: 20px; text-align: center; margin-bottom: 16px; }
body.top h2::after { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--cta); margin: 7px auto 0; }
body.top p, body.top li { text-wrap: pretty; word-break: auto-phrase; }
body.top ul, body.top ol { list-style: none; margin: 0; padding: 0; }

/* 写真 */
body.top .top-photo {
  max-width: 358px; height: 190px; margin: 4px auto 0; border-radius: 20px;
  background: url(/assets/firstview.webp) 100% 38% / auto 640px no-repeat;
}
@media (max-width: 390px) { body.top .top-photo { margin: 4px 16px 0; max-width: none; } }
body.top .top-ai { text-align: center; font-size: 11px; color: var(--sub); margin: 6px 0 0; }

/* ファーストビュー */
body.top .top-hero { text-align: center; padding-top: 14px; padding-bottom: 28px; }
body.top .top-sub { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .04em; margin: 0; }
body.top h1 { font-size: 29px; line-height: 1.35; margin: 6px 0 8px; }
body.top h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--cta) 62%); }
body.top .top-hero > p { font-size: 14px; margin-bottom: 14px; }
body.top .top-badges { display: flex; gap: 6px; margin-bottom: 16px; }
body.top .top-badges li { flex: 1; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 4px; font-size: 12px; font-weight: 700; line-height: 1.35; }
body.top .top-badges b { display: block; font-size: 17px; color: var(--accent); }

/* ボタン */
body.top .top-cta {
  display: block; background: var(--cta); color: var(--ink); font-weight: 800; font-size: 17px;
  padding: 15px 10px; border-radius: 99px; text-align: center; text-decoration: none; box-shadow: 0 4px 0 rgba(0,0,0,.14);
}
body.top .top-cta:hover { filter: brightness(.97); }
body.top a:focus-visible, body.top summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
body.top .top-note { font-size: 11px; color: var(--sub); margin: 10px 0 0; text-align: center; text-wrap: balance; word-break: auto-phrase; }

/* 部品 */
body.top .top-worries li { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px; margin-bottom: 9px; font-size: 14px; font-weight: 600; }
body.top .top-num { background: var(--accent); color: #fff; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
body.top .top-num-l { width: 32px; height: 32px; font-size: 15px; }
body.top .top-box { display: block; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; font-size: 14px; margin-bottom: 9px; }
body.top .top-box b { display: block; color: var(--accent); font-size: 15px; }
body.top .top-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
body.top .top-chips li { background: var(--card); border: 1.5px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
body.top .top-small { font-size: 12px; color: var(--sub); }

/* 案件カード */
body.top .top-case { display: block; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; color: var(--ink); text-decoration: none; }
body.top .top-case b { display: block; font-size: 16px; }
body.top .top-tag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 2px 10px; margin-bottom: 6px; background: #dff3e4; color: #0b5a2a; }
body.top .top-reward { display: block; font-size: 20px; font-weight: 800; color: var(--accent); margin: 2px 0; line-height: 1.4; }
body.top .top-reward small { display: block; font-size: 12px; font-weight: 600; color: var(--sub); }
body.top .top-small.center, body.top .center { text-align: center; }
body.top .top-link { font-weight: 700; }

/* 3つのプラス */
body.top .top-area { display: block; border-radius: 14px; padding: 12px 14px; margin-bottom: 9px; font-size: 13.5px; }
body.top .top-area b { display: block; font-size: 16px; }
body.top .top-area.g { background: #dff3e4; color: #0b5a2a; }
body.top .top-area.bl { background: #dcebfa; color: #174a80; }
body.top .top-area.go { background: #fbe7a6; color: #5a4300; }

/* 参加の流れ */
body.top .top-steps li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
body.top .top-steps b { display: block; font-size: 15px; }
body.top .top-steps p { font-size: 13.5px; margin: 0; }

/* よくある質問 */
body.top .top-faq { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
body.top .top-faq summary { cursor: pointer; padding: 12px 14px; font-size: 14px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
body.top .top-faq summary::-webkit-details-marker { display: none; }
body.top .top-faq summary::after { content: "＋"; color: var(--accent); }
body.top .top-faq[open] summary::after { content: "－"; }
body.top .top-faq p { padding: 0 14px 12px; margin: 0; font-size: 13.5px; }

/* 最後のボタン */
body.top .top-final { background: var(--accent); color: #fff; text-align: center; padding: 28px 0 24px; }
body.top .top-final h2 { color: #fff; font-size: 19px; }
body.top .top-final .top-note { color: rgba(255,255,255,.9); line-height: 1.6; }
