@charset "UTF-8";

/* 共通部分 */
html {
    font-size: 16px;
    font-family: 'Noto Serif JP', serif;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.W {
    background: url(../images/coffee-background_W.jpg) no-repeat fixed center top/cover;
}
.B {
    background: url(../images/coffee-background_B.jpg) no-repeat fixed center top/cover;
}

.flex {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* ヘッダー部分 */
header {
    display: flex;
    position: fixed;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 10vh;
    font-size: 2rem;
    /* font-family: 'RocknRoll One', sans-serif; */
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    z-index: 2;
}

header img {
    height: 8vh;
    margin-right: 20px;
}

header p {
    padding: 10px;
    transition: 0.2s;
}
header p:hover {
    transform: scale(1.05);
}

nav ul{
    display: flex;
    list-style-type: none;
    gap: 20px;
}

/* メイン共通部分 */

/* index.html */
.index_html .two-column {
    display: grid;
    grid-template-columns: 50% 50%;
}

/* 画面左側追従部分 */
.index_html .column_A_fixed {
    color: rgb(255, 255, 255);
    background-color: rgb(50, 50, 50);
    position: fixed;
    width: 50%;
    height: 100vh;
    z-index: 1;
    transition: 0.5s;
}
.index_html .column_A_fixed:hover {
    color: rgb(50, 50, 50);
    background-color: rgb(255, 255, 255);
}

.index_html h1 {
    font-size: 3rem;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
}

/* 画面右側部分 */
.index_html .column_B {
    display: block;
    justify-content: center;
    position: relative;
}

.index_html .column_B h2 {
    font-size: 4rem;
    text-align: center;
    padding: 20px;
    padding-top: 10vh;
}

.index_html .column_B h3 {
    font-size: 2.4rem;
    text-align: center;
    width: 80%;
    padding: 20px;
    padding-top: 0;
    border-top: 5px solid;
}

.index_html .column_B p {
    font-size: 2rem;
    text-align: justify;
    line-height: 1.7;
    padding: 20px;
    margin: 20px;
}

.index_html .top {
    height: 100vh;
}

.index_html .top p {
    font-size: 5rem;
    text-align: right;
    padding: 20px;
    margin-top: 10vh;
    margin-right: 40px;
    transition: 1s;
}
.index_html .top p:hover {
    scale: 1.1;
}

.index_html .works {
    padding-top: 50vh;
    padding-bottom: 100vh;
}

.index_html .works a {
    color: rgb(255, 255, 255);
    background-color: rgb(50, 50, 50);
    padding: 20px;
    border: rgba(50, 50, 50, 0) solid 2px;
    border-radius: 10px;
    position: absolute;
    right: 5%;
    transition: 1s;
}
.index_html .works a:hover {
    color: rgb(50, 50, 50);
    background-color: rgb(255, 255, 255);
    border: rgba(50, 50, 50, 1.0) solid 2px;
}

/* works.html */

/* 画面上部のアニメーション部分 */
.works_html .top {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.works_html .mv {
    height: 0vh;
    opacity: 0;
}

.works_html video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
}

.works_html .slideout1 {
    background-color: rgb(50, 50, 50);
    height: 50%;
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 3;
}

.works_html .slideout2 {
    background-color: rgb(60, 50, 50);
    height: 100%;
    width: 120%;
    rotate: 45deg;
    position: absolute;
    top: -50%;
    right: -60%;
    z-index: 4;
}

.works_html .slideout3 {
    background-color: rgb(70, 50, 50);
    height: 100%;
    width: 40%;
    position: absolute;
    right: 0;
    z-index: 5;
}

.works_html .slideout4 {
    background-color: rgb(80, 50, 50);
    height: 100%;
    width: 120%;
    rotate: 135deg;
    position: absolute;
    bottom: -50%;
    right: -60%;
    z-index: 6;
}

.works_html .slideout5 {
    background-color: rgb(90, 50, 50);
    height: 50%;
    width: 100%;
    position: absolute;
    bottom: 0;
    z-index: 7;
}

.works_html .slideout6 {
    background-color: rgb(100, 50, 50);
    height: 100%;
    width: 120%;
    rotate: 45deg;
    position: absolute;
    bottom: -50%;
    left: -60%;
    z-index: 8;
}

.works_html .slideout7 {
    background-color: rgb(110, 50, 50);
    height: 100%;
    width: 40%;
    position: absolute;
    left: 0;
    z-index: 9;
}

.works_html .slideout8 {
    background-color: rgb(120, 50, 50);
    height: 100%;
    width: 120%;
    rotate: 135deg;
    position: absolute;
    top: -50%;
    left: -60%;
    z-index: 10;
}
/* 画面上部のアニメーション部分終わり */

.works_html h2 {
    color: rgb(255, 255, 255);
    font-size: 4rem;
    text-align: center;
    padding: 20px;
    padding-top: 20vh;
    padding-bottom: 20vh;
}

.works_html h3 {
    font-size: 2.8rem;
    white-space: nowrap
}

.works_html p {
    color: inherit;
    font-size: 1.2rem;
}

.works_html .two-column {
    display: grid;
    grid-template-columns: 50% 50%;
}

.works_html .column_A {
    height: 50vh;
    position: relative;
}

.works_html .column_B {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    color: rgb(255, 255, 255);
    background-color: rgba(0, 0, 0, 0);
    height: 50vh;
    padding: 20px;
    position: relative;
    transition: 1s;
}
.works_html .column_B:hover {
    color: rgb(0, 0, 0);
    background-color: rgb(255, 255, 255);
}

.works_html .icon {
    display: flex; 
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.works_html .column_A video {
    height: 100%;
    position: absolute;
}

.works_html .column {
    text-align: center;
    color: rgb(255, 255, 255);
}

.works_html .show {
    height: 100vh;
    position: relative;
}

.works_html .site1 {
    height: 50vh;
    position: absolute;
    top: -2%;
    left: 3%;
    border-radius: 20px;
    z-index: 1;
    transition: 1s;
}
.works_html .site1:hover {
    scale: 1.05;
    z-index: 5;
}

.works_html .site2 {
    height: 60vh;
    position: absolute;
    top: 25%;
    right: 2%;
    border-radius: 20px;
    z-index: 2;
    transition: 1s;
}
.works_html .site2:hover {
    scale: 1.05;
    z-index: 5;
}

.works_html .site3 {
    height: 50vh;
    position: absolute;
    top: 70%;
    left: 10%;
    border-radius: 20px;
    z-index: 3;
    transition: 1s;
}
.works_html .site3:hover {
    scale: 1.05;
    z-index: 5;
}

.works_html h4 {
    color: white;
    margin-top: 100px;
    margin-bottom: 100px;
}
.works_html .copyright {
    background-color: rgba(0, 0, 0, 0.8);
}



/* フッター部分 */
footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: white;
    background-color: black;
    text-align: right;
    height: 15vh;
    padding: 20px;
    position: relative;
    z-index: 2;
}

footer img {
    height: 10vh;
    margin-right: 20px;
}

footer p {
    transition: 0.2s;
}
footer p:hover {
    padding-bottom: 5px;
    border-bottom: 5px solid white;
}





/* モバイル設定 */

@media (max-width:760px) {
    header {
        font-size: 1.5rem;
    }
    .none {
        display: none;
    }
    .index_html .two-column {
        display: grid;
        grid-template-columns: 100%;
    }
    .index_html .column_A_fixed {
        position: static;
        width: 100%;
    }
    .works_html .two-column {
        display: grid;
        grid-template-columns: 100%;
    }
    .works_html .column_A video {
        width: 100%;
        height: auto;
    }
}

@media (max-width:1000px) {
    .works_html .show {
        height: 120vh;
        text-align: center;
    }
    .works_html .site1 {
        position: relative;
        height: 40vh;
        max-width: 650px;
        left: auto;
    }
    .works_html .site2 {
        position: relative;
        height: 40vh;
        max-width: 650px;
        right: auto;
    }
    .works_html .site3 {
        position: relative;
        height: 37vh;
        max-width: 650px;
        left: auto;
    }
}

/* CSSアニメーション */

/* スライドイン */
.slidein {
    animation: slidein_anime both 1s 1 ease;
}
@keyframes slidein_anime {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
    }
    40%,100% {
        opacity: 1;
    }
}

/* フェードイン */
.fadein {
    animation: fadein_anime both 3s 1 ease 0.5s;
}  
@keyframes fadein_anime {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* フェードアップ */
.fadeup {
    animation: fadeup_anime both 1s 1 ease;
}
@keyframes fadeup_anime {
    0% {
      transform: translateY(30px);
      opacity: 0;
    }
    80% {
      opacity: 1;
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
}

/* フェードイン２ */
.fadeup2 {
    animation: fadeup_anime2 both 1s 1 ease;
}
@keyframes fadeup_anime2 {
    0% {
      transform: translateY(30px);
      opacity: 0;
    }
    80% {
      opacity: 1;
    }
    100% {
      opacity: 1;
      height: 100vh;
      transform: translateY(0);
    }
}

/* フェードアウト */
.slideout1 {
    animation: slideout1 both 0.5s 1 ease;
}
@keyframes slideout1 {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-100%);
    }
}

.slideout2 {
    animation: slideout2 both 0.5s 1 ease;
}
@keyframes slideout2 {
    0% {
      transform: translateX(0);
      transform: translateY(0);
    }
    100% {
      transform: translateX(-100%);
      transform: translateY(-100%);
    }
}

.slideout3 {
    animation: slideout3 both 0.5s 1 ease;
}
@keyframes slideout3 {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(100%);
    }
}

