@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@300;400;500&family=Rubik+Dirt&family=Sawarabi+Mincho&family=Zen+Kurenaido&display=swap');

/********************************************************
/ SetoSaori Portfolio                                   
/   since 2024                
/********************************************************/


/********************************************************
/ 変数宣言
/********************************************************/
:root {
    --main_color: #ACC099;
    --main_color_rgb: 172, 192, 153;
    --main_fontcolor: #485443;
    --main_fontcolor_rgb: 72, 84, 67;
    --main_link: #DDDBC6;
    --main_link_rgb: 221, 219, 198;
    --base_color: #EAEBEB;
}

/********************************************************
/ 全体設定
/********************************************************/
* {
    font-style: normal;
    font-weight: 300;
    font-family: 'Kiwi Maru', serif;
    color: var(--main_fontcolor);
}

body {
    background-color: var(--base_color);
}

.in_view {
    opacity: 1;
    transform: translateY(0);
}

.wrapper {
    max-width: 1280px;
    width: 90%;
    margin: 0 auto 150px;
    text-align: center;
}

header .wrapper {
    margin-bottom: 0;
}

.section_title {
    display: inline-block;
    font-size: 2rem;
    margin-top: 66px;
    margin-bottom: 60px;
    border-bottom: 1px solid #383e45;
}

.section_subtitle {
    font-size: 1.5rem;
    margin: 60px auto;
}

h3.section_subtitle:first-child {
    margin-top: 0;
}

.content_title {
    display: inline-block;
    font-size: 1.2rem;
    margin: 10px 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 50%, rgb(var(--main_link_rgb)) 50%);
}

/********************************************************
/ loading画面
/********************************************************/
.loader-bg {
    align-items: center;
    background-color: var(--main_fontcolor);
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 9999;
}

.js-loader {
    animation: fadein_logo 1s forwards;
}

@keyframes fadein_logo {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/********************************************************
/ ヘッダー
/********************************************************/

header {
    position: fixed;
    z-index: 100;
    background-color: rgba(255, 255, 255, .5);
    top: 0;
    left: 0;
    right: 0;
}

header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

header h1 img {
    display: block;
    width: 50px;
    height: 50px;
    padding: 0;
}

header nav ul {
    display: flex;
}

header li {
    margin-left: 30px;
}

header li a {
    color: var(--main_fontcolor);
    font-family: "fot-chiaro-std", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 1s;
    opacity: 1;
}

header li a:hover,
.nav_works a:hover {
    transition: all 1s;
    opacity: .7;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 50%, rgb(var(--main_link_rgb)) 50%);
}

/********************************************************
/ ハンバーガーメニュー
/********************************************************/
.site_header_navbtn {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    z-index: 1;
}

.site_header_navbtn span,
.site_header_navbtn::before,
.site_header_navbtn::after {
    width: 30px;
    height: 1px;
    background-color: #999;
    position: absolute;
    top: 50%;
    left: 5px;
    transition: transform .4s;
}

.site_header_navbtn::before,
.site_header_navbtn::after {
    content: "";
}

.site_header_navbtn::before {
    transform: translateY(-8px);
}

.site_header_navbtn::after {
    transform: translateY(8px);
}

body.is_nav_open .site_header_navbtn span {
    transform: scaleX(0);
}

body.is_nav_open .site_header_navbtn::before {
    transform: translateY(0) rotate(45deg);
}

body.is_nav_open .site_header_navbtn::after {
    transform: translateY(0) rotate(-45deg);
}


/********************************************************
/ メインビジュアル
/********************************************************/
main {
    margin-top: 60px;
}

#mainvisual {
    margin-bottom: 80px;
    position: relative;
    height: 600px;
    background: url(../img/topimage-bg.jpg) no-repeat center center;
    background-size: cover;
}

.m-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

.m-font {
    background-color: rgba(var(--main_color_rgb), 0.8);
    color: #ffffff;
    font-family: "fot-chiaro-std", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 5rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 10px;
    padding: 0px 0px 0px 20px;
    display: inline-block;
    text-align: center;
    transform: translateY(30rem);
    animation: textanimation 1s forwards;
}

.m-font:nth-child(1) {
    animation-delay: 3.1s;
}

.m-font:nth-child(2) {
    animation-delay: 3.2s;
}

.m-font:nth-child(3) {
    animation-delay: 3.3s;
}

.m-font:nth-child(4) {
    animation-delay: 3.4s;
}

.m-font:nth-child(5) {
    animation-delay: 3.5s;
}

.m-font:nth-child(6) {
    animation-delay: 3.6s;
}

.m-font:nth-child(7) {
    animation-delay: 3.7s;
}

.m-font:nth-child(8) {
    animation-delay: 3.8s;
}

