* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: inherit;
}
li {
  list-style: none;
}
body {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
}
.oswald {
  font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;
}
.inline {
  display: inline-block;
}
/*opening*/
.fv {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: sticky;
  top: 0;
}

.opening-logo {
  animation: opening-logo-rotate 0.5s 3s cubic-bezier(0.85, 0.09, 0.15, 0.91)
      forwards alternate,
    opening-logo-fadeout 0.5s 3.2s cubic-bezier(0.85, 0.09, 0.15, 0.91) forwards
      alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

@keyframes opening-logo-rotate {
  to {
    transform: translate(-50%, -50%) rotateZ(-15deg);
  }
}
.logo-icon {
  width: 180px;
}
.logo-textwrap {
  display: inline-block;
  overflow: hidden;
  width: 0;
  animation: expand-01 1.5s 0.5s cubic-bezier(0.85, 0.09, 0.15, 0.91) forwards;
}
.logo-text {
  display: block;
  max-width: none;
  width: 420px;
}
@keyframes expand-01 {
  0% {
    width: 0;
  }
  25% {
    width: 420px;
  }
  85% {
    width: 420px;
  }
  100% {
    width: 0;
  }
}

.logo-sidewrap {
  width: 0;
  margin-bottom: auto;
  display: block;
  max-width: none;
  overflow: hidden;
  height: 0;
  animation: expand-02 1s 2s cubic-bezier(0.85, 0.09, 0.15, 0.91) forwards;
}
.logo-side {
  display: block;
  width: 100%;
}
@keyframes expand-02 {
  0% {
    height: 0;
  }
  50% {
    height: 0;
    width: 51px;
  }
  100% {
    height: 183px;
    width: 51px;
  }
}

/* 既存ベース */
.fv-video {
  position: absolute;
  width: 130%;
  height: 60%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateZ(-15deg);
  transform-origin: center;
  filter: grayscale(1);
  overflow: hidden;
}

.fv-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv-title {
  position: absolute;
  transform: rotateZ(-15deg);
  font-weight: 900;
  font-size: 4.5rem;
}
.fv-title01 {
  left: 7%;
  top: 15%;
}

.fv-title02 {
  right: 7%;
  bottom: 15%;
}

.fv-wh {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateZ(-15deg);
  display: block;
  width: 270px;
  z-index: 2;
}

.fv-before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: #fff;
  position: absolute;
  z-index: 10;
  width: 100vw;
  animation: fv-bg-out 0.5s 3.5s cubic-bezier(0.85, 0.09, 0.15, 0.91) forwards
    alternate;
  overflow: hidden;
}
@keyframes fv-bg-out {
  to {
    width: 0;
  }
}
.fv-after {
  width: 100%;
  height: 100%;
  position: relative;
}

/*main*/
.pre-fv main,
.pre-fv footer {
  display: none;
}
main {
  position: sticky;
  top: 0;
  background-color: #fff;
}
section {
  padding: 4rem 0;
}
/*about*/

.about {
  padding-top: 8rem;
  position: relative;
}
.about-inner {
  width: 95%;
  margin: 0 auto;
  position: relative;
}
.about-textwrap {
  padding-left: 2rem;
}
.about-textwrap h2 {
  font-size: 3.2rem;
}
.about-text {
  margin-top: 2rem;
}
.about-text p {
  line-height: 2;
  font-size: 1.4rem;
  font-weight: bold;
}
.about-text p + p {
  margin-top: 1rem;
}
.about-top {
  display: flex;
  justify-content: space-between;
}
.about-bottom {
  position: relative;
}
.about-img01 {
  display: block;
  width: 300px;
  height: 450px;
  position: absolute;
  object-fit: cover;
  right: 0;
  top: -400px;
  z-index: 2;
  will-change: transform;
  transform: translate3d(0, 0, 0); /* GPUヒント */
}
.about-img02 {
  display: block;
  width: 50%;
  height: 350px;
  object-fit: cover;
  margin: 1rem 2rem 0 auto;
  will-change: transform;
  transform: translate3d(0, 0, 0); /* GPUヒント */
}

