@charset "utf-8";

main {
  background-image: url(../img/mainback.png);
  background-size: cover;
}

.title:hover {
  opacity: 0.3;
}

.title a:hover {
  cursor: url(../img/icon.png), auto;
}

.first-view {
  height: calc(100vh - 110px);
  margin: 0 auto;
  background-image: url(../img/white.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 10%;
}

.first-view h2 {
  font-family: "Zen Old Mincho", serif;
  color: #3f3131;
  padding-left: 10%;
  padding-right: 15%;
  white-space: nowrap;
}

.aaa {
  display: flex;
  padding-left: 10%;
  padding-right: 10%;
}

.photo {
  position: relative;
  display: block;
  width: 23%;
  line-height: 0;
  background: white;
  padding: 21px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  -webkit-transform: rotate(5deg);
  -moz-transform: rotate(5deg);
  transform: rotate(5deg);
  position: relative;
  top: -8px;

}

.photo:nth-of-type(1) {
  position: relative;
  display: block;
  width: 23%;
  line-height: 0;
  background: white;
  padding: 21px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  -webkit-transform: rotate(-10deg);
  -moz-transform: rotate(-10deg);
  transform: rotate(-10deg);
  position: relative;
  top: -5px;
}

.caption {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 13px;
  color: rgb(63, 49, 49);
  font-family: Libre Baskerville;
  min-width: 0;
  overflow-wrap: break-word
}

.caption p {
  white-space: nowrap;
  font-size: 1vw;
}

.img5 {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo:hover {
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  transform: scale(1.1);
  z-index: 2;
}

.text {
  font-family: "Zen Old Mincho", serif;
  font-weight: bold;
  text-align: center;
  padding: 180px 0 180px;
  line-height: 80px;
  color: rgb(63, 49, 49);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 3s ease, transform 3s ease;
}

.text.visible {
  opacity: 1;
  transform: translateY(0);
}

.a {
  display: flex;
  overflow: hidden;
  opacity: 1;
}

.a span {
  display: block;
  letter-spacing: .06em;
  margin: 0;
  opacity: 0;
  animation: textanimation 1s forwards;
}

.a.-visible span {
  transform: translate(0, 0);
}

.a span:nth-child(1) {
  animation-delay: 0.2s;
}

.a span:nth-child(2) {
  animation-delay: 0.4s;
}

.a span:nth-child(3) {
  animation-delay: 0.6s;
}

.a span:nth-child(4) {
  animation-delay: 0.8s;
}

.a span:nth-child(5) {
  animation-delay: 1s;
}

.a span:nth-child(6) {
  animation-delay: 1.2s;
}

.a span:nth-child(7) {
  animation-delay: 1.4s;
}

.a span:nth-child(8) {
  animation-delay: 1.6s;
}

.a span:nth-child(9) {
  animation-delay: 1.8s;
}

.a span:nth-child(10) {
  animation-delay: 2s;
}

.a span:nth-child(11) {
  animation-delay: 2.2s;
}

.a span:nth-child(12) {
  animation-delay: 2.4s;
}

@keyframes textanimation {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

h3 {
  font-family: Libre Baskerville;
  padding-left: 150px;
  padding-bottom: 50px;
  font-size: 24px;
}

.new {
  display: flex;
  padding: 30px 180px 180px;
  gap: 50px;
}

.frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.5s;
  transition-duration: 0.5s;
}

.frame img:hover,
.frame img:focus,
.frame img:active {
  -webkit-transform: scale(1.02);
  transform: scale(1.02);
  -webkit-transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
  transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
}

.frame {
  position: relative;
  width: 80%;
  display: block;
  margin-inline: auto;
  line-height: 0;
  background-color: #fff;
  padding: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  vertical-align: middle;

  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.5s;
  transition-duration: 0.5s;
}

.frame:hover,
.frame:focus,
.frame:active {
  -webkit-transform: scale(1.02);
  transform: scale(1.02);
  -webkit-transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
  transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
}

.frame::before,
.frame::after {
  content: '';
  position: absolute;
  transform: rotate(-35deg);
  width: 51px;
  height: 23px;
  background-color: #fff;
  z-index: 1;
}

.frame::before {
  top: 12px;
  left: 2px;
  border-bottom: solid 1px #a9a9a9;
}

.frame::after {
  bottom: 12px;
  right: 2px;
  border-top: solid 1px #a9a9a9;
}

.pagetop {
  position: fixed;

  bottom: 25px;
  right: 20px;
  display: inline-block;
  /* 画像のサイズに合わせる */
}

.pagetop img {
  width: 45px;
  display: block;
  /* 画像の下に余白ができないようにする */
}

.top-text {
  position: absolute;
  /* 親要素からの絶対位置で配置する */
  left: 50%;
  /* 親要素の幅の中央に配置 */
  top: -10%;
  transform: translate(-50%, -50%);
  /* 文字自体の中央に配置し直す */
  text-align: center;
  /* 文字を中央揃えにする */
  font-family: "Zen Old Mincho", serif;
  /* padding-top: 11px; */
  font-size: 11px;
}

@media screen and (max-width: 960px) {

  .first-view {
    height: calc(45vh - 90px);
  }

  .first-view h2 {
    font-size: 18px;
  }

  .photo,
  .photo:nth-of-type(1) {
    padding: 11px;
  }

}