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

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

/* Hero */
.cn-hero {
  background: linear-gradient(135deg, #4f7cff, #6fb1ff);
  padding: 100px 20px;
  text-align: center;
  color: #fff;
}
.cn-hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
}
.cn-hero p {
  font-size: 18px;
  margin-bottom: 30px;
}
.cn-btn-primary {
  background: #fff;
  color: #0073ff;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  text-decoration: none;
  font-weight: bold;
}

/* Sections */
.cn-section {
  padding: 60px 20px;
}
.bg-light {
  background: #f9fafc;
}
.cn-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}
.cn-desc {
  text-align: center;
  margin-bottom: 30px;
}

/* Cards */
.cn-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.cn-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex: 1;
  min-width: 280px;
}

/* Category list */
.cn-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.cn-category-item {
  background: #fff;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Flow */
.cn-flow {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
}

/* CTA */
.cn-cta {
  text-align: center;
}
.cn-btn-orange {
  background: #ff6600;
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  text-decoration: none;
  font-weight: bold;
}

/* Coupon cards */
.cn-coupon-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cn-card-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cn-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.cn-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.cn-card-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.cn-card-body {
  padding: 15px;
}

.cn-card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.cn-card-excerpt {
  font-size: 14px;
  color: #555;
}

/* App cards */
.cn-app-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.cn-app-card {
  display: flex;
  align-items: center;
  width: 280px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cn-app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.cn-app-card-icon {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
}

.cn-app-card-body {
  padding: 15px;
}

.cn-app-card-body h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.cn-app-card-body p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #666;
}

/* Responsive */
@media (max-width: 600px) {
  .cn-app-card {
    width: 100%;
  }
}

/* Region cards */
.cn-region-card {
  display: inline-block;
  padding: 12px 18px;
  margin: 6px;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cn-region-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.cn-region-title {
  text-align: center;
  font-size: 24px;
  margin-top: 40px;
  font-weight: bold;
}

/* Genre cards */
.cn-genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.cn-genre-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cn-genre-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.cn-genre-icon {
  font-size: 20px;
}

.cn-genre-text {
  font-size: 16px;
}

/* Custom header */
.cn-header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
}

.cn-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cn-header-logo {
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
}

.cn-header-nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 15px;
  transition: color .2s ease;
}

.cn-header-nav a:hover {
  color: #0073ff;
}

@media (max-width: 768px) {
  .cn-header-inner {
    flex-direction: column;
    gap: 10px;
  }
  .cn-header-nav a {
    margin-left: 10px;
    font-size: 14px;
  }
}

#header-container {
  display: none;
}

.cn-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

/* サイドバー（ズレ修正済み） */
.sidebar {
  padding: 0; /* ← ここを修正！ズレ解消 */
}

/* サイドバーの各ブロック */
.cn-sidebar-box {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* タイトル */
.cn-sidebar-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
  border-left: 4px solid #4f7cff;
  padding-left: 8px;
}

/* リスト */
.cn-sidebar-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: background .2s ease;
}

.cn-sidebar-list a:hover {
  background: #f0f4ff;
  color: #4f7cff;
}

.cn-footer {
  background: #f5f7fb;
  padding: 40px 20px 20px;
  margin-top: 60px;
  border-top: 1px solid #e3e6ee;
}

.cn-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.cn-footer-logo img {
  height: 40px;
  width: auto;
}

.cn-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.cn-footer-column h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
}

.cn-footer-column a {
  display: block;
  color: #555;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 14px;
  transition: color .2s ease;
}

.cn-footer-column a:hover {
  color: #4f7cff;
}

.cn-footer-copy {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: #777;
}

@media (max-width: 768px) {
  .cn-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cn-footer-links {
    flex-direction: column;
    gap: 20px;
  }
}

/* 記事タイトルをサービス風に */
.entry-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
  border-left: 6px solid #4f7cff;
  padding-left: 12px;
}

/* アイキャッチ画像をカード風に */
.eye-catch img {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

/* メタ情報（投稿日・カテゴリ）を非表示 */
.entry-meta,
.entry-date,
.entry-category,
.entry-tag {
  display: none !important;
}

/* 本文の読みやすさを改善 */
.entry-content {
  font-size: 17px;
  line-height: 1.9;
  color: #333;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 本文内の見出し */
.entry-content h2 {
  font-size: 22px;
  margin-top: 30px;
  border-left: 4px solid #4f7cff;
  padding-left: 10px;
}

.entry-content h3 {
  font-size: 19px;
  margin-top: 20px;
  border-left: 3px solid #6fb1ff;
  padding-left: 8px;
}

/* 記事下の関連記事をカード風に */
.related-entry-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 記事ページ全体 */
.cn-article-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

/* タイトル */
.cn-article-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #333;
  border-left: 6px solid #4f7cff;
  padding-left: 12px;
}

/* アイキャッチ */
.cn-article-eyecatch img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

/* 本文カード */
.cn-article-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  font-size: 17px;
  line-height: 1.9;
  color: #333;
}

/* 本文見出し */
.cn-article-content h2 {
  font-size: 24px;
  margin-top: 40px;
  border-left: 4px solid #4f7cff;
  padding-left: 10px;
}

.cn-article-content h3 {
  font-size: 20px;
  margin-top: 30px;
  border-left: 3px solid #6fb1ff;
  padding-left: 8px;
}

/* 関連クーポン */
.cn-article-related {
  margin-top: 40px;
}

.cn-article-related h2 {
  font-size: 22px;
  margin-bottom: 20px;
  border-left: 4px solid #4f7cff;
  padding-left: 10px;
}

/* Cocoonのメタ情報を完全非表示 */
.entry-meta,
.entry-date,
.entry-category,
.entry-tag,
.post-date,
.post-update,
.author-info {
  display: none !important;
}

/* 関連記事ブロック全体 */
.cn-article-related {
  margin-top: 40px;
}

/* Cocoon関連記事のタイトル */
.related-entry-heading {
  font-size: 22px;
  margin-bottom: 20px;
  border-left: 4px solid #4f7cff;
  padding-left: 10px;
  color: #333;
}

/* 関連記事のカード化 */
.related-entry-card {
  display: flex;
  gap: 14px;
  background: #fff;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin-bottom: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.related-entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* サムネイル */
.related-entry-thumb img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}

/* タイトル */
.related-entry-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* 抜粋（あれば） */
.related-entry-snippet {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .related-entry-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .related-entry-thumb img {
    width: 100%;
    height: auto;
  }
}

/* noimage をカードUIに合わせる */
.related-entry-thumb img[src*="no-image"] {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  background: #f2f2f2;
}

.related-entry-thumb img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}


