@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}


/* front-page.php 追加用CSS */
.home #main.main {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.home .front-recommend-section,
.home .front-latest-section {
  margin: 0 0 32px !important;
  padding: 32px !important;
  background: #fff !important;
  border: 1px solid #e9e9e9 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

.home .front-section-title {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}

.home .front-recommend-grid {
  display: flex;
  gap: 24px;
  margin-bottom: 0;
}

.home .front-recommend-card {
  width: calc((100% - 48px) / 3);
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.home .front-recommend-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

.home .front-recommend-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home .front-recommend-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
}

.home .front-recommend-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home .front-recommend-body {
  padding: 18px 18px 22px;
}

.home .front-recommend-cat {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
}

.home .front-recommend-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: #222;
}

.home .front-recommend-meta {
  margin-bottom: 18px;
  font-size: 13px;
  color: #777;
}

.home .front-recommend-button {
  display: inline-block;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  background: #fff;
}

/* 新着記事一覧 */
.home .front-latest-section .list {
  margin: 0 0 24px;
}

.home .front-latest-section .entry-card-wrap,
.home .front-latest-section .a-wrap {
  margin-bottom: 20px;
}

/* ページャーは新着記事セクション内で一体化 */
.home .front-latest-section .pagination {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.home .front-latest-section .page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: 10px 14px;
  line-height: 1.4;
  text-align: center;
  vertical-align: middle;
  border-radius: 8px;
  box-sizing: border-box;
}

.home .front-latest-section .next,
.home .front-latest-section .prev {
  min-width: 42px;
  white-space: nowrap;
}

.home .front-latest-section .next::before,
.home .front-latest-section .next::after,
.home .front-latest-section .prev::before,
.home .front-latest-section .prev::after {
  display: none !important;
  content: none !important;
}

@media screen and (max-width: 1023px) {
  .home .front-recommend-grid {
    flex-wrap: wrap;
    gap: 16px;
  }

  .home .front-recommend-card {
    width: 100%;
  }

  .home .front-section-title {
    font-size: 24px;
  }

  .home .front-recommend-title {
    font-size: 18px;
  }

  .home .front-recommend-section,
  .home .front-latest-section {
    padding: 20px !important;
  }
}

