@charset "UTF-8";
/* ==========================================================
   top.css — トップページ専用スタイル
   ========================================================== */

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero-lead { font-weight: 500; letter-spacing: .05em; }
.btn-hero {
  background: linear-gradient(120deg, var(--green) 0%, var(--blue) 100%);
  color: #fff;
  font-family: var(--font-ja); font-weight: 700; font-size: 16px;
  padding: 20px 38px;
  border-radius: 60px;
  box-shadow: 0 14px 34px rgba(47, 143, 221, .35);
}
.btn-hero .arrow { font-family: var(--font-en); }
.hero-a {
  background: #0b1730;
  color: #fff;
  padding: 130px 0 120px;
}

/* ---------- 背景の写真（3枚がゆっくり切り替わる） ---------- */
.ha-slides, .ha-slide, .ha-shade { position: absolute; inset: 0; }
.ha-slide {
  background-size: cover; background-position: center;
  opacity: 0;
  animation: haFade 18s linear infinite;
  will-change: opacity, transform;
}
.ha-slide.hs1 { animation-delay: -0.9s; }
.ha-slide.hs2 { animation-delay: 5.1s; }
.ha-slide.hs3 { animation-delay: 11.1s; }
@keyframes haFade {
  0% { opacity: 0; transform: scale(1.02); }
  6% { opacity: 1; }
  33.3% { opacity: 1; }
  40% { opacity: 0; transform: scale(1.14); }
  100% { opacity: 0; transform: scale(1.14); }
}
.ha-shade {
  background:
    linear-gradient(0deg, rgba(9, 20, 44, .82) 0%, rgba(9, 20, 44, 0) 24%),
    linear-gradient(100deg, rgba(9, 20, 44, .95) 0%, rgba(9, 20, 44, .8) 38%, rgba(9, 20, 44, .26) 100%);
}
.ha-shade::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 12% 100%, rgba(56, 184, 120, .34) 0%, transparent 70%),
    radial-gradient(50% 50% at 96% 0%, rgba(47, 143, 221, .38) 0%, transparent 70%);
  mix-blend-mode: screen;
}
.ha-word {
  position: absolute; right: -1.5vw; bottom: 84px;
  font-family: var(--font-en); font-weight: 800;
  font-size: 21vw; line-height: .8; letter-spacing: -.01em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .13);
  white-space: nowrap; pointer-events: none; user-select: none;
}

