/* Googleフォント */
@import url('https://fonts.googleapis.com/css2?family=New+Tegomin&family=Zen+Kurenaido&display=swap');

/* レスポンシブ（スマホ） */
@media screen and (max-width: 480px) {

  * {
    padding: 0;
    margin: 0;
  }

  body {
    font-family: 'New Tegomin', serif;
    font-family: 'Zen Kurenaido', sans-serif;
    background-color: white;
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
    text-align: center;
  }

  /* ヘッダー */

  header {
    /* width: 100px; */
    height: 200px;
    background-color: white;
    box-shadow: 0px 3px 10px #83E9FF;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    /* 上部固定（widthつけないとレイアウト崩れる） */
  }

  .navList {
    margin-top: 20px;
    list-style: none;
    font-size: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  nav li {
    color: #515151;
    margin: 30px;
  }

  a {
    color: #515151;
    text-decoration: none;
  }

  /* トップ */

  .top {
    margin-bottom: 150px;
  }

  .topBack {
    background-image: url(../imgs/top-photo.jpg);
    background-repeat: no-repeat;
    width: 400vw;
    height: 250vh;
    background-size: cover;
    z-index: -1;
    position: relative;
  }

  h1 {
    color: #83E9FF;
    font-size: 128px;
    font-weight: normal;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* about以降 */

  .main {
    color: #515151;
    margin-left: 120px;
    margin-right: 120px;
  }

  .main section {
    margin-bottom: 150px;
  }

  /* アバウト */

  .about,
  .works,
  .contact {
    display: flex;
  }

  .aboutImg {
    display: none;
  }

  .aboutText {
    text-align: left;
  }

  h2 {
    font-size: 5rem;
    font-weight: normal;
    text-align: left;
    width: 330vw;
    border-bottom: solid 3px;
    margin-bottom: 50px;
  }

  h3 {
    font-size: 4rem;
    font-weight: normal;
    margin-bottom: 50px;
    margin-right: 80px;
  }

  h3,
  .ai {
    text-shadow: 0px 4px 4px gray;
  }

  .aboutText p {
    font-size: 3rem;
    display: inline-block;
    margin-right: 30px;
    margin-bottom: 30px;
    text-align: left;
  }

  /* スキル */

  .skillText {
    text-align: left;
  }

  h4 {
    font-size: 5rem;
    font-weight: normal;
    width: 330vw;
    border-bottom: solid 3px;
    margin-bottom: 50px;
  }

  .skillList {
    display: flex;
  }

  .listL {
    margin-right: 150px;
  }

  .skillText li {
    font-size: 4rem;
    list-style: none;
    white-space: nowrap;
  }

  /* ワークス */

  .worksText {
    font-size: 4rem;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 30px;
    text-align: center;
  }

  .worksText h3 {
    display: block;
    margin-left: 90px;
    margin-bottom: 10px;
    white-space: nowrap;
  }

  .worksText a {
    display: inline-block;
    color: #515151;
    border-bottom: solid 2px;
  }

  .worksImg {
    display: none;
  }

  /* works.html */

  .back {
    font-size: 3rem;
    position: fixed;
    top: 250px;
    left: 200px;
  }

  .back a:hover {
    color: #83E9FF;
  }

  .nav-works {
    margin-left: 200px;
  }

  .works-main {
    color: #515151;
    width: 80%;
    margin-left: 550px;
    margin-right: auto;
    margin-top: 300px;
  }

  h5 {
    font-size: 48px;
    font-weight: normal;
    margin-bottom: 100px;
  }

  .works-div {
    font-size: 16px;
    margin-bottom: 200px;
    display: flex;
    align-items: end;
    justify-content: center;
  }

  .works-div figure:first-child {
    margin-right: 80px;
  }

  .works-div img {
    margin-bottom: 50px;
  }

  .works-div img:hover {
    opacity: .5;
  }

  .yoko {
    width: 450px;
    height: auto;
  }

  .shikaku {
    width: 400px;
    height: auto;
  }

  .tate {
    width: 350px;
    height: auto;
  }

  /* コンタクト */

  .timeline {
    display: none;
  }

  .icon {
    display: flex;
  }

  .contactText img {
    margin: 80px;
    width: 50vw;
  }

  .icon a {
    height: 128px;
  }

  figcaption {
    font-size: 3rem;
  }

  /* フッター */

  footer {
    background-color: #515151;
    width: 400vw;
    height: 50vh;
    position: relative;
  }

  footer p {
    color: #83E9FF;
    font-size: 3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }


  /* 動きをつける */

  /*========= ローディング画面のためのCSS ===============*/
  #splash {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #333;
    z-index: 9999999;
    text-align: center;
    color: #83E9FF;
  }

  #splash-logo {
    font-size: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /*========= 画面遷移のためのCSS ===============*/

  /*画面遷移アニメーション*/
  .splashbg {
    display: none;
  }

  /*bodyにappearクラスがついたら出現*/
  body.appear .splashbg {
    display: block;
    content: "";
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    transform: scaleX(0);
    background-color: #333;
    /*伸びる背景色の設定*/
    animation-name: PageAnime;
    animation-duration: 1.2s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
  }

  @keyframes PageAnime {
    0% {
      transform-origin: left;
      transform: scaleX(0);
    }

    50% {
      transform-origin: left;
      transform: scaleX(1);
    }

    50.001% {
      transform-origin: right;
    }

    100% {
      transform-origin: right;
      transform: scaleX(0);
    }
  }

  /*画面遷移の後現れるコンテンツ設定*/
  #container {
    opacity: 0;
    /*はじめは透過0に*/
  }

  /*bodyにappearクラスがついたら出現*/
  body.appear #container {
    animation-name: PageAnimeAppear;
    animation-duration: 1s;
    animation-delay: 0.8s;
    animation-fill-mode: forwards;
    opacity: 0;
  }

  @keyframes PageAnimeAppear {
    0% {
      opacity: 0;
    }

    100% {
      opacity: 1;
    }
  }

  /*==================================================
　5-3-3 左から右に線が伸びる（下部）
===================================*/
  .navList li a {
    /*線の基点とするためrelativeを指定*/
    position: relative;
  }

  .navList li a:hover {
    color: #83E9FF;
  }

  .worksText a:hover {
    color: #83E9FF;
  }

  .navList li a::after {
    content: '';
    /*絶対配置で線の位置を決める*/
    position: absolute;
    bottom: 0;
    left: 10%;
    /*線の形状*/
    width: 80%;
    height: 2px;
    background: #83E9FF;
    /*アニメーションの指定*/
    transition: all .3s;
    transform: scale(0, 1);
    /*X方向0、Y方向1*/
    transform-origin: left top;
    /*左上基点*/
  }

  /*現在地とhoverの設定*/
  .navList li a:hover::after {
    transform: scale(1, 1);
    /*X方向にスケール拡大*/
  }

  /* モーダルウィンドウ */

  /*全て共通：hideエリアをはじめは非表示*/
  .hide-area {
    display: none;
  }

  /*全て共通：モーダルのボタンの色を変更したい場合*/
  .modaal-close:after,
  .modaal-close:before {
    background: white;
  }

  .modaal-close:focus:after,
  .modaal-close:focus:before,
  .modaal-close:hover:after,
  .modaal-close:hover:before {
    background: #515151;
  }

  .mdl-yoko {
    width: 250px;
    height: auto;
  }

  .mdl-shikaku {
    width: 200px;
    height: auto;
  }

  .mdl-tate {
    width: 150px;
    height: auto;
  }

  .mdl-a:hover {
    opacity: .5;
  }

  #mdl-img {
    box-shadow: 0px 5px 10px 0px gray;
    margin-right: 20px;
    margin-bottom: 20px;
    vertical-align: top;
  }

  .mdl-lang {
    color: aqua;
    font-size: 20px;
    font-weight: bold;
    margin-top: 50px;
  }

  .mdl-p {
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: .05em;
    margin-top: 50px;
  }
}

