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

/* ============================================================
 * OMILOG 収益化・CVR改善 CSS (2026-04-20 / v1.3)
 * キーカラー: #19448e / アクセント: #f6a068
 * ============================================================
 * 目次:
 *   1. ベース: 可読性 (本文フォント・行間)
 *   2. pochipp 商品カード/ボタンの強化
 *   3. 汎用ボタン/CTAブロック
 *   4. 記事末 CTA ボックス
 *   5. 地域タブナビ (ショートコード用)
 *   6. 関連記事カードのチューニング
 *   7. モバイル最適化 (〜480px)
 *   8. 地域お土産カード (自動挿入 / ショートコード / ウィジェット)
 * ============================================================ */


/* ------------------------------------------------------------
 * 1. ベース: 可読性
 * ------------------------------------------------------------ */

/* 本文はPC16px/タブレット16.5px/スマホ17pxで可読性を底上げ */
.article p,
.article li,
.entry-content p,
.entry-content li {
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
}

/* 見出しの存在感を強める (キーカラーでボーダー) */
.article h2 {
  border-left: 6px solid #19448e;
  padding: 0.4em 0.2em 0.4em 0.7em;
  background: linear-gradient(90deg, rgba(25, 68, 142, 0.06) 0%, rgba(25, 68, 142, 0) 100%);
}

.article h3 {
  border-left: 4px solid #f6a068;
  padding-left: 0.6em;
}


/* ------------------------------------------------------------
 * 2. pochipp 商品カード / ボタンの強化
 * pochipp の標準クラスを上書きし、ボタンをアクセント色に統一
 * ------------------------------------------------------------ */

/* カード全体の余白と影 */
.pochipp-box {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 16px;
  margin: 1.8em 0;
  background: #fff;
}

.pochipp-box:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}

/* 商品タイトルを太字に */
.pochipp-box .pochipp-title,
.pochipp-box .pocp-title {
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.5;
}

/* pochipp のボタンエリア */
.pochipp-box .pochipp-btns,
.pochipp-box .pocp-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* 各ボタンの共通スタイル */
.pochipp-box .pochipp-btns a,
.pochipp-box .pocp-btns a {
  flex: 1 1 45%;
  min-height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 14px !important;
  font-weight: 700 !important;
  font-size: 0.95em !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: transform 0.1s ease, filter 0.15s ease;
}

.pochipp-box .pochipp-btns a:hover,
.pochipp-box .pocp-btns a:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* 楽天ボタン(赤系はpochippデフォルトのまま) */
/* Amazonボタンをアクセントオレンジに統一 */
.pochipp-box .pochipp-btns a.amazon,
.pochipp-box .pochipp-btns a[class*="amazon"],
.pochipp-box .pocp-btns a.amazon {
  background: #f6a068 !important;
  color: #fff !important;
  border: none !important;
}

.pochipp-box .pochipp-btns a.amazon:hover {
  background: #ec8a4a !important;
}

/* Yahoo ボタン */
.pochipp-box .pochipp-btns a.yahoo,
.pochipp-box .pocp-btns a.yahoo {
  background: #19448e !important;
  color: #fff !important;
  border: none !important;
}


/* ------------------------------------------------------------
 * 3. 汎用ボタン/CTAブロック (.btn-omilog-cta)
 * 記事内で <a class="btn-omilog-cta"> として使える
 * ------------------------------------------------------------ */

.btn-omilog-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 14px 28px;
  background: #f6a068;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05em;
  text-decoration: none !important;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(246, 160, 104, 0.4);
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.15s ease;
}

.btn-omilog-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(246, 160, 104, 0.55);
  filter: brightness(1.05);
}

.btn-omilog-cta::after {
  content: "▶";
  font-size: 0.75em;
  opacity: 0.85;
}

.btn-omilog-cta.is-navy {
  background: #19448e;
  box-shadow: 0 4px 12px rgba(25, 68, 142, 0.35);
}


