@charset "UTF-8";
/*
 * ヘッダー（本体フロントと同一デザイン）
 *
 * 本体 Laravel の ECREW本体/public/assets/css/scss/layout/_header.scss を移植したもの。
 * 認証系（通知ベル・キープ・ログイン/会員登録）は WP では出力しないため、該当スタイルは除外。
 *
 * 本体は html font-size 87.5%(14px)→xl で 100%(16px) の rem 設計。WP は 16px 固定のため、
 * 寸法が狂わないよう rem を px に変換して移植している（SP 実寸・広幅 PC 実寸が一致するよう px 直値化）。
 *
 * ブレイクポイントは本体を踏襲（lg=992px / xl=1200px）。テーマ標準の pc/sp(768) とは別系統のため、
 * 当ファイル内に局所 mixin を定義する。
 *
 * 本体ヘッダーを変更した場合は当ファイルと header-content.php の手動追随が必要。
 */
/* コンテナ（本体 .container-lg 相当。ヘッダー内に閉じるため header 接頭辞） */
.header__container {
  width: 100%;
  margin-inline: auto;
}
@media screen and (min-width: 992px) {
  .header__container {
    max-width: 936px;
  }
}
@media screen and (min-width: 1200px) {
  .header__container {
    max-width: 1116px;
  }
}
@media screen and (min-width: 1400px) {
  .header__container {
    max-width: 1200px;
  }
}

/* ヘッダー本体 */
.is-noscroll {
  overflow-y: hidden;
}
@media screen and (min-width: 992px) {
  .is-noscroll {
    overflow-y: auto;
  }
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  margin: auto;
  width: 100%;
  z-index: 500;
  padding-inline: 20px;
  background-color: #FFF;
  transition: box-shadow ease 0.3s;
}
@media screen and (min-width: 992px) {
  .header {
    padding-inline: 0;
  }
}

.header.is-header-scrolled {
  box-shadow: 0px 3px 3px -3px #BFBFBF;
}

.header__top {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.header__logo {
  padding-top: 7px;
  padding-right: 14px;
  padding-bottom: 7px;
  font-size: 14px;
  line-height: 1.6;
}
@media screen and (min-width: 992px) {
  .header__logo {
    padding-top: 10.5px;
    padding-right: 21px;
    padding-bottom: 10.5px;
  }
}
@media screen and (min-width: 1200px) {
  .header__logo {
    padding-top: 12px;
    padding-right: 24px;
    padding-bottom: 12px;
    font-size: 16px;
  }
}

.header__logo-inner {
  display: inline;
}

.header__menu-wrapper {
  width: 100%;
  min-width: 280px;
  max-width: 480px;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 400;
  transition: opacity 0.3s, visibility 0.3s;
  opacity: 0;
  visibility: hidden;
  background-color: #fff;
  padding: 64px 24px 24px 24px;
  pointer-events: none;
}
@media screen and (min-width: 992px) {
  .header__menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    max-width: 100%;
    position: relative;
    opacity: 1;
    visibility: visible;
    padding: 0;
    background-color: transparent;
    pointer-events: auto;
  }
}

.is-nav-open .header__menu-wrapper {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  overflow-y: auto;
}

.header__logo--usually {
  width: 132px;
  display: inline;
  vertical-align: bottom;
}

.header__btn {
  width: 38px;
  height: 38px;
  border-radius: 38px;
  position: fixed;
  top: 8px;
  right: 10px;
  z-index: 999;
}
@media screen and (min-width: 992px) {
  .header__btn {
    display: none;
  }
}

.header__btn:hover {
  cursor: pointer;
}

.is-nav-open .header__btn {
  transition: background-color ease 0.3s;
}

.is-nav-open .header__btn:hover {
  background-color: #f5f5f5;
}

.header__bar {
  width: 25px;
  height: 2px;
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: #161616;
  transition: 0.2s;
  visibility: visible;
}

.header__bar-top {
  top: 10px;
}

.header__bar-mid {
  top: 50%;
  margin-top: -1px;
}

.header__bar-bottom {
  bottom: 10px;
}

.is-nav-open .header__bar-top {
  transform: translate(-50%, 8px) rotate(45deg);
}

.is-nav-open .header__bar-mid {
  opacity: 0;
  transition: opacity 0.3s;
}

.is-nav-open .header__bar-bottom {
  transform: translate(-50%, -8px) rotate(-45deg);
}

.header__black-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;
  background-color: #161616;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
  border: none;
}
@media screen and (min-width: 992px) {
  .header__black-bg {
    display: none;
  }
}

.is-nav-open .header__black-bg {
  opacity: 0.25;
  visibility: visible;
}

.header__nav {
  flex-grow: 1;
}

