/* Extracted from index.html inline styles for maintainability */
/* Hero Section - Home Specific */
/* FIX: hero background (single source of truth) */
html body section.hero {
  position: relative;
  min-height: 70vh;
  /* 0高さ対策。必要なら100vhに戻してOK */
  display: flex;
  align-items: center;
  padding: 120px 2rem 80px;

  /* オーバーレイ＋背景を「2レイヤー背景」で固定（::before不要） */
  background: linear-gradient(rgba(26, 54, 93, 0.2), rgba(26, 54, 93, 0.2)), url('/images/hero-bg.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* 擬似要素オーバーレイは不要（2レイヤー背景で実現） */
.hero::before {
  display: none !important;
}

.hero-content h1,
.hero-content p,
.hero-content .badge {
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 2px 4px #000000,
    0 0 15px rgba(0, 0, 0, 0.8);
}

.hero-card {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-60px);
  }
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  text-shadow:
    2px 2px 4px #000000,
    0 0 20px rgba(0, 0, 0, 0.9) !important;
}

.hero-content h1 span {
  color: #ffd700;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 2rem;
  line-height: 1.9;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  animation: slideUp 1s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.hero-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list .icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1a365d 0%, #2a4365 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.9rem;
}

/* Services Grid */
.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #1a365d 0%, #2a4365 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 1rem;
  display: inline;
  margin-right: 0.3rem;
  vertical-align: baseline;
}

.service-card h3 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  display: block;
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-align: left;
}

.service-card h3 .issuer {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
  opacity: 0.75;
  margin-left: 0.4rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.3rem;
  letter-spacing: -0.015em;
  text-align: left;
}

.service-card-footer {
  display: flex;
  margin-top: auto;
  padding-top: 0.3rem;
}

.service-card-footer .btn {
  font-size: 0.8rem;
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  display: inline-block;
}

/* Benefits Section */
.benefits-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.benefit-card {
  text-align: center;
  padding: 1rem;
}

.benefit-number {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1a365d 0%, #2a4365 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 0.8rem;
}

.benefit-card h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.benefit-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Use Cases */
.use-cases-container {
  max-width: 1000px;
  margin: 0 auto;
}

.use-case-item {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.use-case-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow);
}

.use-case-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(26, 95, 122, 0.1) 0%, rgba(45, 143, 170, 0.1) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.use-case-content h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.use-case-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  /* モバイルで右側のフィリピン国旗が見えるように位置調整 */
  html body section.hero {
    background-position: 90% center !important;
  }

  .use-case-item {
    flex-direction: column;
    text-align: center;
  }

  .use-cases-grid {
    grid-template-columns: 1fr !important;
  }
}
