@charset "utf-8";
/* common css */
body {
  background-color: #f2f2f2;
  color: #020202;
  font-family: 'Helvetica Neue','Hiradino Go',sans-serif;
  font-size: 1rem;
  word-break: break-all;
  scrollbar-width: none;
}
.snap::-webkit-scrollbar,
.slide::-webkit-scrollbar {
  display: none; 
}
/* gnav */
.gnav {
  position: sticky;
  height: 9rem;
  top: 0;
  background-color: #f2f2f2;
  z-index: 100;
}
.inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 6rem;
  margin: 0 2rem;
}
.inner li {
  display: inline-block;
  width: calc(5 / 100);
}
.inner li a {
  font-family: 'Impact',sans-serif;
  font-size: 2rem;
  line-height: 1.2;
  display: inline-block;
  cursor: pointer;
  width: 100%;
  text-align: start;
}
.inner a:hover {
  color: #d63403;
  transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}
input#toggle {
  display: none;
}

/* main */
main {
  display: block;
  position: relative;
  margin-bottom: 6rem;
}
  /* 文字落ち */
  main::after {
    content: "";
    background: url(../img/sign.png)no-repeat, center/cover;
    position: absolute;
    bottom: 4rem;
    left: -10px;
    height: 300px;
    width: 100%;
    transform: rotate(-4deg);
    margin: 0;
    background-size: 100%;
    transition: all 0.5s linear;
  }
  @media (min-width: 900px) {
      main::after {
        height: 500px;
        transform: rotate(-6deg);
        bottom: 30%;
    }
  }
  @media (min-width: 431px) {
    main::after {
      top: 30%;
    }
  }
  @media (max-width: 430px) {
    main::after {
      top: 30%;
      left: 0; right: 0;
      max-width: 200px;
      margin: 0 auto;
      transform: unset;
    }
  }
  .slide  {
    /* position: relative; */
    display: flex;
    overflow: hidden;
    width: 60%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }
  .slide img {
    object-fit: cover;
    display: inline-block;
    height: 100%;
  }
/* section */
section {
  margin: 0 auto;
}
main, section {
  padding-top: 10rem;
}
section p {
  margin-bottom: 1rem;
  padding-top: 1rem;
}
section p span {
  font-size: 1.2rem;
  font-weight: bold;
}
  /* スナップ */
  .snap {
    overflow: auto;
    height: 100vh;
    scroll-snap-type: mandatory;
  }
  .snap section {
    width: 100%;
    scroll-snap-align: start;
  }
/* h2 */
h2 {
  font-size: 2rem;
  font-weight: lighter;
  font-style: italic;
  line-height: 0.7;
  margin-bottom: 1rem;
}
h2::after {
  content: "";
  border-top: #020202 1px solid;
  display: block;
  width: 100dvw;
}
/* content */
.content {
  width: 60dvw;
  margin: 0 auto;
}

/* about */
#about .content {
  display: flex;
  justify-content: space-between;
}
.me {
  flex-basis: 40%;
}
.me img {
  width: 100%;
}
.aboutme {
  flex-basis: 56%;
}

/* overslide */
  ul.overslide, ul.modalgallery { 
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content:space-between;
    list-style: none;
  }
  .overslide li{
    position: relative;
    width: 46%;
    aspect-ratio: 1 /1;
    overflow: hidden;
    border: #020202 0.5px solid;
    margin-block-end: 2rem;
    display:flex;
  }
  .overslide img{
    height: 100%;
    aspect-ratio: 1 /1;
    width: fit-content;
    object-fit: cover;
    object-position: center center;
    transition: all 0.3s;
  }
  .overslide div{
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    opacity: 0;
    left: 0;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #FFF;
    padding: 2rem;
    transition: all .5s ease-in-out;
  }
  .overslide div a {
    flex-basis: 85%;
    font-weight: 500;
    border: #f2f2f2 1px solid;
    color: #020202;
    background-color: #f2f2f2;
    padding: 0.5rem;
    display: block;
    cursor: pointer;
    word-break: normal;
    margin: 1rem;
  }
  .overslide li:hover div{
    background: rgba(0,0,0,0.5);
    opacity: 1;
  }
  .overslide li:hover img{
    transform: scale(110%);
  }
