@charset "utf-8";

/* common */

.overflow-hideen {
    overflow: hidden !important;
}

.link-hover {
    transition: 0.3s ease-in-out;
}

.link-hover:hover {
    opacity: 0.5;
}

.link-hover-zoom-target {
    transition: 0.5s ease-in-out;
}

.link-hover-zoom:hover .link-hover-zoom-target {
transform: scale(1.1, 1.1);
}

.icon-external-link {
    width: 0.8rem;
    height: 0.8rem;
}

.d-contents {
    display: contents !important;
}

@media screen and (min-width: 992px) {
    .d-lg-contents {
        display: contents !important;
    }
}

/* scroll animation */
.scroll-container {
    left: calc(100% - 76px);
    width: 52px;
    height: auto;
}

.mouse {
    width: 50px;
    height: 90px;
    border: 3px solid #333;
    border-radius: 60px;
    position: relative;
}

.mouse::before {
    content: "";
    width: 12px;
    height: 12px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    border-radius: 50%;
    opacity: 1;
    animation: wheel 2s infinite;
    -webkit-animation: wheel 2s infinite;
}

@keyframes wheel {
    to {
        opacity: 0;
        top: 60px;
    }
}

@-webkit-keyframes wheel {
    to {
        opacity: 0;
        top: 60px;
    }
}

/* pagination */

.pagination {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bs-body-bg) !important;
    border: 1px solid #aaa !important;
    border-radius: 50% !important;
    color: var(--color_dark) !important;
    font-family: "Montserrat", serif;
    font-size: 16px;
    text-align: center;
    width: 40px;
    height: 40px;
    margin: 0;
    transition: 0.3s;
}

.page-numbers.current {
    background-color: var(--color_dark) !important;
    color: var(--bs-body-bg) !important;
}

.prev.page-numbers,
.next.page-numbers {
    background-color: var(--bs-body-bg) !important;
    border: 1px solid #aaa !important;
    color: var(--color_dark) !important;
}

.page-numbers.current:hover,
.page-numbers.dots:hover {
    opacity: 1;
}

.page-numbers:hover {
    background-color: var(--color_dark) !important;
    color: var(--bs-body-bg) !important;
}

.page-numbers.dots {
    border: transparent !important;
    padding: 20px 5px 0;
}

.prev.page-numbers,
.next.page-numbers {
    position: relative;
    padding: 0 5px;
    width: 40px;
}

.prev.page-numbers::after,
.next.page-numbers::after {
    position: absolute;
    content: "";
    border-right: 1px solid var(--color_dark);
    border-bottom: 1px solid var(--color_dark);
    width: 10px;
    height: 10px;
}

.prev.page-numbers::after {
    top: 53%;
    left: 60%;
    transform: translate(-53%, -60%) rotate(135deg);
}

.next.page-numbers::after {
    top: 47%;
    left: 40%;
    transform: translate(-47%, -40%) rotate(-45deg);
}

.page-numbers:hover.prev.page-numbers::after,
.page-numbers:hover.next.page-numbers::after {
    border-right: 1px solid var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-body-bg);
}

/* header */
.header {
    background-color: rgb(255, 255, 255, 0.8);
}

.header-logo {
    max-width: 140px;
    width: 100%;
}

.ham-box {
    position: relative;
    width: 42px;
    height: 42px;
    cursor: pointer;
    z-index: 9999;
}

.ham-drawer {
    background: rgb(255, 255, 255, 0.9) !important;
    top: 62px;
    left: 0;
    width: 100vw;
    height: calc(100svh - 62px);
    transition: 0.4s;
    opacity: 0;
    pointer-events: none;
    overflow-y: scroll;
}

