/*
Theme Name: 豊後オヤジの日本酒探訪
Theme URI: https://bungo-no-bonjovi.com/
Description: Apple風カスタムデザイン - Cocoon Child拡張テーマ
Author: まこつ
Template: cocoon-master
Version: 1.0.0
*/

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

/* ===== CSS変数 ===== */
:root {
  --off-white: #f5f5f7;
  --white: #ffffff;
  --light-gray: #d2d2d7;
  --mid-gray: #86868b;
  --dark-gray: #1d1d1f;
  --black: #000000;
  --accent: #b5935a;
  --accent-light: #e8d5b0;
  --nav-height: 52px;
}

/* ===== リセット・ベース ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', 'Noto Serif JP', sans-serif !important;
  background: var(--white) !important;
  color: var(--dark-gray) !important;
  -webkit-font-smoothing: antialiased;
  margin: 0 !important;
}

/* Cocoonのデフォルト要素を非表示 */
#header,
.navi,
.navi-in,
.site-header,
#navi {
  display: none !important;
}

/* ===== カスタムナビ ===== */
#bongo-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

#bongo-nav .nav-logo {
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--dark-gray);
  text-decoration: none;
}

#bongo-nav .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#bongo-nav .nav-links a {
  font-size: 12px;
  font-weight: 400;
  color: var(--dark-gray);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

#bongo-nav .nav-links a:hover { color: var(--accent); }

/* ===== メインコンテンツ上部余白（固定ナビ分） ===== */
#wrapper,
.wrap {
  margin-top: var(--nav-height) !important;
  padding-top: 0 !important;
}

/* WordPressログイン時の管理バー対応 */
body.admin-bar #bongo-nav {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar #bongo-nav {
    top: 46px;
  }
}

/* ===== ヒーローセクション ===== */
#bongo-hero {
  background: var(--black);
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 60px 24px;
}

#bongo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 70%, rgba(181,147,90,0.18) 0%, transparent 70%);
  pointer-events: none;
}

#bongo-hero::after {
  content: '酒';
  position: absolute;
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(200px, 30vw, 420px);
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  bottom: -40px;
  right: -20px;
  line-height: 1;
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  margin-bottom: 44px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: #c4a366;
  color: var(--white);
  transform: scale(1.02);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  padding: 12px 28px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== カテゴリストリップ ===== */
#bongo-category {
  background: var(--off-white);
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--mid-gray);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--dark-gray);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 900px;
}

.cat-chip {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--dark-gray);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.cat-chip .cat-icon { font-size: 22px; line-height: 1; }

.cat-chip:hover {
  background: var(--dark-gray);
  color: var(--white);
  border-color: var(--dark-gray);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ===== 記事グリッド（トップページ） ===== */
#bongo-articles {
  padding: 40px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
}

.articles-header .section-title { margin-bottom: 0; }

.see-all {
  font-size: 13px;
  color: #0066cc;
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.2s;
}

.see-all:hover { opacity: 0.7; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ===== 記事カード（トップ・アーカイブ共通） ===== */
.bongo-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--off-white);
  text-decoration: none;
  color: var(--dark-gray);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
}

.bongo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  color: var(--dark-gray);
}

.bongo-card .card-image {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: linear-gradient(135deg, #e8d5b0 0%, #c9a96e 100%);
}

.bongo-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.bongo-card:hover .card-image img { transform: scale(1.04); }

.bongo-card .card-body {
  padding: 20px 20px 24px;
}

.bongo-card .card-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bongo-card .card-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--dark-gray);
  margin-bottom: 8px;
}

.bongo-card .card-excerpt {
  font-size: 12px;
  color: var(--mid-gray);
  line-height: 1.65;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bongo-card .card-date {
  font-size: 11px;
  color: var(--light-gray);
  letter-spacing: 0.04em;
}

/* ===== 地域セクション ===== */
#bongo-region {
  background: var(--dark-gray);
  padding: 80px 24px;
  text-align: center;
}

#bongo-region .section-eyebrow { color: var(--accent); }
#bongo-region .section-title { color: var(--white); }

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  max-width: 700px;
  margin: 0 auto;
}

.region-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px 12px;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.region-item .region-icon { font-size: 20px; }

.region-item:hover {
  background: rgba(181,147,90,0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== 豆知識セクション ===== */
#bongo-knowledge {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.knowledge-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.know-card {
  background: var(--off-white);
  border-radius: 18px;
  padding: 36px 32px;
  text-decoration: none;
  color: var(--dark-gray);
  transition: all 0.25s;
  display: block;
}

.know-card:hover {
  background: var(--dark-gray);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.know-card:hover .know-desc { color: rgba(255,255,255,0.55); }
.know-card:hover .know-link { color: var(--accent); }

.know-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
  color: var(--accent);
}

.know-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.know-desc {
  font-size: 12px;
  color: var(--mid-gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.know-link {
  font-size: 12px;
  color: #0066cc;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== プロフィールストリップ ===== */
#bongo-profile {
  background: var(--off-white);
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.profile-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark-gray);
}

.profile-bio {
  font-size: 13px;
  color: var(--mid-gray);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 24px;
}

/* ===== 個別記事ページ ===== */
.single #bongo-hero { display: none; }
.single #bongo-category { display: none; }
.single #bongo-articles { display: none; }
.single #bongo-region { display: none; }
.single #bongo-knowledge { display: none; }
.single #bongo-profile { display: none; }

.single .entry-title,
.single h1.entry-title {
  font-family: 'Shippori Mincho', serif !important;
  font-size: clamp(24px, 5vw, 40px) !important;
  font-weight: 700 !important;
  color: var(--dark-gray) !important;
  line-height: 1.4 !important;
  margin-bottom: 24px !important;
}

.single .entry-content {
  font-size: 15px !important;
  line-height: 1.9 !important;
  color: var(--dark-gray) !important;
  max-width: 720px;
  margin: 0 auto;
}

.single .entry-content h2 {
  font-family: 'Shippori Mincho', serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  border-left: 4px solid var(--accent) !important;
  padding-left: 14px !important;
  margin: 48px 0 20px !important;
  border-bottom: none !important;
  background: none !important;
}

.single .entry-content h3 {
  font-family: 'Shippori Mincho', serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 36px 0 16px !important;
  color: var(--dark-gray) !important;
}

.single .entry-content p {
  margin-bottom: 1.6em !important;
}

/* ===== カスタムフッター ===== */
#bongo-footer {
  background: var(--dark-gray);
  padding: 40px 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}

.footer-logo {
  font-family: 'Shippori Mincho', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: 12px;
  color: var(--mid-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--white); }

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

/* Cocoonデフォルトフッターを非表示 */
#footer,
.site-footer,
#footer-widget-area {
  display: none !important;
}

/* ===== スクロールリビール ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  #bongo-nav .nav-links { display: none; }

  .knowledge-cards {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
