@charset "utf-8";

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

body {
    color: #3f312b;
    font-family: "Montserrat", sans-serif;
}

ul,ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #3f312b;
    text-decoration: none;
    display: block; 
    transition-duration: 0.5s;
}

a:hover {
    display: inline-block;
    opacity: 0.7;
    translate: 0 6px;
    text-decoration: underline;
}

#top p {
    margin-top: 40px;
    text-align: center;
    font-size: 0.8em;
    line-height: 2;
    font-family: "M PLUS 1", sans-serif;
}

#top p.en {
    margin-top: 20px;
    text-align: center;
    font-size: 0.7em;
    line-height: 2;
    font-family: "Montserrat", sans-serif;
}

#top span.dot {
    margin-top: 10px;
    display: block;
    text-align: center;
    color: #fcc800;
    font-size: 0.6em;
}

header {
    background-color: #fff;
    padding: 40px 0 0;
    width: 100%;
    height: 40vh;
    background-image: url(./images/header.png);
    background-position: bottom center ;
    background-size: cover;
    background-repeat: no-repeat;
}

.header-inner {
    max-width: 1400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    display: block;
    width: 240px;
}

.icon {
    display: block;
    width: 90px;
    margin-bottom: 20px;
}

.header-menu {
    display: flex;
    justify-content: center;
    padding: 40px 0 20px;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
}

.header-menu li {
    padding: 0 50px;
    border-right: 2px solid #3f312b;
}

.header-menu li:last-child {
    border: none;
}

#gallery {
    text-align: center;
    padding: 30px 0;
}

#gallery h2 {
    margin: 0 0 30px;
    text-align: center;
}

#gallery h3 {
    margin: 30px 0;
    text-align: center;
}

#gallery h3 span {
    background: linear-gradient(transparent 60%, #fcc800 60%);
    padding-left: 20px;
    padding-right: 20px
}

.grid {
    width: 90%;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 40px;
    justify-content: center;
    align-content: start;
}

.gallery01,.gallery02,.gallery03,.gallery04,.gallery05 {
   border: 1px solid #3f312b;
   border-radius: 20px 20px 0 0;
   box-shadow: 5px 5px 0 #fcc800;
   padding-bottom: 30px;
   padding-left: 20px;
   padding-right: 20px;
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   align-items: center;
}

.works_img {
    display: flex;
    justify-content: center;
}

.gallery01 .works_img {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70%;
}

.gallery01 .works_img .seal {
    margin-bottom: 20px;
    border: 1px solid #333;
}

.works_img img,.works_img02 img {
    width: 90%;
}

.works_img02 {
    display: grid;
    place-items: center;
    gap: 45px 15px;
}

.works_img02 li:first-child {
    grid-column: 1 / 3 ;
}

.gallery04 .works_img {
    width: 90%;
}

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

.wave {
    height: 10px;
    background-image: url(./images/wave.png);
    background-size: auto 100%;
    background-repeat: repeat-x;
}

#about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

#about p.job {
    font-family: "Montserrat", sans-serif;
    margin-top: 0;
    font-size: 14px;
}

#about .me {
    width: 120px;
    margin: 40px 0;
}

.skill {
    width: 350px;
    height: 50px;
    display: flex;
    justify-content: space-around;
    margin: 40px 0;

}

.skill img {
    width: 50px;
}

.prof {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
}

.prof li {
    padding-top: 10px;
}

.about_button {
    background-color: #fcc800;
    width: 160px;
    line-height: 30px;
    font-weight: bold;
    text-align: center;
    margin-top: 30px;
}

#contact {
    text-align: center;
    padding: 30px 0;
}

.mail_icon {
    display: inline-block;
    width: 50px;
    margin: 30px 0 10px;
}

.sns {
    display: flex;
    justify-content: center;
}

.sns_icon {
    display: inline-block;
    width: 60px;
    margin: 30px 20px 0;
}

footer {
    background-color: #fcc800;
    padding: 50px 0;
    text-align: center;
}

#top p.infomail {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    margin-top: 0;
}

/* page_top button */
#page_top{
  width: 50px;
  height: 50px;
  position: fixed;
  right: 5px;
  bottom: 5px;
  background: #fcc800;
  border-radius: 50%;
  border: 3px solid #fff;
}
#page_top a{
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  text-decoration: none;
}
#page_top a::before{
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f106';
  font-size: 28px;
  color: #fff;
  position: absolute;
  width: 25px;
  height: 25px;
  top: 0;
  bottom: 18px;
  right: 5px;
  left: 0;
  margin: auto;
  text-align: center;
}

/* about_page */
#about_page h2 {
    text-align: center;
    margin-top: 40px;
}

.info {
    width: 50%;
    margin: 30px auto;
    font-size: 0.8em;
    line-height: 2;
}

.info h3 {
    background-color: #fcc800;
    padding-left: 10px;
    margin-top: 20px;
    font-size: 15px;
    line-height: 30px;
}

.info ul {
    margin-top: 20px;
}

.info li {
    list-style-type: disc;
    margin-left: 2em;
}

.info li::marker {
    color: #fcc800;
    font-size: 1.5em; 
}

#about_page p {
    margin: 20px 40px ;
    font-weight: bold;
}

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

@media (max-width: 600px) {

    header {
    padding: 30px 0 0;
    width: 100%;
    height: 30vh;
    background-image: url(./images/header_sp.png);

    }

    .header-menu {
    padding: 20px 0 20px;
    }

    .header-menu li {
        padding: 0 16px;
    }

    .site-title {
        font-size: 1.6rem;
    }

    .grid {
        display: block;
        margin: 15px auto;
    }

    #gallery {
        padding: 15px 0;
    }

    .gallery02,.gallery03,.gallery04,.gallery05 {
        margin-top: 30px;
    }

    #gallery h2 {
    margin: 0 0 20px;
    text-align: center;
}

    .skill {
        width: 100%;
        max-width: 350px;
    }

    .info {
    width: 80%;
    }

    footer {
    padding: 25px 0;
    }

    
}