@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* class list */

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

.space-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.gap-1em {
  gap: 1em;
}

.gap-2em {
  gap: 2em;
}

.text-center {
  text-align: center;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.en {
  font-family: "Bungee", "Chango", sans-serif;
}

.a {
  text-decoration: none;
}


/* variable list */

:root {
  --main_color: #5f7f6e;
  --sub_color: #f0f4f3;
  --font_normal: #181F1B;
  --font_attention: #b81a3e;
}


/* ##   ##  #######    ##     #####    #######  ######   ******************************************************
/* ##   ##   ##   #   ####     ## ##    ##   #   ##  ##  ******************************************************
/* ##   ##   ## #    ##  ##    ##  ##   ## #     ##  ##  ******************************************************
/* #######   ####    ##  ##    ##  ##   ####     #####   ******************************************************
/* ##   ##   ## #    ######    ##  ##   ## #     ## ##   ******************************************************
/* ##   ##   ##   #  ##  ##    ## ##    ##   #   ##  ##  ******************************************************
/* ##   ##  #######  ##  ##   #####    #######  #### ##  *****************************************************/

#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--font_normal);
  font-family: "M PLUS 2", sans-serif;
}

header {
  padding: 0 10%;
  height: 120px;
  background: var(--main_color);
}

header a {
  color: var(--sub_color);
  text-decoration: none;
}


.logo {
  font-size: 36px;
  color: var(--sub_color);
}

nav a {
  font-size: 32px;
  display: inline-block;
  position: relative;
}

nav a::after {
  background: var(--sub_color);
  bottom: -4px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  transform: scale( 0, 1 );
  transform-origin: righ top;
  transition: transform .3s;
  width: 100%;
}

nav a:hover::after {
  transform-origin: left top;
  transform: scale( 1, 1 );
}

nav ul {
  list-style: none;
}

header .material-symbols-outlined {
  display: none;
  color: var(--main_color);
  background: var(--sub_color);
  border-radius: 10px;
  padding: 6px;
  font-size: 24px;
  z-index: 1000;
}




/* ##   ##    ##      ####    ##   ##   ************************************************************************
/* ### ###   ####      ##     ###  ##   ************************************************************************
/* #######  ##  ##     ##     #### ##   ************************************************************************
/* #######  ##  ##     ##     ## ####   ************************************************************************
// ## # ##  ######     ##     ##  ###   ************************************************************************
// ##   ##  ##  ##     ##     ##   ##   ************************************************************************
// ##   ##  ##  ##    ####    ##   ##   ***********************************************************************/


/* first view *****************************************************************************/
.firstview {
  position: relative;
}

.firstview h1 {
  position: absolute;
  overflow: hidden;
  color: var(--sub_color);
  font-size: 64px;
  text-shadow: 0 4px 4px var(--font_normal);
  letter-spacing: .2em;
  top: 30%;
  left: 50%;
  transform: translate( -50%, -50% );
  margin: 0;
}

.firstview img {
  width: 100%;
  height: auto;
}

#contents-wrap {
  max-width: 1240px;
  margin: 0 auto;
  color: var(--font_normal);
  font-family: 'M PLUS 2', 'Meiryo UI','ヒラギノ丸ゴ ProN','Hiragino Maru Gothic ProN','ヒラギノ角ゴシック','Hiragino Sans',sans-serif;

}

/* h2の文字と上の余白 */
h2 {
  font-family: "Bungee", sans-serif;
  font-size: 36px;
  color: var(--font_normal);
}

/* sectionの左右の余白 */
#about,
#work,
#contact {
  width: 880px;
  margin: 0 auto;
}

/* about ********************************************************************************/

#about h2 {
  margin: 4.5rem 0 0;
}

.about_content span {
  font-weight: bold;
}

.about_content p {
  color: #181f1b;
  line-height: 36px;
  margin: 20px;
}

.about_content p:first-child {
  margin: 40px auto 50px 20px;
  font-size: 24px;
}

.about_content p:nth-child(2){
  font-size: 18px;
}

.more {
  font-family: "Bungee", sans-serif;
  font-size: 24px;
  display: inline-block;
  text-align: right;
  color: var(--font_normal);
  text-decoration: none;
}


.more:hover {
  color: var(--main_color);
  font-size: 28px;
  text-decoration: underline;
}

