@charset "UTF-8";
/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ（小動物飼育環境ラボ - SMALL MAMMAL HABITAT LAB カスタムデザイン）
Theme URI: https://wp-cocoon.com/
Author: 小動物飼育環境ラボ 編集部
Author URI: https://mammal-habitat-lab.com/
Template: cocoon-master
Version: 1.3.0
*/

:root {
  --mhl-bg: #f9faf8;
  --mhl-surface: #ffffff;
  --mhl-surface-soft: #f2f6f2;
  --mhl-primary: #1e4631;
  --mhl-primary-dark: #122d1f;
  --mhl-primary-light: #e6f0ea;
  --mhl-accent: #d97706;
  --mhl-accent-hover: #b45309;
  --mhl-rakuten: #bf0000;
  --mhl-text: #1e293b;
  --mhl-text-muted: #475569;
  --mhl-border: #dbe3dc;
  --mhl-radius: 14px;
  --mhl-shadow: 0 6px 24px rgba(18, 45, 31, 0.06);
}

html, body {
  background-color: var(--mhl-bg) !important;
  color: var(--mhl-text) !important;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Header & Single-Row Clean Navigation */
.header-container,
#header-container {
  background: #ffffff !important;
  border-bottom: 1px solid var(--mhl-border) !important;
  box-shadow: 0 2px 12px rgba(18, 45, 31, 0.04) !important;
}

#header-container-in {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 10px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
}

.header,
#header {
  background: transparent !important;
  width: auto !important;
  margin: 0 !important;
  border: none !important;
}

#header-in {
  padding: 0 !important;
  margin: 0 !important;
}

.logo-header {
  margin: 0 !important;
  padding: 0 !important;
}

.logo-header img,
.site-name-image {
  max-height: 52px !important;
  width: auto !important;
  display: block !important;
}

.tagline {
  display: none !important;
}

.navi, #navi {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
}

#navi-in {
  width: auto !important;
}

#navi .navi-in > ul.menu-mobile {
  display: none !important;
}

#navi .navi-in > ul.menu-header {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}

#navi .navi-in > ul > li > a {
  color: var(--mhl-primary-dark) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  transition: background 0.2s, color 0.2s !important;
  white-space: nowrap !important;
}

#navi .navi-in > ul > li > a:hover {
  background: var(--mhl-primary-light) !important;
  color: var(--mhl-primary) !important;
}

/* Hide unneeded Cocoon elements (TOC on home, SNS follow/share, recent comments widget) */
.home.page .toc,
.home.page #toc,
.sns-follow,
.sns-share,
.widget_recent_comments,
.author-info {
  display: none !important;
}

/* Main Content Area */
.main, #main {
  background: var(--mhl-surface);
  border-radius: var(--mhl-radius);
  box-shadow: var(--mhl-shadow);
  border: 1px solid var(--mhl-border);
  padding: 34px 38px;
}

.home.page .main,
.home.page #main {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

.home.page .entry-header,
.home.page .article-header,
.home.page .article-footer,
.home.page .date-tags {
  display: none !important;
}

/* PR Badge */
.mhl-pr-notice {
  background: var(--mhl-surface-soft);
  border: 1px solid var(--mhl-border);
  color: var(--mhl-text-muted);
  font-size: 12.5px;
  padding: 9px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  line-height: 1.55;
}

/* Article Headings */
.article h1,
.entry-title {
  font-size: 1.68rem;
  line-height: 1.45;
  color: var(--mhl-primary-dark);
  font-weight: 800;
  margin-bottom: 16px;
}

.article h2 {
  background: linear-gradient(90deg, var(--mhl-primary-dark) 0%, var(--mhl-primary) 100%);
  color: #ffffff !important;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 1.26rem;
  font-weight: 700;
  margin: 2.3em 0 1.1em;
  line-height: 1.45;
  border-left: 5px solid var(--mhl-accent);
  box-shadow: 0 3px 10px rgba(30, 70, 49, 0.12);
}

.article h3 {
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--mhl-primary-dark);
  padding: 8px 0 8px 14px;
  border-left: 4px solid var(--mhl-accent);
  border-bottom: 1px solid var(--mhl-border);
  margin: 1.8em 0 0.9em;
  line-height: 1.45;
  background: transparent;
}

.article p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 1.35em;
  color: var(--mhl-text);
}

