/*******************************************
COMMON
*******************************************/
:root {
  --pharmily-color-text: #333;
  --pharmily-color-white: #fff;
  --pharmily-color-soft: #fffbe2;
  --pharmily-color-primary: #ff4d4d;
  --pharmily-color-line: #47b969;
  --pharmily-color-yellow: #ffcc6e;
  --pharmily-font-ja: "Zen Kaku Gothic New", sans-serif;
  --pharmily-font-en: "Montserrat", Arial, sans-serif;
}

html {
  font-size: 62.5%;
}

/* 色・書体の変数を定義。各部品で必要なものだけ参照する。 */
.pharmily-button {
  width: 100%;
  margin: 0 !important;
  font-family: var(--pharmily-font-ja);
  letter-spacing: 0;
}

.pharmily-button--primary {
  --pharmily-button-bg: var(--pharmily-color-primary);
}

.pharmily-button--line {
  --pharmily-button-bg: var(--pharmily-color-line);
}

/* SWELLが作るリンク要素を、ボタンのクラスから1階層で指定。 */
.pharmily-button .swell-block-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 83px;
  padding: 24px;
  border: 0;
  border-radius: 100px;
  background: var(--pharmily-button-bg, var(--pharmily-color-primary)) !important;
  box-shadow: none;
  color: var(--pharmily-color-white) !important;
  font-size: clamp(1.8rem, 1.667vw, 2.4rem);
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: all 0.6s;
}

.pharmily-button .swell-block-button__link::before,
.pharmily-button .swell-block-button__link::after {
  display: none;
}

.pharmily-button .swell-block-button__link:hover {
  opacity: .85;
}

.pharmily-button .swell-block-button__link:focus-visible {
  outline: 3px solid var(--pharmily-color-text);
  outline-offset: 5px;
}

@media (min-width: 1200px) {
  .pharmily-button .swell-block-button__link {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .pharmily-button .swell-block-button__link {
    min-height: 60px;
    padding: 16px 20px;
    font-size: 1.8rem;
  }
}


/*******************************************
CONTACTセクション：TOPページ・求人検索ページ
*******************************************/
/* CONTACTセクション */
.pharmily-contact {
  padding: clamp(80px, 11.111vw, 160px) 24px !important;
  background-color: var(--pharmily-color-white);
  color: var(--pharmily-color-text);
}

/* SWELLが自動生成する内部ラッパーだけ、1階層の指定を使う。 */
.pharmily-contact > .swell-block-fullWide__inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
}

.pharmily-contact__card {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(64px, 8.333vw, 120px) clamp(24px, 6.944vw, 100px);
  border: 4px solid var(--pharmily-color-text);
  border-radius: 50px;
  background-color: var(--pharmily-color-soft);
  box-shadow: 10px 10px 0 var(--pharmily-color-text);
  font-family: var(--pharmily-font-ja);
  text-align: center;
  letter-spacing: 0;
}

.pharmily-contact__label {
  position: absolute !important;
  z-index: 1;
  top: -2px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0 !important;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pharmily-color-white) !important;
  font-family: var(--pharmily-font-en);
  font-size: clamp(4.4rem, 8.18vw, 11.8rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: .04em !important;
  white-space: nowrap;
  -webkit-text-stroke: 8px var(--pharmily-color-text);
  paint-order: stroke fill;
}

.pharmily-contact__label::before,
.pharmily-contact__label::after,
.pharmily-contact__title::before,
.pharmily-contact__title::after {
  display: none !important;
}

/* SWELLの見出し装飾をこのH2だけ解除する。 */
.pharmily-contact__title {
  max-width: none;
  margin: 0 0 clamp(24px, 4.167vw, 60px) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: var(--pharmily-color-text) !important;
  font-size: clamp(2rem, 2.5vw, 3.6rem) !important;
  font-weight: 700;
  line-height: 1.45 !important;
  text-wrap: balance;
  text-align: center;
}

