@charset "utf-8";

/* ==========
common--all
========== */
:root {
    --black-main: #1E1E1E;
    --orange-main: #E77927;
    --gray-main: #8C8C8C;
    --gray-bg: #FAFAFA;
    --gray-tag: #EDEDED;
    --gray-line: #DBDBDB;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    font-family:
        YakuHanJP,
        "Outfit",
        "Noto Sans JP",
        Arial,
        sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.136em;
    font-feature-settings: "palt";
    color: var(--black-main);
    background: #fff;
    opacity: 0;
    transition: all 1s ease-in-out;
}

body.appear {
    opacity: 1;
}

img {
    width: 100%;
    height: auto;
}

a {
    display: block;
}

@media screen and (max-width: 767px) {
    html {
        scroll-padding-top: 60px;
    }

    .brPc {
        display: none;
    }
}

/* ==========
common--top
========== */
.section {
    max-width: 1280px;
    padding: 0 20px;
    margin: 200px auto 0;
}

.section__title {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: clamp(4.8rem, 4.9vw, 6.8rem);
}

.section__title .ja {
    font-size: clamp(1.6rem, 1.4vw, 2.0rem);
    font-weight: 500;
}

@media screen and (max-width: 767px) {
    .section {
        margin: 100px auto 0;
    }

    .section__title {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        font-size: 5.2rem;
    }

    .section__title .ja {
        font-size: 1.8rem;
        font-weight: 500;
    }
}

/* ==========
common--works
========== */
.works__list {
    margin-top: 80px;
    display: flex;
    justify-content: space-between;
    gap: 80px 40px;
    flex-wrap: wrap;
}

.works__item {
    width: 46%;
}

.works__thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
}

.works__thumbnail img {
    aspect-ratio: 16/9;
    object-fit: contain;
    transform: scale(.95);
    transition: all .2s ease-in-out;
}

.works__item:hover .works__thumbnail img {
    transform: scale(.98);
}

.works__detail {
    margin-top: 8px;
}

.detail__main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail__tag {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    display: block;
    padding: 8px;
    background-color: var(--gray-tag);
}

.detail__title {
    font-size: 1.6rem;
    letter-spacing: 0.12em;
    line-height: 1.2;
    font-weight: 500;
}

.detail__sub {
    margin-top: 8px;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 400;
}

.detail__kind {
    padding-right: 10px;
    border-right: 1px solid var(--black-main);
}

.detail__scope {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 10px;
}

@media screen and (max-width: 767px) {
    .works__list {
        margin-top: 60px;
        flex-direction: column;
        justify-content: center;
        gap: 60px;
        flex-wrap: nowrap;
    }

    .works__item {
        width: 100%;
    }

    .works__thumbnail img {
        transform: scale(1);
    }

    .works__detail {
        margin-top: 6px;
    }

    .detail__title {
        font-size: 1.4rem;
    }
}

/* ==========
common--profile
========== */
.section__title--page {
    font-size: 4.8rem;
}

.section__title--page .ja {
    font-size: 2.0rem;
}

@media screen and (max-width: 767px) {
    .section__title--page {
        font-size: 3.2rem;
        flex-direction: row;
        align-items: center;
    }

    .section__title--page .ja {
        font-size: 1.4rem;
    }
}


/* ==========
common--pages
========== */
.main--pages {
    max-width: 1280px;
    margin: calc(88px + 80px) auto 0;
    padding: 0 20px;
}

@media screen and (max-width: 767px) {
    .main--pages {
        margin: calc(60px + 80px) auto 0;
        overflow-x: hidden;
    }
}

/* ==========
btn
========== */
/* viewmore */
.btn--viewmore {
    width: fit-content;
    margin: 80px auto 0;
    background-color: #fff;
    border: 1.5px solid var(--black-main);
    border-radius: 2px;
    font-size: 2.0rem;
    position: relative;
}

.btn--viewmore:hover {
    color: #fff;
}

.btn--viewmore:before {
    content: '';
    width: 100%;
    height: 100%;
    background-color: var(--black-main);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: all .4s ease-in-out;
}

.btn--viewmore:hover.btn--viewmore::before {
    transform: scale(1, 1);
}

.btn--viewmore a {
    padding: 16px 24px;
    position: relative;
    z-index: 5;
}

/* back */
.btn--back {
    width: fit-content;
    font-size: 1.6rem;
    border-bottom: 1px solid var(--black-main);
    position: relative;
    margin-top: 80px;
    transition: all .3s ease-in-out;
}

.btn--back a {
    padding: 0 18px 6px 22px;
}

.btn--back::before {
    content: '';
    width: 1px;
    height: 60%;
    background-color: var(--black-main);
    position: absolute;
    bottom: -2px;
    left: 4px;
    transform: rotate(40deg);
}

.btn--back:hover {
    opacity: .6;
}

@media screen and (max-width: 767px) {

    /* viewmore */
    .btn--viewmore {
        margin: 60px auto 0;
        font-size: 1.8rem;
    }

    /* back */
}

/* ==========
header
========== */
.header {
    width: 100vw;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.header__logo {
    width: 140px;
}

.header__btn {
    display: none;
}

.nav__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav__item {
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    position: relative;
}

.nav__item::after {
    content: '';
    width: 100%;
    height: 1.8px;
    background-color: var(--black-main);
    position: absolute;
    bottom: -8px;
    left: 0%;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: all .3s ease-in-out;
}

.nav__item--contact::after {
    content: none;
}

.nav__item:hover.nav__item::after {
    transform: scale(1, 1);
}

.nav__item--contact {
    background-color: var(--black-main);
    color: #fff;
    transition: all .3s ease-in-out;
    border: 1.5px solid var(--black-main);
    border-radius: 2px;
    position: relative;
}

.nav__item--contact:hover {
    color: var(--black-main);
}

.nav__item--contact::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: all .4s ease-in-out;
}

