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

/* ============================================================
   Google Fonts - Noto Sans JP / Noto Serif JP
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Serif+JP:wght@400;700&display=swap');


/* ============================================================
   デザインシステム変数 - 占いメディア yin-yang-oracle.com
   ============================================================ */
:root {
  --yy-primary:       #4a3728;  /* チョコレートブラウン */
  --yy-primary-dark:  #2e2018;
  --yy-primary-light: #7a5c45;
  --yy-accent:        #e8955a;  /* 温かみのあるオレンジ */
  --yy-accent-light:  #fde8d0;
  --yy-bg:            #fdf8f4;  /* クリーム */
  --yy-card-bg:       #ffffff;
  --yy-text:        #1e1e2e;
  --yy-text-light:  #5a5a72;
  --yy-text-pale:   #9a9ab0;
  --yy-border:      #dde0ed;

  --yy-shadow:       0 2px 10px rgba(26, 42, 94, 0.07);
  --yy-shadow-hover: 0 8px 28px rgba(26, 42, 94, 0.18);

  --yy-radius:    8px;
  --yy-radius-sm: 4px;

  --yy-font-sans:  'Noto Sans JP', "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  --yy-font-serif: 'Noto Serif JP', "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* Cocoon CSS変数オーバーライド */
:root {
  --cocoon-text-color:          var(--yy-text);
  --cocoon-pallid-text-color:   var(--yy-text-light);
  --cocoon-thin-color:          var(--yy-text-pale);
  --cocoon-default-font:        var(--yy-font-sans);
  --cocoon-basic-border-color:  var(--yy-border);
  --cocoon-basic-border-radius: var(--yy-radius);
}


/* ============================================================
   グローバルベース
   ============================================================ */
body {
  background-color: var(--yy-bg);
  font-family: var(--yy-font-sans);
  color: var(--yy-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.85;
}

a {
  color: var(--yy-primary-light);
  transition: color 0.2s;
}
a:hover {
  color: var(--yy-primary);
}

img {
  height: auto;
  max-width: 100%;
}

/* NOTE: .wrap は Cocoon に任せる (width:1256px + margin:auto)
         ここで上書きするとサイドバーのカラム落ちが発生するため */


/* ============================================================
   ヘッダー
   ============================================================ */
.header-container {
  background: var(--yy-primary) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.header-container-in {
  background: transparent !important;
}
.header {
  background: transparent !important;
  background-image: none !important;
}

.site-name-text-link,
.site-name-text-link:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}
.site-name-text {
  color: #ffffff;
  font-family: var(--yy-font-serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.08em;
}
.tagline {
  color: var(--yy-accent-light);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.85;
}
.logo-text { padding: 16px 0; }
.logo-image { padding: 10px 0; }

.header-icon a       { color: rgba(255,255,255,0.8)  !important; }
.header-icon a:hover { color: var(--yy-accent-light) !important; }


/* ============================================================
   グローバルナビゲーション
   ============================================================ */
.navi,
#navi,
.navi-in > ul {
  background: var(--yy-primary-dark);
  border: none;
}
.navi-in > ul > li { border: none; }

.navi-in a {
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 500;
  padding: 0 20px;
  height: 46px;
  line-height: 46px;
  letter-spacing: 0.04em;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

/* ホバー時ゴールド下線アニメ */
.navi-in > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20px; right: 20px;
  height: 2px;
  background: var(--yy-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.navi-in > ul > li:hover > a,
.navi-in > ul > li.current-menu-item > a,
.navi-in > ul > li.current-menu-ancestor > a {
  color: #ffffff;
  background: rgba(255,255,255,0.07);
}
.navi-in > ul > li:hover > a::after,
.navi-in > ul > li.current-menu-item > a::after,
.navi-in > ul > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

/* サブメニュー */
.navi-in > ul .sub-menu {
  background: var(--yy-primary-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid var(--yy-accent);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  border-radius: 0 0 var(--yy-radius-sm) var(--yy-radius-sm);
}
.navi-in > ul .sub-menu li { border-top: 1px solid rgba(255,255,255,0.06); }
.navi-in > ul .sub-menu a {
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  padding: 10px 20px;
  height: auto;
  line-height: 1.5;
}
.navi-in > ul .sub-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--yy-accent-light);
}


/* ============================================================
   ホームページ専用レイアウト (front-page.php 用)
   body.home クラスは WordPress が自動付与
   ============================================================ */

/* #content-in の flex / 固定幅を解除して全幅化 */
body.home #content-in,
body.front-page #content-in {
  display: block   !important;
  width:   100%    !important;
  max-width: none  !important;
  padding: 0       !important;
  margin:  0       !important;
}

/* #main も全幅に */
body.home #main,
body.front-page #main {
  width:     100%  !important;
  max-width: none  !important;
  padding:   0     !important;
  margin:    0     !important;
  background: transparent !important;
}

/* ホームページではサイドバーを非表示 */
body.home #sidebar,
body.front-page #sidebar {
  display: none !important;
}

/* #content / #main-wrap の余白リセット */
body.home #content,
body.front-page #content {
  padding: 0;
}
body.home #main-wrap,
body.front-page #main-wrap {
  padding: 0;
}