.ham-drawer.is-active {
    opacity: 1;
    pointer-events: auto;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.ham-drawer_contents {
    display: flex;
    height: 100%;
    justify-content: flex-end;
    align-items: flex-end;
    padding-bottom: 50px;
}

.ham-bar {
    position: relative;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.ham-bar span {
    background: var(--color_dark);
    position: absolute;
    width: 36px;
    height: 2px;
    opacity: 1;
    transition: all 0.5s;
}

.ham-bar span:nth-of-type(1) {
    top: calc(50% - 8px);
    left: 50%;
    transform: translate(-50%, -50%);
}
.ham-bar span:nth-of-type(2) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.ham-bar span:nth-of-type(3) {
    top: calc(50% + 8px);
    left: 50%;
    transform: translate(-50%, -50%);
}

#ham-bar::after {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    content: "";
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.75s;
}
#ham-box.is-active .ham-bar span:nth-of-type(1) {
    width: 24px;
    -webkit-transform: translate(-50%, 7px) rotate(-45deg);
    transform: translate(-50%, 7px) rotate(-45deg);
}
#ham-box.is-active .ham-bar span:nth-of-type(2) {
    left: 60%;
    opacity: 0;
    -webkit-animation: active-btn19-bar02 0.8s forwards;
    animation: active-btn19-bar02 0.8s forwards;
}
@-webkit-keyframes active-btn19-bar02 {
    100% {
        height: 0;
    }
}
@keyframes active-btn19-bar02 {
    100% {
        height: 0;
    }
}
#ham-box.is-active .ham-bar span:nth-of-type(3) {
    width: 24px;
    -webkit-transform: translate(-50%, -10px) rotate(45deg);
    transform: translate(-50%, -10px) rotate(45deg);
}
#ham-box.is-active .ham-bar::after {
    -webkit-animation: active-btn19 0.7s 0.25s forwards;
    animation: active-btn19 0.7s 0.25s forwards;
}
@-webkit-keyframes active-btn19 {
    0% {
        border-color: transparent;
        -webkit-transform: rotate(0);
    }
    25% {
        border-color: transparent var(--color_dark) transparent transparent;
    }
    50% {
        border-color: transparent var(--color_dark) var(--color_dark) transparent;
    }
    75% {
        border-color: transparent var(--color_dark) var(--color_dark) var(--color_dark);
    }
    100% {
        border-color: var(--color_dark);
        -webkit-transform: rotate(-680deg);
    }
}
@keyframes active-btn19 {
    0% {
        border-color: transparent;
        transform: rotate(0);
    }
    25% {
        border-color: transparent var(--color_dark) transparent transparent;
    }
    50% {
        border-color: transparent var(--color_dark) var(--color_dark) transparent;
    }
    75% {
        border-color: transparent var(--color_dark) var(--color_dark) var(--color_dark);
    }
    100% {
        border-color: var(--color_dark);
        transform: rotate(-680deg);
    }
}

@media screen and (min-width: 992px) {
    .header-logo {
        max-width: 200px;
        width: 100%;
    }

    .ham-drawer_contents {
        padding: 10.8125rem 0 6.25rem;
    }
}

/* link-button */

.link-button {
    border: 1px solid #333;
    border-radius: 9999px;
    background-color: #fff;
    color: #333;
    max-width: 200px;
    width: 100%;
    padding: 16px 0;
    transition: 0.2s ease-in-out;
}

.link-button:hover {
    background-color: #333;
    color: #fff !important;
}

/* top */
.icon-service {
    max-height: 80px;
    height: 100%;
}

.fixed-container:not(:last-child) {
    margin-bottom: 70px;
}

.fixed-container:last-child {
    margin-bottom: 70px !important;
}

.service-border {
    border-top: 3px solid var(--color_dark);
}

.service-border:nth-child(3),
.service-border:last-child {
    border-bottom: 3px solid var(--color_dark);
}

.texts-change {
    width: 72px;
    height: 72px;
    display: inline-block;
    position: relative;
    vertical-align: top;
    overflow-y: hidden !important;
}

.texts-change-chara {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
    animation: ShiftText 15s ease-in-out infinite;
}

