@charset "UTF-8";

:root {
    /* カラー */
    --black: #000;
    --white: #fff;

    --main: #76C3B1;
    --sub1: #50A2E8;
    --sub2: #00ffe5;
    --sub3: #DD4B39;
    --sub4: #FFC107;
    --sub5: #5382c7;
    --sub6: #76C3B1;
    --sub7: #84E389;
    --sub8: #73A776;
    --sub10: #fff59D;
    --sub11: #4DB6AC;
    --sub12: #A4F2AE;
    --sub13: #FAAAB0;
    --sub14: #A5DEFF;


    --blue1: #0022ff;
    --blue2: #425AF8;
    --blue3: #4161ff;
    --blue4: #628fff;
    --blue5: #5D90ff;

    --background: #fff;
    --btncolor: #444;
    --textcolor: #fff;
    --gray: #aaa;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    animation: fade 0.5s;
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body * {
    font-family:
        'Noto Sans JP',
        sans-serif;
}

/* 基本 */
.page * {
    margin: 0;
}


/* グリッド */
.page {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, auto);
    min-height: 100vh;
    background-color: var(--sub10);
}

/* ヘッダー */
.page-head {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    justify-content: center;
    height: 200px;
    align-items: center;
    animation-name: fadeLeftAnime;
    animation-duration: 3s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeLeftAnime {
    from {
        opacity: 0;
        transform: translateX(-1000px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.page-headTrigger {
    opacity: 0;
}

.corp-logo {
    width: 300px;
    text-decoration: none;
}

.corp-logo img {
    width: 100%;
}

@media (max-width: 950px) {
    .page-head {
        grid-column: 1 / 6;
        height: 150px;
        padding: 0;
        padding-left: 20%;
    }

    .corp-logo {
        width: ;
    }
}

@media (max-width: 899px) {
    .page-head {
        padding-left: 20%;
    }
}

/* ナビゲーション */
.page-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    height: 100px;
    animation-name: fadeRightAnime;
    animation-duration: 3s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeRightAnime {
    from {
        opacity: 0;
        transform: translateX(1000px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 899px) {
    .page-nav {
        display: none;
    }
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.page-navTrigger {
    opacity: 0;
}

.page-nav ul {
    display: flex;
    justify-content: center;
    margin: 0;
    list-style: none;
    color: var(--white);
}

.page-nav li {
    margin-left: 0px;
}

.page-nav a {
    display: flex;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    text-decoration: none;
}

.nav-text {
    position: relative;
    color: var(--black);
    font-family: 'Noto Sans JP';
    font-size: 2rem;
    text-shadow: 1px 1px var(--sub11);
    z-index: 1;
}

.nav-text:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    /*テキストからの距離*/
    width: 0%;
    /*初期状態では下線非表示*/
    height: 2px;
    /*下線の高さ*/
    background: var(--sub11);
    /*下線の色*/
    box-shadow: 2px 2px var(--white);
    /*下線の影*/
    z-index: -1;
    transition: all 0.4s;
    /*アニメーション速度*/
}


.page-nav a:hover {
    font-style: oblique;
    background-color: var(--sub11);
    transition: 1s;
}

.page-nav a:hover .nav-text {
    color: var(--white);
}

.page-nav a:hover .nav-text:after {
    width: 100%;
    /*hover時に表示*/
}


@media (max-width: 1200px) {
    .page-nav {
        height: 50px;
    }

    .nav-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 950px) {
    .page-nav ul {
        padding: 15px 0;
    }
}

@media (max-width: 899px) {
    .nav-text {
        color: var(--black);
        font-size: 2rem;
    }

    .nav-text:after {
        /*下線の色*/
        background: var(--black);

    }
}

/* 現在ページ */
.now-page {
    color: var(--white);
    background-color: var(--sub11);
    text-shadow: none;
    border-radius: 5px;
    padding: 0 10px;
}

/* ナビメニュー：モバイル */
/* ナビボタン */
.openbtn {
    position: fixed;
    z-index: 9999;
    /*ボタンを最前面に*/
    top: 2.5%;
    right: 1px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border: 1px solid var(--sub11);
    background-color: var(--sub10);
    border-radius: 5px;
}

.menu {
    margin-top: 34px;
    margin-left: 10px;
    color: var(--sub11);
}

.menu-btn span:before {
    bottom: 8px;
}

.menu-btn span:after {
    top: 8px;
}

/*×に変化*/
.openbtn span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--sub11);
    width: 45%;
}

.openbtn span:nth-of-type(1) {
    top: 13px;
}

.openbtn span:nth-of-type(2) {
    top: 21px;
}

.openbtn span:nth-of-type(3) {
    top: 29px;
}

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 17px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 17px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}

.openbtn.active p {
    opacity: 0;
    transition: 0.3s;
}

@media (min-width: 900px) {
    .openbtn {
        display: none;
    }
}

#g-nav {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
    top: 0;
    right: -120%;
    width: 100%;
    height: 100vh;
    /*ナビの高さ*/
    background: linear-gradient(var(--sub10), var(--sub10));
    /*動き*/
    transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive {
    right: 0;
}

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list {
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    padding: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#g-nav li {
    margin-bottom: 15px;
}

#g-nav a {
    display: block;
    width: 100vw;
}

#g-nav a:hover {
    background-color: var(--sub11);
    transition: 0.5s;
    /*hover時に表示*/
}

#g-nav a:hover .nav-text {
    color: var(--white);
}



