/* ==========================================================
   ノンシリコンシャンプーの選び方の教科書
   style.css — BOTANIST inspired Natural Premium Design
   ========================================================== */

/* --- CSS Custom Properties --- */
:root {
  --bg-page: #FAFAF7;
  --bg-surface: #F5F3EE;
  --bg-card: #FFFFFF;
  --text-primary: #2D2A26;
  --text-secondary: #6B6560;
  --text-muted: #999590;
  --accent: #5C4A3A;
  --accent-light: #8B7A6B;
  --honey: #D4A843;
  --honey-light: #F5E6C8;
  --green: #6B8E6B;
  --green-light: #E8F0E8;
  --border: #E5E2DC;
  --border-light: #EEEAE4;
  --footer-bg: #1A1A1A;
  --footer-text: #AAAAAA;
  --max-width: 880px;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-display: 'Playfair Display', serif;
  --shadow: 0 2px 12px rgba(45,42,38,0.06);
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-primary);
  background: var(--bg-page);
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.5; }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.1em;
}
.site-logo span { font-family: var(--font-body); font-size: 13px; font-weight: 300; margin-left: 6px; color: var(--text-secondary); }
.header-nav { display: flex; gap: 24px; font-size: 13px; font-weight: 400; color: var(--text-secondary); }
.header-nav a { color: var(--text-secondary); }
.header-nav a:hover { color: var(--text-primary); opacity: 1; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  position: absolute;
  left: 0;
  transition: 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(250,250,247,0.97);
  backdrop-filter: blur(12px);
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  z-index: 99;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

/* --- Hero --- */
.hero {
  padding: 60px 0 50px;
  text-align: center;
}
.hero-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 20px;
}
.hero .lead {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 2.0;
}
.hero .update-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* --- Section Images --- */
.section-image {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* --- Product Screenshots --- */
.product-screenshot {
  margin: 16px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Sections --- */
section { padding: 60px 0; }
section + section { border-top: 1px solid var(--border-light); }

.section-title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* --- Conclusion Box --- */
.conclusion-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 40px;
}
.conclusion-box h2 {
  font-size: 18px;
  margin-bottom: 16px;
}
.conclusion-box .recommend-name {
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
}
.conclusion-box .recommend-reason {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2.0;
}
.conclusion-box .recommend-link {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
}

/* --- Product Card --- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 24px;
  transition: box-shadow 0.3s;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-card.recommended {
  border-color: var(--honey);
  background: linear-gradient(135deg, #FFFDF7 0%, var(--bg-card) 100%);
}
.product-card .rank-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.product-card.recommended .rank-badge {
  background: var(--honey);
  color: #fff;
}
.product-card .rank-badge.sub {
  background: var(--bg-surface);
  color: var(--text-secondary);
}
.product-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}
.product-card .brand {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.product-card .price-volume {
  font-size: 15px;
  margin-bottom: 16px;
}
.product-card .price-volume .price {
  font-weight: 500;
  font-size: 18px;
}
.product-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.product-card .tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--text-secondary);
}
.tag.good { background: var(--green-light); color: var(--green); }
.tag.warn { background: #FFF3E0; color: #C67A2E; }
.product-card .description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2.0;
}
.product-card .product-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

/* --- Comparison Table --- */
.comparison-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 30px 0;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.comparison-table thead th {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}
.comparison-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.comparison-table tbody tr:nth-child(even) { background: var(--bg-surface); }
.comparison-table tbody tr.highlight { background: var(--honey-light); }
.comparison-table .item-cell {
  font-weight: 500;
  white-space: nowrap;
}
.comparison-table .item-cell a { color: var(--accent); }
.comparison-table .check { color: var(--green); }
.comparison-table .cross { color: var(--text-muted); }

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}
.faq-item dt {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}
.faq-item dt::before {
  content: 'Q.';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.faq-item dd {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2.0;
  padding-left: 24px;
}

/* --- Content Prose --- */
.prose h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 50px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 36px 0 12px;
}
.prose p {
  margin-bottom: 20px;
  line-height: 2.0;
}
.prose ul, .prose ol {
  margin: 16px 0;
  padding-left: 24px;
}
.prose li {
  margin-bottom: 8px;
  line-height: 1.9;
}
.prose strong { font-weight: 500; }

/* --- Highlight Box --- */
.highlight-box {
  background: var(--honey-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 2.0;
}
.highlight-box.green {
  background: var(--green-light);
}

/* --- Footer --- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 0 32px;
  margin-top: 60px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  font-size: 13px;
}
.footer-links a { color: var(--footer-text); }
.footer-links a:hover { color: #fff; opacity: 1; }
.site-footer .copyright {
  font-size: 12px;
  color: #666;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  padding: 12px 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { margin: 0 6px; }

/* --- Related Articles --- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.related-card h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}
.related-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Instagram Badge --- */
.insta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
  color: #fff;
}

/* --- Instagram Gallery Section --- */
.instagram-section .section-title {
  text-align: center;
}
.instagram-section .section-subtitle {
  text-align: center;
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.insta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.insta-card:hover {
  box-shadow: var(--shadow);
}
.insta-card img {
  width: 100%;
  height: auto;
  display: block;
}
.insta-caption {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.insta-likes {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.insta-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 20px;
}

/* --- Instagram Proof (compact, inside product list) --- */
.insta-proof {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.insta-proof-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--accent);
}
.insta-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.insta-thumb {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}
.insta-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.insta-likes-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
}
.insta-proof-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 768px) {
  body { font-size: 15px; }
  .header-nav { display: none; }
  .hamburger { display: block; }
  .hero h1 { font-size: 22px; }
  .section-title { font-size: 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .product-card { padding: 22px; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .insta-grid-compact { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .hero { padding: 40px 0 30px; }
  .hero h1 { font-size: 20px; }
  .conclusion-box { padding: 22px; }

  /* Comparison table → card */
  .comparison-wrap { overflow: visible; }
  .comparison-table { border: none; }
  .comparison-table thead { display: none; }
  .comparison-table tbody tr {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px;
    margin-bottom: 14px;
  }
  .comparison-table tbody tr.highlight {
    background: linear-gradient(135deg, #FFFDF7, var(--bg-card));
    border-color: var(--honey);
  }
  .comparison-table tbody td {
    display: block;
    padding: 4px 0;
    border-bottom: none;
    white-space: normal;
  }
  .comparison-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2px;
  }
  .comparison-table .item-cell::before { display: none; }
  .comparison-table .item-cell {
    font-size: 16px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
  }
}
