@charset "UTF-8";

:root {
    /* color */
    --main-bg-color: #F8F8FF;
    --main-font-color: #333333;
    --sub-font-color: #BDB7B3;
    --accent-color: #A0BDC4;

    /* font size */
    --font-sz-xs: 0.75rem;
    --font-sz-s: 0.875rem;
    --font-sz-m: 1rem;
    --font-sz-ml: 1.25rem;
    --font-sz-l: 1.5rem;
    --font-sz-xl: 2rem;
    --font-sz-2xl: 2.5rem;
    --font-sz-3xl: 3.5rem;

    /* font-weight */
    --font-w-m: 400;
    --font-w-b: 500;
}

html {
    font-size: 100%;
}

body {
    background-color: var(--main-bg-color);
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.5;
    color: var(--main-font-color);
    letter-spacing: 0.05em;
    overflow-x: hidden;
}


a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

ul {
    list-style-type: none;
}

.cover {
    width: 100vw;
}

.wrapper {
    max-width: 1440px;
    width: 90%;
    margin: auto;
}

.uppercase_letter {
    text-transform: uppercase;
}

/* heading */
.section_title span {
    font-size: var(--font-sz-2xl);
    font-weight: var(--font-w-m);
    text-align: left;
    padding-left: 5%;
}

.head-border {
    position: relative;
    display: inline-block;
}

.head-border:after {
    content: '';
    position: absolute;
    top: 50%;
    display: inline-block;
    width: 100%;
    height: 1px;
    background-color: var(--main-font-color);
    margin-left: 40px;
}

h2 {
    overflow-x: hidden;
}

h4 {
    font-size: var(--font-sz-l);
}

.profile_message p,
.post_info_item {
    line-height: 2;
}

/* header */
header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100px;
    margin: 0 24px 0;
    position: fixed;
    top: 0;
    left: 50%;
    translate: -50% 0;
    background-color: var(--main-bg-color);
}

.menu {
    display: flex;
    flex-direction: row;
    gap: 80px;
}

.my_name {
    font-family: "futura-pt", sans-serif;
    font-style: italic;
    font-size: var(--font-sz-l);
}

/* .menu li a:hover::before{
    width: 100%;
    height: 1px;
    background-color: var(--main-font-color);
    transform-origin: left top;
    animation: line 0.3s linear 1 forwards;
}

@keyframes line {
    0% {
        scale: 0 1;
    }

    100% {
        scale: 1 1;
    }
} */

/* 対象aを基準にする */
.menu .hover a {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

/* 下線の素：常に幅100%・高さ1px。初期は縮めておく */
.menu .hover a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: var(--main-font-color);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s linear;
}

/* hoverで伸びる */
.menu .hover a:hover::before {
    transform: scaleX(1);
}

/* TOP */

/* fv */
.fv {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 16/9;
    overflow: hidden;

}

.fv_text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
    z-index: 10;
}

.center_text {
    font-family: "futura-pt", sans-serif;
    font-weight: var(--font-w-b);
    font-style: normal;
    font-size: 4rem;
}


.left_text,
.right_text {
    font-family: "futura-pt", sans-serif;
    font-weight: var(--font-w-m);
    font-style: italic;
    font-size: var(--font-sz-l);
    width: 280px;
    text-align: center;
}

.left_text {
    letter-spacing: 0.1em;
}

.circle {
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid var(--main-font-color);
    border-color: var(--main-font-color) var(--main-font-color) transparent transparent;
    /* 上部のみ線を表示 */
    border-radius: 50%;
    /* 円形にする */
    pointer-events: none;
}

.left-circle {
    left: 50%;
    transform: translateX(-100%) translateY(10%) rotate(135deg);
    /* 左に移動して反転 */
}

.right-circle {
    right: 50%;
    transform: translateX(100%) translateY(-10%) rotate(-45deg);
    /* 右に移動 */
}

/* works */
.works-section,
.about-section {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin: 200px auto;
}

.work_list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 160px 80px;
}

.work_item img {
    width: 100%;
}

.work_info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
}

.work_title,
.post_title {
    font-size: var(--font-sz-xl);
}

.work_label {
    display: flex;
    flex-direction: row;
    gap: 16px;
    font-size: var(--font-sz-s);
}

.item_big {
    grid-column: 1/3;
    grid-row: 1/2;
}

/* about */
.profile-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 160px;
}

.profile-content img {
    width: 350px;
}

.profile_my_name {
    font-size: var(--font-sz-xl);
    font-weight: var(--font-w-b);
}

.profile_text {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.profile_message {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.btn {
    text-align: right;
}

.btn a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    width: fit-content;
    margin-left: auto;
    margin-right: 136px;
}

/* 線 */
.btn a::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc(100% + 20px);
    width: 116px;
    height: 1px;
    background-color: var(--main-font-color);
}

/* 丸 */
.btn a::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc(100% + 10px);
    width: 28px;
    height: 28px;
    border: 1px solid var(--main-font-color);
    border-radius: 50%;
}

.btn a:hover::before {
    transform-origin: left top;
    animation: line 0.3s linear 1 forwards;
}

@keyframes line {
    0% {
        scale: 0 1;
    }

    100% {
        scale: 1 1;
    }
}

