@charset "UTF-8";

/* ============================================
   トップページ（FV・Message・Business・Company・Contact）
   ============================================ */

/* ---------- グリッチ演出 ---------- */
@keyframes logoWipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes glitchShift {
  0%, 88.9%, 93.4%, 100% { transform: none; filter: none; }
  89%   { transform: translate(-6px, 2px) skewX(-4deg); }
  90.2% { transform: translate(5px, -2px) skewX(3deg); }
  91.5% { transform: translate(-3px, 1px); }
  92.6% { transform: translate(2px, -1px) skewX(-2deg); }
}

@keyframes glitchA {
  0%, 88.9%, 93.5%, 100% { clip-path: inset(0 0 100% 0); opacity: 0; transform: none; }
  89%   { clip-path: inset(8% 0 62% 0); opacity: .85; transform: translate(-14px, 0); }
  90.4% { clip-path: inset(38% 0 34% 0); opacity: .85; transform: translate(10px, 0); }
  91.8% { clip-path: inset(70% 0 6% 0); opacity: .85; transform: translate(-8px, 0); }
  93%   { clip-path: inset(20% 0 55% 0); opacity: .85; transform: translate(6px, 0); }
}

@keyframes glitchB {
  0%, 89.1%, 93.6%, 100% { clip-path: inset(100% 0 0 0); opacity: 0; transform: none; }
  89.3% { clip-path: inset(55% 0 18% 0); opacity: .7; transform: translate(12px, 0) scaleX(1.01); }
  90.7% { clip-path: inset(10% 0 74% 0); opacity: .7; transform: translate(-10px, 0); }
  92.1% { clip-path: inset(44% 0 30% 0); opacity: .7; transform: translate(8px, 0) scaleX(.99); }
}

@keyframes glitchText {
  0%, 90.9%, 94.1%, 100% { transform: none; opacity: 1; text-shadow: none; }
  91% { transform: translateX(-5px); opacity: .55; text-shadow: 4px 0 #ff2a2a, -4px 0 #00ff85; }
  92% { transform: translateX(4px) skewX(6deg); opacity: 1; text-shadow: -6px 0 #00ff85, 6px 0 #ff2a2a; }
  93% { transform: translateX(-2px); opacity: .7; text-shadow: 3px 0 #ff2a2a, -3px 0 #00ff85; }
}

.glitch-text {
  display: inline-block;
}

/* ---------- FV（ファーストビュー） ---------- */
.fv {
  height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--black);
}

.fv__logo {
  width: min(62vw, 980px);
  position: relative;
  /* ローダーのフェードアウトに重ねてワイプを開始する */
  animation: logoWipe 1.4s cubic-bezier(.85, 0, .15, 1) calc(var(--loader-duration) - .3s) backwards;
}

.fv__logo-img {
  display: block;
  width: 100%;
  height: auto;
  animation: glitchShift 2.9s steps(1) calc(var(--loader-duration) + 1.4s) infinite;
}

.fv__logo-glitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  pointer-events: none;
}

.fv__logo-glitch--a {
  filter: brightness(0) saturate(100%) invert(18%) sepia(96%) saturate(7150%) hue-rotate(357deg) brightness(103%);
  animation: glitchA 2.9s steps(1) calc(var(--loader-duration) + 1.4s) infinite;
}

.fv__logo-glitch--b {
  filter: brightness(0) saturate(100%) invert(72%) sepia(61%) saturate(2900%) hue-rotate(102deg) brightness(108%);
  animation: glitchB 2.9s steps(1) calc(var(--loader-duration) + 1.4s) infinite;
}

.fv__copyright {
  position: absolute;
  bottom: 34px;
  left: 4vw;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  animation: riseIn 1s ease calc(var(--loader-duration) + 1.3s) backwards;
}

/* ---------- Message ---------- */
.message {
  padding: 24vh 4vw;
  background: var(--white);
  color: var(--black);
}

.message .section-label {
  margin-bottom: 56px;
}

.message__title {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(42px, 7.6vw, 124px);
  line-height: 1.22;
  letter-spacing: .01em;
}

.message__title .glitch-text {
  animation: glitchText 3.3s steps(1) .4s infinite;
}

.message__subtitle {
  margin: 40px 0 0;
  font-family: var(--font-en);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(13px, 1.2vw, 17px);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gray);
}

