/* 無料レポート（A4・4ページ）の見た目
 *   パソコン …… 見本と同じ 1000px のページを、影をつけて縦に並べる
 *   スマホ ……… 同じ中身を、1列に並べ直す（横並びの表や枠を縦にする）
 *   印刷・PDF … A4・4ページ（1000px のページを A4 の幅 210mm に縮める＝ gen_free.py の PDF と同じ倍率 0.7937） */
.fr-doc{width:100vw;margin-left:calc(50% - 50vw);padding:8px 0 24px;background:#EDE6E1;
  color:#332A2D;font-family:"Noto Sans JP","Hiragino Sans","Yu Gothic",sans-serif;font-size:17px;line-height:1.85;-webkit-font-smoothing:antialiased}
.fr-doc h1,.fr-doc h2,.fr-doc h3{font-family:"Noto Serif JP","Hiragino Mincho ProN","Yu Mincho",serif;font-weight:700;margin:0;word-break:auto-phrase;text-wrap:wrap}
.fr-doc p{margin:0}
.fr-doc *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
.fr-pages{display:flex;flex-direction:column;align-items:center;gap:40px;padding:32px 0}
.fr-page{box-shadow:0 2px 18px rgba(51,42,45,.12)}

/* スマホ・小さい画面：1列に並べ直す */
@media screen and (max-width:1040px){
  .fr-pages{gap:14px;padding:12px 10px}
  .fr-page{width:100%!important;max-width:40rem;height:auto!important;padding:22px 16px 18px!important;gap:16px!important;border-radius:14px}
  .fr-head{flex-wrap:wrap;font-size:12px!important}
  .fr-head>span:nth-child(5){margin-left:8px!important}
  .fr-title{grid-template-columns:40px 1fr!important;column-gap:12px!important}
  .fr-title>span:first-child{width:40px!important;height:40px!important;font-size:20px!important}
  .fr-title h1{font-size:25px!important}
  .fr-title p{font-size:15.5px!important}
  .fr-meta{flex-wrap:wrap;gap:4px 20px!important}
  .fr-hero,.fr-c3,.fr-c2,.fr-conf,.fr-scene{grid-template-columns:1fr!important}
  .fr-hero{gap:14px!important}
  .fr-hname{font-size:40px!important}
  .fr-c4{grid-template-columns:1fr 1fr!important}
  .fr-scene>div:first-child{flex-direction:row!important;align-items:center;padding:4px 0}
  .fr-scene>div:first-child br{display:none}
  .fr-foot{margin-top:8px!important}
}

/* 印刷・PDF：レポートの4ページだけを、A4 で出す */
@media print{
  @page{size:A4;margin:0}
  html,body{background:#FBF7F3!important}
  body>*:not(.screen-print),.no-print{display:none!important}
  .screen,.wrap{max-width:none!important;padding:0!important;margin:0!important;min-height:0!important}
  .fr-doc{width:auto;margin:0;padding:0;background:none}
  .fr-pages{display:block;padding:0}
  .fr-page{zoom:.7937;box-shadow:none;margin:0}
  .fr-page:last-child{break-after:auto!important}
}

/* 結果の画面のいちばん上（画面だけ） */
.res-top{display:grid;gap:12px;padding-top:8px}
.res-top .eyebrow{font:500 var(--s-1)/1.5 var(--sans);color:var(--ink-2);letter-spacing:.08em}
.res-top .tname{font-size:clamp(2rem,8vw,2.5rem);line-height:1.3}
#rest .gate{margin-top:22px}
#rest .thanks{margin-top:22px}