/* ------------------------------------------------------------
 * 4. 記事末 CTA ボックス (.omilog-endcta)
 * functions.php から自動挿入される
 * ------------------------------------------------------------ */

.omilog-endcta {
  margin: 2.4em 0;
  padding: 24px 20px;
  background: linear-gradient(135deg, #fff8f1 0%, #fff 100%);
  border: 2px solid #f6a068;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.omilog-endcta__label {
  display: inline-block;
  padding: 4px 12px;
  background: #f6a068;
  color: #fff;
  font-size: 0.82em;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.omilog-endcta__title {
  margin: 0 0 14px;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.5;
  color: #19448e;
}

.omilog-endcta__lead {
  margin: 0 0 14px;
  font-size: 0.95em;
  line-height: 1.7;
  color: #333;
}

.omilog-endcta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.omilog-endcta__links a {
  flex: 1 1 auto;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: #fff;
  color: #19448e !important;
  border: 1.5px solid #19448e;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9em;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.omilog-endcta__links a:hover {
  background: #19448e;
  color: #fff !important;
}


/* ------------------------------------------------------------
 * 5. 地域タブナビ (.omilog-regionnav)
 * ショートコード [omilog_regions] から出力される
 * ------------------------------------------------------------ */

.omilog-regionnav {
  margin: 1.6em 0;
  padding: 18px;
  background: #f7f9fc;
  border-radius: 12px;
}

.omilog-regionnav__title {
  margin: 0 0 12px;
  font-size: 1.05em;
  font-weight: 700;
  color: #19448e;
}

.omilog-regionnav__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 2px solid #e6e6e6;
  padding-bottom: 10px;
}

.omilog-regionnav__tab {
  padding: 8px 16px;
  background: #fff;
  border: 1.5px solid #d6dde8;
  border-radius: 999px;
  color: #19448e;
  font-weight: 700;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.omilog-regionnav__tab:hover {
  background: #19448e;
  color: #fff;
  border-color: #19448e;
}

.omilog-regionnav__tab.is-active {
  background: #19448e;
  color: #fff;
  border-color: #19448e;
}

.omilog-regionnav__panel {
  display: none;
}

.omilog-regionnav__panel.is-active {
  display: block;
}

.omilog-regionnav__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.omilog-regionnav__grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e1e6ef;
  border-radius: 8px;
  color: #19448e !important;
  font-size: 0.88em;
  font-weight: 700;
  text-decoration: none !important;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.omilog-regionnav__grid a:hover {
  background: #fff8f1;
  border-color: #f6a068;
}


/* ------------------------------------------------------------
 * 6. 関連記事/カードのチューニング
 * ------------------------------------------------------------ */

.related-entry-card-title,
.entry-card-title {
  font-weight: 700;
  line-height: 1.5;
}

.entry-card:hover,
.related-entry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}


/* ============================================================
 * 7. レスポンシブ (モバイル優先調整)
 * ============================================================ */

/* 1023px以下 */
@media screen and (max-width: 1023px) {
  .omilog-regionnav__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 834px以下 */
@media screen and (max-width: 834px) {
  .omilog-regionnav__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pochipp-box .pochipp-btns a,
  .pochipp-box .pocp-btns a {
    flex: 1 1 100%;
  }
}

/* 480px以下 */
@media screen and (max-width: 480px) {
  /* 本文フォントを17pxに */
  .body,
  .menu-content,
  .article p,
  .article li {
    font-size: 17px;
    line-height: 1.85;
  }

  /* H2の余白調整 */
  .article h2 {
    padding: 0.35em 0.2em 0.35em 0.6em;
    font-size: 1.25em;
  }

  .article h3 {
    font-size: 1.1em;
  }

  /* pochippカード: モバイル最適化 */
  .pochipp-box {
    padding: 12px;
  }

  .pochipp-box .pochipp-btns a,
  .pochipp-box .pocp-btns a {
    flex: 1 1 100%;
    min-height: 48px;
    font-size: 1em !important;
  }

  /* 汎用CTAボタン */
  .btn-omilog-cta {
    width: 100%;
    min-height: 56px;
    font-size: 1em;
    padding: 14px 20px;
  }

  /* 記事末CTA */
  .omilog-endcta {
    padding: 18px 14px;
  }

  .omilog-endcta__title {
    font-size: 1.05em;
  }

  .omilog-endcta__links a {
    flex: 1 1 100%;
    min-width: 0;
  }

  /* 地域タブ */
  .omilog-regionnav {
    padding: 14px 12px;
  }

  .omilog-regionnav__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .omilog-regionnav__tab {
    padding: 8px 12px;
    font-size: 0.85em;
  }
}


/* ============================================================
 * 8. 地域お土産カード (.omilog-region-products / .omilog-product-card)
 *    functions.php の商品登録(omilog-products.php)から自動生成される。
 *    - 記事末に3件自動挿入
 *    - [omilog_products] ショートコード
 *    - サイドバーウィジェット (.omilog-product-grid--sidebar)
 * ============================================================ */

.omilog-region-products {
  margin: 2.4em 0;
  padding: 22px 20px;
  background: #fbfbfc;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
}

.omilog-region-products__label {
  display: inline-block;
  padding: 4px 12px;
  background: #19448e;
  color: #fff;
  font-size: 0.82em;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.omilog-region-products__title {
  margin: 0 0 6px;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.5;
  color: #19448e;
  border: 0;
  padding: 0;
  background: none;
}

.omilog-region-products__lead {
  margin: 0 0 14px;
  font-size: 0.92em;
  line-height: 1.7;
  color: #444;
}

/* 商品カードのグリッド */
.omilog-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* 1枚のカード */
.omilog-product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s ease, transform 0.12s ease;
}

.omilog-product-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.omilog-product-card__body {
  flex: 1 1 auto;
  margin-bottom: 12px;
}

.omilog-product-card__name {
  margin: 0 0 6px;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.45;
  color: #222;
}

.omilog-product-card__maker {
  margin: 0;
  font-size: 0.82em;
  color: #888;
  line-height: 1.45;
}

/* カード内のボタン */
.omilog-product-card__btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.omilog-product-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.88em;
  font-weight: 700;
  border-radius: 6px;
  color: #fff !important;
  text-decoration: none !important;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.omilog-product-card__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.omilog-product-card__btn.is-amazon {
  background: #f6a068;
}

.omilog-product-card__btn.is-rakuten {
  background: #bf0000;
}

/* サイドバー用: 縦並びのコンパクト表示 */
.omilog-product-grid--sidebar {
  grid-template-columns: 1fr;
  gap: 10px;
}

.omilog-product-grid--sidebar .omilog-product-card {
  padding: 10px 12px;
}

.omilog-product-grid--sidebar .omilog-product-card__name {
  font-size: 0.94em;
}

.omilog-product-grid--sidebar .omilog-product-card__btn {
  min-height: 36px;
  font-size: 0.82em;
}

/* ウィジェット見出しの上書き (Cocoon 側のwidget-titleと揃える) */
.widget .omilog-region-products {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

.widget .omilog-region-products__label,
.widget .omilog-region-products__title,
.widget .omilog-region-products__lead {
  display: none;
}

/* レスポンシブ: タブレット */
@media screen and (max-width: 834px) {
  .omilog-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* レスポンシブ: スマホ */
@media screen and (max-width: 480px) {
  .omilog-region-products {
    padding: 18px 14px;
  }

  .omilog-product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .omilog-product-card__btns {
    flex-direction: row;
  }

  .omilog-product-card__btn {
    flex: 1 1 50%;
    min-height: 44px;
    font-size: 0.9em;
  }
}