.home_btn {
    margin-top: 200px;
}

/* back_btn */
.back_btn a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    width: max-content;
    margin-left: 136px;
}

/* 丸 */
.back_btn a::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: initial;
    right: calc(100% + 10px);
    width: 28px;
    height: 28px;
    border: 1px solid var(--main-font-color);
    border-radius: 50%;
}

/* 線 */
.back_btn a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: initial;
    right: calc(100% + 20px);
    transform: translateY(-50%);
    width: 116px;
    height: 1px;
    background-color: var(--main-font-color);
}


.back_btn a:hover::before {
    transform-origin: right top;
    animation: line 0.3s linear 1 forwards;
}




/* footer */
footer {
    height: 60px;
    text-align: center;
}


/* ABOUT PAGE */
.about-page-section {
    margin: 160px auto 200px;
}

/* skills */
.page-title {
    font-size: var(--font-sz-2xl);
    font-weight: var(--font-w-m);
    width: 100%;
}

.skill_category {
    font-size: var(--font-sz-m);
    font-weight: bold;
    width: 100px;
    flex-shrink: 0;
}

.skills-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 40px;
    margin-top: 200px;
}

.skills {
    width: 80%;
}

.skill_list {
    display: flex;
    flex-direction: row;
    gap: 96px;
    border-bottom: solid 1px var(--sub-font-color);
    padding: 40px 0;
}

.skill_items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 12px;
}

.skill_item {
    border: 1px solid var(--main-font-color);
    padding: 4px 16px;
    border-radius: 20px;

}

/* WORKS PAGE */
.post_overview_content,
.post_info {
    margin: 96px auto;
}

/* post_overview */
.post_overview_content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.post_overview_content img {
    width: 50%;
}

.post_overview_text {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.overview_item {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.overview_item_cat {
    width: 80px;
}

.post_category,
.overview_item {
    font-size: var(--font-sz-s);
    padding: 2px 0;
}

/* post_info */
.post_info_list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.post_info_item {
    display: flex;
    flex-direction: row;
    gap: 96px;
    border-bottom: solid 1px #BDB7B3;
    padding-bottom: 60px;
}

.post_info_item dt {
    width: 100px;
    font-weight: var(--font-w-b);
}

.post_info_item dd {
    flex: 1;
}

.post_info_item dd p {
    margin-bottom: 1em;
}

.allpages {
    display: flex;
    flex-direction: column;
    gap: 96px;
}

.post_btn {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 200px;
    margin-bottom: 200px;
}

.next_btn {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.next_post {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.next_post img {
    width: 50%;
}

.next_title {
    font-weight: var(--font-w-b);
}

/* モバイル版 */
@media (max-width:768px) {

    /* header */
    header {
        height: 60px;
    }

    .my_name {
        font-size: var(--font-sz-m);
    }

    .menu {
        display: flex;
        flex-direction: row;
        gap: 24px;
        font-size: var(--font-sz-s);
    }

    .fv {
        aspect-ratio: 9/16;
    }

    .fv_text {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .left_text,
    .right_text {
        width: 100%;
        font-size: var(--font-sz-ml);
    }

    .left_text {
        text-align-last: left;
    }

    .center_text {
        text-align: center;
        font-size: var(--font-sz-2xl);
        width: 315px;
    }

    .right_text {
        text-align: right;
    }

    .circle {
        width: 315px;
        height: 315px;
        border: 1px solid var(--main-font-color);
    }

    .left-circle {
        transform: translateX(-50%) translateY(0%) rotate(0deg);
    }

    .right-circle {
        display: none;
    }

    /* works */
    .works-section {
        margin-top: 100px;
    }

    .work_list {
        display: flex;
        flex-direction: column;
        gap: 80px;
    }

    .work_item {
        min-width: 300px;
    }

    .work_title {
        font-size: var(--font-sz-m);
    }

    .work_label {
        font-size: var(--font-sz-s);
    }

    /* about */
    .about-section {
        margin-bottom: 200px;
    }

    .profile-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .profile-content img {
        width: 100%;
    }

    .profile_my_name {
        font-size: var(--font-sz-xl);
    }

    /* about page */
    .about-page-section {
        margin-top: 48px;
    }

    .skills-content {
        margin-top: 96px;
    }

    .skill_list {
        flex-direction: column;
        gap: 1rem;
    }

    .skills {
        width: 100%;
    }

    .home_btn {
        margin-top: 96px;
    }

    /* post page */
    .post_overview_content {
        flex-direction: column;
        gap: 40px;
        margin-top: 48px;
        margin-bottom: 96px;
    }

    .post_overview_content img,
    .post_overview_text {
        width: 100%;
    }

    .post_title {
        font-size: var(--font-sz-l);
    }

    .post_info {
        margin: 96px auto;
    }

    .post_info_list {
        gap: 40px;
    }

    .post_info_item {
        flex-direction: column;
        gap: 8px;
        padding-bottom: 40px;
    }

    .post_btn {
        flex-direction: column-reverse;
        gap: 10rem;
    }

    .back_btn {
        text-align-last: left;
    }

    .next_post img {
        width: 100%;
    }
}