/* ===================================
   TASTAS Landing Page Styles - Type 3 (Premium)
   Target: 30s Women, Nurses/Care Workers
   Theme: Friendly, Premium, Rich
   =================================== */

/* CSS Custom Properties */
:root {
  /* Colors - Red/White/Yellow/Black Theme */
  --color-main: #E60012;
  /* Main/Emphasis */
  --color-main-light: #FF4D5B;
  --color-white: #FFFFFF;
  /* Base */
  --color-sub: #FFDD00;
  /* Sub - slightly warmer yellow */
  --color-text: #222222;
  /* Text - Softer than pure black */
  --color-text-light: #666666;
  --color-bg-light: #FAFAFA;
  /* Slightly off-white for background depth */

  /* Gradients */
  --gradient-main: linear-gradient(135deg, #E60012 0%, #FF2E3E 100%);
  --gradient-gold: linear-gradient(135deg, #FFDD00 0%, #FFCC00 100%);
  --gradient-premium: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);

  /* Typography */
  --font-base: 'Noto Sans JP', sans-serif;
  --font-accent: 'Zen Kaku Gothic New', sans-serif;
  --font-hand: 'Caveat', cursive;

  /* Spacing */
  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 32px;
  --sp-lg: 64px;
  --sp-xl: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 20px;
  --radius-lg: 40px;
  --radius-pill: 9999px;

  /* Shadows - Premium Soft Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(230, 0, 18, 0.15);
  /* Red tinted shadow */
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.8;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===================================
   Components
   =================================== */
.container {
  width: 100%;
  padding: 0 var(--sp-sm);
  margin: 0 auto;
}

/* Buttons */
.btn-line-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  background: var(--color-text);
  /* Black for premium contrast */
  color: var(--color-white);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-line-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  padding: 20px;
  background: var(--gradient-gold);
  /* Yellow sub color */
  color: var(--color-text);
  font-size: 18px;
  font-weight: 900;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-line-cta::after {
  content: '>';
  display: inline-block;
  margin-left: 10px;
  font-family: monospace;
  font-weight: bold;
}

.btn-line-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 215, 0, 0.5);
  background: #FFE650;
  /* Lighter yellow */
}


/* ===================================
   Header
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Logo Wrapper & Image */
.logo-wrapper {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 48px;
  /* Adjustable based on logo aspect ratio */
  width: auto;
  display: block;
}


/* ===================================
   Hero Section
   =================================== */