.about-bg {
  position: absolute;
  z-index: -1;
  top: 40%;
  left: 10%;
  transform: rotate(-10deg);
  opacity: 0.1;
  width: 70vw;
}
.about-bg img {
  display: block;
  width: 100%;
}

/*business*/
.business {
  width: 100%;
  position: relative;
  background: #000;
}
.grid-hero {
  position: absolute;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  left: 0;
  top: 0;
  z-index: 1;
}

/* 横線 */
.lines.horizontal div {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  opacity: 0.2;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineGrowX 2.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* 縦線 */
.lines.vertical div {
  position: absolute;
  top: 0;
  height: 100%;
  width: 1px;
  background: #fff;
  opacity: 0.2;
  transform: scaleY(0);
  transform-origin: top;
}
.lines.vertical.business-anime div,
.lines.horizontal.business-anime div {
  animation: lineGrowY 2.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
/* 横線アニメ */
@keyframes lineGrowX {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  to {
    transform: scaleX(1);
    opacity: 0.2;
  }
}

/* 縦線アニメ */
@keyframes lineGrowY {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  to {
    transform: scaleY(1);
    opacity: 0.2;
  }
}

.business-contents {
  position: relative;
  z-index: 2;
  color: #fff;
  display: flex;
  align-items: flex-start;
}
.business-title {
  writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  font-size: 7rem;
  text-transform: capitalize;
  width: 200px;
  position: sticky;
  top: 50px;
  line-height: 1.2;
}

.business-lists {
  width: calc(100% - 250px);
  flex-wrap: wrap;
  display: flex;
  margin: 0 auto;
  gap: 4rem 2rem;
}
.business-item {
  width: calc((100% - 2rem) / 2);
}
.business-img {
  width: 100%;
  aspect-ratio: 2/1;
  margin-top: 1rem;
}
.business-img img {
  display: block;
  width: 100%;
  height: 100%;
}
.business-item h3 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}
.business-item h3::before {
  content: attr(data-num);
  font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;
  margin-right: 1rem;
  font-size: 4rem;
}
.business-item h3 p span {
  display: block;
  font-size: 1.4rem;
}

.business-item-text {
  margin-top: 1rem;
  line-height: 1.7;
}

/*company*/
.company {
  width: 100%;
  position: relative;
}
.company-inner {
  width: 95%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  flex-direction: row-reverse;
  min-height: 780px;
}
.company-title {
  writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  font-size: 7rem;
  text-transform: capitalize;
  width: 200px;
  position: sticky;
  top: 50px;
  line-height: 1.2;
}

.company-tablewrap {
  width: calc(100% - 250px);
}
.company-table {
  border-collapse: collapse;
}
.company-table tr {
  border-bottom: 1px solid #cdcdcdae;
}
.company-table th,
.company-table td {
  padding: 1rem;
  text-align: left;
  font-size: 1.1rem;
}
.company-table th {
  vertical-align: top;
  width: 250px;
}
.company-table td {
  width: calc(100% - 250px);
}

/*footer*/
footer {
  background-color: #1f1f1f;
  color: #fff;
  padding: 5rem 0;
}

.footer-inner {
  width: 90%;
  margin: 0 auto;
}

.contact-btnwrap {
  color: #fff;
  text-align: center;
}
.contact-btn {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  padding: 1rem 1.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 1rem;
  border: 2px solid #000;
  transition: color 0.4s ease, border-color 0.4s ease;
  z-index: 0;
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: -1;
  transition: all 0.5s ease;
}

.contact-btn:hover::before {
  left: 0;
}

.contact-btn:hover {
  color: #fff;
  border-color: #000;
}

.contact-btn svg {
  display: block;
  width: 40px;
  margin-left: 1rem;
  transition: transform 0.3s ease;
}

.contact-btn:hover svg {
  fill: #fff;
}

.footer-contents {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.footer-logo img {
  display: block;
  width: 280px;
}

.copyright {
  margin-top: 4rem;
  text-align: center;
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease; /* ←ここで速度やイージングを自由に調整 */
}

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