/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: #1e293b;
  background: #ffffff;
  overflow-x: hidden;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37,99,235,0.08);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 600px;
  line-height: 1.8;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HEADER / NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
.header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { height: 44px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s;
  position: relative;
}
.nav a:hover { color: #2563eb; }
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s;
}
.nav a:hover::after { width: 100%; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.4);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid #2563eb;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-2px);
}

/* ===== MOBILE MENU ===== */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  animation: float1 8s ease-in-out infinite;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
  animation: float2 10s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.1); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.05); }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 24px;
}
.hero-text h1 .gradient-text {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.hero-text p {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero visual - floating cards */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}
.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-card:hover { transform: translateY(-8px) !important; }
.hero-card-main {
  width: 320px;
  z-index: 3;
  animation: cardFloat 6s ease-in-out infinite;
}
.hero-card-side1 {
  width: 240px;
  top: 20px;
  right: -10px;
  z-index: 2;
  animation: cardFloat 6s ease-in-out infinite 1s;
}
.hero-card-side2 {
  width: 220px;
  bottom: 40px;
  left: -20px;
  z-index: 1;
  animation: cardFloat 6s ease-in-out infinite 2s;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.card-icon-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.card-icon-cyan { background: linear-gradient(135deg, #cffafe, #a5f3fc); }
.card-icon-violet { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.card-title { font-size: 0.95rem; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.card-desc { font-size: 0.8rem; color: #94a3b8; line-height: 1.6; }
.card-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  margin-top: 12px;
}
.card-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, #2563eb, #60a5fa);
  animation: barGrow 2s ease-out forwards;
  transform-origin: bottom;
}
@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: 120px 0;
  background: #f8fafc;
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}
.services-header {
  text-align: center;
  margin-bottom: 64px;
}
.services-header .section-subtitle { margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.8;
}
.service-card-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 40px;
}
.service-card-wide .service-card-wide-body { flex: 1; }
.service-card-wide .service-card-wide-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.service-card-wide .service-card-wide-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  background: #eff6ff;
  color: #2563eb;
}
.service-card-product {
  text-decoration: none;
  color: inherit;
}
.service-card-product:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
  border-color: transparent;
}
.service-card-product:hover::before { opacity: 1; }
.service-product-name {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
}
.service-card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
}

/* ===== FEATURES / STRENGTHS ===== */
.features {
  padding: 120px 0;
  position: relative;
}
.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.features-list { display: flex; flex-direction: column; gap: 32px; }
.feature-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: 16px;
  transition: background 0.3s;
}
.feature-item:hover { background: #f8fafc; }
.feature-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}
.feature-item p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.7;
}