.hero {
  padding: 100px 20px 30px;
  /* Reduced bottom padding from 60px to 30px */
  text-align: center;
  background: radial-gradient(circle at 50% 30%, #FFF5F5 0%, #FFFFFF 70%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: var(--color-sub);
  filter: blur(80px);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.hero-images {
  margin-bottom: 30px;
  position: relative;
}

.hero-composite-image {
  margin: 0 auto;
  border-radius: 20px;
  /* Soften image */
  /* box-shadow: var(--shadow-lg); Remove shadow if it clashes with image content, but usually good */
}

/* Old badge removed, new bottom badge added */
.hero-badge-bottom {
  width: 120px;
  margin: 60px auto 0;
  /* Increased margin for better separation */
}

.hero-title {
  margin-bottom: 20px;
}

.hero-title img {
  margin: 0 auto;
}

.hero-description {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 40px;
}


/* ===================================
   Problem Section
   =================================== */
.problem {
  padding: 60px 20px;
}

.problem-box {
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.02);
  position: relative;
}

.problem-header {
  margin-bottom: 40px;
  text-align: center;
}

.problem-title-wrapper {
  margin-bottom: 0;
  /* Reduced to bring text closer */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  /* Adjust gap between brackets and text */
}

.problem-title {
  color: var(--color-main);
  /* Red emphasis */
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 0;
  /* Ensure no bottom margin on h2 */
}

.problem-subtitle {
  font-size: 18px;
  font-weight: 700;
  margin-top: 5px;
  /* Slight gap */
}

.problem-list {
  display: grid;
  gap: 20px;
  margin-bottom: 50px;
}

.problem-item {
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.check-icon {
  width: 20px;
  height: 20px;
}

.check-icon rect {
  fill: var(--color-main);
  stroke: none;
}

.check-icon path {
  stroke: var(--color-white);
}


.problem-solution {
  text-align: center;
  position: relative;
}

.solution-lead {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.solution-line {
  margin: 0 auto 30px;
  display: block;
}

.solution-line path {
  stroke: var(--color-sub);
  /* Yellow line/underline */
  stroke-width: 4px;
}

.solution-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-main);
  margin-bottom: 30px;
}

/* Solution Image & Circle Layout */
.solution-image {
  width: 180px;
  /* Outer container size */
  height: 180px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dotted-border-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: spin 30s linear infinite;
  z-index: 0;
  /* Behind image */
}

.dotted-border-circle circle {
  stroke: var(--color-sub);
}

.solution-image img {
  width: 80%;
  /* Fit inside the circle */
  height: 80%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
  z-index: 1;
  /* Above circle */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


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

.section-label {
  display: block;
  font-family: var(--font-accent);
  /* Changed from hand to accent */
  color: var(--color-sub);
  font-size: 16px;
  /* Reduced size for elegance */
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.section-title {
  font-size: 28px;
  color: var(--color-text);
}

.section-title .text-accent {
  color: var(--color-main);
}

.section-title .text-large {
  font-size: 1.5em;
  color: var(--color-main);
}


/* ===================================
   Values Section
   =================================== */
.values {
  padding: 80px 20px;
  background: var(--color-white);
  max-width: 800px;
  margin: 0 auto;
}

.value-cards {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  padding-bottom: 20px;

  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.value-cards::-webkit-scrollbar {
  display: none;
}

.value-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);

  /* Carousel items */
  flex: 0 0 85%;
  max-width: 320px;
  margin: 0;
  scroll-snap-align: center;
}

/* [hidden] rule removed */

.value-card-title {
  background: var(--color-sub);
  /* Yellow header */
  color: var(--color-text);
  padding: 15px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.1em;
}

.value-card-heading {
  font-size: 22px;
  text-align: center;
  margin: 30px 0 15px;
  color: var(--color-main);
}

.value-card-text {
  padding: 0 30px 30px;
  text-align: center;
  color: var(--color-text-light);
  line-height: 1.8;
}

.value-card-image {
  margin: 0 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.value-card-image img {
  width: 100%;
  object-fit: cover;
}

/* Navigation */
.card-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.card-nav-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -22px;
  /* Pull outside */
  transition: transform 0.2s;
}

.card-nav-btn:hover:not(:disabled) {
  transform: scale(1.1);
  background: var(--color-main);
}

.card-nav-btn:hover path {
  fill: var(--color-white);
}

.card-nav-btn path {
  fill: var(--color-text);
  transition: fill 0.2s;
}

.card-nav-btn:disabled {
  opacity: 0;
  /* Hide if disabled? Or opacity 0.3 */
  cursor: default;
}


/* ===================================
   Benefits Section
   =================================== */
.benefits {
  padding: 80px 20px;
  background: #F6F6F8;
  /* Darker gray for better contrast */
}

.benefits-list {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.benefit-item {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 20px;
  border-left: 5px solid var(--color-main);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: #FFF5F5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
}

.benefit-icon path {
  fill: var(--color-main);
}

/* Overwrite icon color to red */

.benefit-title {
  font-size: 18px;
  color: var(--color-main);
  margin-bottom: 5px;
}

.benefit-text {
  font-size: 15px;
  color: var(--color-text);
  font-weight: 500;
}


/* ===================================
   Flow Section
   =================================== */
.flow {
  padding: 80px 20px;
  background: var(--color-white);
}

.flow-steps {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.flow-step {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

/* Vertical Line */
.flow-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 25px;
  /* Alignment with circle center */
  width: 2px;
  height: calc(100% - 60px);
  background: #EEE;
  z-index: 0;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--color-text);
  /* Black */
  border-radius: 50%;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.step-label {
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.8;
  line-height: 1;
}

.step-num {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.step-content {
  padding-top: 10px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.step-desc {
  font-size: 14px;
  color: var(--color-text-light);
}


/* ===================================
   CTA Section
   =================================== */
.cta {
  padding: 80px 20px;
  background: var(--color-main);
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Background decoration for CTA */
.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
}

.cta-bg {
  display: none;
  /* Hide original bg image to use CSS styling */
}

.cta-title {
  font-size: 28px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta .btn-line-cta {
  /* Using default yellow button style */
  /* background: var(--color-white); */
  /* color: var(--color-main); */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


/* ===================================
   Footer
   =================================== */
.footer {
  background: #222;
  padding: 30px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.footer-links a {
  color: #999;
  font-size: 12px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  color: #666;
  font-size: 12px;
}


/* ===================================
   Desktop Tweaks
   =================================== */
@media (min-width: 768px) {
  .hero-content {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 40px;
    text-align: left;
    padding: 60px 0;
  }

  .hero-images {
    flex: 1;
    margin-bottom: 0;
  }

  .hero-text-side {
    flex: 1;
  }

  .hero-badge,
  .hero-title img {
    margin-left: 0;
  }


  .problem-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .problem-item {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .values {
    background: linear-gradient(to bottom, #FFFFFF 0%, #FAFAFA 100%);
  }

  .value-cards {
    display: flex;
    gap: 30px;
    max-width: 1000px;
  }

  .value-card {
    display: block !important;
    /* Force show all on desktop */
    opacity: 1;
    flex: 1;
    margin: 0;
  }

  .card-nav {
    display: none;
  }

  /* Hide nav on desktop */

  .benefits-list {
    max-width: 800px;
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-list li:last-child {
    grid-column: span 2;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .flow-steps {
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .flow-steps::before {
    width: 100%;
    height: 2px;
    top: 25px;
    left: 0;
  }

  .flow-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0;
  }

  .step-content {
    padding-top: 10px;
  }
}