/* ============================================================= *

animation

* ============================================================= */
@keyframes heroTextAnimation {
  0% {
    transform: translateY(2em);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes crossfade {
  0% {
    opacity: 0;
  }
  12.5% {
    opacity: 1;
  }
  33.33% {
    opacity: 1;
  }
  45.83% {
    z-index: 9;
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
  }
}

/* ============================================================= *

Index

* ============================================================= */

/* p-index-site
=============================== */

.p-index-box {
  display: flex;
  justify-content: flex-start;
  gap: calc(9px + var(--slope-1px) * 14);;
  width: 100%;
}
@media screen and (max-width: 767px) {
  .p-index-box {
    justify-content: center;
  }
}

.p-index-button {
  border: 1px solid var(--base-color);
  border-radius: 4.27px;
  padding-block: calc(30px + var(--slope-1px) * 19);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  flex: 1;
  text-decoration: none;
  max-width: 200px;
  position: relative;
}
@media screen and (max-width: 767px) {
  .p-index-button {
    max-width: 100%;
  }
}

.p-index-button::after {
  content: "";
  display: inline-block;
  width: calc(12px + var(--slope-1px) * 8);
  height: calc(12px + var(--slope-1px) * 8);
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  bottom: calc(7px + var(--slope-1px) * 4);
  right: calc(7px + var(--slope-1px) * 4);
  background-image: url(/corporate/assets/img/icon_arrow.svg);
}


.p-index-button__name {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: calc(10px + var(--slope-1px) * 4);
  font-weight: bold;
}
@media screen and (max-width: 767px) {
  .p-index-button__name {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
}

.p-index-button__name span:last-child {
  font-size: 14px;
}

.p-index-button[data-pref="shimanechuo"] {
  background-color: var(--bg-color-shimanechuo);
  background-image: url(/corporate/assets/img/silhouette_shimane.png);
}
.p-index-button[data-pref="saninchuo"] {
  background-color: var(--bg-color-saninchuo);
  background-image: url(/corporate/assets/img/silhouette_tottori.png);
}
.p-index-button[data-pref="tsuyama"] {
  background-color: var(--bg-color-tsuyama);
  background-image: url(/corporate/assets/img/silhouette_tottori.png);
}

/* p-index-section
=============================== */
.p-index-section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 500;
  font-size: clamp(28px, -60.8172px + 7.52688vw, 42px);
  font-family: var(--title-font-family);
  line-height: 1;
  line-height: 1.12;

  margin-block: var(--leading-trim);
}

.p-index-section-title span {
  margin-block: var(--leading-trim);
}

.p-index-section-title::before {
  content: attr(data-en);
  display: inline;
  color: var(--key-color);
  letter-spacing: .3px;
  font-weight: 700;
  font-size: calc(10px + var(--slope-1px) * 2);
  font-family: var(--en-font-family);

  margin-block: var(--leading-trim);
}

/* p-index-hero
=============================== */
.p-index-hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--bg-color);
  border-bottom: 4px solid var(--key-color);
}

.p-index-hero {
  z-index: 0;
  /* max-width: var(--_hero-width); */
}

.p-index-hero::before {
  content: "";
  position: absolute;
  top: 0;
  z-index: -1;
  width: 100vw;
  height: 100%;
  background: var(--bg-color);

  margin-inline: calc(50% - 50cqi);
}

.p-index-hero-fig img {
  width: 100%;
}

.p-index-hero-fig._pc {
  width: 100%;
}
@media screen and (max-width: 767px) {
  .p-index-hero-fig._pc {
    display: none;
  }
}

.p-index-hero-fig._sp {
  display: none;
  width: 100%;
}
@media screen and (max-width: 767px) {
  .p-index-hero-fig._sp {
    display: block;
  }
}

/* p-index-photo
=============================== */
.p-index-photo-container {
  background: var(--bg-color);
  width: 100%;
}

.p-index-photo {
  width: 100%;
}

.p-index-photo__foot {
  position: relative;
  width: 100%;
}

@media screen and (max-width: 767px) {
  .p-index-photo__foot {
    width: calc(100% + var(--inner-padding)*2);
    height: auto;

    margin-inline: calc(-1* var(--inner-padding));
  }
}

.p-index-photo-slider-container {
  overflow: hidden;
  display: flex;
  width: 100%;
}

.p-index-photo-slider {
  display: flex;
  width: fit-content;
  animation: recruitSlideX 90s infinite linear .2s both;
}

@media screen and (max-width: 767px) {
  .p-index-photo-slider {
    display: flex;
    width: fit-content;
    animation: recruitSlideX 90s infinite linear .2s both;
  }
}

.p-index-photo-slider li {
  box-sizing: border-box;
  min-width: 30cqi;
}

@media screen and (max-width: 767px) {
  .p-index-photo-slider li {
    min-width: 45cqi;
    min-height: 100%;
    aspect-ratio: 248 / 143;
  }
}

.p-index-photo-slider li img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

@keyframes recruitSlideY {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0%);
  }
}

@keyframes recruitSlideX {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}
