@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* ===== Zynxヒーローヘッダー（ロゴ・CTA） ===== */
.zynx-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
}
.zynx-logo-icon {
  display: inline-flex;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}
.zynx-hero-cta { margin-top: 1.4em; }
.zynx-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: #fff;
  color: var(--brand-navy, #1a3c6e);
  font-weight: 700;
  padding: 0.7em 1.8em;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: transform .15s ease, box-shadow .15s ease;
}
.zynx-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  color: var(--brand-navy-dark, #12294d);
}

/* ===== フロントページ（新着記事・カテゴリー） ===== */
.zynx-lead {
  max-width: 760px;
  margin: 0 auto 2.5em;
  text-align: center;
  color: #444;
  font-size: 1.05em;
  line-height: 1.9;
}
.zynx-section { margin-bottom: 3em; }
.zynx-section-title {
  font-size: 1.4em;
  font-weight: 800;
  color: var(--brand-navy-dark, #12294d);
  border-left: 6px solid var(--brand-accent, #f5a623);
  padding-left: 0.6em;
  margin-bottom: 1.2em;
}
.zynx-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4em;
}
.zynx-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: transform .15s ease, box-shadow .15s ease;
}
.zynx-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.13);
}
.zynx-card-thumb {
  aspect-ratio: 16/9;
  background: #eef1f4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.zynx-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.zynx-card-noimage { color: #aaa; font-size: 0.85em; letter-spacing: 0.1em; }
.zynx-card-body { padding: 1em 1.1em 1.2em; }
.zynx-card-cat {
  display: inline-block;
  background: var(--brand-navy, #1a3c6e);
  color: #fff;
  font-size: 0.75em;
  font-weight: 700;
  padding: 0.2em 0.8em;
  border-radius: 20px;
  margin-bottom: 0.6em;
}
.zynx-card-title {
  font-size: 1em;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 0.6em;
  color: #222;
}
.zynx-card-date { font-size: 0.8em; color: #999; }
.zynx-card-empty { text-align: center; color: #888; grid-column: 1 / -1; }

.zynx-section-alt {
  background: var(--brand-bg-soft, #f5f8fb);
  padding: 2em;
  border-radius: 12px;
}
.zynx-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1em;
}
.zynx-cat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--brand-border, #dde3ea);
  border-radius: 8px;
  padding: 0.9em 1.2em;
  text-decoration: none;
  color: var(--brand-navy-dark, #12294d);
  font-weight: 700;
  transition: border-color .15s ease, background .15s ease;
}
.zynx-cat-card:hover {
  border-color: var(--brand-navy, #1a3c6e);
  background: var(--brand-bg-soft, #f5f8fb);
}
.zynx-cat-count { font-weight: 400; color: #888; font-size: 0.85em; }

@media (max-width: 900px) {
  .zynx-card-grid { grid-template-columns: repeat(2, 1fr); }
  .zynx-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .zynx-card-grid { grid-template-columns: 1fr; }
  .zynx-cat-grid { grid-template-columns: 1fr; }
}

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

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

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