@import url(reset.css);

html {
    scroll-behavior: smooth;
}

img {
    vertical-align: bottom;
}

body {
    line-height: 1.5;
    font-size: 14px;
    background-color: rgb(235, 235, 235);
    color: #333;
}


/* FONTS */
.tsukumin {
    font-family: fot-tsukumin-pr6n, sans-serif;
    font-weight: 300;
    font-style: normal;
}

.futura {
    font-family: futura-pt, sans-serif;
    /* font-weight: 400; */
    font-style: normal;
}

.hans {
    font-family: source-han-sans-japanese, sans-serif;
    font-weight: 400;
    font-style: normal;
}



/* ヘッダ */
/* ハンバーガー */
.hamburger {
    display: block;
    width: 50px;
    height: 41px;
    position: fixed;
    right: 20px;
    top: 40px;
    z-index: 500;
}

.hamburger span {
    display: block;
    width: 50px;
    height: 1px;
    background-color: #000;
    position: absolute;
    transition: all .4s ease;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hamburger span:first-child {
    top: 0%;
}

.hamburger span:nth-child(2) {
    top: 50%;
}

.hamburger span:last-child {
    top: 100%;
}

.hamburger.close {
    background-color: rgba(0, 0, 0, 0);
}

.hamburger.close span {
    width: 30px;
}

.hamburger.close span:first-child {
    top: 50%;
    transform: translate(-50%, 0) rotate(40deg);
}

.hamburger.close span:nth-child(2) {
    transform: translate(-50%, 0) rotate(40deg);
    opacity: 0;
}

.hamburger.close span:last-child {
    top: 50%;
    transform: translate(-50%, 0) rotate(-40deg);
}


.drawer {
    /* background-color: #fff; */
    line-height: 2;
    position: fixed;
    bottom: 100%;
    margin-bottom: 20vh;
    left: 25%;
    width: 50%;

    box-sizing: border-box;
    overflow: auto;
    transition: all .4s ease;
    z-index: 200;
    text-align: center;
    align-items: center;
}

.drawer span {
    display: block;
    border-bottom: solid #333 1px;
    width: 60px;
    margin: 20px auto;
}

.drawer p.hans {
    margin: 12vh 0;
}

.drawer .ctc_icons {
    display: flex;
    gap: 35px;
    justify-content: center;
}

.drawer.show {
    bottom: 0;
}


/* 背景オーバーレイの基本スタイル */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(235, 235, 235);
    z-index: 199;
    /* ドロワー(999)より一つ下に配置 */

    /* 最初は隠しておく */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* ドロワーが開いている時の状態 */
.drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}






.sp-only {
    display: none;
}

header.home {
    line-height: 1;
    height: 100vh;
    background-color: #ddd;
    padding: 25px 40px 40px 40px;
}

header.home .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 30px;
    height: 100%;
}


.grid1 {
    position: relative;
}

h1 {
    font-size: 90px;
    font-weight: 200;
}

h2 {
    font-size: 64px;
    color: #a0a0a0;
    white-space: nowrap;
}

.menu,
.ctc {
    font-size: 22px;
    line-height: 1.5;
    font-weight: 400;
}

.menu .profile {
    border-bottom: solid 1px #333;
    padding-bottom: 15px;
    margin: 50px 0 15px;
    width: 60px;
}

.ctc {
    position: absolute;
    bottom: 0;
    background-color: #ddd;
}

.ctc .ctc_icons {
    display: flex;
    gap: 35px;
    align-items: center;
}

h1,
h2,
.menu,
.ctc {
    grid-column: 1/2;
}

.grid2 {
    grid-column: 2/3;
    display: flex;
    align-items: center;
    justify-items: center;
    position: relative;
}

.grid2 .face {
    padding-right: 8vw;
    max-width: 85vh;
    min-width: 35px;
}

/* pdfはこちら */
.grid2 div {
    position: absolute;
    bottom: 0;
    right: 0;
}

.grid2 a div {
    width: 150px;
    height: 150px;
    border-radius: 51%;
    background: #d9d9d9;

    text-align: center;
    padding: 22px 0;
}

.grid2 a p {
    font-size: 10px;
    margin-bottom: 10px;
}

.grid2 a img {
    display: block;
    margin: 0 auto;
}



/* fixed header */
.fixed-header {
    position: fixed;
    top: 10px;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    z-index: 150;
}

