@charset "UTF-8";

:root {
    --header-content: #909090;
    --main-text: #343434;
    --main-background: #FfFfFf;
    --header-background: #FfFfFfc0;

    --image-background: #e0e0e0;
    --header-shadow-color: rgba(0, 0, 0, 1.0);

    --link-color: #5570E0;
    --link-hover-color: #5570E0;

    --highlight-blendmode: multiply;

    --max-width: 1280px;
    --wide-max-width: 4000px;
}
@media (prefers-color-scheme: dark) {
    :root {
      --header-content: #c0c0c0;
      --main-text: #f0f0f0;
      --main-background: #000000;
      --header-background: #101010C0;
      --header-shadow-color: rgba(255, 255, 255, 1.0);

      --image-background: #404040;

      --highlight-blendmode: screen;

      --link-color: #60A0F0;
      --link-hover-color: #60A0F0;
    }
}



body {
    color: var(--main-text);
    /* font-family: YuGothic, "Yu Gothic Medium", "Yu Gothic", sans-serif; */
    /* font-family: '游明朝','Yu Mincho',YuMincho,'Hiragino Mincho Pro',serif; */

    font-family: "helvetica", -apple-system, "Yu Gothic Medium", "Yu Gothic", sans-serif;

    font-size: 12pt;
    -webkit-text-size-adjust: 100%;
    color: var(--main-text);
    background-color: var(--main-background);

    padding-top: 32pt;
    margin: 0;
}

.main {
    max-width: var(--max-width);
    
    margin: auto;
    align-items: center;

    padding: 16px 24pt 48px 24pt;

    padding-left: calc(env(safe-area-inset-left) + 16pt);
    padding-right: calc(env(safe-area-inset-right) + 16pt);
}
@media screen and (max-width: 640px) {
    .main {
        padding: 0 4pt 0 4pt;
    }
}

.site-header {
    -webkit-font-smoothing: antialiased;

    background-color: var(--header-background);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 2pt 0 var(--header-shadow-color);

    position: fixed;
    top: 0;
    left: 0;

    display: flex;
    top: 0; left: 0;
    align-items: center;
    justify-content: space-between;
    width: 100%;

    z-index: 1000;
}