/* ============================================================
   ヒーロースライダー
   ============================================================ */
.yy-hero-section {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--yy-primary-dark);
}

/* Swiper コンテナ — overflow:visible で隣のスライドをのぞかせる */
.yy-hero-swiper {
  width: 100%;
  height: clamp(280px, 48vw, 640px);
  overflow: visible !important;
}

/* 各スライド */
.yy-hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 非アクティブスライドを暗く縮小してpeek感を演出 */
.yy-hero-swiper .swiper-slide:not(.swiper-slide-active) {
  opacity: 0.5;
  transform: scale(0.97);
}

/* スライドリンク */
.yy-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* 背景画像エリア */
.yy-slide-bg {
  position: absolute;
  inset: 0;
  background-color: var(--yy-primary-dark);
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}
.yy-slide-link:hover .yy-slide-bg {
  transform: scale(1.04);
}

/* 画像なし用グラデーション */
.yy-slide-placeholder {
  background: linear-gradient(135deg,
    var(--yy-primary-dark) 0%,
    var(--yy-primary) 55%,
    #3a2a80 100%
  );
}

/* グラデーションオーバーレイ */
.yy-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 8, 30, 0.92) 0%,
    rgba(5, 8, 30, 0.50) 45%,
    rgba(5, 8, 30, 0.08) 100%
  );
}

/* テキストコンテンツ */
.yy-slide-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(20px, 4vw, 48px) clamp(20px, 5vw, 60px);
  z-index: 2;
}

.yy-slide-cat {
  display: inline-block;
  background: var(--yy-accent);
  color: var(--yy-primary-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.yy-slide-title {
  font-family: var(--yy-font-serif);
  font-size: clamp(18px, 2.8vw, 34px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.45;
  margin: 0 0 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  max-width: 700px;
}

.yy-slide-meta {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  margin: 0;
}

/* ── ドットナビ ── */
.yy-hero-dots {
  bottom: 18px !important;
  left: clamp(20px, 5vw, 60px) !important;
  text-align: left !important;
  width: auto !important;
}
.yy-hero-dots .swiper-pagination-bullet {
  background: rgba(255,255,255,0.45);
  opacity: 1;
  width: 8px; height: 8px;
  margin: 0 4px !important;
  transition: all 0.25s;
}
.yy-hero-dots .swiper-pagination-bullet-active {
  background: var(--yy-accent);
  width: 28px;
  border-radius: 4px;
}

/* ── 矢印ナビ ── */
.yy-hero-next,
.yy-hero-prev {
  color: rgba(255,255,255,0.9) !important;
  background: rgba(15,26,61,0.45);
  width: 46px !important;
  height: 46px !important;
  border-radius: 50%;
  transition: background 0.2s;
}
.yy-hero-next:hover,
.yy-hero-prev:hover {
  background: rgba(15,26,61,0.8) !important;
  color: #ffffff !important;
}
.yy-hero-next::after,
.yy-hero-prev::after {
  font-size: 16px !important;
  font-weight: 700 !important;
}


/* ============================================================
   ホームコンテンツラッパー (.yy-home-wrap)
   ============================================================ */
.yy-home-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  box-sizing: border-box;
}


/* ============================================================
   セクション共通
   ============================================================ */
.yy-section {
  margin-bottom: 64px;
}

/* セクションヘッダー (タイトル + もっと見るボタン) */
.yy-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--yy-border);
}

