/* FLASH EV LP 見直し案 v3（2026-10-10 川上代表承認・推奨案）
   英字の背景見出し／緑の強調／大きなセリフ数字／FV数字4つ／本文中ボタン
   参照：Goldtrust 資産形成倶楽部LPのページ専用CSSの実測値
   r70 修正（19時台）：見出しの色を全体に合わせる・PC見出し拡大・中央寄せ補正・SP英字拡大・SP最低文字サイズ・FLASHとはを矢印の先の濃い背景に */

/* 見出しの色を全体（金茶 #917b53）に合わせる。テーマが span を濃灰にする規則より優先 */
html body.flash-product-page main.evm h2,html body.flash-product-page main.evm h2 span:not(.fl3-behind){color:#917b53!important}
/* 字間 .04em による行末の余白で見出しが左へ寄って見えるのを補正 */
html body.flash-product-page main.evm h2{padding-left:.04em}
@media (min-width:821px){html body.flash-product-page main.evm:not(.portal-legal) h2{font-size:48px!important;line-height:1.45!important}}

/* 英字の背景見出し（Cormorant Infant・金12〜14%） */
html body.flash-product-page main.evm .fl3-ttl{position:relative;text-align:center;padding-top:6px}
html body.flash-product-page main.evm .fl3-behind{position:absolute;left:0;right:0;top:-6px;z-index:0;font-family:"Cormorant Infant","Cormorant Garamond",Georgia,"Times New Roman",serif;font-size:108px;line-height:.9;font-weight:400;letter-spacing:0;text-transform:uppercase;color:rgba(167,144,103,.12)!important;white-space:nowrap;text-align:center;pointer-events:none;user-select:none;overflow:hidden}
html body.flash-product-page main.evm .fl3-ttl>h2,html body.flash-product-page main.evm .fl3-ttl>p{position:relative;z-index:1}
.evm .fl3-ttl .fl3-sub{display:block;font-size:19px;font-weight:700;color:var(--editorial-ink,#383838);margin-top:6px}
.evm .fl3-ttl .fl3-sub b{font-family:"Zen Old Mincho Portal","Zen Old Mincho","Yu Mincho",serif;color:#7a6642!important;font-size:1.3em;font-weight:700}
.evm .fl3-sub-note{display:block;font-size:14px;color:#5f5f5f;margin-top:2px;font-weight:400}
.evm .fl3-lead{max-width:760px;margin:0 auto 28px;text-align:center;font-size:16px;line-height:1.9}
#evm-four-features .fl3-ttl,#evm-four-features .fl3-ttl h2,#evm-four-features .evm-four-features__subtitle{text-align:center!important}

/* 緑の強調：本文は緑の文字だけ／箇条書きは緑の文字＋帯 */
.evm .fl3-em{color:#15763a!important;font-weight:700}
.evm .fl3-mark{color:#18833e!important;font-weight:700;background:linear-gradient(transparent 7.5%,#f1fce4 7.5%,#f1fce4 92.5%,transparent 92.5%)}

/* お悩みの矢印の先：FLASHとはを元の提案ブロックと同じ濃いめの背景（#ebe4d6）に */
html body.flash-product-page .evm #evm-basics.fl3-proposal-surface{background:var(--fmi-proposal-surface,#ebe4d6)!important}

/* 大きなセリフ数字（46px／SP 33px） */
.evm .fl3-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:980px;margin:0 auto 44px;padding:0;list-style:none}
.evm .fl3-steps>li{background:#fff;border:1px solid #d5c8b2;padding:18px 20px 20px;text-align:left}
.evm .fl3-num{display:block;font-family:"Cormorant Infant","Cormorant Garamond",Georgia,serif;color:#917b53;line-height:1;text-transform:uppercase}
.evm .fl3-num small{display:block;font-size:14px;letter-spacing:.08em;color:#75613e!important}
.evm .fl3-num b{display:block;font-size:46px;font-weight:400;margin-top:-2px;color:#917b53!important}
.evm .fl3-steps h3{font-family:"Zen Old Mincho Portal","Zen Old Mincho","Yu Mincho",serif;font-size:24px;margin:6px 0 6px;color:var(--editorial-ink,#383838)}
.evm .fl3-steps p{margin:0;font-size:16px;line-height:1.75}
#evm-tax .fmi-tax-grid>article>span,#evm-flow .fmi-timeline>li>span{font-family:"Cormorant Infant","Cormorant Garamond",Georgia,serif!important;font-size:46px!important;font-weight:400!important;line-height:1!important;color:#917b53!important;background:none!important;border:0!important;box-shadow:none!important;width:auto!important;height:auto!important;min-width:0!important;border-radius:0!important;display:block}
#evm-tax .fl3-check-title{font-family:"Zen Old Mincho Portal","Zen Old Mincho","Yu Mincho",serif;font-size:26px;text-align:center;margin:8px 0 18px;color:var(--editorial-ink,#383838)}

/* ファーストビューの数字4つ（PC 4列／SP 2列×2段）と実績表示 */
.evm .evm-terms.fl3-terms{grid-template-columns:repeat(4,1fr)}
.evm .evm-terms.fl3-terms>div{border-right:1px solid var(--evm-line,#d5c8b2)}
.evm .evm-terms.fl3-terms>div:last-child{border-right:0}
.evm .evm-terms.fl3-terms span{order:-1}
.evm .fl3-result{display:flex;justify-content:center;margin:16px auto 0;padding:0 16px}
.evm .fl3-result p{margin:0;border:1px solid #a79067;background:#fff;padding:6px 16px;font-family:"Zen Old Mincho Portal","Zen Old Mincho","Yu Mincho",serif;color:#5f4f33;font-size:15px;text-align:center;line-height:1.6}
.evm .fl3-result strong{font-size:22px;color:#7a6642;margin:0 2px}

/* 本文中の資料請求ボタン */
.evm .fl3-cta{display:flex;justify-content:center;padding:32px 0 0;margin:0}
.evm .fl3-cta .evm-button{min-width:min(420px,88vw);justify-content:center}
.evm #evm-case .fl3-case-note{margin:20px auto 0;text-align:center;font-size:14px;color:#5f5f5f}

/* 収益スキームへ統合した役割分担・精算（紺地用だった配色を白地へ） */
#evm-scheme .fl3-merged{margin-top:48px}
#evm-scheme .fl3-merged>h3{font-family:"Zen Old Mincho Portal","Zen Old Mincho","Yu Mincho",serif;font-size:26px;text-align:center;margin:0 0 20px;color:var(--editorial-ink,#383838)}
#evm-scheme .fmi-responsibilities article,#evm-scheme .fmi-settlement{background:#fff!important;border:1px solid #d5c8b2!important;color:var(--editorial-ink,#383838)!important}
#evm-scheme .fmi-responsibilities article *,#evm-scheme .fmi-settlement *{color:var(--editorial-ink,#383838)!important}
#evm-scheme .fmi-responsibilities article h4{font-family:"Zen Old Mincho Portal","Zen Old Mincho","Yu Mincho",serif;font-size:21px;margin:0 0 10px;color:#75613e!important}
#evm-scheme .fmi-settlement p b{color:#75613e!important}

/* PC も小さすぎる文字をなくす（ラベル・写真の説明 14px 以上） */
html body.flash-product-page main.evm .evm-terms.fl3-terms span,html body.flash-product-page main.evm .evm-terms.fl3-terms span b{font-size:14px!important}
html body.flash-product-page main.evm figcaption,html body.flash-product-page main.evm .evm-case__grid span{font-size:14px!important}

/* フォーム付近の注記 */
.evm .fl3-form-note{margin:10px 0 0;font-size:14px;line-height:1.7}

@media (max-width:820px){
  /* 英字の背景見出し：語の長さに合わせて画面幅いっぱいまで大きく（最大84px）、日本語見出しは下へずらして重なりを減らす */
  html body.flash-product-page main.evm .fl3-ttl{padding-top:calc(min(80px,(99.9vw - 40px) / (var(--fl3-len,8) * .74)) * .55)}
  html body.flash-product-page main.evm .fl3-behind{font-size:min(80px,calc((99.9vw - 40px) / (var(--fl3-len,8) * .74)));top:0;line-height:1;color:rgba(167,144,103,.14)!important}
  .evm .fl3-ttl .fl3-sub{font-size:17px}
  .evm .fl3-steps{grid-template-columns:1fr;gap:12px}
  .evm .fl3-num b{font-size:33px}
  #evm-tax .fmi-tax-grid>article>span,#evm-flow .fmi-timeline>li>span{font-size:33px!important}
  .evm .evm-terms.fl3-terms{grid-template-columns:1fr 1fr}
  .evm .evm-terms.fl3-terms>div{display:flex!important;grid-template-columns:none!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:2px!important;padding:12px 6px!important;min-height:0!important}
  .evm .evm-terms.fl3-terms>div:nth-child(2n){border-right:0}
  .evm .evm-terms.fl3-terms>div:nth-child(-n+2){border-bottom:1px solid var(--evm-line,#d5c8b2)}
  .evm .evm-terms.fl3-terms strong{font-size:24px;white-space:nowrap}
  .evm .fl3-cta{padding:24px 0 0}
  /* スマホの最低文字サイズ（老眼対策）：本文 16px 以上・ラベルと注記 14px 以上 */
  html body.flash-product-page main.evm .evm-terms.fl3-terms span,html body.flash-product-page main.evm .evm-terms.fl3-terms span b,html body.flash-product-page main.evm .evm-terms.fl3-terms strong small{font-size:14px!important}
  html body.flash-product-page main.evm .fl3-result p{font-size:14px!important}
  html body.flash-product-page main.evm a.evm-button,html body.flash-product-page main.evm .evm-button{font-size:16px!important}
  html body.flash-product-page main.evm figcaption{font-size:14px!important}
  html body.flash-product-page main.evm .evm-case__grid span{font-size:14px!important}
  html body.flash-product-page main.evm .evm-case__grid p,html body.flash-product-page main.evm .evm-faq p,html body.flash-product-page main.evm details p,html body.flash-product-page main.evm .fl3-steps p,html body.flash-product-page main.evm .evm-heading>p{font-size:16px!important;line-height:1.75}
  html body.flash-product-page main.evm .pi-required,html body.flash-product-page main.evm .pi-optional{font-size:14px!important}
}
/* r75 見出し中央寄せ（2026-10-11）：見出しの箱を中央に置く。FAQ の2列グリッドも1列にして中央へ */
html body.flash-product-page main.evm .fl3-ttl{display:block;margin-left:auto;margin-right:auto;text-align:center}
html body.flash-product-page main.evm .evm-faq__grid{grid-template-columns:minmax(0,57.5rem);justify-content:center;gap:1.75rem}
/* r76 スマホのヘッダー右ボタン（資料請求・ご相談）を14pxへ（2026-10-11 独立検証の指摘・全19ページ共通。文字の最小14pxにそろえる） */
@media(max-width:390px){html body.flash-product-page .fmi-header-cta{font-size:14px}}
/* r77 幅359px以下：ヘッダー右ボタン（資料請求・ご相談 →）を画面内へ（2026-10-11 川上代表「残り2点もすべて本番反映して」・全19ページ共通）
   文字は14pxのまま1行。左右の余白 12→10px・ボタンの内側の余白 10→8px・矢印との間隔 6→4px。
   それでも足りない分だけロゴを縮める（ロゴは残りの幅いっぱい・最大174px＝幅360px以上と同じ。ロゴとボタンの間隔8pxは保つ） */
@media(max-width:359px){
  html body.flash-product-page .fmi-site-header{padding-inline:10px;column-gap:8px}
  html body.flash-product-page .fmi-site-header .fmi-site-brand{flex:1 1 0;min-width:0;max-width:174px}
  html body.flash-product-page .fmi-site-header .fmi-site-brand .portal-wordmark{width:calc(4 * 25%)}
  html body.flash-product-page .fmi-site-header .fmi-header-cta{flex:none;padding-inline:8px;gap:4px}
}
/* r77 幅359px以下：本文の見出し h2（スマホ30px）。語句（.fmi-heading-phrase）の途中では改行しない作りのため、長い語句が見出しの幅に入らず、
   データ連携型自販機のページの「データ連携型自販機の」が幅320pxで画面の右へ7pxはみ出していた（r76 では右ボタンのはみ出しに隠れていた）。
   語句を途中で切らないよう、見出しの文字を画面の幅に合わせて少しだけ小さくする（幅358px以上は30pxのまま・幅340pxで約28.6px・幅320pxで約26.9px）。規約ページの条文見出しは対象外 */
@media(max-width:359px){
  html body.flash-product-page main.evm:not(.portal-legal) h2{font-size:min(30px,8.4vw)!important}
}