/* レスポンシブ（PC） */
@media screen and (min-width: 481px) {

  * {
    padding: 0;
    margin: 0;
  }

  body {
    font-family: 'New Tegomin', serif;
    font-family: 'Zen Kurenaido', sans-serif;
    background-color: white;
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
    text-align: center;
  }

  /* ヘッダー */

  header {
    /* width: 100px; */
    height: 90px;
    background-color: white;
    box-shadow: 0px 3px 10px #83E9FF;
    z-index: 100;
    /* imgの横にnav */
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    /* 上部固定（widthつけないとレイアウト崩れる） */
  }

  .navList {
    list-style: none;
    font-size: 32px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  nav li {
    color: #515151;
    margin: 21px;
  }

  a {
    color: #515151;
    text-decoration: none;
  }

  /* トップ */

  .top {
    margin-bottom: 150px;
  }

  .topBack {
    background-image: url(../imgs/top-photo.jpg);
    background-repeat: no-repeat;
    /* width: 100%; */
    height: 100vh;
    background-size: cover;
    z-index: -1;
    position: relative;
  }

  h1 {
    color: #83E9FF;
    font-size: 128px;
    font-weight: normal;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* about以降 */

  .main {
    color: #515151;
    margin-left: 180px;
    margin-right: 180px;
  }

  .main section {
    margin-bottom: 150px;
  }

  /* アバウト */

  .about,
  .works,
  .contact {
    display: flex;
  }

  .aboutImg {
    margin-right: 80px;
  }

  .aboutText {
    text-align: left;
  }

  h2 {
    font-size: 48px;
    font-weight: normal;
    text-align: left;
    width: 450px;
    height: 70px;
    border-bottom: solid 3px;
    margin-bottom: 50px;
  }

  h3 {
    font-size: 36px;
    font-weight: normal;
    width: 200px;
    margin-bottom: 50px;
    margin-right: 80px;
    display: inline-block;
  }

  h3,
  .ai {
    text-shadow: 0px 4px 4px gray;
  }

  .aboutText p {
    font-size: 20px;
    display: inline-block;
    margin-right: 30px;
    margin-bottom: 30px;
    text-align: left;
  }

  /* スキル */

  .skillText {
    text-align: left;
  }

  h4 {
    font-size: 48px;
    font-weight: normal;
    width: 900px;
    height: 70px;
    border-bottom: solid 3px;
    margin-bottom: 50px;
  }

  .skillList {
    display: flex;
  }

  .listL {
    margin-right: 250px;
  }

  .skillText li {
    font-size: 36px;
    list-style: none;
  }

  /* ワークス */

  .worksText {
    font-size: 32px;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 30px;
    text-align: center;
  }

  .worksText h3 {
    display: block;
    margin-left: 90px;
    margin-bottom: 10px;
    white-space: nowrap;
  }

  .worksText a {
    display: inline-block;
    color: #515151;
    border-bottom: solid 2px;
  }

  .worksImg {
    margin-left: 80px;
  }

  /* works.html */

  .back {
    font-size: 32px;
    position: fixed;
    top: 30px;
    left: 150px;
  }

  .back a:hover {
    color: #83E9FF;
  }

  .works-main {
    color: #515151;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 120px;
  }

  h5 {
    font-size: 48px;
    font-weight: normal;
    margin-bottom: 100px;
  }

  .works-div {
    font-size: 16px;
    margin-bottom: 200px;
    display: flex;
    align-items: end;
    justify-content: center;
  }

  .works-div figure:first-child {
    margin-right: 80px;
  }

  .works-div img {
    margin-bottom: 50px;
  }

  .works-div img:hover {
    opacity: .5;
  }

  .yoko {
    width: 450px;
    height: auto;
  }

  .shikaku {
    width: 400px;
    height: auto;
  }

  .tate {
    width: 350px;
    height: auto;
  }

  /* コンタクト */

  .timeline {
    max-width: 40%;
    padding: 10px;
    margin-right: 80px;
  }

  .icon {
    display: flex;
  }

  .contactText img {
    margin: 50px;
  }

  /* .contactText img:hover {
    opacity: .5;
  } */

  .icon a {
    height: 128px;
  }

  /* フッター */

  footer {
    background-color: #515151;
    height: 150px;
    position: relative;
  }

  footer p {
    color: #83E9FF;
    font-size: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }


  /* 動きをつける */

  /*========= ローディング画面のためのCSS ===============*/
  #splash {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #333;
    z-index: 9999999;
    text-align: center;
    color: #83E9FF;
  }

  #splash-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /*========= 画面遷移のためのCSS ===============*/

  /*画面遷移アニメーション*/
  .splashbg {
    display: none;
  }

  /*bodyにappearクラスがついたら出現*/
  body.appear .splashbg {
    display: block;
    content: "";
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    transform: scaleX(0);
    background-color: #333;
    /*伸びる背景色の設定*/
    animation-name: PageAnime;
    animation-duration: 1.2s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
  }

  @keyframes PageAnime {
    0% {
      transform-origin: left;
      transform: scaleX(0);
    }

    50% {
      transform-origin: left;
      transform: scaleX(1);
    }

    50.001% {
      transform-origin: right;
    }

    100% {
      transform-origin: right;
      transform: scaleX(0);
    }
  }

  /*画面遷移の後現れるコンテンツ設定*/
  #container {
    opacity: 0;
    /*はじめは透過0に*/
  }

  /*bodyにappearクラスがついたら出現*/
  body.appear #container {
    animation-name: PageAnimeAppear;
    animation-duration: 1s;
    animation-delay: 0.8s;
    animation-fill-mode: forwards;
    opacity: 0;
  }

  @keyframes PageAnimeAppear {
    0% {
      opacity: 0;
    }

    100% {
      opacity: 1;
    }
  }

  /*==================================================
  　5-3-3 左から右に線が伸びる（下部）
  ===================================*/
  .navList li a {
    /*線の基点とするためrelativeを指定*/
    position: relative;
  }

  .navList li a:hover {
    color: #83E9FF;
  }

  .worksText a:hover {
    color: #83E9FF;
  }

  .navList li a::after {
    content: '';
    /*絶対配置で線の位置を決める*/
    position: absolute;
    bottom: 0;
    left: 10%;
    /*線の形状*/
    width: 80%;
    height: 2px;
    background: #83E9FF;
    /*アニメーションの指定*/
    transition: all .3s;
    transform: scale(0, 1);
    /*X方向0、Y方向1*/
    transform-origin: left top;
    /*左上基点*/
  }

  /*現在地とhoverの設定*/
  .navList li a:hover::after {
    transform: scale(1, 1);
    /*X方向にスケール拡大*/
  }

  /* モーダルウィンドウ */

  /*全て共通：hideエリアをはじめは非表示*/
  .hide-area {
    display: none;
  }

  /*全て共通：モーダルのボタンの色を変更したい場合*/
  .modaal-close:after,
  .modaal-close:before {
    background: white;
  }

  .modaal-close:focus:after,
  .modaal-close:focus:before,
  .modaal-close:hover:after,
  .modaal-close:hover:before {
    background: #515151;
  }

  .mdl-yoko {
    width: 250px;
    height: auto;
  }

  .mdl-shikaku {
    width: 200px;
    height: auto;
  }

  .mdl-tate {
    width: 150px;
    height: auto;
  }

  .mdl-a:hover {
    opacity: .5;
  }

  #mdl-img {
    box-shadow: 0px 5px 10px 0px gray;
    margin-right: 20px;
    margin-bottom: 20px;
    vertical-align: top;
  }

  .mdl-lang {
    font-size: 20px;
    margin-top: 50px;
    border-left: #515151 solid 8px;
    padding-left: 8px;
  }

  .mdl-p {
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: .05em;
    margin-top: 50px;
  }
}