@charset "UTF-8";

:root {
  --red: #df2027;
  --black: #171717;
  --gray: #666;
  --border: #e5e5e5;
  --white: #fff;
  --container: 1080px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: "Open Sans", "Noto Sans JP", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section { position: relative; }

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: clamp(420px, 34vw, 520px);
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: -4px;
  background: url("../img/fv_image01.png") center / cover no-repeat;
  transform: scale(1.08);
  transform-origin: center;
  will-change: transform, filter;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: rgba(0, 0, 0, 0.4);
}

.hero__inner {
  position: relative;
  z-index: 2;

  width: min(calc(100% - 48px), 1100px);
  height: 100%;
  margin: 0 auto;

  display: flex;
  align-items: center;
}

.hero__title path {
  fill: transparent;
  stroke: #fff;
  stroke-width: 1;

  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;

  animation:
    draw 1.5s ease forwards,
    fillText 0.6s ease 1s forwards;

}
.hero__title svg {
  display: block;
  width: min(755px, 80vw);
  height: auto;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fillText {
  to {
    fill: #fff;
  }
}
/* Lead */
.lead {
  min-height: 420px;
  display: grid;
  place-items: center;
  background: #fff;
}

.lead__text {
  margin: 0;
  text-align: center;
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.75;
}

/* Services */
.services {
  position: relative;
  padding: 100px 0 145px;
  overflow: hidden;
}

.services__bg {
  position: absolute;
  inset: 0 0 auto;
  height: 62%;
  background: var(--red);
}

.services__inner {
  position: relative;
  z-index: 1;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px;
}

.service-card {
  min-height: 445px;
  padding: 34px 30px 36px;
  text-align: center;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.service-card__title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.3;
}

.service-card__icon {
  width: min(180px, 45%);
  margin: 0 auto 26px;
  transition: transform 0.2s ease;
}
.service-card:hover .service-card__icon {
  animation: iconBounce 0.6s ease;
}

.service-card__icon img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.service-card__text {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.75;
}
@keyframes iconBounce {
  0% {
    transform: translateY(0);
  }

  35% {
    transform: translateY(-8px);
  }

  60% {
    transform: translateY(0);
  }

  80% {
    transform: translateY(-3px);
  }

  100% {
    transform: translateY(0);
  }
}
/* feature */
.feature {
  padding: 60px 0;
}
.feature__title-wrap {
  position: relative;
  width: 100%;
  margin: 0 auto 30px;
  max-width: 1000px;
}
.feature__title-en {
  display: block;
  width: min(100%, 998px);
  height: auto;
  margin: 0 auto;
}

.feature__title-ja {
  position: absolute;
  left: 50%;
  bottom: 0;

  transform: translate(-50%, 35%);

  margin: 0;
  font-size: clamp(28px, 3.33vw, 48px);
  white-space: nowrap;
  z-index: 1;
}
.feature--game .feature__title-en {
  width: min(100%, 998px);
}
.feature--support .feature__title-en {
  width: min(76%, 752px);
}
.feature__lead {
  margin: 0 0 16px;
  color: #df2027;
  font-size: clamp(20px, 2.22vw, 32px);
  font-weight: 700;
  text-align: center;
}

.feature__text {
  max-width: 760px;
  margin: 0 auto;

  font-size: clamp(14px, 1.11vw, 16px);
  line-height: 1.9;
}
/* Contact */
.contact {
  padding: 95px 0 88px;
  color: #fff;
  background: var(--red);
  text-align: center;
}

.contact__en {
  margin: 0 0 16px;
  color: transparent;
  font-family: "Open Sans", sans-serif;
  font-size: clamp(4rem, 8vw, 7.2rem);
  font-weight: 700;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(255,255,255,.9);
}

.contact__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.contact__note {
  max-width: 760px;
  margin: 26px auto 30px;
  font-size: .8rem;
  line-height: 1.85;
  opacity: .92;
}

.contact__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px 12px 24px;
  border: 2px solid #fff;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.contact__button:hover {
  color: var(--red);
  background: #fff;
  transform: translateY(-2px);
}

.contact__button-arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  transition: transform .25s ease;
}

.contact__button:hover .contact__button-arrow {
  color: #fff;
  background: var(--red);
  transform: translateX(2px);
}

.contact__button-arrow svg {
  width: 7px;
  height: 11px;
}

