@charset "utf-8";

/* 共通設定 -----------------------------*/
html{
    font-size: 100%;
    scroll-behavior: smooth;
}

body{
    color: #2e2a2e;
    background-color: #fbfbfb;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 400;
    font-style: normal;}

a{
    text-decoration: none;
    color: #2e2a2e;
}

a:hover{
    opacity: 0.5;
    transition: .3s ease-in-out;
}

ul{
    list-style-type: none;
}

img{
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.wrapper{
    max-width: 1000px;
    margin: 0 auto;
}

h2{
    border-bottom: 1px solid #2e2a2e;
    text-align: center;
    margin-bottom: 70px;
    font-size: 2.0rem;
    font-weight: normal;
}

h3{
    font-weight: normal;
    margin-bottom: 50px;
    text-align: center;
    padding: 0 1rem;
}

section{
    margin-bottom: 150px;
}



/* header -----------------------------*/
.header{
    border-bottom: 1px solid #2e2a2e;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #fbfbfb;
    opacity: 0.8;
    z-index: 5;
}
h1{
    font-weight: normal;
}
.gnav,.gnav-list{
    display: flex;
}
.gnav{
    justify-content: space-between;
    align-items: center;
    margin: 30px 50px 0 50px;
}

.gnav-item{
    margin: 0 20px;
}

/* トップ画像 --------------------------*/
.bgimg{
    background-image: url(images/kumiko.jpg);
    height: 700px;
    background-size: cover;
    background-position: bottom left;
    margin-top: 70px;
}
.p{
    color: #fbfbfb;
    position: absolute;
    right: 15%;
    bottom: 35%;
    margin-left: 20px;
}
.topname{
    font-size: 2.5rem;
}
.toptext{
    font-size: 1.1rem;
    text-align: center;
}

.txt{
    text-align: center;
    margin-top: 100px;
}

/* scroll矢印 ----------------------------*/
/* スクロールダウンの位置 */
.scroll {
  margin-top: 50px;
    font-size: 0.9rem;
    position: absolute;
    right: 50%;
    writing-mode: vertical-rl;
  }
  /* 線のアニメーション部分 */
  .scroll::before {
    animation: scroll 2s infinite;
    background-color: #000;
    bottom: -105px;
    content: "";
    height: 90px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    width: 1px;
  }
  /* 線のアニメーション */
  @keyframes scroll {
    0% {
      transform: scale(1, 0);
      transform-origin: 0 0;
    }
    50% {
      transform: scale(1, 1);
      transform-origin: 0 0;
    }
    51% {
      transform: scale(1, 1);
      transform-origin: 0 100%;
    }
    100% {
      transform: scale(1, 0);
      transform-origin: 0 100%;
    }
  }


/* about ------------------------------------*/
#about{
    margin-top: 32%;
}
.about-flex{
    display: flex;
    padding: 0 3%;
}
.about-txt{
    margin-left: 5%;
    line-height: 2.2;
    font-size: 0.85rem;
}
.about-img{
  width: 40%;
}
/*skill--------------------------------*/
.skillgrid{
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    max-width: 800px;
    margin: 0 auto;
}
.griditem{
    margin: 0 auto;
    max-width: 130px;
}
figcaption{
    text-align: center;
}

/* works -----------------------------------------------*/
.worksgrid{
    display: grid;
    column-gap: 30px;
    row-gap: 50px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin: 0 1rem;
}
h4{
  font-size: 0.95rem;
    font-weight: normal;
    margin-bottom: 20px;
    padding: 0.5rem;
}
.worksspan{
    font-size: 0.75rem;
    color: #767676;
    display: block;
    text-align: right;
}
.workstxt{
    font-size: 0.85rem;
    margin: 0.5rem;
}
.worksgriditem{
    position: relative;
    height: 460px;
}
.worksimg{
  text-align: center;
}
button,.popup-open{
    color: #fbfbfb;
    background-color: #2e2a2e;
    display: inline-block;
    padding: 4% 6%;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 30%;
}



/* popup */

#popup{
    display: none; /* label でコントロールするので input は非表示に */
  }
  
  .popup-open {
    cursor: pointer; /* マウスオーバーでカーソルの形状を変えることで、クリックできる要素だとわかりやすいように */
  }
  
  .popup-overlay {
    display: none; /* input にチェックが入るまでは非表示に */
  }
  
  #popup:checked ~ .popup-overlay {
    display: block;
    z-index: 99999;
    background-color: #00000070;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
  }


  .popup-window {
    width: 90vw;
    max-width: 1500px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 6px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .popup-text {
    margin: 0;
  }
  
  .popup-text:not(:last-of-type) {
    margin-bottom: 1em
  }
  
  .popup-close {
    cursor: pointer;
    position: absolute;
    top: -26px;
    right: 0;
  }

  .popup-flex{
    display: flex;
  }

/* details----------------------------------------------- */
.worksdetails{
  margin-top: 130px;
  line-height: 1;
  padding-bottom: 10px;
}
.detailsspan{
  color: #767676;
  font-size: 1rem;
}
.detailsflex{
  display: flex;
}
#kenkoudou,#taocaf,#hanaaquarium,#printing{
  margin: 60px 0 50px;
}
.detailsitem p{
  padding: 0 1rem;
  text-align: center;
}

  /* contact -------------------------------------------*/

