/*
Theme Name: portfolio
Author: Chikai Yoshiki
Description: 自作ポートフォリオテーマ
Version: 1.0
*/

@charset "utf-8";

/* 基本レイアウト */
html,
body
{
    font-family: 'Not Serif JP', serif;
    margin: 0;
    scroll-behavior: smooth;
}
#main
{
    width: 100%;
    max-width: 1090px;
    margin: 0 auto;
}
#bg
{
    width: 100%;
    position: absolute;
    top: 0;
    z-index: -1;
}
#about_bg
{
    background-color: rgba(247, 247, 249, 1);
}
#works_bg
{
    background-color: rgba(233, 238, 242, 1);
}
#event_bg
{
    background-color: rgba(247, 247, 249, 1);
}

/* ヘッダー領域 */
#header
{
    width: 100%;
    position: sticky;
    top: 0;
    background-color: rgba(247, 247, 249, 1);
    border-bottom: solid 3px rgba(233, 238, 242, 1);
    z-index: 2;
}
#hamburger_menu
{
    display: none;
}
#header_sp
{
    display: none;
    z-index: 2;
}
#nav_sp
{
    display: none;
}
#nav ul
{
    display: flex;
}
#nav ul li
{
    margin: 25px 0 25px 50px;
}
#nav ul li a
{
    font-size: 30px;
    color: rgba(51, 51, 51, 1);
}
/* メイン領域 */
/* タイトル */
#title
{
    text-align: center;
    padding: 300px 0 335px 0;
    position: relative;
}
#title h1
{
    font-size: 80px;
    font-weight: bold;
    color: rgba(13, 27, 42, 1);
    position: relative;
    z-index: 1;
}
#title h1 span
{
    margin-right: 50px;
}
.egg
{
    border-radius : 80% 80% 80% 80% / 100% 100% 65% 65%;
    position: absolute;
}
/* 真ん中 */
#egg1
{
    background-color: rgba(220, 227, 232, 0.85);
    transform: rotate(45deg);
    width: 110px;
    height: 150px;
    left: 80%;
    bottom: 45%;
}
/* 右 */
#egg2
{
    background-color: rgba(233, 238, 242, 0.85);
    transform: rotate(90deg);
    width: 85px;
    height: 125px;
    left: 87%;
    bottom: 40%;
}
/* 左 */
#egg3
{
    background-color: rgba(225, 235, 247, 0.85);
    transform: rotate(0deg);
    width: 60px;
    height: 100px;
    left: 76%;
    bottom: 50%;
}
/* ABOUT */
#about
{
    margin-bottom: 110px;
}
#about h2
{
    font-size: 35px;
    display: flex;
    align-items: center;
    color: rgba(51, 51, 51, 1);
    margin-bottom: 75px;
}
#about h2:before,
#about h2:after
{
    content: "";
    height: 3px;
    flex-grow: 1;
    background-color: rgba(51, 51, 51, 1);
}
#about h2:before
{
    margin-right: 20px;
}
#about h2:after
{
    margin-left: 20px;
}
#about_grid
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.about_box:nth-of-type(1)
{
    display: flex;
    align-items: center;
}
.about_box:nth-of-type(2)
{
    display: flex;
}
.about_box:nth-of-type(2) #about_detail
{
    height: auto;
    margin: auto 0;
}
#myPhoto_box
{
    max-width: 525px;
    box-shadow:5px 5px 5px rgba(112, 112, 112, 1);
}
#myPhoto_box img
{
    width: 100%;
}
#about_detail h3
{
    font-size: 30px;
    margin-bottom: 20px;
    color: rgba(51, 51, 51, 1);
}
#about_detail p
{
    font-size: 25px;
    margin-bottom: 10px;
    word-break: break-all;
    color: rgba(51, 51, 51, 1);
}
#about_detail p:nth-of-type(3)
{
    margin-bottom: 20px;
}
#about_detail p:nth-of-type(4)
{
    margin-bottom: 0;
}
/* WORKS */
#works
{
    margin-bottom: 110px;
}
#works h2
{
    font-size: 35px;
    display: flex;
    align-items: center;
    color: rgba(51, 51, 51, 1);
    margin-bottom: 75px;
}
#works h2:before,
#works h2:after
{
    content: "";
    height: 3px;
    flex-grow: 1;
    background-color: rgba(51, 51, 51, 1);
}
#works h2:before
{
    margin-right: 20px;
}
#works h2:after
{
    margin-left: 20px;
}
#works_grid
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
}
#works_grid .work_box:nth-child(even)
{
    margin-left: auto;
}
#works_grid .work_box
{
    max-width: 525px;
    cursor: pointer;
}
.img_box
{
    width: 100%;
    margin-bottom: 20px;
    box-shadow:5px 5px 5px rgba(112, 112, 112, 1);
}
.img_box img
{
    width: 100%;
}
#work_title
{
    font-size: 30px;
}
#work_production
{
    font-size: 25px;
}
/* EVENT */
#event
{
    margin-bottom: 75px;
}
#event h2
{
    font-size: 35px;
    display: flex;
    align-items: center;
    color: rgba(51, 51, 51, 1);
    margin-bottom: 75px;
}
#event h2:before,
#event h2:after
{
    content: "";
    height: 3px;
    flex-grow: 1;
    background-color: rgba(51, 51, 51, 1);
}
#event h2:before
{
    margin-right: 20px;
}
#event h2:after
{
    margin-left: 20px;
}
.year_txt
{
    font-size: 30px;
    margin-bottom: 20px;
    color: rgba(51, 51, 51, 1);
}
.month_txt
{
    font-size: 25px;
    margin: 0 0 10px 20px;
    color: rgba(51, 51, 51, 1);
}
.month_txt:nth-of-type(4)
{
    margin-bottom: 20px;
}
.month_txt:before
{
    content: "・";
}
.month_txt:nth-of-type(6)
{
    margin-bottom: 0;
}
/* フッター領域 */
#footer
{
    padding: 75px 0;
    background-color: rgba(247, 247, 249, 1);
}
#pageTop
{
    width: 50px;
    height: 50px;
    border: solid 3px rgba(51, 51, 51, 1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}
#pageTop_arrow
{
    width: 20px;
    height: 20px;
    border-top: 3px solid rgba(51, 51, 51, 1);
    border-right: 3px solid rgba(51, 51, 51, 1);
    transform: translateY(20%) rotate(-45deg);
}

/* タブレット */
@media screen and (max-width:768px)
{
    /* 基本レイアウト */
    #main
    {
        max-width: 680px;
    }

    /* ヘッダー領域 */
    #header
    {
        border-bottom: solid 2px rgba(233, 238, 242, 1);
    }
    #nav ul li a
    {
        font-size: 20px;
    }
    /* メイン領域 */
    /* タイトル */
    #title
    {
        padding: 220px 0 245px 0;
    }
    #title h1
    {
        font-size: 55px;
    }
    #title h1 span
    {
        margin-right: 35px;
    }
    /* 真ん中 */
    #egg1
    {
        width: 77px;
        height: 105px;
        left: 83%;
    }
    /* 右 */
    #egg2
    {
        width: 59.5px;
        height: 87.5px;
        left: 90%;
    }
    /* 左 */
    #egg3
    {
        width: 42px;
        height: 70px;
        left: 79%;
    }
    /* ABOUT */
    #about
    {
        margin-bottom: 80px;
    }
    #about h2
    {
        font-size: 30px;
        margin-bottom: 55px;
    }
    #about h2:before,
    #about h2:after
    {
        height: 2px;
    }
    #about h2:before
    {
        margin-right: 15px;
    }
    #about h2:after
    {
        margin-left: 15px;
    }
    #about_grid
    {
        gap: 20px;
    }
    #myPhoto_box
    {
        max-width: 330px;
    }
    #about_detail h3
    {
        font-size: 25px;
        margin-bottom: 10px;
    }
    #about_detail p
    {
        font-size: 20px;
        margin-bottom: 5px;
    }
    #about_detail p:nth-of-type(3)
    {
        margin-bottom: 10px;
    }
    /* WORKS */
    #works
    {
        margin-bottom: 80px;
    }
    #works h2
    {
        font-size: 30px;
        margin-bottom: 55px;
    }
    #works h2:before
    {
        margin-right: 15px;
    }
    #works h2:after
    {
        margin-left: 15px;
    }
    #works h2:before,
    #works h2:after
    {
        height: 2px;
    }
    #works_grid
    {
        row-gap: 20px;
    }
    #works_grid .work_box
    {
        max-width: 330px;
    }
    .img_box
    {
        margin-bottom: 15px;
    }
    #work_title
    {
        font-size: 25px;
    }
    #work_production
    {
        font-size: 20px;
    }
    /* EVENT */
    #event
    {
        margin-bottom: 55px;
    }
    #event h2
    {
        font-size: 30px;
        margin-bottom: 55px;
    }
    #event h2:before
    {
        margin-right: 15px;
    }
    #event h2:after
    {
        margin-left: 15px;
    }
    #event h2:before,
    #event h2:after
    {
        height: 2px;
    }
    .year_txt
    {
        font-size: 25px;
        margin-bottom: 10px;
    }
    .month_txt
    {
        font-size: 20px;
        margin: 0 0 5px 10px;
        position: relative;
        padding-left: 20px;
    }
    .month_txt:before
    {
        position: absolute;
        left: 0;
    }
    .month_txt:nth-of-type(4)
    {
        margin-bottom: 10px;
    }
    /* フッター領域 */
    #footer
    {
        padding: 55px 0;
    }
    #pageTop
    {
        width: 45px;
        height: 45px;
        border: solid 2px rgba(51, 51, 51, 1);
        border-radius: 50%;
    }
    #pageTop_arrow
    {
        width: 15px;
        height: 15px;
        border-top: 2px solid rgba(51, 51, 51, 1);
        border-right: 2px solid rgba(51, 51, 51, 1);
    }
}

/* スマートフォン */
@media screen and (max-width:480px)
{
    /* 基本レイアウト */
    #main
    {
        max-width: 320px;
    }

    /* ヘッダー領域 */
    #header
    {
        display: none;
    }
    #header_sp
    {
        display: block;
        width: 100%;
        position: sticky;
        top: 0;
        background-color: rgba(247, 247, 249, 1);
        border-bottom: solid 1px rgba(233, 238, 242, 1);
        padding: 10px 10px 10px 0;
        z-index: 3;
    }
    #btn-trigger
    {
        position: relative;
        width: 30px;
        height: 30px;
        margin-left: auto;
    }
    .line
    {
        position: absolute;
        width: 100%;
        border-width: 2px;
        background-color: rgba(51, 51, 51, 1);
        transition: all 0.5s ease;
    }
    #btn-trigger span:nth-of-type(1)
    {
        top: 0%;
    }
    #btn-trigger span:nth-of-type(2)
    {
        top: 50%;
        transform: translateY(-50%);
    }
    #btn-trigger span:nth-of-type(3)
    {
        top: 100%;
        transform: translateY(-100%);
    }
    /* open */
    #btn-trigger span.open:nth-of-type(1)
    {
        top: 50%;
        transform: rotate(45deg);
    }
    #btn-trigger span.open:nth-of-type(2)
    {
        opacity: 0;
    }
    #btn-trigger span.open:nth-of-type(3)
    {
        top: 50%;
        transform: rotate(-45deg);
    }
    #nav_sp
    {
        display: flex;
        width: 100%;
        height: 100vh;
        align-items: center;
        position: fixed;
        top: 50px;
        right: -100%;
        transition: 0.5s ease;
        background-color: rgba(247, 247, 249, 1);
        z-index: 2;
    }
    #nav_sp.active
    {
        right: 0;
    }
    #nav_sp ul
    {
        margin: 0 auto;
    }
    #nav_sp ul li:nth-of-type(2)
    {
        margin: 50px 0;
    }
    #nav_sp ul li a
    {
        font-size: 25px;
        font-weight: bold;
        color: rgba(51, 51, 51, 1);
    }
    body.active
    {
        overflow: hidden;
    }
    /* メイン領域 */
    /* タイトル */
    #title
    {
        padding: 145px 0 160px 0;
    }
    #title h1
    {
        font-size: 30px;
    }
    #title h1 span
    {
        margin-right: 25px;
    }
    /* 真ん中 */
    #egg1
    {
        width: 44px;
        height: 60px;
        left: 90%;
    }
    /* 右 */
    #egg2
    {
        width: 34px;
        height: 50px;
        left: 97%;
    }
    /* 左 */
    #egg3
    {
        width: 24px;
        height: 40px;
        left: 86%;
    }
    /* ABOUT */
    #about
    {
        margin-bottom: 60px;
    }
    #about h2
    {
        font-size: 25px;
        margin-bottom: 40px;
    }
    #about h2:before,
    #about h2:after
    {
        height: 1px;
    }
    #about h2:before
    {
        margin-right: 10px;
    }
    #about h2:after
    {
        margin-left: 10px;
    }
    #about_grid
    {
        grid-template-columns: repeat(1, 1fr);
        gap: 40px;
    }
    #about_detail h3
    {
        font-size: 20px;
    }
    #about_detail p
    {
        font-size: 16px;
    }
    /* WORKS */
    #works
    {
        margin-bottom: 60px;
    }
    #works h2
    {
        font-size: 25px;
        margin-bottom: 40px;
    }
    #works h2:before,
    #works h2:after
    {
        height: 1px;
    }
    #works h2:before
    {
        margin-right: 10px;
    }
    #works h2:after
    {
        margin-left: 10px;
    }
    #works_grid
    {
        grid-template-columns: repeat(1, 1fr);
        row-gap: 10px;
    }
    #works_grid .work_box
    {
        width: 100%;
        margin-bottom: 10px;
    }
    #works_grid .work_box:nth-child(even)
    {
        margin-left: 0;
    }
    .img_box
    {
        margin-bottom: 10px;
    }
        #work_title
    {
        font-size: 20px;
    }
    #work_production
    {
        font-size: 16px;
    }
    /* EVENT */
    #event
    {
        margin-bottom: 40px;
    }
    #event h2
    {
        font-size: 25px;
        margin-bottom: 40px;
    }
    #event h2:before,
    #event h2:after
    {
        height: 1px;
    }
    #event h2:before
    {
        margin-right: 10px;
    }
    #event h2:after
    {
        margin-left: 10px;
    }
    .year_txt
    {
        font-size: 20px;
    }
    .month_txt
    {
        font-size: 16px;
        padding-left: 16px;
    }
    /* フッター領域 */
    #footer
    {
        padding: 40px 0;
    }
    #pageTop
    {
        width: 40px;
        height: 40px;
        border: solid 1px rgba(51, 51, 51, 1);
    }
    #pageTop_arrow
    {
        width: 10px;
        height: 10px;
        border-top: 1px solid rgba(51, 51, 51, 1);
        border-right: 1px solid rgba(51, 51, 51, 1);
    }
}

/* スマートフォン(mini) */
@media screen and (max-width:390px)
{
    /* 真ん中 */
    #egg1
    {
        width: 44px;
        height: 60px;
        left: 83%;
    }
    /* 右 */
    #egg2
    {
        width: 34px;
        height: 50px;
        left: 90%;
    }
    /* 左 */
    #egg3
    {
        width: 24px;
        height: 40px;
        left: 79%;
    }
}