@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 用ベース
======================================== */
.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;
}

/* ========================================
   まず読む3本
======================================== */
.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 {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.home .front-recommend-title,
.home .front-recommend-card h2.front-recommend-title {
  margin: 0 0 12px;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.5 !important;
  color: #222;
}

.home .front-recommend-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.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;
  font-size: 16px;
  white-space: nowrap;
}

.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;
}

/* ========================================
   記事下「まず読むまとめ」
======================================== */
.josys-read-first-box {
  margin-top: 32px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.josys-read-first-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}

.josys-read-first-lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

.josys-read-first-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.josys-read-first-item {
  margin: 0 0 14px;
}

.josys-read-first-item:last-child {
  margin-bottom: 0;
}

.josys-read-first-link {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.josys-read-first-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.josys-read-first-rank {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
}

.josys-read-first-item-title {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: #222;
}

.josys-read-first-desc {
  display: block;
  font-size: 13px;
  line-height: 1.8;
  color: #777;
}

.josys-read-first-item.is-no1 .josys-read-first-link {
  border-color: #dbeafe;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.josys-read-first-item.is-no1 .josys-read-first-rank {
  color: #1d4ed8;
  background: #dbeafe;
}

/* ========================================
   サイト導入文
======================================== */
.site-lead-box {
  background: rgba(255, 255, 255, 0.78);
  border-left: 4px solid #9fb9cc;
  border-radius: 6px;
  padding: 16px 22px;
  margin: 0 0 22px;
  max-width: 920px;
}

.site-lead-title {
  margin: 0 0 8px;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: #2f3b46;
}

.site-lead-text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.9;
  color: #66727d;
}

/* ========================================
   下段2セクション：プレビュー寄せ版
======================================== */
.home .front-preview-section {
  margin: 0 0 20px !important;
  padding: 18px 22px 12px !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-preview-section .front-section-title {
  margin: 0 0 14px !important;
  font-size: 24px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

.home .front-preview-list {
  margin: 0 !important;
}

.home .front-preview-item {
  margin: 0 !important;
  padding: 10px 0 !important;
  border-top: 1px solid #edf2f7 !important;
}

.home .front-preview-item:first-child {
  padding-top: 0 !important;
  border-top: none !important;
}

.home .front-preview-item:last-child {
  padding-bottom: 0 !important;
}

.home .front-preview-link {
  display: grid !important;
  grid-template-columns: 160px 1fr !important;
  gap: 14px !important;
  align-items: center !important;
  color: inherit !important;
  text-decoration: none !important;
}

.home .front-preview-thumb-wrap {
  width: 160px !important;
  min-width: 160px !important;
}

.home .front-preview-thumb,
.home .front-preview-thumb-placeholder,
.home .front-preview-thumb-wrap img,
.home .front-preview-thumb-wrap .no-image {
  display: block !important;
  width: 160px !important;
  height: 90px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
}

.home .front-preview-thumb-placeholder {
  background: linear-gradient(135deg, #d8e6f5, #bfd8ec) !important;
  border: 1px solid #dde7f0 !important;
}

.home .front-preview-body {
  min-width: 0 !important;
}

.home .front-preview-meta {
  display: inline-block !important;
  margin: 0 0 6px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

.home .front-preview-title {
  margin: 0 0 4px !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  color: #222 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.home .front-preview-desc {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: #66727d !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !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 !important;
  }

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

@media screen and (max-width: 834px) {
  .josys-read-first-box {
    margin-top: 28px;
    padding: 20px;
  }

  .josys-read-first-title {
    font-size: 22px;
  }

  .josys-read-first-link {
    padding: 14px 16px;
  }

  .josys-read-first-item-title {
    font-size: 16px;
  }

  .home .front-preview-section {
    padding: 14px 14px 8px !important;
  }

  .home .front-preview-section .front-section-title {
    font-size: 22px !important;
  }

  .home .front-preview-link {
    grid-template-columns: 110px 1fr !important;
    gap: 10px !important;
  }

  .home .front-preview-thumb-wrap {
    width: 110px !important;
    min-width: 110px !important;
  }

  .home .front-preview-thumb,
  .home .front-preview-thumb-placeholder,
  .home .front-preview-thumb-wrap img,
  .home .front-preview-thumb-wrap .no-image {
    width: 110px !important;
    height: 70px !important;
  }

  .home .front-preview-title {
    font-size: 15px !important;
  }

  .home .front-preview-desc {
    font-size: 12px !important;
  }
}

@media screen and (max-width: 480px) {
  .home .front-recommend-desc {
    font-size: 13px;
    line-height: 1.65;
  }

  .josys-read-first-box {
    margin-top: 24px;
    padding: 16px;
  }

  .josys-read-first-title {
    font-size: 20px;
  }

  .josys-read-first-lead {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .josys-read-first-link {
    padding: 13px 14px;
  }

  .josys-read-first-item-title {
    font-size: 15px;
  }

  .josys-read-first-desc {
    font-size: 12px;
  }
}

