/* ===================================================
   沖縄ハプニングバー - Main Stylesheet
   Cocoon-compatible layout
   =================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans CJK JP", "Yu Gothic", "游ゴシック", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  background: #f5f5f5;
}

a { color: #0073aa; text-decoration: none; }
a:hover { color: #e05; text-decoration: underline; }

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

/* ===== WRAPPER ===== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.cf::after { content: ""; display: table; clear: both; }

/* ===== HEADER ===== */
#header {
  background: #1a1a2e;
  border-bottom: 4px solid #e05566;
  padding: 0;
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo-header a { text-decoration: none; }
.site-name-text {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  line-height: 1.3;
}
.site-name-text small { font-size: 11px; color: #aaa; display: block; }
.tagline {
  font-size: 12px;
  color: #ccc;
  margin-top: 4px;
}

/* ===== NAVIGATION ===== */
#navi {
  background: #e05566;
}
.navi-in {
  max-width: 1200px;
  margin: 0 auto;
}
.menu-horizontal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.menu-horizontal li a {
  display: block;
  padding: 10px 18px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s;
}
.menu-horizontal li a:hover {
  background: rgba(0,0,0,0.2);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, rgba(26,26,46,0.72) 0%, rgba(22,33,62,0.72) 50%, rgba(15,52,96,0.72) 100%), url('/assets/img/top-hero.jpg') center/cover no-repeat;
  color: #fff;
  padding: 48px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}
