/* ============================================================
   Smart Value — トップページ専用スタイル
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: clip;
  padding: calc(var(--nav-h) + 40px) 0 90px;
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(16, 185, 129, 0.14), transparent 60%),
    radial-gradient(700px 520px at 8% 85%, rgba(6, 182, 212, 0.12), transparent 60%),
    radial-gradient(500px 400px at 70% 90%, rgba(249, 115, 22, 0.08), transparent 60%),
    #ffffff;
}
.hero .dot-field { opacity: 0.7; }

.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(70px);
  pointer-events: none; will-change: transform;
}
.hero-blob--1 {
  width: 480px; height: 480px; top: -120px; right: -80px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.22));
  animation: blobFloat 11s ease-in-out infinite alternate;
}
.hero-blob--2 {
  width: 360px; height: 360px; bottom: -100px; left: -120px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(251, 146, 60, 0.12));
  animation: blobFloat 13s ease-in-out infinite alternate-reverse;
}
@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 36px) scale(1.12); }
}

#globe-canvas {
  position: absolute; z-index: 1;
  top: 50%; right: -6%;
  width: min(58vw, 760px); height: min(58vw, 760px);
  translate: 0 -50%;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; }
.hero-content { max-width: 640px; }

.hero-title {
  /* どの画面幅でも1行に収める：折り返し禁止＋幅に応じて自動縮小 */
  white-space: nowrap;
  font-size: clamp(24px, 7vw, 58px);
  font-weight: 900; line-height: 1.32; letter-spacing: 0.02em;
  margin: 10px 0 14px;
}
.hero-title .ch {
  display: inline-block;
  opacity: 0; transform: translateY(1.1em) rotate(6deg);
}
.hero-title.chars-in .ch {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease, transform 0.9s var(--ease-expo);
  transition-delay: calc(var(--i) * 55ms);
}
.hero-title .zab { transition-delay: 1s; }
.hero-title.chars-in .zab { background-size: 100% 0.42em; }

.hero-en {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(14px, 1.8vw, 18px);
  letter-spacing: 0.16em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 26px 0 38px; max-width: 520px;
  color: var(--ink-soft); font-size: clamp(14.5px, 1.6vw, 16.5px);
}
.hero-lead strong { color: var(--green-deep); font-weight: 700; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ローダー完了後に順番にフェードインする要素 */
.hero-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.9s var(--ease-expo);
}
.hero-reveal.is-inview { opacity: 1; transform: none; }

.hero-scroll {
  position: absolute; z-index: 2;
  left: 50%; bottom: 26px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-en); font-size: 11px; font-weight: 700;
  letter-spacing: 0.3em; color: var(--ink-faint);
}
.hero-scroll svg { animation: scrollBounce 1.8s ease-in-out infinite; }
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(9px); opacity: 0.35; }
}

@media (max-width: 767px) {
  #globe-canvas {
    right: 50%; translate: 50% -50%;
    top: 42%;
    width: 120vw; height: 120vw;
    opacity: 0.35;
  }
  .hero-content { max-width: none; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ---------- 流れるタグ帯 ---------- */
.tagband {
  padding: 34px 0;
  background: linear-gradient(90deg, #052e16, #0f172a 55%, #083344);
  transform: rotate(-1.2deg) scale(1.03);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}
.tagband .marquee + .marquee { margin-top: 14px; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
  font-weight: 700; font-size: clamp(14px, 1.7vw, 17px);
  color: #f0fdf4;
}
.tag-pill::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--grad);
}
.tag-pill--orange::before { background: var(--grad-orange); }

