.p-main-cube {
  --cube-size: min(360px, 25vw);
  --cube-depth: calc(var(--cube-size) / 2);

  position: relative;
  flex-shrink: 0;
  width: var(--cube-size);
  height: var(--cube-size);
  margin-inline-start: auto;
  perspective: calc(var(--cube-size) * 8);
}

.p-main-cube__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: cube-spin 24s linear infinite;
}

.p-main-cube__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  background-color: var(--bg-tertiary);
}

.p-main-cube__face img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.p-main-cube__face:first-child {
  transform: translateZ(var(--cube-depth));
}

.p-main-cube__face:nth-child(2) {
  transform: rotateY(90deg) translateZ(var(--cube-depth));
}

.p-main-cube__face:nth-child(3) {
  transform: rotateX(90deg) translateZ(var(--cube-depth));
}

.p-main-cube__face:nth-child(4) {
  transform: rotateY(180deg) translateZ(var(--cube-depth));
}

.p-main-cube__face:nth-child(5) {
  transform: rotateY(-90deg) translateZ(var(--cube-depth));
}

.p-main-cube__face:nth-child(6) {
  transform: rotateX(-90deg) translateZ(var(--cube-depth));
}

@keyframes cube-spin {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }

  100% {
    transform: rotateX(2turn) rotateY(1turn);
  }
}

#home-main {
  background-color: var(--bg-secondary);
}

#site-header {
  --fade-speed: 0.3s;
  --timing: 0s;
  --fade-mode: ease-in-out;

  position: fixed;
}

#site-header .c-btn.c-btn--primary {
  outline-color: transparent;
}

#site-header.is-start {
  background-color: transparent;
  box-shadow: 0 0 0 transparent;
  color: var(--txt-invert);
}

#site-header.is-start .p-logo img {
  filter: grayscale(1) brightness(0.72) contrast(20) invert(1);
}

#site-header.is-start .p-gnav li::before {
  background-color: var(--bg-base);
}

#site-header.is-start .c-btn.c-btn--primary {
  outline: 1px solid var(--bd-accent);
  background-color: transparent;
  color: var(--txt-accent);
}

#site-header.is-ready {
  transition:
    background-color var(--fade-speed) var(--timing) var(--fade-mode),
    color var(--fade-speed) var(--timing) var(--fade-mode);
}

#site-header.is-ready .p-gnav li::before {
  transition: background-color var(--fade-speed) var(--timing) var(--fade-mode);
}

#site-header.is-ready .p-logo img {
  transition: filter var(--fade-speed) var(--timing) var(--fade-mode);
}

#site-header.is-ready .c-btn.c-btn--primary {
  transition:
    outline var(--fade-speed) var(--timing) var(--fade-mode),
    background-color var(--fade-speed) var(--timing) var(--fade-mode),
    color var(--fade-speed) var(--timing) var(--fade-mode);
}

.p-hero-area {
  position: relative;
  min-height: 55.5vw;
  padding-block: 8.3vw 8.8vw;
}

.p-hero-area .p-main-cube {
  position: absolute;
  top: 60%;
  right: 15%;
  translate: 0 -50%;
}

.p-hero-area__inner {
  display: flex;
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: var(--max-width);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--size-64);
}

.p-hero-area .p-header-eng-role {
  --font-size: min(200px, 13.8vw);

  position: absolute;
  z-index: 1;
  top: var(--size-64);
  left: 0;
  max-width: 100%;
  overflow-x: hidden;
  opacity: 0.3;
  font-size: var(--font-size);
  line-height: 1.4;
  word-break: keep-all;
  white-space: nowrap;
  cursor: none;
  pointer-events: none;
}

.p-hero-area .p-header-eng-role > span {
  display: inline-block;
  padding-left: 0.5em;
  animation: move-copy 180s linear infinite;
}

.p-main-title {
  color: var(--txt-invert);
}

.p-main-title__en {
  width: -moz-fit-content;
  width: fit-content;
  margin-bottom: var(--size-20);
  color: var(--txt-accent);
  font-size: var(--size-24);
  line-height: var(--size-36);
}

