/*
Theme Name: kicchow
Theme URI: https://kicchow.me
Author: kicchow
Description: パン作りとアウトドア料理の専門メディア kicchow 嬉兆
Version: 1.0
*/

/* ===== CSS変数 ===== */
:root {
  --green-dark:  #2C3A24;
  --green-mid:   #4A7A35;
  --green-light: #8DB87A;
  --green-pale:  #EAF0E2;
  --cream:       #FAFAF5;
  --beige:       #F5EDD8;
  --gold:        #D4B896;
  --gold-dark:   #C4A882;
  --text-dark:   #2C2C2A;
  --text-mid:    #5A5A58;
  --text-light:  #8A8070;
  --border:      #D8D0C0;
  --font-body:   'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-title:  'Kaisei Decol', 'Hiragino Mincho ProN', serif;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
}

/* ===== リセット ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-dark); }

/* ===== ベース ===== */
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ===== レイアウト ===== */
.site-wrapper { max-width: 1080px; margin: 0 auto; }

.body-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: start;
}

.main-col { padding: 32px; }
.side-col {
  padding: 28px 24px;
  border-left: 0.5px solid var(--border);
  background: #F5F0E8;
  min-height: 600px;
}

/* ===== ヘッダー ===== */
.site-header {
  background: var(--green-dark);
  border-bottom: 2px solid var(--green-mid);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo .logo-mark svg { width: 38px; height: 38px; }

.header-logo .logo-name {
  font-family: var(--font-title);
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.2;
}

.header-logo .logo-sub {
  color: var(--green-light);
  font-size: 9px;
  letter-spacing: 0.5px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav a {
  color: #D3D1C7;
  font-size: 12px;
  font-family: var(--font-body);
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--green-light); }

.header-search {
  background: #3A4A30;
  border: none;
  border-radius: 16px;
  padding: 6px 14px;
  color: #D3D1C7;
  font-size: 11px;
  font-family: var(--font-body);
  width: 150px;
  outline: none;
}

.header-search::placeholder { color: #6A8A5A; }

.header-actions {
  display: none;
  gap: 14px;
  align-items: center;
}

.header-actions a { color: #A09880; font-size: 22px; }

/* ===== フッター ===== */
.site-footer { background: var(--green-dark); }

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-family: var(--font-title);
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
}

.footer-sub {
  color: var(--green-light);
  font-size: 10px;
  margin-top: 2px;
}

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

.footer-links a {
  color: var(--gold-dark);
  font-size: 11px;
}

.footer-copy { color: #4A5A40; font-size: 10px; }

/* ===== ボトムナビ（スマホのみ） ===== */
.bottom-nav {
  display: none;
  background: #fff;
  border-top: 0.5px solid var(--border);
  padding: 10px 0 16px;
  justify-content: space-around;
  position: sticky;
  bottom: 0;
  z-index: 100;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 16px;
  color: #A09880;
  font-size: 9px;
}

.bottom-nav a i { font-size: 20px; }
.bottom-nav a.active { color: var(--green-mid); }

/* ===== セクション共通 ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.section-label {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 1.5px;
  font-weight: 700;
  white-space: nowrap;
}

.section-line { flex: 1; height: 0.5px; background: var(--border); }
.section-more { font-size: 11px; color: var(--green-mid); white-space: nowrap; }

/* ===== カテゴリグリッド ===== */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.cat-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44,58,36,0.1);
  color: var(--text-dark);
}

.cat-icon { font-size: 24px; margin-bottom: 7px; display: block; }
.cat-name { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; }
.cat-desc { font-size: 11px; color: var(--text-light); line-height: 1.5; }
.cat-tag { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 10px; margin-top: 7px; }

/* ===== 記事スライダー ===== */
.slider-wrap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  margin-bottom: 28px;
}

.slider-wrap::-webkit-scrollbar { height: 3px; }
.slider-wrap::-webkit-scrollbar-track { background: #F0EBE0; border-radius: 2px; }
.slider-wrap::-webkit-scrollbar-thumb { background: var(--green-light); border-radius: 2px; }

.slider-card {
  flex-shrink: 0;
  width: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  border: 0.5px solid var(--border);
  scroll-snap-align: start;
  display: block;
  transition: transform 0.15s;
  color: var(--text-dark);
}

.slider-card:hover { transform: translateY(-2px); color: var(--text-dark); }

.slider-thumb {
  height: 110px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: var(--green-pale);
}

.slider-thumb img { width: 100%; height: 100%; object-fit: cover; }

.slider-body { padding: 10px; }
.slider-tag { display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 7px; margin-bottom: 5px; }
.slider-title { font-size: 12px; font-weight: 700; line-height: 1.5; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slider-meta { font-size: 10px; color: var(--text-light); }

/* ===== 記事一覧カード ===== */
.article-list { display: flex; flex-direction: column; gap: 10px; }

.article-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  gap: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
  color: var(--text-dark);
}

.article-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(44,58,36,0.08);
  color: var(--text-dark);
}

.article-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: var(--green-pale);
}

.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-body { flex: 1; min-width: 0; }

.article-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta { font-size: 11px; color: var(--text-light); margin-bottom: 5px; }
.article-tag { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 7px; }

/* ===== おすすめ商品 ===== */
.picks { background: var(--green-dark); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 20px; }

.picks-label {
  font-size: 10px;
  color: var(--green-light);
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 0.5px solid #3A4A30;
  color: #E8E0D0;
}

.pick-item:last-child { border-bottom: none; padding-bottom: 0; }
.pick-item:hover { color: var(--gold); }