/* Visual dashboard mockup */
.features-visual {
  position: relative;
  background: linear-gradient(135deg, #f0f7ff, #ecfeff);
  border-radius: 24px;
  padding: 40px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.dash-title { font-size: 0.85rem; font-weight: 700; color: #0f172a; }
.dash-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  padding: 4px 12px;
  border-radius: 100px;
}
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.dash-metric {
  background: #fff;
  padding: 20px 16px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.dash-metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}
.dash-metric-label {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 4px;
  font-weight: 500;
}
.dash-graph {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.dash-graph-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 16px;
}
.dash-graph-svg { width: 100%; height: 100px; }

/* ===== COMPANY SECTION ===== */
.company {
  padding: 120px 0;
  background: #f8fafc;
}
.company-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.company-info .section-subtitle { margin-bottom: 32px; }
.company-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.value-card {
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  transition: all 0.3s;
}
.value-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 24px rgba(37,99,235,0.08);
}
.value-icon { font-size: 1.5rem; margin-bottom: 12px; }
.value-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}
.value-card p { font-size: 0.82rem; color: #64748b; line-height: 1.7; }
.company-table {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.company-table-header {
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  color: #fff;
  padding: 28px 32px;
  font-size: 1.1rem;
  font-weight: 700;
}
.company-table table {
  width: 100%;
  border-collapse: collapse;
}
.company-table td {
  padding: 18px 32px;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}
.company-table tr:last-child td { border-bottom: none; }
.company-table td:first-child {
  font-weight: 600;
  color: #475569;
  width: 30%;
  white-space: nowrap;
  background: #fafbfc;
}
.company-table td:last-child { color: #1e293b; }

/* ===== CTA / CONTACT SECTION ===== */
.cta {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
  border-radius: 32px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(37,99,235,0.2) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(6,182,212,0.15) 0%, transparent 50%);
  animation: ctaGlow 8s ease-in-out infinite;
}
@keyframes ctaGlow {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(5deg); }
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.cta-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #fff;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid #e2e8f0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0f172a;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 0.85rem;
  color: #64748b;
  transition: color 0.2s;
}
.footer-col a:hover { color: #2563eb; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid #f1f5f9;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 380px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-layout { grid-template-columns: 1fr; gap: 48px; }
  .company-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header { background: rgba(255,255,255,0.98); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav { display: none; }
  .nav.show { display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: #fff; padding: 16px 24px 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); gap: 0; z-index: 999; }
  .nav a { padding: 14px 0; border-bottom: 1px solid #f1f5f9; font-size: 1rem; }
  .nav a:last-child { border-bottom: none; }
  .mobile-toggle { display: flex; }
  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero-text h1 { font-size: clamp(1.5rem, 7.5vw, 2.2rem); }
  .hero-text h1 .gradient-text { white-space: nowrap; }
  .services-grid { grid-template-columns: 1fr; }
  .company-values { grid-template-columns: 1fr; }
  .dash-metrics { grid-template-columns: 1fr; }
  .cta-box { padding: 48px 28px; border-radius: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ===== NEWS SECTION (HOME) ===== */
.news-section { padding: 120px 0; background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.news-header { text-align: center; margin-bottom: 48px; }
.news-list { max-width: 800px; margin: 0 auto; }
.news-row {
  display: flex; gap: 24px; align-items: baseline;
  padding: 20px 16px; border-bottom: 1px solid #f1f5f9;
  text-decoration: none; border-radius: 8px; transition: background 0.2s;
}
.news-row:hover { background: #f8fafc; }
.news-row-date { font-size: 0.82rem; color: #94a3b8; white-space: nowrap; font-variant-numeric: tabular-nums; }
.news-row-title { font-size: 0.95rem; color: #1e293b; font-weight: 500; line-height: 1.6; }
.news-more { text-align: center; margin-top: 40px; }

/* ===== CONTACT FORM IN CTA ===== */
.cta-box-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}
.cta-box-form .cta-content p { margin: 0; }
.contact-form { position: relative; z-index: 1; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.cf-group { margin-bottom: 12px; }
.cf-group label { display: block; font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.cf-req { color: #f87171; }
.cf-group input,
.cf-group textarea {
  width: 100%; padding: 10px 14px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px; color: #fff; font-size: 0.88rem; font-family: inherit;
  transition: border-color 0.2s, background 0.2s; box-sizing: border-box;
}
.cf-group input::placeholder, .cf-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.cf-group input:focus, .cf-group textarea:focus { outline: none; border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.15); }
.cf-group textarea { resize: vertical; min-height: 100px; }

/* ===== BANNERS ===== */
.submit-banner {
  position: fixed; top: 72px; left: 0; right: 0; z-index: 999; color: #fff;
}
.submit-banner-ok { background: #16a34a; }
.submit-banner-err { background: #dc2626; }
.submit-banner .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; font-size: 0.9rem; font-weight: 500; }
.submit-banner button { background: none; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; opacity: 0.7; }
.submit-banner button:hover { opacity: 1; }

@media (max-width: 768px) {
  .cta-box-form { grid-template-columns: 1fr; gap: 32px; }
  .cf-row { grid-template-columns: 1fr; }
}