.about_image {
  display: block;
  margin-left: auto;
}

#about > p {
  text-align: center;
}

#about img {
  border-radius: 10px;
}

/* work ***********************************************************************************/

#work h2 {
  margin: 150px 0 31px;
}

#work h2 + p {
  font-size: 18px;
  margin: 20px auto 74px 20px;
  line-height: 36px;
}

.work-items {
  justify-content: space-between;
  gap: 2em;
}

.item {
  position: relative;
  overflow: hidden;
}

.item > img {
  width: 280px;
  border-radius: 10px;
  margin-bottom: 110px;
}

.item-data {
  width: 240px;
  height: auto;
  background: var(--main_color);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 8px 24px hsla(0 , 0%, 0%, .15);
  border-radius: 10px;
  position: absolute;
  bottom: 10px; /*30*/
  right: 0;
  left: 0;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 1s 1s;
}

.item-data span {
  display: block;
  font-size: 16px;
  color: var(--sub_color);
  margin-bottom: .5rem;
}

.item-title {
  font-size: 20px;
  color: var(--sub_color);
  margin-bottom: 1.25rem;
  text-align: center;
}

.item-button {
  text-decoration: none;
  font-size: 1rem;
  color: var(--sub_color);
}

.item-button:hover {
  text-decoration: underline;
  font-weight: bold;
}

/* animation in hover */
.item:hover .item-data {
  animation: show-data 1s forwards;
  opacity: 1;
  transition: opacity .3s;
}

.item:hover {
  animation: remove-overflow 2s forwards;
}

.item:not(:hover) {
  animation: show-overflow .3s forwards;
}

.item:not(:hover) .item-data {
  animation: remove-data .1s forwards;
}

@keyframes show-data {
  50% {
    transform: translateY( -10px );
  }
  100% {
    transform: translateY( -4px );
  }
}

@keyframes remove-overflow {
  to {
    overflow: initial;
  }
}

@keyframes remove-data {
  0% {
    transform: translateY( -4px );
  }
    100% {
    transform: translateY( 1px );
  }
}

@keyframes show-overflow {
  0% {
    overflow: initial;
    pointer-events: none;
  }
  50%{
    overflow: hidden;
  }
}

.work-more a {
  font-size: 24px;
  color: var(--font_normal);
  margin: 1.5em 0 0;
}

/* contact ********************************************************************************/

#contact h2 {
  margin: 150px 0 20px;
}

/* for iframe */

.iframeWrapper {
  position: relative;
  padding-top: 56.25%;
}


iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

 
#contact p {
  font-size: 18px;
  margin: 20px 0 74px 20px;
}

#contact form {
  width: 500px;
  margin: 0 auto;
}

#contact div {
  text-align: center;
  width: fit-content;
}

.ja {
  margin: 0 18px;
}

/* .required {
  font-size: 14px;
  color: #ff8856;
  font-weight: bold;
} */

#contact dt {
  margin: 30px 0 0;
}

#contact div:has( [required] ) dt::after {
  display: inline-block;
  content: "必須";
  background: var(--font_attention);
  border-radius: 5px;
  color: var(--sub_color);
  font-size: .75rem;
  padding: .25em .5em;
  margin: 0 0 .25em;
}

dd input,
textarea {
  width: 100%;
  height: 60px;
  background: rgba( 95, 127, 110, 40% );
  border-radius: 10px;
  border: none;
  padding: .0 1rem;
  font-size: 20px
}

textarea {
  padding: 1rem 0 0 1rem;
  height: 200px;
}

#contact button {
  width: 300px;
  height: 60px;
  background: #5f7f6e;
  color: #f0f4f3;
  font-weight: bold;
  font-size: 24px;
  text-align: center;
  margin: 25px auto 153px;
  border-radius: 10px;
  border: none; 
  cursor: pointer;
}

.form-btn {
  background: #5f7f6e;
  color: #f0f4f3;
  font-weight: bold;
  font-size: 24px;
  text-align: center;
  padding: .5rem 1rem;
  margin: 25px auto 153px;
  border-radius: 10px;
  border: none; 
  cursor: pointer;
}

.form-btn:hover {
  opacity: .5;
}







