/* ==========================
   Front Page Styles
========================== */
.front-page {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.8;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ===== Heroセクション ===== */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, #fff8ec, #fff2e0);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(255, 179, 71, 0.15);
  margin-bottom: 60px;
}

.site-title {
  font-size: 3rem;
  font-weight: 700;
  color: #ff7f50;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.site-desc {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
}

/* ===== 検索フォーム ===== */
.hero form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.hero input[type="search"] {
  width: 70%;
  padding: 12px 14px;
  border: 1px solid #ffd59a;
  border-radius: 8px;
  background: #fffdf8;
  font-size: 1rem;
  transition: 0.3s;
}

.hero input[type="search"]:focus {
  border-color: #ffb347;
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.25);
  outline: none;
}

.hero input[type="submit"] {
  background: linear-gradient(135deg, #ffb347, #ff7f50);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: 0.3s;
}

.hero input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 179, 71, 0.3);
}

/* ===== セクション共通 ===== */
.front-page section {
  margin-bottom: 60px;
}

.front-page h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ff7f50;
  border-bottom: 2px solid #ffb347;
  display: inline-block;
  margin-bottom: 25px;
  padding-bottom: 6px;
}

/* ===== レシピグリッド ===== */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.recipe-card {
  background: #fffaf2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(255, 179, 71, 0.15);
  transition: all 0.3s ease;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(255, 179, 71, 0.25);
}

.recipe-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.recipe-card h3 {
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
}

/* ===== 人気レシピ ===== */
.popular-recipes p {
  color: #777;
  font-size: 0.95rem;
  text-align: center;
  background: #fdf8f2;
  padding: 20px;
  border-radius: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .site-title {
    font-size: 2.2rem;
  }

  .hero {
    padding: 60px 20px;
  }

  .recipe-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .recipe-card h3 {
    font-size: 0.9rem;
  }
}
