@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);
}

/************************************
** デザイン改善 (2026-04-21)
** 心理学ベース: 青+緑基調、CTR最適化
************************************/

/* === 全体のタイポグラフィ改善 === */
body {
  color: #1A1A2E;
  letter-spacing: 0.04em;
}

.entry-content {
  font-size: 16.5px;
  line-height: 1.9;
  letter-spacing: 0.05em;
}

.entry-content p {
  margin-bottom: 1.6em;
}

/* === ヘッダー: 深いシアンブルー(信頼感) === */
.header, .appeal {
  background: linear-gradient(135deg, #1B6B8A 0%, #2E7D9A 50%, #3A8F7A 100%) !important;
}

.header .site-name-text,
.header .site-name-text a,
.logo-text a {
  color: #FFFFFF !important;
}

.header .tagline {
  color: rgba(255,255,255,0.85) !important;
}

/* === 見出し: ブランドブルーで視覚階層 === */
.article h2 {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #1B6B8A 0%, #2E7D9A 100%) !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 14px 20px !important;
  margin-top: 48px;
  font-size: 1.35em;
  line-height: 1.5;
  font-weight: 700;
}

.article h3 {
  color: #2E7D9A;
  border-left: 4px solid #4CAF84;
  padding-left: 12px;
  margin-top: 36px;
  font-size: 1.2em;
}

/* === リンク: 青系(なじみ+信頼) === */
.entry-content a {
  color: #1B72A0;
  text-decoration: underline;
  text-decoration-color: rgba(27,114,160,0.3);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.entry-content a:hover {
  color: #0D5280;
  text-decoration-color: #0D5280;
}

/* === CTAボックス: 青緑グラデ + オレンジボタン(Von Restorff効果) === */
.cta-box {
  background: linear-gradient(135deg, #1B6B8A 0%, #2E7D9A 40%, #3A8F7A 100%) !important;
  border-radius: 12px !important;
  padding: 36px 28px !important;
  box-shadow: 0 8px 32px rgba(27,107,138,0.18);
}

.cta-heading {
  color: #FFFFFF !important;
  font-size: 1.3em !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
}

.cta-message, .cta-message p {
  color: rgba(255,255,255,0.92) !important;
  font-size: 14.5px !important;
  line-height: 1.8 !important;
}

/* CTAボタン: オレンジ(行動喚起の色) */
.cta-button a,
.cta-box .btn {
  background: #FF7A2F !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 16px 40px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(255,122,47,0.35) !important;
  transition: all 0.25s ease !important;
  display: inline-block;
  text-decoration: none !important;
  min-height: 52px;
}

.cta-button a:hover,
.cta-box .btn:hover {
  background: #E86820 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(255,122,47,0.5) !important;
}

.cta-button a:active,
.cta-box .btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(255,122,47,0.3) !important;
}

/* === サイドバー改善 === */
.sidebar {
  background: #F0F7FB;
  border-radius: 8px;
  padding: 16px;
}

.sidebar .widget-entry-cards .entry-card-wrap {
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar .widget-entry-cards .entry-card-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* === トップページ: カード効果 === */
.home-cat-item {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.home-cat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.home-cat-name {
  font-weight: 600;
  color: #1B6B8A;
}

/* 新着・人気記事カード */
.new-entry-card-link, .popular-entry-card-link,
.entry-card-wrap {
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.new-entry-card-link:hover, .popular-entry-card-link:hover,
.entry-card-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* === フォローボックス === */
.towa-follow-block,
.follow-button-area {
  background: #F0F7FB;
  border-radius: 8px;
  padding: 20px;
}

/* === フッター === */
.footer {
  background: #1A1A2E !important;
}

/* === 背景: オフホワイト(目の疲れ軽減) === */
.content-in {
  background: #FAFBFC;
}

/* === ページトップボタン === */
.go-to-top-button {
  background: #2E7D9A !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(46,125,154,0.3);
}

/* === セクションタイトル === */
.home-section-title {
  color: #1B6B8A;
  font-weight: 700;
  border-bottom: 3px solid #2E7D9A;
}

/* === プロフィール欄改善 === */
.nwa .author-box {
  border: 1px solid #E0ECF2;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.nwa .author-box .author-name a {
  color: #2E7D9A !important;
  font-weight: 700;
}
