/* Custom CSS for additional styling */

/* Color variables to match Figma design */
:root {
  --primary-default: #294779;
  --primary-light: #e2efff;
  --secondary-default: #434850;
  --secondary-light: #e9effa;
}

/* Typography styles matching Figma design system */
.font-noto-jp {
  font-family: "Noto Sans JP", sans-serif;
}

/* Custom heading styles to exactly match Figma specifications */
h1 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
}

h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
}

h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 27px;
  line-height: 1;
}

/* Paragraph styles */
p {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
}

/* Button styles */
button {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
}

/* Hero section background positioning */
.hero-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 18px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 24px;
  }

  p {
    font-size: 14px;
  }

  button {
    font-size: 18px;
  }

  /* Mobile hero section adjustments */
  .hero-bg {
    height: 320px;
  }

  /* Mobile card adjustments */
  article {
    min-width: 280px;
  }
}

/* Hover effects */
button:hover {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* Grid adjustments for responsive design */
@media (min-width: 768px) and (max-width: 1023px) {
  main .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  main .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Ensure proper spacing and layout */
.grid > article {
  display: flex;
  flex-direction: column;
}

.grid > article > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.grid > article img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Footer styling */
footer {
  background-color: var(--secondary-default);
}
