/* loading animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color_primary);
  z-index: 1001;
  overflow: hidden;
}
.loading .moon {
  position: absolute;
  top: calc((100vh / 3) / 2);
  left: auto;
  width: 110px;
  height: 110px;
  border-radius: 100%;
  background: url(https://akehara.com/wp/wp-content/uploads/2024/07/moon.webp) no-repeat center / calc(100% - 5px);
  z-index: 1001;
}
.loading .moon svg {
  width: 101px;
  height: 101px;
}

.loading .ster {
  position: absolute;
  top: calc(100vh / 3);
  left: auto;
  margin: 0 0 0 350px;
}
.loading .ster img {
  width: 30px;
  height: 30px;
  opacity: 0;
  animation: star 1s linear 0.5s forwards;
}

#moon_animation svg {
  filter: blur(1px) drop-shadow(0 0 10px var(--color_primary));
}
.mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, #5d6970, #fff) bottom center;
  z-index: 1000;
  overflow: hidden;
}
.mask_img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("https://akehara.com/wp/wp-content/uploads/2024/07/bg_img.webp");
  background-repeat: no-repeat;
  background-size: 100% 300px;
  background-position: bottom 0 left 0;
  animation: bakgrounimg linear 1.5s forwards;
  z-index: 1001;
}

.mainvisual {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: bottom;
  height: 100vh;
  padding: 150px 0 0;
}
.mainvisual .mainvisual_logo {
  width: 100%;
  margin-top: calc(((100vh / 3) - 150px) / 2);
  text-align: center;
}
.mainvisual .mainvisual_logo img {
  width: 30px;
  margin: 0 auto;
}
.mainvisual .mainvisual_text {
  position: absolute;
  bottom: 120px;
  left: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  font-size: 32px;
  text-align: center;
  font-weight: 100;
  color: var(--white);
  transition: 0.3s;
}

.mainvisual .mainvisual_text span {
  display: none;
}
.mainvisual .mainvisual_text.animate span {
  display: inline;
  animation: fadedown 0.5s ease-out forwards;
  opacity: 0;
}
.mainvisual .mainvisual_text span:nth-child(2) {
  animation-delay: 0.05s;
}
.mainvisual .mainvisual_text span:nth-child(3) {
  animation-delay: 0.1s;
}
.mainvisual .mainvisual_text span:nth-child(4) {
  animation-delay: 0.15s;
}
.mainvisual .mainvisual_text span:nth-child(5) {
  animation-delay: 0.2s;
}
.mainvisual .mainvisual_text span:nth-child(6) {
  animation-delay: 0.25s;
}
.mainvisual .mainvisual_text span:nth-child(7) {
  animation-delay: 0.3s;
}
.mainvisual .mainvisual_text span:nth-child(8) {
  animation-delay: 0.35s;
}
.mainvisual .mainvisual_text span:nth-child(9) {
  animation-delay: 0.4s;
}
.mainvisual .mainvisual_text span:nth-child(10) {
  animation-delay: 0.45s;
}
.mainvisual .mainvisual_text span:nth-child(11) {
  animation-delay: 0.5s;
}
.mainvisual .mainvisual_text span:nth-child(12) {
  animation-delay: 0.55s;
}
.mainvisual .mainvisual_text span:nth-child(13) {
  animation-delay: 0.6s;
}
.mainvisual .mainvisual_text span:nth-child(14) {
  animation-delay: 0.65s;
}
.mainvisual .mainvisual_text span:nth-child(15) {
  animation-delay: 0.7s;
}
.mainvisual .mainvisual_text span:nth-child(16) {
  animation-delay: 0.75s;
}
.mainvisual .mainvisual_text span:nth-child(17) {
  animation-delay: 0.8s;
}
.mainvisual .mainvisual_text span:nth-child(18) {
  animation-delay: 0.85s;
}
.mainvisual .mainvisual_text.scrolled {
  color: rgba(var(--color_primary_rgb), 0.3);
  transition: 1s;
}
@media screen and (max-width: 768px) {
  .mainvisual .mainvisual_text {
    font-size: 24px;
  }
}
.scrolldown {
  position: relative;
  display: inline-block;
  justify-content: flex-end;
  width: 100%;
  writing-mode: vertical-rl;
  overflow: hidden;
}
.scrolldown::after {
  content: "";
  position: absolute;
  top: 2.5em;
  left: auto;
  width: 1.5em;
  height: 1.5em;
  background: url(https://akehara.com/wp/wp-content/themes/Wordpress/assets/images/common/star.png) no-repeat center /
    1.5em;
  animation: scrolldown 1s linear normal infinite;
}

/* TOP page */
.home h2 {
  font-size: 2em;
  text-align: center;
}

/* service */

