@charset "UTF-8";

html {
  font-size: 100%;
}
body {
  font-family: "Helvetica Neue", "Arial", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
  /* background-color: #F7F4EA; */
  color: #fff;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

li {
  list-style: none;
}

/*
filterのdrop-shadowでまわりをぼやっとさせる
*/

.site-title {
  padding: 0 16px;
  text-align: center;
  position: absolute;
  top: 45%;
  left: 0;
  right: 0;
  filter: drop-shadow(1px 1px 10px #c0c0c0);
  pointer-events: none; /* この要素自体はクリックイベントを通さない */
}

.sec-title {
  padding: 0 16px;
  text-align: center;
  position: absolute;
  color: #fff;
  font-size: 50px;
  top: 35%;
  left: 0;
  right: 0;
  filter: drop-shadow(1px 1px 10px #c0c0c0);
}

/*
display: inline-block;
下線をテキスト幅にあわせる
*/

.item-title {
  font-size: 2.5rem;
  display: inline-block;
  border-bottom: solid 6px #8576e0;
}

.home .item-title {
  margin-bottom: 70px;
}

/*
「background-attachment: fixed;」で背景を固定する
※background-attachment: fixed;とbackground-size: cover;
を同時に使用した場合、iOSでは正しく動作しない
*/

.fixed-bg {
  height: 300px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/*
中身のコンテンツ幅を指定するための共通クラス
*/

.wrapper {
  padding: 90px 16px 150px 16px;
  margin: 0 auto;
  text-align: center;
}

.home .wrapper {
  max-width: 1240px;
}

.gallery .wrapper {
  max-width: 1300px;
}

/*-------------------------------------------
ヘッダー
-------------------------------------------*/
/*
min-height: 100vh;
メインビジュアルを画面の高さにあわせる
background～プロパティでメインビジュアルの表示方法を設定
*/

#header {
  width: 100%;
  /* background-image: url(../img/mainvisual.jpg); */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* padding: 20px 40px; */
  position: relative;
  padding: 20px;
}

.home header {
  min-height: 100vh;
}

.gallery header {
  min-height: auto;
}

/* 背景アニメーション */
#bg {
  /* position: absolute; */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* pointer-events: none; */
  background: linear-gradient(to bottom,
    hsl(180, 80%, 40%),
    hsl(240, 80%, 60%),
    hsl(300, 80%, 40%));
  background-size: 400% 400%;
  animation: bgAnimation 10s ease infinite;
}

@keyframes bgAnimation {
  0% {
    background-position: 50% 0%;
  }
  50% {
    background-position: 50% 100%;
  }
  100% {
    background-position: 50% 0%;
  }
}

/* 追加 */

/* 初期状態：PCではメニュー表示、スマホでは非表示 */
#navi {
  position: relative;
  padding: 55px 100px;
  z-index: 1;
  display: flex;
  justify-content: end;
}

.toggle_btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 30px;
  height: 25px;
  gap: 5px;
}

.toggle_btn span {
  background: #fff;
  height: 3px;
  width: 100%;
  display: block;
  border-radius: 3px;
}

.toggle_btn span:nth-child(1) {
  top: 4px;
}
.toggle_btn span:nth-child(2) {
  top: 14px;
}
.toggle_btn span:nth-child(3) {
  bottom: 4px;
}
.open .toggle_btn span {
  background-color: #fff;
}
.open .toggle_btn span:nth-child(1) {
  -webkit-transform: translateY(10px) rotate(-315deg);
  transform: translateY(10px) rotate(-315deg);
}
.open .toggle_btn span:nth-child(2) {
  opacity: 0;
}
.open .toggle_btn span:nth-child(3) {
  -webkit-transform: translateY(-10px) rotate(315deg);
  transform: translateY(-10px) rotate(315deg);
}

#mask {
  display: none;
  transition: all .5s;
}
.open #mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .8;
  z-index: 10;
  cursor: pointer;
}

/* メディアクエリ：スマホ用 */
@media screen and (max-width: 768px) {
  #navi {
    display: none;
    flex-direction: column;
    background: #121212;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 20px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
  }

  nav li a {
    font-size: 1rem;
  }

  #navi.active {
    display: flex;
  }

  .toggle_btn {
    display: flex;
    right: 20px;
    position: fixed;
    z-index: 1;
  }
}

/* ここまで */

nav ul {
  display: flex;
  justify-content: flex-end;
}

nav li {
  /* margin-left: 30px; */
  margin-left: 50px;
}

nav li a {
  color: #fff;
  font-weight: bold;
  transition: all 0.3s ease;
  filter: drop-shadow(1px 1px 1px #121212);
  font-size: 1.2rem;
}

nav li a:hover {
  color: #8576e0;
}

/* Particles.jsエリア */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* pointer-events: auto; */
}