.hero-section h1 {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 12px;
  position: relative;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-section .hero-sub {
  font-size: 14px;
  color: #ccc;
  margin: 0;
  position: relative;
}
.hero-badge {
  display: inline-block;
  background: #e05566;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  position: relative;
}

/* ===== MAIN LAYOUT ===== */
#container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}
.content-wrap {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
#main {
  flex: 1;
  min-width: 0;
}
#sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* ===== ARTICLE CARDS ===== */
.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}
.card-inner {
  display: flex;
  gap: 0;
}
.card-thumb {
  width: 200px;
  flex-shrink: 0;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.card-content {
  padding: 14px 16px;
  flex: 1;
}
.card-cat {
  display: inline-block;
  font-size: 11px;
  background: #e05566;
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}
.card-title {
  font-size: 16px;
  font-weight: bold;
  color: #1a1a2e;
  margin: 0 0 6px;
  line-height: 1.4;
}
.card-title a { color: #1a1a2e; }
.card-title a:hover { color: #e05566; text-decoration: none; }
.card-excerpt {
  font-size: 13px;
  color: #666;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-date {
  font-size: 12px;
  color: #999;
}

/* ===== RANKING SECTION ===== */
.ranking-section {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.section-title {
  font-size: 20px;
  font-weight: bold;
  color: #1a1a2e;
  border-left: 5px solid #e05566;
  padding-left: 12px;
  margin: 0 0 20px;
}
.rank-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}
.rank-item:last-child { border-bottom: none; }
.rank-badge {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.rank-badge.rank-1 { background: linear-gradient(135deg, #f9d423, #f83600); }
.rank-badge.rank-2 { background: linear-gradient(135deg, #c0c0c0, #808080); }
.rank-badge.rank-3 { background: linear-gradient(135deg, #cd7f32, #8b4513); }
.rank-badge.rank-4 { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.rank-badge.rank-5 { background: linear-gradient(135deg, #fd79a8, #d63031); }
.rank-info { flex: 1; }
.rank-name {
  font-size: 20px;
  font-weight: bold;
  color: #1a1a2e;
  margin: 0 0 6px;
}
.rank-name a { color: #1a1a2e; }
.rank-name a:hover { color: #e05566; text-decoration: none; }
.rank-desc {
  font-size: 13px;
  color: #555;
  margin: 0 0 10px;
  line-height: 1.6;
}
.rank-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  font-size: 11px;
  background: #f0f4f8;
  color: #445;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #dde;
}
.tag.tag-free { background: #fff5f5; color: #e05566; border-color: #fcc; }
.tag.tag-open { background: #f0fff4; color: #2d9436; border-color: #b2dfdb; }
.btn-link {
  display: inline-block;
  background: #e05566;
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-link:hover { background: #c0392b; color: #fff; text-decoration: none; }

/* ===== ARTICLE PAGE ===== */
.article-wrap {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}
.entry-title {
  font-size: 26px;
  font-weight: bold;
  color: #1a1a2e;
  border-bottom: 3px solid #e05566;
  padding-bottom: 12px;
  margin: 0 0 20px;
  line-height: 1.4;
}
.entry-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.eye-catch-wrap {
  margin: 0 0 24px;
  border-radius: 8px;
  overflow: hidden;
}
.eye-catch-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
/* Article content */
.entry-content h2 {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background: #1a1a2e;
  padding: 10px 16px;
  border-radius: 5px;
  margin: 32px 0 16px;
}
.entry-content h3 {
  font-size: 17px;
  font-weight: bold;
  color: #1a1a2e;
  border-left: 4px solid #e05566;
  padding-left: 12px;
  margin: 24px 0 12px;
}
.entry-content h4 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 6px;
  margin: 20px 0 10px;
}
.entry-content p { margin: 0 0 16px; line-height: 1.9; }
.entry-content ul, .entry-content ol {
  padding-left: 24px;
  margin: 0 0 16px;
}
.entry-content li { margin-bottom: 6px; }
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
}
.info-table th {
  background: #f0f0f0;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  border: 1px solid #ddd;
  width: 120px;
  text-align: left;
}
.info-table td {
  padding: 10px 14px;
  font-size: 14px;
  color: #444;
  border: 1px solid #ddd;
}

/* Info boxes */
.box-pink {
  background: #fff5f5;
  border: 2px dashed #fcc;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
}
.box-blue {
  background: #f0f8ff;
  border: 3px solid #74b9ff;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  position: relative;
}
.box-blue .box-title {
  position: absolute;
  top: -16px;
  left: 12px;
  background: #74b9ff;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 4px;
}

/* Rank boxes in article */
.rank1-box, .rank2-box, .rank3-box, .rank4-box {
  font-size: 17px;
  margin: 16px 0;
  padding: 20px 20px 20px 100px;
  font-weight: bold;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 72px;
  min-height: 90px;
  display: flex;
  align-items: center;
}
.rank1-box { background-color: #fff9e6; border: 2px solid #f9d423; border-radius: 8px; }
.rank2-box { background-color: #f9f9f9; border: 2px solid #c0c0c0; border-radius: 8px; }
.rank3-box { background-color: #fff5ef; border: 2px solid #cd7f32; border-radius: 8px; }
.rank4-box { background-color: #f0f8ff; border: 2px solid #74b9ff; border-radius: 8px; }

/* ===== SIDEBAR ===== */
.sidebar-widget {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.widget-title {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  background: #e05566;
  padding: 8px 14px;
  margin: -20px -20px 16px;
  border-radius: 8px 8px 0 0;
}
.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-menu li {
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 0;
}
.sidebar-menu li:last-child { border-bottom: none; }
.sidebar-menu a {
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-menu a::before {
  content: "▶";
  color: #e05566;
  font-size: 10px;
}
.sidebar-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-rank-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}
.sidebar-rank-list li:last-child { border-bottom: none; }
.sidebar-rank-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-rank-num.n1 { background: linear-gradient(135deg, #f9d423, #f83600); }
.sidebar-rank-num.n2 { background: linear-gradient(135deg, #c0c0c0, #808080); }
.sidebar-rank-num.n3 { background: linear-gradient(135deg, #cd7f32, #8b4513); }
.sidebar-rank-num.n4 { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.sidebar-rank-num.n5 { background: linear-gradient(135deg, #fd79a8, #d63031); }
.sidebar-rank-list a { color: #333; font-weight: bold; }
.sidebar-rank-list a:hover { color: #e05566; text-decoration: none; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 12px;
  color: #999;
  margin-bottom: 16px;
  padding: 8px 0;
}
.breadcrumb a { color: #0073aa; }
.breadcrumb span { margin: 0 6px; }

/* ===== FOOTER ===== */
#footer {
  background: #1a1a2e;
  color: #aaa;
  padding: 32px 16px 16px;
  margin-top: 40px;
}
.footer-in {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.footer-links a {
  color: #ccc;
  font-size: 13px;
  text-decoration: none;
}
.footer-links a:hover { color: #e05566; }
.copyright {
  font-size: 12px;
  color: #666;
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 16px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}
.pagination .current {
  background: #e05566;
  color: #fff;
  border-color: #e05566;
}

/* ===== BAR DETAIL HERO ===== */
.bar-hero {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  color: #fff;
  padding: 32px;
  border-radius: 8px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.bar-hero-rank {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #f9d423, #f83600);
  color: #fff;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.bar-hero h1 {
  font-size: 32px;
  margin: 0 0 8px;
  padding-right: 90px;
}
.bar-hero .bar-tagline {
  font-size: 14px;
  color: #ccc;
  margin: 0;
}
.rating-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.stars { color: #f9d423; font-size: 20px; letter-spacing: 2px; }
.rating-num { font-size: 22px; font-weight: bold; color: #f9d423; }
.rating-count { font-size: 13px; color: #aaa; }

/* ===== TABLE OF CONTENTS ===== */
.toc-box {
  background: #f8f9fa;
  border: 2px solid #e05566;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}
.toc-title {
  font-size: 15px;
  font-weight: bold;
  color: #1a1a2e;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-title::before { content: "📋"; }
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-list li {
  padding: 4px 0;
  font-size: 13px;
  counter-increment: toc-counter;
}
.toc-list a {
  color: #0073aa;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-list a::before {
  content: counter(toc-counter) ".";
  color: #e05566;
  font-weight: bold;
  min-width: 20px;
}
.toc-list { counter-reset: toc-counter; }

/* ===== ACCESS MAP ===== */
.map-wrap {
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0;
  height: 300px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

/* ===== CTA BOX ===== */
.cta-box {
  background: linear-gradient(135deg, #e05566, #c0392b);
  color: #fff;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin: 24px 0;
}
.cta-box h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: #fff;
}
.cta-box p { font-size: 14px; color: rgba(255,255,255,0.85); margin: 0 0 16px; }
.cta-btn {
  display: inline-block;
  background: #fff;
  color: #e05566;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  color: #e05566;
  text-decoration: none;
}

/* ===== UPDATE NOTICE ===== */
.update-notice {
  background: #fff9e6;
  border: 2px solid #f9d423;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}
.update-notice strong { color: #e05566; }

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1023px) {
  .content-wrap { flex-direction: column; }
  #sidebar { width: 100%; }
}

@media screen and (max-width: 768px) {
  .header-in { flex-direction: column; gap: 8px; text-align: center; }
  .site-name-text { font-size: 15px; }
  .hero-section h1 { font-size: 20px; }
  .card-inner { flex-direction: column; }
  .card-thumb { width: 100%; }
  .card-thumb img { height: 180px; }
  .rank-item { flex-direction: column; align-items: center; text-align: center; }
  .rank-tags { justify-content: center; }
  .bar-hero h1 { font-size: 22px; padding-right: 80px; }
  .entry-title { font-size: 20px; }
  .eye-catch-wrap img { height: 220px; }
  .article-wrap { padding: 20px; }
}

@media screen and (max-width: 480px) {
  .menu-horizontal li a { padding: 8px 12px; font-size: 13px; }
  #container { margin: 16px auto; }
  .hero-section { padding: 32px 12px; }
}

/* ===== FEATURED BAR (index) ===== */
.featured-banner {
  background: linear-gradient(135deg, #fff9e6, #fff3cd);
  border: 2px solid #f9d423;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.featured-crown {
  font-size: 48px;
  flex-shrink: 0;
}
.featured-info h2 {
  font-size: 18px;
  font-weight: bold;
  color: #1a1a2e;
  margin: 0 0 4px;
}
.featured-info p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

/* ===== REVIEW BOX ===== */
.review-box {
  background: #f9f9f9;
  border-left: 4px solid #e05566;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
  font-size: 14px;
}
.review-author {
  font-size: 13px;
  color: #999;
  font-style: normal;
  margin-top: 8px;
}

/* ===== QUICK FACTS ===== */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.fact-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fact-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fact-value {
  font-size: 15px;
  font-weight: bold;
  color: #1a1a2e;
}
.fact-item.highlight {
  background: #fff5f5;
  border: 1px solid #fcc;
}
.fact-item.highlight .fact-value { color: #e05566; }
