html{
  scroll-behavior: smooth;
}

html,
body {
  height: 100%; 
}

li{
  list-style: none;
}

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

/*------ PC ヘッダー ------*/
body{
  background-image: url(../img/portfolio-header-bg.png);
}

.l-header{ 
  height: 100%;
  min-height: 400px;
  max-height: 500px;
}

.u-header-mb{
  margin-bottom: 4vw;
}

.p-header-image {
  width: 100%;
  height: 100%;
}

.p-header-title{
  position: relative;
}

.p-header-title__line{
  width: 40%;
}

.p-header-title__portfolio{
  position: absolute;
  top: 2vw;
  left: 5%; 
  display: flex;
  overflow: hidden;
  font-size: 6vw;
  text-shadow: 5px 0 2px #F7BE81;
  letter-spacing: 7px; 
  font-family: Sylfaen;
  transition: .3s;
  height: 40%; /*出現時、「p」がhiddenするため、高さ指定*/
}

/* ------ 以下、タイトル出現アニメーション ------ */
.p-header-title__portfolio span{
  transition: transform cubic-bezier(0.215, 0.61, 0.355, 1) .7s;
}

.is-visible{
  transform: translateY(105%);
}

.p-header-title__portfolio span:nth-child(2) {
  transition-delay: 0.1s;
}
.p-header-title__portfolio span:nth-child(3) {
  transition-delay: 0.2s;
}
.p-header-title__portfolio span:nth-child(4) {
  transition-delay: 0.3s;
}
.p-header-title__portfolio span:nth-child(5) {
  transition-delay: 0.4s;
}
.p-header-title__portfolio span:nth-child(6) {
  transition-delay: 0.5s;
}
.p-header-title__portfolio span:nth-child(7) {
  transition-delay: 0.6s;
}
.p-header-title__portfolio span:nth-child(8) {
  transition-delay: 0.7s;
}
.p-header-title__portfolio span:nth-child(9) {
  transition-delay: 0.8s;
}


/* --------------------------------------- */

.p-hamburger-menu{
  display: none;
}

.p-hamburger-menu__icon{
  transition: .5s;
  cursor: pointer;
  cursor: hand;
}

.p-hamburger-menu__icon:hover{
  opacity: 0.6;
}

.u-header-title-pa{
  padding: 1% 3% 5%;
}

/*---- グローバルナビゲーション　project ----*/

.p-header-nav{
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  background-color: black;
  border-bottom-left-radius: 30px;
  letter-spacing: 2px;
  box-shadow: 3px 3px 4px white;
}

.p-header-navlists{
  display: flex;
  justify-content:space-around;
  font-size: 2.2vw;
}

.p-header-navlists li{
  text-align: center;
  
}

.u-header-navlists li{
  padding: 5%;
}

.p-header-navlists a{
  color: white;
}

.p-header-navlists a::after{
  content: "";
  display: block;
  background: white;
  width: 100%;
  height: 1px;
  margin-top: 4px;
  transform: scaleX(0);
  transition: .4s;
}

.p-header-navlists a:hover::after{
  transform: scale(1);
}

.p-header-text{
  width: 100%;
  font-size: 2vw;
  line-height: 2.5vw;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px white;
  background-color: rgba(100, 0, 100, 0.3);
}

.u-header-text{
  padding: 2vw 0;
}

.p-header-text__guidance{
  width: 80%;
  text-align: center;
  opacity: 0;
}

.u-header-text__guidance{
  margin: auto;
}

.text-slide {
  animation-name: textSlideIn-X;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  transition-timing-function: cubic-bezier(.29, 1.01, 1, -0.68); animation-delay: 2s;
}

