@charset "UTF-8";

/* staff page */
.staff-section {
    width: min(1440px, calc(100% - 48px));
    margin: 80px auto;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.staff-grid-executive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 980px;
    margin: 0 auto 80px;
}

.staff-group-title {
    margin-bottom: 32px;
}

.staff-carousel {
    overflow: hidden;
    width: 100%;
    padding: 8px 0 18px;
}

.staff-carousel-track {
    display: flex;
    width: max-content;
    transform: translate3d(var(--staff-carousel-x, 0), 0, 0);
    will-change: transform;
}

.staff-carousel-group {
    display: flex;
    flex-shrink: 0;
    gap: 32px;
    padding-right: 32px;
}

.staff-carousel .staff-card {
    flex: 0 0 clamp(250px, 22vw, 320px);
}

.staff-carousel-control {
    width: min(760px, 100%);
    margin: 12px auto 0;
    padding: 22px 0 10px;
}

.staff-carousel-control-bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: #008f5c;
    box-shadow: inset 0 0 0 1px rgba(1, 17, 32, 0.08);
    cursor: pointer;
    touch-action: none;
}

.staff-carousel-handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 96px;
    height: 96px;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: translate3d(0, -50%, 0);
    cursor: grab;
    touch-action: none;
    will-change: transform;
}

.staff-carousel-handle.is-returning {
    transition: transform .55s ease;
}

.staff-carousel-handle:active {
    cursor: grabbing;
}

.staff-carousel-handle:focus-visible {
    outline: 3px solid rgba(0, 143, 92, 0.35);
    outline-offset: 4px;
}

.staff-carousel-handle-image {
    display: block;
    width: 100%;
    height: 100%;
    background-image: url("/img/staff_slider_character.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 8px 14px rgba(1, 17, 32, 0.2));
    animation: staff-carousel-handle-wobble 5s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes staff-carousel-handle-wobble {
    0%, 82%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    86% {
        transform: translate3d(-2px, 0, 0) rotate(-4deg);
    }

    90% {
        transform: translate3d(2px, 0, 0) rotate(4deg);
    }

    94% {
        transform: translate3d(-1px, 0, 0) rotate(-2deg);
    }
}

.staff-card {
    background: transparent;
    border-radius: 8px;
    perspective: 1200px;
}

.staff-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .55s ease;
}

.staff-card:hover .staff-card-inner,
.staff-card:focus-within .staff-card-inner,
.staff-card.is-flipped .staff-card-inner {
    transform: rotateY(180deg);
}

.staff-card-face {
    width: 100%;
    min-height: 100%;
    background: #fff;
    border: 1px solid rgba(1, 17, 32, 0.12);
    border-radius: 8px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.staff-card-front {
    position: relative;
}

.staff-card-back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 28px;
    text-align: center;
    color: #fff;
    background: #011120;
    transform: rotateY(180deg);
}

.staff-icon {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #008f5c;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.staff-icon-reki {
    background-image: url("/img/staff_icon_reki.png");
}

.staff-icon-eizi {
    background-image: url("/img/staff_icon_eizi.png");
}

.staff-icon-ryusei {
    background-image: url("/img/staff_icon_ryusei.png");
}

.staff-icon-wataru {
    background-image: url("/img/staff_icon_wataru.png");
}

.staff-icon-taiki {
    background-image: url("/img/staff_icon_taiki.png");
}

.staff-icon-hikari {
    background-image: url("/img/staff_icon_hikari.png");
}

.staff-icon-ryoga {
    background-image: url("/img/staff_icon_ryoga.png");
}

.staff-catch {
    font-size: 1.05em;
    line-height: 1.8;
}

.staff-catch-long {
    font-size: 0.92em;
    line-height: 1.75;
}

.staff-detail-button {
    display: inline-block;
    color: #fff;
    background: #008f5c;
    border-radius: 8px;
    padding: 10px 20px;
    transition: filter .2s;
}

.staff-detail-button:hover,
.staff-detail-button:focus {
    filter: brightness(1.12);
}

.staff-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #e7eee9 0%, #f7f9f8 100%);
    color: #1f4d3a;
    font-size: 1.1em;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.staff-license-badge {
    position: absolute;
    right: 18px;
    bottom: -30px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border: 2px solid #fff0a5;
    border-radius: 50%;
    color: #5c3500;
    background:
        radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.9) 0 10%, rgba(255, 255, 255, 0) 24%),
        linear-gradient(145deg, #fff1a4 0%, #f7cf4d 34%, #c88910 63%, #7c4a00 100%);
    box-shadow:
        inset 0 4px 5px rgba(255, 255, 255, 0.48),
        inset 0 -8px 10px rgba(111, 59, 0, 0.42),
        0 10px 18px rgba(1, 17, 32, 0.24);
    font-size: 0.86rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.staff-license-badge::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255, 246, 190, 0.82);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(127, 76, 0, 0.18);
}

