/* Benchmate408 LP 専用の上書き（D-809）。styles.css（Adnalytics LPのコピー）の上に重ねる。
 * ここで足す・直すのは、Benchmate408の区画だけ。色・書体・余白の決まりは、styles.cssと同じ（紺 #0B1F3A・ミント #34D6B6）。 */

/* ---------- ブランド（記号の画像＋文字。記号は brand/logo-mark.webp。大きさは styles.css の .brand-mark と同じ） ---------- */
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-word { font-family: "Manrope", "Zen Kaku Gothic New", sans-serif; font-weight: 800; letter-spacing: .01em; }

/* ---------- ヒーロー（D-818。Adnalytics LPと同じ構成: 実画面を外側まで広げて右へはみ出し、大きいみるちゃんを画面に重ね、手書きの一言を添える） ---------- */
.bm-hero .hero-copy { max-width: none; }
.bm-kicker { margin: 0 0 14px; font-family: "Manrope", "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .04em; color: #34D6B6; }
.bm-hero h1 { margin-top: 0; }
.bm-sample { display: inline-block; padding: 3px 10px; border: 1px solid #94A3B8; border-radius: 999px; font-size: 12px; font-weight: 700; color: #44546A; letter-spacing: .06em; }
.bm-hero { --ws: clamp(520px, 50vw, 720px); --ch: clamp(260px, 21.5vw, 320px); }
.bm-hero .hero-visual { margin: 0; }
.bm-screen { position: absolute; display: block; margin: 0; max-width: none; user-select: none; }
.bm-screen .hero-screen { box-shadow: 0 18px 44px rgba(0, 0, 0, .32); }
.bm-hero-sample { position: absolute; top: 11px; right: 60px; z-index: 3; display: inline-block; padding: 2px 10px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.bm-miru { position: absolute; z-index: 2; display: block; max-width: none; width: auto; pointer-events: none; user-select: none; }
.bm-hero .hero-hand { position: absolute; z-index: 3; }

@media (min-width: 1101px) {
  .bm-hero .hero-visual { position: absolute; top: 0; bottom: 0; left: 48%; right: max(-100px, calc((100% - 100vw) / 2)); max-width: none; }
  .bm-screen-main { top: 100px; right: -40px; width: var(--ws); }
  .bm-screen-sub { bottom: 20px; right: 0; width: calc(var(--ws) * .6); z-index: 2; }
  .bm-miru { bottom: 24px; right: calc(var(--ws) - 40px - .86 * var(--ch)); height: var(--ch); }
  .bm-hero .hero-hand { right: 24px; top: 4px; font-size: clamp(21px, 1.8vw, 26px); }
}
@media (min-width: 1101px) and (max-width: 1399px) {
  .bm-hero { --ch: clamp(250px, 20vw, 280px); }
}

/* 画面幅 1100px 以下：文章の下に、絵をまとめて置く（上から 一言 → 画面 → 小さい画面 → 手前のみるちゃん） */
@media (max-width: 1100px) {
  .bm-hero .hero-visual { position: relative; width: 100%; max-width: 640px; height: 640px; margin: 8px auto 0; }
  .bm-hero .hero-hand { right: 4px; top: 8px; font-size: 24px; }
  .bm-screen-main { top: 78px; right: 0; width: calc(100% - 60px); }
  .bm-screen-sub { bottom: 14px; right: 0; width: 56%; z-index: 2; }
  .bm-miru { left: 0; bottom: 0; height: 230px; }
  .bm-hero-sample { top: 11px; right: 16px; }
}
@media (max-width: 720px) {
  .bm-hero .hero-visual { height: 440px; }
  .bm-hero .hero-hand { right: 2px; top: 4px; font-size: 19px; }
  .bm-screen-main { top: 66px; width: calc(100% - 24px); }
  .bm-screen-sub { bottom: 6px; width: 60%; }
  .bm-miru { left: -8px; height: 170px; }
  .bm-hero-sample { top: 3px; right: 8px; padding: 1px 7px; font-size: 10px; }
}

/* ---------- 数字の帯 ---------- */
.bm-facts { padding: 48px 24px; }
.bm-facts-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.bm-facts-grid li { padding: 4px 24px; border-left: 1px solid #D5DEE6; text-align: left; }
.bm-facts-grid li:first-child { border-left: 0; padding-left: 0; }
.bm-facts-grid b { display: block; font-family: "Manrope", "Zen Kaku Gothic New", sans-serif; font-size: 38px; line-height: 1.1; color: #0B1F3A; font-weight: 800; }
.bm-facts-grid b small { margin-left: 4px; font-size: 16px; font-weight: 700; }
.bm-facts-grid span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.6; color: #44546A; }
.bm-facts-grid sup a { color: inherit; text-decoration: none; }

/* ---------- 区画の共通 ---------- */
.bm-sec, .bm-honest { position: relative; padding: 96px 24px; }
.bm-sec .wrap, .bm-honest .wrap { max-width: 1120px; margin: 0 auto; position: relative; }
.bm-sec .sub, .bm-honest .sub { margin-top: 16px; }
.bm-cards { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.bm-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.bm-cards > li { padding: 28px 0 32px; border-top: 1px solid #D5DEE6; }
.bm-cards h3 { margin: 16px 0 8px; font-size: 20px; line-height: 1.5; }
.bm-cards p { margin: 0; font-size: 16px; line-height: 1.85; color: #44546A; }
.bm-cards a, .bm-example a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 課題提起（D-820。styles.cssの .problem 系を使い、解決の側に、回2の画像の一部を添える） ---------- */
.bm-problem .problem-head { max-width: 760px; }
.bm-problem .problem-head .sub { max-width: 560px; }
.bm-crop { position: relative; width: 100%; max-width: 440px; height: 150px; overflow: hidden; border: 1px solid #D5DEE6; border-radius: 6px; background: #fff; }
.bm-crop img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 0%); }
.bm-crop-tag { position: absolute; right: 8px; bottom: 8px; padding: 1px 9px; border: 1px solid #94A3B8; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: 11px; font-weight: 700; letter-spacing: .05em; color: #44546A; }
.bm-p-link { font-size: 14px; font-weight: 700; color: #fff; text-decoration: underline; text-decoration-color: #34D6B6; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.bm-p-link:hover { text-decoration-color: #fff; }
.bm-problem-note { margin: 28px 0 0; font-size: 14px; line-height: 1.8; color: #44546A; }
.bm-problem-note a { margin-left: 4px; font-weight: 700; color: #0B1F3A; text-decoration: underline; text-decoration-color: #34D6B6; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- 代理店 ---------- */
.bm-chara-agency { position: absolute; right: 0; top: -40px; width: auto; height: 120px; pointer-events: none; }

/* ---------- 料金 ---------- */
.bm-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.bm-plans .plan .rows { font-size: 15px; line-height: 1.7; }
.bm-chara-pricing { position: absolute; right: 0; top: 0; width: auto; height: 120px; pointer-events: none; }
.pricing .wrap { position: relative; }

/* ---------- 導入の流れ ---------- */
.bm-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; counter-reset: bm; }
.bm-steps > li { padding-top: 20px; border-top: 2px solid #0B1F3A; }
.bm-steps h3 { margin: 12px 0 8px; font-size: 18px; line-height: 1.5; }
.bm-steps p { margin: 0; font-size: 15px; line-height: 1.85; color: #44546A; }
.bm-steps .flow-day { margin: 0; }

/* ---------- 正直に書きます（紺の面） ---------- */
.bm-honest { background: #0B1F3A; color: #fff; }
.bm-honest .h2-lg, .bm-honest h2 { color: #fff; }
.bm-honest .sub { color: rgba(255, 255, 255, .82); }
.bm-honest-grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.bm-honest-grid li { padding: 24px 0 8px; border-top: 1px solid rgba(255, 255, 255, .28); }
.bm-honest-grid h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.55; color: #fff; }
.bm-honest-grid p { margin: 0; font-size: 16px; line-height: 1.9; color: rgba(255, 255, 255, .86); }
.bm-honest-grid .bm-example { margin-top: 12px; padding-left: 14px; border-left: 4px solid #34D6B6; color: #fff; }
.bm-honest-main { grid-column: 1 / -1; }
.bm-honest-main h3 { font-size: 22px; }
.bm-chara-honest { position: absolute; right: 0; top: -64px; width: auto; height: 120px; pointer-events: none; }

/* ---------- FAQ・安心（styles.cssの形をそのまま使う。幅だけ調整） ---------- */
.trust-grid { margin-top: 40px; }

/* ---------- 狭い画面 ---------- */
@media (max-width: 1100px) {
  .bm-cards-3 { grid-template-columns: 1fr; }
  .bm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (max-width: 720px) {
  .bm-facts { padding: 32px 16px; }
  .bm-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
  .bm-facts-grid li { padding: 0 12px; }
  .bm-facts-grid li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .bm-facts-grid b { font-size: 28px; }
  .bm-sec, .bm-honest { padding: 64px 16px; }
  .bm-cards, .bm-honest-grid, .bm-steps { grid-template-columns: 1fr; gap: 0; }
  .bm-honest-grid li { margin-bottom: 8px; }
  .bm-plans { grid-template-columns: 1fr; }
  .bm-chara-agency, .bm-chara-pricing, .bm-chara-honest { display: none; }
}

/* ---------- 料金（中央にそろえる） ---------- */
.pricing .bm-plans { margin-left: auto; margin-right: auto; }
.pricing .plan-add { max-width: 880px; margin-left: auto; margin-right: auto; text-align: center; }
.pricing .plan-tax { max-width: 880px; }

/* ---------- 画面の例（D-822。画像＋番号つきの囲み＋説明を、横に並べる。Adnalytics LPの機能の区画と同じ「説明の横に、部品の画像」。見るところに、番号の印を付ける） ---------- */
.bm-shots { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 88px; }
.bm-fig { margin: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.bm-fig-right { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.bm-fig-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.bm-fig-text { min-width: 0; }
.bm-agency { position: relative; }
.bm-fig-left .bm-fig-shot { order: -1; }
.bm-fig-narrow { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
.bm-fig-title { margin: 0; font-size: 22px; line-height: 1.5; }
.bm-fig-lead { margin: 12px 0 22px; font-size: 16px; line-height: 1.9; color: #44546A; }
.bm-points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.bm-points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.7; color: #12263F; }
.bm-pin { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #34D6B6; color: #0B1F3A; font-family: "Manrope", sans-serif; font-size: 14px; font-weight: 800; line-height: 1; box-shadow: 0 2px 6px rgba(11, 31, 58, .28); }
.bm-fig-shot { min-width: 0; }
.bm-annot { position: relative; width: 100%; aspect-ratio: var(--ar); }
.bm-annot-clip { position: absolute; inset: 0; overflow: hidden; border: 1px solid #D5DEE6; border-radius: 8px; background: #fff; box-shadow: 0 12px 32px rgba(12, 32, 60, .10); }
.bm-annot-clip img { position: absolute; left: 0; top: 0; display: block; width: 100%; height: auto; max-width: none; }
.bm-box { position: absolute; border: 3px solid #34D6B6; border-radius: 6px; background: rgba(52, 214, 182, .10); box-shadow: 0 0 0 2px rgba(255, 255, 255, .75); pointer-events: none; }
.bm-pin-on { position: absolute; z-index: 2; transform: translate(-88%, -88%); }
.bm-shots-note { margin: 0; font-size: 14px; line-height: 1.7; color: #44546A; }
.bm-shot-hint { display: none; }
@media (max-width: 860px) {
  .bm-shots { margin-top: 44px; gap: 56px; }
  .bm-fig, .bm-fig-right, .bm-fig-left, .bm-fig-narrow { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bm-fig-left .bm-fig-shot { order: 0; }
  /* 細かい文字が読めるように、画面は、横にスクロールして見る（ページ全体は、横に動かない） */
  .bm-fig-shot { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 14px 8px 14px 18px; }
  .bm-annot { min-width: 640px; }
  .bm-fig-narrow .bm-annot { min-width: 480px; }
}
@media (max-width: 720px) {
  .bm-shot-hint { display: inline; }
  .bm-fig-title { font-size: 20px; }
}

/* ---------- スクロールのフェード（D-831。reveal.js）: 画像の滑り込む向き。左に画像がある図は、左から ---------- */
.bm-fig-left .bm-fig-shot.rv-img { --rv-x: -24px; }
@media (max-width: 1100px) { .bm-fig-left .bm-fig-shot.rv-img { --rv-x: 0px; } }
.bm-cando-note { margin: 32px 0 0; }

/* D-843・D-845: ヘッダーの重なりの修正。ログインを隠す幅（459px以下）と、374px以下・339px以下でロゴとボタンを小さくする規則は、D-845で、**styles.css（Adnalyticsと共通）に移した**
 * （AdnalyticsのLPにも、同じ重なりがあったため）。ここに残すのは、Benchmate408だけに要るもの:
 *  ・Benchmate408のブランドの文字（Benchmate408）は、Adnalyticsより長く、**375〜379px**でも、ボタンがロゴに触れる（375pxで3px）ため、この幅も、styles.cssの374px以下の規則と同じ大きさにする。 */
@media (min-width: 375px) and (max-width: 379px) {
  .site-header .brand { gap: 7px; }
  .site-header .brand-word { font-size: 16px; }
  .site-header .brand-mark { height: 26px; }
  .site-header .header-actions { gap: 4px; }
  .site-header .btn-sm { padding: 0 12px; }
}
/* D-843: 公開したあと（デモのボタン・「できるか聞く」が出たとき）、幅1200〜1299pxで、ヘッダーのメニューが、右のボタンを押し出す（1200pxで4px）。メニューの間隔を詰める。 */
@media (min-width: 1200px) and (max-width: 1299px) { .global-nav { gap: 18px; margin-left: 12px; } }
