@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* outline: 1px solid salmon; */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

img {
    vertical-align: bottom;
    width: 100%;
}

/*---------------背景部分----------------*/

#container {
    padding: 5rem 2rem 0;
    margin: 0 auto;
    background-color: #E2D9D4;
    border-radius: 5px;
    background-size: 90px 90px;

}

header,
main {
    max-width: 1000px;
    margin: 0 auto;
}

/*----------------ヘッダー部分----------------*/


#top h1 {
    background-color: #649b92;
    color: #E2D9D4;
    display: inline-block;
    padding: 0 1rem 0 4rem;
    font-size: 80px;
    position: relative;
    font-family: "Roboto", sans-serif;
    border-radius: 5px;
}

h1::before {
    content: "ORII";
    position: absolute;
    top: -74px;
    left: 15px;
    color: #649b92;
}

#top p {
    font-family: "Roboto", sans-serif;
    padding-bottom: 4em;
    color: #538078;
    font-size: clamp(4px 10vw 18px);
}

#top #greeting {
    font-size: 18px;
    color: #45423d;
    font-family: "Kosugi Maru", sans-serif;
    line-height: 26px;
}

/*----------------メイン部分----------------*/

.fv {
    display: flex;
    justify-content: space-between;
}

nav ul {
    list-style: none;
    text-align: left;
    margin-bottom: 10rem;
}

nav ul li {
    margin-bottom: 2em;
    border-bottom: #45423d dashed 1px;
    padding-bottom: 3px;
}

nav ul li a {
    font-size: 22px;
    text-decoration: none;
    color: #45423d;
    font-family: "Roboto", sans-serif;
    position: relative;
    display: block;
    transition: 0.2s ease;

}

nav ul li a::before {
    content: "→";
    font-size: 16px;
    position: absolute;
    top: -3px;
    right: 10px;
    color: #45423d;
    opacity: 1;
    transition: 0.2s;
}

nav ul li a:hover::before {
    opacity: 1;
    right: 0px;
    color: #649b92;

}

nav ul li a:hover {
    color: #649b92;
    transform: translateX(5px);
}

nav ul li:last-child {
    margin-bottom: 0;
}

h2 {
    font-family: "Roboto", sans-serif;
    color: #df7322;
}

/* ---------------works部分---------------- */

#works {
    display: inline-block;
    border: solid 3px #df7322;
    font-size: 35px;
    padding: .5em 1em;
    margin-bottom: 1em;
    border-radius: 5px;
}

.works_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 6em;
}

.works_list a {
    text-decoration: none;
    transition: transform .3s ease-out, box-shadow 0.3s;
    box-shadow: 0 0 0 rgba(124, 96, 87, 0.1);
}

.works_list a:hover {
    transform: rotate(2deg);
    box-shadow: 0 4px 8px rgba(124, 96, 87, 0.5);
}

.card {
    font-family: "Zen Kurenaido", sans-serif;
    font-size: 20px;
    width: 300px;
    height: 310px;
    background-color: #f6f3ef;
    padding: 20px;
    border-radius: 5px;
    color: #45423d;
    position: relative;
}

.works_list a:first-child .card::before {
    content: "NEW";
    position: absolute;
    top: -30px;
    right: 0;
    display: inline-block;
    background-color: #649b92;
    color: #f6f3ef;
    padding: 0px 15px;
    line-height: 30px;
    border-radius: 5px 5px 0 0;
}

.works_list a:first-child .card {
    border-radius: 5px 0 5px 5px;
}

.card_img {
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.card_img3 {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: 0% 20%;
}

.card #more {
    border: #649b92 solid 2px;
    border-radius: 15px;
    color: #649b92;
    font-size: 16px;
    width: 150px;
    padding: 3px 15px;
    margin-left: auto;
    transition: background-color .3s ease, color .3s ease;
}

.works_list a:hover #more {
    background-color: #649b92;
    color: #f6f3ef;
}

h4 {
    margin-top: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.card_date {
    display: flex;
    justify-content: space-between;
}

/* -------------illst部分--------------- */

#illust {
    display: inline-block;
    border: solid 3px #df7322;
    font-size: 35px;
    padding: .5em 1em;
    margin-bottom: 1em;
    border-radius: 5px;
}

.illust_list p {
    color: #45423d;
    font-family: "Kosugi Maru", sans-serif;
    margin-bottom: 2em;
}

.illust_list {
    margin-bottom: 8em;
}

.slick-dots li button:before {
    font-size: 15px;
    color: #649b92;
}

.slick-dots li.slick-active button:before {
    color: #538078
}

.slick-prev:before,
.slick-next:before {
    color: #649b92;
}

#cboxTitle {
    color: #45423d;
    line-height: 1.6;
}

#cboxContent {
    background-color: #e7e2e0;
}

