@charset "utf-8";

:root {
  /* --bg: #76a0e211; */
  --bg: #fffdfa;
  --black: #555;
  --mainblue: #76a0e2;
  /* --serif: 游明朝, 游明朝体, 'Yu Mincho', YuMincho, serif; */
  /* --sans_serif: 'Zen Maru Gothic', sans-serif; */
}

/* googlefont */

@font-face {
  font-family: Zen Maru Gothic;
  font-display: swap;
  src: url("../fonts/Zen_Maru_Gothic/ZenMaruGothic-Regular.ttf")format("TrueType");
}

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

img {
  vertical-align: bottom;
  max-width: 100%;
}

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

ul,
ol {
  list-style: none;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--black);
}

body {
  transition: background-color .5s ease;
  /* googlefont */
  font-family: 'Zen Maru Gothic', sans-serif;
}

p {
  font-size: 16px;
  line-height: 2.2;
  letter-spacing: .15em;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 95%;
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

header h1 {
  width: 13%;
}

header h1 img {
  width: 100%;
  object-fit: contain;
}

header,
#firstview {
  animation: loading 1.6s ease;
}

@keyframes loading {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}


/* -----------------humburger menu */
.menu-wrap .hbbtn {
  width: 2.1rem;
  aspect-ratio: 1/1;
  position: relative;
  margin: 0 1rem 0 0;
  z-index: 1000;
}

.menu-wrap .hbbtn span::before,
.menu-wrap .hbbtn span::after {
  position: absolute;
  content: '';
}

.menu-wrap .hbbtn span,
.menu-wrap .hbbtn span::before,
.menu-wrap .hbbtn span::after {
  display: block;
  width: 2rem;
  height: 0.15rem;
  /* background-color: var(--mainblue); */
  background-color: #4078af;
  left: 0;
  border-radius: 1rem;
}

.menu-wrap .hbbtn span::before {
  top: 39%;
  left: 0;
}

.menu-wrap .hbbtn span::after {
  top: 75%;
  left: 0;
}

.hbmn {
  position: fixed;
  top: 0;
  right: 0;
  background-color: #ecececcc;
  padding: 3rem 5rem 0;
  width: 32%;
  height: 100vh;
  clip-path: inset(0 0 0 100%);
  overflow: hidden;
  transition: clip-path .3s linear;
}

.hbmn ul li {
  padding: 1rem;
  margin: 1rem auto;
  width: fit-content;
}

.hbmn ul li a {
  font-size: 1.5rem;
  position: relative;
  display: block;
  /* color: var(--mainblue); */
  color: #555;
}

.nav1 a::after {
  content: 'top';
}

.nav2 a::after {
  content: 'about';
}

.nav3 a::after {
  content: 'banner';
}

.nav4 a::after {
  content: 'website';
}

.nav5 a::after {
  content: 'others';
}

.nav6 a::after {
  content: 'instagram';
}

.nav1 a::after,
.nav2 a::after,
.nav3 a::after,
.nav4 a::after,
.nav5 a::after,
.nav6 a::after {
  font-size: 1.5rem;
  clip-path: inset(0 100% 0 0);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--mainblue);
  transition: clip-path .3s ease;
}

.nav1 a:hover::after,
.nav2 a:hover::after,
.nav3 a:hover::after,
.nav4 a:hover::after,
.nav5 a:hover::after,
.nav6 a:hover::after {
  clip-path: inset(0 0 0 0);
  border-bottom: 1px solid #4078af;
}

.hbmn.open {
  clip-path: inset(0 0 0 0);
}

/* -----------------main */
main {
  width: 90%;
  margin: 0 auto;
  padding: 1px 0 0
}

/* -----------------first view */

#firstview {
  width: 80%;
  margin: 3rem auto 13rem;
}

#firstview img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  border-radius: 7rem;
  filter: sepia(24%);
}

#firstview p {
  text-align: center;
}

#firstview p img {
  width: 70%;
  height: 8rem;
  object-fit: contain;
}


/* -----------------about */
#about h2 {
  text-align: center;
}

#about h2 img {
  width: 30%;
  max-width: 310px;
  padding: 2.1rem;
}

#about p {
  width: 65%;
  margin: 0 auto;
}


/* -----------------section共通 */
section {
  margin: 0 auto 11rem;
  width: 80%;
  padding: 5rem 0 0 0;
}

h3 {
  width: 32%;
  margin: 0 0 3rem;
}

h3>span {
  color: var(--mainblue);
  font-size: .8rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 250px);
  justify-content: center;
  gap: 3.1rem;
  width: 100%;
}

.grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  border-radius: 3rem;
}

.grid figure {
  position: relative;
}

.grid figcaption {
  position: absolute;
  width: 100%;
  aspect-ratio: 1/1;
  top: 0;
  z-index: -1;
  background-color: #2f4565aa;
  border-radius: 3rem;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  padding: 32% 0 0;
  transition: all .3s ease;
  opacity: 0;
}

