/* overflow:hidden removed - managed by JS */

.opening {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease;
}

.logo-path {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

@keyframes cyanFill {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

.cmyk-cyan {
  fill: #00FFFF;
  animation: cyanFill .5s forwards linear;
}

@keyframes magentaFill {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

.cmyk-magenta {
  fill: #8000FF;
  animation: magentaFill .5s forwards linear;
}

@keyframes yellowFill {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

.cmyk-yellow {
  fill: #000000;
  animation: yellowFill .5s forwards linear;
}

.frontPageAbout {
  min-height: 100vh;
  position: relative;
  padding-top: 100px;
}

.frontPageAbout .wp-block-cover {
  min-height: calc(100vh - 100px) !important;
}

.frontPageAbout>div>div,
.frontPageAbout>div {
  width: 100%;
  height: 100%;
}

.fvContext {
  width: 80%;
  max-width: max-content;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.moreButton {
  width: fit-content;
  margin: 0 auto;
  display: block;
  border-bottom: solid 4px var(--button-bottom-color);
  border-radius: 3px;
  transition: all .3s ease;
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
}

.fvContext .moreButton {
  bottom: -20%;
}

.moreButton:hover {
  -webkit-transform: translateX(-50%) translateY(4px);
  transform: translateX(-50%) translateY(4px);
  border-bottom: none;
}

.moreButton.fadeUpElement.active {
  transform: translateY(0) translateX(-50%);
}

.frontPageWorks {
  position: relative;
}

.frontPageWorksContainer {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: calc(8% / 3);
}

.frontPageWorksInner {
  width: 23%;
  margin-bottom: 4%;
  overflow: hidden;
  position: relative;
}

.frontPageWorksInner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--body-bg-color);
  background-image: url("https://www.transparenttextures.com/patterns/fabric-1-light.png");
  transition: transform 1.5s ease;
}

.frontPageWorksInner.visible::before {
  transform: translateX(100%);
}

.frontPageWorksInner>img {
  width: 100%;
}

.client {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 0.5%;
}

.category {
  font-size: 1.5rem;
  line-height: 1.5;
}

.frontPageWorks .moreButton {
  bottom: -10%;
}

.frontPageBusiness {
  position: relative;
}

.businessInner {
  position: relative;
}

.businessInner:nth-of-type(2) {
  flex-direction: row-reverse;
}

.businessInner>div>figure {
  position: relative;
}

.businessInner>div>figure::before {
  font-size: 5rem;
  color: var(--header-bg-color);
  position: absolute;
  top: 0%;
  left: 2%;
  z-index: 4;
}

.businessInner:nth-of-type(1)>div>figure::before {
  content: "01";
}

.businessInner:nth-of-type(2)>div>figure::before {
  content: "02";
  top: 0%;
  right: 2%;
}

.businessInner:nth-of-type(3)>div>figure::before {
  content: "03";
}

.businessInner>div:first-of-type>figure:first-of-type::after {
  content: "";
  width: 100%;
  height: 100%;
  background-color: #00000090;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
}

.businessInnerText {
  position: absolute;
  bottom: 5%;
  left: 2%;
  width: fit-content;
  z-index: 4;
}

.businessInner:nth-of-type(2) .businessInnerText {
  left: initial;
  right: 2%;
  text-align: right;
}

/* Tablet */
@media screen and (max-width:960px) {
  .opening {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease;
  }

  .frontPageAbout {
    aspect-ratio: initial;
    height: calc(100vh - 101.39px);
  }

  .frontPageAbout>div>div,
  .frontPageAbout>div {
    width: 100%;
    height: 100%;
  }

  .fvContext {
    width: 90%;
  }

  .moreButton {
    padding-top: 0.5rem !important;
    padding-right: 2rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 2rem !important;
    bottom: -10%;
  }

  .frontPageWorksContainer {
    gap: 2%;
    margin-bottom: 10%;
  }

  .frontPageWorksInner {
    width: 49%;
    margin-bottom: 2%;
  }

  .client {
    font-size: 0.9rem;
  }

  .category {
    font-size: 0.7rem;
  }

  .frontPageWorks .moreButton {
    bottom: -8%;
  }

  .businessInner:nth-of-type(2) {
    flex-direction: row-reverse;
  }

  .businessInner>div>figure::before {
    font-size: 2rem;
    top: 0;
    left: 2%;
  }

  .businessInner:nth-of-type(2) .businessInnerText p,
  .businessInner:nth-of-type(2) .businessInnerText h3 {
    text-align: left !important;
  }

  .businessInner:nth-of-type(2) .businessInnerText {
    left: 2%;
    right: initial;
    text-align: right;
  }

  .businessInner:nth-of-type(3) {
    margin-bottom: 20%;
  }

  .businessInner>div {
    position: relative;
  }

  .businessInnerText {
    position: absolute;
    bottom: 4%;
  }

  .frontPageBusiness .moreButton {
    bottom: -5%;
  }
}

@media screen and (min-width: 782px) and (max-width: 960px) {
  .businessInnerText {
    bottom: 22%;
  }
}

/* Mobile */
@media screen and (max-width:428px) {
  .opening {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease;
  }

  .frontPageAbout {
    height: calc(100vh - 101.39px);
  }

  .fvContext {
    width: 90%;
    top: 43%;
  }

  .frontPageWorksInner {
    width: 100%;
    margin-bottom: 5%;
  }

  .frontPageWorks .moreButton {
    bottom: -1%;
  }

  .businessInner>div>figure::before {
    font-size: 1.2rem;
  }

  .frontPageBusiness>p {
    margin-bottom: 2%;
  }

  .moreButton {
    padding: 5px 15px;
    bottom: -3%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
  }

  .client {
    font-size: 1.2rem;
  }

  .handle {
    font-size: .7rem;
  }

  :where(.wp-block-columns.is-layout-flex) {
    gap: 1%;
  }
}

/* ホームページのタイトルを非表示 */
.page-title,
.entry-title,
h1.page-title {
  display: none;
}