/*
Theme Name: Yogibo Recruit
Template: twentytwentyfive
*/
a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
  outline-width: 2px;
  outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation
  .wp-block-navigation-submenu
  .wp-block-navigation-item:not(:last-child) {
  margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation
  .wp-block-navigation-item
  .wp-block-navigation-item__content {
  outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation
  .wp-block-navigation-item
  ul.wp-block-navigation__submenu-container
  .wp-block-navigation-item__content {
  outline-offset: 0;
}
:where(.wp-site-blocks) > * {
  margin-block-start: 0;
}
/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
  text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
}

/* トップページ */
main {
  padding: 0;
}
@media screen and (max-width: 767px) {
  .br-sp {
    display: block;
  }
}
@media screen and (min-width: 768px) {
  .br-sp {
    display: none;
  }
}

/* KV */
.top__kv .top__kv-image {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  transition: 0.4s;
  z-index: -1;
  animation: fadeIn 2s ease 0s 1 normal;
}
.wp-block-cover__background{
  background: rgba(0, 0, 0, 0.2);
}
.top__kv-image-wrapper > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  transform: scale(1);
  transform-origin: center center;
  opacity: 0;
  transition: opacity 1.5s ease, transform 8s ease,
    background-position 8s linear;
  z-index: 0;
}

.top__kv-image-wrapper > div.active {
  opacity: 1;
  z-index: 1;
}

/* PC：ズームアニメーションをクラスで制御 */
@media (min-width: 768px) {
  .top__kv-image-wrapper > div.pc-animating {
    transform: scale(1.05);
  }
}

/* SP：背景位置アニメーション */
@media (max-width: 767px) {
  .top__kv-image-wrapper > div.sp-animating {
    background-position: 30% center;
  }

  .top__kv-image-wrapper > div {
    background-position: 60% center; /* 初期位置を右寄りにしておく */
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.top__kv .wp-block-cover__background {
  transition: 0.4s;
}
.top__kv-inner {
  overflow: hidden;
}

@media (min-width: 768px) {
  .lead__inner {
    padding: 3rem 10vw !important;
  }
}
/* slickスライダー */
.top-slick-slider {
  display: block !important;
  margin-top: 0;
}
.top-slick-slider .blocks-gallery-item {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}
.top-slick-slider img {
  display: block;
  width: 100%;
  height: 50vw;
  object-fit: cover;
  padding: 0.5rem;
}

/* インタビュー */
.top__interview {
  overflow: hidden;
}

/* slickがliに適用されるように調整 */
.top__interview-list ul.wp-block-post-template {
  display: block !important; /* slickが書き換えるので必要 */
  padding: 0;
  margin: 0;
}

.top__interview-list ul.wp-block-post-template li.wp-block-post {
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  padding: 0.5rem;
}
.top__interview-list ul.wp-block-post-template li.wp-block-post:focus {
  outline-width: 0;
}
.top__interview-list .slick-list {
  overflow: visible;
}
.top__interview-list .slick-prev,
.top__interview-list .slick-next {
  z-index: 999;
}
@media (min-width: 768px) {
}

.top__interview-info {
  width: 100%;
}
.top__interview .wp-block-read-more {
  font-size: 0 !important;
  line-height: 0;
  margin-left: auto;
}
.top__interview .wp-block-read-more:before {
  content: "\f345";
  font-size: 1rem !important;
  font-family: dashicons;
  font-weight: normal;
  display: inline-block;
  margin: 0 0 0 6px;
  vertical-align: top;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: rotate(0);
  color: inherit;
  position: relative;
  background: transparent;
  height: auto;
  width: auto;
  right: auto;
  line-height: inherit;
}

/* 追従ボタン */
.top__recruit-button {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  height: 6rem !important;
  width: 15rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  margin: 0 !important;
}
.wp-block-button.top__recruit-button__link {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 !important;
  position: absolute;
}
.top__recruit-button__link a {
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-template-rows: 2fr 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  line-height: 1rem;
  place-content: center;
  place-items: center;
}
.wp-block-button.top__recruit-button__link a:before {
  height: 3.5rem !important;
  content: "";
  background: url(./assets/images/hugibo.jpg) center / cover no-repeat;
  border-radius: 999px;
  display: block;
  aspect-ratio: 1;
  grid-area: 1 / 1 / 3 / 2;
}
.wp-block-button.top__recruit-button__link a strong {
  grid-area: 1 / 2 / 2 / 3;
  font-size: 1.8rem;
  line-height: 1.6rem;
  font-weight: 500;
}
.wp-block-button.top__recruit-button__link a em {
  grid-area: 2 / 2 / 3 / 3;
  font-style: normal;
  font-size: 0.9rem;
}
.top__recruit-button__link a:hover {
  background: linear-gradient(135deg, rgb(218, 101, 18) 1%, rgb(244, 133, 28) 100%);
  color: white;
}
@media screen and (max-width: 767px) {
  .top__recruit-button {
    height: 5rem !important;
    width: 13rem !important;
  }
  .wp-block-button.top__recruit-button__link a:before {
    height: 3rem !important;
  }
  .wp-block-button.top__recruit-button__link a strong {
    font-size: 1.4rem;
    line-height: 1.2rem;
  }
  .wp-block-button.top__recruit-button__link a em {
    font-size: 0.7rem;
  }
}
/* 福利厚生 */
.top__benefit-table {
  border-radius: 1rem;
  overflow: hidden;
}
.top__benefit-table table {
  border: none;
}
.top__benefit-table thead,
.top__benefit-table th {
  text-align: left;
  color: var(--wp--preset--color--accent-1);
  border: none;
}
.top__benefit-table th {
  border: none;
  padding: 1rem;
}
.top__benefit-table td {
  padding: 1rem;
  border: none;
  border-bottom: 1px dotted #eee;
}
.top__benefit-table tr:last-of-type td {
  border-bottom: none;
}


/* フッターメニュー非表示 */
.hfe-nav-menu__breakpoint-none.elementor-hidden-desktop {
  display: none;
}