/* ---------- NUMBERS ---------- */
.numbers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  position: relative; z-index: 1;
}
.num-card {
  background: #fff; border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px) clamp(22px, 3vw, 36px);
  text-align: center; box-shadow: var(--shadow-sm);
  border: 1px solid #eef1f5;
  transition: transform 0.45s var(--ease-expo), box-shadow 0.45s ease;
  position: relative; overflow: clip;
}
.num-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-expo) 0.3s;
}
.num-card:nth-child(2)::before { background: var(--grad-orange); }
.num-card.is-inview::before { transform: scaleX(1); }
.num-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.num-icon {
  width: 62px; height: 62px; margin: 0 auto 16px;
  border-radius: 18px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-deep);
}
.num-card:nth-child(2) .num-icon { background: var(--orange-soft); color: var(--orange-deep); }
.num-icon svg { width: 30px; height: 30px; }
.num-value {
  font-family: var(--font-en); font-weight: 800;
  font-size: clamp(38px, 5vw, 56px); line-height: 1.1;
  color: var(--ink); letter-spacing: 0.01em;
}
.num-value .num-unit { font-size: 0.45em; font-weight: 800; margin-left: 2px; font-family: var(--font-jp); }
.num-plus { color: var(--green-deep); font-size: 0.45em; font-family: var(--font-jp); font-weight: 800; }
.num-card:nth-child(2) .num-plus { color: var(--orange-deep); }
.num-label { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); font-weight: 500; }

@media (max-width: 767px) {
  .numbers-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- MISSION ---------- */
.mission { text-align: center; overflow: clip; }
.mission .sec-title--xl { line-height: 1.5; }
.mission-copy {
  margin: 34px auto 0; max-width: 720px;
  font-size: clamp(15px, 1.8vw, 17.5px); color: var(--ink-soft); line-height: 2.2;
}
.mission-swash { width: 190px; margin: 26px auto 0; color: var(--orange); }

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px);
}
.svc-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: calc(var(--radius) + 6px);
  overflow: clip; border: 1px solid #eef1f5;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-expo), box-shadow 0.5s ease;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.svc-media { position: relative; aspect-ratio: 16 / 9; overflow: clip; background: #e5e7eb; }
.svc-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-expo);
}
.svc-card:hover .svc-media img { transform: scale(1.08); }
.svc-num {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-family: var(--font-en); font-weight: 800; font-size: 14px;
  color: #fff; background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  padding: 6px 14px; border-radius: 999px; letter-spacing: 0.1em;
}
.svc-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc-en {
  font-family: var(--font-en); font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--green-deep);
}
.svc-card:nth-child(even) .svc-en { color: var(--orange-deep); }
.svc-name { font-size: clamp(19px, 2.2vw, 23px); font-weight: 800; }
.svc-copy { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.svc-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.svc-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid #e5e7eb; color: var(--ink);
  transition: background-color 0.35s, border-color 0.35s, color 0.35s, transform 0.4s var(--ease-expo);
}
.svc-card:hover .svc-arrow {
  background: var(--green-deep); border-color: var(--green-deep); color: #fff;
  transform: translateX(4px);
}
.svc-card:nth-child(even):hover .svc-arrow { background: var(--orange); border-color: var(--orange); }
.svc-link::after { content: ""; position: absolute; inset: 0; }

@media (max-width: 767px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- WHY US ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.why-card {
  position: relative;
  background: #fff; border-radius: calc(var(--radius) + 4px);
  border: 1px solid #eef1f5; box-shadow: var(--shadow-sm);
  padding: 54px 30px 34px;
  transition: transform 0.45s var(--ease-expo), box-shadow 0.45s ease;
}
.why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.point-ribbon {
  position: absolute; top: -12px; left: 26px;
  font-family: var(--font-en); font-weight: 800; font-size: 12.5px;
  letter-spacing: 0.12em; color: #fff;
  background: var(--orange); padding: 8px 18px 8px 16px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.35);
}
.why-card:nth-child(even) .point-ribbon {
  background: var(--green-deep);
  box-shadow: 0 6px 14px rgba(21, 128, 61, 0.3);
}
.why-icon {
  width: 74px; height: 74px; margin-bottom: 18px;
  color: var(--green-deep);
}
.why-card:nth-child(even) .why-icon { color: var(--orange-deep); }
.why-icon svg { width: 100%; height: 100%; }
.why-title { font-size: clamp(18px, 2vw, 21px); font-weight: 800; margin-bottom: 10px; line-height: 1.5; }
.why-text { font-size: 14.5px; color: var(--ink-soft); }