/* ---------- コピー ---------- */
.ha-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px;
}
.ha-kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-weight: 700; font-size: clamp(13px, 1.3vw, 17px);
  letter-spacing: .14em; color: #bfeed6;
  opacity: 0; animation: haIn .8s .05s ease forwards;
}
.ha-kicker::before {
  content: ""; width: 44px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #5cc0ff, #5fe3a1);
}
.hero-a .ha-title {
  margin-top: 16px;
  font-size: clamp(46px, min(9vw, 11.5vh), 132px);
  font-weight: 900; line-height: 1.16; letter-spacing: .02em;
}
.hero-a .ha-title .line { display: block; overflow: hidden; padding: .05em 0; white-space: nowrap; }
.hero-a .ha-title .line > span {
  display: inline-block;
  transform: translateY(112%);
  animation: haUp 1s cubic-bezier(.2, .8, .2, 1) forwards;
}
.hero-a .ha-title .l1 > span { animation-delay: .15s; }
.hero-a .ha-title .l2 > span { animation-delay: .32s; }
.hero-a .ha-title .l3 > span { animation-delay: .49s; }
.ha-grad {
  background: linear-gradient(100deg, #5cc0ff 0%, #5fe3a1 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-a .hero-lead {
  max-width: 640px; margin-top: 26px;
  font-size: clamp(14px, 1.25vw, 17px);
  color: rgba(255, 255, 255, .88);
  opacity: 0; animation: haIn .9s .85s ease forwards;
}
.ha-btns {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px;
  opacity: 0; animation: haIn .9s 1.05s ease forwards;
}
.ha-btns .btn-hero { margin-top: 0; }
.btn-ghost {
  font-family: var(--font-ja); font-weight: 700; font-size: 16px;
  color: #fff; padding: 18px 32px; border-radius: 60px;
  border: 2px solid rgba(255, 255, 255, .55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
@keyframes haUp { to { transform: translateY(0); } }
@keyframes haIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- 下の3つの見出し（写真と連動して進む） ---------- */
.ha-tabs {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  max-width: 1240px; margin: 0 auto; padding: 0 32px 34px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.ha-tabs li {
  font-size: 14px; font-weight: 700; letter-spacing: .08em;
  color: rgba(255, 255, 255, .5);
  animation: haTab 18s linear infinite;
}
.ha-tabs li b { font-family: var(--font-en); font-weight: 700; margin-right: 10px; }
.ha-tabs li i {
  display: block; position: relative; overflow: hidden;
  height: 3px; margin-top: 10px; border-radius: 3px;
  background: rgba(255, 255, 255, .2);
}
.ha-tabs li i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #5cc0ff, #5fe3a1);
  transform-origin: left; transform: scaleX(0);
  animation: haBar 18s linear infinite;
}
.ha-tabs li:nth-child(1), .ha-tabs li:nth-child(1) i::after { animation-delay: -0.9s; }
.ha-tabs li:nth-child(2), .ha-tabs li:nth-child(2) i::after { animation-delay: 5.1s; }
.ha-tabs li:nth-child(3), .ha-tabs li:nth-child(3) i::after { animation-delay: 11.1s; }
@keyframes haBar { 0% { transform: scaleX(0); } 33.3% { transform: scaleX(1); } 33.4%, 100% { transform: scaleX(0); } }
@keyframes haTab { 0%, 33.3% { color: #fff; } 33.4%, 100% { color: rgba(255, 255, 255, .5); } }

@media (max-width: 860px) {
  .ha-kicker { font-size: 12px; letter-spacing: .04em; gap: 10px; }
  .ha-kicker::before { width: 26px; }
  .hero-a { padding: 130px 0 120px; }
  .hero-lead br { display: none; }
  .ha-inner { padding: 0 22px; }
  .hero-a .ha-title { font-size: clamp(40px, 13.4vw, 96px); }
  .ha-shade {
    background:
      linear-gradient(0deg, rgba(9, 20, 44, .92) 0%, rgba(9, 20, 44, .2) 45%),
      linear-gradient(180deg, rgba(9, 20, 44, .86) 0%, rgba(9, 20, 44, .7) 100%);
  }
  .ha-tabs { padding: 0 22px 26px; gap: 10px; }
  .ha-tabs li { font-size: 11px; letter-spacing: .02em; }
  .ha-tabs li b { display: block; margin: 0; }
  .ha-word { bottom: 96px; font-size: 26vw; }
  .ha-btns .btn, .btn-ghost { width: 100%; padding: 17px 20px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .ha-slide, .ha-tabs li, .ha-tabs li i::after { animation: none; }
  .ha-slide.hs1 { opacity: 1; }
  .ha-tabs li { color: #fff; }
  .hero-a .ha-title .line > span, .ha-kicker, .hero-a .hero-lead, .ha-btns { animation: none; opacity: 1; transform: none; }
}


/* ---------- news ---------- */
.news { padding: 30px 0 10px; }
.news-inner {
  display: flex; align-items: center; gap: 30px;
  background: #fff; border-radius: 60px;
  padding: 22px 40px;
  box-shadow: var(--shadow);
}
.news-label { font-family: var(--font-en); font-size: 18px; letter-spacing: .1em; color: var(--blue); }
.news-list { display: grid; gap: 10px; min-width: 0; }
.news-item { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.news-item time { font-family: var(--font-en); font-weight: 600; color: #8a99b0; }
.news-item p { font-weight: 500; }
.news-item:hover p { color: var(--blue); }

/* ---------- about ---------- */
.about { padding: 110px 0; position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.about-copy h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 900; line-height: 1.7; letter-spacing: .04em; }
.about-text p { margin-bottom: 1.2em; font-size: 15px; }

/* ---------- service (top) ---------- */
.service { padding: 110px 0; background:
  radial-gradient(#dde5ef 2px, transparent 2px);
  background-size: 30px 30px;
  background-color: #e9eef5;
}
.svc-featured {
  display: grid; grid-template-columns: auto 1fr auto; gap: 30px;
  align-items: center;
  margin-bottom: 34px;
  border: 3px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
}
.svc-featured .svc-num { flex-direction: column; align-items: flex-start; }
.svc-featured .svc-num .num { font-size: 74px; }
.svc-featured h3 { font-size: clamp(26px, 3vw, 34px); }
.svc-visual img {
  display: block; width: 300px;
  aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 18px;
}
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-grid .svc-card { padding-top: 30px; }
.svc-thumb { margin: 0 0 20px; }
.svc-thumb img {
  display: block; width: 100%;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 16px;
}

/* ---------- works (top slider) ---------- */
.works { padding: 110px 0 120px; overflow: hidden; }
.works-lead { font-size: 15px; font-weight: 500; margin-bottom: 50px; }
.works-slider { overflow: hidden; }
.works-track {
  display: flex; gap: 26px; width: max-content;
  animation: marquee 45s linear infinite;
  padding: 10px 0 20px;
}
.works-slider:hover .works-track { animation-play-state: paused; }
.works-track .work-card { width: 340px; flex-shrink: 0; }
.works-track .work-card h3 { min-height: 3.2em; }
.works-more { text-align: center; margin-top: 20px; }

/* ---------- feature (top) ---------- */
.feature { padding: 110px 0; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.feature::before {
  content: ""; position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  border: 80px solid rgba(255,255,255,.04);
  top: -200px; right: -200px;
}
.feature .sec-catch { color: #fff; }
.feature-catch { max-width: 720px; margin-bottom: 60px; }
.feature-catch h3 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; line-height: 1.7; margin-bottom: 20px; }
.feature-catch p { font-size: 15px; color: #c2cde0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature .view-more { color: #fff; margin-top: 40px; }

/* ---------- company (top) ---------- */
.company { padding: 110px 0; }
.company-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.about-text .about-def { font-weight: 700; color: var(--navy); }
.company-text p { font-size: 15px; font-weight: 500; margin-bottom: 24px; }

/* ==========================================================
   responsive (トップ)
   ========================================================== */
@media (max-width: 860px) {
  .about-grid, .company-grid { grid-template-columns: 1fr; gap: 30px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-featured { grid-template-columns: 1fr; gap: 10px; }
  .svc-visual { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .news-inner { flex-direction: column; align-items: flex-start; gap: 8px; border-radius: var(--radius); }
  .news-item { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
}
