@charset "UTF-8";

/*********FONT*********/

@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

/*********COMMON*********/

* {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
}

body {
    font-family: "Lato", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "Meiryo", "Yu Gothic", sans-serif;
    margin-top: 30px;
    margin-left: 20px;
    margin-right: 20px;
    line-height: 1.8em;
    color: #333333;
}

img {
    max-width: 100%;
    height: auto;
}

p {
    margin: 10px 0;
}

header {
    /*border-bottom: solid 3px #333333;*/
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

h1 {
    font-size: 2.0em;
    padding-bottom: 10px;
}

h2 {
    font-size: 1.2em;
    border-bottom: solid 2px #333333;
    margin-top: 50px;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.1em;
    margin-top: 40px;
    margin-bottom: 5px;
}


/*各作品ページの見出し*/

h2.header-works {
    border: 0;
    margin-bottom: 0;
}

p.header-works {
    margin-top: 0;
}

ul {
    list-style-type: square;
    padding-left: 20px;
}

ol {
    list-style-type: none;
}

rt {
    font-size: 0.5em;
    font-weight: normal;
}

figure {
    text-align: center;
}

figcaption {
    font-size: 0.8em;
    line-height: 1.5em;
    margin-top: 0;
}


/*********CUSTOM*********/

.center {
    text-align: center;
}

.small-text {
    font-size: 0.8em;
}

#language {
    font-weight: bold;
    font-size: 0.8em;
}

#name {
    /*font-weight: bold;*/
    font-size: 1.2em;
    /*margin-top: 20px;*/
}

.profile-image{
    margin-right:20px;
}


/*********LINK*********/

a,
a:link,
a:visited,
.exp-btn {
    color: #999999;
    text-decoration: none;
}

a:hover,
a:active {
    color: #dddddd;
    text-decoration: underline;
}

header a,
header a:link,
header a:visited {
    color: #333333;
    text-decoration: none;
}

header a:hover,
header a:active,
.exp-btn:hover {
    color: #cccccc;
    text-decoration: none;
}


/*********MAIL*********/

.mail::after {
    content: attr(data-domain);
}

.mail::before {
    content: attr(data-user) "@";
}


/*********GRID*********/

.grid {
    display: grid;
    row-gap: 20px;
    column-gap: 10px;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-item a:hover img {
    opacity: 60%;
}

.grid-works {
    row-gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    margin: 20px 0;
}


/*********FOOTER*********/

#footer-menu {
    list-style-type: none;
    padding-left: 0;
    margin-top: 30px;
    margin-bottom: 20px;
    border-top: solid 1px #333333;
    display: flex;
    justify-content: space-between;
}

#footer-menu li {
    font-size: 0.6em;
}


/*********TOP-ARROW*********/

#page-top {
    width: 50px;
    height: 50px;
    position: fixed;
    right: 20px;
    bottom: 35px;
    background: #cccccc;
    opacity: 0.5;
    border-radius: 50%;
}

#page-top a {
    position: relative;
    display: block;
    width: 50px;
    height: 50px;
    text-decoration: none;
}

#page-top a::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f106';
    font-size: 30px;
    color: #fff;
    position: absolute;
    width: 30px;
    height: 30px;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
}


/*********MORE-CLOSE*********/

.exp-wrap {
    position: relative;
    margin-bottom: 80px;
}

.exp-btn {
    z-index: 2;
    position: absolute;
    right: 0;
    bottom: -50px;
    left: 0;
    width: 100px;
    margin: auto;
    text-align: center;
}

.exp-btn::after {
    content: "MORE"
}

.exp-btn .fa {
    margin-right: 2px;
}

.exp-item {
    position: relative;
    overflow: hidden;
    height: 0px;
    /*隠した状態の高さ*/
}

.exp-item::before {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.exp-trigger {
    display: none;
    /*チェックボックスは常に非表示*/
}

.exp-trigger:checked~.exp-btn::after {
    content: "CLOSE"
    /*チェックされていたら、文言を変更する*/
}

.exp-trigger:checked~.exp-btn .fa {
    transform: rotate(180deg);
}

.exp-trigger:checked~.exp-item {
    margin-top: 20px;
    height: auto;
    /*チェックされていたら、高さを戻す*/
}

.exp-trigger:checked~.exp-item::before {
    display: none;
    /*チェックされていたら、grad-itemのbeforeを非表示にする*/
}


/*********MEDIA SCREEN*********/


/*ディスプレイ幅1040以降で1000に固定*/

@media screen and (min-width: 1040px) {
    body {
        width: 1000px;
        margin-right: auto;
        margin-left: auto;
    }
}


/*スマホ用*/

@media screen and (max-width:800px) {}