@media (max-width: 767px) {
  .why-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- PARTNERS ---------- */
.alibaba-card {
  position: relative;
  display: flex; align-items: center; gap: clamp(18px, 3vw, 34px);
  flex-wrap: wrap;
  background: linear-gradient(120deg, #052e16, #064e3b 55%, #083344);
  color: #fff;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(28px, 4vw, 46px) clamp(24px, 4vw, 50px);
  margin-bottom: 46px;
  overflow: clip;
  box-shadow: var(--shadow-lg);
}
.alibaba-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 85% 50%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 90% at 85% 50%, #000, transparent 70%);
}
.alibaba-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-en); font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em;
  background: var(--grad-orange); color: #fff;
  padding: 7px 16px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}
.alibaba-name { font-size: clamp(24px, 3.6vw, 38px); font-weight: 900; line-height: 1.35; }
.alibaba-name .en { display: block; font-size: 0.42em; font-weight: 700; color: #6ee7b7; letter-spacing: 0.2em; }
.alibaba-desc { font-size: 14px; color: #cbd5e1; max-width: 400px; }
.alibaba-main { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; flex: 1 1 320px; }

.partners-marquee-wrap { position: relative; }
.partners-marquee-wrap::before,
.partners-marquee-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 1;
  pointer-events: none;
}
.partners-marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-alt), transparent); }
.partners-marquee-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg-alt), transparent); }
.partner-chip {
  display: inline-flex; align-items: center; gap: 12px;
  white-space: nowrap;
  background: #fff; border: 1px solid #e8ecf1; border-radius: 999px;
  padding: 16px 30px;
  font-weight: 700; font-size: clamp(14px, 1.6vw, 16.5px);
  box-shadow: var(--shadow-sm);
}
.partner-chip::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px;
  background: var(--grad); rotate: 45deg; flex: none;
}
.partner-chip:nth-child(even)::before { background: var(--grad-orange); }

/* ---------- RECRUIT CTA ---------- */
.recruit-cta {
  position: relative; overflow: clip;
  background: var(--dark); color: #fff;
}
.recruit-bg {
  position: absolute; inset: 0;
}
.recruit-bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.34;
}
.recruit-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5, 46, 22, 0.92) 20%, rgba(15, 23, 42, 0.55) 75%, rgba(249, 115, 22, 0.25));
}
.recruit-inner { position: relative; z-index: 1; max-width: 700px; }
.recruit-title { color: #fff; }
.recruit-lead { margin-top: 24px; color: #d1fae5; font-size: clamp(14.5px, 1.7vw, 16.5px); max-width: 560px; }
.recruit-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 38px; }

/* ---------- CONTACT 2分割 CTA ---------- */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; }
.cta-panel {
  position: relative; overflow: clip;
  padding: clamp(64px, 9vw, 110px) clamp(28px, 5vw, 70px);
  color: #fff; display: block;
}
.cta-panel--contact { background: linear-gradient(130deg, #f97316, #fb923c 60%, #fdba74); }
.cta-panel--recruit { background: linear-gradient(130deg, #047857, #10b981 60%, #06b6d4); }
.cta-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000, transparent 75%);
  transition: transform 0.7s var(--ease-expo);
}
.cta-panel:hover::before { transform: scale(1.15); }
.cta-en {
  font-family: var(--font-en); font-weight: 800;
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.1;
}
.cta-jp { margin-top: 14px; font-size: clamp(15px, 1.8vw, 18px); font-weight: 700; }
.cta-sub { margin-top: 8px; font-size: 13.5px; opacity: 0.92; }
.cta-arrow {
  margin-top: 30px; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  transition: transform 0.4s var(--ease-expo);
}
.cta-panel--contact .cta-arrow { color: var(--orange-deep); }
.cta-panel--recruit .cta-arrow { color: var(--green-deep); }
.cta-panel:hover .cta-arrow { transform: translateX(8px) scale(1.06); }

@media (max-width: 767px) {
  .cta-split { grid-template-columns: 1fr; }
}