.pharmily-contact__text {
  max-width: none;
  margin: 0 0 1.45em !important;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.pharmily-contact__actions {
  display: flex;
  align-items: flex-start !important;
  --wp-column-gap: clamp(20px, 4.167vw, 60px);
  gap: var(--wp-column-gap) !important;
  justify-content: center;
  width: 100%;
  max-width: 766px;
  margin: clamp(32px, 4.167vw, 60px) auto 0 !important;
}

.pharmily-contact__column {
  flex: 1 1 0;
  min-width: 0;
  margin: 0 !important;
}

.pharmily-contact__button {
  width: 100%;
  max-width: 353px;
  margin: 0 auto !important;
}

.pharmily-contact__login {
  margin: 10px 0 0 !important;
  color: var(--pharmily-color-text);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.pharmily-contact__login a {
  color: inherit;
  text-decoration: none;
  transition: all 0.6s;
}

.pharmily-contact__login a:hover {
  text-decoration: underline;
}

.pharmily-contact__login a:focus-visible {
  outline: 3px solid var(--pharmily-color-text);
  outline-offset: 5px;
}

/* FigmaのPC寸法。狭い画面では上の可変寸法を使う。 */
@media (min-width: 1200px) {
  .pharmily-contact {
    padding-top: 160px !important;
    padding-bottom: 160px !important;
  }
  .pharmily-contact__card {
    padding: 120px 100px;
  }
  .pharmily-contact__label {
    font-size: 11.8rem;
  }
  .pharmily-contact__title {
    font-size: 3.6rem !important;
    margin-bottom: 60px !important;
  }
  .pharmily-contact__actions {
    --wp-column-gap: 60px;
    gap: 60px !important;
    margin-top: 60px !important;
  }
}

@media (max-width: 768px) {
  .pharmily-contact__label {
    font-size: clamp(3.6rem, 9vw, 7.0rem);
    -webkit-text-stroke-width: 4px;
  }

  .pharmily-contact__card {
    padding: 64px 24px 44px;
    border-width: 3px;
    border-radius: 28px;
    box-shadow: 6px 6px 0 var(--pharmily-color-text);
  }

  .pharmily-contact__actions {
    flex-direction: column;
    align-items: stretch;
    --wp-column-gap: 24px;
    gap: 24px !important;
  }

  .pharmily-contact__column {
    flex-basis: auto !important;
    width: 100%;
  }

  .pharmily-contact__login {
    font-size: 1.4rem;
  }
}

/***************************************************
Footer前セクション：TOPページ・求人検索ページ・マイページ
***************************************************/
.pharmily-footer-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  background: var(--pharmily-color-white) !important;
}

.pharmily-footer-art > .swell-block-fullWide__inner {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 1440px;
  aspect-ratio: 1440 / 505;
  margin: 0 auto;
  padding: 0;
}

.pharmily-footer-art__name {
  position: absolute !important;
  z-index: 0;
  top: 31.7%;
  right: 0;
  width: max-content;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
  color: #ddd !important;
  font-family: var(--pharmily-font-en);
  font-size: min(12.3vw, 178px);
  font-size: 12.3cqw;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: .04em !important;
  text-align: right;
  white-space: nowrap;
}

.pharmily-footer-art__name::before,
.pharmily-footer-art__name::after {
  display: none !important;
}

.pharmily-footer-art__image {
  position: absolute;
  z-index: 1;
  left: -.07%;
  bottom: .11%;
  width: 45%;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  line-height: 0;
}

.pharmily-footer-art__image img {
  display: block;
  width: 100%;
  height: auto !important;
  margin: 0;
  object-fit: contain;
}

/***************************************************
TOPページ
***************************************************/
.top #content {
  padding-top: 0;
}
/********** メインビジュアル **********/
.top-hero {
  padding: 0 !important;
  background: var(--pharmily-color-white) !important;
  color: var(--pharmily-color-text);
  font-family: var(--pharmily-font-ja);
}

