/* FAVTOWN キャリア 共通レイアウトスタイル */
:root {
  --249px: 15.5625rem;
}
@media screen and (min-width: 500px) {
  html {
    font-size: 21px;
  }
}
body {
  font-family: "Outfit", "dnp-shuei-gothic-gin-std", sans-serif !important;
  background: #fff;
}
/* PC用レイアウトコンテナ */
.favtown-layout-container {
  width: 100%;
  margin: 0 auto;
  display: block;
  position: relative;
  box-sizing: border-box;
  background-color: #e8f3ff;
}

/* 画面固定位置の背景装飾要素 */
.favtown-layout-container::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/wp-content/plugins/favtown-career/assets/images/pc_bg_ashirai_2.svg"),
    url("/wp-content/plugins/favtown-career/assets/images/pc_bg_ashirai_3.svg"),
    url("/wp-content/plugins/favtown-career/assets/images/pc_bg_ashirai_4.png");
  background-repeat: no-repeat;
  background-size: 20%, 15%, 70%;
  background-position-x: 0, 18%, 40%;
  background-position-y: bottom, 59%, 2%;
  z-index: 1;
  pointer-events: none;
}
@media screen and (max-width: 560px) {
  .favtown-layout-container {
    background: #fff;
  }
  .favtown-layout-container::before {
    display: none;
  }
}

/* PC用サイドメニュー */
.favtown-sidebar {
  display: none;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .favtown-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 27%;
    height: fit-content;
    border-radius: 131.413px 0px 0px 0px;
    background: #fffdea;
    box-sizing: border-box;
    padding: 32px var(--22px) 56px;
  }

  /* サイドバー内でナビゲーションとボタンを強制表示 */
  .favtown-sidebar .sidebar-nav,
  .favtown-sidebar .sidebar-action-button {
    display: flex !important;
  }
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  justify-content: flex-start;
  align-items: center;
  padding: 56px 24px 24px;
  background: #fffdea;
  border-radius: 88px 0px 0px 0px;
  position: relative;
}

.sidebar-menu-item {
  color: #156fc6;
  font-size: var(--16px);
  font-weight: 600;
  text-decoration: none;
  padding: 0;
  text-align: left;
  width: 100%;
  transition: color 0.2s ease;
  letter-spacing: 0.05em;
  line-height: 1.7;
}

.sidebar-menu-item::before {
  display: none;
}

.sidebar-menu-item::after {
  display: none;
}

/* サイドバー内のナビゲーション */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 23.89px;
  width: 100%;
  flex: 1;
}

.sidebar-nav-item {
  color: #156fc6;
  text-decoration: none;

  font-weight: 600;
  font-size: var(--27px);
  line-height: 1.7;
  letter-spacing: 5%;
  text-align: center;
  width: 100%;
  transition: all 0.2s ease;
}

.sidebar-button-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* サイドバー内のアクションボタンコンテナ */
.sidebar-button-container {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  flex-shrink: 0;
}
.sidebar-button-container .default-btn {
  margin: 0;
}

.cta-button img {
  width: var(--251px);
  height: auto;
  margin-left: -3px;
}

/* サイドバー内の装飾要素 */
.sidebar-decoration {
  position: absolute;
  top: 25px;
  right: 60px;
  width: 125.79px;
  height: 98.86px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 126 99" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="%23FFEE56"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

/* ハンバーガーメニューの非表示制御 */
@media (min-width: 1024px) {
  .hamburger-menu,
  .menu-toggle {
    display: none !important;
  }
}

/* FAVTOWNキャリア ヘッダーデザイン - Figma準拠・560px幅ベース */
.favtown-header {
  padding: 0;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  z-index: 1000;
  margin-bottom: 30px;
}
.favtown-content-wrapper {
  padding-top: 60px !important;
}

.header-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media screen and (min-width: 560px) {
  .header-container {
    margin-top: 12px;
  }
}

/* ロゴ */
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-image {
  height: 30px;
  width: auto;
}
@media screen and (min-width: 560px) {
  .logo-image {
    height: 40px;
  }
}

/* ナビゲーション & 検索エリア */
.nav-search-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 企業検索ボタン */
.search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 2px solid #ffee56;
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  color: #156fc6;
  font-weight: 600;
  font-size: var(--14px);
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  height: 42px;
  box-sizing: border-box;
}
@media screen and (min-width: 560px) {
  .search-btn {
    padding: 12px 24px;
    height: 56px;
  }
}

.search-icon {
  display: flex;
  align-items: center;
  position: relative;
  width: 13px;
  height: 13px;
}

.search-circle {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #156fc6;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-circle::before {
  content: "";
  width: 7.31px;
  height: 7.31px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ハンバーガーメニュー */
.menu-toggle {
  width: 42px;
  height: 42px;
  background: #156fc6;
  border: none;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

/* PC時（1024px以上）はハンバーガーメニューを非表示 */
@media (min-width: 1024px) {
  .menu-toggle {
    display: none !important;
  }
}

/* 3本線ハンバーガーアイコン - Figmaデザイン準拠 */
.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: all 0.2s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* 3本線の配置 */
.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%);
}

.menu-toggle span:nth-child(3) {
  bottom: 14px;
}

