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

@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');

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

/* Cocoon デフォルト要素を隠す */
#header, .navi, .navi-in, .site-header, #navi,
#footer, .site-footer, #footer-widget-area { display: none !important; }

#wrapper, .wrap { margin-top: 0 !important; padding: 0 !important; max-width: 100% !important; }

/* ===== NAV ===== */
#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);
}

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

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

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

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

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

.nav-search {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-gray);
  padding: 4px;
  display: flex;
  align-items: center;
}

/* ===== HERO ===== */
#bongo-hero {
  margin-top: var(--nav-height);
  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;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Shippori Mincho', serif !important;
  font-size: clamp(40px, 7vw, 88px) !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 20px !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
  position: relative;
  z-index: 1;
}

.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;
  position: relative;
  z-index: 1;
}

.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) !important;
  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; transform: scale(1.02); }

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85) !important;
  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) !important; }

/* ===== カテゴリストリップ ===== */
#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;
  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;
  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, .single #bongo-category,
.single #bongo-articles, .single #bongo-region,
.single #bongo-knowledge, .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;
  border: none !important;
  background: none !important;
  padding: 0 !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;
  border-radius: 0 !important;
}

.single .entry-content h3 {
  font-family: 'Shippori Mincho', serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 36px 0 16px !important;
  background: none !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; }

.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; }

/* ===== 都道府県ページ ===== */
.page-prefecture-header {
  background: var(--black);
  padding: 72px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-prefecture-header::after {
  content: '日本';
  position: absolute;
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(140px, 24vw, 300px);
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  bottom: -20px; right: -10px;
  line-height: 1;
  pointer-events: none;
}

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

.page-prefecture-header h1 {
  font-family: 'Shippori Mincho', serif !important;
  font-size: clamp(32px, 5vw, 52px) !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  line-height: 1.2 !important;
  margin: 0 0 12px !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.page-prefecture-header .page-sub { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; }

.prefecture-wrap { max-width: 960px; margin: 0 auto; padding: 64px 24px 80px; }

.region-block { margin-bottom: 56px; }
.region-block:last-child { margin-bottom: 0; }

.region-block-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.04em;
}

.region-block-title .region-emoji { font-size: 22px; line-height: 1; }

.pref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

.pref-chip {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
  text-decoration: none;
  color: var(--dark-gray);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

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

.pref-chip.no-article { opacity: 0.35; pointer-events: none; cursor: default; }

/* ===== スクロールリビール ===== */
.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) {
  .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); }
  .pref-grid { grid-template-columns: repeat(4, 1fr); }
}