.nav__item--contact:hover.nav__item--contact::before {
    transform: scale(1, 1);
}

.nav__item--contact a {
    padding: 16px 24px;
    position: relative;
    z-index: 5;
}

.nav__item .ja {
    display: none;
}

@media screen and (max-width: 767px) {
    .header {
        padding: 0 0 0 12px;
    }

    .header__logo {
        width: 100px;
    }

    .header__btn {
        display: flex;
    }

    .header__contact {
        width: fit-content;
        padding: 12px 16px;
        background-color: var(--black-main);
        color: #fff;
        font-size: 1.4rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav__btn {
        width: 60px;
        height: 60px;
        border: 1px solid var(--black-main);
        background-color: #fff;
        position: relative;
        z-index: 90;
    }

    .nav__btn span {
        width: 30px;
        height: 1px;
        background-color: var(--black-main);
        position: absolute;
        left: 15px;
    }

    .nav__btn span:nth-child(1) {
        top: 20px;
        transition: all .4s ease-in-out;
    }

    .nav__btn span:nth-child(2) {
        top: 30px;
        transition: all .4s ease-in-out;
    }

    .nav__btn span:nth-child(3) {
        top: 40px;
        transition: all .4s ease-in-out;
    }

    /* .nav__btn.active span */
    .nav__btn.active span:nth-child(1) {
        transform: rotate(30deg);
        top: 30px;
    }

    .nav__btn.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__btn.active span:nth-child(3) {
        transform: rotate(-30deg);
        top: 30px;
    }

    .nav {
        width: 100vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, .9);
        backdrop-filter: blur(3px);
        position: fixed;
        top: -100vh;
        left: 0;
        z-index: 80;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all .5s ease-in-out;
    }

    /* .nav.active */
    .nav.active {
        top: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        justify-content: start;
        gap: 28px;
    }

    .nav__item {
        padding: 0 20px;
        font-size: 2.4rem;
    }

    .nav__item a {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav__item .ja {
        font-size: 1.2rem;
    }

    .nav__item--contact {
        padding: 0;
    }

    .nav__item--contact a {
        padding: 16px 20px;
    }

    .nav__item .ja {
        display: inline;
    }
}

/* ==========
footer
========== */
.footer {
    background-color: var(--black-main);
    color: #fff;
    margin-top: 120px;
    padding: 60px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__menu {
    width: 190px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu__item {
    width: fit-content;
    transition: all .3s ease-in-out;
}

.menu__item:hover {
    opacity: 0.6;
}

.menu__item a {
    padding: 6px 8px;
    font-size: 1.6rem;
    font-weight: 300;
}

.footer__contact {
    border: 1px solid #fff;
    font-size: 2.0rem;
    border-radius: 2px;
}

.footer__contact__inner {
    background-color: #fff;
    color: var(--black-main);
    border-radius: 0.8px;
    margin: 3px;
    position: relative;
}

.footer__contact__inner:hover {
    color: #fff;
}

.footer__contact__inner::before {
    content: '';
    width: 100%;
    height: 100%;
    background-color: var(--black-main);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: all .4s ease-in-out;
}

.footer__contact__inner:hover.footer__contact__inner::before {
    transform: scale(1, 1);
}

.footer__contact__inner a {
    padding: 16px 24px;
    position: relative;
    z-index: 5;
}

.footer__right {
    width: 190px;
    text-align: center;
}

.copy {
    display: block;
    font-size: 10px;
    font-weight: 300;
    margin-top: 16px;
    letter-spacing: 0;
}

@media screen and (max-width: 767px) {
    .footer {
        margin-top: 100px;
        padding: 60px 20px;
        flex-direction: column;
    }

    .footer__menu {
        width: fit-content;
        align-items: center;
        gap: 20px;
    }

    .menu__item:hover {
        opacity: 0.6;
    }

    .menu__item a {
        padding: 0;
    }

    .footer__contact {
        margin-top: 20px;
        font-size: 1.6rem;
    }

    .footer__contact__inner a {
        padding: 12px 20px;
    }

    .footer__right {
        margin-top: 60px;
    }

    .copy {
        margin-top: 12px;
    }
}

/* ==========
pagetop
========== */
#page-top {
    width: 80px;
    aspect-ratio: 1/1;
    position: fixed;
    right: 2.2vw;
    z-index: 2;
    opacity: 0;
    transform: translateY(200px);
}

.pagetop__circle {
    animation: donut-spin 20s linear infinite;
}

@keyframes donut-spin {
    to {
        transform: rotate(1turn);
    }
}

.pagetop__arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20%;
}

/*　上に上がる動き　*/
#page-top.UpMove {
    animation: UpAnime 0.6s forwards;
}

@keyframes UpAnime {
    from {
        opacity: 0;
        transform: translateY(200px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*　下に下がる動き　*/
#page-top.DownMove {
    animation: DownAnime 0.6s forwards;
}

@keyframes DownAnime {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(200px);
    }
}

@media screen and (max-width: 767px) {
    #page-top {
        display: none;
        width: 56px;
        right: 20px;
        transform: translateY(100px);
    }
}