.p-main-title__copy {
  font-size: var(--size-64);
  line-height: var(--size-80);
}

.p-main-title__read {
  margin-top: var(--size-32);
  font-size: var(--size-24);
  line-height: var(--size-36);
}

.p-main-title .c-bridge-mark {
  width: 7.7vw;
  margin-bottom: var(--size-8);
  margin-inline: auto;
}

.p-main-title .c-bridge-mark__fill {
  fill: var(--bg-accent);
}

.p-main-section {
  padding-block: var(--size-96);
}

.p-main-section__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--size-64);
}

.p-main-section .c-section-header__title {
  font-size: var(--size-40);
  line-height: var(--size-56);
}

.p-service__content {
  padding: var(--size-64) var(--size-56);
  background-color: var(--bg-base);
}

.p-service .c-section-header {
  margin-bottom: var(--size-80);
  text-align: center;
}

.p-service .c-btn,
.p-service .c-section-header__icon {
  margin-inline: auto;
}

.p-service .c-btn {
  display: flex;
  width: var(--col-6);
  margin-top: var(--size-80);
}

.p-service-list {
  display: grid;
  gap: var(--size-48);
  grid-template-columns: repeat(3, 1fr);
}

.p-service-list__catch {
  margin-bottom: var(--size-8);
  color: var(--txt-primary);
  line-height: 1.35;
}

.p-service-list__title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: var(--size-24);
  font-weight: 700;
  text-align: center;
}

.p-service-list__main-ttl {
  font-size: var(--size-32);
  line-height: 1.35;
}

.p-strengths .p-main-section__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap);
}

.p-strengths .p-main-section__inner .c-section-header {
  flex-basis: var(--col-4);
  width: var(--col-4);
}

.p-strengths .p-main-section__inner .p-strengths-list {
  flex-basis: var(--col-8);
}

.p-strengths-list {
  flex: 0 1 var(--col-8);
  border-bottom: 1px solid var(--bd-common);
}

.p-strengths-list__block {
  padding-block: var(--size-32);
  border-top: 1px solid var(--bd-common);
}

.p-strengths-list__title {
  display: flex;
  align-items: center;
  margin-bottom: var(--size-8);
  font-size: var(--size-24);
  font-weight: 700;
  line-height: var(--size-36);
  gap: var(--size-16);
}

.p-strengths-list__title::before {
  content: "";
  display: block;
  width: var(--size-32);
  height: var(--size-4);
  background: linear-gradient(to right, var(--bg-primary), var(--bg-primary) 50%, var(--bg-accent) 50%, var(--bg-accent));
}

.p-strengths-list__content {
  font-size: var(--size-18);
  line-height: var(--size-32);
}

@keyframes move-copy {
  0% {
    translate: -1% 0;
  }

  100% {
    translate: -101% 0;
  }
}

@media screen and (max-width: 768px) {
  .p-main-cube {
    --cube-size: var(--size-160);
  }

  .p-hero-area {
    min-height: auto;
    padding-block: var(--size-96) 0;
  }

  .p-hero-area .p-main-cube {
    top: 5%;
    right: 50%;
    translate: 50% 0;
  }

  .p-hero-area__inner {
    display: block;
    padding-top: clamp(248px, 66.1vw, 298px);
    padding-inline: var(--size-20);
  }

  .p-hero-area .p-header-eng-role {
    --font-size: var(--size-100);
  }

  .p-main-title {
    text-align: center;
  }

  .p-main-title__en {
    margin-bottom: var(--size-12);
    margin-inline: auto;
    font-size: var(--size-18);
    line-height: var(--size-32);
  }

  .p-main-title__copy {
    font-size: var(--size-40);
    line-height: var(--size-56);
  }

  .p-main-title__read {
    margin-top: var(--size-20);
    font-size: var(--size-18);
    line-height: var(--size-32);
  }

  .p-main-title .c-bridge-mark {
    width: var(--size-40);
    margin-bottom: var(--size-2);
  }

  .p-main-section {
    padding-block: var(--size-40);
  }

  .p-main-section__inner {
    padding-inline: var(--size-20);
  }

  .p-main-section .c-section-header__title {
    font-size: var(--size-28);
    line-height: var(--size-40);
  }

  .p-service__content {
    padding: var(--size-25) var(--size-20);
  }

  .p-service .c-section-header {
    margin-bottom: var(--size-32);
  }

  .p-service .c-btn {
    width: var(--col-2);
    margin-top: var(--size-32);
  }

  .p-service-list {
    display: block;
  }

  .p-service-list__block + .p-service-list__block {
    margin-top: var(--size-32);
  }

  .p-service-list__title {
    margin-bottom: var(--size-16);
  }

  .p-service-list__main-ttl {
    font-size: var(--size-24);
  }

  .p-strengths .p-main-section__inner {
    display: block;
  }

  .p-strengths .p-main-section__inner .c-section-header {
    display: block;
    width: 100%;
  }

  .p-strengths-list__block {
    padding-block: var(--size-20);
  }

  .p-strengths-list__title {
    font-size: var(--size-20);
    line-height: var(--size-32);
    gap: var(--size-12);
  }

  .p-strengths-list__title::before {
    width: var(--size-20);
    height: var(--size-4);
  }
}