.slideout4 {
    animation: slideout4 both 0.5s 1 ease;
}
@keyframes slideout4 {
    0% {
      transform: translateX(0);
      transform: translateY(0);
    }
    100% {
      transform: translateX(-100%);
      transform: translateY(-100%);
    }
}

.slideout5 {
    animation: slideout5 both 0.5s 1 ease;
}
@keyframes slideout5 {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(100%);
    }
}

.slideout6 {
    animation: slideout6 both 0.5s 1 ease;
}
@keyframes slideout6 {
    0% {
      transform: translateX(0);
      transform: translateY(0);
    }
    100% {
      transform: translateX(-100%);
      transform: translateY(100%);
    }
}

.slideout7 {
    animation: slideout7 both 0.5s 1 ease;
}
@keyframes slideout7 {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
}

.slideout8 {
    animation: slideout8 both 0.5s 1 ease;
}
@keyframes slideout8 {
    0% {
      transform: translateX(0);
      transform: translateY(0);
    }
    100% {
      transform: translateX(100%);
      transform: translateY(100%);
    }
}

/* ホッピングイン */
.hoppingin {
    animation: hoppingin both 3.5s 1;
}
@keyframes hoppingin {
    0% {
      transform: translateY(100%);
    }
    15% {
      transform: translateY(58%);
    }
    40% {
      transform: translateY(58%);
    }
    50% {
      transform: translateY(38%);
    }
    55% {
      transform: translateY(58%);
    }
    65% {
      transform: translateY(38%);
    }
    70% {
      transform: translateY(58%);
    } 
    80% {
      transform: translateY(58%)
    }
    100% {
      transform: translateY(100%);
    }
}