@charset "utf-8";

/* ----------------------------------------
	front-page
---------------------------------------- */

/* main visual */
.main-visual-wrapper {
  height: 100vh;
  position: relative;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 3s ease-in-out;
}

.slideshow img.active {
  opacity: 1;
}

p.copylight {
  color: #fff;
  font-family: "ZCOOL XiaoWei", sans-serif;
  writing-mode: vertical-rl;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  right: 1rem;
}

.main-visual-content {
  position: absolute;
  top: 35%;
  left: 20%;
}

/* 見出し gradation */
.main-visual-content p {
  background: linear-gradient(135deg, #e1f3e2 10%, #39b54a 100%);
  background-size: 300% 300%;
  animation: gradientMove 8s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.7;
  margin-bottom: 1rem;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  15% {
    background-position: 30% 40%;
  }
  30% {
    background-position: 70% 60%;
  }
  45% {
    background-position: 20% 20%;
  }
  60% {
    background-position: 90% 80%;
  }
  75% {
    background-position: 10% 30%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* h1 */
.main-visual-content h1 {
  visibility: hidden;
  color: #fff;
  font-size: 1.1rem;
}

/* h1 animation */
.fade-in-char span {
  opacity: 0;
  display: inline-block;
  animation-name: charFade;
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
  animation-timing-function: ease;
  margin-right: 0.08rem;
}

@keyframes charFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.h1-br {
  display: none;
}

/* scroll bar */
.scroll {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  color: #fff;
  font-family: "ZCOOL XiaoWei", sans-serif;
  letter-spacing: 0.12em;
}

.scroll::before {
  position: absolute;
  width: 1px;
  background-color: #fff;
  content: "";
  height: 100px;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  51% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

/* main visual animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* scroll / header 遅延表示 */
.fade-in-delayed {
  opacity: 0;
  transition: opacity 1s ease;
}
.fade-in-delayed.show {
  opacity: 1;
}

/* 画面幅1180px以下：タブレット対応 */
@media screen and (max-width: 1180px) {
  .main-visual-content {
    top: 30%;
    left: 10%;
  }

  .scroll {
    bottom: 13%;
  }

  p.copylight {
    right: 0.5rem;
    font-size: 0.8rem;
  }
}

/* 画面幅767px以下：スマホ対応 */
@media screen and (max-width: 767px) {
  .main-visual-content {
    top: 25%;
    left: 5%;
    right: 5%;
  }

  .main-visual-content p {
    font-size: 2rem;
    margin-left: 1.5rem;
    text-align: center;
  }

  /* h1 */
  .main-visual-content h1 {
    font-size: 1rem;
    text-align: center;
  }

  .scroll {
      font-size: 0.8rem;
  }

  p.copylight {
    top: auto;
    bottom: -3rem;
  }
}

/* 画面幅475px以下：スマホ対応 */
@media screen and (max-width: 475px) {
  .main-visual-content p {
    font-size: 1.8rem;
  }

  /* h1 */
  .main-visual-content h1 {
    font-size: 0.9rem;
    line-height: 2;
  }

  p.copylight {
    font-size: 0.75rem;
  }
}

/* about NAKAKIN */
#top-about {
  display: flex;
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
}

.top-about-left {
  width: 60%;
  padding: 5rem 10rem;
}

.top-about-right {
  position: relative;
  width: 40%;
  z-index: -1;
}

#top-about h2 {
  margin-bottom: 4rem;
}

#top-about h2::before {
  content: "about us";
  font-size: 15rem;
  right: auto;
  left: -22%;
  top: -680%;
}

.top-about-left-ttl {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.top-about-left-text {
  margin-bottom: 4rem;
}

.top-about-left-content-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.top-about-left-content-bottom-right {
  flex: 1;
}

.top-about-right {
  position: relative;
}

.top-about-img-1 {
  text-align: right;
}

.top-about-img-2 {
  position: absolute;
  bottom: -100px;
  left: -50px;
}

/* 画面幅1180px以下：タブレット対応 */
@media screen and (max-width: 1180px) {
  /* 見出し gradation */
  /* .main-visual-content p {
    background: linear-gradient(135deg, #e1f3e2 10%, #39b54a 100%);
    background-size: 300% 300%;
    animation: gradientMove 8s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.7;
    margin-bottom: 1rem;
  } */

  /* h1 */
  /* .main-visual-content h1 {
    visibility: hidden;
    color: #fff;
    font-size: 1.1rem;
  } */

  #top-about {
    padding: 8rem 6%;
    display: block;
  }

  .top-about-left {
    padding: 5rem 8rem;
  }

  #top-about h2::before {
    font-size: 11rem;
    left: -10%;
    top: -500%;
  }

  .top-about-left {
    width: 100%;
    padding: 3rem 1rem;
  }

  .top-about-right {
    width: 60%;
    margin: 0 auto;
  }

  .top-about-img-2 {
    width: 50%;
  }

  .top-about-img-2 {
    width: 50%;
    bottom: -2rem;
    left: -1rem;
  }
}

