/* きょうつう */
:root {
    --main-color: #333333;
    --sub-color: #fd7e00;
    --accent-color: #f7f6fe;
    --detail-color: rgb(247 246 254 / 10%);
    --space-xl: 120px;
    --space-l: 80px;
    --space-o: 40px;
    --space-m: 24px;
    --space-s: 16px;
    --space-xs: 8px;
    --text-xl: 2rem;
    --text-l: 1.5rem;
    --text-o: 1.25rem;
    --text-m: .875rem;
    --text-s: .8rem;
    --text-xs: .75rem;
    --transition: all .3s ease;
}

@font-face {
    font-family: "myfont";
    src: url('../font/corporate-logo-medium.woff2') format("woff2");
    font-weight: normal;
}

@font-face {
    font-family: "myfont";
    src: url('../font/corporate-logo-bold.woff2') format("woff2");
    font-weight: bold;
}

html {
    height: 100%;
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "myfont", sans-serif;
    color: var(--main-color);
    line-height: 1.7;
    background-color: var(--accent-color);
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    text-decoration: none;
    display: inline-block;
    color: var(--main-color);
}

span {
    display: inline-block;
}

.pc {
    display: none;
}

.wrapper {
    width: 95%;
    margin: 0 auto;
}










/* ろーでぃんぐ */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    width: 100dvw;
    min-height: 100svh;
    display: grid;
    place-content: center;
    background-color: var(--accent-color);
    font-size: var(--text-xl);
    clip-path: inset(0);
    transition: clip-path .9s cubic-bezier(.77, 0, .18, 1);
}

.loading-logo {
    position: relative;
    top: -5%;
}

.loaded {
    clip-path: inset(0 0 100% 0);
}

#loading-text::after {
    content: "|";
    margin-left: .08em;
    animation: blink .8s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

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


#home,
#profile-p,
#works-p,
#contact-p {
    animation: load 1s ease;
}

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

    100% {
        opacity: 1;
    }
}










/* へっだー */
.ham-btn {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 99999;
    width: 64px;
    height: 64px;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.ham-btn img {
    width: 40px;
    transition: var(--transition);
}

.ham-open .ham-btn img {
    transform: rotate(-120deg);
}

.ham-cont {
    position: fixed;
    top: 72px;
    right: 12px;
    z-index: 9999;
    width: fit-content;
    clip-path: inset(0 0 0 100%);
    transition: var(--transition);
}

.ham-open .ham-cont {
    clip-path: inset(0);
}

.ham-cont a {
    display: block;
    width: fit-content;
    margin-left: auto;
    font-size: var(--text-l);
    font-weight: bold;
    color: var(--sub-color);
    padding: var(--space-xs);
    transition: var(--transition);
}










/* ふぁーすとびゅー */
#fv {
    position: fixed;
    top: 0;
    z-index: 0;
    width: 100%;
    min-height: 100svh;
    display: grid;
    place-content: center;
    margin: 0 auto;
}

#fv video {
    clip-path: inset(1px);
    width: 90%;
    margin: auto;
}














/* こんてな */
#home .container {
    position: relative;
    top: 100vh;
    padding: var(--space-xs) 0;
    background-color: var(--detail-color);
    backdrop-filter: blur(4px);
}




/* めいん */
section {
    margin-top: calc(var(--space-xl) + var(--space-o));
}

.secttl {
    font-size: var(--text-o);
}










/* わーくす */
.splide__track {
    padding: var(--space-m) 2.5% !important;
}

.splide__arrow {
    background: var(--sub-color);
    top: 105%;
    opacity: 1;
    transition: all .1s ease;
}

.splide__arrow svg {
    fill: var(--accent-color);
    height: 12px;
    width: 12px;
}

.splide__arrow--prev {
    left: initial;
    right: 2.5%;
    translate: -150% 0;
}

.splide__arrow--next {
    right: 2.5%;
}

.splide__arrow:hover:not(:disabled) {
    opacity: 1;
}