.yy-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--yy-primary);
  margin: 0;
  font-family: var(--yy-font-serif);
}

/* 左カラーバー */
.yy-section-bar {
  display: inline-block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--yy-accent) 0%, var(--yy-primary) 100%);
  border-radius: 2px;
  flex-shrink: 0;
}

/* もっと見るボタン */
.yy-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--yy-primary-light);
  text-decoration: none;
  border: 1px solid var(--yy-primary-light);
  padding: 6px 16px;
  border-radius: 20px;
  transition: all 0.22s;
  white-space: nowrap;
  flex-shrink: 0;
}
.yy-more-btn:hover {
  background: var(--yy-primary);
  border-color: var(--yy-primary);
  color: #ffffff;
}


/* ============================================================
   カードグリッド
   ============================================================ */
.yy-card-grid {
  display: grid;
  gap: 24px;
}
/* 3カラム: 新着記事 */
.yy-col-3 {
  grid-template-columns: repeat(3, 1fr);
}
/* 4カラム: カテゴリ別 */
.yy-col-4 {
  grid-template-columns: repeat(4, 1fr);
}


/* ============================================================
   カードコンポーネント
   ============================================================ */
.yy-card {
  background: var(--yy-card-bg);
  border-radius: var(--yy-radius);
  box-shadow: var(--yy-shadow);
  border: 1px solid var(--yy-border);
  overflow: hidden;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}
.yy-card:hover {
  box-shadow: var(--yy-shadow-hover);
  transform: translateY(-4px);
}

.yy-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
}

/* ── サムネイル ── */
.yy-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--yy-primary) 0%, #3a2870 100%);
}
.yy-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.38s ease;
}
.yy-card-inner:hover .yy-card-thumb img {
  transform: scale(1.06);
}

/* カテゴリバッジ */
.yy-card-cat {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--yy-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* NEWバッジ */
.yy-card-new {
  position: absolute;
  top: 10px; right: 10px;
  background: #e03a3a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* 画像なしプレースホルダー */
.yy-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.25);
}

/* ── カード本文 ── */
.yy-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.yy-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--yy-text);
  margin: 0 0 8px;
  flex: 1;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yy-card-inner:hover .yy-card-title {
  color: var(--yy-primary);
}

.yy-card-excerpt {
  font-size: 12px;
  color: var(--yy-text-light);
  line-height: 1.65;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yy-card-meta {
  font-size: 11px;
  color: var(--yy-text-pale);
  margin-top: auto;
}

/* 小カード (4カラム): タイトル2行クランプ */
.yy-card-sm .yy-card-title {
  font-size: 13px;
  -webkit-line-clamp: 2;
}
.yy-card-sm .yy-card-body {
  padding: 10px 12px 12px;
}


/* ============================================================
   カテゴリ + ナビ 2カラムラッパー
   ============================================================ */
.yy-cat-wrap {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: start;
}

/* 左: カテゴリ記事セクション群 */
.yy-cat-main {
  min-width: 0;
}

/* 右: カテゴリナビ — スクロール追従 */
.yy-cat-nav {
  position: sticky;
  top: 24px;
}

.yy-cat-nav-box {
  background: var(--yy-card-bg);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius);
  box-shadow: var(--yy-shadow);
  overflow: hidden;
}

