/**
 * File: page-front.css
 * Usage: イチ推し看護転職 ステップフォーム（ファネル型）。
 *        フロント・/thanks/・404 でのみ読み込まれるので、リセットも同梱して
 *        他テーマの base CSS と衝突しないように1ファイルにまとめている。
*/
/* cspell:ignore NotoSansJp wpadminbar */

@charset "UTF-8";

/* ===== Reset (scoped to the pages that load this file) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}
html:focus-within {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
input,
button,
select {
  font: inherit;
}
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Hide WordPress admin bar on the front. */
#wpadminbar {
  display: none !important;
}

html {
  margin-top: 0 !important;
  /* Stop the page-level rubber-band bounce. Must be on html — body alone
     doesn't suppress root overscroll. */
  overscroll-behavior: none;
  /* Hide the scrollbar (scrolling still works). */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / legacy Edge */
}
html::-webkit-scrollbar {
  display: none;                /* Chrome / Safari */
}

/* ===== Fonts ===== */
@font-face {
  font-family: 'NotoSansJp';
  font-weight: 400;
  font-display: swap;
  src: url(../../fonts/NotoSansJP-Regular.woff) format('woff');
}
@font-face {
  font-family: 'NotoSansJp';
  font-weight: 500;
  font-display: swap;
  src: url(../../fonts/NotoSansJP-Medium.woff) format('woff');
}
@font-face {
  font-family: 'NotoSansJp';
  font-weight: 700;
  font-display: swap;
  src: url(../../fonts/NotoSansJP-Bold.woff) format('woff');
}
@font-face {
  font-family: 'NotoSansJp';
  font-weight: 900;
  font-display: swap;
  src: url(../../fonts/NotoSansJP-Black.woff) format('woff');
}

/* ===== Body base ===== */
body {
  background-color: #fff;
  color: #333;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  font-family: 'NotoSansJp', sans-serif;
  overscroll-behavior: none;
}

/* ========= Pre-funnel intent modal ========= */
.bl_funnelIntentModal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.bl_funnelIntentModal.is_hidden {
  display: none;
}

