/* ===========================================
   Lav-Fabec Journal - Stylesheet
   Matching TOP page design
   =========================================== */

:root {
  --bg: #2a2a2a;
  --ink: #e0e0e0;
  --ink-weak: #999999;
  --cream: #2a2a2a;
  --gold: #c6a664;
  --dark: #171717;
  --container: min(1120px, 92vw);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --color-secondary: #8b7355;
  --color-accent: #c4a77d;
  --color-bg-light: #f5f3f0;
  --color-text-light: #aaa;
  --color-text-muted: #666;
  --color-border: rgba(255, 255, 255, 0.1);

  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Playfair Display', 'Cormorant Garamond', serif;

  --header-height: 80px;
  --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Utility Classes */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* ===========================================
   Header - Matching TOP page
   =========================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 1);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.5);
}

.header--hide {
  transform: translateY(-100%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.header__brand {
  display: block;
  text-decoration: none;
  color: #fff;
  line-height: 0;
}

.header__logo {
  height: 60px;
  width: auto;
  display: block;
  transition: opacity 0.3s var(--ease);
}

.header__logo:hover {
  opacity: 0.8;
}

.header__nav {
  display: flex;
}

.header__menu {
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__link {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.header__link:focus-visible,
.header__link:hover {
  color: var(--gold);
}

.header__link:hover::after {
  transform: scaleX(1);
}

.header__link--journal {
  padding: 0.4rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
}

.header__link--journal::after {
  display: none;
}

.header__link--journal:hover {
  background: var(--gold);
  color: #000;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
  z-index: 60;
}

.header__burger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

/* ===========================================
   Main Content Area
   =========================================== */
main {
  min-height: calc(100vh - var(--header-height));
}

/* ===========================================
   Journal Hero
   =========================================== */
.journal-hero {
  padding: 40px 0 30px;
  background: var(--dark);
  border-bottom: 1px solid var(--color-border);
}

.journal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.journal-breadcrumb a:hover {
  color: var(--gold);
}

.journal-hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--ink);
  margin-bottom: 12px;
}

.journal-hero-description {
  font-size: 0.95rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

/* ===========================================
   Journal Section
   =========================================== */
.journal-section {
  padding: 60px 0 80px;
}

/* Filter Buttons */
.journal-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--ink-weak);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

/* Journal Grid */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 992px) {
  .journal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Journal Card */
.journal-card {
  display: flex;
  flex-direction: column;
  background: var(--dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}

.journal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.journal-card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.journal-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.journal-card:hover .journal-card-image img {
  transform: scale(1.05);
}

.journal-card-image-placeholder {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.journal-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.journal-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.journal-card-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.journal-card-category {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  color: var(--ink-weak);
}

.journal-card-category-coffee {
  background: rgba(45, 90, 45, 0.3);
  color: #8bc48b;
}

.journal-card-category-news {
  background: rgba(45, 74, 90, 0.3);
  color: #8bb8c4;
}

.journal-card-category-nuts {
  background: rgba(139, 90, 43, 0.3);
  color: #c9a66b;
}

.journal-card-category-chocolate {
  background: rgba(92, 51, 23, 0.3);
  color: #b87a5a;
}

.journal-card-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink);
}

.journal-card-summary {
  font-size: 0.85rem;
  color: var(--ink-weak);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Empty State */
.journal-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-muted);
}

/* Pagination */
.journal-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 60px;
}

.pagination-btn {
  padding: 10px 20px;
  font-size: 0.85rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--ink);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 8px;
}

.pagination-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--ink);
}

.pagination-number:hover,
.pagination-number.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

/* ===========================================
   Blog Detail
   =========================================== */
.blog-detail-hero {
  padding: 30px 0 20px;
  background: var(--dark);
}

.blog-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.blog-detail-breadcrumb a:hover {
  color: var(--gold);
}

.blog-detail-header {
  padding: 40px 0 32px;
  max-width: 800px;
  margin: 0 auto;
}