/* Company */
.company {
  padding: 95px 0 70px;
  background: #fff;
}

.company__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-size: 1.3rem;
  line-height: 1;
}

.company__title span {
  font-weight: 700;
  background: url(../img/ttl_circle.svg) no-repeat left center;
  background-size: 0.8em auto;
  display: inline-block;
  padding-left: 1.2em;
}

.company-table {
  margin: 0;
  border-top: 1px solid var(--border);
}

.company-table__row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  border-bottom: 1px solid var(--border);
}

.company-table dt,
.company-table dd {
  margin: 0;
  padding: 18px 0;
  font-size: .9rem;
}

.company-table dt {
  font-weight: 800;
}

.company-table dd {
  padding-left: 22px;
}

.company-table dd span + span {
  margin-left: 64px;
}

/* Footer */
.footer {
  padding: 45px 0 80px;
  text-align: center;
  background: #fff;
}

.footer small {
  font-size: .72rem;
  color: #555;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
h2.error {
  margin: 20px auto;
  color: #df2027;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(4rem, 8vw, 7.2rem);
  font-weight: 700;
  text-align: center;
}
p.error {
  text-align: center;
}
@media (max-width: 900px) {
  .hero,
  .hero__inner { min-height: 440px; }

  .lead { min-height: 350px; }

  .service-card { min-height: 400px; }
  .service-card:active .service-card__icon {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

 .hero {
    height: clamp(420px, 120vw, 520px);
  }
  .hero__bg {
    background-position: 52% center;
  }

  .hero__inner {
    width: calc(100% - 40px);

    align-items: center;
    padding-bottom: 55px;
    min-height: 390px;
  }

  .hero__title {
    width: min(100%, 520px);
  }

  .hero__title svg {
    width: 90vw;
  }
  .lead {
    min-height: 300px;
    padding: 70px 0;
  }

  .lead__text {
    font-size: 1rem;
    line-height: 1.9;
  }

  .services {
    padding: 72px 0 90px;
  }

  .services__bg {
    height: 48%;
  }

  .service-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
    gap: 26px;
  }

  .service-card {
    min-height: 0;
    padding: 30px 24px 34px;
  }

  .service-card__title {
    font-size: 2rem;
  }

  .service-card__icon {
    width: 150px;
  }
  .feature {
    padding: 48px 20px;
  }

  .feature__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
  }

  .feature__title-ja {
    position: static;
    transform: none;
    order: 2;
    font-size: clamp(26px, 8vw, 34px);
    white-space: normal;
    text-align: center;
    margin-top: -40px;
  }

  .feature__title-en {
    order: 1;
    width: 100%;
    max-width: none;
  }

  .feature--game .feature__title-en {
    width: 100%;
  }

  .feature--support .feature__title-en {
    width: 100%;
  }

  .feature__lead {
    font-size: clamp(18px, 5.6vw, 24px);
  }

  .feature__text {
    font-size: 14px;
    text-align: left;
  }
  .contact {
    padding: 72px 0 68px;
  }

  .contact__note {
    font-size: .74rem;
  }

  .company {
    padding: 72px 0 48px;
  }

  .company-table__row {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .company-table dt,
  .company-table dd {
    font-size: .82rem;
  }

  .company-table dd {
    padding-left: 16px;
  }

  .company-table dd span {
    display: block;
  }

  .company-table dd span + span {
    margin: 4px 0 0;
  }

  .footer {
    padding-bottom: 55px;
  }
}

@media (max-width: 480px) {
  .hero,
  .hero__inner { min-height: 340px; }

  .hero__inner {
    padding-bottom: 44px;
  }
  .lead {
    min-height: 260px;
    padding: 58px 0;
  }

  .lead__text {
    font-size: .92rem;
  }

  .services__bg {
    height: 43%;
  }

  .service-card__title {
    font-size: 1.75rem;
  }

  .service-card__icon {
    width: 130px;
    margin-bottom: 20px;
  }

  .service-card__text {
    font-size: .84rem;
  }
  .feature__title-wrap {
    gap:0;
  }
  .feature__title-ja {
    margin-top: -9%;
  }
  .contact__title {
    font-size: 1.35rem;
  }

  .contact__button {
    min-height: 52px;
    font-size: .82rem;
  }

  .company__title {
    font-size: 1.1rem;
  }

  .company-table__row {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .company-table dt,
  .company-table dd {
    padding-block: 15px;
    font-size: .75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