.header-contents {
    display: flex;
    justify-content: space-between;

    width: 100%;
    max-width: var(--max-width);

    margin: 0 auto;

    padding: 0;
    align-items: center;
    height: 42px;
}
@media screen and (min-width: 640px) {
    .header-contents {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.header-item-left {
    width: 70px;
    line-height: 42px;
}
.header-item-left a {
    width: 70px;
    height: 42px;
    padding: 0;
    margin: 0;
}
.open-modal:active {
    background-color: var(--image-background);
    mix-blend-mode: var(--highlight-blendmode);
    height: 42px;
}
.close-button {
    line-height: 42px;
}

.header-item-right {
    width: 70px;
    line-height: 42px;
}
.header-item-right a {
    width: 70px;
    height: 42px;
    padding: 0;
    margin: 0;
}

.header-link-element {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: auto;
    font-weight: bold;
}
.header-link-element:active {
    background-color: var(--image-background);
    mix-blend-mode: var(--highlight-blendmode);
}

.header-item-center {
    width: 150px;
    height: 42px;
}
.header-item-center:active {
    background-color: var(--image-background);
    mix-blend-mode: var(--highlight-blendmode);
}

.header-item-right {
    width: 70px;
}
.header-item-right p {
    margin: auto;
    font-size: 12pt;
}

.site-logo {
    display: block;
    font-size: 16pt;
    font-weight: bold;

    line-height: 42px;
    width: 150px;
    
    text-align: center;
}
.site-logo:link {
    color: var(--main-text);
    text-decoration: none;
}
.site-logo:visited {
    color: var(--main-text);
    text-decoration : none;
}


.header-item-right {
    display: flex;
}

.site-header ul {
    padding: 0;
    margin: 0;
    display: flex;
    list-style: none;
    list-style-position: outside;
}
.site-header ul li {
    margin-left: 10pt;
    font-size: 10pt;
}


.header-link-element {
    cursor: pointer;
}

.header-link-element:link {
    color: var(--main-text);
    margin: 0;
    text-decoration: none;
}
.header-link-element:visited {
    color: var(--main-text);
    margin: 0;
    text-decoration : none;
}
.header-link-element:active {
    color: var(--main-text);
    /* text-decoration : underline; */
}


li {
    list-style-position: inside
}

section {
    padding-top: 32pt;
    padding-bottom: 48pt;
}


/* Gallery Page */

.gallery-main {
    max-width: var(--wide-max-width);
    
    padding: 0 24px 24px 24px;
    /* margin: auto; */
}
@media screen and (max-width: 746px) {
    .gallery-main {
        padding: 0;
        margin: 0;
    }
}


.gallery-main-container {
    list-style: none;

    margin: 24px 8px 0px 8px;
    padding: 0;
}


.garrery-main-container-item a img {
    border: 2px solid var(--main-background);
}
.garrery-main-container-item a img:active {
    border: 2px solid var(--link-color);
}
     

@media screen and (min-width: 746px) {

    .gallery-main-container {
        display: flex;
        flex-wrap: wrap;    

        list-style: none;
        justify-content: center;
    }  

    .garrery-main-container-item {
        flex-grow: 0;
        height: 280px;
        flex-shrink: 999999;
        flex-basis: fit-content;

        margin: 8px 6px 8px 6px; 
    }
    .thumbnail-image {
        height: 280px;
        width: auto;
        
        cursor: pointer;
        background-color: var(--image-background);
    }
}
@media screen and (max-width: 746px) {
    .garrery-main-container {
        display: block;
        width: 100%;
    }

    .thumbnail-image {
        max-width: calc(100% - (8px * 2));
        height: auto;
        width: 100%;

        margin: 8px 8px 8px 8px; 

        cursor: pointer;
        background-color: var(--image-background);
    }
}

/* モーダル */

.modal-contents {
    visibility: hidden;
    position: fixed;
    top: 100vh;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;

    background-color: var(--main-background);

    transition: all 200ms ease-in-out;
    box-shadow: black;
}
.modal-contents {
    background-color: var(--main-background);
}
.modal-open {
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    visibility: visible;

    transition: all 300ms ease-in-out;
}

.modal-inner {
    min-height: 100%;
    max-width: var(--wide-max-width);
    
    padding: 0;
    margin: auto;
    align-items: center;
}
@media screen and (max-width: 746px) {
    .modal-inner {
        min-height: 100%;
        max-width: var(--wide-max-width);
        
        padding: 0;
        margin: 0;
    }
}

.close-button {
    display: none;
    color: var(--main-text);
}

/* 作品詳細 */

.art-info {
    padding: 48px 24px 0 24pt;
}

.art-info * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.art-info h1 {
    border-width: 0 0 1pt;
    border-color: 707070;
    border-style: solid;
}

.art-info h3 {
    font-size: 22pt;
    color: var(--main-text);

    border-width: 0 0 1pt;
    border-color: 707070;
    border-style: solid;
}

.art-info h4 {
    font-size: 18pt;
    color: var(--main-text);
    border-width: 0 0 1pt;
    border-color: 707070;
    border-style: solid;
}
.art-info h5 {
    font-size: 16pt;
}

.art-info img {
    display: block;
    max-width: min(var(--widw-max-width, 100%));
    max-height: calc(100vh - (48px + 24px + 8px));
    width: auto;
    height: auto;
    margin: 0 auto 0 auto;

    background-color: var(--image-background);
}
.wide-img {

    margin: 8px 8px 8px 8px;

    max-width: min(var(--widw-max-width, 100%));
    max-height: calc(100vh - (48px + 24px + 8px));
    width: auto;
    height: auto;

    margin: 0 auto 0 auto;
    background-color: var(--image-background);
}

.wide-img-nobg {

    margin: 8px 8px 8px 8px;

    max-width: min(var(--widw-max-width, 100%));
    max-height: calc(100vh - (48px + 24px + 8px));
    width: auto;
    height: auto;

    margin: 0 auto 0 auto;
}


.main h1 {
    font-size: 22pt;
    color: var(--main-text);

    border-width: 0 0 1pt;
    border-color: 707070;
    border-style: solid;
}


.main h2 {
    font-size: 18pt;
    color: var(--main-text);
    border-width: 0 0 1pt;
    border-color: 707070;
    border-style: solid;
}
.main h3 {
    font-size: 14pt;
}

.main a {
    color: var(--link-color);
    text-decoration: none;
}

.main a:link {
    color: var(--link-color);
    text-decoration: none;
}
.main a:visited {
    color: var(--link-color);
    text-decoration: none;
}
.main a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.main ul {
    list-style: outside;
}

.disable-text {
    color: var(--header-content);
}

.main img {
    display: block;
    max-width: min(var(--widw-max-width, 100%));
    max-height: calc(100vh - (48px + 24px + 8px));
    width: auto;
    height: auto;
    margin: 0 auto 0 auto;
}

.main hr {
    height: 1px;
    border-style: none;
    background-color: var(--header-content);
}
.footer-container {
    padding: 0px 24pt 0px 24pt;
}
@media screen and (max-width: 640px) {
    .footer-container {
        padding: 0 8pt 0 8pt;
    }
}


.main-footer {
    display: block;
    text-align: center;
    font-size: 12pt;

    color: var(--header-content);

    max-width: min(var(--max-width) 100%);

    margin: 64px auto 0 auto;
    padding: 0px 0px 20px 0px;
}


.main-footer hr {
    margin: 0 auto 0 auto;
    padding: 0;

    height: 1px;
    border-style: none;
    background-color: var(--header-content);
    width: 100%;
    margin: 0 auto 0 auto;
}
.main-footer ul {
    padding: 0;
    text-align: start;
    list-style: none;
    list-style-position: outside;
}
.main-footer li {
    margin: 0.5em;
}
.mmain-footer a {
    color: var(--link-color);
    text-decoration: none;
}
.main-footer a:link {
    color: var(--link-color);
    text-decoration: none;
}
.main-footer a:visited {
    color: var(--link-color);
    text-decoration: none;
}
.main-footer a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}
.directory {
    margin-top: 8px;
    color: var(--main-text);
}
.directory * {
    text-align: start;
    margin: 0 0 0 0;
}


/*____Profile_Page_______________________________________*/

.prifile {
    display: flex;
    align-items: center;
    flex-basis: 50%;
    width: 100%;

    margin-bottom: 50px;
}
.profile-photo-section {
    width: 50%;
    max-width: calc((var(--max-width) / 2) * 0.95);
}
.profile-photo-container {
    padding: 5%;
}
.profile-photo-section img {
    width: 100%;
    height: auto;
    background-color: transparent;

    filter: drop-shadow(0px 4px 8px #00000030);
}

.profile-text-section {
    width: 50%;
    margin: 0 auto;;
}
.profile-name-sub-section {
    display: flex;
    align-items: baseline;
    margin: 0;
    padding: 0;

        border-width: 0 0 1pt;
    border-color: 707070;
    border-style: solid
}
.profile-name-sub-section .profile-name {
    font-size: 24pt;
    font-weight: bold;
    border-style: none;
    margin: 0;
}
.annotation {
    color: var(--header-content);
    padding: 0 0 0 8px;
    margin: 0 0 0 0;
}
.profile-text-section hr {
    height: 1px;
    background-color: var(--main-text);
    border: none;

    margin: 0;
    padding: 0;
}

.profile-contacts {
    display: flex;
    align-content: flex-start;
    justify-content: flex-starts;
    padding: 0;

}
.position-text {
    padding: 0;
/*     margin: 0; */
    margin-top: 4px;
    color: var(--header-content);
}
.profile-text {
    padding: 0;
    margin: 8px 0px 8px 0px
}
.profile-contacts {
    margin-top: 4px;
    margin-bottom: 4px;
}
.profile-contacts li {
    border-left : 1px solid var(--header-content);
    border-right: 1px solid var(--header-content);
    list-style: none;
    width: 64px;
    text-align: center;
}
.profile-contacts li+ li {
    border-left: 0;
    border-right: 1px solid var(--header-content);
    list-style: none;
}


@media screen and (max-width: 660px) {
    .prifile {
        display: block;
    }
    .profile-photo-section {
        width: 70%;
        margin: auto;
    }
    .profile-text-section {
        width: 90%;
        margin: 0 auto;;
    }
}