.illust_detail {
    width: 80%;
    max-width: 700px;
    margin: 0 auto;
    padding: 10px;
    background-color: #e7e2e0;
    display: flex;
    gap: 1em;
}


.illust_detail img {
    display: block;
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 0 auto 10px;
    flex-shrink: 0;
}

.illust_detail p {
    margin: 0;
    line-height: 1.8;
    color: #45423d;
}



.illust_detail_wrap {
    display: none;
}

.sketch {
    display: flex;
}

#illust03 figure {
    max-width: 200px;
    height: auto;

}



/* ------------about部分------------- */

.about_wrap {
    text-align: center;
}

#about_title {
    position: relative;
    display: inline-block;
}

#about_title img {
    position: absolute;
    width: 120px;
    height: auto;
    top: -28px;
    left: 36px;
}

#about {
    display: inline-block;
    border: solid 3px #df7322;
    font-size: 35px;
    padding: .5em 1em;
    margin-bottom: 2em;
    border-radius: 5px;
}

#profile_card {
    display: flex;
    justify-content: space-between;
    gap: 2em;
    margin-bottom: 3em;
    color: #45423d;
    font-family: "Kosugi Maru", sans-serif;
    font-weight: 400;
    font-style: normal;
    align-items: center;
}

#prof {
    width: 65%;
    position: relative;
    background-color: #e7e2e0;
    padding: 1em;
    border-radius: 5px;
    box-shadow: -1px 2px 3px rgba(124, 96, 87, 0.5)
}

#prof img {
    width: 150px;
    height: auto;
    position: absolute;
    top: -30px;
    left: 250px;
    rotate: -6deg;
}

#profile_card h3 {
    text-align: left;
    margin-bottom: 1.5em;
    font-size: 20px;
    border-left: #df7322 5px solid;
    padding-left: .5em;

}

#prof p {
    font-size: 18px;
    line-height: 2.3em;
    text-decoration: underline;
    text-decoration-color: #7f7a71;
    text-decoration-style: dashed;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    text-align: justify;
}

#keireki {
    width: 30%;
    background-color: #e7e2e0;
    padding: 1em;
    position: relative;
    border-radius: 5px;
    box-shadow: -1px 2px 3px rgba(124, 96, 87, 0.5)
}

#keireki img {
    width: 150px;
    height: auto;
    position: absolute;
    top: -28px;
    left: 78px;
    rotate: 3deg;
}


#keireki dd {
    margin-bottom: 1.5em;
    border-bottom: #7f7a71 1px dashed;
    padding-bottom: .5em;
}

#keireki_last {
    text-align: right;
}

.link_top {
    text-align: right;
}

.link_top a {
    font-size: 20px;
    text-decoration: none;
    color: #45423d;
    position: relative;
}

.link_top a::before {
    content: "→";
    position: absolute;
    top: 0px;
    left: -30px;
    color: #649b92;
    opacity: 0;
    transition: 0.2s;
}

.link_top a:hover::before {
    opacity: 1;
    left: -20px;
}

.link_top a:hover {
    color: #649b92;
}

.link_hutaba {
    width: 110px;
    height: auto;
    transform: translateY(25px) translateX(-40px);
}

/*---------------フッター部分----------------*/

footer {
    background-color: #649b92;
    color: #E2D9D4;
    line-height: 100px;
    text-align: center;
}


/*---------------works詳細ページ----------------*/

#works_body {
    font-family: "Kosugi Maru", sans-serif;
    font-weight: 400;
    font-style: normal;
}

#works_body #container {
    padding-top: 3em;
}

#works_body .works_logo h1 {
    padding: 0 .5rem 0 2rem;
    font-size: 40px;
}

#works_body .works_logo h1::before {
    top: -38px;
    left: 12px;
}

#works_body .works_logo p {
    padding-bottom: 1em;
    font-size: 10px;
    margin-bottom: 2em;
}

.works_inner,
.works_inner2 {
    display: flex;
    justify-content: center;
    gap: 2em;
    margin-bottom: 4rem;
}

#works_inner,
.works_inner2 {
    align-items: flex-start;
}

.works_item {
    width: 40%;
}

#works_item {
    width: 35%;
    padding: .1em;
    box-shadow: 3px 3px 3px rgba(124, 96, 87, 0.5);
    background-color: #f6f3ef;
    padding: 18px;
    border-radius: 5px;
}

#works_item img {
    border-radius: 5px;
}

#works_summary {
    width: 65%;
}

.works_item2 {
    width: 60%;
}

#works_summary2 {
    width: 40%;
}

.works_item3 {
    width: 50%;
}

.works_summary3 {
    width: 50%;
    background-color: #e7e2e0;
    padding: 1em 1em;
    color: #45423d;
    border-radius: 5px;
}

#photoflame {
    width: 100%;
    height: 500px;
    object-fit: contain;
}