.staff-license-badge::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 18px;
    width: 34px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    transform: rotate(-22deg);
}

.staff-license-badge span {
    position: relative;
    z-index: 1;
}

.staff-photo-empty {
    letter-spacing: 0.08em;
}

.staff-profile {
    padding: 28px;
    text-align: center;
}

.staff-profile .position,
.staff-modal-panel .position {
    color: #008f5c;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.staff-profile h5 {
    font-size: 1.5em;
    font-weight: normal;
    margin-bottom: 12px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.staff-profile p {
    font-size: 1em;
    line-height: 1.9;
}

.staff-profile .name-en,
.staff-modal-panel .name-en {
    color: #667;
    font-size: 0.95em;
    line-height: 1.5;
}

.staff-note {
    margin-top: 48px;
    padding: 24px 28px;
    background: #f3fbf7;
    border-left: 8px solid #008f5c;
}

.staff-note p {
    font-size: 1em;
}

.staff-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000001;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.staff-modal:target,
.staff-modal.is-open {
    display: flex;
}

.staff-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(1, 17, 32, 0.72);
}

.staff-modal-panel {
    position: relative;
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    padding: 42px;
    color: #432;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.staff-modal-panel h4 {
    font-size: 2em;
    font-weight: normal;
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.staff-modal-panel p:last-child {
    margin-top: 24px;
    line-height: 2;
}

.staff-modal-panel-executive {
    width: min(920px, 100%);
    padding: 0;
    overflow-x: hidden;
    color: #2c271f;
    background: #fbfaf6;
    border: 1px solid rgba(184, 144, 63, 0.26);
}

.staff-executive-header {
    position: relative;
    padding: 46px 48px 38px;
    color: #fff;
    background: linear-gradient(135deg, #011120 0%, #123226 62%, #6d541e 100%);
}

.staff-executive-header::after {
    content: "";
    position: absolute;
    right: 44px;
    bottom: 28px;
    width: 88px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #d8b766);
}

.staff-executive-header .position {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 10px;
}

.staff-executive-header h4 {
    color: #fff;
    border-bottom-color: rgba(216, 183, 102, 0.45);
}

.staff-executive-header .name-en {
    color: rgba(255, 255, 255, 0.72);
}

.staff-executive-section {
    margin: 32px 48px 0;
    padding-left: 26px;
    border-left: 3px solid #b8903f;
}

.staff-executive-section h5,
.staff-executive-point h5 {
    color: #7a5d21;
    font-size: 1.05em;
    font-weight: bold;
    letter-spacing: 0.06em;
}

.staff-executive-section h5 {
    margin-bottom: 18px;
}

.staff-executive-career p {
    margin: 0;
    line-height: 2;
}

.staff-executive-career p + p {
    margin-top: 16px;
}

.staff-executive-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 30px 48px 42px;
}

.staff-executive-point {
    padding: 22px 20px;
    background: #fff;
    border: 1px solid rgba(184, 144, 63, 0.22);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(1, 17, 32, 0.07);
}

.staff-executive-point p {
    margin-top: 12px;
    line-height: 1.8;
}

.staff-executive-mission {
    background: #f8f3e7;
}

.staff-modal-panel-profile {
    width: min(880px, 100%);
    padding: 0;
    background: #f7fbf8;
    color: #26352d;
    overflow-x: hidden;
}

.staff-modal-header {
    position: relative;
    min-height: 190px;
    padding: 46px 160px 34px 48px;
    color: #fff;
    background: linear-gradient(135deg, #006b48 0%, #008f5c 54%, #0f5a43 100%);
}

.staff-modal-header::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 48px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.14);
    background-image: url("/img/staff_icon_ryoga.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 12px 26px rgba(1, 17, 32, 0.24);
    transform: translateY(-50%);
}

.staff-modal-header-ryusei::after {
    background-image: url("/img/staff_icon_ryusei.png");
}

.staff-modal-header-taiki::after {
    background-image: url("/img/staff_icon_taiki.png");
}

.staff-modal-header-wataru::after {
    background-image: url("/img/staff_icon_wataru.png");
}

.staff-modal-header-hikari::after {
    background-image: url("/img/staff_icon_hikari.png");
}

.staff-modal-header .position {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 10px;
}

.staff-modal-header h4 {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.32);
}