.blog-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.blog-detail-date {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.blog-detail-category {
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  color: var(--ink-weak);
}

.blog-detail-category-coffee {
  background: rgba(45, 90, 45, 0.3);
  color: #8bc48b;
}

.blog-detail-category-news {
  background: rgba(45, 74, 90, 0.3);
  color: #8bb8c4;
}

.blog-detail-category-nuts {
  background: rgba(139, 90, 43, 0.3);
  color: #c9a66b;
}

.blog-detail-category-chocolate {
  background: rgba(92, 51, 23, 0.3);
  color: #b87a5a;
}

.blog-detail-title {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

@media (max-width: 768px) {
  .blog-detail-title {
    font-size: 1.4rem;
  }
}

.blog-detail-eyecatch {
  max-width: 800px;
  margin: 0 auto 40px;
  border-radius: 8px;
  overflow: hidden;
}

.blog-detail-eyecatch img {
  width: 100%;
}

/* Blog Content Styles */
.blog-detail-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.blog-detail-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  color: var(--ink);
}

.blog-detail-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 36px 0 16px;
  color: var(--ink);
}

.blog-detail-content p {
  margin-bottom: 24px;
  color: var(--ink);
}

.blog-detail-content img {
  border-radius: 8px;
  margin: 32px 0;
}

.blog-detail-content ul,
.blog-detail-content ol {
  margin: 24px 0;
  padding-left: 24px;
}

.blog-detail-content li {
  margin-bottom: 8px;
  list-style: disc;
  color: var(--ink);
}

.blog-detail-content ol li {
  list-style: decimal;
}

.blog-detail-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--dark);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  color: var(--ink-weak);
}

.blog-detail-content a {
  color: var(--gold);
  text-decoration: underline;
}

.blog-detail-content a:hover {
  opacity: 0.8;
}

/* Share Buttons */
.blog-detail-share {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 20px;
}

.share-label {
  font-size: 0.85rem;
  color: var(--ink-weak);
}

.share-buttons {
  display: flex;
  gap: 12px;
}

.share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: opacity var(--transition);
}

.share-btn:hover {
  opacity: 0.8;
}

.share-btn-twitter {
  background: #1da1f2;
}

.share-btn-facebook {
  background: #1877f2;
}

.share-btn-line {
  background: #00b900;
}

/* Back Button */
.blog-detail-back {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 0 60px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-weak);
  transition: color var(--transition);
}

.back-btn:hover {
  color: var(--gold);
}

.back-arrow {
  font-size: 1.2rem;
}

/* ===========================================
   CTA Section
   =========================================== */
.journal-cta {
  padding: 80px 0;
  background: var(--dark);
  text-align: center;
  color: var(--ink);
  border-top: 1px solid var(--color-border);
}

.journal-cta h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.journal-cta p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 32px;
}

.cta-btn {
  display: inline-block;
  padding: 16px 48px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  background: var(--gold);
  color: var(--dark);
  border-radius: 4px;
  transition: all var(--transition);
}

.cta-btn:hover {
  background: #d4b77a;
}

/* ===========================================
   Footer - Matching TOP page
   =========================================== */
.footer {
  background: #010101;
  color: #888;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.footer__bg-video {
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

.footer__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% center;
  display: block;
}

.footer__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #010101 0%, rgba(1, 1, 1, 0.8) 30%, rgba(1, 1, 1, 0.3) 100%);
  z-index: 1;
}

.footer__container {
  width: var(--container);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__logo {
  width: 140px;
  height: auto;
  display: block;
  opacity: 1;
  filter: brightness(1.1);
}

.footer__tagline {
  font-size: 0.9rem;
  color: #aaa;
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.08em;
  font-style: italic;
  font-weight: 300;
}

.footer__nav {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer__nav-link {
  color: #888;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  line-height: 1.6;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 2px;
}

.footer__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.footer__nav-link:hover {
  color: var(--gold);
}

.footer__nav-link:hover::after {
  width: 100%;
}

.footer__location {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.footer__location p {
  margin: 0;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  color: #666;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer__social:hover {
  color: #E1306C;
  transform: scale(1.1);
}

.footer__social-icon {
  width: 28px;
  height: 28px;
}

.footer__bottom {
  padding-top: 30px;
  text-align: center;
}

.footer__copy {
  font-size: 0.75rem;
  color: #444;
  letter-spacing: 0.08em;
  font-weight: 300;
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .header__nav {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header__logo {
    height: 40px;
  }

  .journal-hero {
    padding: 60px 0 40px;
  }

  .journal-hero-title {
    font-size: 2rem;
  }

  .journal-section {
    padding: 40px 0 60px;
  }

  .journal-filter {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .journal-cta {
    padding: 60px 0;
  }

  .journal-cta h2 {
    font-size: 1.4rem;
  }

  .blog-detail-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer__content {
    gap: 30px;
  }

  .footer__nav {
    gap: 24px;
  }
}