.top-hero > .swell-block-fullWide__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.top-hero__cloud {
  width: 100%;
  max-width: none;
  margin: 0 0 -1px !important;
  padding: 0;
  line-height: 0;
}

.top-hero__cloud img {
  display: block;
  width: 100%;
  height: auto !important;
}

.top-hero__visual {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: 63.3333vw;
  max-height: 912px;
  margin: 0 auto !important;
  padding: 0;
  background: var(--pharmily-color-white);
}

.top-hero__visual > .wp-block-group__inner-container {
  position: static;
  margin: 0;
  padding: 0;
}

.top-hero__photo {
  position: absolute;
  z-index: 1;
  top: 16.4%;
  left: 11.0%;
  width: 78.1%;
  max-width: none;
  height: 67.1%;
  overflow: hidden;
  margin: 0 !important;
  border: 4px solid var(--pharmily-color-text);
  border-radius: 999px;
  line-height: 0;
}

.top-hero__photo img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
}

.top-hero__copy {
  position: absolute;
  z-index: 3;
  top: 56.1%;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  width: max-content;
  max-width: 70%;
  margin: 0 !important;
  padding: 0;
}

.top-hero__copy > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.top-hero__title,
.top-hero__text {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 16px 0 60px !important;
  border: 0 !important;
  border-radius: 0;
  background: rgba(255, 255, 255, .75) !important;
  box-shadow: none;
  color: var(--pharmily-color-text) !important;
  font-family: var(--pharmily-font-ja);
  font-weight: 700;
  line-height: 1.45 !important;
  letter-spacing: 0;
  text-align: left;
}

.top-hero__title {
  font-size: 4.8rem !important;
}

.top-hero__title::before,
.top-hero__title::after {
  display: none !important;
}

.top-hero__accent,
.top-hero__title mark {
  padding: 0;
  background: transparent !important;
  color: var(--pharmily-color-primary) !important;
  font-size: 6.4rem;
  font-weight: inherit;
}

.top-hero__text {
  font-size: 3.6rem;
}

/* 人物は回転前の画像を使用。 */
.top-hero__person {
  position: absolute;
  z-index: 0;
  top: 21.5%;
  left: 22.8%;
  width: 10.6%;
  max-width: none;
  margin: 0 !important;
  transform: rotate(-20.7deg);
  line-height: 0;
}

.top-hero__line {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 5.2%;
  width: 27.5%;
  max-width: none;
  margin: 0 !important;
  line-height: 0;
}

.top-hero__person img,
.top-hero__line img {
  display: block;
  width: 100%;
  height: auto !important;
}

.top-hero__line a {
  display: block;
}

.top-hero__line a:focus-visible {
  outline: 3px solid var(--pharmily-color-text);
  outline-offset: 5px;
}