.contacttxt{
  color: #228d47;
}

form{
  margin-top: 50px;
  padding: 50px 20px;
  background-color: #F1F0F0;
}
th,td{
  display: block;
}

th{
  text-align-last: left;
  font-weight: normal;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    padding: 0.2em 0.5em;
    width: 100%;
    border: 1px solid rgba(133, 132, 133, 0.7);
    border-radius: 3px;
    box-shadow: 0px 0px 1px 1px rgba(51, 49, 50, .4);
    background-color: #fbfbfb;
    margin-bottom: 50px;
}

textarea {
    font-size: 1.25rem;
    height: 10em;
}

.formTable{
  margin: 0 auto;
}

input[type="submit"],
input[type="reset"]{
  padding: 2% 5%;
  background-color: #2e2a2e;
  color: #fbfbfb;
}
.submit{
  margin: 40px 0 30px 0;
}

/* footer ------------------------------------------*/
footer{
  background-color: #2e2a2e;
  color: #F1F0F0;
  height: 50px;
  text-align: center;
  padding: 20px;
}

/* レスポンシブ -------------------------------------*/
@media(max-width:1050px){
  /* スクロール -------*/

  /* about -----*/
  .about-flex{
    padding: 0 7%;
  }
  .about-img{
    width: 50%;
  }


  /* works -----------*/
  .worksgrid{
    margin: 0 1.7rem;
  }
/* contact ----------*/
form{
  width: 750px;
  margin: 0 auto;
}

}


@media(max-width:768px){
  h3{
    font-size: 1rem;
  }

    /* スクロール -------*/
    .scroll::before {
      height: 60px;
      bottom: -80px;
    }
  /* about --------*/
  .about-img{
    width: 80%;
  }
  .about-txt{
    line-height: 2;
  }


  /* skill --------*/
  .skillgrid{
    gap: 30px;
    grid-template-columns: 1fr 1fr;
    max-width: 600px;
    margin: 0 auto;
}
.griditem{
    margin: 0 auto;
    max-width: 200px;
}

  /* works --------*/
  .worksgrid{
    grid-template-columns: 1fr 1fr;
}
.worksgriditem{
  height: 550px;
}
button,.popup-open{
  left: 33%;
}



  /* contact ----------*/
form{
  width: 600px;
  margin: 0 auto;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 22rem;
  margin-bottom: 20px;
}
.submit{
  margin: 0 0 20px 0;
}
}

@media(max-width:650px){
  /* header ------*/
  .header{
    height: 85px;
  }
  .gnav{
    display: block;
    text-align: center;
    margin-top: 20px;
  }
  .gnav-list{
    justify-content: center;
  }

  /* トップ画像 ---------*/
  .bgimg{
    margin-top: 85px;
    background-image: url(images/kumiko-sp.jpg);
    background-position: bottom right;

  }

    /* スクロール -------*/

  /* about --------*/
  .about-img{
    width: 60%;
    margin: 0 auto;
    margin-bottom: 30px;
  }
  .about-flex{
    display: block;
  }
  .about-txt{
    width: 70%;
    margin: 0 auto;
  }
/* skill---------- */
.skillgrid{
  max-width: 440px;
}
}



@media(max-width:590px){
  h3{
    font-size: 1rem;
  }

  /* scroll-------- */
  .scroll{
    margin-top: 20px;
    font-size: 0.75rem;
  }
  .scroll::before {
    bottom: -90px;
    height: 85px;
  }

  /* skill--------- */
  .skillgrid{
    max-width: 250px;
}
.skilltxt{
  font-size: 0.8rem;
}

#about{
  margin-top: 200px;
}
  /* works--------- */
  .worksgrid{
    grid-template-columns: 1fr;
    gap: 60px;
    width: 250px;
    margin: 0 auto;
  }
  .worksgriditem{
    height: 470px;
  }
  /* popup --------------*/
.popup-flex{
  display: block;
  width: 170px;
  margin: 0 auto;
}

  /* contact------- */
  form{
    max-width: 400px;
  }
  input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 17rem;
  margin-bottom: 15px;
}
}

@media(max-width:450px){
/* details --------------*/
.detailsflex{
  display: block;
}
.noneimg{
  display: none;
}
/* form----------------- */
  form{
    max-width: 350px;
  }
  input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 15rem;
  margin-bottom: 15px;
  border-radius: 2px;
}
}