.works_summary,
.works_summary2 {
    width: 60%;
    background-color: #e7e2e0;
    padding: 1em 1em;
    color: #45423d;
    border-radius: 5px;
}

.works_summary dt,
.works_summary2 dt,
.works_summary3 dt {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    border-left: #649b92 solid 5px;
    padding-left: .5em;
}

.works_summary dd,
.works_summary2 dd,
.works_summary3 dd {
    margin-bottom: 2em;
    line-height: 35px;
    font-size: 17px;
    text-align: justify;

    text-decoration: underline;
    text-decoration-color: #7f7a71;
    text-decoration-style: dashed;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}

.works_summary dd:last-child p {
    margin-bottom: 1em;
}

#works_body h3 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 0;
    color: #45423d;
}

#works_body .works_list {
    transform: scale(0.7);
    margin-bottom: 3em;
}

#works_list a:first-child .card::before {
    content: "";
}

.rough {
    display: flex;
    margin-bottom: 1em;
}

h5 {
    font-size: 18px;
}


/*ーーーーーーーー スマホ版レイアウトーーーーーーー */


@media(max-width:768px) {

    #container {
        padding: 3rem 1rem 0;
    }

    #top {
        margin-bottom: 6em;
    }

    #top h1 {
        padding: 0 .5rem 0 2rem;
        font-size: 40px;
    }

    h1::before {
        top: -38px;
        left: 12px;
    }

    #top p {
        padding-bottom: 1em;
        font-size: 10px;
    }

    #top #greeting {
        font-size: 12px;
        line-height: 20px;
    }

    main {
        width: 100%;
    }

    .fv {
        display: block;
        margin-bottom: 0%;
        position: relative;
        min-height: 500px;
    }

    .anime {
        /* transform: scale(0.65) !important; */
        flex-shrink: 0;
        width: 500px;
        height: 500px;
        /* transform-origin: center top; */
    }

    .anime_mask {
        width: 100%;
        min-height: 500px;
        min-height: 500px;
        position: relative;
        display: flex;
        justify-content: center;
        flex-shrink: 0;
    }

    #happa {
        position: absolute;
        right: -100px;
        bottom: 5px;

    }

    #greeting {
        margin-bottom: -80px;
    }

    #works_title,
    #illust_title,
    #about_title {
        text-align: center;
    }

    #works,
    #illust,
    #about {
        font-size: 25px;
        margin-bottom: 2em;
    }

    .card {
        padding: 0;
        margin-bottom: .5em;
    }

    .card_date {
        padding: 0 1em 0;
    }

    #about_title img {
        top: -28px;
        left: 10px;
    }

    #prof img {
        width: 130px;
        top: -30px;
        left: 110px;
        rotate: -10deg;
    }


    .works_list {
        gap: 15px;
    }

    .illust_list {
        margin-bottom: 5rem;
    }

    .illust_list p {
        font-size: 12px;
        text-align: center;
    }

    #cboxLoadedContent {
        max-height: 70vh;
    }

    #cboxLoadedContent img {
        max-width: 100%;
        max-height: 70vh;
        width: auto;
        height: auto;
    }

    .slick-prev,
    .slick-next {
        display: none !important;
    }

    .illust_detail {
        width: 80%;
        padding: 10px;
        display: block;
    }


    #profile_card {
        display: block;
        padding: 2rem 1rem;
    }

    #prof {
        width: 100%;
        margin-bottom: 3rem;
    }

    #prof p {
        font-size: 12px;
    }

    #keireki {
        width: 100%;
        margin-top: 2rem;
        font-size: 12px;
    }

    .works_inner {
        display: block;
        justify-content: center;
        margin-bottom: 2rem;

    }

    .works_item,
    .works_item2,
    .works_item3 {
        width: 100%;
        margin-bottom: 1em;
    }

    .works_inner2 {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .works_item2 {
        order: 1;
    }

    .works_summary2 {
        order: 2;
    }

    #works_item {
        margin: 0 auto 1em;
        padding: 10px;
    }

    #photoflame {
        width: 100%;
        height: 200px;
        object-fit: contain;
    }

    .works_summary,
    .works_summary2,
    .works_summary3 {
        width: 100%;
        padding: 1em;
    }

    #works_summary,
    #works_summary2 {
        margin: 0 auto;
        width: 100%;
    }


    .works_summary dt,
    .works_summary2 dt,
    .works_summary3 dt {
        font-size: 16px;
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 4px;
        margin-bottom: 8px;
    }

    .works_summary dd,
    .works_summary2 dd,
    .works_summary3 dd {
        margin-bottom: 2em;
        line-height: 2em;
        font-size: 14px;
        text-align: justify;
    }

    #works_body .works_logo {
        margin-bottom: 0;
    }

    #works_body h3 {
        margin-bottom: -2em;
    }

    #works_body .works_list {
        margin-bottom: -2em;
    }

    h5 {
        font-size: 16px;
    }

    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

}