.header__search {
  max-width: 380px;
  margin-inline: auto;
}
@media screen and (min-width: 992px) {
  .header__search {
    max-width: 218px;
    margin-inline: 0;
  }
}

.header__search-form {
  display: flex;
  align-items: center;
  border: 1px solid #ece6e3;
  border-radius: 5px;
  min-width: 218.75px;
  background-color: #FCFCFC;
  height: 48px;
}
@media screen and (min-width: 992px) {
  .header__search-form {
    height: 42px;
  }
}
@media screen and (min-width: 1200px) {
  .header__search-form {
    min-width: 250px;
  }
}

.header__search-box {
  font-size: 12px;
  padding-right: 1.5em;
  padding-left: 1.5em;
  min-width: 15em;
  height: 100%;
  flex-grow: 1;
  color: #777777;
  line-height: 1;
  background-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}
@media screen and (min-width: 992px) {
  .header__search-box {
    padding-right: 10px;
    padding-left: 10px;
  }
}

.header__search-form .header__search-box {
  border: none;
  border-radius: 0;
}

.header__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 12px;
  padding-left: 16px;
  border-radius: 5px;
}
@media screen and (min-width: 992px) {
  .header__search-btn {
    padding: 10px;
    border-radius: 0;
  }
}

.header__search-btn-img {
  display: block;
}
@media screen and (min-width: 992px) {
  .header__search-btn-img {
    filter: brightness(0) saturate(100%) invert(0%) sepia(9%) saturate(568%) hue-rotate(322deg) brightness(98%) contrast(83%);
  }
}

.header__btn-menu-inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  row-gap: 22px;
  margin-top: 18px;
}
@media screen and (min-width: 992px) {
  .header__btn-menu-inner {
    flex-direction: row;
    height: 100%;
    margin-top: 0;
  }
}

/* テキスト型ボタン（求人掲載希望の方へ） */
.header__text-btn {
  width: 100%;
  max-width: 380px;
}
@media screen and (min-width: 992px) {
  .header__text-btn {
    width: auto;
    max-width: initial;
    margin-right: 20px;
  }
}

.header__text-btn-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  padding-top: 18px;
  border-top: 1px solid #f0eae7;
}
@media screen and (min-width: 992px) {
  .header__text-btn-list {
    justify-content: center;
    padding-top: 0;
    border-top: none;
  }
}

.header__text-btn-link {
  display: block;
  color: #161616;
  font-size: 12px;
  font-weight: 500;
}
@media screen and (min-width: 992px) {
  .header__text-btn-link {
    color: #161616;
    font-weight: 500;
  }
}

/* SP: ドロワー内メニュー / PC: グローバルナビ帯 */
.header__bottom-wrap {
  width: 100%;
  max-width: 380px;
  overflow: hidden;
}
@media screen and (min-width: 992px) {
  .header__bottom-wrap {
    max-width: 100%;
    background-color: #FFEEF1;
  }
}

@media screen and (min-width: 992px) {
  .header__bottom-wrap--sp {
    display: none;
  }
}

.header__bottom-wrap--pc {
  display: none;
}
@media screen and (min-width: 992px) {
  .header__bottom-wrap--pc {
    display: block;
  }
}

.header__bottom {
  margin-top: 10px;
  background-color: #FFEEF1;
  border-radius: 5px;
}
@media screen and (min-width: 992px) {
  .header__bottom {
    margin-top: 0;
    background-color: transparent;
  }
}

@media screen and (min-width: 576px) {
  .header__menu-list {
    display: flex;
    flex-wrap: wrap;
  }
}
@media screen and (min-width: 992px) {
  .header__menu-list {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
}

.header__menu-item {
  position: relative;
  padding: 8px 15px;
}
@media screen and (min-width: 576px) {
  .header__menu-item {
    flex: 1 0 100%;
  }
}
@media screen and (min-width: 992px) {
  .header__menu-item {
    flex-basis: 25%;
    padding: 0;
  }
}

.header__menu-item + .header__menu-item::after {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  margin-inline: auto;
  height: 2px;
  transform: scaleY(0.5);
  transform-origin: top;
  background-color: rgba(201, 74, 92, 0.15);
  content: "";
}
@media screen and (min-width: 992px) {
  .header__menu-item + .header__menu-item::after {
    content: none;
  }
}

.header__menu-link {
  color: #161616;
  font-size: 12px;
  font-weight: 700;
  position: relative;
  padding: 16px 18px;
  padding-right: 2em;
  display: block;
  margin: 0;
  border-radius: 5px;
}
@media screen and (min-width: 992px) {
  .header__menu-link {
    border: none;
    border-radius: 0;
    padding: 12px 0;
    height: 45px;
    font-size: 13px;
    text-align: center;
  }
}

@media (hover: hover) {
  .header__menu-link:hover {
    color: #161616;
    background-color: rgba(201, 74, 92, 0.08);
    opacity: 1;
  }
}
.header__menu-link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2em;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #F01C3D;
  border-bottom: 1.5px solid #F01C3D;
  transform: translateY(-50%) rotate(-45deg);
}
@media screen and (min-width: 992px) {
  .header__menu-link::after {
    content: none;
  }
}

