/* ==========================================================================
   Promedic Business LP Design System (和モダン & プレミアム)
   ========================================================================== */

/* Google Fonts & Base CSS Variable Definitions */
:root {
  /* Colors */
  --bg-dark: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.65);
  --bg-card-hover: rgba(255, 255, 255, 0.85);
  
  --color-navy: #0c2340;
  --color-gold: #b38f56; /* Richer gold for white BG readability */
  --color-gold-bright: #9c7843;
  --color-crimson: #c8102e; /* Richer crimson for white BG readability */
  
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #64748b; /* Slate 500 */
  
  /* Fonts */
  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Inter", "Noto Sans JP", sans-serif;
  
  /* Header & UI */
  --header-height: 80px;
  --border-glass: rgba(15, 23, 42, 0.08);
  --border-gold: rgba(179, 143, 86, 0.25);
  --border-gold-hover: rgba(156, 120, 67, 0.6);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f1f5f9 100%);
}

/* ==========================================================================
   Typography & Global Elements
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

p {
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Elegant Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(197, 168, 128, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* ==========================================================================
   Navigation (Glassmorphism Header)
   ========================================================================== */

.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-img {
  height: 26px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.logo-img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.08));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-gold);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-btn {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 10px 24px;
  border: 1px solid var(--color-gold);
  border-radius: 50px;
  background: rgba(197, 168, 128, 0.05);
  color: var(--color-gold);
}

.nav-link-btn:hover {
  background: var(--color-gold);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(197, 168, 128, 0.4);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
}

.hero-content {
  max-width: 1000px;
  z-index: 10;
}

.hero-tag-container {
  margin-bottom: 24px;
}

.hero-tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--color-gold-bright);
  border: 1px solid var(--border-gold);
  padding: 6px 20px;
  border-radius: 50px;
  background: rgba(197, 168, 128, 0.03);
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.serif-title {
  color: var(--text-primary);
  font-weight: 700;
  text-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.sub-title {
  font-size: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--color-gold), #8e6c38);
  color: #ffffff;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(179, 143, 86, 0.25);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(179, 143, 86, 0.4);
  background: linear-gradient(135deg, var(--color-gold-bright), var(--color-gold));
}

.btn-primary .btn-icon {
  transition: var(--transition-fast);
}

.btn-primary:hover .btn-icon {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text-primary);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(5px);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--color-navy);
  background: rgba(15, 23, 42, 0.05);
  transform: translateY(-3px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.6;
}

.hero-scroll-indicator .mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  position: relative;
}

.hero-scroll-indicator .wheel {
  width: 4px;
  height: 8px;
  background-color: var(--color-gold);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

/* ==========================================================================
   Container & Bento Grid Layout
   ========================================================================== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 40px 150px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

/* Bento Card Styles */
.bento-card {
  position: relative;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-inner {
  padding: 50px;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 2;
  position: relative;
}

/* Glow Effect */
.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(197, 168, 128, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.bento-card:hover .card-glow {
  opacity: 1;
}

.bento-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(197, 168, 128, 0.1);
}

/* Bento Sizing */
.card-large {
  grid-column: span 2;
}

.card-medium {
  grid-column: span 1;
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: 24px;
  display: block;
}

/* Card - Vision (Large) */
.card-vision h2 {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.4;
}

.vision-text {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.vision-text strong {
  color: var(--color-gold-bright);
  font-weight: 600;
}

.vision-visual {
  margin-top: auto;
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.visual-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-gold);
  box-shadow: 0 0 20px rgba(197, 168, 128, 0.2);
  z-index: 2;
  background: var(--bg-dark);
}

.visual-line-glow {
  position: absolute;
  left: 70px;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold) 0%, transparent 100%);
  opacity: 0.6;
}

/* Card - Why AX (Medium) */
.card-why-ax h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.why-text {
  font-size: 1rem;
  margin-bottom: 20px;
}

.why-text strong {
  color: var(--color-gold-bright);
}

/* Card - Features (Large) */
.card-features h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 30px;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

.feature-item:hover {
  background: rgba(197, 168, 128, 0.04);
  border-color: rgba(197, 168, 128, 0.1);
  transform: translateX(5px);
}

.feature-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-gold-bright);
  line-height: 1;
}