@media screen and (min-width: 1441px) {
  .p-main-cube {
    --cube-size: clamp(360px, 18.7vw, 414px);
  }

  .p-hero-area {
    min-height: clamp(800px, 41.6vw, 920px);
    padding-block: clamp(120px, 6.2vw, 138px) clamp(128px, 6.6vw, 147px);
  }

  .p-hero-area .p-header-eng-role {
    --font-size: clamp(200px, 10.4vw, 230px);
  }

  .p-main-title .c-bridge-mark {
    width: clamp(112px, 5.8vw, 129px);
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .p-hero-area {
    height: 70.3vw;
    padding-block: var(--size-120) var(--size-80);
  }

  .p-hero-area .p-main-cube {
    top: 55%;
  }

  .p-hero-area__inner {
    padding-inline: 40px;
  }

  .p-hero-area .p-header-eng-role {
    --font-size: min(140px, 13.6vw);
  }

  .p-main-title__en {
    margin-bottom: var(--size-16);
    font-size: var(--size-20);
    line-height: var(--size-32);
  }

  .p-main-title__copy {
    font-size: var(--size-56);
    line-height: var(--size-72);
  }

  .p-main-title__read {
    margin-top: var(--size-24);
  }

  .p-main-title .c-bridge-mark {
    width: var(--size-96);
  }

  .p-main-section {
    padding-block: var(--size-64);
  }

  .p-main-section__inner {
    padding-inline: 40px;
  }

  .p-main-section .c-section-header__title {
    font-size: var(--size-32);
    line-height: var(--size-44);
  }

  .p-service__content {
    padding: var(--size-56) var(--size-40);
  }

  .p-service .c-section-header {
    margin-bottom: var(--size-64);
  }

  .p-service .c-btn {
    width: var(--col-4);
    margin-top: var(--size-64);
  }

  .p-service-list {
    gap: var(--size-32);
  }

  .p-service-list__title {
    margin-bottom: var(--size-18);
  }

  .p-service-list__main-ttl {
    font-size: var(--size-28);
  }

  .p-strengths .p-main-section__inner .c-section-header {
    flex-basis: var(--col-2);
    width: var(--col-2);
  }

  .p-strengths .p-main-section__inner .p-strengths-list,
  .p-strengths-list {
    flex-basis: var(--col-4);
  }

  .p-strengths-list__block {
    padding-block: var(--size-24);
  }

  .p-strengths-list__title {
    font-size: var(--size-20);
    line-height: var(--size-32);
    gap: var(--size-16);
  }

  .p-strengths-list__title::before {
    width: var(--size-24);
    height: var(--size-4);
  }
}

@media screen and (min-width: 1025px) {
  .p-hero-area {
    display: flex;
    align-items: center;
  }
}

@media screen and (max-width: 1024px) {
  .p-service-list__catch {
    margin-bottom: var(--size-4);
  }

  .p-strengths-list__content {
    font-size: var(--size-16);
    line-height: var(--size-28);
  }
}