.pick-icon { width: 34px; height: 34px; background: #3A4A30; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 17px; color: var(--green-light); }
.pick-info { flex: 1; min-width: 0; }
.pick-name { font-size: 11px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-sub { font-size: 10px; color: #6A8A5A; }
.pick-price { font-size: 11px; color: var(--gold); font-weight: 700; white-space: nowrap; flex-shrink: 0; }

/* ===== サイドバーウィジェット ===== */
.widget { margin-bottom: 18px; }

.widget-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-pale);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--green-mid);
  margin-bottom: 8px;
}

.widget-item {
  font-size: 12px;
  color: var(--text-dark);
  padding: 7px 0;
  border-bottom: 0.5px solid var(--border);
  line-height: 1.5;
}

.widget-item:last-child { border-bottom: none; }
.widget-item a { color: var(--text-dark); }
.widget-item a:hover { color: var(--green-mid); }

/* ===== 記事本文 ===== */
.entry-header {
  background: var(--green-pale);
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}

.entry-cat {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  background: var(--green-mid);
  color: #fff;
  margin-bottom: 10px;
}

.entry-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.5;
  margin-bottom: 10px;
}

.entry-meta { font-size: 12px; color: #6A8A5A; display: flex; gap: 12px; align-items: center; }

.entry-thumbnail {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.entry-content { font-size: 15px; line-height: 1.9; color: var(--text-dark); }

.entry-content h2 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: var(--green-dark);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin: 36px 0 16px;
}

.entry-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--green-dark);
  border-left: 4px solid var(--green-light);
  border-bottom: 1px solid var(--border);
  padding: 8px 0 8px 12px;
  margin: 28px 0 14px;
}

.entry-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-mid);
  padding: 4px 0 4px 10px;
  border-left: 3px solid var(--gold-dark);
  margin: 20px 0 10px;
}

.entry-content p { margin-bottom: 16px; }

.entry-content ul, .entry-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.entry-content li { margin-bottom: 6px; line-height: 1.8; }

.entry-content blockquote {
  border-left: 4px solid var(--green-light);
  background: var(--green-pale);
  padding: 14px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
  color: var(--text-mid);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.entry-content table th {
  background: var(--green-dark);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
}

.entry-content table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}

.entry-content table tr:nth-child(even) td { background: #F5F0E8; }

.entry-content img { border-radius: var(--radius-md); margin: 16px 0; }

.entry-content code {
  background: #F5F0E8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--green-dark);
}

.entry-content pre {
  background: var(--green-dark);
  color: #E8E0D0;
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.6;
}

/* ===== Amazonリンクカード ===== */
.amazon-card {
  background: #FDF5E0;
  border: 0.5px solid var(--gold-dark);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  text-decoration: none;
  color: var(--text-dark);
  transition: box-shadow 0.2s;
}

.amazon-card:hover { box-shadow: 0 2px 8px rgba(196,168,130,0.3); color: var(--text-dark); }

.amazon-card-img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--beige);
}

.amazon-card-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; line-height: 1.4; }
.amazon-card-price { font-size: 13px; color: #C47A35; font-weight: 700; }
.amazon-card-btn { font-size: 11px; padding: 5px 12px; background: #F0A500; color: #fff; border-radius: 6px; white-space: nowrap; flex-shrink: 0; margin-left: auto; }

/* ===== カテゴリヘッダー ===== */
.archive-header {
  background: var(--green-pale);
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}

.archive-title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.archive-desc { font-size: 13px; color: #5A7048; line-height: 1.7; }

/* ===== ページネーション ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
}

.pagination a, .pagination span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  border: 0.5px solid var(--border);
  background: #fff;
  color: var(--text-dark);
}

.pagination .current { background: var(--green-mid); color: #fff; border-color: var(--green-mid); }
.pagination a:hover { background: var(--green-pale); color: var(--green-dark); }

/* ===== アニメーション ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.4s ease both; }
.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.10s; }
.fade-up:nth-child(3) { animation-delay: 0.15s; }
.fade-up:nth-child(4) { animation-delay: 0.20s; }
.fade-up:nth-child(5) { animation-delay: 0.25s; }

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .header-inner { padding: 12px 16px; }
  .header-nav { display: none; }
  .header-actions { display: flex; }

  .body-inner { grid-template-columns: 1fr; }
  .main-col { padding: 18px 16px; }
  .side-col { border-left: none; border-top: 0.5px solid var(--border); padding: 18px 16px; min-height: auto; }

  .entry-header { padding: 20px 16px; }
  .entry-title { font-size: 20px; }
  .entry-content { font-size: 14px; }
  .entry-content h2 { font-size: 17px; padding: 10px 14px; }
  .entry-content h3 { font-size: 15px; }

  .archive-header { padding: 20px 16px; }
  .archive-title { font-size: 20px; }

  .footer-inner { padding: 16px; flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }

  .bottom-nav { display: flex; }
}

/* ===== ヒーロー ===== */
.hero {
  background: var(--green-pale);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
}

.hero-left {
  padding: 40px 48px 40px 32px;
}

.hero-label {
  font-size: 9px;
  color: var(--green-mid);
  letter-spacing: 2.5px;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.5;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 13px;
  color: #5A7048;
  line-height: 1.8;
  margin-bottom: 20px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-mid);
  color: var(--green-pale);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 24px;
  text-decoration: none;
  transition: background 0.2s;
}

.hero-btn:hover { background: var(--green-dark); color: var(--green-pale); }

.hero-right {
  background: #C8DEB8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-right i { font-size: 80px; color: #4A7A35; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-left { padding: 22px 16px 18px; }
  .hero-title { font-size: 22px; }
  .hero-right { display: none; }
}