.work-card {
    background-color: var(--accent-color);
    box-shadow: 2px 4px 12px rgb(51 51 51 / 20%);
}

.work-card_link {
    padding: var(--space-s);
}

.work-card_image img {
    aspect-ratio: 4/5;
    width: 100%;
    object-fit: cover;
}

.work-card_meta {
    margin-top: var(--space-xs);
}

.work-card_title,
.work-card_category {
    font-size: var(--text-xs);
    font-weight: normal;
}








/* ふったー */
footer {
    padding: calc(var(--space-xl) * 2) 2.5% var(--space-o) 0;
    margin-left: auto;
    font-size: var(--text-s);
    writing-mode: vertical-rl;
}

#works-p footer,
#profile-p footer,
#contact-p footer {
    padding: var(--space-xl) 2.5% var(--space-o) 0;
}










/* さくひんぺーじ */
.works-article {
    max-width: 680px;
    margin: var(--space-l) auto 0;
}

.works-article_title {
    font-size: var(--text-l);
}

.works-article_category {
    font-size: var(--text-xs);
}

.works-article_content {
    margin-top: var(--space-o);
    display: flex;
    flex-direction: column;
    gap: var(--space-o);
}

.works-article_image {
    background-color: var(--accent-color);
    box-shadow: 2px 4px 12px rgb(51 51 51 / 20%);
}

.works-article_image a {
    padding: var(--space-s);
}

.works-article_image img {
    aspect-ratio: 4/5;
    object-fit: cover;
}

.works-article_meta p {
    font-size: var(--text-m);
    padding: 0 var(--space-s);
    text-align: justify;
}

.works-article_url a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.works-article_url a::after {
    content: "";
    width: 12px;
    height: 12px;
    background: url("../img/external-link.svg") no-repeat center / contain;
}

.works-article_role,
.works-article_description {
    margin-top: var(--space-xs);
}

.back-btn {
    color: var(--sub-color);
    font-weight: bold;
    display: block;
    margin: var(--space-o) 0 0 auto;
}









/* ぷろふぃーるペーじ */
.profile {
    max-width: 680px;
    margin: var(--space-l) auto 0;
}

.profile_title {
    font-size: var(--text-l);
}

.profile_content {
    margin-top: var(--space-o);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-o);
}

.profile_image {
    background-color: var(--accent-color);
    box-shadow: 2px 4px 12px rgb(51 51 51 / 20%);
    padding: var(--space-s);
}

.profile_name {
    font-weight: normal;
}

.profile_meta p {
    font-size: var(--text-m);
}

.profile_role,
.profile_description {
    margin-top: var(--space-xs);
}










/* ほばー */
@media (hover: hover) and (pointer: fine) {
    .work-card {
        transition: var(--transition);
    }

    .work-card:hover {
        scale: 1.008;
    }

}










/* れすぽんしぶ */
@media (min-width: 1025px) {
    .pc {
        display: block !important;
    }

    .sp {
        display: none !important;
    }

    #fv {
        width: 50vw;
        position: fixed;
        left: 0;
        top: 0;
    }

    #home .container {
        width: 50dvw;
        margin: 0;
        margin-left: auto;
        top: 0;
        backdrop-filter: none;
    }

    .works-article {
        width: 90%;
        max-width: 1280px;
    }

    .works-article_image img {
        aspect-ratio: 16/8.8;
        object-position: top;
    }

    .profile {
        max-width: 1040px;
    }

    .profile_content {
        flex-direction: row-reverse;
    }

    .profile_image {
        flex-basis: calc(50% - 20px);
    }

    .profile_meta {
        flex-basis: calc(50% - 20px);
    }
}

/* スクリーンリーダー・検索エンジン向け（視覚的には非表示） */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

/* WordPress化に伴う追加（汎用ページ・コンタクト） */
/* .page {
    padding: var(--space-l) 0 var(--space-xl);
}

.page_title {
    font-size: var(--text-l);
}

.page_content {
    margin-top: var(--space-o);
}

.contact_content {
    margin-top: var(--space-o);
} */