/* ========================================
    ローディング
======================================== */
.loading {
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow: hidden;
    background-color: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transition:
        opacity .8s ease,
        visibility .8s ease;
}

.loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* うさぎ全体 */
.loading__inner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: clamp(4.25rem, calc(5vw + 3rem), 7.5rem);
    aspect-ratio: 334/581;
    transform: translateX(-100%);
    will-change: transform;
}

/* 歩き始める */
.loading.is-walking .loading__inner {
    animation: rabbit-move 4s linear forwards;
}

/* うさぎ画像 */
.loading__rabbit {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 画像共通 */
.loading__rabbit-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    backface-visibility: hidden;
}

/* 1枚目 */
.loading__rabbit-img--01 {
    opacity: 1;
}

/* 2枚目 */
.loading__rabbit-img--02 {
    opacity: 0;
}

/* 歩行アニメーション */
.loading.is-walking .loading__rabbit-img--01 {
    animation: rabbit-frame01 1s steps(1, end) infinite;
}

.loading.is-walking .loading__rabbit-img--02 {
    animation: rabbit-frame02 1s steps(1, end) infinite;
}

/* 左から右へ */
@keyframes rabbit-move {
    0% {
        left: 0;
        transform: translateX(-100%);
    }

    100% {
        left: 100%;
        transform: translateX(0);
    }
}