/* form */
form {
  min-height: 80dvh;
}
  label {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: bolder;
  }
  input[type="text" i] ,
  input[type="mail" i],textarea{
    background-color: #fff;
    min-width: 60%;
    max-width: 100%;
    line-height: 1.25rem;
    padding: 0.25rem ;
    border-bottom: #020202 1px solid;
    margin-bottom: 1.5rem;
  }
  input[type="submit" i] {
    display: block;
    font-size: 1.05rem;
    font-weight: bolder;
    padding: 0.5rem 2rem;
    border: #020202 1px solid;
    cursor: pointer;
  }
  input[type="submit" i]:hover {
    background-color: #020202;
    color: #f2f2f2;
  }
/* modal */
  *:popover-open {
    position: relative;
    padding: 1rem;
    border: 1px solid #ccc;
    text-align: center;
    min-width: 300px;
  }
  *::backdrop {
    background-color: rgba(0, 0, 0, 0.3);
  }
  .modalgallery {
    display: flex;
    list-style: none;
  }
  ul.modalgallery li {
    flex-basis: 46%;
    margin-block-end: 2rem;
    align-items: center;
    justify-content: center;
  }
  ul.modalgallery img {
    max-width: 100%;
    height:auto;
    display: inline-block;
  }

  button {
    cursor: pointer;
    width: 100%;
    max-height: auto;
    overflow: hidden;
    background: transparent;
  }
  .open-button {
    text-align: center;
    border: #020202 0.5px solid;
    font-weight: bold;
    aspect-ratio: 1 / 1;
  }
  .open-button img {
    height: 100%;
  }
  .close-button {
    background: white;
    position: absolute;
    right: 0;
    top: 0;
  }
  .open-button img:hover {
    mix-blend-mode: darken;
  }  
  

/* footer */
footer {
  position: sticky;
  bottom: 0;
  text-align: center;
  font-weight: bold;
  padding: 2rem 0;
  background-color: #f2f2f2;
}
/* ipad */
@media (min-width: 768px) {
  
}
/* スマホ用 */
@media (max-width: 767px) {
  /* ハンバーガー */
    .toggle {
      position: absolute;
      top: 1.75rem;
      right: 1rem;
      width: 3rem;
      height: 3rem;
      z-index: 50;
    }
    .toggle div {
      position: relative;
      width: 2.5rem;
      height: 6px;
      margin-top: 8px;
      border-radius: 6px;
      background-color: #020202;
      transition: all 0.3s ease-in-out;
    }
    .gnav {
      position: static;
      height: 0;
    }
    label[for]{
      position: fixed;
    }
    /* インナーナビ */
    .nav {
      position: fixed;
      display: inline-block;
      width: 50%;
      background-color: #f2f2f2;
      transition:all 0.4s ease-in-out;
      z-index: 30;
      height: 100%;
      top: 0; right: 0; bottom: 0;
      left: -100%;
      overflow: hidden;
    }
    .inner {
      padding-top: 0;
      margin: 2rem 0 0 2rem;
    }
    .inner li {
      flex-basis: 100%;
      height: 4rem;
      align-content: center;
    }
    .inner li a {
      display: inline-block;
      height: 100%;
      padding-left: 1rem;
      line-height: 4rem;
      box-shadow: inset 0 0 0 0 #d63403;
      color: #020202;
      transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
    }
    .inner a:hover {
      color: #f2f2f2;
      box-shadow: inset 200px 0 0 0 #d63403;;
    }
    /* アニメーション */
    #toggle:checked + .toggle .bar1 {
      transform: rotate(-45deg);
      margin-top: 20px;
    }
    #toggle:checked + .toggle .bar2 {
      opacity: 0;
      transform: translateX(200%), rotate(45deg);
    }
    #toggle:checked + .toggle .bar3 {
      transform: rotate(45deg);
      margin-top: -20px;
    }
    #toggle:checked ~ .nav {
      left: 0;
    }
    /* セクション */
    section {
      padding-top: 6rem;
    }
    .overslide li{
      width: 100%;
    }
    ul.modalgallery li {
      flex-basis: 100%;
    }
    #about .content {
      display: block;
    }
    .me {
      width: 80%;
      margin: 0 auto;
    }
}
