/* ==========================================================================
   みらい事業協同組合 — 案件固有CSS
   読み込み順: style.css（生成物）→ wordpress-adapter.css → このファイル
   style.css / wordpress-adapter.css は触らず、案件固有の差分はすべてここへ。
   元: mirai-recruit-bloom-mock-v1.html の「BLOOMモック初稿 上書き」ブロック
   ========================================================================== */

/* 見出しフォント */
.bloom-page h1,
.bloom-page h2,
.bloom-page h3 { font-family: "Zen Maru Gothic", var(--sans); }

/* --------------------------------------------------------------------------
   テキストロゴ（site_logo 未設定時。functions.php lp_brand_html()）
   -------------------------------------------------------------------------- */
.mirai-brand { gap: 10px; align-items: baseline; }
.mirai-brand b { font-family: "Zen Maru Gothic", var(--sans); font-size: 17px; letter-spacing: .06em; font-weight: 700; }
.mirai-brand span { font-size: 9px; letter-spacing: .22em; color: var(--b-accent); }
.mirai-brand.light span { color: #ffc79f; }
.bloom-header .header-entry { background: var(--b-accent); border-radius: 999px; }

/* --------------------------------------------------------------------------
   写真の仮置き（写真支給までの間だけ出る）
   adapter がヒーローにデモ写真を背景で敷いているので打ち消す（人物のデモ写真を出さない）
   -------------------------------------------------------------------------- */
.bloom-hero-photo { background-image: none; }

.bloom-hero-photo.mirai-ph-hero {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 14px, transparent 14px 28px),
    linear-gradient(150deg, #ffe6d4 0%, #e6f0fb 55%, #e3f4e5 100%) !important;
  display: grid;
  place-items: center;
}
.ph-label {
  display: grid; gap: 6px; text-align: center;
  padding: 16px 22px; border-radius: 20px;
  background: rgba(255,255,255,.82); color: #8a7a82;
  font-size: 12px; line-height: 1.7;
}
.ph-label b { color: var(--b-accent); font-size: 11px; letter-spacing: .2em; }
.bloom-orbs span.ph-petal { background: linear-gradient(150deg,#fff6e2,#ffe6d4) !important; display: grid; place-items: center; }
.ph-petal em,
.ph-circle em { font-style: normal; font-size: 10px; letter-spacing: .18em; font-weight: 800; color: #b9a3ad; text-align: center; line-height: 1.8; }
.bloom-steps-fields i > u.ph-circle {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.45) 0 12px, transparent 12px 24px),
    rgba(255,255,255,.55) !important;
}
.ph-circle em { font-size: 12px; letter-spacing: .08em; color: #9c8790; }

/* --------------------------------------------------------------------------
   ヒーロー（h1 は1行9文字まで）
   -------------------------------------------------------------------------- */
.bloom-hero h1 { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.3; }
.bloom-lede { line-height: 1.95; }
.mirai-tags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mirai-tags li { padding: 7px 16px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 800; color: var(--b-ink); box-shadow: 0 6px 16px rgba(35,54,76,.08); }
.mirai-tags li:nth-child(1) { background: #fff1e6; }
.mirai-tags li:nth-child(2) { background: #eef7ff; }
.mirai-tags li:nth-child(3) { background: #f0faef; }
.mirai-tags + .bloom-cta { margin-top: 28px; }

/* --------------------------------------------------------------------------
   仕事の流れ（STEPS）：見出しが長めなので一段小さく
   -------------------------------------------------------------------------- */
.bloom-steps-cuts h2 { font-size: clamp(28px, 3.5vw, 48px); }
.bloom-steps-cuts p { font-size: 14px; line-height: 2; }

/* --------------------------------------------------------------------------
   働きかた（定性カード）
   -------------------------------------------------------------------------- */
.mirai-workstyle .bloom-number-grid strong.jp { font-family: "Zen Maru Gothic", var(--sans); font-size: clamp(28px, 3.2vw, 44px); letter-spacing: .02em; }
.mirai-workstyle .bloom-number-grid li { display: grid; align-content: center; justify-items: center; min-height: 170px; }
.mirai-workstyle .bloom-number-grid li > strong + small { margin-top: -4px; }
.mirai-workstyle .bloom-number-grid p { font-weight: 700; }

/* --------------------------------------------------------------------------
   募集要項
   -------------------------------------------------------------------------- */
.bloom-page .job-info-list > div.wide { grid-column: 1 / -1; }
.bloom-page .job-info-list dd { line-height: 1.75; }
.job-info-actions a:last-child { color: var(--b-ink); }

/* client モードでは生成CSSが .job-info-actions > a:last-child を消すため、電話リンクだけ戻す */
[data-site-mode="client"] .job-info-actions > a.job-info-tel { display: inline-flex; align-items: center; }

/* --------------------------------------------------------------------------
   選考パネル：サポート（全幅）→ 仲間像／選考／Q&A の3列（HTMLの順は変えない）
   -------------------------------------------------------------------------- */
.hire-detail-bloom .hire-panel-growth { order: -1; }

/* --------------------------------------------------------------------------
   組合概要（template-parts/bloom/company.php）
   -------------------------------------------------------------------------- */
.mirai-company { padding: 90px 7vw; display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: 40px 6vw; background: #fafcfe; }
.mirai-company-head > p { color: var(--b-accent); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.mirai-company-head h2 { margin-top: 16px; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.35; }
.mirai-company-list { background: #fff; border-radius: 32px; padding: 14px 34px; box-shadow: 0 16px 36px rgba(35,54,76,.07); }
.mirai-company-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px dashed rgba(35,54,76,.18); }
.mirai-company-list > div:last-child { border-bottom: 0; }
.mirai-company-list dt { color: var(--b-accent); font-size: 12px; font-weight: 800; }
.mirai-company-list dd { font-size: 14px; font-weight: 700; line-height: 1.75; }
.mirai-company-list a { border-bottom: 1px solid rgba(35,54,76,.3); }

/* --------------------------------------------------------------------------
   応募フォーム見出し側
   -------------------------------------------------------------------------- */
.sample-entry-form small a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); }

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */
.mirai-footer p { opacity: .7; }
.pattern-footer-links { display: flex; gap: 22px; justify-content: flex-end; }

/* --------------------------------------------------------------------------
   グローバルナビ（PC: 横並び / 1050px以下: ハンバーガー）
   -------------------------------------------------------------------------- */
.bloom-header { gap: 22px; }
.mirai-gnav { margin-left: auto; display: flex; align-items: center; }
.mirai-gnav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.mirai-gnav-list a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .04em; white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}
.mirai-gnav-list a:hover,
.mirai-gnav-list a:focus-visible { background: #fff1e6; color: var(--b-accent); outline: none; }
.mirai-gnav-entry,
.mirai-gnav-close,
.mirai-menu-toggle { display: none; }

@media (max-width: 1050px) {
  /* backdrop-filter があると固定配置の子（メニューパネル）がヘッダー内に閉じ込められるため外す */
  .bloom-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(246,249,252,.98); gap: 10px; }
  .bloom-header .header-entry { margin-left: auto; }

  .mirai-menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    min-width: 44px; min-height: 44px; padding: 0 12px;
    border: 1px solid rgba(35,54,76,.18); border-radius: 999px;
    background: #fff; color: var(--b-ink); cursor: pointer;
    font: 800 10px/1 var(--condensed); letter-spacing: .14em;
    position: relative; z-index: 2;
  }
  .mirai-menu-bars { position: relative; width: 18px; height: 12px; display: block; }
  .mirai-menu-bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease-story), opacity .2s ease, top .3s var(--ease-story); }
  .mirai-menu-bars i:nth-child(1) { top: 0; }
  .mirai-menu-bars i:nth-child(2) { top: 5px; }
  .mirai-menu-bars i:nth-child(3) { top: 10px; }
  .mirai-menu-toggle[aria-expanded="true"] { background: var(--b-accent); border-color: var(--b-accent); color: #fff; }
  .mirai-menu-toggle[aria-expanded="true"] .mirai-menu-bars i:nth-child(1) { top: 5px; transform: rotate(45deg); }
  .mirai-menu-toggle[aria-expanded="true"] .mirai-menu-bars i:nth-child(2) { opacity: 0; }
  .mirai-menu-toggle[aria-expanded="true"] .mirai-menu-bars i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

  /* パネルはヘッダーの「下」から開く。ヘッダー（×ボタン）は常に見えたまま */
  .mirai-gnav {
    position: fixed; z-index: 1; left: 0; right: 0;
    top: var(--fixed-header-h); bottom: 0;
    margin: 0; padding: 22px 6vw calc(28px + env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column; align-items: stretch; gap: 18px;
    background: var(--b-bg);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, visibility .25s ease, transform .3s var(--ease-story);
  }
  .mirai-gnav.is-open { opacity: 1; visibility: visible; transform: none; }
  .mirai-gnav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .mirai-gnav-list li { border-bottom: 1px dashed rgba(35,54,76,.18); }
  .mirai-gnav-list a { display: flex; justify-content: space-between; min-height: 56px; padding: 0 6px; border-radius: 0; font-size: 16px; }
  .mirai-gnav-list a::after { content: "→"; color: var(--b-accent); }
  .mirai-gnav-entry {
    display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 56px;
    border-radius: 999px; background: var(--b-accent); color: #fff; font-weight: 800; font-size: 15px;
    box-shadow: 0 14px 30px rgba(214,95,23,.28);
  }
  .mirai-gnav-close {
    display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px;
    border: 1px solid rgba(35,54,76,.25); border-radius: 999px; background: #fff;
    color: var(--b-ink); font: 800 14px var(--sans); cursor: pointer;
  }
  .mirai-gnav-close span { font-size: 18px; line-height: 1; }
  html.is-menu-open,
  html.is-menu-open body { overflow: hidden; }
  /* メニューを開いている間は追随ボタン類を隠す */
  html.is-menu-open .social-dock,
  html.is-menu-open .mirai-pagetop { opacity: 0 !important; pointer-events: none !important; }
}

@media (max-width: 420px) {
  .bloom-header .header-entry { padding: 10px 12px; }
  .mirai-menu-label { display: none; }
  .mirai-menu-toggle { padding: 0; justify-content: center; width: 44px; }
}

/* --------------------------------------------------------------------------
   追随ボタン（ページトップ / SNS）と reCAPTCHA v3 バッジの住み分け
   バッジは右下固定（bottom:14px・高さ60px）。重ならないよう、その上に積む。
   バッジがあるときだけ持ち上げる（:has 非対応ブラウザでも常に上げた位置で破綻しない値）。
   -------------------------------------------------------------------------- */
:root { --float-base: 24px; }
html:has(.grecaptcha-badge) { --float-base: 88px; }

.mirai-pagetop {
  position: fixed; z-index: 70;
  right: 18px; bottom: calc(var(--float-base) + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; align-content: center; gap: 0;
  background: #fff; color: var(--b-accent);
  border: 1px solid rgba(214,95,23,.35);
  box-shadow: 0 10px 26px rgba(35,54,76,.16);
  font-weight: 800; line-height: 1;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--ease-story), background .25s ease, color .25s ease;
}
.mirai-pagetop span { font-size: 17px; }
.mirai-pagetop small { font: 800 9px/1.2 var(--condensed); letter-spacing: .12em; }
.mirai-pagetop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.mirai-pagetop:hover,
.mirai-pagetop:focus-visible { background: var(--b-accent); color: #fff; outline: none; }

/* フッター右端のリンクが追随ボタンの下に隠れないよう、右側を空ける（PC・タブレット） */
@media (min-width: 761px) {
  .pattern-footer { padding-right: calc(4vw + 150px); }
}

/* SNSドックはページトップの上へ */
.social-dock { bottom: calc(var(--float-base) + 64px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 760px) {
  .mirai-pagetop { right: 14px; width: 48px; height: 48px; }
  .social-dock { right: 14px; bottom: calc(var(--float-base) + 58px + env(safe-area-inset-bottom, 0px)); }
  /* フッター最下部の文字が追随ボタン・バッジに隠れないよう余白を確保 */
  .pattern-footer { padding-bottom: calc(var(--float-base) + 64px + env(safe-area-inset-bottom, 0px)); }
  /* 組合概要もラベルを上に積む（所在地が語中で折れないように） */
  .mirai-company-list > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mirai-pagetop { transition: none; }
}

/* --------------------------------------------------------------------------
   文字組み：段落の最終行に1〜2文字だけ残る「段落ち」・語の途中の改行を抑える
   word-break: auto-phrase … 日本語を文節で折り返す（Chrome/Edge 119+。他ブラウザは通常の折返し）
   短文（2〜3行）は balance で行の長さを揃え、長文は pretty で最終行の孤立を防ぐ
   -------------------------------------------------------------------------- */
.bloom-page p,
.bloom-page dd,
.bloom-page li span,
.faq-answer span { text-wrap: pretty; line-break: strict; word-break: auto-phrase; }
.bloom-page h1, .bloom-page h2, .bloom-page h3,
.hire-detail li span,
.faq-question span,
.bloom-number-grid p,
.job-info-heading small,
.mirai-company-list dd { word-break: auto-phrase; text-wrap: balance; }
.hire-detail h3 .u,
.hire-detail li span .u { display: inline-block; }

/* 住所など、塊で折り返したい語（company.php / job-info の <br> 区切り） */
.nowrap-unit { display: inline-block; }

/* 募集要項：ラベルを上・内容を下に積み、内容の横幅を確保（住所・勤務時間が語中で折れないように） */
.bloom-page .job-info-list > div {
  grid-template-columns: 1fr;
  gap: 4px;
  align-content: center;
  padding: 16px 22px;
}
.bloom-page .job-info-list dt { font-size: 11px; letter-spacing: .06em; }
.bloom-page .job-info-list dd { font-size: 14px; }

/* ヒーローの配置は末尾「デザインの差別化」ブロックで定義（コピー左・写真右） */

/* 応募フォーム見出し：「はじめの一歩は、」を1行に収める */
.sample-entry-form h3 { font-size: clamp(34px, 3.4vw, 52px); }

/* SMF 進捗表示の文字（暗い背景で読めなかった） */
.sample-entry-form .smf-progress-tracker__item__text { color: rgba(255,255,255,.82); }

/* ヘッダーのテキストロゴを縦中央に */
.mirai-brand { align-items: center; align-self: center; }

/* スマホでは長文を左揃えに（中央揃えのままだと行頭が揃わず読みにくい） */
@media (max-width: 760px) {
  .bloom-numbers h2 { text-align: center; }
  .bloom-number-grid p { text-align: center; }
  .bloom-steps-cuts p,
  .bloom-lede,
  .job-info-heading small,
  .hire-detail li span,
  .faq-answer span,
  .sample-entry-form small { text-align: left; }
}

/* 3列パネルの見出しを少し詰め、語の途中で折れないように */
.hire-detail-bloom h3 { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.4; }

/* --------------------------------------------------------------------------
   レスポンシブ
   -------------------------------------------------------------------------- */
@media (max-width: 1050px) {
  .bloom-number-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .mirai-brand b { font-size: 15px; }
  /* ヒーローの幅別レイアウトは末尾「ヒーロー：幅ごとの崩れ対策」に集約 */
  .bloom-lede br { display: none; }
  .mirai-company { padding: 70px 23px; grid-template-columns: 1fr; }
  .mirai-company-list { padding: 8px 22px; border-radius: 24px; }
  .pattern-footer-links { justify-content: flex-start; }
  .bloom-steps-cuts h2 { font-size: 28px; }
  .signature-bloom ol { flex-wrap: wrap !important; }
  .signature-bloom li { flex: 1 1 calc(50% - 10px) !important; }
}

/* reduced-motion時：ピン留めSTEPSを縦積みへ（テンプレの重なり対策） */
@media (prefers-reduced-motion: reduce) {
  .bloom-steps-stage { display: block; }
  .bloom-steps-fields { display: none; }
  .bloom-steps-cuts { position: static; display: grid; gap: 26px; justify-items: center; padding: 90px 7vw; background: linear-gradient(160deg,#fff1e6,#ecf5ff 55%,#f0fbef); }
  .bloom-steps-cuts article { grid-area: auto; width: min(760px,100%); }
  .bloom-steps-dots { display: none; }
}

/* ==========================================================================
   配色：空×朝日（2026-12-01 決定）
   BLOOM標準のピンク系 → 業種（外国人材支援・就労支援）に合わせた
   「信頼のネイビー・空色」＋「みらい＝朝日のオレンジ」。
   style.css（生成物）の固定色はここで上書きする。値を変えるときは下の変数から。
   ========================================================================== */
.bloom-page {
  --b-bg: #f6f9fc;      /* 地色：うすい空 */
  --b-ink: #23364c;     /* 文字：ネイビー */
  --b-pink: #ffd2b3;    /* 色面1：朝日（ピーチ） ※変数名はテンプレのまま */
  --b-sky: #bcdcf3;     /* 色面2：空 */
  --b-mint: #cfeedd;    /* 色面3：若葉 */
  --b-sun: #ffe6a6;     /* 色面4：陽だまり */
  --b-accent: #d65f17;  /* アクセント・CTA：朝日のオレンジ（白文字とのコントラスト約3.8:1） */
  --m-tint-1: #fff1e6;
  --m-tint-2: #e9f4fd;
  --m-tint-3: #ecf8f1;
  --m-tint-4: #fff7df;
  --m-muted: #5d6b7b;
  --m-dark: #21344a;
  --m-shadow: 35, 54, 76;
  --m-accent-rgb: 214, 95, 23;
}

/* ヘッダー・ヒーロー */
.bloom-header { background: rgba(246,249,252,.92); }
.bloom-orbs .o1 { background: radial-gradient(circle at 34% 30%, #ffe9d9, var(--b-pink)); }
.bloom-orbs .o2 { background: radial-gradient(circle at 34% 30%, #eef7ff, var(--b-sky)); }
.bloom-orbs .o3 { background: radial-gradient(circle at 34% 30%, #f0fbf4, var(--b-mint)); }
.bloom-eyebrow { box-shadow: 0 6px 18px rgba(var(--m-accent-rgb), .14); }
.bloom-lede { color: var(--m-muted); }
.bloom-cta { box-shadow: 0 14px 30px rgba(var(--m-accent-rgb), .3); }
.bloom-cta:hover,
.bloom-cta:focus-visible { box-shadow: 0 22px 44px rgba(var(--m-accent-rgb), .36); }
.bloom-marquee { color: #c5d3e0; }
.mirai-tags li:nth-child(1) { background: var(--m-tint-1); }
.mirai-tags li:nth-child(2) { background: var(--m-tint-2); }
.mirai-tags li:nth-child(3) { background: var(--m-tint-3); }

/* 仕事の流れ */
.bloom-steps-fields .f1 { background: linear-gradient(160deg, var(--m-tint-1), var(--b-pink)); }
.bloom-steps-fields .f2 { background: linear-gradient(160deg, var(--m-tint-2), var(--b-sky)); }
.bloom-steps-fields .f3 { background: linear-gradient(160deg, var(--m-tint-3), var(--b-mint)); }
.bloom-steps-cuts article { box-shadow: 0 24px 60px rgba(var(--m-shadow), .12); }
.bloom-steps-cuts p { color: var(--m-muted); }
@media (max-width: 720px) {
  .bloom-steps-cuts article:nth-child(1) { background: linear-gradient(160deg, var(--m-tint-1), #ffe0c9); }
  .bloom-steps-cuts article:nth-child(2) { background: linear-gradient(160deg, var(--m-tint-2), #d4e7f8); }
  .bloom-steps-cuts article:nth-child(3) { background: linear-gradient(160deg, var(--m-tint-3), #d8f0e2); }
}
@media (prefers-reduced-motion: reduce) {
  .bloom-steps-cuts { background: linear-gradient(160deg, var(--m-tint-1), var(--m-tint-2) 55%, var(--m-tint-3)); }
}

/* 働きかた */
.bloom-number-grid li { box-shadow: 0 14px 34px rgba(var(--m-shadow), .08); }
.bloom-number-grid li:nth-child(1) { background: linear-gradient(170deg, #fff, var(--m-tint-1)); }
.bloom-number-grid li:nth-child(2) { background: linear-gradient(170deg, #fff, var(--m-tint-2)); }
.bloom-number-grid li:nth-child(3) { background: linear-gradient(170deg, #fff, var(--m-tint-3)); }
.bloom-number-grid li:nth-child(4) { background: linear-gradient(170deg, #fff, var(--m-tint-4)); }
.bloom-number-grid p { color: var(--m-muted); }

/* 募集要項 */
.bloom-page .job-info-section {
  background:
    radial-gradient(circle at 4% 12%, rgba(255,210,179,.5) 0 9%, transparent 9.5%),
    radial-gradient(circle at 94% 86%, rgba(188,220,243,.55) 0 11%, transparent 11.5%),
    #fff;
}
.bloom-page .job-info-section::after { color: rgba(var(--m-shadow), .04); }
.bloom-page .job-info-list > div { box-shadow: 0 10px 26px rgba(var(--m-shadow), .06); }
.bloom-page .job-info-list > div:nth-child(3n+1) { background: var(--m-tint-1); }
.bloom-page .job-info-list > div:nth-child(3n+2) { background: var(--m-tint-2); }
.bloom-page .job-info-list > div:nth-child(3n+3) { background: var(--m-tint-3); }
.bloom-page .job-info-actions a:first-child { box-shadow: 0 14px 28px rgba(var(--m-accent-rgb), .22); }
.signature-bloom li { background: var(--m-tint-1); }
.signature-bloom li:nth-child(2) { background: var(--m-tint-2); }
.signature-bloom li:nth-child(3) { background: var(--m-tint-4); }
.signature-bloom li:nth-child(4) { background: var(--m-tint-3); }

/* 選考パネル */
.bloom-page .hire-detail article { box-shadow: 0 16px 36px rgba(var(--m-shadow), .07); }
.bloom-page .hire-detail article:nth-child(1) { background: var(--m-tint-1); }
.bloom-page .hire-detail article:nth-child(2) { background: var(--m-tint-2); }
.bloom-page .hire-detail article:nth-child(3) { background: var(--m-tint-3); }
.bloom-page .hire-detail article:nth-child(4) { background: var(--m-tint-4); }
.bloom-page .faq-list,
.bloom-page .faq-item,
.bloom-page .hire-detail details { border-color: rgba(var(--m-shadow), .15); }

/* 応募フォーム */
.bloom-page .sample-entry-form {
  background:
    radial-gradient(circle at 8% 20%, rgba(255,210,179,.18), transparent 26%),
    radial-gradient(circle at 92% 90%, rgba(188,220,243,.14), transparent 30%),
    var(--m-dark);
}

/* SNSドック・ポリシー・404 */
.bloom-page .social-dock-item { box-shadow: 0 14px 32px rgba(var(--m-shadow), .2); }
.bloom-page .privacy-item h2 span,
.bloom-page .privacy-back,
.bloom-page .lp-404 strong { color: var(--b-accent); }
.bloom-page .privacy-contact { border-left-color: var(--b-accent); }
/* ヘッダー下の進捗ライン：テンプレのPEEES 3色 → 空から朝日へのグラデーション */
.bloom-header::after { background: linear-gradient(90deg, var(--b-sky), var(--b-accent)); }
/* ==========================================================================
   デザインの差別化（2026-12-01）
   テンプレ（写真左・パステルの泡・SEED/BUD/BLOOM）から離すための調整。
   1. ヒーロー：コピー左・写真右、アーチ型の写真枠、背後に「朝日」の円、ドット地紋
   2. セクションのキッカーを共通の型（オレンジの短い線＋ラベル）に
   3. 働きかたカードにアイコン
   4. 組合概要に「つなぐ」図
   ========================================================================== */

/* ---------- 1. ヒーロー ----------
   形・配置はBLOOMのまま（写真左・不定形の枠・浮かぶ丸写真）。
   うすいドット地紋だけ足す。PCで写真が見出しの頭にかからないよう、写真の右端だけ詰める。 */
.bloom-hero {
  background-image: radial-gradient(rgba(var(--m-shadow), .07) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
}
/* 幅別の配置は末尾「ヒーロー：幅ごとの崩れ対策」 */
/* ---------- 2. セクションのキッカー ---------- */
.mirai-kicker,
.job-info-heading > p,
.mirai-company-head > p,
.sample-entry-form > div > p {
  display: inline-flex; align-items: center; gap: 10px;
}
.mirai-kicker::before,
.job-info-heading > p::before,
.mirai-company-head > p::before,
.sample-entry-form > div > p::before {
  content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--b-accent); flex: 0 0 auto;
}
.mirai-kicker {
  margin: 0 0 18px; color: var(--b-accent);
  font-size: 11px; font-weight: 800; letter-spacing: .2em;
}
.sample-entry-form > div > p { color: #ffc79f; }
.sample-entry-form > div > p::before { background: #ffc79f; }
.bloom-steps-cuts article > span { color: var(--b-accent); background: #fff; box-shadow: 0 6px 16px rgba(var(--m-accent-rgb), .12); }

/* ---------- 3. 働きかたのアイコン ---------- */
.mirai-ico {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin: 0 auto 14px;
  border-radius: 50%; background: #fff; color: var(--b-accent);
  box-shadow: 0 8px 20px rgba(var(--m-shadow), .08);
}
.mirai-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 4. 「つなぐ」図 ---------- */
.mirai-bridge {
  list-style: none; margin: 38px 0 0; padding: 0;
  display: grid; gap: 0; max-width: 360px;
}
.mirai-bridge-node {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 999px;
  background: #fff; box-shadow: 0 10px 24px rgba(var(--m-shadow), .08);
  font-size: 15px;
}
.mirai-bridge-node.is-core { background: var(--b-accent); color: #fff; box-shadow: 0 14px 30px rgba(var(--m-accent-rgb), .28); }
.mirai-bridge-ico {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--m-tint-2); color: var(--b-ink);
}
.mirai-bridge-node.is-core .mirai-bridge-ico { background: rgba(255,255,255,.22); color: #fff; }
.mirai-bridge-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mirai-bridge-link {
  position: relative; margin-left: 38px; padding: 12px 0 12px 26px;
  border-left: 2px dashed rgba(var(--m-accent-rgb), .55);
  color: var(--m-muted); font-size: 12px; font-weight: 700; line-height: 1.6;
}
.mirai-bridge-link::before,
.mirai-bridge-link::after {
  content: ""; position: absolute; left: -6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--b-accent);
}
.mirai-bridge-link::before { top: -5px; }
.mirai-bridge-link::after { bottom: -5px; }
.mirai-company { background-image: radial-gradient(rgba(var(--m-shadow), .06) 1.2px, transparent 1.3px); background-size: 22px 22px; }

@media (max-width: 760px) {
  .mirai-bridge { max-width: none; margin-top: 28px; }
}

/* ==========================================================================
   仕事の流れ〜選考パネル（2026-12-01 方針：形はBLOOMのまま、細部で差別化）
   BLOOMの「色面＋丸い写真＋白いカード」はそのまま。
   足しているのは、大きなステップ番号・ラベル付きの進行表示・SPの写真・選考の流れ図だけ。
   ========================================================================== */

/* ---------- 仕事の流れ：大きなステップ番号（白いカードの中） ---------- */
.mirai-step-no {
  display: block;
  margin: 0 0 12px;
  font-family: var(--condensed);
  font-size: clamp(52px, 5vw, 76px);
  font-weight: 700;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--b-accent);
  letter-spacing: .02em;
}
.mirai-step-photo { display: none; margin: 0; }

/* ---------- 仕事の流れ：ラベル付きの進行表示（スクロール量に応じて線が伸びる） ---------- */
.mirai-stepper {
  bottom: 7vh;
  width: min(480px, 80vw);
  display: flex;
  justify-content: space-between;
  gap: 0;
}
.mirai-stepper::before,
.mirai-stepper::after {
  content: ""; position: absolute; left: 7px; top: 7px; height: 2px; border-radius: 2px;
}
.mirai-stepper::before { right: 7px; background: rgba(255,255,255,.8); }
.mirai-stepper::after { width: calc((100% - 14px) * var(--pin, 0)); background: var(--b-accent); transition: width .15s linear; }
.bloom-steps .mirai-stepper i,
.bloom-steps[data-step] .mirai-stepper i {
  position: relative; z-index: 1;
  width: auto; height: auto; border-radius: 0;
  display: grid; justify-items: center; gap: 8px;
  background: none !important; transform: none !important;
  font-style: normal;
}
.mirai-stepper i::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid rgba(var(--m-shadow), .2);
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.mirai-stepper span { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--b-ink); opacity: .6; transition: color .3s ease, opacity .3s ease; }
.bloom-steps[data-step="0"] .mirai-stepper i:nth-child(1)::before,
.bloom-steps[data-step="1"] .mirai-stepper i:nth-child(-n+2)::before,
.bloom-steps[data-step="2"] .mirai-stepper i::before { background: var(--b-accent); border-color: var(--b-accent); }
.bloom-steps[data-step="0"] .mirai-stepper i:nth-child(1)::before,
.bloom-steps[data-step="1"] .mirai-stepper i:nth-child(2)::before,
.bloom-steps[data-step="2"] .mirai-stepper i:nth-child(3)::before { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(var(--m-accent-rgb), .18); }
.bloom-steps[data-step="0"] .mirai-stepper i:nth-child(1) span,
.bloom-steps[data-step="1"] .mirai-stepper i:nth-child(2) span,
.bloom-steps[data-step="2"] .mirai-stepper i:nth-child(3) span { color: var(--b-accent); opacity: 1; }

/* ---------- 仕事の流れ（SP）：カードに番号と丸い写真を出す（SPでは色面の写真が出ないため） ---------- */
@media (max-width: 720px) {
  .mirai-step-no { font-size: 56px; }
  .mirai-step-photo { display: block; margin: 4px 0 18px; }
  .mirai-step-photo img {
    display: block; width: min(200px, 62%); height: auto; aspect-ratio: 1 / 1; object-fit: cover;
    border-radius: 50%; border: 6px solid #fff;
    box-shadow: 0 14px 30px rgba(var(--m-shadow), .14);
  }
  .mirai-stepper { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mirai-step-photo { display: block; margin: 4px 0 18px; }
  .mirai-step-photo img { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; border: 6px solid #fff; }
  .mirai-stepper { display: none; }
}

/* ---------- 募集要項：背景の透かし文字だけ差し替え（テンプレは YOUR NEXT STEP） ---------- */
.bloom-page .job-info-section::after { content: "MIRAI"; }

/* ---------- 選考の流れ：番号の丸を点線でつなぐ（パネルの形・色はBLOOMのまま） ---------- */
.bloom-page .hire-panel-route ol { border-top: 0; }
.bloom-page .hire-panel-route li {
  position: relative;
  grid-template-columns: 46px 1fr;
  align-items: center;
  padding: 10px 0;
  border-bottom: 0;
}
.bloom-page .hire-panel-route li b {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--b-accent); color: #fff; font-size: 17px;
}
.bloom-page .hire-panel-route li:last-child b { background: var(--b-ink); }
.bloom-page .hire-panel-route li:not(:last-child)::after {
  content: ""; position: absolute; left: 22px; top: 56px; bottom: -10px;
  border-left: 2px dashed rgba(var(--m-accent-rgb), .45);
}
.bloom-page .hire-panel-route li span { font-size: 14px; }

/* ==========================================================================
   ヒーロー：幅ごとの崩れ対策（2026-12-01）
   テンプレは写真・文章とも「画面上の固定位置（absolute）」に置く作りのため、
   ウィンドウを縮めると見出しが写真に重なる／スマホで文章と流れる帯が重なる。
   見た目（BLOOMの配置）は変えず、幅ごとに収まりを調整する。
     1051px〜   ：横並び（テンプレどおり）。写真の右端を詰めて見出しとの間を確保
     901〜1050px：横並び。見出しを幅に合わせて縮める
     〜900px    ：写真が上・文章が下の縦積み。固定位置をやめて自然に並べる
   ========================================================================== */
@media (min-width: 1051px) {
  .bloom-hero { padding-right: 5vw; }
  .bloom-hero-photo { right: 52%; }
  .bloom-hero-copy { position: relative; z-index: 6; width: min(640px, 44vw); padding-left: 0; }
  .bloom-hero h1 { font-size: clamp(40px, 4.3vw, 66px); }
}

@media (min-width: 901px) and (max-width: 1050px) {
  .bloom-hero { padding-right: 4vw; }
  .bloom-hero-photo { inset: 112px 52% 90px 3vw; }
  .bloom-hero-copy { position: relative; z-index: 6; width: 45vw; padding-left: 0; }
  .bloom-hero h1 { font-size: clamp(32px, 3.9vw, 44px); }
  .bloom-lede { font-size: 14px; }
}

@media (max-width: 900px) {
  .bloom-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-items: stretch;
    min-height: 0;
    padding: calc(var(--fixed-header-h) + 22px) 5vw 104px;
    text-align: left;
  }
  .bloom-hero-photo {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 720px;
    height: clamp(230px, 54vw, 440px) !important;
    margin: 0 auto;
    border-width: 8px;
  }
  .bloom-hero-copy {
    position: relative;
    left: auto; right: auto; bottom: auto;
    width: 100%;
    max-width: 720px;
    margin: 30px auto 0;
    padding: 0;
  }
  .bloom-hero h1 { font-size: clamp(30px, 6.2vw, 48px); margin: 26px 0 18px; }
  .bloom-marquee { bottom: 30px; }
}

@media (max-width: 400px) {
  .bloom-hero { padding-left: 16px; padding-right: 16px; }
  .bloom-eyebrow { font-size: 9px; letter-spacing: .14em; padding: 7px 14px; }
  .mirai-tags li { font-size: 12px; padding: 6px 13px; }
}
@media (max-width: 900px) {
  /* 流れる帯の分の余白（帯の文字は幅に応じて大きくなるため、幅に比例させる） */
  .bloom-hero { padding-bottom: calc(96px + 4vw); }
}
@media (max-width: 360px) {
  /* 320px幅でテキストロゴが2行に折れるため */
  .mirai-brand b { font-size: 13px; white-space: nowrap; letter-spacing: .02em; }
  .bloom-header .header-entry { padding: 10px 10px; }
}