/* 1枚目 */
@keyframes rabbit-frame01 {

    0%,
    49.99% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

/* 2枚目 */
@keyframes rabbit-frame02 {

    0%,
    49.99% {
        opacity: 0;
    }

    50%,
    100% {
        opacity: 1;
    }
}

@media screen and (max-width:480px) {
    .loading__inner {
        bottom: var(--header-height-sp);
    }
}

/* ========================================
    固定うさぎ
======================================== */
.rabbit-fixed {
    position: fixed;
    z-index: 500;
    top: 50%;
    right: 0;
    width: clamp(9.6875rem, 13.72vw, 12.35rem);

    /* 初期状態：画面右側に隠す */
    transform: translate(100%, -50%);
    scale: 1;
    transform-origin: right center;
    opacity: 0;
    visibility: hidden;

    transition:
        transform .8s cubic-bezier(.22, 1, .36, 1),
        scale .5s ease,
        opacity .5s ease,
        visibility .8s;
}

/* 登場 */
.rabbit-fixed.is-show {
    transform: translate(0, -50%);
    opacity: 1;
    visibility: visible;
}

/* スタッフ紹介エリアに入ったら縮小 */
.rabbit-fixed.is-small {
    scale: .8;
}


/* モーダルを開くときは右側へ引っ込む */
.rabbit-fixed.is-retreat {
    transform: translate(100%, -50%);
    opacity: 0;
    visibility: hidden;
}

body.is-menu-open .rabbit-fixed {
        opacity: 0;
        visibility: hidden;
        transform: translateX(110%);
    }

.rabbit-fixed__button {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.rabbit-fixed__button img {
    display: block;
    width: 100%;
    height: auto;
}

@media screen and (max-width:480px) {
    .rabbit-fixed {
        top: unset;
        bottom: calc(var(--header-height-sp) - 1rem);
        transform: translate(100%, 0);
    }

    .rabbit-fixed.is-show {
        transform: translate(0, 0);
    }

    .rabbit-fixed.is-retreat {
        transform: translate(100%, 0);
    }
}


/* ========================================
    キャラクター紹介モーダル
======================================== */
.rabbit-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.rabbit-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.rabbit-modal__bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background-color: rgba(0, 0, 0, .25);
    overflow-y: auto;
}

.rabbit-modal__content {
    position: relative;
    width: min(100%, 54.25rem);
    max-height: calc(100vh - 4rem);
    background-color: var(--base-color01);
    border-radius: 1rem;
    overflow: hidden;
}

.rabbit-modal__close {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 auto;
    padding: 0;
    width: 3rem;
    height: 3rem;
    color: var(--base-color02);
    font-size: 2rem;
    line-height: 1;
    letter-spacing: normal;
    background: #F27638;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.rabbit-modal__inner {
    width: 100%;
    max-height: calc(100dvh - 4rem);
    padding: 7rem clamp(1.75rem, 5vw, 4.5rem) 4rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* キャラクター */
.rabbit-modal-character {
    position: absolute;
    top: 10rem;
    right: 0;
    width: 10rem;

    /* 初期状態：右側に隠す */
    transform: translateX(100%);
    opacity: 0;

    transition:
        transform .7s cubic-bezier(.22, 1, .36, 1),
        opacity .5s ease;
}

/* モーダルが開いたら登場 */
.rabbit-modal.is-character-show .rabbit-modal-character {
    transform: translateX(0);
    opacity: 1;
}

.rabbit-modal-character img {
    display: block;
    width: 100%;
    height: auto;
}

/* プロフィール */
.rabbit-modal__profile {
    margin-top: 1.5rem;
}

.rabbit-modal__position {
    line-height: 1;
    letter-spacing: .1em;
}

.rabbit-modal__name {
    margin-top: 1rem;
    font-size: clamp(1.625rem, 2.083vw, 1.875rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: .06em;
}

/* タグ */
.rabbit-modal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
    margin-top: 1.5rem;
}

.rabbit-modal__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: .46875rem 1rem;
    background-color: var(--background-color03);
    color: var(--accent-color03);
    font-size: .8125rem;
    line-height: 1;
    letter-spacing: .04em;
    border-radius: 100vmax;
}

/* 本文 */
.rabbit-modal__body {
    display: grid;
    grid-template-columns: minmax(0, 23.5rem) minmax(0, 19.25rem);
    align-items: flex-end;
    gap: clamp(3rem, 2.7vw, 2.5rem);
    margin-top: 2rem;
}

.rabbit-modal__message p {
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: .04em;
}

.rabbit-modal__message p+p {
    margin-top: 1em;
}

/* 詳細 */
.rabbit-modal__details {
    display: flex;
    flex-direction: column;
    gap: .875rem;
}

.rabbit-modal__detail {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: .375rem;
}

.rabbit-modal__detail:not(:last-child) {
    padding-bottom: .875rem;
    border-bottom: 1px solid var(--bd-color02);
}

.rabbit-modal__detail dt {
    color: var(--accent-color01);
    font-weight: 600;
    line-height: 1;
    letter-spacing: .04em;
}

.rabbit-modal__detail dd {
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .04em;
}


/* ========================================
    キャラクター詳細 モーダル SP
======================================== */
@media screen and (max-width: 768px) {

    /* 背景 */
    .rabbit-modal__bg {
        align-items: center;
        padding: 1.5rem;
    }

    /* モーダル本体 */
    .rabbit-modal__content {
        width: 100%;
        max-height: calc(100dvh - 3rem);
    }

    /* 閉じるボタン */
    .rabbit-modal__close {
        top: 1.75rem;
        right: 1.75rem;
    }

    .rabbit-modal__inner {
        max-height: calc(100dvh - 3rem);
        padding: 6.25rem 1.75rem 3rem;
    }

    /* プロフィール */
    .rabbit-modal__profile {
        width: 80%;
    }

    /* タグ */
    .rabbit-modal__tags {
        flex-wrap: wrap;
    }

    /* キャラクター */
    .rabbit-modal-character {
        width: 7.125rem;
        top: 6.5rem;
    }

    /* 本文 */
    .rabbit-modal__body {
        display: block;
    }

    .rabbit-modal__details {
        margin-top: 2rem;
    }
}

/* ========================================
    内容
======================================== */
.staff-introduction {
    margin-top: 10.25rem;
    width: 100%;
}

.staff-introduction__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-left: clamp(1.5rem, 3.88vw, 3.5rem);

    margin-right: max(clamp(1.5rem, 5vw, 6rem),
            calc((100% - 75rem) / 2));
}

.staff-introduction__content {
    display: flex;
    flex-direction: column;
    gap: 7.5rem;
    flex: 1;
    max-width: 57.375rem;
}

@media screen and (max-width:768px) {
    .staff-introduction__inner {
        flex-direction: column;
        gap: 6rem;
    }
}

/* ========================================
    フィルター
======================================== */

.staff-filter {
    position: sticky;
    top: calc(clamp(6.5rem, 10vw, 9rem) + 3rem);
    width: 11.4375rem;
    height: calc(100dvh - clamp(6.5rem, 10vw, 9rem) - 4rem);
    overflow-y: auto;
}

