/* ==============================
   Tasty Home Recipes – カラフル・アニメーションCSS
   ============================== */

/* Reset + smooth scroll */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Meiryo", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  background: linear-gradient(135deg, #d89c66 0%, #f8f5f0 100%);
}

/* ナビゲーションバー（色付き・アニメーション付き） */
.navbar {
  border: none;
  box-shadow: 0 4px 20px rgba(212, 77, 36, 0.1);
  background: linear-gradient(90deg, #f4e6da, #fef9f4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* スクロール時に少し沈める */
.navbar.scrolled {
  transform: translateY(0.2rem);
}

.navbar-brand {
  color: #d44d24 !important;
  font-weight: 700;
  font-size: 1.25rem;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.nav-link {
  color: #555 !important;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
  color: #c8411c !important;
  transform: translateY(-2px);
}

/* ナビゲーションitemの下に細いラインアニメーション */
.nav-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #d44d24;
  transition: width 0.3s ease;
  margin-top: 4px;
}

.nav-link:hover::after {
  width: 100%;
}

/* ヒーローセクション（グラデーション・アニメーション） */
.hero {
  background: linear-gradient(120deg, #f5a66a, #d44d24);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 8rem 0 5rem;
}

/* ヒーロー内のテキストアニメーション */
.hero h1,
.hero p {
  opacity: 0;
  animation: fadeInUp 1.4s ease forwards;
}

.hero h1 {
  animation-delay: 0.2s;
}

.hero p {
  animation-delay: 0.5s;
}

/* セクション・共通スタイル */
.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

/* 背景色クラス */
.bg-cream {
  background: #fff9f4;
  position: relative;
  z-index: 1;
}

.bg-light {
  background: #f9f5f0;
}

/* カラフルな背景セクション（例：About / Services） */
.bg-pastel-1 {
  background: linear-gradient(135deg, #fee9e0, #fde1d9, #f4e6da);
}

.bg-pastel-2 {
  background: linear-gradient(135deg, #f0f7ff, #e2f3fe, #dbf0fc);
}

/* アニメーション・キー */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* テキスト・タイトルアニメーション */
.fade-in-text {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated-section.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ヘディング */
h1, h2, h3 {
  color: #2c3e50;
  font-weight: 600;
}

h2 {
  position: relative;
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
}

/* h2下のライン装飾 */
h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  background: linear-gradient(90deg, #d44d24, #f5a66a);
  margin: 0.6rem auto 0;
  border-radius: 2px;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.5s;
}

/* パラグラフ */
p {
  margin-bottom: 1rem;
}

/* リンク */
a {
  color: #d44d24;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
  color: #b33a1e;
  text-decoration: underline;
  transform: translateY(-1px);
}

/* フォーム・ラベル */
.form-label {
  color: #333;
  font-weight: 600;
}

/* ボタン・グラデーション・アニメーション付き */
.btn {
  border: none;
  font-weight: 600;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 10px;
}

/* プライマリボタン（レッド・オレンジ系） */
.btn-primary {
  background: linear-gradient(135deg, #f5a66a, #d44d24);
  color: #fff;
  box-shadow: 0 6px 15px rgba(212, 77, 36, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d44d24, #c8411c);
  box-shadow: 0 10px 20px rgba(212, 77, 36, 0.4);
  transform: translateY(-3px);
}

/* セカンダリボタン（パステル色） */
.btn-secondary {
  background: linear-gradient(135deg, #f0f7ff, #e2f3fe);
  color: #2c3e50;
  box-shadow: 0 4px 12px rgba(160, 200, 255, 0.25);
  border: 1px solid #c8e5ff;
}

.btn-secondary:hover {
  box-shadow: 0 8px 16px rgba(160, 200, 255, 0.35);
  transform: translateY(-3px);
}

/* ボタンのグラデーションアニメーション（ホバートレイン） */
.anim-btn {
  background-size: 300% 100%;
  background-position: 0% 50%;
  transition: 0.5s ease-out;
}

.anim-btn:hover {
  background-position: 100% 50%;
}

/* カード・セクションホバー効果 */
.recipe-card,
.section.card-hover {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  overflow: hidden;
  border: 1px solid #f0e8e0;
}

.recipe-card:hover,
.section.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 14px 28px rgba(212, 77, 36, 0.2);
  border: 1px solid #f5a66a;
}

/* カード内のテキスト */
.recipe-card h3 {
  color: #d44d24;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}

.recipe-card:hover h3 {
  color: #b33a1e;
}

/* フッター */
.footer {
  background: linear-gradient(135deg, #3c3c3c, #2c2c2c);
  color: #ddd;
  margin-top: 2rem;
  padding: 3rem 0 2rem;
}

.footer a {
  color: #f0e8e0;
  text-decoration: underline;
}

/* アイコン付きのテキスト（例：住所・電話番号） */
.info-item {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-item i {
  color: #f5a66a;
  transition: transform 0.3s ease;
}

.info-item:hover i {
  transform: scale(1.2);
}

/* スマートフォン向けレスポンシブ */
@media (max-width: 767.98px) {
  .section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero {
    padding: 5rem 0 3.5rem;
  }

  h1.display-4 {
    font-size: 1.75rem;
  }

  .hero p.lead {
    font-size: 0.95rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.5rem 1rem;
  }
}

/* ==============================
   Optional: Floating icons / decorations
   ============================== */

/* 小さな浮きアイコンを少しだけ */
.icon-deco {
  opacity: 0.2;
  transform: rotate(10deg) scale(1.2);
  transition: transform 0.5s ease, opacity 0.5s ease;
  filter: drop-shadow(1px 2px 4px rgba(0, 0, 0, 0.15));
}

.icon-deco:hover {
  opacity: 0.4;
  transform: rotate(-5deg) scale(1.4);
}