.chara-frame {
    color: rgba(0, 0, 0, 0);
    background-clip: text;
    background-image: linear-gradient(23deg, #FEDCBD, #F36C21, #F58220,#E15A28);
    background-repeat: no-repeat;
    background-size: 400% 400%;
    animation: ShiftText 15s ease-in-out infinite, textGradient 3s ease infinite;
}

@keyframes textGradient {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 50% 100%;
    }

    50% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.popout span {
    animation:  ani 1s infinite alternate cubic-bezier(0.860, 0.000, 0.070, 1.000);
}

@keyframes ani{
    0% {
        transform: translate3d(0,0,0);
        text-shadow: 0em 0em 0 #aaa;
        color: var(--color_dark);
    }
    30% {
        transform: translate3d(0,0,0);
        text-shadow: 0em 0em 0 #aaa;
        color: var(--color_dark);
    }
    70% {
        transform: translate3d(0.08em,-0.08em,0);
        text-shadow: -0.08em 0.08em #aaa;
        color: var(--color_dark);
    }
    100%{ 
        transform: translate3d(0.08em,-0.08em,0);
        text-shadow: -0.08em 0.08em #aaa;
        color: var(--color_dark);
    }
}

@keyframes ShiftText {
    0% {
        opacity: 0;
    }

    1%,15% {
        top: 0;
        opacity: 1;
    }
    
    16%,30% {
        top: -1.5em;
    }

    31%,45% {
        top: -3em;
    }

    46%,60% {
        top: -4.5em;
    }
    
    61%,75% {
        top: -6em;
        opacity: 1;
    }

    76%,90% {
        top: -7.5em;
        opacity: 1;
    }

    91%,100% {
        top: -9em;
        opacity: 0;
    }
}

@media screen and (min-width: 992px) {
    .icon-service {
        max-height: 120px;
    }

    .fixed-container:not(:last-child) {
        position: relative;
        height: 190vh;
        margin-bottom: 200px;
    }

    .fixed-container:last-child {
        height: 100vh;
        margin-bottom: 0 !important;
    }

    .fixed-container .fixed-target {
        position: sticky;
        top: 50%;
        right: 4%;
        width: calc(100% - 48px);
        transform: translateY(-45%);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    .fixed-container.active .fixed-target {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%);
    }

    .fixed-link-button {
        position: absolute;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
    }

    .service-border {
        border-top: none;
        border-left: 3px solid var(--color_dark);
    }

    .service-border:nth-child(3) {
        border-bottom: none;
    }
    
    .service-border:last-child {
        border-bottom: none;
        border-right: 3px solid var(--color_dark);
    }
}

/* works */
.works-img img {
    max-height: 352px;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.works-single-img img {
    max-height: 540px;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.links-category {
    position: fixed;
    left: 0;
    bottom: 24px;
    background-color: var(--color_dark);
    border-radius: 32px;
    width: calc(100% - 32px);
    z-index: 999;
}

.links-category-button {
    border: transparent;
    border-radius: 9999px;
    background-color: #333;
    color: #fff !important;
    max-width: 200px;
    width: 100%;
    padding: 16px 0;
    transition: 0.2s ease-in-out;
}

.links-category-button.active,
.links-category-button:hover {
    border: transparent;
    background-color: #fff;
    color: #333 !important;
}

.works-info-border dl {
    border-bottom: 2px dashed var(--color_dark);
}

@media screen and (min-width: 992px) {
    .links-category {
        width: auto;
        position: static;
        border-radius: 9999px;
    }

    .works-info-border {
        border-right: 2px dashed var(--color_dark);
    }

    .works-info-border dl {
        border-bottom: none;
    }
}

/* single */

.single-link {
    position: relative;
}

.single-link::before {
    position: absolute;
    content: "";
    background-color: #555;
    border-radius: 50%;
    width: 34px;
    height: 34px;
}

.single-link::after {
    position: absolute;
    content: "";
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    width: 10px;
    height: 10px;
}

.single-link.prev::before {
    top: 22%;
    left: -10px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
}

.single-link.prev::after {
    top: 22%;
    left: 2px;
    transform: translateY(-50%) rotate(135deg);
}

.single-link.next::before {
    top: 22%;
    right: -10px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
}

.single-link.next::after {
    top: 22%;
    right: 2px;
    transform: translateY(-50%) rotate(-45deg);
}

@media screen and (min-width: 992px) {
    .single-link.prev::before {
        top: 50%;
        left: -35px;
        width: 34px;
        height: 34px;
        transform: translateY(-50%);
    }

    .single-link.prev::after {
        top: 50%;
        left: -21px;
        transform: translateY(-50%) rotate(135deg);
    }

    .single-link.next::before {
        top: 50%;
        right: -35px;
        width: 34px;
        height: 34px;
        transform: translateY(-50%);
    }

    .single-link.next::after {
        top: 50%;
        right: -21px;
        transform: translateY(-50%) rotate(-45deg);
    }
}

/* 404 */
.text-title-4o4 {
    font-size: 92px !important;
}

@media screen and (min-width: 992px)  {
    .text-title-4o4 {
        font-size: 180px !important;
    }
}