.staff-filter__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.staff-filter__group {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.staff-filter__title {
    padding: .875rem 0;
    color: var(--base-color02);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .23em;
    text-align: center;
    border-radius: .125rem;
}

.staff-filter__title--department {
    background-color: var(--accent-color02);
}

.staff-filter__title--branch {
    background-color: var(--accent-color01);
}

.staff-filter__title--age {
    background-color: var(--accent-color03);
}

.staff-filter__items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.staff-filter__item {
    display: flex;
    align-items: center;
    gap: .375rem;
    padding-bottom: 1rem;
    width: 100%;
    border-bottom: 1px solid var(--bd-color02);
    cursor: pointer;
}

.staff-filter__item input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: .875rem;
    height: .875rem;
    margin: 0;
    border: 1px solid #81848B;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    /* 選択時の内側の丸 */
    box-shadow: inset 0 0 0 3px #fff;
}

.staff-filter__item input[data-taxonomy="staff_department"]:checked {
    background-color: var(--accent-color02);
    border-color: var(--accent-color02);
}

.staff-filter__item input[data-taxonomy="staff_branch"]:checked {
    background-color: var(--accent-color01);
    border-color: var(--accent-color01);
}

.staff-filter__item input[data-taxonomy="staff_age_group"]:checked {
    background-color: var(--accent-color03);
    border-color: var(--accent-color03);
}

.staff-filter__item span {
    font-size: .875rem;
}

@media screen and (max-width:768px) {
    .staff-filter {
        position: relative;
        top: unset;
        width: 100%;
    }

    .staff-filter__group {
        flex-direction: row;
    }

    .staff-filter__title {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 4.5rem;
    }

    .staff-filter__items {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        flex: 1;
    }

    @media screen and (max-width:480px) {
        .staff-filter__items {
            grid-template-columns: repeat(1, minmax(0, 1fr));
        }
    }
}

/*---------------------------------------------------------
    一覧
---------------------------------------------------------*/

.staff-group {
    opacity: 1;
    transition: opacity .3s ease;
}

.staff-group.is-hiding {
    opacity: 0;
}

.staff-group[hidden] {
    display: none;
}

.staff-group__title {
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: .06em;
}

.staff-group__count {
    margin-right: .75rem;
    color: #978B81;
    font-size: 1rem;
    letter-spacing: .02em;
}

.staff-introduction__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 3rem 1.125rem;
    margin-top: 3.5rem;
}

.staff-introduction__item {
    min-width: 0;
    opacity: 1;
    transition: opacity .3s ease;
}

.staff-introduction__item.is-hiding {
    opacity: 0;
}

.staff-introduction__item[hidden] {
    display: none;
}

.staff-card {
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
}

.staff-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: .125rem;
    overflow: hidden;
}

.staff-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-card__arrow {
    content: "";
    position: absolute;
    right: .875rem;
    bottom: .875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: var(--accent-color02);
    color: var(--base-color02);
    font-size: 1.375rem;
    line-height: 1;
    letter-spacing: normal;
    border-radius: 50%;
}

.staff-card__body {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: .75rem;
}

.staff-card__position {
    font-weight: 400;
    line-height: 1;
    letter-spacing: .1em;
}

.staff-card__name {
    font-size: 1.125rem;
    line-height: 1;
    letter-spacing: .1em;
}

.staff-card__name-en {
    color: var(--accent-color01);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .02em;
}

@media screen and (max-width:480px) {
    .staff-introduction__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ========================================
    スタッフ詳細 モーダル
======================================== */
.staff-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.staff-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* 背景 */
.staff-modal__overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background-color: rgba(0, 0, 0, .25);
    overflow-y: auto;
}

/* モーダル本体 */
.staff-modal__content {
    position: relative;
    width: min(100%, 75rem);
    max-height: calc(100vh - 4rem);
    background-color: var(--base-color01);
    border-radius: 1rem;
    overflow: hidden;
}