.staff-modal-header .name-en {
    color: rgba(255, 255, 255, 0.78);
}

.staff-modal-section {
    margin: 24px 48px;
    padding: 26px 28px;
    background: #fff;
    border: 1px solid rgba(0, 143, 92, 0.14);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(1, 17, 32, 0.08);
}

.staff-modal-section h5 {
    position: relative;
    padding-left: 16px;
    margin-bottom: 14px;
    color: #006b48;
    font-size: 1.1em;
    font-weight: bold;
}

.staff-modal-section h5::before {
    content: "";
    position: absolute;
    top: 0.25em;
    left: 0;
    width: 5px;
    height: 1.1em;
    border-radius: 999px;
    background: #008f5c;
}

.staff-modal-section p {
    margin-top: 0;
    line-height: 2;
}

.staff-modal-section p + p {
    margin-top: 16px;
}

.staff-modal-panel-profile p:last-child {
    margin-top: 16px;
}

.staff-modal-specialty {
    margin-top: 28px;
}

.staff-specialty-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.staff-specialty-list li {
    color: #006b48;
    background: #eefaf4;
    border: 1px solid rgba(0, 143, 92, 0.22);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.95em;
}

.staff-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    color: #fff;
    background: #008f5c;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.9em;
}

.staff-modal-panel-profile .staff-modal-close {
    background: rgba(1, 17, 32, 0.32);
}

.staff-modal-panel-executive .staff-modal-close {
    background: rgba(1, 17, 32, 0.46);
}

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

    .staff-carousel .staff-card {
        flex-basis: 300px;
    }
}

@media screen and (max-width: 800px) {
    .staff-section {
        width: calc(100% - 30px);
        margin: 50px auto;
    }

    .staff-grid,
    .staff-grid-executive {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .staff-grid-executive {
        margin-bottom: 50px;
    }

    .staff-carousel {
        width: calc(100% + 30px);
        margin-left: -15px;
        padding-left: 15px;
    }

    .staff-carousel-group {
        gap: 24px;
        padding-right: 24px;
    }

    .staff-carousel .staff-card {
        flex-basis: min(78vw, 320px);
    }

    .staff-carousel-control {
        width: calc(100% - 20px);
        padding-top: 18px;
    }

    .staff-carousel-handle {
        width: 82px;
        height: 82px;
    }

    .staff-license-badge {
        right: 14px;
        bottom: -24px;
        width: 66px;
        height: 66px;
        font-size: 0.74rem;
    }

    .staff-license-badge::before {
        inset: 6px;
    }

    .staff-license-badge::after {
        top: 10px;
        left: 15px;
        width: 28px;
        height: 13px;
    }

    .staff-profile {
        padding: 22px;
    }

    .staff-profile h5 {
        font-size: 1.25em;
    }

    .staff-modal-panel {
        padding: 52px 24px 28px;
    }

    .staff-modal-panel-executive,
    .staff-modal-panel-profile {
        padding: 0;
    }

    .staff-executive-header {
        padding: 52px 24px 30px;
    }

    .staff-executive-header::after {
        right: 24px;
        bottom: 22px;
        width: 64px;
    }

    .staff-executive-section {
        margin: 24px 20px 0;
        padding-left: 18px;
    }

    .staff-executive-summary {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 22px 20px 30px;
    }

    .staff-executive-point {
        padding: 18px;
    }

    .staff-modal-header {
        min-height: 176px;
        padding: 52px 112px 28px 24px;
    }

    .staff-modal-header::after {
        right: 24px;
        width: 68px;
        height: 68px;
    }

    .staff-modal-section {
        margin: 18px 18px;
        padding: 22px 20px;
    }

    .staff-specialty-list {
        gap: 8px;
    }

    .staff-specialty-list li {
        padding: 7px 12px;
        font-size: 0.9em;
    }

    .staff-modal-panel h4 {
        font-size: 1.45em;
    }
}

@media (hover: none), (pointer: coarse) {
    .staff-card:hover .staff-card-inner,
    .staff-card:focus-within .staff-card-inner {
        transform: none;
    }

    .staff-card.is-flipped .staff-card-inner {
        transform: rotateY(180deg);
    }

    .staff-card.is-flipped .staff-license-badge {
        opacity: 0;
        visibility: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .staff-card-inner,
    .staff-carousel-handle.is-returning,
    .staff-carousel-handle-image {
        animation: none;
        transition: none;
    }
}