/* モバイルナビゲーション */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  z-index: 2000;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.nav-mobile.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ナビゲーションヘッダー */
.nav-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px var(--30px) 16px;
  background: #ffffff;
}

.nav-mobile-logo {
  flex: 1;
}

.nav-logo-image {
  height: 30px;
  width: auto;
}

.nav-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #156fc6;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.close-icon {
  position: relative;
  width: 14px;
  height: 14px;
}

.close-line {
  position: absolute;
  width: 14px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  top: 50%;
  left: 50%;
  transform-origin: center;
}

.close-line:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-line:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.nav-mobile-container {
  height: 100%;
  background: #fffdea;
  border-radius: 88px 0px 0px 0px;
}
/* ナビゲーションメニュー部分 */
.nav-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
  align-items: center;
  padding: 40px 40px 0;
  background: #fffdea;
  border-radius: 88px 0px 0px 0px;
  position: relative;
}
.nav-mobile-menu .nav-mobile-ashirai,
.sidebar-ashirai {
  position: absolute;
  top: 24px;
  right: 0;
  transform: translateX(-33%);
  width: 100px; /* 適切なサイズに調整 */
  height: auto; /* アスペクト比を保つために自動 */
}
.sidebar-ashirai {
  top: 50px;
  z-index: 10;
}
.nav-mobile-link {
  color: #156fc6;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 0;
  text-align: left;
  width: 100%;
  transition: color 0.2s ease;
  letter-spacing: 0.05em;
  line-height: 1.7;
}

.nav-mobile-button-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 40px 24px;
}
.nav-mobile-button .default-btn {
  margin: 0;
  gap: var(--9px);
}
.nav-mobile-button .default-btn svg {
  width: var(--16px);
  height: var(--16px);
}

/* 無料登録ボタン部分 */
.nav-mobile-register {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}
.nav-mobile-register .cta {
  margin: 0;
}
.nav-mobile-register .cta .cta-btn img {
  width: var(--251px);
  height: auto;
  margin-left: -3px;
}
.nav-mobile-register .cta-sub {
  display: none;
}
.register-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #ffea34 0%, #ffface 100%);
  border: 3px solid #ffffff;
  border-radius: 999px;
  padding: 18px 0;
  text-decoration: none;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  width: 243px;
  justify-content: center;
}

.register-text {
  color: #156fc6;
  font-size: var(--14px);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.register-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #156fc6;
  border-radius: 50%;
  position: relative;
}

.register-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid #ffffff;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  margin-left: 1px;
}

/* フッターデザイン */
.favtown-footer {
  padding-top: 48px;
  padding-bottom: 16px;
  color: #156fc6;
  text-align: center;
}

.favtown-footer .footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--48px);
}

.footer-nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 0 0 0;
  text-align: left;
}

.footer-nav-link a {
  color: #156fc6;

  font-size: var(--14px);
  font-style: normal;
  font-weight: 600;
  line-height: 170%;
  padding: 16px 0;
  width: 100%;
}

.footer-nav-icon {
  display: inline-block;
  color: #156fc6;
  font-size: var(--22px);
  margin-right: 8px;
}

.footer-nav-divider {
  width: 100%;
  border-bottom: 1px dashed #156fc6;
  margin: 0;
}

.favtown-footer .footer-logo {
  margin: 32px 0 8px;
  font-size: var(--20px);
  font-weight: 600;
  color: #156fc6;
  text-align: center;
}

.favtown-footer .copyright {
  padding: 0 var(--48px);
  text-align: left;
  color: #949494;
  font-feature-settings: "palt" on;
  font-size: var(--10px);
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 15px */
  letter-spacing: 0.5px;
}

/* フッター下部コンテナ */
.footer-bottom-container {
  position: relative;
  z-index: 10;
  padding-bottom: 16px;
}

/* フッター下部リンク */
.footer-bottom-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px var(--48px);
  font-size: var(--12px);
  font-weight: 600;
}

.footer-bottom-links a {
  color: #156fc6;
  text-decoration: none;
  transition: text-decoration 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
}
.footer-bottom-divider {
  width: 100%;
  height: 2px;
  border-top: 2px solid #e8f3ff;
}
.footer-bottom-links .footer-company-list {
  list-style: disc;
  margin-left: 1rem;
}
.footer-bottom-links .footer-company-list li {
  padding-bottom: 8px;
}

.footer-ashirai {
  position: relative;
  height: 255px;
  z-index: 1;
}
.footer-ashirai .footer-ashirai-image {
  position: absolute;
  top: -11em;
  right: 0px;
  width: 100%;
}

/* メニュー開放時にbodyのスクロールを防止 */
body.menu-open {
  overflow: hidden;
}

/* ハンバーガーメニューの位置調整 */
.menu-toggle {
  z-index: 1001;
}

/* ハンバーガーメニューの JavaScript 制御用 */
.menu-toggle.active span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

/* ハンバーガーメニューとナビゲーションのスタイル */
@media (max-width: 768px) {
  .favtown-nav {
    display: none;
  }
  .hamburger-menu {
    display: block;
  }
}

@media (min-width: 769px) {
  .hamburger-menu {
    display: none;
  }
}