.staff-modal__inner {
    display: flex;
    align-items: flex-start;
    gap: clamp(2rem, 5vw, 4.5rem);
    width: 100%;
    max-height: calc(100dvh - 4rem);
    padding: 7rem clamp(1.75rem, 5vw, 4.5rem) 4rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* 閉じるボタン */
.staff-modal__close {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 auto;
    padding: 0;
    width: 3rem;
    height: 3rem;
    color: var(--base-color02);
    font-size: 2rem;
    line-height: 1;
    letter-spacing: normal;
    background: #F27638;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

/* 画像 */
.staff-modal__slider {
    flex: 400 1 0;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    max-width: 25rem;
}

.staff-modal__thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1rem;
}

.staff-modal__thumbnail.is-on-leave {
    position: relative;
}

.staff-modal__thumbnail.is-on-leave::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(45deg, #FF7530, #FFCA66);
    opacity: .9;
}

.staff-modal__thumbnail.is-on-leave::after {
    content: "";
    position: absolute;
    inset: 0;
    aspect-ratio: 1/1;
    background-image: url(../../img/staff/on-leave.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.staff-modal__thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-modal__slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1rem;
}

.staff-modal__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .5s ease,
        visibility .5s ease;
}

.staff-modal__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.staff-modal__slide.is-on-leave {
    position: relative;
}

.staff-modal__slide.is-on-leave::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(45deg, #FF7530, #FFCA66);
    opacity: .9;
}

.staff-modal__slide.is-on-leave::after {
    content: "";
    position: absolute;
    inset: 0;
    aspect-ratio: 1/1;
    background-image: url(../../img/staff/on-leave.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.staff-modal__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* サムネイル一覧 */
.staff-modal__thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .875rem;
    margin-top: .875rem;
}

/* サムネイル */
.staff-modal__thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    border: none;
    border-radius: .5rem;
    background: transparent;
    cursor: pointer;
}

.staff-modal__thumb[hidden] {
    display: none !important;
}

/* 選択中のサムネイル */
.staff-modal__thumb.is-active {
    opacity: 1;
}

.staff-modal__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

/* ホバー */
@media (hover: hover) {
    .staff-modal__thumb:hover img {
        transform: scale(1.08);
    }
}

.staff-modal__textarea {
    flex: 584 1 0;
    min-width: 0;
}

/* プロフィール */
.staff-modal__profile {
    margin-top: 1.5rem;
}

.staff-modal__position {
    line-height: 1;
    letter-spacing: .1em;
}

.staff-modal__name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-top: 1rem;
}

.staff-modal__name {
    margin: 0;
    font-size: clamp(1.625rem, 2.083vw, 1.875rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: .06em;
}

.staff-modal__name-en {
    color: var(--accent-color01);
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: .02em;
}

/* タグ */
.staff-modal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
    margin-top: 1.5rem;
}

.staff-modal__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: .46875rem 1rem;
    background-color: var(--background-color03);
    color: var(--accent-color03);
    font-size: .8125rem;
    line-height: 1;
    letter-spacing: .04em;
    border-radius: 100vmax;
}

/* 本文 */
.staff-modal__body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.staff-modal__message p {
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: .04em;
}

.staff-modal__message p+p {
    margin-top: 1em;
}

/* 詳細 */
.staff-modal__details {
    display: flex;
    flex-direction: column;
    gap: .875rem;
}

.staff-modal__detail {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: .375rem;
}

.staff-modal__detail:not(:last-child) {
    padding-bottom: .875rem;
    border-bottom: 1px solid var(--bd-color02);
}

.staff-modal__detail dt {
    color: var(--accent-color01);
    font-weight: 600;
    line-height: 1;
    letter-spacing: .04em;
}

.staff-modal__detail dd {
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .04em;
}

/* ボタン */
.staff-modal__textarea .btn.curve {
    margin: 4.5rem auto 0;
    width: 100%;
    max-width: 18.75rem;
}

/* ========================================
    スタッフ詳細 モーダル SP
======================================== */
@media screen and (max-width: 768px) {

    /* 背景 */
    .staff-modal__overlay {
        padding: 1.5rem;
    }

    /* モーダル本体 */
    .staff-modal__content {
        width: 100%;
        max-height: calc(100dvh - 3rem);
    }

    /* 閉じるボタン */
    .staff-modal__close {
        top: 1.75rem;
        right: 1.875rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.75rem;
    }

    .staff-modal__inner {
        flex-direction: column;
        max-height: calc(100dvh - 3rem);
        padding: 5rem 1.875rem 4rem;
    }

    /* 本文 */
    .staff-modal__body {
        display: block;
    }

    .staff-modal__details {
        margin-top: 2rem;
    }
}