.home #service .transition_fadeup {
  translate: 0 50px;
  transition: all 0.5s;
  opacity: 0;
}
.home #service .transition_fadeup.active {
  translate: 0 0;
  opacity: 1;
}
.home #service .transition_fadeup.active {
  translate: 0 0;
  opacity: 1;
}
.home #service .transition_fadeup.active:nth-child(2) {
  transition-delay: 0.2s;
}
.home #service .transition_fadeup.active:nth-child(3) {
  transition-delay: 0.4s;
}
.home #service .service_item {
  position: relative;
  overflow: hidden;
  margin: 0 0 2em;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.home .service_item .row {
  align-items: center;
}
.home .service_item h3 {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.7em;
  text-align: left;
}
.home .service_item h3::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 2em;
  height: 2em;
  background: url(/wp/wp-content/themes/Wordpress/assets/images/common/star_gold.png) no-repeat center / 1.5em;
  transform: translateY(-50%);
}
.home .service_item:hover {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  transform: scale(101%);
  opacity: 1;
}
.home .service_item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(https://akehara.com/wp/wp-content/themes/Wordpress/assets/images/common/bg_img.png) no-repeat
    border-box center bottom 0 /100% 200px;
  transform: translateY(100%);
  transition: 0.5s;
  opacity: 0;
  z-index: 0;
}
.home .service_item:hover::after {
  transform: translateY(0);
  opacity: 0.5;
}
.home .service_item .service_text {
  position: absolute;
  bottom: 1em;
  right: 1em;
  margin: 0;
  color: var(--color_primary);
  transform: translateX(200%);
  transition: 0.5s;
  opacity: 0.5;
  z-index: 1;
}
.home .service_item:hover .service_text {
  transform: translateX(0);
  opacity: 1;
}
.home .video {
  margin-left: auto;
}
.home .service_img_wrap {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
}
.home .service_img_wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.home .service_img_wrap .service_item_img {
  z-index: 2;
}
.home .service_img_wrap .service_item_img_hv {
  z-index: 0;
}
.home .service_img_wrap:hover .service_item_img {
  opacity: 0;
  transition: 0.5s;
}

/* works */
.home .works {
  position: relative;
  text-align: center;
}
.home .works div[class^="span_"] {
  margin: 0 0 0.5%;
  padding: 0;
}
.home .works div[class^="span_"] a {
  position: relative;
  overflow: hidden;
}
.home .works .transition_fadeup {
  translate: 0 50px;
  transition: all 0.5s;
  opacity: 0;
}
.home .works .transition_fadeup.active {
  translate: 0 0;
  opacity: 1;
}
.home .works .transition_fadeup.active:nth-child(2) {
  transition-delay: 0.2s;
}
.home .works .transition_fadeup.active:nth-child(3) {
  transition-delay: 0.4s;
}
.home .works .transition_fadeup.active:nth-child(4) {
  transition-delay: 0.6s;
}
.home .works .transition_fadeup.active:nth-child(5) {
  transition-delay: 0.8s;
}
.home .works .transition_fadeup.active:nth-child(6) {
  transition-delay: 1s;
}
.home .works .transition_fadeup.active:nth-child(7) {
  transition-delay: 1.2s;
}
.home .works .transition_fadeup.active:nth-child(8) {
  transition-delay: 1.4s;
}
.home .works .transition_fadeup.active:nth-child(9) {
  transition-delay: 1.6s;
}
.home .works .transition_fadeup.active:nth-child(10) {
  transition-delay: 1.8s;
}
.home .works .transition_fadeup.active:nth-child(11) {
  transition-delay: 2s;
}
.home .works .transition_fadeup.active:nth-child(12) {
  transition-delay: 2.2s;
}

.home .works a:hover {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  transform: scale(101%);
  opacity: 1;
}
.home .works a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../assets/images/common/bg_img.png) no-repeat border-box center bottom 0 /100% 200px;
  transform: translateY(100%);
  transition: 0.5s;
  opacity: 0;
  z-index: 0;
}
.home .works a:hover::after {
  transform: translateY(0);
  opacity: 0.5;
}
.home .works .works_text {
  position: absolute;
  bottom: 1em;
  right: 1em;
  margin: 0;
  color: var(--color_primary);
  transform: translateX(200%);
  transition: 0.5s;
  opacity: 0.5;
  z-index: 1;
}
.home .works a:hover .works_text {
  transform: translateX(0);
  opacity: 1;
}
.home .works a:hover .works_img {
  box-shadow: 0px 10px 5px 0px gray;
  opacity: 0.5;
}

/***************** lower page *****************/

.about {
  background: url(../assets/images/lower/photo.png) no-repeat center / cover;
}
@media screen and (max-width: 768px) {
  .about {
    background: url(../assets/images/lower/photo.png) no-repeat bottom right / 150vw auto;
  }
  .about_photo {
    padding: 0 0 50vw;
  }
}
.about_content {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 36px 0 0;
  font-size: 0.9em;
}
.about_content dt,
.about_content dd {
  margin: 0 0 1em;
  padding: 0 0 0.5em;
  border-bottom: 1px solid rgba(var(--color_primary_rgb), 0.3);
}
.about_content dt {
  width: 5em;
}
.about_content dd {
  width: calc(100% - 5em);
}

.works div[class^="span_"] {
  margin: 0 auto;
}
/* モーダル */
.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
}
.modal_content {
  margin: 0 auto;
  padding: 5px;
  background: var(--white);
  text-align: left;
  transform: translateY(10vh);
}
.close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.5em;
  background: var(--color_primary);
  border-radius: 100%;
  font-size: 28px;
  font-weight: bold;
  color: var(--white);
  line-height: 0.5;
  z-index: 1;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.video_wrap {
  width: 100%;
  position: relative;
  margin: 0;
  padding-top: 56.25%;
}
.video_wrap video,
.video_wrap iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0px;
  left: auto;
  margin: 0 auto;
}

/* 2026 0106 サービスページ追加*/
.service_page h2 {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.7em;
  text-align: left;
}
.service_page h2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 2em;
  height: 2em;
  background: url(/wp/wp-content/themes/Wordpress/assets/images/common/star_gold.png) no-repeat center / 1.5em;
  transform: translateY(-50%);
}
.service_page h3 {
  text-align: left;
}