/* page top固定　*****************************************************************************/
#page_top span {
  font-size: 90px;
  color: #f0f4f3;
  background-color: #5f7f6e;
  border-radius: 10px;
  position: fixed;
  bottom: 80px;
  right: 20px;
  opacity:0;
  visibility: hidden;
}

#page_top.active span {
  opacity:1;
  visibility: visible;
  display: block;
}



 /*#######   #####    #####   ######   #######  ######   *******************************************************
 /* ##   #  ##   ##  ##   ##  # ## #    ##   #   ##  ##  *******************************************************
 /* ## #    ##   ##  ##   ##    ##      ## #     ##  ##  *******************************************************
 /* ####    ##   ##  ##   ##    ##      ####     #####   *******************************************************
 /* ## #    ##   ##  ##   ##    ##      ## #     ## ##   *******************************************************
 /* ##      ##   ##  ##   ##    ##      ##   #   ##  ##  *******************************************************
 /*####      #####    #####    ####    #######  #### ##  ******************************************************/


footer {
  background: var(--main_color);
  color: var(--sub_color);
  padding: 1em;
}

small {
  font-size: 19px;
}




/* ######     ##     ######   ####     #######  ######  ***************************************************
// # ## #    ####     ##  ##   ##       ##   #  # ## #  ***************************************************
//   ##     ##  ##    ##  ##   ##       ## #      ##    ***************************************************
//   ##     ##  ##    #####    ##       ####      ##    ***************************************************
//   ##     ######    ##  ##   ##   #   ## #      ##    ***************************************************
//   ##     ##  ##    ##  ##   ##  ##   ##   #    ##    ***************************************************
//  ####    ##  ##   ######   #######  #######   ####   **************************************************/




@media screen and (width <= 990px) {
  #menu {
    display: inline-block;
  }

  nav {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    transition: top .25s ease-out; 
  }
  nav.active {
    top:0;
  }

  nav ul {
    flex-direction: column;
    background: #5f7f6e;
    height: 100%;
    justify-content: center;
    align-items: center;
    gap: 1em 0;
  }

  .firstview h1 {
    font-size: 24px;
  }

  /* main */




  #about,
  #work,
  #contact {
    width: 90%;
    margin: 0 1rem;
  }

  #about > div {
    flex-direction: column;
    max-width: 100%;
  }

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


  .work-items {
    flex-direction: column;
    max-width: 100%;
    gap: 24px;
  }
}


                    

 /*##   ##   #####   ######    ####    ####     #######  **************************************************
 //### ###  ##   ##   ##  ##    ##      ##       ##   #  **************************************************
 //#######  ##   ##   ##  ##    ##      ##       ## #    **************************************************
 //#######  ##   ##   #####     ##      ##       ####    **************************************************
 //## # ##  ##   ##   ##  ##    ##      ##   #   ## #    **************************************************
 //##   ##  ##   ##   ##  ##    ##      ##  ##   ##   #  **************************************************
 //##   ##   #####   ######    ####    #######  #######  *************************************************/





@media screen and ( width <= 450px) {

  header {
    height: 66px;
  }

  #top {
    padding: 0 18px;
  }

  .logo {
    font-size: 24px;
    text-align: left;
  }


  
  #page_top span {
  font-size: 2.5rem;
  position: fixed;
  bottom: 70px;
  right: 10px;
  }

  #about {
    margin: 30px 12px;
  }

  #about h2 {
    margin: 0 0 30px;
  }

  #about p {
    margin: 0 0 35px;
  }

  .about_content p:first-child {
    font-size: 20px;
  }

  .about_content p:nth-child(2) {
    font-size: 16px;
  }

  .about_content p:last-child {
    display: block;
    text-align: right;
    font-size: 20px;
  }
  .about_image {
    margin: 55px 30px 0;
    height: 400px;
  }

  #work h2 {
    margin: 80px auto 40px;
  }

  #work h2 + p {
    font-size: 16px;
  }

  #work .more {
    margin: 25px auto 0;
  }

                                                 

  /* contact */


  #contact h2 {
    margin: 80px 0 22px;
  }

  #contact p {
    margin: 0 0 32px;
    font-size: 16px;
  }

  #contact input {
    height: 56px;
    margin: 0 0 2px;
  }

  #contact button {
    width: 200px;
    height: 50px;
    margin: 32px 0 56px;
  }













  #contact form {
    width: 100%;
  }

}
                                                  