.m-font:nth-child(9) {
    animation-delay: 3.9s;
}

.m-font:nth-child(10) {
    animation-delay: 4s;
}

.m-font:nth-child(11) {
    animation-delay: 4.1s;
}

.m-font:nth-child(12) {
    animation-delay: 4.2s;
}

.m-font:nth-child(13) {
    animation-delay: 4.3s;
}

.m-font:nth-child(14) {
    animation-delay: 4.4s;
}

.m-font:nth-child(15) {
    animation-delay: 4.5s;
}

.m-font:nth-child(16) {
    animation-delay: 4.6s;
}

.m-font:nth-child(17) {
    animation-delay: 4.7s;
}

.m-font:nth-child(18) {
    animation-delay: 4.8s;
}

.m-font:nth-child(19) {
    animation-delay: 4.9s;
}

.m-font:nth-child(20) {
    animation-delay: 5.0s;
}

@keyframes textanimation {
    0% {
        transform: translateY(20rem);
    }

    100% {
        transform: translateY(-5px);
    }
}

#mainvisual img {
    position: absolute;
    max-width: 550px;
    top: 35px;
    left: calc(50vw - 280px);
    object-fit: cover;
    animation: rotation 300s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/********************************************************
/ ABOUT
/********************************************************/
#about .content {
    display: flex;
    justify-content: center;
    align-items: center;
}

#photo_me {
    width: 300px;
    height: 300px;
    margin-right: 100px;
    mask-size: 200%;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-image: url(../img/nami_small_02.svg);
}

#about .text {
    text-align: left;
}

#about.wrapper {
    width: min(100% - 4rem, 960px);
    margin-inline: auto;
    transition: .6s;
    opacity: 0;
    transform: translateY(50px);
}

#about.wrapper.in_view {
    opacity: 1;
    transform: translateY(0);
}

.jp_name {
    font-size: 2rem;
}

.en_name {
    font-size: 0.8rem;
}

.place {
    text-align: center;
    font-size: 1.5rem;
    font-family: var(--fontfamiliy);
    margin-bottom: 30px;
}

.name_box {
    display: flex;
    justify-content: center;
    text-align: center;
    font-family: var(--fontfamiliy);
    margin-bottom: 15px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 50%, rgb(var(--main_link_rgb)) 50%);
}

.name_box * {
    width: 150px;
}

.icon {
    width: 30px;
    height: 30px;
    margin: 10px;
    margin-top: 40px;
}

/********************************************************
/ PHOTO
/********************************************************/
#photo ul {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

#photo li {
    width: 32%;
}

#photo img {
    border-radius: 50px 0px 50px 0px;
}

#photo.wrapper {
    transition: .6s;
    opacity: 0;
    transform: translateY(50px);
}

#photo.wrapper.in_view {
    opacity: 1;
    transform: translateY(0);
}

.photo_card {
    transition: .6s;
    opacity: 0;
    transform: translateY(50px);
}

.photo_card_text {
    padding: 10px;
    text-align: left;
}

.photo_list.in_view .photo_card {
    opacity: 1;
    transform: translateY(0);
}

.photo_list li:nth-of-type(2) .photo_card {
    transition-delay: .4s;
}

.photo_list li:nth-of-type(3) .photo_card {
    transition-delay: .8s;
}


/********************************************************
/ WORKS
/********************************************************/
#works.wrapper {
    transition: .6s;
    opacity: 0;
    transform: translateY(50px);
}

#works.wrapper.in_view {
    opacity: 1;
    transform: translateY(0);
}

.comment span {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0 0.25rem;
    margin-right: 0.25rem;
    margin-top: 0.25rem;
    line-height: 1.8;
    background-color: rgba(var(--main_link_rgb), 0.5);
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.website_list {
    display: flex;
    flex-wrap: wrap;
    gap: 50px 5%;
}

.website_list li {
    width: 100%;
    flex: 0 1 30%;
    position: relative;
}

.website_card a {
    transition: all 1s;
}

.website_card a:hover {
    background-color: rgb(var(--main_link_rgb));
}

.website_card_thum {
    cursor: pointer;
    position: relative;
}

.website_card_thum::before {
    background: rgba(var(--main_fontcolor_rgb), .8);
    bottom: 0;
    content: "";
    height: auto;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity .6s ease;
    width: 100%;
}

.website_card_thum:hover::before {
    opacity: 1;
}

.website_card_thum:hover::after {
    content: "詳細を見る";
    position: absolute;
    inset: 0;
    top: 45%;
    color: #fff;
    font-size: large;
}

.link_icon {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 5px;
}

/* banner */
.banner_small_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.banner_small_item {
    padding: 10px;
    width: calc((100% - 30px * 2) / 3);
    background-color: #fff;
    box-shadow: 5px 5px 5px 0 rgba(var(--main_color_rgb), .5);
}

.banner_big_wrap,
.other_big_wrap {
    margin-top: 30px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 5px 5px 5px 0 rgba(var(--main_color_rgb), .5);
}

/*****************************************************
/ about 個別ページ
/*****************************************************/
/* .about_history_title {
    color: #000;
    font-size: x-large;
} */

#about_page main.wrapper {
    margin-top: 60px;
}

