@charset "UTF-8";

/* 共通事項 */

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6em;
    font-family: "游ゴシック", "Noto Sans JP";
    background-color: #ffffff;
    color: #333;
}


img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: #333;
}

p {
    font-size: 1.4rem;
    font-weight: 500;
    color: #333;
    line-height: 1.875;
    overflow-wrap: break-word;
}

li {
    list-style: none;
}

#header nav .sp {
    display: none;
}



.pc {
    display: block;
}


/* header */

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 4% 10%;
}

#header h1 {
    font-size: 3.2rem;
    margin-left: 1.5rem;
    z-index: 10;
}

#header h1 a {
    color: #184E8C;
    font-weight: 500;

}

#header li {
    font-size: 2rem;
    font-family: 'Noto Sans JP';
    margin-right: 4.5rem;
    font-weight: 500;
}

#header li:last-child {
    margin-right: 1.5rem;
}

#header nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

#header nav ul img {
    width: 60%;
}

#header ul li a {
    color: #333;
}

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

#header nav ul li a {
    position: relative; /*アンダーラインの位置を決めるための基準 */
    }
    
    #header nav ul li a::after {
    position: absolute; /*親要素であるaタグを基準に位置を指定*/
    left: 0;            /*アンダーラインを各メニュー（aタグ）の左端に指定*/
    content: '';        /*本来は、擬似要素に入るテキストなどを’’内に指定。今回はアンダーラインなので何も記載しない*/
    width: 100%;        /*アンダーラインを各aタグの幅に合わせる*/
    height: 2px;        /*アンダーラインの高さ（太さ）*/
    background: #184E8C;/*アンダーラインの色*/
    }


#header nav ul li a::after {
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    height: 2px;
    background: #184E8C;
    bottom: -10px;
    transform: scale(0, 1);
    transform-origin: right top; /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の右端*/
    transition: transform 0.3s;  /*変形の時間*/
    }
    
    #header nav ul li a:hover::after {
    transform: scale(1, 1);     /*ホバー後、x軸方向に1（相対値）伸長*/
    transform-origin: left top; /*左から右に向かう*/
    }


/* バーガーメニュー */

.burger {
    width: 9rem;
    height: 9rem;
    background-image: url(../images/burger.svg);
    background-size: 2,4rem;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.burger:hover {
    transition: all 0.5s;
    color: #AEAEAE;
}
.burger.is-active {
    background-image: url(../images/close.svg);
    position: fixed;
    top: 3%;
    right: 11%;
    z-index: 10;
}


/* メニュー */

.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #F2F4F5;
    display: flex;
    align-items: center;
    z-index: 10;
    opacity: 0.8;
    display: none;
}

.menu.is-active {
    display: flex;
}

#header nav .menu ul {
    display: block;
    margin-top: 20%;
    margin-left: 75%;
}

#header nav .menu ul li {
    margin: 30% 0;

}

#header nav .menu ul img {
    width: 30%;
}


#header nav .menu li a {
    color: #333;
    font-size: 4.8rem;
}

/* トップビュー */

/* .main_name {
    font-size: 7.2rem;

    position: absolute;
    top: 30%;
    left: 9%;
    z-index: 3;
}

.main_sub {
    color: #184E8C;

    position: absolute;
    top: 57%;
    left: 9.5%;
} */



.box {
    width: 100%;
    height: 35%;
    background-color: #F2F4F5;

    position: absolute;
    top: 95%;
    z-index: 1;
}

/* positionプロパティ */

.mainbox {
    position: relative;
    margin-bottom: 20rem;

    padding-bottom: 30%;
}

#mainvisual .mainbox .m_box_right {
    position: absolute;
    width: 48%;
    left: 38%;
    top: 5%;
    z-index: 2;
}

.mainbox .m_box_left {
    position: absolute;
    width: 48%;
    top: 15%;
    left: 10.5%;
    z-index: 3;
}


/* wrapper共通 */

.wrapper {
    margin-top: 10%;
    margin-bottom: 10%;
    padding-top: 7%;
}

.wrapper h2 {
    font-size: 4.2rem;
    font-family: "Noto Sans JP";
    font-weight: 500;
    text-align: center;
    color: #333;
    margin-bottom: 7%;
}


.wrapper h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
}


.fade{
    opacity : 0;
    transition: opacity 3s;
}
   
  .fade.view{
    opacity: 1;
}

.fadeIn_up {
    opacity: 0;
    transform: translate(0, 5%);
    transition: 2s;
}
  .fadeIn_up.is-show {
    transform: translate(0, 0);
    opacity: 1;
}


/* Works */

.pf_box {
    margin-bottom: 10%;
}

.pf_box h3 {
    margin-top: 10%;
}

.pf_box p {
    margin-top: 2%;
}

.pf_box img {
    width: 34rem;
}



.pf_box img:hover {
    opacity: 0.5;
    transition: all 0.4s;
    transform: scale(1.1,1.1);
}

.pf_box_flex {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 0 7%;
}


/* Skills */

#skills {
    background-color: #F2F4F5;
    padding: 5% 0;
}

.skills_box {
    display: flex;
    align-items: center;
    width: 40%;
    margin: 3% 0px;
}

.skills_box img {
    margin-right: 2%;
    width: 6rem;
    height: 6rem;
}

.skills_box_box {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 10%;
}


.skills_box .skills_text p {
    overflow-wrap: break-word;
    margin-top: 4%;
}

.skills_text {
    margin-left: 2%;
}

/* About */

.about_box {
    display: flex;
    justify-content: space-around;
    margin: 0 10%;
}

.about_box img {
    width: 35rem;
    height: 35rem;
}

.about_text_box {
    width: 50%;
}

