@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){
  /*必要ならばここにコードを書く*/
}


/* == MailPoet スパム文言を非表示 == */
.mailpoet_spam_notice {
  display: none !important;
}

/************************************
** ホームページ用スタイル
************************************/

/* セクションタイトル */
.home-section-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #1a5276;
  border-bottom: 3px solid #27ae60;
  padding-bottom: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-icon {
  font-size: 1.2em;
}

/* カテゴリーグリッド */
.home-categories {
  margin-bottom: 40px;
}
.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.home-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  background: #f0f7f4;
  border-radius: 12px;
  text-decoration: none;
  color: #1a5276;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}
.home-cat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(26, 82, 118, 0.15);
  border-color: #27ae60;
  color: #1a5276;
}
.home-cat-icon {
  font-size: 2.2em;
  margin-bottom: 8px;
}
.home-cat-name {
  font-size: 0.95em;
}

/* セクション共通 */
.home-section {
  margin-top: 40px;
}

/* メルマガ登録セクション */
.home-newsletter {
  margin-top: 40px;
  background: linear-gradient(135deg, #f0f7f4 0%, #e8f4fd 100%);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #27ae60;
}
.home-newsletter .home-section-title {
  justify-content: center;
  border-bottom: none;
}
.home-newsletter-desc {
  color: #555;
  margin-bottom: 15px;
  font-size: 0.95em;
}

/* 新着・人気記事のリスト調整 */
.home-section + .wp-block-shortcode + .widget-entry-cards {
  margin-bottom: 30px;
}

/* レスポンシブ */
@media screen and (max-width: 480px) {
  .home-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .home-cat-item {
    padding: 15px 8px;
  }
  .home-cat-icon {
    font-size: 1.8em;
  }
  .home-newsletter {
    padding: 20px 15px;
  }
}

/* ホームページ: タイトル・目次・日付を非表示 */
.page-id-92 .entry-title,
.page-id-92 .date-tags,
.page-id-92 .toc,
.page-id-92 .eye-catch {
  display: none !important;
}

/* Cocoonのh2デフォルトスタイルをホームページセクションで上書き */
.page-id-92 .home-section-title,
.page-id-92 .home-categories .home-section-title,
.page-id-92 .home-newsletter .home-section-title,
.page-id-92 .home-section .home-section-title {
  background: none !important;
  padding: 0 0 8px 0 !important;
  color: #1a5276 !important;
  border-bottom: 3px solid #27ae60 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  margin-bottom: 20px !important;
  font-size: 1.4em !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.page-id-92 .home-section-title::before {
  content: none !important;
}

/* ホームページのメインカラム幅調整 */
.page-id-92 .entry-content {
  margin-top: 0;
}

/* カテゴリー: アイキャッチ画像付き */
.home-cat-item.has-eyecatch {
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
}
.home-cat-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.home-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.home-cat-item.has-eyecatch:hover .home-cat-thumb img {
  transform: scale(1.05);
}
.home-cat-item.has-eyecatch .home-cat-name {
  display: block;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  color: #1a5276;
  background: #f0f7f4;
}

/* ホームページ CTA エリア */
.home-cta-area {
  margin-top: 40px;
}
.home-cta-area .cta-box {
  background: linear-gradient(135deg, #2e8b57 0%, #1a5276 100%);
  border-radius: 12px;
  padding: 30px;
  color: #fff;
}
.home-cta-area .cta-heading {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
}
.home-cta-area .cta-message p {
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
  margin-bottom: 20px;
}
.home-cta-area .cta-button {
  text-align: center;
}
.home-cta-area .cta-button .btn {
  display: inline-block;
  background: #fff;
  color: #1a5276;
  font-weight: bold;
  font-size: 1.1em;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.home-cta-area .cta-button .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}