/* ==========================================================================
   Design Tokens & Modern CSS Reset
   ========================================================================== */
:root {
  --color-primary-green: #06c755;
  --color-dark-green: #00993a;
  --color-light-green: #eafaf1;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-text-sub: #475569;
  --color-red-profit: #e60012;
  --color-white: #ffffff;
  --color-card-bg: #ffffff;
  
  --font-family-base: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --font-family-number: 'Outfit', 'Noto Sans JP', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 0, 0, 0.2);
  --shadow-popup: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(6, 199, 85, 0.25);
  --shadow-btn: 0 8px 20px rgba(6, 199, 85, 0.4), inset 0 2px 2px rgba(255, 255, 255, 0.5);
  --shadow-btn-hover: 0 12px 28px rgba(6, 199, 85, 0.6), inset 0 2px 3px rgba(255, 255, 255, 0.7);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-base);
  color: var(--color-text-main);
  background-color: #0d130e;
  background-image: url('../assets/img/bg.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 10px;
}

/* ==========================================================================
   Main App Container
   ========================================================================== */
#app-wrapper {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  transition: filter var(--transition-normal), opacity var(--transition-normal);
}

/* When popup is active, darken and slightly blur main content */
body.modal-open #app-wrapper {
  filter: brightness(0.65) blur(2px);
  pointer-events: none;
  user-select: none;
}

.main-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 36px 20px 28px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.header-section {
  text-align: center;
  margin-bottom: 24px;
}

.badge-pill {
  display: inline-block;
  background: #008736;
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 7px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(0, 135, 54, 0.25);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  padding: 0 4px;
}

.leaf-decor {
  width: 42px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}

.main-title {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.35;
  color: #111827;
  letter-spacing: -0.02em;
}

.highlight-green {
  color: #009933;
}

.highlight-line {
  color: var(--color-primary-green);
  font-weight: 900;
}

/* ==========================================================================
   Expert Carousel Section
   ========================================================================== */
.expert-section {
  position: relative;
  margin: 0 -4px 32px;
  padding: 10px 0;
}

.carousel-outer {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: 4px;
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-spring);
  will-change: transform;
}

.expert-slide {
  flex: 0 0 100%;
  padding: 0 4px;
  display: flex;
  justify-content: center;
}

/* Multiple cards on desktop preview or 3-column layout */
@media (min-width: 540px) {
  .expert-slide {
    flex: 0 0 33.333%;
  }
}

.expert-card {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #eef2f6;
  background: #ffffff;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.expert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.expert-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Navigation Arrow Buttons */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 10;
  transition: transform var(--transition-fast), filter var(--transition-fast);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.nav-arrow:hover {
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.nav-arrow.prev {
  left: -14px;
}

.nav-arrow.next {
  right: -14px;
}

/* Indicator Dots */
.dots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  background: #009933;
  width: 22px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Core Feature Advantages Section
   ========================================================================== */
.feature-section {
  margin-bottom: 28px;
}

.feature-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 24px;
  line-height: 1.4;
}

.feature-title .green-accent {
  color: #008736;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 4px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #fafcfb;
  border: 1px solid #edf5f0;
  transition: all var(--transition-fast);
}

.feature-item:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
  transform: translateX(4px);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-content {
  flex: 1;
}

.feature-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.35;
}

.feature-desc {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.5;
}

/* ==========================================================================
   Primary CTA Button Section
   ========================================================================== */
.cta-section {
  text-align: center;
  margin: 32px 0 36px;
  padding: 0 4px;
}

.btn-line-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 22px;
  background: linear-gradient(180deg, #0adb5f 0%, #00a843 100%);
  color: var(--color-white);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
  animation: pulse-glow 2.5s infinite;
}

.btn-line-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  animation: shimmer 3.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  30%, 100% { left: 200%; }
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.45);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(6, 199, 85, 0.7);
  }
}

.btn-line-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-btn-hover);
}

.btn-line-cta:active {
  transform: translateY(1px) scale(0.99);
}

.cta-line-icon {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00a843;
  font-weight: 900;
  font-size: 0.72rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.cta-text {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

.cta-arrow-circle {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00a843;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.trust-subtext {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ==========================================================================
   Success Case Studies Section
   ========================================================================== */
.cases-section {
  position: relative;
  margin-bottom: 24px;
}

.cases-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.wave-decor {
  width: 32px;
  height: 8px;
  background-image: radial-gradient(circle at 4px 4px, #009933 2px, transparent 2px);
  background-size: 8px 8px;
  opacity: 0.8;
}

.cases-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #111827;
  text-align: center;
}

.cases-carousel {
  position: relative;
}

.cases-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 14px;
  scrollbar-width: none;
}

.cases-grid::-webkit-scrollbar {
  display: none;
}

.case-card-item {
  flex: 0 0 calc(33.333% - 8px);
  min-width: 155px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
  background: #ffffff;
  transition: transform var(--transition-fast);
}

@media (max-width: 480px) {
  .case-card-item {
    flex: 0 0 calc(50% - 6px);
  }
}

.case-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.case-card-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Footer Disclaimer
   ========================================================================== */
.footer-disclaimer {
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.footer-disclaimer p {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ==========================================================================
   Modal Dialog (High-Brightness Popup + Dark Mask)
   ========================================================================== */
#popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

#popup-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-dialog-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-popup);
  padding: 44px 24px 28px;
  text-align: center;
  transform: scale(0.88) translateY(20px);
  transition: transform var(--transition-spring);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

#popup-modal.show .modal-dialog-card {
  transform: scale(1) translateY(0);
}

/* Modal Close Button (Top Right ✕) */
.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

/* Big Top LINE Badge */
.modal-line-badge {
  width: 80px;
  height: 80px;
  background: #06c755;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -80px auto 16px;
  box-shadow: 0 10px 25px rgba(6, 199, 85, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  border: 4px solid #ffffff;
}

.modal-line-badge svg {
  width: 48px;
  height: 48px;
  fill: #ffffff;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 12px;
}

.modal-dots-divider {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 16px;
}

.modal-dots-divider span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06c755;
}

.modal-description {
  font-size: 0.94rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 500;
}

.modal-description .green-text {
  color: #009933;
  font-weight: 700;
}

/* Modal CTA Button */
.btn-modal-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(180deg, #00bd4b 0%, #00993a 100%);
  color: var(--color-white);
  font-size: 1.15rem;
  font-weight: 900;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

.btn-modal-cta:active {
  transform: translateY(1px);
}

.modal-line-chip {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00993a;
  font-size: 0.65rem;
  font-weight: 900;
  flex-shrink: 0;
}

.modal-trust-footer {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 14px;
}