.about_text {
    margin: 4% 0;
}

.about_text p {
    overflow-wrap: break-word;
}

.about_text_box h3 {
    border-bottom: 1px #333 solid;
    padding-bottom: 4%;
}


/* footer */

#footer {
    background-color: #F2F4F5;
}

#footer .copyright {
    text-align: center;
    color: #AEAEAE;
    margin-top: 10%;
}

.footer_menu_left ul {
    display: flex;
    align-items: center;
}

.footer_menu_left ul li {
    margin: 0 15%;
    font-size: 2rem;
    font-family: "Noto Sans JP";
}

.footer_menu_right {
    display: flex;
    align-items: center;
}

.footer_menu_right p {
    font-size: 2rem;
    font-family: "Noto Sans JP";
    color: #333;
}

.footer_menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 14%;
    padding-top: 2%;
}

.footer_menu_left ul li:hover {
    opacity: 0.5;
    transition: all 0.4s;
}

.footer_menu_right a:hover {
    opacity: 0.5;
    transition: all 0.4s;
}

/* ページトップへ */

#page_top{
    width: 100px;
    height: 60px;
    position: fixed;
    right: 0;
    bottom: 0;
    background: #184E8C;
    /* opacity: 0.6; */
    z-index: 12;
  }

  #page_top:hover {
    transition: all 0.5s;
    opacity: 0.8;
  }


  #page_top a{
    position: relative;
    display: block;
    width: 100px;
    height: 60px;
    text-decoration: none;
  }

  #page_top a:hover {
    transition: all 0.5s;
    opacity: 0.8;
  }

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





/* メディアクエリー */




 /* タブレットサイズ1024pxまで */
 @media screen and (max-width:1024px) {

    #header nav .sp {
        display: block;
    }


    

    #header nav .pc {
        display: none;
    }

    #header nav {
        display: flex;
    }

    #header h1 {
        font-size: 2.5rem;
    }

    /* wrapper共通 */

    .wrapper h2 {
        font-size: 3.3rem;
    }

    .wrapper h3 {
        font-size: 1.6rem;
    }


    /* Skills */

    .skills_box {
        margin: 13% auto;
        width: 90%;
    }

    .skills_box_box {
        display: block;
    }

    .skills_box img {
        width: 5rem;
        height: 5rem;
    }


    /* About */

    .about_box {
        display: block;
    }

    .about_box img {
        display: block;
        margin: 0 auto;
        width: 35rem;
        height: 35rem;
    }

    .about_text_box {
        margin: 12% auto;
        width: 70%;
    }

    .about_text {
        margin: 12% 0;
    }


    /* footer */

    .footer_menu {
        display: block;
        margin: 0 auto;
    }

    .footer_menu_left ul li {
        font-size: 2rem;
        margin: 0 5%;
    }

    .footer_menu_right p {
        font-size: 2rem;

    }

    .footer_menu_left ul {
        justify-content: center;
        margin-top: 3%;
    }

    .footer_menu_right {
        justify-content: center;
        margin-top: 5%;
    }
 }


 /* iphoneサイズ599pxまで */
 @media screen and (max-width:599px) {
    
    /* 共通部分 */

    p {
        font-size: 1.2rem;
    }


    /* header */

    #header h1 {
        font-size: 1.6rem;
    }

    #header {
        padding: 4% 0;
    }

    #mainvisual .mainbox .m_box_right {
        width: 70%;
        left: 21%;
        top: -5%;
    }

    .mainbox .m_box_left {
        width: 63%;
        top: 25%;
        left: 2.5%;
    }

    .box {
        height: 45%;
        top: 135%;
    }

    /* wrapper共通 */


    .wrapper {
        padding-top: 0;
    }

    .wrapper h2 {
        font-size: 2.5rem;
    }

    .wrapper h3 {
        font-size: 1.4rem;
    }

    #header nav .menu ul {
        margin-top: 0%;
    }

    

    #header nav .menu li a {
        font-size: 2.2rem;
    }


    /* Works */

    .pf_box {
        margin-bottom: 20%;
    }

    .pf_box img {
        width: 30rem;
    }


    /* Skills */

    .skills_box {
        margin: 15% auto;
        width: 90%;
    }

    .skills_box_box {
        display: block;
    }

    .skills_box img {
        width: 4rem;
        height: 4rem;
    }


    /* About */

    #About {
        padding-top: 5%;
    }

    .about_box {
        display: block;
    }

    .about_box img {
        display: block;
        margin: 0 auto;
        width: 25rem;
        height: 25rem;
    }

    .about_text_box {
        margin: 12% auto;
        width: 70%;
    }

    .about_text {
        margin: 22% 0;
    }
    


    /* footer */

    .footer_menu {
        display: block;
        margin: 0 auto;
    }

    .footer_menu_left ul li {
        font-size: 1.4rem;
        margin: 0 5%;
    }

    .footer_menu_right p {
        font-size: 1.4rem;

    }

    .footer_menu_left ul {
        justify-content: center;
        margin-top: 3%;
    }

    .footer_menu_right {
        justify-content: center;
        margin-top: 5%;
    }
 }

 /* topへ戻る */

 #page_top {
    width: 80px;
    height: 53px;
 }

 #page_top a {
    width: 80px;
 }


  /* //幅1447px以上に適用されるCSS(pc大以上） */
  @media screen and (min-width:1447px) {

    /* Works */


    .pf_box_flex {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        margin: 0 10%;
    }
  }


  /* //幅1700px以上に適用されるCSS（pc大以上） */
  @media screen and (min-width:1700px) {

    /* Works */


    .pf_box_flex {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        margin: 0 16%;
    }
  }