/* 現在ページ */
.now-page-m {
    position: relative;
    color: var(--white);
    background-color: var(--sub11);
    border-radius: 10px;
    font-size: 2rem;
    padding: 3px;
    margin-top: 35px;
    z-index: 1;
    text-shadow: 2px 2px var(--black);
}

#g-nav a:hover .now-page-m {
    background-color: transparent;
    text-shadow: none;
}

/*リストのレイアウト設定*/

#g-nav li {
    list-style: none;
    text-align: center;
}

#g-nav li a {
    text-decoration: none;
    display: block;
}


/* メインコンテンツ */
.page-main {
    grid-column: 1 / -1;
    grid-row: 3;
    background-color: var(--background);
    margin: 0;
}

/* グリッド */
.post * {
    margin: 0;
}

.post {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, auto);
    font-family: "Noto Sans Japanese", sans-serif;
}

/* 共通パーツ */
.content-box {
    padding: 0 20%;
}

@media (max-width: 1600px) {
    .content-box {
        padding: 5%;
    }
}

@media (max-width: 1024px) {
    .content-box {
        padding: 5%;
    }
}

.title-bar {
    text-align: center;
    color: var(--textcolor);
    background: linear-gradient(var(--main), var(--sub8));
}

.title-bar h2::first-letter {
    font-size: 1em;
    /* 文字サイズ   */
    padding: 2px;
    /* 余白         */
    color: var(--black);
    text-shadow: 1px 1px 1px var(--white),
        -1px 1px 1px var(--white),
        1px -1px 1px var(--white),
        -1px -1px 1px var(--white),
        1px 1px 1px var(--white),
        -1px 1px 1px var(--white),
        1px -1px 1px var(--white),
        -1px -1px 1px var(--white);
}

.link-bar {
    height: 35px;
    text-align: center;
    line-height: 35px;
    text-decoration: none;
    font-size: 1.8rem;
    color: var(--textcolor);
}

.link-color {
    position: relative;
    border: 3px solid var(--white);
    transform: skew(-15deg);
    z-index: 0;
}

.link-color::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    left: 0;
    transition: 0.5s;
    background: linear-gradient(var(--main), var(--sub1));
}

.link-color::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -2;
    left: 0;
    transition: 0.5s;
    background: linear-gradient(var(--blue1), var(--blue1));
}

.link-color:hover {
    transform: skew(0);
    text-shadow: 2px 2px var(--black);
    transition: 0.5s;
}

.link-color:hover::before {
    opacity: 0;
}