/*-------------------------------------------
Profile
-------------------------------------------*/

#profile {
  margin-top: 20px;
}

#profile .profile-img {
  background-image: url(../img/profile.jpg);
  position: relative;
}

#profile .profile-content {
  display: flex;
}

#profile .profile-item {
  width: 50%;
  padding: 0 45px;
}

#profile .profile-item:first-child {
  margin-bottom: 30px;
}

#profile .profile-item:first-child {
  border-right: solid 1px #fff;
}

#profile .profile-item dl {
  display: flex;
  flex-wrap: wrap;
}

#profile .profile-item dt {
  width: 100%;
  text-align: justify;
  /* border-bottom: dotted 1px #000; */
  margin-bottom: 25px;
}

#profile .profile-item dd {
  width: 13%;
  text-align: right;
  padding-top: 8px;
}

#profile .profile-item dl.introduction {
  margin-bottom: 55px;
}

#profile .skill {
  display: flex;
  flex-wrap: wrap;
}

#profile .skill img {
  width: 80px;
  margin: 9px;
}

/*-------------------------------------------
gallery
-------------------------------------------*/

#gallery {
  margin-top: 20px;
}

#gallery .gallery-item {
  /* display: flex; */
  flex-wrap: wrap;
}

#gallery .gallery-img {
  background-image: url(../img/gallery.jpg);
  position: relative;
}

#gallery h4 {
  margin-bottom: 30px;
}

#gallery .gallery-subtitle {
  margin-bottom: 50px;
}

/* #gallery .post {
  display: inline-block;
  border: transparent 15px solid;
  vertical-align: top;
  text-align: center;
  width: 19.66%;
  height: auto;
  justify-content: center;
}

#gallery .post img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; 
  aspect-ratio: 1/1;
} */

#gallery p {
  text-align: justify;
  /* margin: 0 30px; */
}

#gallery .banner {
  text-align: justify;
}

#gallery .btn {
  width: 160px;
  height: 50px;
  line-height: 3.5;
  display: block;
  color: #fff;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  margin: 0px auto;
  text-align: center;
}

#gallery .btn span {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

/*
.btn::before 右の赤線
.btn::after 下の赤線
.btn span::before 左の赤線
.btn span::after 上の赤線
*/

#gallery .btn::before,
#gallery .btn::after {
  position: absolute;
  content: "";
  right: 0;
  bottom: 0;
  background: #8576e0;
  transition: all 0.3s ease;
}

#gallery .btn span::before,
#gallery .btn span::after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  background: #8576e0;
  transition: all 0.3s ease;
}

#gallery .btn::before,
#gallery .btn span::after {
  width: 20%;
  height: 2px;
}

/*
ホバー時の縦の動作
右の赤線と左の赤線の高さを100%にする
*/

#gallery .btn:hover::before,
#gallery .btn span:hover::before {
  height: 100%;
}

/*
ホバー時の横の動作
下の赤線と上の赤線の横幅を100%にする
*/

#gallery .btn:hover::after,
#gallery .btn span:hover::after {
  width: 100%;
}

/*-------------------------------------------
追加 gallery
-------------------------------------------*/

/*
グリッドレイアウト
要素の最小サイズは300pxで、画面の幅にあわせて要素の幅が自動で変化する
repeatで全ての要素に対して適用
「gap: 26px;」で行と列の隙間を設定
*/
#gallery .grid {
  display: grid;
  gap: 50px;
  grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
  max-width: 1240px;
  padding: 50px 16px 50px 16px;
  margin: 0px auto 10px auto;
}
#gallery .sub_grid {
  display: grid;
  /* gap: 50px; */
  grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
  max-width: 1000px;
  padding: 50px 16px 50px 16px;
  margin: -50px auto 10px auto;
}
#gallery .grid .item {
  transition: all  0.3s ease;
  box-shadow: 0 0 8px 4px #ccc;
}
#gallery .sub_grid .item {
  transition: all  0.3s ease;
}
#gallery .grid img {
  vertical-align: top;
  aspect-ratio: 1/1;
  object-fit: contain; /* 収まるように縮小、切り取らず表示 */
}
#gallery .sub_grid img {
  vertical-align: top;
  object-fit: contain; /* 収まるように縮小、切り取らず表示 */
  max-height: 600px;
}
#gallery .sub_grid .fadein {
  display: flex;
  justify-content: center;
}
#gallery .grid .item-content {
  padding: 30px;
  box-shadow: 0 0 1px 1px #ccc;
}
#gallery .sub_grid .item-content {
  padding: 30px;
}
#gallery .grid .item-cat {
  font-size: 0.75rem;
  margin-bottom: 20px;
}
#gallery .grid .item-text {
  font-weight: bold;
  margin-bottom: 20px;
  color: #fff;
}
#gallery .grid .item-date {
  font-size: 0.75rem;
  text-align: left;
}