/* ナビヘッダー */
.yy-cat-nav-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--yy-primary);
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--yy-border);
  background: var(--yy-bg);
  font-family: var(--yy-font-serif);
}

/* カテゴリリスト */
.yy-cat-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yy-cat-nav-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--yy-border);
  text-decoration: none !important;
  color: var(--yy-text);
  font-size: 13px;
  transition: background 0.18s, color 0.18s;
}
.yy-cat-nav-item:last-child a {
  border-bottom: none;
}
.yy-cat-nav-item a:hover {
  background: var(--yy-bg);
  color: var(--yy-primary);
}

/* カラードット */
.yy-cat-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* カテゴリ名 */
.yy-cat-nav-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* 件数 */
.yy-cat-nav-count {
  font-size: 11px;
  color: var(--yy-text-pale);
  flex-shrink: 0;
}

/* 矢印 */
.yy-cat-nav-arrow {
  color: var(--yy-text-pale);
  font-size: 15px;
  flex-shrink: 0;
  transition: transform 0.18s;
}
.yy-cat-nav-item a:hover .yy-cat-nav-arrow {
  transform: translateX(3px);
  color: var(--yy-primary);
}


/* ============================================================
   通常ページ (archive / single) の記事カード
   ============================================================ */
.entry-card-wrap {
  background: var(--yy-card-bg);
  border-radius: var(--yy-radius);
  box-shadow: var(--yy-shadow);
  border: 1px solid var(--yy-border);
  overflow: hidden;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
  text-decoration: none !important;
  display: block;
}
.entry-card-wrap:hover {
  box-shadow: var(--yy-shadow-hover);
  transform: translateY(-4px);
}
.entry-card-thumb { overflow: hidden; }
.entry-card-thumb img {
  width: 100%;
  transition: transform 0.38s ease;
  display: block;
}
.entry-card-wrap:hover .entry-card-thumb img {
  transform: scale(1.06);
}
.cat-label {
  background: var(--yy-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  letter-spacing: 0.05em;
}
.entry-card-content {
  padding: 14px 18px 16px;
}
.entry-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--yy-text);
  transition: color 0.2s;
}
.entry-card-wrap:hover .entry-card-title {
  color: var(--yy-primary);
}
.entry-card-snippet {
  font-size: 13px;
  color: var(--yy-text-light);
  line-height: 1.65;
}
.entry-card-info > * {
  font-size: 11px;
  color: var(--yy-text-pale);
}
.list { row-gap: 1.4em; }
.ect-vertical-card .entry-card-wrap { margin-bottom: 0; }


/* ============================================================
   アーカイブタイトル
   ============================================================ */
.archive-title,
.cat-page-title,
.tag-page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--yy-primary);
  margin-bottom: 1.5em;
  padding-bottom: 0.6em;
  border-bottom: 2px solid var(--yy-border);
}
.archive-title::before,
.cat-page-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: linear-gradient(180deg, var(--yy-accent), var(--yy-primary));
  border-radius: 2px;
  flex-shrink: 0;
}


/* ============================================================
   パンくずリスト
   ============================================================ */
.breadcrumb {
  background: transparent;
  font-size: 12px;
  padding: 10px 0;
  color: var(--yy-text-pale);
}
.breadcrumb a {
  color: var(--yy-text-light);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--yy-primary);
  text-decoration: underline;
}


/* ============================================================
   サイドバー
   ============================================================ */
.sidebar .widget {
  background: var(--yy-card-bg);
  border-radius: var(--yy-radius);
  box-shadow: var(--yy-shadow);
  border: 1px solid var(--yy-border);
  padding: 20px;
  margin-bottom: 1.6em;
  overflow: hidden;
}
.sidebar .widget-title,
.sidebar .widgettitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--yy-primary);
  border: none;
  border-bottom: 2px solid var(--yy-accent);
  padding-bottom: 10px;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  background: none;
}
.sidebar .entry-card-title { font-size: 13px; }
.sidebar .widget ul li {
  border-bottom: 1px solid var(--yy-border);
  padding: 8px 0;
  font-size: 14px;
}
.sidebar .widget ul li:last-child { border-bottom: none; }
.sidebar .widget ul li a { color: var(--yy-text); text-decoration: none; }
.sidebar .widget ul li a:hover { color: var(--yy-primary); }