/* Lab Conclusion Box */
.mhl-lab-box {
  background: #f3f8f4;
  border: 2px solid var(--mhl-primary);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0 30px;
}

.mhl-lab-box-title {
  font-weight: 800;
  color: var(--mhl-primary-dark);
  font-size: 1.05rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mhl-lab-box-title::before {
  content: "LAB POINT";
  background: var(--mhl-primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.mhl-lab-box ul {
  margin: 0;
  padding-left: 1.3em;
}

.mhl-lab-box li {
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.65;
}

/* Spec Comparison Table (Mobile Scrollable) */
.mhl-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 22px 0 28px;
  border-radius: 10px;
  border: 1px solid var(--mhl-border);
  background: #fff;
}

.mhl-spec-table,
.article table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 14.5px;
  margin: 0 !important;
}

.mhl-spec-table th,
.article table th {
  background: var(--mhl-primary-light);
  color: var(--mhl-primary-dark);
  font-weight: 700;
  padding: 12px 14px;
  border: 1px solid var(--mhl-border);
  text-align: left;
  white-space: nowrap;
}

.mhl-spec-table td,
.article table td {
  padding: 12px 14px;
  border: 1px solid var(--mhl-border);
  vertical-align: top;
  line-height: 1.6;
  background: #fff;
}

.mhl-spec-table tr:nth-child(even) td,
.article table tr:nth-child(even) td {
  background: #fafcfa;
}

/* Affiliate Gear Card ([mhl_gear_card]) */
.mhl-gear-card {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  padding: 22px 24px;
  margin: 26px 0 32px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  position: relative;
}

.mhl-gear-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.mhl-gear-badge {
  background: var(--mhl-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 99px;
  letter-spacing: 0.03em;
}

.mhl-gear-price {
  font-size: 13.5px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 3px 10px;
  border-radius: 6px;
}

.mhl-gear-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--mhl-primary-dark);
  margin: 6px 0 10px;
  line-height: 1.45;
}

.mhl-gear-desc {
  font-size: 14.5px;
  color: var(--mhl-text-muted);
  margin: 0 0 16px;
  line-height: 1.75;
}

.mhl-gear-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mhl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14.5px;
  text-decoration: none !important;
  color: #ffffff !important;
  transition: transform 0.15s ease, opacity 0.15s ease;
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.mhl-btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
  color: #ffffff !important;
}

.mhl-btn-amazon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.mhl-btn-rakuten {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Article Bottom Safety Box */
.mhl-safety-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--mhl-primary);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 36px;
  font-size: 13.5px;
  color: var(--mhl-text-muted);
  line-height: 1.75;
}

.mhl-safety-title {
  font-weight: 800;
  color: var(--mhl-primary-dark);
  margin-bottom: 6px;
  font-size: 14px;
}

/* Front Page (HOME) Styles */
.mhl-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--mhl-primary-dark);
  background-size: cover;
  background-position: center;
  margin-bottom: 36px;
  box-shadow: 0 12px 32px rgba(18, 45, 31, 0.16);
}

.mhl-hero-overlay {
  background: linear-gradient(115deg, rgba(14, 36, 24, 0.88) 0%, rgba(25, 58, 40, 0.78) 60%, rgba(18, 45, 31, 0.70) 100%);
  padding: 48px 40px;
  color: #ffffff;
}

.mhl-hero-kicker {
  display: inline-block;
  background: rgba(217, 119, 6, 0.95);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.mhl-hero-title {
  font-size: 2.0rem;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.38;
  margin: 0 0 14px;
}

.mhl-hero-lead {
  font-size: 15.5px;
  color: #e2e8f0 !important;
  max-width: 780px;
  line-height: 1.8;
  margin: 0 0 24px;
}

.mhl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.mhl-hero-btn-primary {
  background: var(--mhl-accent);
  color: #fff !important;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 99px;
  text-decoration: none !important;
  font-size: 14.5px;
}

.mhl-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff !important;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 99px;
  text-decoration: none !important;
  font-size: 14.5px;
}

.mhl-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
}

.mhl-stat-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 10px;
}

.mhl-stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fde68a;
  display: block;
}

.mhl-stat-label {
  font-size: 12px;
  color: #cbd5e1;
}