.about_me_photo {
    width: 300px;
}

.history_box {
    margin-top: 100px;
    border-left: var(--main_color) solid 10px;
}

.history_item {
    display: flex;
}

.history_item time {
    position: relative;
    width: 15%;
    margin: 0 30px;
    border-right: var(--main_color) solid 2px;
}

.history_item time::before {
    position: absolute;
    content: "";
    width: 12px;
    height: 12px;
    background: var(--main_color);
    right: -7px;
    top: 7px;
    border-radius: 100%;
}

.history_title {
    width: 20%;
    text-align: left;
}

.history_text {
    width: 65%;
    margin-bottom: 50px;
    text-align: left;
}

/*****************************************************
/ Works 個別ページ 
/*****************************************************/
.website_img {
    margin-bottom: 30px;
}

.works .section_title {
    margin: 0 auto;
}

.website_detail {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 30px 20px;
}

.website_detail_title {
    width: 30%;
    max-width: 200px;
    text-align: left;
}

.website_detail_text {
    flex: 1;
    text-align: left;
}

/********* Works内のナビメニュー *********/
.nav_works {
    display: flex;
    justify-content: space-between;
    width: 200px;
    margin: 0 auto;
    position: relative;
}

.nav_prev::before {
    content: "";
    display: block;
    position: absolute;
    top: 8px;
    left: -20px;
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--main_color);
    border-left: 1px solid var(--main_color);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    transition: 0.3s ease-in-out;
}

.nav_next::before {
    content: "";
    display: block;
    position: absolute;
    top: 8px;
    right: -20px;
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--main_color);
    border-right: 1px solid var(--main_color);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    transition: 0.3s ease-in-out;
}

.nav_prev:hover::before {
    left: -40px;
}

.nav_next:hover::before {
    right: -40px;
}

.nav_none {
    visibility: hidden;
}

/* フッター設定 */
footer {

    padding: 50px 0;
    text-align: center;
}

.pagetop {
    width: 100px;
    height: 100px;
    position: fixed;
    z-index: 2000;
    right: 30px;
    bottom: 50px;
    cursor: pointer;
    opacity: .4;
}

.pagetop:hover {
    opacity: .9;
}

.pagetop.fadein_top {
    animation: upanime 0.5s forwards;
}

.pagetop.fadeout_top {
    animation: downanime 0.5s forwards;
}

@keyframes upanime {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes downanime {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(150px);
    }
}

/* SP */

@media screen and (max-width:599px) {

    /* 全体設定 */
    .wrapper {
        margin-bottom: 100px;
        padding: 0 15px;
    }

    header .wrapper,
    .wrapper p {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    /* ハンバーガーメニュー */
    .site_header_navbtn {
        display: block;
    }

    .site_header_nav {
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background-color: #fff;
        opacity: .9;
        transform: translateX(-100%);
        transition: transform .6s;
    }

    body.is_nav_open .site_header_nav {
        transform: translateX(0);
    }

    .site_header_nav ul {
        height: 100%;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .site_header_nav ul li:not(:last-child) {
        margin-right: 0;
        margin-bottom: 1.5em;
    }

    .site_header_nav ul li a {
        font-size: 1.5em;
    }

    /* メインビジュアル */
    #mainvisual {
        overflow-x: hidden;
        height: calc(100vh - 60px);
    }

    .m-box {
        max-width: 350px;
    }

    .m-font {
        width: 50px;
        height: 50px;
        font-size: 3rem;
        padding-left: 10px;
    }

    .kazari {
        display: none;
    }

    #about .content {
        flex-direction: column;
    }

    #about img {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    #about .text {
        text-align: center;
    }

    #photo ul {
        flex-direction: column;
    }

    #photo li {
        width: 100%;
        margin-bottom: 2rem;
    }

    #works ul.website_list {
        flex-direction: column;
    }

    #works li.website_list {
        width: 100%;
        margin-bottom: 2rem;
    }

    .banner_small_item {
        width: 100%;
        text-align: center;
        box-shadow: none;
    }

    .banner_big_wrap,
    .other_big_wrap {
        box-shadow: none;
    }

    .pagetop {
        width: 60px;
        height: 60px;
    }
}

.slick_img img {
    width: 300px;
    opacity: 1;
}