@keyframes textSlideIn-X {
  0% {
    transform: translateX(2%);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/*------- ヘッダーnaviフェイドアウトアニメーション -------*/
.is-fadeOut{
  opacity: 0;
  visibility: hidden;
}

/*------ PC メインコンテンツ ------*/

.p-heading{
  text-align: center;
  color: #610B5E;
  font-weight: bold;
  font-size: 4vw;
  letter-spacing: 3px;
  line-height: 2.5vw;
  text-shadow: 3px 3px 2px gray;
}

.u-heading{
  margin-bottom: 10vw;
}

.p-heading__caution{
  font-size: 1.4vw;
  font-weight: bold;
  letter-spacing: 1px;
  color: gray;
  text-shadow: 1px 1px 1px white;
  text-align: center;
}

.u-heading__caution{
  margin-bottom: 3vw;
  padding: 0 5vw;
}

.p-portfolio{
  text-align: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.u-portfolio{
  padding-top: 10vw;
  padding-bottom: 1vw;
}

.p-portfolio-title{
  font-size: 7vw;
  font-weight: bold;
  font-family: serif;
  color: #CECEF6;
  letter-spacing: .5vw;
  text-shadow: 2px 2px 2px black;
  opacity: 0;
}

.u-portfolio-title{
  margin-bottom: 14vw;
}

.is-fadein-title {
  animation-name: title-fadeIn;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  transition-timing-function : ease-out;
}

@keyframes title-fadeIn {

  0% {
    transform: translateY(-2vw);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.p-request-website{
  font-size: 4vw;
  color: white;
  text-shadow: 2px 2px 5px black;
  font-family: serif;
  letter-spacing: .5rem;
}

.p-request-website::after{
  content: "";
  display: block;
  width: 40%;
  height: 1.5px;
  background-color: white;
  box-shadow: 1px 1px 4px black;
  margin: 2vw auto 0;
}

.u-request-website{
  margin-bottom: 12vw;
}

.p-portfolio-site{
  position: relative;
  opacity: 0;
}

.is-fadein-website {
  animation-name: website-fadeIn;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  transition-timing-function : ease-out;
}

@keyframes website-fadeIn {

  0% {
  }

  100% {
    opacity: 1;
  }
}

.u-portfolio-site{
  margin: auto;
  margin-bottom: 10vw;
}

.is-slide-portfolio {
  animation-name: portfolioSlideIn-Y;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  transition-timing-function: ease-out;
}

@keyframes portfolioSlideIn-Y {
  0% {
    transform: translateY(10%);
  }

  100% {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

.p-portfolio-site__name{
  position: absolute;
  top: -3.5vw;
  display: inline-block;
  font-size: 2vw;
  font-weight: bold;
  color: white;
  background-color: #08088A;
  padding: .5vw 1vw;
  border: solid 3px #08088A;
  border-radius: 10px 10px 0 0;
}

.p-portfolio-site__content{
  background-color: white;
  border: solid 3px #08088A;
  border-radius: 0 10px 10px 10px;
  box-shadow: 7px 7px 10px white;
  width: 90%;
  height: 50vw;
}

.p-iroha-caution{
  position: absolute;
  top: -2.5vw;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3vw;
  color: white;
  letter-spacing: 1px;
  width: 40%;
}

.p-portfolio-calculator{
  display: none;
  position: relative;
  color: white;
}

.u-portfolio-calculator{
  margin: auto;
  margin-bottom: 12vw;
}

.p-portfolio-calculator-title{
  text-align: center;
  font-size: 2.5vw;
  line-height: 1.5em;
  letter-spacing: 1px;
  text-shadow: 2px 2px 2px black;
}

.u-portfolio-calculator-title{
  margin-bottom: 2vw;
}

.p-portfolio-calculator-link{
  transition: .5s;
  display: inline-block;
}

.u-portfolio-calculator-link{
  margin: auto;
}

.p-portfolio-calculator-link__message{
  position: absolute;
  z-index: 1;
  top: 57%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.3vw;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 3px rgb(0, 0, 0);
}

.p-portfolio-calculator-link__image{
  border-radius: 10px;
  filter: blur(3px);
}

.calculator-link-active {
  animation-name: image-clearly;
  animation-duration: .3s;
  animation-fill-mode: forwards;
  transition-timing-function: ease-out;
}

@keyframes image-clearly {
  0% {
    border-radius: 10px;
    filter: blur(3px);
  }
  100% {
    border-radius: 200px;
    filter: blur(0);
  }
}

.calculator-link-return {
  animation-name: image-blur;
  animation-duration: .3s;
  animation-fill-mode: forwards;
  transition-timing-function: ease-out;
}

@keyframes image-blur {
  0% {
    border-radius: 200px;
    filter: blur(0);
  }
  100% {
    border-radius: 10px;
    filter: blur(3px);
  }
}

.calculator-message-active {
  animation-name: message-fadeout;
  animation-duration: .3s;
  animation-fill-mode: forwards;
  transition-timing-function: ease-out;
}

@keyframes message-fadeout {
  0% {
    opacity: 1;
    visibility: hidden;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.calculator-message-return {
  animation-name: message-fadein;
  animation-duration: .3s;
  animation-fill-mode: forwards;
  transition-timing-function: ease-out;
}

@keyframes message-fadein {
  0% {
    visibility: hidden;
    opacity: 0;
  }
  100% {
    visibility: visible;
    opacity: 1;
  }
}

/*---------- banner -----------*/

.p-portfolio-title--banner{
  color: #F6CED8;
}

.u-portfolio--banner{
  padding-top: 0;
  padding-bottom: 15vw;
}

.p-portfolio-banner{
  width: 90%;
  border: solid 3px #B40431;
  border-radius: 20px;
  text-align: center;
  background-color: white;
  box-shadow: 7px 7px 10px white;
  opacity: 0;
}

.u-portfolio-banner{
  margin: auto;
}

.u-banner-request{
  margin: 0 5vw;
  padding-bottom: 5vw;
}

.p-request-banner{
  width: 60%;
  height: 11vw;
  background-image: url(../img/Request-Proposal.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.u-request-banner{
  margin: auto;
}

.u-asean{
  margin-bottom: 3vw;
}

.p-portfolio-banner img{
  border: solid 2px gray;
  border-radius: 5px;
  box-shadow: 2px 2px 5px gray;
  transition: .3s;
  opacity: 0;
}

.p-portfolio-banner img:hover{
  transform:scale(1.3,1.3);
}

.p-asean__rectangle{
  vertical-align: middle;
  width: 40%;
}

.u-asean__rectangle{
  margin-right: 4vw;
}

.p-asean__horizontal{
  width: 45%;
  vertical-align: middle;
}

.u-tradingbattle{
  margin-bottom: 5vw;
}

.p-tradingbattle__rectangle{
  width: 40%;
  vertical-align: middle;
}

.u-tradingbattle__rectangle{
  margin-right: 3vw;
}

.p-christmas-illumination__line{
  width: 20%;
  vertical-align: middle;
}

.u-christmas-illumination__line{
  margin-right: 5vw;
  margin-bottom: 5vw;
}

.p-maruhuji__horizontal{
  width: 60%;
  vertical-align: middle;
}

.p-banner-testandcopy{
  background-color: rgba(0, 0, 0, 0.1);
  width: 100%;
}

.u-banner-testandcopy{
  padding: 3vw 0 7vw;
}

.p-banner-testandcopy img{
  width: 15%;
}

.u-banner-testandcopy img{
  margin-right: 1vw;
}

.p-test-copy{
  width: 25%;
  height: 8vw;
  background-image: url(../img/test-and-copy.png);
  background-size: 100%;
  background-repeat: no-repeat;
}

.u-test-copy{
  margin: auto;
}

.is-slide-banner {
  animation-name: banner-slideIn-X;
  animation-duration: .7s;
  animation-fill-mode: forwards;
  transition-timing-function : ease-out;
}

@keyframes banner-slideIn-X {
  
  0% {
    transform: translateX(15%);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/*------ PC フッター ------*/

.p-footer-nav{
  background-color: #6E6E6E;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-footer-nav__list{
  width: 20%;
  text-align: center;
  font-size: 2vw;
  border-right: 1.5px solid white;
}

.p-footer-nav__link{
  color: white;
  letter-spacing: 1px;
}
.p-footer-nav__link:hover{
  opacity: .4;
  transition: .5s;
}

.p-footer-nav__list--contact{
  border: none;
}

.u-footer-nav__list{
  margin: 3vw 0;
}

.p-footer-copywrite{
  background-color: black;
  color: white;
  font-size: .8vw;
}

.u-footer-copywrite__name{
  padding: .5vw 1%;
}

/* ============= ipad ============== */

@media(max-width: 820px){

  /*--------- iPad ヘッダー ---------*/
  
  .p-header-title{
    text-align: center;
  }

  .p-header-title__line { 
    width: 70%;
  }

  .p-header-title__portfolio {
    height: 55%;
    font-size: 2.4rem;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
  }

  .p-hamburger-menu{
    position: relative;
    display: block;
  }

  .p-hamburger-menu__icon{
    position: fixed;
    z-index: 2;
    top: 40px;
    right: 50px;
    width: 7%;  
  }

  /*---- グローバルナビゲーション　project ----*/
  .p-header-nav{
    position: fixed;
    width: 40%;
    height: 100%; /*包含ブロックの高さ指定がないと子要素のheight100%が効かないため*/
    display: none;
    background-color: transparent;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.7);
    border-bottom-left-radius: 0;
    transition: .5s;
  }

  .p-header-navlists{
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1;
    border: none;
    border-top-right-radius: 0;
    width: 100%;
    height: 100%;
  }

  .u-header-navlists{
    padding-top: 45%;
  }

  .p-header-navlists li{
    text-align: center;
    font-size: 4vw;
    border-bottom: 1px solid white;
  }

  .u-header-navlists li{
    margin: auto;
    padding: 7%;
  }

  .p-header-navlists a::after{
    content: none;
  }

  .p-header-navlists a:hover{
    opacity: .5;
    transition: .5s;
  }
  
  @media(max-height: 450px){
    .p-header-nav{
      width: 100%;
      height: 80px;
    }
    
    .p-header-navlists{
      right: auto;
      display: flex;
      width: 75%;
    }
    
    .u-header-navlists{
      padding-top: 0;
    }
    
    .p-header-navlists li{
      font-size: 2.5vw;
      padding: 30px 0;
      width: 100%;
      border-bottom: transparent;
      border-right: 1px solid white;
    }
    
    .p-hamburger-menu__icon{
      top: 25px;
      right: 6%;
      width: 5%;  
    }
  }

  /*-----------------------------*/ 

  /* ハンバーガーメニュークリック時アクション */

  .is-active {
    display: block;
  }

  .is-slideIn-X {
    animation-name: navListSlideIn-X;
    animation-duration: .6s;
    animation-fill-mode: forwards;
    transition-timing-function : ease-out;
  }

  @keyframes navListSlideIn-X {
    0% {
      opacity: 0;
      transform: translateX(100%);
    }

    100% {
      visibility: visible;
      opacity: 1;
      transform: translateX(0);
    }
  }

  .is-slideOut-X {
    animation-name: navListSlideOut-X;
    animation-duration: .6s;
    animation-fill-mode: forwards;
    transition-timing-function : ease-out;
  }

  @keyframes navListSlideOut-X {
    0% {
      transform: translateX(0);
    }

    100% {
      visibility: hidden;
      opacity: 0;
      transform: translateX(100%);
    }
  }
  /*--------------------------------*/
  
  .u-header-mb{
    margin-bottom: 0vw;
  }
  
  .p-header-text__guidance{
    font-size: 2.8vw;
    line-height: 3.5vw;
  }
  
  .p-heading{
    font-size: 6vw;
  }
  
  .p-portfolio-title{
    font-size: 9vw;
  }
  
  .u-portfolio-title{
    margin-bottom: 15vw;
  }
  
  .p-heading__caution{
    font-size: 2vw;
    line-height: 4vw;
  }
  
  .u-portfolio{
    padding-top: 20vw;
  }
  
  .p-portfolio-site__name{
    top: -3.7vw;
  }

  .p-portfolio-site,
  .p-portfolio-banner{
    width: 80%;
  }
  
  .p-iroha-caution{
    top: -3vw;
    left: 50%;
    line-height: 13px;
    font-size: 1vw;
    transform: translateX(-50%) scale(.8);
    width: 100%;
  }
  
  /*--------- ip フッター ---------*/

  .p-footer-nav__list{
    font-size: 3vw;
  }

  .u-footer-nav__list{
    margin: 5vw 0;
  }
}

/* ============= SP ============== */

@media(max-width: 414px){
  
  .p-hamburger-menu__icon{
    top: 25px;
    right: 30px;
    width: 10%;
  }

  .p-header-navlists li{
    font-size: 5vw;
  }

  .u-header-navlists{
    padding-top: 60%;
  }
  
  .u-header-mb{
    margin-bottom: -15vw;
  }

  .u-header-text{
    padding: 10vw 0;
  }
  
  .p-header-text__guidance{
    font-size: 4.5vw;
    line-height: 1.3rem;
    text-align: left;
  }
  
  .p-heading{
    font-size: 10vw;
  }

  .u-heading{
    margin-bottom: 15vw;
  }

  .p-heading__caution{
    font-size: 3.5vw;
  }

  .u-portfolio-site{
    margin-bottom: 25vw;
  }

  .p-portfolio-title{
    font-size: 14vw;
  }

  .p-request-website{
    font-size: 6.5vw;
  } 

  .p-request-website::after{
    width: 50%;
  }
  
  .u-request-website{
    margin-bottom: 18vw;
  }
  
  section:nth-of-type(2) .u-portfolio-title{
    margin-bottom: 10vw;
  }
  
  .p-portfolio-site,
  .p-portfolio-banner{
    width: 95%;
  }

  .p-portfolio-site__name{
    font-size: 4vw;
    letter-spacing: 1px;
    top: -30px;
  }

  .p-portfolio-site__content{
    height: 90vw;
  }
  
  .p-iroha-caution{
    transform: scale(1);
    font-size: 2.5vw;
    width: auto;
    top: -5vw;
    left: 27%;
  }

  .u-portfolio-calculator{
    margin-bottom: 10vw;
  }
  
  .p-portfolio-calculator-title{
    font-size: 6vw;
  }
  
  .u-portfolio-calculator-title{
    margin-bottom: 8vw;
  }
  
  .p-portfolio-calculator-link__message{
    font-size: 5vw;
    top: 50%;
  }

  .p-portfolio-calculator-link__image{
    width: 70%;
  }

.u-portfolio-calculator-link{
  margin-bottom: 15vw;
}

  .p-portfolio-banner {
    width: 90%;
  }

  .p-request-banner {
    width: 90%;
    height: 15vw;
  }

  .u-banner-request{
    margin-bottom: 10vw;
  }

  .u-request-banner{
    margin: 3vw auto 5vw;
  }

  .p-asean__rectangle,
  .p-asean__horizontal,
  .p-tradingbattle__rectangle,
  .p-asean__horizontal,
  .p-maruhuji__horizontal{
    width: 90%;
  }

  .u-asean__rectangle,
  .u-tradingbattle__rectangle,
  .u-christmas-illumination__line{
    margin: auto;
  }

  .u-asean,
  .p-tradingbattle{
    margin-bottom: 18vw;
  }

  .u-asean__rectangle,
  .u-tradingbattle__rectangle{
    margin-bottom: 8vw;
  }

  .p-christmas-illumination__line{
    width: 50%;
  }

  .u-christmas-illumination__line{
    margin-bottom: 15vw;
  }

  .u-banner-testandcopy{
    padding-top: 5vw;
  }

  .p-banner-testandcopy img{
    width: 30%;
    margin: auto;
    margin-bottom: 5vw;
  }

  .p-test-copy{
    width: 50%;
    height: 10vw;
  }

  .u-test-copy{
    margin-bottom: 10vw;
  }

  .u-portfolio--banner{
    margin-bottom: 20vw;
  }
  /*--------- sp フッター ---------*/
  .p-footer-nav{
    height: auto;
    flex-flow: column;
  }

  .u-footer-nav{
    padding: 4vw;
  }

  .p-footer-nav__list{
    list-style: square;
    text-align: left;
    font-size: 6vw;
    border-right: 0px solid;
  }
  .u-footer-nav__list{
    margin: 2% 0;
  }

  li{   /*■の色変更のため*/
    color: white;
  }

  /* ---------- SP copy ----------- */

  .p-footer-copywrite__name{
    font-size: 2.5vw;
    letter-spacing: 1px;
  }

  .u-footer-copywrite__name{
    padding: 2vw 0 2vw 2vw;
  }

}