@media (max-width: 1199px) {
  .top-hero__title,
  .top-hero__text {
    padding-left: 24px !important;
  }

  .top-hero__title {
    font-size: 3.2rem !important;
  }
  .top-hero__accent,
  .top-hero__title mark {
    font-size: 4.4rem;
  }
  .top-hero__text {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .top-hero__visual {
    height: auto;
    max-height: none;
    padding: 28px 16px 190px;
  }

  .top-hero__photo {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 320px;
    border-width: 3px;
  }

  .top-hero__copy {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: none;
    margin: -56px 0 0 !important;
    gap: 8px;
  }

  .top-hero__copy > .wp-block-group__inner-container {
    gap: 8px;
  }

  .top-hero__title,
  .top-hero__text {
    padding: 4px 8px !important;
  }

  .top-hero__title {
    font-size: 2.6rem !important;
  }

  .top-hero__accent,
  .top-hero__title mark {
    font-size: 3.6rem;
  }

  .top-hero__text {
    font-size: 1.8rem;
  }

  .top-hero__person {
    top: 20px;
    left: 18%;
    width: 12%;
    max-width: 70px;
  }

  .top-hero__line {
    top: auto;
    right: 16px;
    bottom: 16px;
    width: 42%;
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .top-hero__photo {
    height: 240px;
  }
}


/********** 求人セクション ***********/
.pharmily-button--outline .swell-block-button__link {
  border: 4px solid var(--pharmily-color-primary);
  background: var(--pharmily-color-white) !important;
  color: var(--pharmily-color-primary) !important;
  transition: all 0.6s;
}
.pharmily-button--outline .swell-block-button__link:hover {
  background: var(--pharmily-color-primary) !important;
  color: var(--pharmily-color-white) !important;
}

.top-search {
  padding: 180px 24px !important;
  background: var(--pharmily-color-yellow) !important;
  color: var(--pharmily-color-text);
  font-family: var(--pharmily-font-ja);
  letter-spacing: 0;
}

.top-search > .swell-block-fullWide__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
}

/* 無料登録カード */
.top-search__register {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 80px 100px;
  border: 4px solid var(--pharmily-color-text);
  border-radius: 80px;
  background: var(--pharmily-color-white);
  text-align: center;
}


.top-search__register > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.top-search__register-title {
  width: 100%;
  max-width: none;
  margin: 0 0 60px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: var(--pharmily-color-text) !important;
  font-family: var(--pharmily-font-ja);
  font-size: 3.6rem !important;
  font-weight: 700;
  line-height: 1.45 !important;
  text-align: center;
}

.top-search__register-title::before,
.top-search__register-title::after {
  display: none !important;
}

.top-search__register-text {
  width: 100%;
  max-width: none;
  margin: 0 0 60px !important;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.top-search__benefits {
  display: flex;
  justify-content: center;
  gap: 16px;
  width: max-content;
  max-width: none;
  margin: 0 0 120px !important;
  padding: 0;
}

.top-search__benefits > .wp-block-group__inner-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.top-search__benefit {
  flex: 0 0 auto;
  max-width: none;
  margin: 0 !important;
  padding: 5px 10px;
  background: var(--pharmily-color-yellow);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.top-search__register-note {
  max-width: 100%;
  margin: 0 0 10px !important;
  padding: 0;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.top-search__register-button {
  width: 100%;
  max-width: 628px;
  margin: 0 auto !important;
}

.top-search__register-button .swell-block-button__link {
  min-height: 106px;
  padding: 22px 24px;
  border-radius: 500px;
  font-size: 3.6rem;
  line-height: 1.45;
  transition: all 0.6s;
}

@media (max-width: 1199px) {
  .top-search {
    padding: 100px 24px !important;
  }
  .top-search__register {
    padding: 64px 40px; border-radius: 56px;
  }
  .top-search__register-title {
    font-size: 3rem !important;
  }
  .top-search__register-text {
    font-size: 2rem;
  }

  .top-search__benefits,
  .top-search__benefits > .wp-block-group__inner-container {
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
  }

  .top-search__benefits {
    margin-bottom: 80px !important;
  }
  .top-search__benefit {
    flex-shrink: 1;
    max-width: 100%;
    font-size: 2rem;
  }
  .top-search__register-button .swell-block-button__link {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .top-search {
    padding: 64px 20px !important;
  }

  .top-search__register {
    padding: 40px 20px;
    border-width: 3px;
    border-radius: 28px;
  }

  .top-search__register-title {
    margin-bottom: 24px !important;
    font-size: 2.4rem !important;
  }

  .top-search__register-text {
    margin-bottom: 24px !important;
    font-size: 1.6rem;
    line-height: 1.8;
  }

  .top-search__benefits,
  .top-search__benefits > .wp-block-group__inner-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .top-search__benefits {
    margin-bottom: 36px !important;
  }
  .top-search__benefit {
    font-size: 1.6rem;
  }
  .top-search__register-note {
    font-size: 1.6rem;
  }

  .top-search__register-button .swell-block-button__link {
    min-height: 64px;
    padding: 14px 12px;
    border-width: 3px;
    font-size: 2rem;
  }
}

.top-search {
  overflow: hidden;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 幅を画面いっぱいに広げ、元の上余白は風景の下へ移す。 */
.top-search__transition {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none !important;
  margin: 0 0 180px !important;
  padding: 0;
  transform: translateX(-50%);
  background: var(--pharmily-color-white);
}

.top-search__transition > .wp-block-group__inner-container {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Figmaの風景枠（幅1442px・高さ331px）に合わせて切り抜く。 */
.top-search__scene {
  width: 100%;
  max-width: none;
  height: 22.9542vw;
  overflow: hidden;
  margin: 0 !important;
  padding: 0;
  line-height: 0;
}

.top-search__scene img {
  display: block;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
  width: 110%;
  max-width: none;
  margin-left: -5%;
}

/* GIF自体のアニメーションをそのまま使う。 */
.top-search__coat {
  position: absolute;
  z-index: 1;
  left: 54.1667%;
  bottom: 0;
  width: 25.2083%;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  line-height: 0;
}

.top-search__coat img {
  display: block;
  width: 100%;
  height: auto !important;
}

/* カードの枠から少しはみ出す足元のイラスト。 */
.top-search__register {
  overflow: visible;
}

.top-search__register-image {
  position: absolute;
  z-index: 1;
  right: 40px;
  bottom: -36px;
  width: 201px;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  line-height: 0;
}

.top-search__register-image img {
  display: block;
  width: 100%;
  height: auto !important;
}

@media (max-width: 1199px) {
  .top-search__transition {
    margin-bottom: 100px !important;
  }
  .top-search__register-image {
    right: 24px;
    bottom: -28px;
    width: 160px;
  }
}

@media (max-width: 768px) {
  .top-search__transition {
    margin-bottom: 64px !important;
  }
  .top-search__coat {
    width: 32%;
  }
  .top-search__register-image {
    right: 12px;
    bottom: -22px;
    width: 104px;
  }
}

/*********** 検索セクション ************/
/* TOP：SEARCH見出しと余白 */
..top-search__jobs {
  margin-top: 210px !important;
}
.top-search__heading {
  margin: 0 0 80px !important;
  text-align: center;
}
.top-search__label {
  margin: 0 0 10px !important;
  color: var(--pharmily-color-white);
  font-family: var(--pharmily-font-en);
  font-size: 9.6rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.04em;
}
.top-search__title {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--pharmily-color-text) !important;
  font-family: var(--pharmily-font-ja);
  font-size: 3.6rem !important;
  font-weight: 700;
  line-height: 1.45;
}
.top-search__title::before,
.top-search__title::after {
  display: none !important;
}

/* 共通：求人検索フォーム */
.pharmily-search {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0;
  color: var(--pharmily-color-text);
  font-family: var(--pharmily-font-ja);
}
.pharmily-search .vkfs__labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1092px;
  margin: 0 auto;
  padding: 0;
}
.pharmily-search__field {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0;
}
.pharmily-search__field .vkfs__label-name {
  display: none;
}
.pharmily-search__field .vkfs__input-form {
  width: 100%;
  max-width: none;
  height: 100px !important;
  margin: 0;
  padding: 20px 48px 20px 24px !important;
  border: 4px solid var(--pharmily-color-text) !important;
  border-radius: 0 !important;
  background-color: var(--pharmily-color-white) !important;
  background-position: right 20px center;
  background-size: 24px;
  background-repeat: no-repeat;
  box-shadow: none;
  color: var(--pharmily-color-text) !important;
  font-family: var(--pharmily-font-ja) !important;
  font-size: 3.6rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-align: center;
  cursor: pointer;
}
.pharmily-search .vkfs_submit {
  display: block !important;
  width: 268px !important;
  max-width: 100% !important;
  min-height: 75px;
  margin: 80px auto 0 !important;
  padding: 16px 24px !important;
  border: 4px solid var(--pharmily-color-primary) !important;
  border-radius: 500px !important;
  background: var(--pharmily-color-white) !important;
  box-shadow: none;
  color: var(--pharmily-color-primary) !important;
  font-family: var(--pharmily-font-ja) !important;
  font-size: 2.4rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0;
  text-align: center !important;
  cursor: pointer;
  transition: all 0.6s;
}
.pharmily-search .vkfs_submit:hover {
  opacity: 0.8;
}
.pharmily-search__field .vkfs__input-form:focus,
.pharmily-search .vkfs_submit:focus {
  outline: 2px solid var(--pharmily-color-text);
  outline-offset: 4px;
}

/* 人気条件：以前の仮HTMLに対応。HTMLを置かなければ表示されない。 */
.pharmily-search-preview {
  margin: 80px 0 0 !important;
  padding: 40px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--pharmily-color-text);
  font-family: var(--pharmily-font-ja);
  text-align: center;
}
.pharmily-search-preview__title {
  margin: 0 0 40px !important;
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.45;
}
.pharmily-search-preview__options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
  margin: 0 0 40px;
}
.pharmily-search-preview__option {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}
.pharmily-search-preview__option input {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 3px solid var(--pharmily-color-text);
  border-radius: 0;
  background: var(--pharmily-color-white);
  opacity: 1;
}
.pharmily-search-preview__button {
  display: block;
  width: 268px;
  max-width: 100%;
  min-height: 75px;
  margin: 0 auto;
  padding: 16px 24px;
  border: 4px solid var(--pharmily-color-primary);
  border-radius: 500px;
  background: var(--pharmily-color-white);
  color: var(--pharmily-color-primary);
  font-family: inherit;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  opacity: 1;
}

@media (min-width: 769px) and (max-width: 1199px) {
  .pharmily-search__field .vkfs__input-form {
    font-size: 2.6rem !important;
  }
}
@media (max-width: 768px) {
  .top-search__jobs {
    margin-top: 100px !important;
  }
  .top-search__heading {
    margin-bottom: 40px !important;
  }
  .top-search__label {
    font-size: 5.2rem;
  }
  .top-search__title {
    font-size: 2.4rem !important;
  }
  .pharmily-search .vkfs__labels {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pharmily-search__field .vkfs__input-form {
    height: 72px !important;
    padding: 14px 48px 14px 20px !important;
    border-width: 3px !important;
    font-size: 2.4rem !important;
  }
  .pharmily-search .vkfs_submit {
    min-height: 64px;
    margin-top: 40px !important;
    border-width: 3px !important;
    font-size: 2rem !important;
  }
  .pharmily-search-preview {
    margin-top: 40px !important;
    padding: 32px 20px;
  }
  .pharmily-search-preview__title {
    margin-bottom: 24px !important;
    font-size: 2.4rem;
  }
  .pharmily-search-preview__options {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }
  .pharmily-search-preview__option {
    gap: 12px;
    font-size: 1.6rem;
  }
  .pharmily-search-preview__option input {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    border-width: 2px;
  }
  .pharmily-search-preview__button {
    min-height: 64px;
    border-width: 3px;
    font-size: 2rem;
  }
}

/* プルダウン上の分類名を非表示 */
.pharmily-search__field .vkfs__label-name {
  display: none;
}

/************* 特徴セクション ************/
/* ========================================
   TOP：Pharmilyの特徴
======================================== */
.top-features {
  margin-top: 0 !important;
  padding: 180px 60px !important;
  background: #c2f4f0 !important;
  color: var(--pharmily-color-text);
  font-family: var(--pharmily-font-ja);
  letter-spacing: 0;
}

.top-features > .swell-block-fullWide__inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0;
}

/* 見出し */
.top-features__heading {
  margin: 0 0 80px !important;
  text-align: center;
}

.top-features__label {
  margin: 0 0 10px !important;
  color: var(--pharmily-color-white) !important;
  font-family: var(--pharmily-font-en);
  font-size: 9.6rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.top-features__title {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--pharmily-color-text) !important;
  font-family: var(--pharmily-font-ja);
  font-size: 3.6rem !important;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.top-features__title::before,
.top-features__title::after {
  display: none !important;
}

/* カード全体 */
.top-features__cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0;
}

/* 各カード */
.top-features__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  min-width: 0;
  margin: 0 !important;
  padding: 60px 30px;
  border: 4px solid var(--pharmily-color-text);
  border-radius: 50px;
  background: var(--pharmily-color-soft);
  box-shadow: 10px 10px 0 var(--pharmily-color-text);
  text-align: center;
}

/* イラスト：同じ大きさの枠内に収める */
.top-features__image {
  flex-shrink: 0;
  width: 200px;
  max-width: 100%;
  height: 200px;
  margin: 0 !important;
  padding: 0;
}

.top-features__image img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: contain;
}

/* カードの見出し */
.top-features__card-title {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--pharmily-color-text) !important;
  font-family: var(--pharmily-font-ja);
  font-size: 2.4rem !important;
  font-weight: 700;
   line-height: 1.45;
  text-align: center;
}

