/***** -- Layout -- *****/
#home .l-header {
  transform: translateY(calc(-1 * var(--header-height)));
  transition: transform .5s ease;
}
body.is-loaded #home .l-header {
  transform: translateY(0);
}
#home .l-main {
  min-height: 100svh !important;
  margin-top: 0 !important;
}


/***** -- Project -- *****/
/* - svg - */
.p-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.p-svg svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: .2;
}
.p-svg path {
  fill: none;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.p-svg .is-show path {
  animation: anim-svg-draw 1.5s forwards;
}
@media screen and (max-width: 960px) {
  .p-svg path {
    stroke-width: 4px;
  }
}
@media screen and (max-width: 640px) {
  .p-svg path {
    stroke-width: 6px;
  }
}

/* - background - */
#background {
  position: fixed;
  width: 100%;
  height: 100vh;
  background-attachment: fixed;
  overflow: hidden;
}
#background::after {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgb(255 255 255 / 90%); */
  background-color: rgb(250 250 250 / 90%);
  transition: all 1s ease;
  content: '';
}
#background video {
  min-width: 100%;
  min-height: 100%;
}

/* - hero - */
#hero {
  width: 100%;
  height: 100svh;
  padding: 0;
  background-color: #fff;
  overflow: hidden;
  z-index: 0;
  transition: all 1s ease;
}
#hero .p-container {
  position: relative;
  width: 100%;
  height: 100svh;
}
#hero .p-title {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90%;
  text-align: right;
  transform: translate(-50%, 50%);
  opacity: 0;
  transition: transform .5s ease, opacity .5s ease;
  z-index: 1;
}
#hero .p-title h1 {
  font-size: calc(40 * var(--base-vw-coef));
  letter-spacing: .2em;
}
#hero .p-slogan {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 95%;
  transform: translate(-50%, -50%);
  transition: transform .5s ease;
  z-index: 1;
}
#hero .p-slogan svg {
  width: 100%;
}
#hero.is-start .m-svg-mask > * {
  animation: anim-svg-draw 0.1s forwards;
}
#hero.is-end {
  background-color: rgb(255 255 255 / 0%);
}
#hero.is-end .p-title {
  transform: translate(-50%, 125%);
  opacity: 1;
}
#hero.is-end .p-slogan {
  transform: translate(-50%, -65%);
}
/* svg */
#svg-slogan-text--pc {
  mask: url('#svg-slogan-mask--pc');
}
#svg-slogan-text--sp {
  mask: url('#svg-slogan-mask--sp');
}
#hero.is-end #svg-slogan-text--pc,
#hero.is-end #svg-slogan-text--sp {
  animation: anim-svg-maskoff 0s 0s forwards;
}
@media screen and (max-width: 1120px) {}
@media screen and (max-width: 960px) {
  #hero .p-title h1 {
    font-size: calc(40 * var(--base-vw-coef));
  }
  #hero.is-end .p-title {
    transform: translate(-50%, 100%);
  }
}
@media screen and (max-width: 800px) {}
@media screen and (max-width: 640px) {
  #hero .p-title h1 {
    font-size: calc(26 * var(--base-vw-coef));
  }
}
@media screen and (max-width: 480px) {}

/* - service - */
#service.is-show .c-heading-svg span {
  --subtitle-display-delay: calc(7 * 0.1s);
}
#service .p-card {
  margin-top: calc(var(--base) * 12);
}
#service .p-card > .c-flex {
  gap: calc(var(--base) * 8) calc(var(--base) * 4);
}
#service .p-card > .c-flex > * {
  width: calc((100% - (var(--base) * 4) * 1) / 2);
}
#service .p-card-image {
  display: block;
  background-color: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}
#service .p-card-block {
  padding: calc(var(--base) * 2);
}
#service .p-card-block h3 {
  font-size: 20px;
}
#service .p-card .m-boxImage::before {
  padding-top: 56.25%;
}
/* svg */
#svg-serviceTitle {
  width: 480px;
}
#svg-serviceTitle .m-svg-mask > * {
  stroke: #fff;
}
#svg-serviceTitle-text {
  mask: url('#svg-serviceTitle-mask');
}
#service.is-show .m-svg-text {
  --svg-maskoff-delay: calc(7 * 0.1s);
}
@media screen and (max-width: 1120px) {
  /* svg */
  #svg-serviceTitle {
    width: calc(480 * var(--base-vw-coef));
  }
}
@media screen and (max-width: 960px) {
  #service .p-card > .c-flex {
    gap: calc(var(--base) * 8) calc(var(--base) * 2);
  }
  #service .p-card > .c-flex > * {
    width: calc((100% - (var(--base) * 2) * 1) / 2);
  }
  /* svg */
  #svg-serviceTitle {
    width: calc(360 * var(--base-vw-coef));
  }
}
@media screen and (max-width: 800px) {}
@media screen and (max-width: 640px) {
  #service .p-card > .c-flex {
    gap: calc(var(--base) * 8) 0;
  }
  #service .p-card > .c-flex > * {
    width: 100%;
  }
  /* svg */
  #svg-serviceTitle {
    width: calc(240 * var(--base-vw-coef));
  }
}
@media screen and (max-width: 480px) {}

