/* ==============================================
   Tabi Lens — Complete Stylesheet
   ============================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* --- CSS Variables --- */
:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --gray-100: #f5f5f5;
  --gray-400: #999;
  --gray-600: #555;
  --text: #1a1a1a;
  --text-light: #666;
  --radius: 4px;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --- Announce Bar --- */
.announce-bar {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.72rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* --- Site Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.site-header.scrolled {
  border-bottom-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--black);
  text-transform: uppercase;
}

.site-logo span {
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: var(--transition);
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: var(--transition);
}

.site-nav a:hover {
  color: var(--gold);
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 90vh;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.35) 0%,
    rgba(10,10,10,0.55) 50%,
    rgba(10,10,10,0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 0 24px;
}

.hero-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--gold-light);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: var(--transition);
}

.hero-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

/* --- Section Layout --- */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--black);
  line-height: 1.3;
}

.section-desc {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 300;
}

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

.card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-body {
  padding: 24px;
}

.card-category {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 10px;
  transition: var(--transition);
}

.card:hover .card-title {
  color: var(--gold);
}

.card-excerpt {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.72rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Category Grid --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
}

.category-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.category-card:hover .category-card-img {
  transform: scale(1.06);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 60%);
}

.category-card-body {
  position: relative;
  z-index: 1;
  padding: 20px;
  color: var(--white);
}

.category-card-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 4px;
}

.category-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
}

/* --- Post Layout --- */
.post-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

.post-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.post-category {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.post-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.post-meta span::before {
  content: '';
  display: inline-block;
}

.post-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 40px;
}

/* --- Post Body --- */
.post-body {
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--text);
}

.post-body p {
  margin-bottom: 1.5em;
}

.post-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--black);
  margin: 2.5em 0 0.8em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  letter-spacing: 0.02em;
}

.post-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--black);
  margin: 2em 0 0.6em;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}

.post-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.6em 0 0.5em;
}

.post-body ul,
.post-body ol {
  margin: 1em 0 1.5em 1.5em;
}

.post-body ul {
  list-style: disc;
}

.post-body ol {
  list-style: decimal;
}

.post-body li {
  margin-bottom: 0.4em;
  line-height: 1.8;
}

.post-body strong {
  font-weight: 700;
  color: var(--black);
}

.post-body a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: var(--transition);
}

.post-body a:hover {
  text-decoration-color: var(--gold);
}

.post-body blockquote {
  margin: 1.5em 0;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: var(--gray-100);
  font-style: italic;
  color: var(--gray-600);
}

/* --- Comparison Table --- */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0 2em;
  font-size: 0.88rem;
}

.post-body table th {
  background: var(--black);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

.post-body table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  vertical-align: middle;
}

.post-body table tr:nth-child(even) td {
  background: var(--gray-100);
}

.post-body table tr:hover td {
  background: rgba(201,168,76,0.06);
}

.rank-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  margin-right: 6px;
}

/* --- Shop Box --- */
.shop-box {
  border: 2px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 24px;
  margin: 2em 0;
  background: #fffdf7;
}

.shop-box-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.shop-box-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: var(--radius);
  flex-shrink: 0;
  background: var(--white);
}

.shop-box-right {
  flex: 1;
}

.shop-box-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

.shop-box-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.4;
}

.shop-box-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.6;
}

.shop-box-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  color: var(--white);
  transition: var(--transition);
  text-align: center;
}

.shop-btn-amazon {
  background: #e47911;
  border: 1px solid #c26b0a;
}

.shop-btn-amazon:hover {
  background: #c26b0a;
  color: var(--white);
}

.shop-btn-rakuten {
  background: #bf0000;
  border: 1px solid #9a0000;
}

.shop-btn-rakuten:hover {
  background: #9a0000;
  color: var(--white);
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.sidebar-widget-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold-light);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-link {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.sidebar-link:hover {
  color: var(--gold);
  padding-left: 4px;
}

.sidebar-link::before {
  content: '›';
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}

/* --- Summary Box --- */
.summary-box {
  background: var(--gray-100);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 1.5em 0 2em;
}

.summary-box-title {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: var(--black);
}

.summary-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.summary-box ul li {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.7;
}

/* --- Breadcrumb --- */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 0.75rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--gray-400);
  transition: var(--transition);
}

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

.breadcrumb span {
  color: var(--gold);
  font-size: 0.7rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 32px;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-logo span {
  color: var(--gold);
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* --- Affiliate Notice --- */
.affiliate-notice {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 0.73rem;
  color: var(--text-light);
  background: var(--gray-100);
  border-left: 3px solid var(--gold-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.6;
}

/* ================================
   RESPONSIVE — 768px and below
   ================================ */
@media (max-width: 768px) {
  /* Header */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 8px 0 16px;
    z-index: 99;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
  }

  .site-nav a::after {
    display: none;
  }

  /* Hero */
  .hero {
    height: 80vh;
    min-height: 480px;
  }

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

  /* Cards grid */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Category grid */
  .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Post layout */
  .post-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 16px;
  }

  .sidebar {
    position: static;
  }

  /* Shop box */
  .shop-box-inner {
    flex-direction: column;
  }

  .shop-box-img {
    width: 80px;
    height: 80px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Section */
  .section {
    padding: 56px 16px;
  }

  /* Post body tables */
  .post-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .shop-box-btns {
    flex-direction: column;
  }

  .shop-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
}