.grid li:hover figcaption {
  z-index: 3;
  opacity: 1;
}


/* modal */
#modalWrap {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 111;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-color: #555555ee;
  visibility: visible;
  transition: all 0.3s;
}

#modalWrap.hide {
  opacity: 0;
  visibility: hidden;
}

#modalImg {
  width: 35%;
  object-fit: contain;
}

.banner_wrap ol li img,
.others_wrap ul li figure {
  cursor: pointer;
}


/* -----------------banner */
#banner ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

#banner ol li {
  width: 230px;
  max-width: 230px;
  margin: 1rem;
}

#banner ol li img {
  width: 100%;
  aspect-ratio: 3/2.4;
  object-fit: cover;
}

#banner ol li img:hover {
  opacity: .6;
}


/* -----------------website */
#website img {
  object-fit: cover;
}


/* -----------------others */
/* -----------------closing */
#closing h3 {
  width: fit-content;
  text-align: center;
  padding: 2rem;
  margin: 0 auto;
}

#closing p {
  width: 70%;
  margin: 0 auto;
}

/* -----------------footer */
footer {

  padding-top: 8rem;
  /* background: #76a0e233; */
}

.footerlogo {
  display: block;
  width: 21%;
  margin: 0 auto 5rem;
}

.box1 svg {
  display: block;
  width: 21%;
  padding: 0px 0 5em;
  margin: 0 auto;
}

.thank {
  width: 100%;
  fill: none;
  stroke: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.25px;
}

svg.thanksanime .thank {
  stroke-dasharray: 1300;
  stroke-dashoffset: 1300;
  animation: path 3.3s both ease-out;
}

@keyframes path {
  0% {
    stroke-dashoffset: 1300;
    stroke: #ececec;
    /*stroke: var(--mainblue); */
  }

  100% {
    stroke-dashoffset: 0;
    stroke: #ececec;
    /* stroke: var(--mainblue); */
  }
}

footer p {
  width: fit-content;
  margin: 0 auto;
  font-size: 0.9rem;
  text-align: left;
  line-height: 1;
}


small {
  display: block;
  width: 100%;
  text-align: center;
  padding: 5rem 0 1rem;
}

/* ////////////////////////////////////////////////// */

/*1280px以下*/
@media (max-width: 1280px) {
  section {
    width: 100%;
  }
}

/*768px以下*/
@media (max-width: 768px) {
  header {
    padding: 0;
  }

  header h1 {
    min-width: 210px;
  }

  .hbmn {
    width: 100%;
  }

  .nav1 a:hover::after,
  .nav2 a:hover::after,
  .nav3 a:hover::after,
  .nav4 a:hover::after,
  .nav5 a:hover::after,
  .nav6 a:hover::after {
    clip-path: inset(0 100% 0 0);
    clip-path: none;
    border-bottom: none;
  }

  /* -----------------main */
  main {
    width: 100%;
    padding: 105px 0 0
  }

  #firstview {
    width: 95%;
    margin: 3rem auto 8rem;
  }

  #firstview img {
    height: 66vh;
  }

  /* -----------------section共通 */
  section {
    margin: 0 auto 7rem;
  }

  h3 {
    width: 80%;
    margin: 0 auto 3rem;
  }

  .others_wrap .grid {
    grid-template-columns: repeat(auto-fit, 160px);
    gap: 1.5rem;
  }

  #modalImg {
    width: 80%;
  }

  /* -----------------banner */
  #banner ol li img:hover {
    opacity: initial;
  }

  #banner ol li {
    width: 130px;
    margin: 1rem 0;
  }

  /* -----------------about */
  #about h2 img {
    width: 60%;
  }

  #about p {
    width: 90%;
    line-height: 1.6;
  }


  /* -----------------others */
  .grid img {
    border-radius: 0;
  }

  .grid figcaption {
    position: static;
    aspect-ratio: initial;
    background-color: #2f4565aa;
    border-radius: 50px;
    z-index: 0;
    font-size: 0.6rem;
    font-weight: normal;
    padding: 5% 0 6%;
    opacity: 1;
    margin: .5rem 0 1.5rem;
  }

  /* -----------------website 
  (othersより後)*/
  #website a {
    color: var(--mainblue);
    font-weight: bold;
    font-size: 1.5rem;
  }


  #website .grid figcaption {
    background-color: transparent;
    color: var(--mainblue);
    font-size: 1rem;
    padding: 0;
    line-height: 2.1;
  }

  #website .grid figcaption span {
    background-color: #2f4565aa;
    color: var(--bg);
    display: block;
    width: 7rem;
    /* padding: 0.5rem 0; */
    margin: 0 auto;
    border-radius: 24px;
    line-height: 2.3
  }

  /* -----------------footer */
  .footerlogo {
    min-width: 210px;
  }

  .box1 svg {
    min-width: 210px;
  }

  footer p {
    width: 80%;
    margin: 0 auto;
    font-size: 0.8rem;
    text-align: left;
    line-height: 1;
    letter-spacing: .8;
  }

}