.top-features__card-title::before,
.top-features__card-title::after {
  display: none !important;
}

/* カードの本文 */
.top-features__text {
  width: 100%;
  margin: 0 !important;
  color: var(--pharmily-color-text);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 1199px) {
  .top-features {
    padding: 100px 32px !important;
  }

  .top-features__label {
    font-size: 7.2rem;
  }

  .top-features__title {
    font-size: 3rem !important;
  }

  .top-features__card {
    gap: 24px;
    padding: 40px 20px;
    border-radius: 36px;
  }

  .top-features__image {
    width: 160px;
    height: 160px;
  }

  .top-features__card-title {
    font-size: 2rem !important;
  }

  .top-features__text {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .top-features {
    padding: 80px 24px !important;
  }

  .top-features__heading {
    margin-bottom: 40px !important;
  }

  .top-features__label {
    font-size: 4rem;
  }

  .top-features__title {
    font-size: 2.4rem !important;
  }

  .top-features__cards {
    grid-template-columns: 1fr;
    gap: 32px !important;
  }

  .top-features__card {
    gap: 24px;
    padding: 36px 24px;
    border-width: 3px;
    border-radius: 32px;
    box-shadow: 7px 7px 0 var(--pharmily-color-text);
  }

  .top-features__image {
    width: 160px;
    height: 160px;
  }

  .top-features__card-title {
    font-size: 2rem !important;
  }

  .top-features__text {
    font-size: 1.6rem;
    line-height: 1.7;
  }
}

/* FEATURES上端：曲線と人物GIF */
.top-features {
  padding-top: 0 !important;
}

.top-features__transition {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none !important;
  margin: 0 0 180px !important;
  padding: 0;
  transform: translateX(-50%);
}

/* SWELLが生成するグループ内のコンテナ */
.top-features__transition > .wp-block-group__inner-container {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* 曲線 */
.top-features__curve {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  line-height: 0;
}

.top-features__curve img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto !important;
}

/* 人物：曲線の中央下端を基準に配置 */
.top-features__person {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 50%;
  width: 31%;
  max-width: 447px;
  margin: 0 !important;
  padding: 0;
  transform: translate(-50%, -50%);
  line-height: 0;
}

.top-features__person img {
  display: block;
  width: 100%;
  height: auto !important;
}

@media (min-width: 769px) and (max-width: 1199px) {
  .top-features__transition {
    margin-bottom: 140px !important;
  }
}

@media (max-width: 768px) {
  .top-features__transition {
    margin-bottom: 100px !important;
  }

  .top-features__person {
    width: 44%;
    max-width: 230px;
  }
}