/* 画面幅767px以下：スマホ対応 */
@media screen and (max-width: 767px) {
  #top-about {
    padding: 4rem 6%;
    display: block;
    }

  .top-about-left-ttl {
    font-size: 1.1rem;
  }

  #top-about h2::before {
    font-size: 8rem;
    right: auto;
    left: -12%;
    top: -350%;
  }

  .top-about-left-text {
    margin-bottom: 2rem;
  }

  .btn-circle-wrapper {
    text-align: center;
  }

  .btn-circle {
    margin: 0 auto 2rem 0;
  }
}

/* 画面幅575px以下：スマホ対応 */
@media screen and (max-width:575px) {
  #top-about {
    padding: 4rem 1rem;
    display: block;
    }

  #top-about h2::before {
    font-size: 7rem;
    top: -300%;
    left: -8%;
  }

  .top-about-left-content-bottom-right p:last-child {
    font-size: 0.9rem;
  }
}

/* 画面幅375px以下：スマホ対応 */
@media screen and (max-width:375px) {
  #top-about h2::before {
    font-size: 6rem;
    top: -275%;
    left: -15%;
  }
}

/* business */
#top-service {
  margin-bottom: 10rem;
  position: relative;
  overflow: hidden;
}

#top-service::before {
  content: "";
  width: 100%;
  height: 88%;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -2;
  background-color: #f2f2f2;
}

.top-service-top {
  display: flex;
  align-items: center;
  margin-bottom: 5rem;
}

.top-about-img-3 {
  width: 30%;
}

.top-service-top-text {
  width: 70%;
  padding: 3rem 18rem;
}

#top-service h2 {
  margin-bottom: 10rem;
}

#top-service h2::before {
  content: "business";
  font-size: 15rem;
  right: auto;
  left: -40%;
  top: -685%;
}

.top-service-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto 8rem auto;
}

.top-service-content figure {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.top-service-content figure img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.top-service-content figure::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.top-service-content figure:hover::before {
  background-color: rgba(0, 0, 0, 0.4);
}

.top-service-content a figcaption,
.top-service-content a i {
  z-index: 3;
  position: relative;
}

.top-service-content a {
  display: block;
  position: relative;
}

.number {
  position: absolute;
  top: 2rem;
  left: 2rem;
  color: #39b54a;
  font-family: "ZCOOL XiaoWei", sans-serif;
  font-size: 3rem;
  z-index: 2;
}

.top-service-content a figcaption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

.top-service-content a figcaption h3 {
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.top-service-content a figcaption p {
  color: #fff;
}

.top-service-content a i {
  position: absolute;
  top: 2rem;
  right: 2rem;
}

.top-service-content figure:hover i.fa-arrow-right {
  color: #fff;
  border: double 4px transparent;
  background-color: #39b54a;
  transform: rotateY(360deg);
}

/* 画面幅1180px以下：タブレット対応 */
@media screen and (max-width: 1400px) {
  .top-service-top-text {
    padding: 3rem 10rem;
  }
}


/* 画面幅1180px以下：タブレット対応 */
@media screen and (max-width: 1180px) {
  #top-service h2 {
    margin-bottom: 4rem;
  }

  #top-service h2::before {
    font-size: 11rem;
    left: -9%;
    top: -350%;
  }

  #top-service::before {
    height: 87%;
  }

  .top-service-top {
    align-items: end;
  }

  .top-service-top-text {
    padding: 3rem 6% 0 6%;
  }

  .top-service-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
    max-width: 1200px;
    margin: 0 6% 8rem 6%;
  }
}

/* 画面幅767px以下：スマホ対応 */
@media screen and (max-width: 1024px) {
  .top-service-content {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 6% 8rem 6%;
  }
}

/* 画面幅767px以下：スマホ対応 */
@media screen and (max-width: 767px) {
  #top-service h2::before {
    font-size: 8rem;
    left: -9%;
    top: -350%;
  }

  .top-service-top {
    display: block;
  }

  .top-about-img-3 {
    display: none;
  }

  #top-service::before {
    height: 93%;
  }

  .top-service-top-text {
    width: 100%;
  }

  .top-service-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 0 6% 4rem 6%;
  }

  .number {
    top: 1rem;
    left: 1rem;
    font-size: 2rem;
  }

  .top-service-content a i {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .top-service-content a figcaption h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .top-service-content a figcaption p {
    font-size: 0.9rem;
  }

  .top-service-content figure:before {
  background-color: rgba(0, 0, 0, 0.4);
  }
}

/* 画面幅575px以下：スマホ対応 */
@media screen and (max-width: 575px) {
  #top-service h2::before {
    font-size: 7rem;
    left: -9%;
    top: -300%;
  }

  #top-service::before {
    height: 93%;
  }

  .top-service-top-text {
    padding: 3rem 6% 0 6%;
  }


  .top-service-content {
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
    margin: 0 15% 4rem 15%;
  }

  .number {
    top: 2rem;
    left: 2rem;
    font-size: 3rem;
  }

  .top-service-content a i {
    top: 2rem;
    right: 2rem;
  }

  .top-service-content a figcaption h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .top-service-content a figcaption p {
    font-size: 1rem;
  }

}

