#toppage .photobox {
  display: flex;
  width: 100%;
  gap: 10px;
}
#toppage .photobox-in {
  width: 50%;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
#toppage .photobox-in img {
  display: block;
  width: 100%;
  height: 500px !important;
  object-fit: cover;
}

#toppage .photobox-in {
  position: relative;
}

#toppage .photobox .service-copy {
  position: absolute;
  bottom: 40px;
  left: 40px;
  width: calc(100% - 80px);
  text-align: left;
  color: #fff;
padding: 20px;
color: #fff;
}
#toppage .photobox .service-copy h2 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 15px;
font-family: "Noto Serif JP", "Yu Mincho", serif;
display: table;
width: auto;
}

#toppage .photobox .service-copy p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
color: #fff;
}
#toppage .photobox .service-button {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 170px;
  padding: 15px 20px;
  background: #fff;
  color: #a88e58;
  border: 1px solid #a88e58;
  box-sizing: border-box;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-family: "Times New Roman", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  z-index: 2;
}
#toppage .photobox .photobox-in::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}
#toppage .photobox .service-copy {
  z-index: 2;
}
#toppage .photobox .service-en {
  display: block;
  font-family: "Times New Roman", serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #b89b66;
  margin-bottom: 10px;
}
#toppage .photobox .service-copy h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #b89b66;
  margin-top: 15px;
}
#toppage .photobox .service-button {
  transition: background 0.3s ease, color 0.3s ease;
}
#toppage .photobox-in a:hover .service-button {
  background: #a88e58;
  color: #fff;
}
#toppage .photobox-in a:hover .service-arrow {
  color: #fff;
}
#toppage .photobox-in a:hover {
  opacity: 1 !important;
}
#toppage .photobox-in a img {
  transition: opacity 0.4s ease;
}

#toppage .photobox-in a:hover img {
  opacity: 0.6;
}
#toppage .photobox .photobox-in::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 2;
  pointer-events: none;
}
#toppage .photobox .photobox-in::before {
  opacity: 0;
transform: translateY(30px);
transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes frameFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#toppage .photobox .photobox-in:hover::before {
  opacity: 1;
  transform: translateY(0);
}
#toppage .photobox .photobox-in img {
  transition: transform 0.8s ease, opacity 0.4s ease;
}
#toppage .photobox .photobox-in:hover img {
  transform: scale(1.05);
}
@media screen and (max-width: 767px) {

  #toppage .photobox {
    flex-direction: column;
  }

  #toppage .photobox-in {
    width: 100%;
    flex: none;
  }
#toppage .photobox-in img {
  height: 380px !important;
  object-fit: cover;
}
#toppage .photobox .service-copy {
  left: 20px;
  bottom: 85px;
  width: calc(100% - 40px);
  padding: 0;
}
#toppage .photobox .service-copy h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
#toppage .photobox .service-copy p {
  font-size: 14px;
  line-height: 1.7;
}
#toppage .photobox .service-button {
  width: 140px;
  padding: 10px 15px;
  font-size: 13px;
}
#toppage .photobox .service-copy h2::after {
  margin-top: 10px;
}
}
@media screen and (min-width: 768px) and (max-width: 1024px) {

  #toppage .photobox {
    flex-direction: column;
  }

  #toppage .photobox-in {
    width: 100%;
    flex: none;
  }

  #toppage .photobox-in img {
    height: 450px !important;
  }

}