/*-------------------------------------------
追加 breadcrumb
-------------------------------------------*/

#breadcrumb {
  position: relative;
  z-index: 0;
  max-width: 1240px;
  padding: 0px 16px 0px 16px;
  margin: 0px auto 10px auto;
}
#breadcrumb ul {
  margin: 0;
  padding: 0;
}
#breadcrumb li {
  display: inline-block;
  height: 25px;
  font-size: 15px;
  font-family: 'apercu-regular-pro';
  font-weight: normal;
  font-weight: normal;
  letter-spacing: 0.075em;
  line-height: 25px;
  margin: 0;
  padding: 0;
  font-feature-settings: "palt" 1;
  word-break: break-all;
  white-space: nowrap;
}
#breadcrumb li a {
  display: inline-block;
  position: relative;
  z-index: 1;
  height: 25px;
  font-family: 'apercu-light-pro';
  line-height: 25px;
  color: #fff;
}
#breadcrumb li a:hover::after {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 0;
  content: "";
  border-bottom: #fafafa 1px solid;
  z-index: 0;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
#breadcrumb li::after {
  height: 25px;
  font-size: 10px;
  font-family: 'themify';
  /* content: "\e649"; */
  content: "＞";
  font-weight: normal;
  line-height: 25px;
  margin: 0 15px;
}
#breadcrumb li:last-child::after {
  content: none;
}

/*-------------------------------------------
Contact
-------------------------------------------*/

#contact {
  color: #fff;
  /* background-color: #121212; */
  padding: 50px 0;
  margin-top: 20px;
}

#contact .contact-img {
  background-image: url(../img/contact.jpg);
  position: relative;
}

#contact .sec-title {
  color: #fff;
}
#contact .contact-content {
  max-width: 1240px;
  /* padding: 0 16px; */
  margin: 0 auto;
  display: flex;
  /* justify-content: space-between; */
  justify-content: center;
}
/* #contact .contact-info p {
  margin-bottom: 30px;
} */
/* #contact .contact-info,
#contact .contact-form {
  width: 45%;
} */

#contact .contact-form {
  width: 70%;
}

#contact .contact-form dl dt {
  text-align: left;
}

#contact .contact-form input,
#contact .contact-form textarea {
  width: 100%;
  background-color: #fff;
  padding: 10px;
  margin-bottom: 20px;
}
#contact .contact-form .button input {
  width: 200px;
  color: #fff;
  background-color: #121212;
  border: solid 1px #fff;
  padding: 12px 0;
  margin-bottom: 0;
}
#contact .contact-form .button input:hover {
  color: #202020;
  background-color: #fff;
}

/*-------------------------------------------
フッター
-------------------------------------------*/

#footer {
  font-size: 0.75rem;
  padding: 10px 0;
  text-align: center;
}

/*-------------------------------------------
SP
-------------------------------------------*/

@media screen and (max-width: 767px) {
  .site-title {
    top: 42%;
  }
  .sec-title {
    font-size: 2rem;
    top: 21%;
  }
  .item-title {
    font-size: 1.25rem;
    margin-bottom: 25px;
  }
  .fixed-bg {
    height: 94px;
    /* スマホ時は背景をスクロールするように変更 */
    background-attachment: scroll;
  }
  .wrapper {
    padding: 30px 16px 60px 16px;
  }

  /*-------------------------------------------
  Profile
  -------------------------------------------*/

  #profile {
    margin-top: 10px;
  }

  #profile .profile-content {
    flex-direction: column;
  }

  #profile .profile-item {
    width: 100%;
    padding: 0;
  }
  #profile .profile-item:first-child {
    border-right: none;
  }
  #profile .profile-item dl.introduction {
    margin-bottom: 10px;
  }

  /*-------------------------------------------
  gallery
  -------------------------------------------*/

  #gallery .banner {
    display: block;
  }

  #gallery .banner .banner-item {
    width: 100%;
  }

  #gallery .post {
    width: 49%;
    border-width: 20px 15px;
  }

  /* #gallery ul {
    flex-direction: column;
  }
  #gallery li {
    width: 100%;
  } */

  /*-------------------------------------------
  Contact
  -------------------------------------------*/
  #contact {
    padding: 80px 0;
  }
  #contact .contact-content {
    flex-direction: column;
  }
  /* #contact .contact-info, */
  #contact .contact-form {
    width: 100%;
  }
  #contact .contact-form .button input {
    width: 100%;
  }
}