/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #5ea8e2;
  --blue-dark: #3d8fd4;
  --blue-light: #ebf5ff;
  --dark: #1a1a2e;
  --dark-2: #2d2d4a;
  --gray: #6b7280;
  --gray-light: #f4f6f8;
  --white: #ffffff;
  --radius-card: 32px;
  --radius-btn: 9999px;
  --font: 'TBGothic Std', 'Noto Sans JP', sans-serif;
  --font-midashi: 'A P-OTF Midashi Go MB31 Pr6N', 'TBGothic Std', sans-serif;
  --font-biryani: 'Biryani', sans-serif;
  --max-w: 1360px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== Container ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(94,168,226,0.25); }
.btn:active { transform: translateY(0); }

.btn-sm  { font-size: 16px; padding: 8px 32px; height: 48px; }
.btn-lg  { font-size: 20px; padding: 18px 56px; height: 63px; min-width: 240px; }
.btn-full { width: 100%; }

.btn-blue         { background: var(--blue); color: var(--white); }
.btn-blue:hover   { background: var(--blue-dark); }
.btn-outline-blue { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue-light); }
.btn-white        { background: var(--white); color: var(--blue); }
.btn-white:hover  { opacity: 0.9; }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }
.btn-blue-white-border { background: var(--blue); color: var(--white); border-color: var(--white); }
.btn-blue-white-border:hover { background: var(--blue-dark); }
.btn-midashi { font-family: var(--font-midashi); font-weight: 700; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  z-index: 100;
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.header-inner {
  width: 100%;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: 32px;
}
.nav-link {
  font-family: 'TBGothic Std', 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-link:hover { background: var(--blue-light); }

.header-left  { display: flex; align-items: center; }
.header-right { display: flex; gap: 8px; align-items: center; }

/* ===== Hero ===== */
.hero {
  padding-top: var(--header-h);
  padding-bottom: 0;
  padding-left: 40px;
  padding-right: 40px;
  background: var(--white);
  width: 100%;
}

.hero-card {
  width: 100%;
  margin: 16px 0 0;
  height: calc(100vh - var(--header-h) - 16px);
  min-height: calc(100vh - var(--header-h) - 16px);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  background: var(--blue);
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video-overlay {
  display: none;
}

/* decorative orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
  z-index: 2;
}
.hero-orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,255,255,0.6), transparent 70%);
  right: 80px; top: -80px;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.4), transparent 70%);
  right: 300px; bottom: 0;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 70%);
  right: 140px; top: 200px;
}

.hero-content {
  position: absolute;
  top: 0; left: 41px; bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  padding: 0 24px;
}

.hero-copy { display: flex; flex-direction: column; gap: 24px; color: var(--white); }

.hero-title {
  font-family: 'TBGothic Std', 'Noto Sans JP', sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}
.hero-title-line { display: block; overflow: hidden; }

.hero-desc {
  font-family: 'TBGothic Std', 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: normal;
  color: rgba(255,255,255,0.92);
  max-width: 540px;
  white-space: normal;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  font-family: var(--font-biryani);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}
.text-blue { color: var(--blue); }
.section-desc {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.8;
}

/* ===== About ===== */
.about {
  background: var(--white);
  padding: 48px 0 144px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.about-section-label {
  width: 100%;
  padding: 16px 40px;
}
.about-eyebrow {
  font-family: var(--font-biryani);
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.05em;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 100%;
}

.about-video-wrap {
  position: relative;
  width: 1124px;
  height: 627px;
  flex-shrink: 0;
}
.about-video-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.about-play-btn {
  position: absolute;
  left: 512px;
  top: 264px;
  width: 100px;
  height: 100px;
  cursor: pointer;
}
.about-play-btn {
  background: none;
  border: none;
  padding: 0;
  transition: transform 0.2s ease, opacity 0.3s ease;
}
.about-play-btn:hover { transform: scale(1.08); }

/* 再生中はホバー時のみ表示 */
.about-video-wrap.is-playing .about-play-btn { opacity: 0; }
.about-video-wrap.is-playing:hover .about-play-btn { opacity: 1; }

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.about-heading-wrap {
  position: relative;
  width: 334.5px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-logo-hito {
  position: absolute;
  left: 0;
  top: 0;
  width: 237px;
  height: 77px;
  object-fit: contain;
  display: block;
}
.about-heading-towa {
  position: absolute;
  left: 254.5px;
  top: 9px;
  font-family: 'TBGothic Std', 'Noto Sans JP', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 2.4;
  color: #0d1a2a;
  white-space: nowrap;
}

.about-desc {
  font-family: 'TBGothic Std', 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 2.4;
  color: #0d1a2a;
  text-align: center;
  white-space: nowrap;
}
.about-desc p { margin: 0; }

/* ===== Stats ===== */
.stats {
  background: var(--dark);
  padding: 80px 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  color: var(--white);
  padding: 20px;
}

.stat-number {
  font-size: 64px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}
.stat-unit {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
}
.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ===== Use Cases ===== */
.usecase {
  padding: 120px 0;
  background: var(--gray-light);
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.usecase-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.usecase-card.is-visible { opacity: 1; transform: translateY(0); }
.usecase-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }

.usecase-card--large { grid-column: span 2; }
.usecase-card--large .usecase-card-inner { display: flex; }
.usecase-card--large .usecase-img { width: 55%; min-height: 280px; flex-shrink: 0; }

.usecase-card-inner { height: 100%; }
.usecase-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

/* placeholder gradients for usecase images */
.usecase-img-hotel   { background: linear-gradient(135deg, #74b9e8 0%, #3d8fd4 100%); }
.usecase-img-retail  { background: linear-gradient(135deg, #f9d3b3 0%, #f0a06a 100%); }
.usecase-img-medical { background: linear-gradient(135deg, #b3e8d5 0%, #4cbf95 100%); }
.usecase-img-office  { background: linear-gradient(135deg, #d0c9f5 0%, #8b7fe8 100%); }

.usecase-content { padding: 28px 32px; }
.usecase-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 12px;
}
.usecase-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.usecase-text  { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ===== How It Works ===== */
.howitworks {
  padding: 120px 0;
  background: var(--white);
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 40px 32px;
  border-radius: 20px;
  background: var(--gray-light);
  opacity: 0;
  transform: translateY(20px);
}
.step.is-visible { opacity: 1; transform: translateY(0); }

.step-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--blue);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}
.step-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-text  { font-size: 14px; color: var(--gray); line-height: 1.7; }

.step-arrow {
  flex-shrink: 0;
  padding: 0 16px;
  opacity: 0;
}
.step-arrow.is-visible { opacity: 1; }

/* ===== Pricing ===== */
.pricing {
  padding: 120px 0;
  background: var(--gray-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 36px;
  border: 2px solid transparent;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card.is-visible { opacity: 1; transform: translateY(0); }
.pricing-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

.pricing-card--featured {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(94,168,226,0.2);
  transform: translateY(-8px);
}
.pricing-card--featured.is-visible { transform: translateY(-8px); }
.pricing-card--featured:hover { transform: translateY(-12px); }

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 9999px;
  white-space: nowrap;
}

.pricing-header { margin-bottom: 32px; }
.pricing-plan-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray);
  display: block;
  margin-bottom: 12px;
}
.pricing-price { display: flex; align-items: baseline; gap: 4px; }
.pricing-amount { font-size: 36px; font-weight: 900; }
.pricing-period { font-size: 14px; color: var(--gray); }

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-features li {
  font-size: 14px;
  padding-left: 24px;
  position: relative;
  color: var(--dark);
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--blue);
  border-radius: 50%;
}
.pricing-features li.disabled { color: var(--gray); opacity: 0.5; }
.pricing-features li.disabled::before { background: var(--gray); }

/* ===== FAQ ===== */
.faq {
  padding: 120px 0;
  background: var(--white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  opacity: 0;
  transform: translateY(20px);
}
.faq-item.is-visible { opacity: 1; transform: translateY(0); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--dark);
  gap: 16px;
}
.faq-question:hover { color: var(--blue); }

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  display: flex;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  padding-bottom: 24px;
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0 100px;
  background: var(--white);
}

.cta-card {
  background: var(--blue);
  border-radius: var(--radius-card);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}
.cta-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, white, transparent 70%);
  right: -80px; top: -120px;
}
.cta-orb-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, white, transparent 70%);
  left: -40px; bottom: -80px;
}

.cta-content { position: relative; z-index: 2; }
.cta-title {
  font-size: 44px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 20px;
}
.cta-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 40px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  padding: 64px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand {
  flex-shrink: 0;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 60px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ScrollTrigger targets — GSAP manages opacity/transform via fromTo */