/* - news - */
#news.is-show .c-heading-svg span {
  --subtitle-display-delay: calc(4 * 0.1s);
}
#news .p-newsList {
  margin-top: calc(var(--base) * 12);
  background-color: rgb(255 255 255 / 70%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}
/* svg */
#svg-newsTitle {
  width: 344px;
}
#svg-newsTitle .m-svg-mask > * {
  stroke: #fff;
}
#svg-newsTitle-text {
  mask: url('#svg-newsTitle-mask');
}
#news.is-show .m-svg-text {
  --svg-maskoff-delay: calc(4 * 0.1s);
}
@media screen and (max-width: 1120px) {
  /* svg */
  #svg-newsTitle {
    width: calc(344 * var(--base-vw-coef));
  }
}
@media screen and (max-width: 960px) {
  /* svg */
  #svg-newsTitle {
    width: calc(258 * var(--base-vw-coef));
  }
}
@media screen and (max-width: 800px) {}
@media screen and (max-width: 640px) {
  /* svg */
  #svg-newsTitle {
    width: calc(172 * var(--base-vw-coef));
  }
}
@media screen and (max-width: 480px) {}

/* - company - */
#company.is-show .c-heading-svg span {
  --subtitle-display-delay: calc(10 * 0.1s);
}
#company .p-table {
  margin-top: calc(var(--base) * 12);
  background-color: rgb(255 255 255 / 70%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}
#company .p-table > .c-flex {
  border-bottom: 1px solid #ededed;
}
#company .p-table > .c-flex:nth-of-type(1) {
  border-top: 1px solid #ededed;
}
#company .p-table > .c-flex > *:nth-child(1) {
  width: calc(var(--base) * 40);
  text-align: center;
  padding: calc(var(--base) * 4) calc(var(--base) * 2);
}
#company .p-table > .c-flex > *:nth-child(1) P {
  font-weight: 700;
}
#company .p-table > .c-flex > *:nth-child(2) {
  flex: 1;
  padding: calc(var(--base) * 4) calc(var(--base) * 2);
}
/* svg */
#svg-companyTitle {
  width: 464px;
}
#svg-companyTitle .m-svg-mask > * {
  stroke: #fff;
}
#svg-companyTitle-text {
  mask: url('#svg-companyTitle-mask');
}
#company.is-show .m-svg-text {
  --svg-maskoff-delay: calc(10 * 0.1s);
}
@media screen and (max-width: 1120px) {
  /* svg */
  #svg-companyTitle {
    width: calc(344 * var(--base-vw-coef));
  }
}
@media screen and (max-width: 960px) {
  #company .p-table > .c-flex > *:nth-child(1) {
    width: calc(var(--base) * 32);
  }
  /* svg */
  #svg-companyTitle {
    width: calc(348 * var(--base-vw-coef));
  }
}
@media screen and (max-width: 800px) {}
@media screen and (max-width: 640px) {
  #company .p-table > .c-flex > *:nth-child(1) {
    width: 100%;
    text-align: left;
    padding: calc(var(--base) * 3) calc(var(--base) * 8) 0;
  }
  #company .p-table > .c-flex > *:nth-child(2) {
    padding: calc(var(--base) * 2) calc(var(--base) * 8) calc(var(--base) * 4)
  }
  /* svg */
  #svg-companyTitle {
    width: calc(232 * var(--base-vw-coef));
  }
}
@media screen and (max-width: 480px) {}

/* - contact - */
#contact.is-show .c-heading-svg span {
  --subtitle-display-delay: calc(7 * 0.1s);
}
#contact .p-content {
  margin-top: calc(var(--base) * 12);
  padding: calc(var(--base) * 6) calc(var(--base) * 2) calc(var(--base) * 8);
  background-color: rgb(255 255 255 / 70%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}
/* svg */
#svg-contactTitle {
  width: 480px;
}
#svg-contactTitle .m-svg-mask > * {
  stroke: #fff;
}
#svg-contactTitle-text {
  mask: url('#svg-contactTitle-mask');
}
#contact.is-show .m-svg-text {
  --svg-maskoff-delay: calc(7 * 0.1s);
}
@media screen and (max-width: 1120px) {
  /* svg */
  #svg-contactTitle {
    width: calc(480 * var(--base-vw-coef));
  }
}
@media screen and (max-width: 960px) {
  /* svg */
  #svg-contactTitle {
    width: calc(360 * var(--base-vw-coef));
  }
}
@media screen and (max-width: 800px) {}
@media screen and (max-width: 640px) {
  /* svg */
  #svg-contactTitle {
    width: calc(240 * var(--base-vw-coef));
  }
}
@media screen and (max-width: 480px) {}