.message__text {
  margin: 64px 0 0;
  max-width: 800px;
}

.message__text p {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 2.2;
}

.message__text p + p {
  margin-top: 2em;
}

.message__text .message__lead {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 900;
  line-height: 1.9;
  letter-spacing: .04em;
}

/* ---------- Business ---------- */
.business {
  padding: 22vh 4vw;
  background: var(--black);
  color: #fff;
}

.business__title {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(52px, 8.5vw, 150px);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.business__title .glitch-text {
  animation: glitchText 4.1s steps(1) 1.1s infinite;
}

.business__list {
  margin-top: 110px;
  display: flex;
  flex-direction: column;
}

.business__item {
  border-top: 1px solid var(--gray-line);
  padding: 64px 0;
  display: grid;
  grid-template-columns: 90px 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.business__item--last {
  border-bottom: 1px solid var(--gray-line);
}

.business__num {
  font-family: var(--font-en);
  font-weight: 900;
  font-style: italic;
  font-size: 30px;
  color: #4a4a4a;
}

.business__name {
  font-weight: 900;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.4;
}

.business__name-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin-top: 14px;
}

.business__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--gray-text);
  max-width: 580px;
}

/* ---------- Company ---------- */
.company {
  padding: 22vh 4vw;
  background: var(--white);
  color: var(--black);
}

.company__title {
  margin: 0 0 88px;
  font-family: var(--font-en);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(44px, 6.5vw, 110px);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.company__title .glitch-text {
  animation: glitchText 3.9s steps(1) .7s infinite;
}

.company__table {
  width: 100%;
  border-collapse: collapse;
}

.company__table th {
  text-align: left;
  vertical-align: top;
  padding: 26px 24px 26px 0;
  border-top: 1px solid var(--gray-light);
  width: 220px;
  color: var(--gray);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.company__table td {
  padding: 26px 0;
  border-top: 1px solid var(--gray-light);
  font-size: 14.5px;
  font-weight: 700;
}

.company__table tr:last-child th,
.company__table tr:last-child td {
  border-bottom: 1px solid var(--gray-light);
}

/* ---------- Contact ---------- */
.contact {
  padding: 24vh 4vw 20vh;
  background: var(--black);
  color: #fff;
}

.contact__title {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(52px, 9vw, 160px);
  line-height: 1;
  letter-spacing: .005em;
  text-transform: uppercase;
}

.contact__title .glitch-text {
  animation: glitchText 3.5s steps(1) 1.6s infinite;
}

.contact__text {
  margin: 48px 0 0;
  color: var(--gray-text);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 2.1;
  max-width: 560px;
}

.contact__mail {
  display: inline-block;
  margin-top: 56px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 32px);
  letter-spacing: .03em;
  color: #fff;
  text-decoration: none;
  border-bottom: 3px solid #fff;
  padding-bottom: 8px;
  transition: opacity .3s;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 820px) {
  .fv__logo {
    width: 84vw;
  }

  .message,
  .business,
  .company,
  .contact {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .message,
  .business,
  .company {
    padding-top: 14vh;
    padding-bottom: 14vh;
  }

  .contact {
    padding-top: 16vh;
  }

  .business__item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 40px 0;
  }

  .business__desc {
    max-width: none;
  }

  .company__table th {
    display: block;
    width: auto;
    padding: 22px 0 8px;
    border-bottom: none;
  }

  .company__table td {
    display: block;
    border-top: none;
    border-bottom: none;
    padding: 0 0 22px;
  }

  .company__table tr:last-child th {
    border-bottom: none;
  }

  .company__table tr:last-child td {
    border-bottom: 1px solid var(--gray-light);
  }
}
