/* ============================================
   Mens Grooming Japan - Obsidian & Copper Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  /* Color Palette - Obsidian & Copper */
  --obsidian: #0f0f1a;
  --charcoal: #1a1a2e;
  --slate: #232340;
  --steel: #2d2d4a;
  --copper: #c9956b;
  --copper-light: #dbb08a;
  --copper-dark: #a67744;
  --gold: #d4a574;
  --ivory: #f5f0eb;
  --cream: #ebe3d9;
  --text-light: #e8e4e0;
  --text-muted: #9a958f;
  --text-dark: #2c2824;
  --surface: #1e1e35;
  --surface-hover: #28284a;
  --border: rgba(201, 149, 107, 0.15);
  --border-strong: rgba(201, 149, 107, 0.3);

  /* Typography */
  --font-heading: 'Outfit', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-gap: 5rem;
  --container-width: 1200px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  line-height: 1.8;
  color: var(--text-light);
  background: var(--obsidian);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--copper); }

/* ── Container ── */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.header.scrolled {
  background: rgba(15, 15, 26, 0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.02em;
}
.site-logo a { color: inherit; }
.site-logo span { color: var(--copper); }

/* Navigation */
.nav { display: flex; align-items: center; gap: 0.5rem; }
.nav-list { display: flex; list-style: none; gap: 0; }
.nav-list li { position: relative; }
.nav-list a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-list a:hover,
.nav-list a.active { color: var(--copper-light); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: '▾';
  margin-left: 0.3rem;
  font-size: 0.7em;
  opacity: 0.5;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--charcoal);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  list-style: none;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1001;
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ivory);
  position: absolute;
  transition: all var(--transition);
}
.hamburger span { top: 50%; transform: translateY(-50%); }
.hamburger span::before { content: ''; top: -8px; }
.hamburger span::after { content: ''; top: 8px; }
.hamburger.active span { background: transparent; }
.hamburger.active span::before { top: 0; transform: rotate(45deg); }
.hamburger.active span::after { top: 0; transform: rotate(-45deg); }

/* Mobile Slide Panel */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--charcoal);
  z-index: 999;
  padding: 80px 2rem 2rem;
  transition: right var(--transition);
  overflow-y: auto;
  border-left: 1px solid var(--border);
}
.mobile-nav.active { right: 0; }
.mobile-nav ul { list-style: none; }
.mobile-nav a {
  display: block;
  padding: 0.8rem 0;
  color: var(--text-light);
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--copper); }
.mobile-nav .mobile-dropdown-title {
  color: var(--copper);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1.5rem 0 0.5rem;
  border-bottom: none;
}
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition);
}
.overlay.active { display: block; opacity: 1; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,15,26,0.3) 0%,
    rgba(15,15,26,0.5) 50%,
    rgba(15,15,26,0.95) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  text-shadow:
    2px 2px 0 #000,
    -2px 2px 0 #000,
    2px -2px 0 #000,
    -2px -2px 0 #000,
    0 4px 8px rgba(0,0,0,0.5);
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--copper);
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
}
.hero-cta:hover {
  background: var(--copper-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,149,107,0.3);
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--copper);
  margin-bottom: 0.3rem;
}
.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Section ── */
.section { padding: var(--section-gap) 0; }
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 0.8rem;
}
.section-header .section-line {
  width: 60px;
  height: 3px;
  background: var(--copper);
  margin: 0 auto 1rem;
  border-radius: 2px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Card Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.card:hover::before { opacity: 1; }
.card-number {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--copper);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 0.8rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--copper-light);
  font-size: 0.9rem;
  font-weight: 500;
}
.card-link:hover { color: var(--copper); }
.card-link::after {
  content: '→';
  transition: transform var(--transition);
}
.card-link:hover::after { transform: translateX(4px); }

/* ── Article Content (sub-pages) ── */
.article-section {
  padding: calc(70px + 3rem) 0 var(--section-gap);
}
.article-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.article-content {
  min-width: 0;
}
.article-content h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ivory);
  margin-bottom: 2rem;
  line-height: 1.4;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-strong);
}
.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--copper-light);
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--copper);
}
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ivory);
  margin: 2rem 0 0.8rem;
}
.article-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.9;
}
.article-content strong { color: var(--copper-light); }
.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-light);
}
.article-content li { margin-bottom: 0.5rem; }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.article-content th {
  background: var(--slate);
  color: var(--copper-light);
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--border);
}
.article-content td {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  color: var(--text-light);
}
.article-content tr:nth-child(even) { background: rgba(30,30,53,0.5); }
.article-content pre {
  background: var(--obsidian);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  overflow-x: auto;
  max-width: 100%;
}
.article-content pre code {
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--copper-light);
  font-size: 0.9rem;
}
.article-content blockquote {
  border-left: 3px solid var(--copper);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(201,149,107,0.05);
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-style: italic;
}
.article-content .glossary-link {
  color: var(--copper-light);
  border-bottom: 1px dashed var(--copper-light);
}
.article-content .glossary-link:hover {
  color: var(--copper);
  border-color: var(--copper);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}
.sidebar-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-section h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--copper);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sidebar-section ul { list-style: none; }
.sidebar-section li {
  margin-bottom: 0.3rem;
}
.sidebar-section a {
  display: block;
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.sidebar-section a:hover {
  color: var(--copper-light);
  padding-left: 0.5rem;
}
.sidebar-ad {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.sidebar-ad p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ── News Section ── */
.news-section { padding: var(--section-gap) 0; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.news-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all var(--transition);
}
.news-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.news-date {
  font-size: 0.8rem;
  color: var(--copper);
  font-weight: 500;
}
.news-title {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}
.news-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--copper-light);
  font-weight: 500;
}

/* ── Footer ── */
.footer {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 0.8rem;
}
.footer-brand span { color: var(--copper); }
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}
.footer-section h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.4rem; }
.footer-section a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-section a:hover { color: var(--copper-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-links a:hover { color: var(--copper-light); }

/* ── Blog list ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.blog-card-body { padding: 1.5rem; }
.blog-card-date {
  font-size: 0.8rem;
  color: var(--copper);
  margin-bottom: 0.5rem;
}
.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── Glossary ── */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.glossary-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  transition: all var(--transition);
}
.glossary-item:hover {
  border-color: var(--border-strong);
}
.glossary-item h3 {
  color: var(--copper-light);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.glossary-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .article-container {
    grid-template-columns: 1fr;
  }
  .sidebar { display: none; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root { --section-gap: 3rem; }
  
  .nav { display: none; }
  .hamburger { display: block; }
  .mobile-nav { display: block; }
  
  .hero { min-height: 70vh; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-item h3 { font-size: 1.6rem; }
  
  .card-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  
  .article-content h1 { font-size: 1.6rem; }
  .article-content h2 { font-size: 1.3rem; }
  
  .container { padding: 0 1.2rem; }
}

@media (max-width: 480px) {
  .header-container { height: 60px; padding: 0 1rem; }
  .site-logo { font-size: 1.1rem; }
  .hero { min-height: 60vh; margin-top: 60px; }
  .hero h1 { font-size: 1.7rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