.feature-body h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.feature-body p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Card - Service & Program (Medium) */
.card-service {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(179, 143, 86, 0.1) 100%);
  border: 1px solid rgba(179, 143, 86, 0.25);
}

.card-service h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.service-text {
  font-size: 0.95rem;
  margin-bottom: 30px;
  flex-grow: 1;
}

.service-action {
  margin-top: auto;
}

.btn-service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-navy);
  border-bottom: 1px solid rgba(15, 23, 42, 0.15);
  padding-bottom: 6px;
  width: 100%;
  justify-content: space-between;
}

.btn-service-link:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-service-link:hover .arrow-icon {
  transform: translateX(5px);
}

.arrow-icon {
  transition: var(--transition-fast);
}

/* Card - Company Profile (Large) */
.card-profile h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.table-container {
  width: 100%;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table th, .profile-table td {
  padding: 20px 0;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: top;
}

.profile-table tr:last-child th, 
.profile-table tr:last-child td {
  border-bottom: none;
}

.profile-table th {
  width: 25%;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}

.profile-table td {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.profile-table td ul {
  list-style: none;
}

.profile-table td ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.profile-table td ul li:last-child {
  margin-bottom: 0;
}

.profile-table td ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-gold);
  font-size: 0.8rem;
}

/* Card - Contact (Medium) */
.card-contact {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(200, 16, 46, 0.04) 100%);
  border: 1px solid rgba(200, 16, 46, 0.22);
}

.card-contact h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.contact-text {
  font-size: 0.95rem;
  margin-bottom: 30px;
  flex-grow: 1;
}

.contact-action {
  margin-top: auto;
}

.btn-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-crimson);
  border-bottom: 1px solid rgba(200, 16, 46, 0.18);
  padding-bottom: 6px;
  width: 100%;
  justify-content: space-between;
}

.btn-contact-link:hover {
  color: #e63946;
  border-color: #e63946;
  text-shadow: 0 2px 8px rgba(200, 16, 46, 0.1);
}

.btn-contact-link:hover .arrow-icon {
  transform: translateX(5px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  border-top: 1px solid var(--border-glass);
  padding: 60px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-logo-img {
  height: 20px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.footer-logo-img:hover {
  opacity: 1;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}



/* ==========================================================================
   Scroll Animations & Keyframes
   ========================================================================== */

/* Keyframe Animations */
@keyframes scrollWheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  60% { opacity: 0; transform: translate(-50%, 15px); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

@keyframes pulseGold {
  0% { transform: scale(1); opacity: 0.8; text-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
  50% { transform: scale(1.1); opacity: 1; text-shadow: 0 0 15px rgba(212, 175, 55, 0.8); }
  100% { transform: scale(1); opacity: 0.8; text-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
}



/* Entry Animations for Hero Elements */
.fade-in-el {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-tag-container.fade-in-el { animation-delay: 0.1s; }
.hero h1.fade-in-el { animation-delay: 0.3s; }
.hero-lead.fade-in-el { animation-delay: 0.5s; }
.hero-cta-group.fade-in-el { animation-delay: 0.7s; }

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Native CSS Scroll-driven Animations */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes revealCard {
      from {
        opacity: 0;
        transform: translateY(60px) scale(0.96);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    
    .scroll-reveal {
      animation: revealCard auto linear forwards;
      animation-timeline: view();
      animation-range: entry 5% cover 30%;
    }
  }
}

/* Fallback Scroll Animations (IntersectionObserver) */
.scroll-reveal.fallback-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Base state for fallback */
.scroll-reveal {
  /* JS matches this if no CSS Scroll support */
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .nav-container {
    padding: 0 30px;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-large {
    grid-column: span 2;
  }
  
  .card-medium {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .nav-links {
    display: none; /* In a real product we would have a burger menu, but for simple LP, we keep it clean */
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .sub-title {
    font-size: 1.25rem;
  }
  
  .container {
    padding: 60px 20px 100px;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card-large, .card-medium {
    grid-column: span 1;
  }
  
  .card-inner {
    padding: 30px;
  }
  
  .card-vision h2, .card-profile h3, .card-service h3, .card-contact h3 {
    font-size: 1.5rem;
  }
  
  .profile-table th {
    width: 30%;
    font-size: 0.95rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