/* ============================================================
   記事本文 (single)
   ============================================================ */
.article {
  background: var(--yy-card-bg);
  border-radius: var(--yy-radius);
  box-shadow: var(--yy-shadow);
  padding: 2em 2.5em 3em;
}
.article-title,
.entry-title {
  font-size: 1.6em;
  font-weight: 900;
  line-height: 1.45;
  color: var(--yy-text);
  margin-bottom: 0.5em;
}
.entry-date, .post-date, .post-modified-date {
  color: var(--yy-text-pale);
  font-size: 13px;
}

/* H2 */
.entry-content h2 {
  background: var(--yy-primary);
  color: #ffffff;
  padding: 0.6em 1em;
  border-radius: var(--yy-radius-sm);
  font-size: 1.3em;
  font-weight: 700;
  margin-top: 2.2em;
  margin-bottom: 1em;
  border: none;
  box-shadow: 0 2px 8px rgba(26,42,94,0.2);
}
/* H3 */
.entry-content h3 {
  border-left: 4px solid var(--yy-primary);
  border-bottom: 1px solid var(--yy-border);
  padding: 0.4em 0 0.4em 0.8em;
  font-size: 1.15em;
  font-weight: 700;
  color: var(--yy-primary);
  margin-top: 1.8em;
  margin-bottom: 0.8em;
  background: none;
}
/* H4 */
.entry-content h4 {
  border-left: 3px solid var(--yy-accent);
  padding-left: 0.7em;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--yy-text);
  margin-top: 1.5em;
  margin-bottom: 0.7em;
  background: none;
}


/* ============================================================
   目次 (TOC)
   ============================================================ */
.toc {
  background: #f0f4fb;
  border: 1px solid var(--yy-border);
  border-left: 4px solid var(--yy-primary);
  border-radius: var(--yy-radius);
  padding: 20px 24px;
}
.toc-title {
  color: var(--yy-primary);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}
.toc li a { color: var(--yy-primary-light); }
.toc li a:hover { color: var(--yy-primary); }


/* ============================================================
   ページネーション
   ============================================================ */
.page-numbers {
  background: var(--yy-card-bg);
  border: 1px solid var(--yy-border);
  color: var(--yy-text);
  border-radius: var(--yy-radius-sm);
  transition: all 0.2s;
  font-size: 14px;
}
.page-numbers:hover,
.page-numbers.current {
  background: var(--yy-primary);
  border-color: var(--yy-primary);
  color: #ffffff;
}


/* ============================================================
   ボタン
   ============================================================ */
.btn,
.cocoon-block-button__link {
  background: var(--yy-primary);
  border-color: var(--yy-primary);
  color: #ffffff;
  border-radius: var(--yy-radius-sm);
  font-weight: 700;
  transition: all 0.2s;
}
.btn:hover,
.cocoon-block-button__link:hover {
  background: var(--yy-primary-light);
  border-color: var(--yy-primary-light);
  color: #ffffff;
}


/* ============================================================
   検索フォーム
   ============================================================ */
.search-form input[type="search"] {
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-sm) 0 0 var(--yy-radius-sm);
  background: #ffffff;
  color: var(--yy-text);
}
.search-form input[type="submit"] {
  background: var(--yy-primary);
  border-color: var(--yy-primary);
  color: #ffffff;
  border-radius: 0 var(--yy-radius-sm) var(--yy-radius-sm) 0;
  transition: background 0.2s;
}
.search-form input[type="submit"]:hover {
  background: var(--yy-primary-light);
}


/* ============================================================
   フッター
   ============================================================ */