/* worksのタイトル */
.works-top {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 200px;
    text-align: center;
    background-color: var(--sub10);
    animation-name: fadeUpAnime;
    animation-duration: 3s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(500px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.works-topTrigger {
    opacity: 0;
}

.works-title {
    width: 50%;
    margin-top: 1%;
    margin-left: 25%;
    background: var(--sub11);
    box-shadow: 0px 0px 0px 5px var(--sub11);
    border: dashed 2px var(--white);
    color: var(--white);
    font-size: 3.5rem;
    padding: 0.2em 0.5em;
}


@media (max-width: 899px) {
    .works-top {
        height: 120px;
    }

    .works-title {
        grid-column: 2 / -2;
        height: 80px;
        font-size: 2.5rem;
    }
}

/* message画像 */
.works-message {
    grid-column: 1 / -1;
    grid-row: 2;
    animation-name: fadeUpAnime;
    animation-duration: 3s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(1000px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.works-messageTrigger {
    opacity: 0;
}

/* web-designのmessage */
.web-design-message {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: linear-gradient(var(--sub11), var(--sub11));
}

.web-design-message p {
    grid-column: 1/3;
    padding-top: 5%;
    font-size: 2.5rem;
    color: var(--white);
    text-align: start;
}

.web-design-message-img {
    grid-column: 3/-1;
    padding-top: 5%;
    width: 500px;
}

.web-design-message-img img {
    width: 100%;
}

@media (max-width: 899px) {
    .web-design-message {
        grid-template-rows: 1fr 200px;
    }

    .web-design-message p {
        grid-column: 1/-1;
        grid-row: 2;
        font-size: 1.8rem;
    }

    .web-design-message-img {
        grid-column: 1/-1;
        grid-row: 1;
        width: 100%;
        height: 100%;
        aspect-ratio: 5/3;
    }

}


/* worksのgrid */
.works {
    grid-column: 1/-1;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: repeat(4, 1fr);
    text-align: center;
}

/* web-designのgrid */
.web-design {
    grid-column: 1/-1;
}

/* web-designのtitle */
.web-design-title {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 140px;
    padding-top: 10px;
    text-align: center;
    color: var(--white);
    background: url(../img/壁紙/hardwood-wall.jpg);
}

.web-design-title h2 {
    position: relative;
    background: var(--sub10);
    width: 30%;
    margin: auto;
    height: 120px;
    padding-top: 1.5rem;
    font-size: 3rem;
    color: var(--sub11);
}

.web-design-title h2:before {
    position: absolute;
    content: '';
    top: 100%;
    left: 0;
    border: none;
    border-bottom: solid 10px transparent;
    border-right: solid 50px var(--gray);
}

@media (max-width: 899px) {
    .web-design-title h2 {
        width: 50%;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 700px) {}


/* web-siteのtype */
.web-site-type {
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-row-gap: 1rem;
    background: url(../img/壁紙/wood-h.jpg);
    padding: 1% 0;
}

.web-site-type-title {
    grid-column: 1 / 4;
    grid-row: 1;
    height: 100px;
    text-align: center;
}

.web-site-type-title h2 {
    position: relative;
    width: 30%;
    margin-left: 35%;
    color: var(--white);
    font-size: 2.5rem;
    padding: 1.5rem;
    line-height: 1.3;
    background: var(--sub11);
    vertical-align: middle;
    border-radius: 50px 0px 0px 50px;
    /*左側の角を丸く*/
}

.web-site-type-title h2:before {
    position: absolute;
    top: 30%;
    left: 5%;
    content: '●';
    color: var(--white);
}

@media (max-width: 899px) {
    .web-site-type-title h2 {
        width: 50%;
        margin-left: 25%;
        height: 80px;
        font-size: 2rem;
    }

    .web-site-type-title h2:before {
        content: '';
    }
}


.corp {
    grid-row: 2;
}

.corp2 {
    grid-row: 3;
}

.lp {
    grid-row: 4;
}

/* type-box (ホームページの種類中身) */
.type-box {
    grid-column: 1 /-1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.type-box a {
    grid-column: 1/2;
}

.type-img-box {
    width: 530px;
    height: 300px;
    background-size: cover;
}

.corp .type-img-box {
    background-image: url(../img/制作実績/mkcorpltd.png);
}

.corp2 .type-img-box {
    background-image: url(../img/制作実績/mkcorpltd-index.png);
    grid-column: 1/3;
    height: 1000px;
    background-size: contain;
}

.brand .type-img-box {
    background-image: url(../img/yamacafe-thum.png);
}

.lp .type-img-box {
    background-image: url(../img/e-sports-site-thum.png);
}


.type-text-box {
    grid-column: 2/-1;
    color: var(--white);
    text-align: left;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0 6%;
}

.type-text-box h2 {
    font-size: 2.5rem;
}

.type-text-box p {
    padding-top: 3%;
    font-size: 2rem;
    line-height: 200%;
}

@media (max-width: 899px) {
    .type-box {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: 1fr 200px;
    }

    .type-box a {
        grid-column: 1/-1;
    }

    .type-img-box {
        grid-row: 1;
        width: 100%;
        height: 100%;
        aspect-ratio: 5.3/3;
    }

    .type-text-box {
        grid-column: 1/-1;
        grid-row: 2;
    }

    .type-text-box h2 {
        font-size: 2rem;
    }

    .type-text-box p {
        font-size: 1.6rem;
    }
}

@media (max-width: 500px) {
    .type-text-box h2 {
        font-size: 1.8rem;
    }

    .type-text-box p {
        font-size: 1.4rem;
        line-height: 150%;
    }
}

@media (max-width: 400px) {
    .type-text-box h2 {
        font-size: 1.6rem;
    }

    .type-text-box p {
        font-size: 1.3rem;
    }
}


/* フッター */
.page-foot {
    grid-column: 1 / -1;
    grid-row: 8;
    background: linear-gradient(var(--sub11), var(--sub11));
    color: var(--white);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 1fr 40px;
    grid-row-gap: 30px;
    text-align: center;
}

.page-foot p {
    font-size: 2.5rem;
    font-family: 'Noto Sans JP';
}

.page-foot a {
    text-decoration: none;
    color: var(--white);
}


.f-nav-title:hover {
    font-style: oblique;
    text-shadow: 2px 2px var(--black);
    transition: 0.5s;
}


.f-nav-list {
    text-align: left;
    padding: 10px;
}

@media (max-width: 500px) {
    .f-nav-list {
    padding: 0px;
}
}

.f-nav-list li {
    list-style: none;
    margin-bottom: 5%;
}

.f-nav-text {
    position: relative;
    color: var(--white);
    padding: 3%;
    font-size: 1.4rem;
    z-index: 1;
}

.f-nav-text:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0px;
    /*テキストからの距離*/
    width: 0%;
    /*初期状態では下線非表示*/
    height: 100%;
    /*下線の高さ*/
    background: var(--sub10);
    /*下線の色*/
    border-radius: 5%;
    z-index: -1;
    transition: all 0.4s;
    /*アニメーション速度*/
}

.f-nav-text:hover {
    color: var(--black);
    text-shadow: 2px 2px var(--sub10);
    font-style: oblique;
    transition: all 0.4s;
}

@media (max-width: 500px) {
    .flow-nav .f-nav-list {
        column-count: 2;
        padding: 0px;
    }

    .flow-nav .f-nav-list li {
        padding-top: 5px;
        margin-bottom: 5px;
    }

    .flow-nav .f-nav-text {
        white-space: nowrap;
    }
}


.f-nav-list a:hover .f-nav-text:after {
    width: 100%;
    box-shadow: 2px 2px var(--black);
    /*下線の影*/
    /*hover時に表示*/
}

/* page-footのgrid */
.footer-box {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-top: 80px;
    display: flex;
    text-align: center;
    justify-content: center;
}

.company-info {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.footer-logo {
    width: 200px;
}

.contact-link {
    text-align: center;
    line-height: 30px;
    margin: 5px auto;
    height: 35px;
    width: 180px;
    border-radius: 19px;
    text-decoration: none;
    font-size: 1.6rem;
    line-height: 30px;
    color: var(--sub11);
    background-color: var(--sub10);
    border: solid 3px var(--white);
}

.contact-link:hover {
    color: var(--black);
    text-shadow: 1px 1px var(--white);
    border: solid 3px var(--black);
    font-style: oblique;
    transition: 0.5s;
}

.service-nav {
    width: 200px;
    text-align: start;
}

.works-nav {
    width: 150px;
    text-align: start;
    padding-bottom: 10px;
}

.price-nav {
    width: 150px;
    text-align: start;
}

.flow-nav {
    width: 360px;
    text-align: start;
}

.copy {
    grid-column: 1 / -1;
    grid-row: 2;
}


@media (max-width: 899px) {
    .footer-box {
        flex-direction: column;
        margin-top: 2%;
        margin-left: 5%;
    }

    .company-info {
        flex-direction: row;
        text-align: left;
    }

    .contact-link {
        margin-top: 7%;
        margin-left: 1%;
    }

    .service-nav {
        margin-top: 3%;
    }

    .copy p {
        font-size: 1.3rem;
    }
}

@media (max-width: 500px) {
    .footer-box {
        flex-direction: column;
        margin-top: 2%;
        margin-left: 2%;
    }

        .footer-logo {
    width: 40vw;
}
    
    .flow-nav {
        width: 300px;
    }

    .copy p {
        font-size: 1rem;
    }
}

/* TOPへスクロールのボタン */
#page_top {
    width: 80px;
    height: 80px;
    position: fixed;
    right: 2px;
    bottom: 1px;
    border: 1px solid var(--white);
    border-radius: 50%;
    background: var(--sub10);
    opacity: 1;
}

#page_top a {
    position: relative;
    display: block;
    width: 80px;
    height: 60px;
    text-decoration: none;
}

#page_top a::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f102';
    font-size: 2.5rem;
    color: var(--sub11);
    text-shadow: 2px 2px var(--white);
    position: absolute;
    width: 20px;
    height: 20px;
    top: -15px;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
}

#page_top a::after {
    content: 'PAGE TOP';
    font-size: 1.3rem;
    color: var(--sub11);
    text-shadow: 2px 2px var(--white);
    position: absolute;
    top: 40px;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
}