.fixed-header img {
    width: 10vw;
    max-width: 150px;
    height: 10vw;
    max-height: 150px;

    padding: 20px;
    background-color: rgba(221, 221, 221, 0.8);
    /* border-radius: 5px; */
    text-align: left;
}

.fixed-header.fade-in {
    opacity: 1;
    visibility: visible;
    animation: slideIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideIn {
    0% {
        transform: translateY(0) translateX(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0) translateX(0);
    }

    40%,
    100% {
        opacity: 1;
    }
}

/* フェードアウト */
.fixed-header.fade-out {
    opacity: 0;
    visibility: hidden;
    animation: slideOut 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideOut {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    60%,
    100% {
        transform: translateX(-50px);
        opacity: 0;
    }
}


/* メイン */
.wrapper,
.works {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 40px;
}

main h5 {
    font-size: 64px;
    grid-column: 1/ span 1;
    font-weight: 300;
    line-height: 0.9;
}

section {
    margin-top: 150px;
}


/* スクロール位置調整 */
#branding,
#graphic,
#web,
#photo,
#illust,
#film,
#profile {
    scroll-margin-top: calc(10vw + 20px);
}


main .tagline {
    margin: 150px 0 200px;
    display: flex;
    grid-column: 1/5;
    gap: 30px;
    align-items: center;
}

main .tagline h3.futura {
    flex: 1;
    text-align: right;

    font-size: 45px;
    font-weight: 400;
    color: #a0a0a0;
    letter-spacing: 0.2em;
}

main .tagline div {
    flex: 1;
}

main .tagline div h4.hans {
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 700;
}

main .tagline div p.tsukumin {
    line-height: 2;
}




main section.profile,
main .VI {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 30px;
    padding: 0 40px;
}

main section.profile {
    position: relative;
}

main .profile h5 {
    grid-column: 1/span 2;
}

main .profile img {
    grid-column: 3/span 2;
}

main .profile .personal {
    grid-column: 5/span 2;
}

main .profile .personal h6 {
    font-size: 30px;
    letter-spacing: 0.1em;
}

main .profile .personal .en_name {
    font-size: 15px;
    color: #a0a0a0;
}

main .profile .personal .info {
    font-size: 11px;
    margin: 30px 0 50px;
}

main .profile .career {
    grid-column: 5/span 2;
    position: absolute;
    bottom: 0;
}



main dt {
    font-size: 16px;
    font-weight: 500;
    color: #a0a0a0;

    grid-column: 2/ span 1;
    text-align: right;
    width: 100%;
}

main dl div {
    grid-column: 3/ span 2;
}

main dl div.setter {
    display: flex;
}

main dl div.setter dd {
    margin-right: 20px;
}


main .applications {
    margin-top: 100px;
}

main .applications dd {
    width: 30px;
}

main .weblanguage,
main .certifications,
main .Hobbies {
    margin-top: 35px;
}

main .weblanguage dd {
    line-height: 30px;
}



/* MENU */
section.menu {
    margin-top: 200px;
}

section.menu .futura {
    font-size: 23px;
    display: flex;
    justify-content: center;
}

section.menu .futura div {
    margin-right: 20px;
}

section.menu .futura div:last-child {
    margin-right: 0;
}









/* WORKS */
main .VI h5 {
    grid-column: 1/ span 2;
}

main .VI a {
    background-color: #d9d9d9;
}

main .VI .VI1 {
    grid-column: 3/ span 3;
}

main .VI .VI2 {
    grid-column: 6/ span 3;
}

main .four_column a,
main .VI a {
    aspect-ratio: 4 / 3;
    background-color: #d9d9d9;
}

main .gd h5 {
    grid-row: span 3;
}


footer {
    margin-top: 200px;
    height: 60px;
    background-color: #d9d9d9;
    position: relative;
}

footer p {
    grid-column: 1/ span 3;
    font-size: 10px;
    line-height: 12px;
    position: absolute;
    bottom: 20px;
    /* font-weight: 600; */
}

footer ul {
    display: flex;
    grid-column: -1/ -2;
    gap: 35px;
    justify-content: end;
    align-items: end;
    padding-bottom: 20px;
}

footer li:nth-child(2) {
    padding-bottom: 1px;
}




/* 下層ページ */
.arrow a {
    position: fixed;
    top: 50vh;
    z-index: 90;
    background-color: #ddd;
    color: #a0a0a0;
    opacity: .5;
    transition: .3s;
}
.left a {
    left: 0;
    border-radius: 0 10px 10px 0;
    padding: 15px 10px 10px 30px;
}
.right a {
    right: 0;
    border-radius: 10px 0 0 10px;
    padding: 15px 30px 10px 10px;
}
.arrow a:hover{
    opacity: 1;
}






.fixed-header4lower {
    position: fixed;
    top: 10px;
    left: 0;
    z-index: 150;
}

.fixed-header4lower img {
    width: 10vw;
    max-width: 150px;
    height: 10vw;
    max-height: 150px;

    padding: 20px;
    background-color: rgba(221, 221, 221, 0.8);
    /* border-radius: 5px; */
    text-align: left;
}


.slider-for li.slide1,
.slider-for li.slide2,
.slider-for li.slide3,
.slider-for li.slide4 {
    height: 80vh;
}


.slider-nav {
    grid-column: 5/ span 4;
    display: flex;
    /* justify-content: space-between; */
    height: 20vh;
}

.slider-nav li.slide1,
.slider-nav li.slide2,
.slider-nav li.slide3,
.slider-nav li.slide4 {
    height: 10vh;
    margin: 20px 10px 0;
    aspect-ratio: 4/3;
    width: auto !important;
    white-space: nowrap;
}

.lower .ttl_setter {
    position: relative;
}

.lower .ttl {
    position: absolute;
    top: 0;
    grid-column: 1/ span 4;
    margin: 5vh 0 0 40px;
    display: flex;
    line-height: 1;
}

.lower .ttl .number {
    font-size: 100px;
    font-weight: 200;
}

.lower .ttl .genre {
    font-size: 64px;
    font-weight: 200;
}

.lower .ttl .type {
    font-size: 24px;
    font-weight: 400;
    font-style: italic;
}


.lower .describe {
    margin: 50px 0 100px;
}

.lower .wrapper {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0 30px;
}

.lower .describe .copy {
    font-size: 22px;
    font-weight: 500;
    grid-column: 2/ span 6;
    margin: 50px 0 10px;
}

.lower .describe .wrapper {
    gap: 20px 30px;
}


.lower .describe p.tsukumin {
    grid-column: 2/ span 3;
    grid-row: 2/ span 3;
}


.lower .describe dl {
    display: contents;
}

.lower .describe dt {
    grid-column: 5/ span 1;
    font-size: 14px;
    line-height: 1.5;
    text-align: right;
}

.lower .describe dd {
    grid-column: 6/ span 2;
    font-size: 14px;
    line-height: 1.5;
}


.lower h1 {
    font-size: 45px;
    font-weight: 400;
    color: #a0a0a0;
    margin-bottom: 30px;
    grid-column: 2/ span 2;
}


.lower .logo p {
    grid-column: 2/ span 3;
}

.lower .logo img {
    grid-column: 5/ span 3;
    height: 270px;
    background-color: skyblue;
}

.lower .colour div span {
    display: block;
    width: 75%;
    aspect-ratio: 1/ 1;
    border-radius: 50%;
    margin: 0 auto;
}

.lower .colour div p {
    text-align: center;
}

.sawaka .colour .colour1 {
    grid-column: 3/ span 1;
}

.sawaka .colour .colour2 {
    grid-column: 4/ span 1;
}

.sawaka .colour .colour3 {
    grid-column: 5/ span 1;
}

.sawaka .colour .colour4 {
    grid-column: 6/ span 1;
}


.lower .products {
    grid-column: 2/ span 6;
}

.lower .products div {
    display: contents;
}

.lower .products img {
    grid-column: 2/ span 6;
    background-color: pink;
    aspect-ratio: 16/9;
}

.lower .products p {
    grid-column: 2/ span 3;
    font-size: 16px;
    margin: 10px 0 50px;
}

.lower .products p span {
    font-size: 14px;
}



/* SP用 */
@media only screen and (max-width:959px) {
    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }

    main {
        max-width: 800px;
        margin: 0 auto;
    }



    .fixed-header img {
        width: 30vw;
        height: 30vw;
        max-width: 150px;
        max-height: 150px;
    }



    /* スクロール位置調整 */
    #branding,
    #graphic,
    #web,
    #photo,
    #illust,
    #film,
    #profile {
        scroll-margin-top: calc(30vw + 20px);
    }




    .wrapper {
        gap: 15px;
        padding: 0 20px;
    }

    header.home{
        height: 95vh;
    }

    header.home .grid {
        display: block;
        position: relative;
    }

    .grid1,
    .grid2 {
        height: 100%;
        width: 100%;
    }

    header.home .grid div.container {
        position: absolute;
        bottom: 0;
    }

    h1 {
        font-size: 45px;

    }

    h2 {
        font-size: 32px;
    }

    .grid1 {
        z-index: 10;
    }

    .grid2 {
        z-index: 50;
        position: absolute;
        bottom: 0;
        align-items: center;
    }

    .grid2 .face {
        padding-right: 0;
        max-width: 85vh;
        margin: 0 auto;
    }

    /* tagline */
    main .tagline {
        flex-direction: column;
        gap: 50px;
        margin-bottom: 150px;
    }

    main .tagline div h4.hans {
        margin-bottom: 25px;
    }

    /* Profile */
    main section.profile {
        grid-template-columns: repeat(2, 1fr);
        /* display: flex;
    flex-direction: column; */
        padding: 0 20px;
    }

    main .profile img {
        grid-column: 1/span 1;
    }

    main .profile .personal {
        grid-column: 2/span 1;
    }

    main .profile .career {
        grid-column: 1/span 2;
        position: relative;
    }


    main dt {
        grid-column: 1/ span 1;
    }

    main dl div {
        grid-column: 2/ span 3;
    }

    main .applications div {
        flex-wrap: wrap;
        /* max-width: 250px; */
        gap: 20px 0;
    }

    main .Hobbies div {
        flex-wrap: wrap;
    }



    /* MENU */
    section.menu .futura {
        flex-direction: column;
        align-items: center;
    }

    section.menu .futura div {
        margin-right: 0;
        margin-bottom: 10px;
    }

    section.menu .futura div:last-child {
        margin-bottom: 0;
    }





    /* メイン */
    .works,
    main .VI {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }


    /* フッタ */
    footer {
        height: 100px;
    }

    footer ul {
        justify-content: start;
        margin-top: 20px;
    }




    /* 下層ページ */

    .slider-for li.slide1,
    .slider-for li.slide2,
    .slider-for li.slide3,
    .slider-for li.slide4 {
        height: 70vh;
    }

    .slider-nav {
        height: 20vh;
    }


    .lower .ttl_setter {
        display: block;
        position: static;
    }

    .lower .ttl {
        margin-left: 20px;
        top: auto;
        margin-top: 0;
    }

    .lower .ttl .number {
        font-size: 80px;
    }

    .lower .ttl .genre {
        font-size: 50px;
    }

    .lower .ttl .type {
        font-size: 19px;
    }

    .lower .wrapper {
        grid-template-columns: repeat(4, 1fr);
        gap: 0 20px;
    }


    .lower .describe .wrapper {
        gap: 0 0;
    }

    .lower .describe .copy {
        font-size: 20px;
        grid-column: 1 / span 4;
    }

    .lower .describe p.tsukumin {
        grid-column: 1/ span 4;
        grid-row: auto;
        margin-bottom: 30px;
    }

    .lower .describe dt {
        grid-column: 1/ span 4;
        text-align: left;
        margin: 30px 0 10px;
    }

    .lower .describe dd {
        grid-column: 1/ span 4;
    }


    .lower h1 {
        grid-column: 1/ span 4;
    }

    .lower .logo p {
        grid-column: 1/ span 4;
    }

    .lower .logo img {
        grid-column: 1/ span 4;
        margin-top: 30px;
    }

    .lower .colour div p {
        text-align: left;
    }

    .sawaka .colour .colour1 {
        grid-column: 1/ span 1;
    }

    .sawaka .colour .colour2 {
        grid-column: 2/ span 1;
    }

    .sawaka .colour .colour3 {
        grid-column: 3/ span 1;
    }

    .sawaka .colour .colour4 {
        grid-column: 4/ span 1;
    }



    .lower .products {
        grid-column: 1/ span 4;
    }

    .lower .products img {
        grid-column: 1/ span 4;
    }

    .lower .products p {
        grid-column: 1/ span 4;
    }
}