/* SP ドロワー内の見出し「メニュー」 */
.header-sp__ttl {
  font-size: 12px;
}
@media screen and (min-width: 992px) {
  .header-sp__ttl {
    display: none;
  }
}

.header-sp__ttl::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 12px;
  background: #F01C3D;
  border-radius: 5px;
  margin-right: 8px;
}

/* ログイン / 会員登録（未ログイン表示で固定出力。本体 _header.scss の header__box-btn 系を移植） */
.header__box-btn-list {
  display: flex;
  column-gap: 10px;
  max-width: 380px;
  width: 100%;
}
@media screen and (min-width: 992px) {
  .header__box-btn-list {
    column-gap: 0;
    max-width: 400px;
    height: 100%;
    width: auto;
  }
}

.header__box-btn-item {
  flex: 1 50%;
}
@media screen and (min-width: 992px) {
  .header__box-btn-item {
    flex: auto;
    border-radius: 0;
  }
}

.header__box-btn-link {
  height: 100%;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  color: #3E3E3E;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 8px;
  padding-top: 13px;
  padding-bottom: 13px;
  padding-left: 11px;
  padding-right: 11px;
  border-top: 1.5px solid #F01C3D;
  border-right: 1.5px solid #F01C3D;
  border-bottom: 1.5px solid #F01C3D;
  border-left: 1.5px solid #F01C3D;
  border-radius: 5px;
}
@media screen and (min-width: 992px) {
  .header__box-btn-link {
    position: relative;
    flex-direction: column;
    gap: 2px;
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    transition: border ease 0.3s, background-color ease 0.3s;
  }
}

@media screen and (min-width: 992px) {
  .header__box-btn-item:first-of-type .header__box-btn-link {
    border-right: 0;
    border-left: 1px solid #ece6e3;
  }
  .header__box-btn-item:last-of-type .header__box-btn-link {
    border-right: 1px solid #ece6e3;
    border-left: 0;
  }
  .header__box-btn-link::after {
    display: inline-block;
    position: absolute;
    width: 1px;
    height: 100%;
    transition: background-color ease 0.3s;
    content: "";
  }
  .header__box-btn-item:first-of-type .header__box-btn-link::after {
    right: 0;
    background-color: #ece6e3;
  }
  .header__box-btn-item:last-of-type .header__box-btn-link::after {
    left: -1px;
  }
  .header__box-btn-item:first-of-type .header__box-btn-link:hover {
    border-left: 1px solid #F01C3D;
  }
  .header__box-btn-item:first-of-type .header__box-btn-link:hover::after {
    background: #F01C3D;
  }
  .header__box-btn-item:last-of-type .header__box-btn-link:hover {
    border-right: 1px solid #F01C3D;
  }
  .header__box-btn-item:last-of-type .header__box-btn-link:hover::after {
    background: #F01C3D;
  }
}

.header__box-btn-link::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background: no-repeat center/contain;
}

.header__box-btn-link--login {
  color: #F01C3D;
}
@media screen and (min-width: 992px) {
  .header__box-btn-link--login {
    color: #3E3E3E;
  }
}
@media (hover: hover) {
  .header__box-btn-link--login:hover {
    background-color: #FDF4F6;
    opacity: 1;
  }
}
@media screen and (hover: hover) and (min-width: 992px) {
  .header__box-btn-link--login:hover {
    color: #3E3E3E;
  }
}
.header__box-btn-link--login::before {
  background-color: #F01C3D;
  mask-image: url(../img/base/icon-login.svg);
}

.header__box-btn-link--person {
  color: #FFF;
  background-color: #F01C3D;
}
@media screen and (min-width: 992px) {
  .header__box-btn-link--person {
    color: #3E3E3E;
    background-color: #FFF;
  }
}
@media (hover: hover) {
  .header__box-btn-link--person:hover {
    background-color: #CD1B36;
    opacity: 1;
    color: #FFF;
  }
}
@media screen and (hover: hover) and (min-width: 992px) {
  .header__box-btn-link--person:hover {
    background-color: #FDF4F6;
    color: #3E3E3E;
  }
}
.header__box-btn-link--person::before {
  background-color: #FFF;
  mask-image: url(../img/base/icon-person.svg);
}
@media screen and (min-width: 992px) {
  .header__box-btn-link--person::before {
    background-color: #F01C3D;
  }
}