.mhl-section {
  background: #ffffff;
  border: 1px solid var(--mhl-border);
  border-radius: 16px;
  padding: 32px 30px;
  margin-bottom: 32px;
  box-shadow: var(--mhl-shadow);
}

.mhl-sec-head {
  margin-bottom: 22px;
  border-bottom: 2px solid var(--mhl-primary-light);
  padding-bottom: 12px;
}

.mhl-sec-en {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--mhl-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mhl-sec-title {
  font-size: 1.42rem;
  font-weight: 800;
  color: var(--mhl-primary-dark);
  margin: 4px 0 0;
  background: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Category Grid */
.mhl-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mhl-cat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--mhl-surface-soft);
  border: 1px solid var(--mhl-border);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none !important;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

a.mhl-cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--mhl-primary);
  box-shadow: 0 6px 16px rgba(30, 70, 49, 0.09);
}

.mhl-cat-card.is-coming-soon {
  background: #f8fafc;
  border-style: dashed;
  opacity: 0.88;
}

.mhl-cat-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.mhl-cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--mhl-primary);
  background: #ffffff;
  border: 1px solid var(--mhl-border);
  padding: 2px 9px;
  border-radius: 99px;
}

.mhl-cat-status {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--mhl-primary);
}

.mhl-cat-status.is-prep {
  color: #64748b;
}

.mhl-cat-name {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--mhl-primary-dark);
  margin-bottom: 6px;
}

.mhl-cat-desc {
  font-size: 13.5px;
  color: var(--mhl-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Latest Posts Grid on HOME */
.mhl-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mhl-post-card {
  background: #ffffff;
  border: 1px solid var(--mhl-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mhl-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(18, 45, 31, 0.1);
}

.mhl-post-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  overflow: hidden;
}

.mhl-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mhl-post-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(18, 45, 31, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.mhl-post-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.mhl-post-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--mhl-primary-dark);
  line-height: 1.5;
  margin: 0 0 10px;
}

.mhl-post-date {
  font-size: 12px;
  color: var(--mhl-text-muted);
}

/* Policy Links Bar on HOME */
.mhl-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.mhl-policy-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--mhl-surface-soft);
  border: 1px solid var(--mhl-border);
  color: var(--mhl-primary-dark) !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
}

.mhl-policy-btn:hover {
  background: var(--mhl-primary-light);
  border-color: var(--mhl-primary);
}

/* Sidebar Styling */
.sidebar, #sidebar {
  background: transparent;
}

.sidebar .widget {
  background: #ffffff;
  border: 1px solid var(--mhl-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: var(--mhl-shadow);
}

.mhl-side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mhl-side-label {
  background: var(--mhl-primary-dark);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.mhl-side-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mhl-side-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--mhl-surface-soft);
  color: var(--mhl-primary-dark) !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 600;
}

.mhl-side-links a:hover {
  background: var(--mhl-primary-light);
}

/* Footer */
#footer {
  background: var(--mhl-primary-dark) !important;
  color: #d8e5dd !important;
  margin-top: 56px !important;
  padding: 36px 0 24px !important;
}

#footer a {
  color: #e8f3ee !important;
}

@media screen and (max-width: 1023px) {
  #navi {
    display: none !important;
  }
}

/* Mobile Responsive Optimization */
@media screen and (max-width: 768px) {
  .main, #main {
    padding: 18px 14px !important;
    border-radius: 10px;
  }

  .article h1, .entry-title {
    font-size: 1.32rem;
  }

  .article h2 {
    font-size: 1.12rem;
    padding: 12px 14px;
    margin: 1.9em 0 0.9em;
  }

  .article h3 {
    font-size: 1.03rem;
    padding-left: 10px;
  }

  .article p {
    font-size: 15.5px;
    line-height: 1.85;
  }

  .mhl-hero-overlay {
    padding: 28px 18px;
  }

  .mhl-hero-title {
    font-size: 1.42rem;
  }

  .mhl-hero-lead {
    font-size: 14px;
  }

  .mhl-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .mhl-section {
    padding: 22px 15px;
    margin-bottom: 22px;
  }

  .mhl-cat-grid,
  .mhl-post-grid,
  .mhl-gear-btns {
    grid-template-columns: 1fr !important;
  }

  .mhl-gear-card {
    padding: 16px 14px;
  }

  .mhl-btn {
    width: 100%;
    min-height: 48px;
    font-size: 14.5px;
  }
}