.bl_funnelIntentModal_box {
  background: #fff;
  border: 1px solid #f5e8de;
  border-radius: 12px;
  padding: 28px 40px;
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.bl_funnelIntentModal_ttl {
  margin: 0;
  font-family: 'NotoSansJp', 'Hiragino Maru Gothic Pro', sans-serif;
  font-size: 24px;
  line-height: 1.3;
  color: #471f11;
  text-align: center;
}

.bl_funnelIntentModal_options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bl_funnelIntentModal_opt {
  appearance: none;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: #fafafa;
  border: 1px solid #fbc7c7;
  border-radius: 6px;
  filter: drop-shadow(4px 4px 0.5px #fbc7c7);
  text-align: left;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.bl_funnelIntentModal_opt:hover {
  transform: translate(-1px, -1px);
  filter: drop-shadow(5px 5px 0.5px #fbc7c7);
}

.bl_funnelIntentModal_opt:active {
  transform: translate(0, 0);
}

.bl_funnelIntentModal_optImg {
  width: 65px;
  height: 80px;
  flex-shrink: 0;
}

.bl_funnelIntentModal_optLabel {
  font-family: 'NotoSansJp', 'Hiragino Maru Gothic Pro', sans-serif;
  font-size: 16px;
  line-height: 1.3;
  color: #471f11;
}

@media (max-width: 375px) {
  .bl_funnelIntentModal_box {
    padding: 20px;
  }
}

/* ========= Reset (scoped) ========= */
.bl_funnelBody {
  margin: 0;
  background-color: #f5fcfb;
  /* --bg-pc can be overridden inline from the SCF `bg_pc` option. */
  background-image: var(--bg-pc, url(../../img/bg.webp));
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  /* Pin to the viewport so it stays put while the funnel scrolls — same
     behaviour as the fixed left/right asides. */
  background-attachment: fixed;
  color: #471f11;
  font-family: 'NotoSansJp', "Hiragino Maru Gothic Pro", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bl_funnel {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fef4f4;
}

/* ========= PC layout: left aside + funnel + right aside ========= */
.bl_funnelPage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bl_funnelAside {
  display: none;
}

@media (min-width: 1024px) {
  .bl_funnelPage {
    display: block;
  }
  /* The funnel stays a centred 500px column; the asides are pinned to the
     viewport edges with position:fixed so they never reflow or move as the
     page scrolls or the window resizes. */
  .bl_funnel {
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  .bl_funnelAside {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    bottom: 0;
    width: calc((100vw - 500px) / 2);
    z-index: 0;
    box-sizing: border-box;
  }
  .bl_funnelAside__left {
    left: 0;
    justify-content: center;
    padding: 40px 24px;
  }
  .bl_funnelAside__right {
    right: 0;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
  }
}

/* Left aside content */
.bl_funnelAside_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  color: #471f11;
}

.bl_funnelAside_ttl {
  margin: 0;
  line-height: 0;
}

/* Left aside is now a single banner image (SCF banner_sp_left). */
.bl_funnelAside_leftImg {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
}

.bl_funnelAside_ttlSvg {
  display: block;
  width: 100%;
  max-width: 373px;
  height: auto;
}

.bl_funnelAside_stat {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* On cramped desktop widths the badge + record can't fit on one row;
   stack them so the record gets the full aside width. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .bl_funnelAside_stat {
    flex-direction: column;
    gap: 12px;
  }
}

.bl_funnelAside_free {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 1000px;
  background: #fff;
  border: 1px solid #fd7b7b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Hiragino Maru Gothic Pro", 'NotoSansJp', sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: #fd7b7b;
  text-align: center;
}

.bl_funnelAside_free span {
  display: block;
}

.bl_funnelAside_record {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #471f11;
}

.bl_funnelAside_record_lead {
  margin: 0;
  font-family: 'NotoSansJp', sans-serif;
  font-weight: 700;
  /* Fluid: 18px @1024vw → 32px @1920vw */
  font-size: clamp(18px, 2px + 1.56vw, 32px);
  line-height: 1;
}

.bl_funnelAside_record_num {
  margin: 0;
  font-family: 'NotoSansJp', sans-serif;
  font-weight: 900;
  /* Fluid: 28px @1024vw → 56px @1920vw */
  font-size: clamp(28px, calc(3.13vw - 4px), 56px);
  line-height: 1;
}

.bl_funnelAside_record_num strong {
  font-weight: 900;
  /* Fluid: 44px @1024vw → 88px @1920vw */
  font-size: clamp(44px, calc(4.91vw - 6.27px), 88px);
}

.bl_funnelAside_features {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 352px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.bl_funnelAside_features li {
  flex: 0 0 calc((100% - 10px) / 3);
  max-width: 114px;
  background: #fff;
  border-radius: 4px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  color: #fd7b7b;
}

.bl_funnelAside_features li svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: #fd7b7b;
}

.bl_funnelAside_features li span {
  font-family: "Hiragino Maru Gothic Pro", 'NotoSansJp', sans-serif;
  font-size: 14px;
  line-height: 1;
  color: #471f11;
  white-space: nowrap;
}

/* Right aside woman photo */
.bl_funnelAside_woman {
  display: block;
  /* width/height auto so both max-* constraints can co-apply while
     preserving the image's intrinsic aspect ratio. */
  width: auto;
  height: auto;
  max-width: 420px;
  max-height: 80vh;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .bl_funnelAside_woman {
    width: auto;
    height: auto;
    max-width: 420px;
    max-height: 80vh;
    object-position: center bottom;
  }
}

/* ========= Header ========= */
.bl_funnelHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  background: #fff;
}

.bl_funnelHeader_logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.bl_funnelHeader_logo img {
  display: block;
  width: 168px;
  height: 50px;
}

.bl_funnelHeader_meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  font-size: 10px;
  line-height: 1.2;
  color: #471f11;
}

.bl_funnelHeader_meta p {
  margin: 0;
  width: 100%;
}

/* ========= Main / Card ========= */
.bl_funnel_main {
  flex: 1 0 auto;
  padding: 20px;
  background: #f5fcfb;
}

.bl_funnelCard {
  background: #fff;
  border: 2px solid #f5e8de;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Small mobile (≤375px e.g. iPhone SE/12 mini): claw back horizontal space
   so the intro box, option cards and selects fit without overflow. */
@media (max-width: 375px) {
  .bl_funnel_main {
    padding-inline: 10px;
  }
  .bl_funnelCard {
    padding-inline: 10px;
    border: 0;
  }
  .bl_funnelThanks_intro {
    padding: 10px;
    flex-direction: column;
  }
  .bl_funnelThanks_main {
    background: transparent;
    border: 0;
  }
}

@media (max-width: 480px) {
  .bl_funnelStep_options .wpcf7-list-item-label {
    font-size: 14px;
  }
}

/* ========= Step bar ========= */
.bl_funnelStepBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bl_funnelBadge {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 100px;
  background: #fd7b7b;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.bl_funnelBadge_lead {
  font-size: 14px;
}

.bl_funnelBadge_num {
  font-size: 10px;
}

.bl_funnelBadge_num span {
  font-size: 20px;
  margin-right: 1px;
}

.bl_funnelSteps {
  list-style: none;
  margin: 0;
  padding: 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bl_funnelSteps::-webkit-scrollbar {
  display: none;
}

.bl_funnelSteps_label,
.bl_funnelSteps_item {
  flex-shrink: 0;
}

.bl_funnelSteps_label {
  font-family: "Inter", 'NotoSansJp', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fd7b7b;
  line-height: 1.3;
  margin-right: 2px;
}

.bl_funnelSteps_item {
  width: 38px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 100px;
  background: #fff7f9;
  border: 1px solid #f5e8de;
  color: #471f11;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

.bl_funnelSteps_item + .bl_funnelSteps_item::before {
  content: "";
    position: absolute;
    top: 50%;
    left: -6px;
    width: 1px;
    height: 1px;
    background: #fd7b7b;
    border-radius: 50%;
    box-shadow: 2px 0 0 #fd7b7b, 4px 0 0 #fd7b7b;
    transform: translate(-50%, -50%);
}

.bl_funnelSteps_item.is_active {
  background: #fd7b7b;
  color: #fff;
  border-color: #fd7b7b;
}

/* ========= Form wrapper ========= */
.bl_funnelFormWrap .wpcf7-form {
  margin: 0;
}

.bl_funnelFormWrap .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #c0392b;
  margin-top: 6px;
}

.bl_funnelFormWrap .wpcf7-response-output {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

/* Step section — each <section class="bl_funnelStep" data-step="N"> */
.bl_funnelStep {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
}

.bl_funnelStep.is_active {
  display: flex;
}

/* Each question is a white sub-card inside the step.
   A step may contain one or more bl_funnelQuestion blocks. */
.bl_funnelQuestion {
  background: #fff;
  border: 1px solid #f5e8de;
  border-radius: 12px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.bl_funnelQuestion_ttl,
.bl_funnelStep_ttl {
  font-family: "Hiragino Maru Gothic Pro", 'NotoSansJp', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: #471f11;
  text-align: center;
  margin: 0;
}

/* ========= Option cards (radio styled as cards) ========= */
.bl_funnelStep_options {
  width: 100%;
}

.bl_funnelStep_options .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.bl_funnelStep_options .wpcf7-radio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 160px));
  justify-content: center;
  align-items: stretch;
  gap: 12px 8px;
  width: 100%;
}

.bl_funnelStep_options .wpcf7-list-item {
  margin: 0;
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
}

.bl_funnelStep_options .wpcf7-list-item > label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  background: #fafafa;
  border: 2px solid #fbc7c7;
  border-radius: 6px;
  filter: drop-shadow(4px 4px 0.5px #fbc7c7);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
  position: relative;
  min-height: 132px;
  height: 100%;
  box-sizing: border-box;
}

.bl_funnelStep_options .wpcf7-list-item > label:hover {
  transform: translate(-1px, -1px);
  filter: drop-shadow(5px 5px 0.5px #fbc7c7);
}

.bl_funnelStep_options .wpcf7-list-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.bl_funnelStep_options .wpcf7-list-item:has(input[type="radio"]:checked) > label {
  background: #fff;
  border-color: #fb7173;
  filter: drop-shadow(4px 4px 1px #fb7173);
}

/* Once any option in the group is picked, dim the others to grey so the
   selected card stands out. */
.bl_funnelStep_options .wpcf7-radio:has(input[type="radio"]:checked) .wpcf7-list-item:not(:has(input[type="radio"]:checked)) > label {
  border-color: #d4d4d4;
  filter: drop-shadow(4px 4px 0.5px #e5e5e5);
}

.bl_funnelStep_options .wpcf7-radio:has(input[type="radio"]:checked) .wpcf7-list-item:not(:has(input[type="radio"]:checked)) > label::before {
  filter: grayscale(1) opacity(0.55);
}

.bl_funnelStep_options .wpcf7-list-item input[type="radio"]:focus-visible + .wpcf7-list-item-label {
  outline: 2px solid #fb7173;
  outline-offset: 4px;
  border-radius: 4px;
}

/* image rendered as ::before on the label, keyed by option order */
.bl_funnelStep_options .wpcf7-list-item > label::before {
  content: "";
  display: block;
  width: 65px;
  height: 80px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

/* horizontal-card variant: icon left of text (step 2 question 1) */
.bl_funnelStep_options__row .wpcf7-list-item > label {
  flex-direction: row;
  justify-content: flex-start;
  min-height: 0;
  padding: 8px 12px;
}

.bl_funnelStep_options__row .wpcf7-list-item > label::before {
  width: 43px;
  height: 40px;
}


.bl_funnelStep_options__row .wpcf7-list-item-label {
  white-space: nowrap;
}

/* qualification (step 1) */
[data-name="your-subject"] .wpcf7-list-item:nth-child(1) > label::before {
  background-image: url("../../img/form/nurse-seikangoshi.svg");
}
[data-name="your-subject"] .wpcf7-list-item:nth-child(2) > label::before {
  background-image: url("../../img/form/nurse-junkangoshi.svg");
}
[data-name="your-subject"] .wpcf7-list-item:nth-child(3) > label::before {
  background-image: url("../../img/form/nurse-hokenshi.svg");
}
[data-name="your-subject"] .wpcf7-list-item:nth-child(4) > label::before {
  background-image: url("../../img/form/nurse-josanshi.svg");
}

/* timing (step 2, question 1) — horizontal cards */
[data-name="timing"] .wpcf7-list-item:nth-child(1) > label::before {
  background-image: url("../../img/form/cal-1month.svg");
}
[data-name="timing"] .wpcf7-list-item:nth-child(2) > label::before {
  background-image: url("../../img/form/cal-3months.svg");
}
[data-name="timing"] .wpcf7-list-item:nth-child(3) > label::before {
  background-image: url("../../img/form/cal-6months.svg");
}
[data-name="timing"] .wpcf7-list-item:nth-child(4) > label::before {
  background-image: url("../../img/form/cal-1year.svg");
}
[data-name="timing"] .wpcf7-list-item:nth-child(5) > label::before {
  background-image: url("../../img/form/cal-undecided.svg");
}

/* workstyle (step 2, question 2) — vertical cards */
[data-name="workstyle"] .wpcf7-list-item:nth-child(1) > label::before {
  background-image: url("../../img/form/work-fulltime-night.svg");
}
[data-name="workstyle"] .wpcf7-list-item:nth-child(2) > label::before {
  background-image: url("../../img/form/work-fulltime-day.svg");
}
[data-name="workstyle"] .wpcf7-list-item:nth-child(3) > label::before {
  background-image: url("../../img/form/work-parttime.svg");
}
[data-name="workstyle"] .wpcf7-list-item:nth-child(4) > label::before {
  background-image: url("../../img/form/work-nightshift.svg");
}

/* situation (step 3) — vertical cards, 7 options, 2-line labels */
[data-name="situation"] .wpcf7-list-item:nth-child(1) > label::before {
  background-image: url("../../img/form/situation-rishokuchu.svg");
}
[data-name="situation"] .wpcf7-list-item:nth-child(2) > label::before {
  background-image: url("../../img/form/situation-asap.svg");
}
[data-name="situation"] .wpcf7-list-item:nth-child(3) > label::before {
  background-image: url("../../img/form/situation-yameru.svg");
}
[data-name="situation"] .wpcf7-list-item:nth-child(4) > label::before {
  background-image: url("../../img/form/situation-kentou.svg");
}
[data-name="situation"] .wpcf7-list-item:nth-child(5) > label::before {
  background-image: url("../../img/form/situation-hantoshi.svg");
}
[data-name="situation"] .wpcf7-list-item:nth-child(6) > label::before {
  background-image: url("../../img/form/situation-amari.svg");
}
[data-name="situation"] .wpcf7-list-item:nth-child(7) > label::before {
  background-image: url("../../img/form/situation-sonota.svg");
}

.bl_funnelStep_options .wpcf7-list-item-label {
  font-family: "Hiragino Maru Gothic Pro", 'NotoSansJp', sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: #471f11;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ========= Question head (lock + privacy note + title) ========= */
.bl_funnelQuestion_head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bl_funnelQuestion_lead {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-family: "Hiragino Maru Gothic Pro", 'NotoSansJp', sans-serif;
  font-size: 16px;
  line-height: 1.3;
  color: #471f11;
}

.bl_funnelQuestion_leadIcon {
  width: 24px;
  height: 24px;
  color: #fb7173;
  flex-shrink: 0;
}

/* ========= Text input ========= */
.bl_funnelStep_input {
  width: 100%;
}

.bl_funnelStep_input .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.bl_funnelStep_input input.wpcf7-text,
.bl_funnelStep_input input.wpcf7-tel,
.bl_funnelStep_input input.wpcf7-email {
  appearance: none;
  -webkit-appearance: none;
  background-color: #feefef;
  border: 0;
  border-radius: 6px;
  padding: 12px 20px;
  width: 100%;
  box-sizing: border-box;
  font-family: "Hiragino Maru Gothic Pro", 'NotoSansJp', sans-serif;
  /* 16px min: iOS Safari auto-zooms into any focused field below 16px. */
  font-size: 16px;
  line-height: 1;
  color: #471f11;
}

.bl_funnelStep_input input::placeholder {
  color: rgba(71, 31, 17, 0.6);
}

.bl_funnelStep_input input:focus {
  outline: 2px solid #fb7173;
  outline-offset: 2px;
}

/* ===== Optional email accordion (<details>/<summary>) ===== */
.bl_funnelEmailAcc {
  width: 100%;
  margin-top: 0;
  /* border-top: 1px solid #f5e8de; */
}

/* Remove the native disclosure triangle in WebKit. */
.bl_funnelEmailAcc > summary::-webkit-details-marker {
  display: none;
}

.bl_funnelEmailAcc_head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 4px;
  font-family: "Hiragino Maru Gothic Pro", 'NotoSansJp', sans-serif;
  font-size: 16px;
  color: #471f11;
}

.bl_funnelEmailAcc_badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: #e9e2dc;
  color: #6b574a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.bl_funnelEmailAcc_head::after {
  content: "";
  margin-left: auto;
  width: 12px;
  height: 12px;
  border-right: 2px solid #471f11;
  border-bottom: 2px solid #471f11;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.bl_funnelEmailAcc[open] .bl_funnelEmailAcc_head::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.bl_funnelEmailAcc_body {
  padding-top: 4px;
  padding-bottom: 8px;
}

/* Submit button: CF7 renders [submit] as <input type="submit"> which can't
   hold the chevron <span>, so add it as a background-image instead. */
input[type="submit"].el_funnelBtn {
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1L5 5L1 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 6px 10px;
}

/* ========= Thanks page (replaces form after submission) ========= */
.bl_funnelThanks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* ----- Main thanks card ----- */
.bl_funnelThanks_main {
  background: #fff;
  border: 1px solid #f5e8de;
  border-radius: 12px;
  padding: 28px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.bl_funnelThanks_head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.bl_funnelThanks_lead {
  margin: 0;
  font-family: "Hiragino Maru Gothic Pro", 'NotoSansJp', sans-serif;
  font-size: 16px;
  line-height: 1.3;
  color: #471f11;
}

.bl_funnelThanks_name {
  margin: 0;
  font-family: "Hiragino Maru Gothic Pro", 'NotoSansJp', sans-serif;
  font-size: 24px;
  line-height: 1.3;
  color: #471f11;
  text-align: center;
}

.bl_funnelThanks_intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: #feefef;
  border-radius: 6px;
  padding: 12px 20px;
  box-sizing: border-box;
}

.bl_funnelThanks_introMsg {
  flex: 1;
  background: #fff;
  border-radius: 4px;
  padding: 10px;
  font-family: "Hiragino Maru Gothic Pro", 'NotoSansJp', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: rgba(71, 31, 17, 0.6);
}

.bl_funnelThanks_introMsg p {
  margin: 0;
}

.bl_funnelThanks_introStaff {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.bl_funnelThanks_introStaff img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.bl_funnelThanks_introStaff figcaption {
  font-family: "Hiragino Maru Gothic Pro", 'NotoSansJp', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: rgba(71, 31, 17, 0.6);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bl_funnelThanks_callNote {
  margin: 0;
  font-family: 'NotoSansJp', sans-serif;
  font-size: 12px;
  line-height: 1;
  color: #471f11;
  text-align: center;
}

.bl_funnelThanks_callBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fe8da7;
  text-align: center;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #fe8da7;
  font-family: 'NotoSansJp', sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 1.28px;
}

.bl_funnelThanks_callIcon {
  width: 16px;
  height: 28px;
}

.bl_funnelThanks_callInfo {
  width: 100%;
  font-family: 'NotoSansJp', sans-serif;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #471f11;
}

.bl_funnelThanks_callInfo p {
  margin: 0;
}

.bl_funnelThanks_callInfo strong {
  font-weight: 700;
}

/* ----- Banner ----- */
.bl_funnelThanks_banner {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.12s ease;
}

.bl_funnelThanks_banner:hover {
  opacity: 0.9;
}

.bl_funnelThanks_banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========= Select dropdown (step 4 etc.) ========= */
.bl_funnelStep_select {
  width: 100%;
}

.bl_funnelStep_select .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.bl_funnelStep_select select.wpcf7-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #feefef;
  border: 0;
  border-radius: 6px;
  padding: 12px 40px 12px 20px;
  width: 100%;
  font-family: "Hiragino Maru Gothic Pro", 'NotoSansJp', sans-serif;
  /* 16px min: iOS Safari auto-zooms into any focused field below 16px. */
  font-size: 16px;
  line-height: 1;
  color: #471f11;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 6' fill='none' stroke='%23471f11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1 L5.5 5 L10 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px 6px;
}

.bl_funnelStep_select select.wpcf7-select:focus {
  outline: 2px solid #fb7173;
  outline-offset: 2px;
}

/* gray placeholder when the empty (first_as_label) option is selected */
.bl_funnelStep_select select.wpcf7-select:has(option[value=""]:checked) {
  color: rgba(71, 31, 17, 0.6);
}

/* ========= Result count (e.g. 希望勤務地の求人数 約0000件) ========= */
.bl_funnelQuestion_count {
  margin: 0;
  font-family: "Hiragino Maru Gothic Pro", 'NotoSansJp', sans-serif;
  font-size: 15px;
  line-height: 1.3;
  color: #471f11;
  letter-spacing: 0.04em;
  text-align: center;
}

.bl_funnelQuestion_count_num {
  font-size: 26px;
  letter-spacing: 0.04em;
  margin: 0 2px;
}

/* ========= Step navigation buttons ========= */
.bl_funnelStep_nav {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  width: 100%;
  padding-top: 8px;
  position: relative;
}

.bl_funnelStep_nav .wpcf7-spinner {
  position: absolute;
  right: 0;
  margin: 0;
  pointer-events: none;
}

.el_funnelBack {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  color: #50c9fe;
  font-family: 'NotoSansJp', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.el_funnelBack:hover {
  opacity: 0.7;
}

.el_funnelBack_arrow {
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-right: 2px;
}

.el_funnelBtn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: 'NotoSansJp', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  color: #fff;
  background: #fb7173;
  border-radius: 40px;
  padding: 10px 20px;
  width: 240px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.12s ease, transform 0.12s ease;
}

.el_funnelBtn:hover {
  background: #f55a5c;
}

/* Two-line submit variant (last step). */
.el_funnelBtn__submit {
  flex-direction: column;
  gap: 0;
  width: auto;
  min-width: 280px;
  padding: 14px 16px;
  line-height: 1.3;
}

.el_funnelBtn__submit .el_funnelBtn_sub {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.el_funnelBtn__submit .el_funnelBtn_main {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Original CF7 submit input hidden once the styled proxy button is in. */
.wpcf7-submit.is_funnelSubmitHidden,
input[type="submit"].is_funnelSubmitHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.el_funnelBtn:active {
  transform: translateY(1px);
}

.el_funnelBtn:disabled {
  background: #f5cccd;
  cursor: not-allowed;
}

/* Inactive until every field on the step is filled. Stays clickable so the
   "incomplete" shake feedback still fires. */
.el_funnelBtn.is_disabled {
  background: #f5cccd;
}

/* Mid-submission lock — no pointer, no pulse. */
.el_funnelBtn.is_submitting {
  opacity: 0.7;
  pointer-events: none;
  animation: none;
}

.el_funnelBtn_arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  /* compensate so the visual center sits next to the label */
  margin-left: -2px;
}

/* ========= Footer ========= */
.bl_funnelFooter {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
}

.bl_funnelFooter_links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.bl_funnelFooter_links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #471f11;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .bl_funnelFooter_links a {
    font-size: 10px;
  }
}

.bl_funnelFooter_links a:hover {
  opacity: 0.7;
}

.bl_funnelFooter_icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.bl_funnelFooter_sep {
  width: 1px;
  height: 24px;
  background: #471f11;
  list-style: none;
}

.bl_funnelFooter_copy {
  margin: 0;
  background: #f5e8de;
  width: 100%;
  text-align: center;
  padding: 10px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: #471f11;
  box-sizing: border-box;
}

/* ========= Step-complete submit highlight ========= */
.bl_funnelStep_nav.is_funnelFocused .js_funnelNext,
.bl_funnelStep_nav.is_funnelFocused .el_funnelBtn,
.bl_funnelStep_nav.is_funnelFocused .wpcf7-submit {
  animation: bl_funnelFocusPulse 1.3s ease-in-out infinite;
  box-shadow: 0 0 0 4px rgba(251, 113, 115, 0.45), 0 8px 24px rgba(0, 0, 0, 0.25);
}

@keyframes bl_funnelFocusPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .bl_funnelStep_nav.is_funnelFocused .js_funnelNext,
  .bl_funnelStep_nav.is_funnelFocused .el_funnelBtn,
  .bl_funnelStep_nav.is_funnelFocused .wpcf7-submit {
    animation: none;
  }
}

/* ========= Guiding follow pointer ========= */
.bl_funnelFollow {
  position: fixed;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  z-index: 900;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: left 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              top 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.25s ease,
              transform 0.25s ease;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.bl_funnelFollow.is_shown {
  opacity: 1;
  transform: scale(1);
}

.bl_funnelFollow img {
  width: 100%;
  height: 100%;
  display: block;
  animation: bl_funnelFollowTap 1.1s ease-in-out infinite;
  transform-origin: 50% 20%;
}

@keyframes bl_funnelFollowTap {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  50%      { transform: translate(-4px, -6px) rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bl_funnelFollow img {
    animation: none;
  }
}

/* ========= Mobile-only top banner ========= */
.bl_funnelMobileBanner {
  width: 100%;
}

.bl_funnelMobileBanner_img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 1024px) {
  .bl_funnelMobileBanner {
    display: none;
  }
}

/* SP: STEP 2 以降ではモバイルバナーを非表示にする。
   The body has the funnel form somewhere inside; checking the active step's
   data-step lets us hide the top banner once the user passes step 1. */
@media (max-width: 1023px) {
  .bl_funnelBody:has(.bl_funnelStep.is_active:not([data-step="1"])) .bl_funnelMobileBanner {
    display: none;
  }
}

/* ========= 404 ========= */
.bl_404Card {
  align-items: center;
  text-align: center;
  gap: 16px;
  padding-block: 40px;
}

.bl_404_code {
  margin: 0;
  font-family: 'NotoSansJp', sans-serif;
  font-weight: 500;
  font-size: clamp(48px, 8vw, 72px);
  line-height: 1;
  color: #fb7173;
  letter-spacing: 0.04em;
}

.bl_404_lead {
  margin: 0;
  font-family: "Hiragino Maru Gothic Pro", 'NotoSansJp', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #471f11;
  font-weight: 500;
}

.bl_404_body {
  margin: 0;
  font-family: "Hiragino Maru Gothic Pro", 'NotoSansJp', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #471f11;
}

.bl_404_btn {
  margin-top: 12px;
}

@media (max-width: 480px) {
  .bl_404_lead {
    font-size: 15px;
  }
  .bl_404_body {
    font-size: 13px;
  }
}

/* ========= LINE return modal ========= */
.bl_funnelLineModal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bl_funnelLineModal[hidden] {
  display: none;
}

.bl_funnelLineModal_overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.bl_funnelLineModal_inner {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.bl_funnelLineModal_close {
  width: 36px;
  height: 36px;
  border: none;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #471f11;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0;
}

.bl_funnelLineModal_banner {
  display: block;
  width: 100%;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
}

.bl_funnelLineModal_banner img {
  display: block;
  /* Scale down to fit the viewport — close button (~36px) + gap (6px). */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - 52px);
  margin: 0 auto;
}

/* Small-screen overrides placed last so they win over the base
   .bl_funnelStep_options__row rules (equal specificity, later source). */
@media (max-width: 375px) {
  .bl_funnelQuestion {
    padding: 20px 10px;
  }
  .bl_funnelStep_options .wpcf7-list-item > label {
    padding: 8px 12px;
  }
  .bl_funnelStep_options__row .wpcf7-list-item > label {
    padding: 8px;
  }
  .el_funnelBtn {
    font-size: 16px;
    padding: 8px 16px;
    width: 200px;
    gap: 6px;
  }
  .bl_funnelThanks_callBtn {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .bl_funnelQuestion_ttl,
  .bl_funnelStep_ttl {
    font-size: 18px;
  }
  .bl_funnelIntentModal_ttl {
    font-size: 18px;
  }
  .bl_funnelStep_options__row .wpcf7-list-item > label::before {
    width: 32px;
  }
}

/* Only shrink the submit button on very narrow screens (<350px). */
@media (max-width: 349px) {
  .el_funnelBtn__submit {
    min-width: 0;
    padding: 6px 14px;
    border-radius: 32px;
  }
  .el_funnelBtn__submit .el_funnelBtn_sub {
    font-size: 10px;
    white-space: nowrap;
  }
  .el_funnelBtn__submit .el_funnelBtn_main {
    font-size: 15px;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .bl_funnelHeader_logo img {
    height: 40px;
    width: auto;
  }
}

@media (min-width: 769px) {
  .bl_funnelThanks_callInfo {
    padding-inline: 10px;
  }
}

/* Roomier screens — scale aside imagery up a touch. */
@media (min-width: 1441px) {
  .bl_funnelAside_ttlSvg {
    max-width: 460px;
  }
  .bl_funnelAside_woman {
    max-width: 460px;
  }
  .bl_funnelAside_features {
    max-width: 432px;
  }
  .bl_funnelAside_features li {
    max-width: 140px;
    padding: 10px;
    gap: 6px;
  }
  .bl_funnelAside_features li svg {
    width: 42px;
    height: 42px;
  }
  .bl_funnelAside_features li span {
    font-size: 15px;
  }
}

/* Extra-wide screens — scale the aside banner images up further. */
@media (min-width: 1580px) {
  .bl_funnelAside_leftImg {
    max-width: 480px;
  }
  .bl_funnelAside_woman {
    max-width: 540px;
  }
}