/* 画面幅375px以下：スマホ対応 */
@media screen and (max-width: 375px) {
  #top-service h2::before {
    font-size: 6rem;
    left: -9%;
    top: -250%;
  }

  #top-service::before {
    height: 96%;
  }

  .number {
    top: 1rem;
    left: 1rem;
    font-size: 2rem;
  }

  .top-service-content a i {
    top: 1rem;
    right: 1rem;
  }

  .top-service-content a figcaption h3 {
    font-size: 1.1rem;
  }

  .top-service-content a figcaption p {
    font-size: 0.9rem;
  }
}

/* info */
#top-info {
  margin: 8rem 15%;
  display: flex;
}

.top-info-left {
  width: 30%;
}

.top-info-right {
  width: 70%;
}

#top-info h2::before {
  content: "info";
  font-size: 15rem;
  top: -700%;
  left: -35%;
}

#top-info a.btn-circle {
  font-family: "Noto Serif JP", serif;
  margin-top: 4rem;
}

.top-info-content {
  border-bottom: solid 1px #9ca29d;
  padding-bottom: 1rem;
}

.top-info-content a {
  display: flex;
  justify-content: space-between;
}

.top-info-content:not(:last-child) {
  margin-bottom: 2rem;
}

.top-info-box {
  flex: 1;
}

.info-detail {
  display: flex;
  gap: 1rem;
}

.info-detail p {
  font-size: 0.9rem;
}

.info-date {
  color: #9ca29d;
}

.category {
  background-color: #e1f3e2;
  border-radius: 20px;
  padding: 0 1rem;
}

.top-info-content:hover .info-ttl {
  color: #39b54a;
}

.top-info-content:hover i.fa-arrow-right {
  color: #fff;
  border: double 4px transparent;
  background-color: #39b54a;
  transform: rotateY(360deg);
}

/* 画面幅1180px以下：タブレット対応 */
@media screen and (max-width: 1180px) {
  #top-info {
    margin: 8rem 6%;
  }

  #top-info h2::before {
    font-size: 11rem;
    left: -25%;
    top: -500%;
  }
}

/* 画面幅767px以下：スマホ対応 */
@media screen and (max-width: 767px) {
  #top-info {
    margin: 16rem 6% 4rem 6%;
    display: block;
    position: relative;
  }

  .top-info-right {
    width: 100%;
  }

  #top-info h2::before {
    font-size: 8rem;
    left: -25%;
    top: -350%;
  }

  .top-info-left h2 {
    margin-bottom: 4rem;
  }

  .top-info-left a {
    position: absolute;
    top: -25%;
    right: 0;
  }
}

/* 画面幅575px以下：スマホ対応 */
@media screen and (max-width: 575px) {
  #top-info {
    margin: 4rem 1rem;
  }

  #top-info h2::before {
    font-size: 7rem;
    left: -15%;
    top: -300%;
  }
}

/* 画面幅375px以下：スマホ対応 */
@media screen and (max-width: 375px) {
  #top-info h2::before {
    font-size: 6rem;
    left: -25%;
    top: -350%;
  }

  .top-info-left a {
    top: -15%;
  }
}

/* SDGs */
.top-sdgs-wrapper {
  background-color: #f2f2f2;
  position: relative;
  z-index: -1;
}

#top-sdgs {
  display: flex;
  align-items: center;
  gap: 5rem;
  padding: 8rem 15%;
}

#top-sdgs h2 {
  margin-bottom: 4rem;
}

#top-sdgs h2::before {
  content: "SDGs";
  font-size: 15rem;
  top: -700%;
  left: -25%;
}

/* 画面幅1180px以下：タブレット対応 */
@media screen and (max-width: 1180px) {
  #top-sdgs {
    padding: 8rem 6%;
  }

  #top-sdgs h2::before {
    font-size: 11rem;
    left: -10%;
    top: -500%;
  }
}

/* 画面幅767px以下：スマホ対応 */
@media screen and (max-width: 767px) {
  #top-sdgs {
    padding: 4rem 6%;
  }

  #top-sdgs h2::before {
    font-size: 8rem;
    left: -10%;
    top: -350%;
  }

  #top-sdgs {
    display: block;
  }

  .top-sdgs-left-text {
    margin-bottom: 2rem;
  }
}

/* 画面幅575px以下：スマホ対応 */
@media screen and (max-width: 575px) {
  #top-sdgs {
    padding: 4rem 1rem;
  }

  #top-sdgs h2::before {
    font-size: 7rem;
    left: -5%;
    top: -300%;
  }
}

/* 画面幅375px以下：スマホ対応 */
@media screen and (max-width: 375px) {
  #top-sdgs h2::before {
    font-size: 6rem;
    left: -5%;
    top: -350%;
  }
}
