/*
Theme Name: Cocoon Child
Template: cocoon-master
Version: 1.0.0
Description: Cocoon child theme with custom front page
*/

/* ================================
   Front Page: サイドバー非表示
================================ */
.home .sidebar,
.home .l-sidebar,
.home #sidebar {
  display: none !important;
}
.home .l-main,
.home #main,
.home .main {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

/* ================================
   Front Page Custom Styles
================================ */

/* --- Hero --- */
.fp-hero {
  background: #fff;
  padding: 0;
}
.fp-hero__img-wrap {
  width: 100%;
  line-height: 0;
}
.fp-hero__img {
  width: 100%;
  height: auto;
  display: block;
}
.fp-hero__search-wrap {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 28px 20px;
  text-align: center;
}
.fp-hero__search .search-form {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
}
.fp-hero__search .search-field {
  flex: 1;
  padding: 14px 18px;
  font-size: 1rem;
  border: none;
  border-radius: 50px 0 0 50px;
  outline: none;
}
.fp-hero__search .search-submit {
  padding: 14px 28px;
  background: #ff6b6b;
  color: #fff;
  border: none;
  border-radius: 0 50px 50px 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.fp-hero__search .search-submit:hover {
  background: #ee5a5a;
}

/* --- Shared Section Styles --- */
.fp-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: #333;
}
.fp-section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* --- Genre Section --- */
.fp-genre {
  padding: 60px 20px;
  background: #f9f9fb;
}
.fp-genre__inner {
  max-width: 960px;
  margin: 0 auto;
}
.fp-genre__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .fp-genre__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.fp-genre__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.fp-genre__card:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: #333;
}
.fp-genre__icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: #555;
}
.fp-genre__name {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

/* --- Latest Posts Section --- */
.fp-latest {
  padding: 60px 20px;
}
.fp-latest__inner {
  max-width: 960px;
  margin: 0 auto;
}
.fp-latest__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 640px) {
  .fp-latest__grid {
    grid-template-columns: 1fr;
  }
}
.fp-post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.fp-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.fp-post-card__img-wrap {
  display: block;
  overflow: hidden;
}
.fp-post-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.fp-post-card:hover .fp-post-card__img {
  transform: scale(1.05);
}
.fp-post-card__no-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #9fa8da;
}
.fp-post-card__body {
  padding: 16px;
}
.fp-post-card__cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  background: #667eea;
  color: #fff;
  padding: 2px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
  text-decoration: none;
}
.fp-post-card__cat:hover {
  background: #5a6fd6;
  text-decoration: none;
  color: #fff;
}
.fp-post-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
}
.fp-post-card__title a {
  color: #222;
  text-decoration: none;
}
.fp-post-card__title a:hover {
  color: #667eea;
}
.fp-post-card__date {
  font-size: 0.78rem;
  color: #999;
}

/* --- More Button --- */
.fp-more-wrap {
  text-align: center;
  margin-top: 40px;
}
.fp-more-btn {
  display: inline-block;
  padding: 14px 48px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.fp-more-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