.footer {
  background: var(--yy-primary-dark) !important;
  color: rgba(255,255,255,0.8);
  margin-top: 2.5em;
  border-top: 3px solid var(--yy-accent);
}
.footer a { color: rgba(255,255,255,0.68); text-decoration: none; }
.footer a:hover { color: var(--yy-accent-light); }

.footer-widgets,
.footer-widgets-mobile {
  padding: 44px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-left, .footer-center, .footer-right { padding: 0 16px; }

.footer .widget-title,
.footer .widgettitle {
  color: var(--yy-accent-light);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 10px;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  background: none;
}
.footer .widget ul li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 7px 0;
  font-size: 13px;
}
.footer .widget ul li:last-child { border-bottom: none; }
.footer .widget p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 14px 20px;
}
.footer-bottom-content {
  color: rgba(255,255,255,0.45);
  font-size: 12px;
}
.footer-bottom-logo .site-name-text {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.navi-footer-in > ul,
.navi-footer-in > ul > li { border: none; }
.navi-footer-in a { color: rgba(255,255,255,0.55); font-size: 12px; }
.navi-footer-in a:hover { color: var(--yy-accent-light); }


/* ============================================================
   固定ヘッダー
   ============================================================ */
.fixed-header .header-container {
  box-shadow: 0 2px 16px rgba(0,0,0,0.3) !important;
}


/* ============================================================
   レスポンシブ: 1023px以下
   ============================================================ */
@media screen and (max-width: 1023px) {
  .navi-in > ul > li > a {
    color: rgba(255,255,255,0.9);
  }
  #navi-menu-content {
    background: var(--yy-primary-dark);
  }
  .article {
    padding: 1.2em 1.4em 2em;
  }

  /* スライダーテキスト */
  .yy-slide-title {
    font-size: clamp(16px, 2.5vw, 26px);
  }
}


/* ============================================================
   レスポンシブ: 834px以下 (タブレット)
   ============================================================ */
@media screen and (max-width: 834px) {
  .site-name-text { font-size: 20px; }

  /* カードグリッド: 2カラムに */
  .yy-col-3 { grid-template-columns: repeat(2, 1fr); }
  .yy-col-4 { grid-template-columns: repeat(2, 1fr); }
  /* cat-wrap: タブレットは1カラム (ナビを下に移動) */
  .yy-cat-wrap { grid-template-columns: 1fr; }
  .yy-cat-nav { position: static; }

  .yy-home-wrap { padding: 32px 16px 24px; }
  .yy-section { margin-bottom: 44px; }
  .yy-section-title { font-size: 17px; }

  /* sidebar */
  .sidebar .widget { padding: 14px 16px; }
  .entry-card-title { font-size: 14px; }

  /* article */
  .article {
    padding: 1em 1.2em 1.6em;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--yy-border);
    border-bottom: 1px solid var(--yy-border);
  }
  .entry-content h2 { font-size: 1.15em; }
  .entry-content h3 { font-size: 1.05em; }

  /* footer */
  .footer-widgets, .footer-widgets-mobile { padding: 28px 16px; }
}


/* ============================================================
   レスポンシブ: 480px以下 (スマートフォン)
   ============================================================ */
@media screen and (max-width: 480px) {
  /* スライダー矢印を非表示 */
  .yy-hero-next,
  .yy-hero-prev { display: none !important; }

  /* カードグリッド */
  .yy-col-3 { grid-template-columns: 1fr; }
  .yy-col-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .yy-home-wrap { padding: 20px 12px 16px; }
  .yy-section { margin-bottom: 32px; }
  .yy-section-head { flex-wrap: wrap; gap: 10px; }
  .yy-section-title { font-size: 16px; }

  .site-name-text { font-size: 18px; }
  .entry-card-title { font-size: 13px; }
  .entry-card-content { padding: 10px 12px 12px; }

  .footer-left,
  .footer-center,
  .footer-right {
    padding: 0 8px;
    margin-bottom: 20px;
  }
}
