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

:root {
  --ahl-bg: #f5f9fb;
  --ahl-surface: #ffffff;
  --ahl-surface-soft: #edf6f9;
  --ahl-primary: #0e7490;
  --ahl-primary-dark: #0b3b4e;
  --ahl-primary-light: #e0f2fe;
  --ahl-accent: #0284c7;
  --ahl-cyan: #06b6d4;
  --ahl-amz: #d97706;
  --ahl-amz-hover: #b45309;
  --ahl-rakuten: #b91c1c;
  --ahl-text: #0f172a;
  --ahl-text-muted: #475569;
  --ahl-border: #cfe4ec;
  --ahl-radius: 14px;
  --ahl-shadow: 0 6px 24px rgba(11, 59, 78, 0.06);
}

html, body {
  background-color: var(--ahl-bg) !important;
  color: var(--ahl-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 & Clean Single-Row Navigation */
.header-container,
#header-container {
  background: #ffffff !important;
  border-bottom: 1px solid var(--ahl-border) !important;
  box-shadow: 0 2px 12px rgba(11, 59, 78, 0.05) !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(--ahl-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(--ahl-primary-light) !important;
  color: var(--ahl-primary) !important;
}

/* Hide unneeded Cocoon elements */
.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(--ahl-surface);
  border-radius: var(--ahl-radius);
  box-shadow: var(--ahl-shadow);
  border: 1px solid var(--ahl-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 */
.ahl-pr-notice {
  background: var(--ahl-surface-soft);
  border: 1px solid var(--ahl-border);
  color: var(--ahl-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(--ahl-primary-dark);
  font-weight: 800;
  margin-bottom: 16px;
}

.article h2 {
  background: linear-gradient(90deg, var(--ahl-primary-dark) 0%, var(--ahl-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(--ahl-cyan);
  box-shadow: 0 3px 10px rgba(14, 116, 144, 0.14);
}

.article h3 {
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--ahl-primary-dark);
  padding: 8px 0 8px 14px;
  border-left: 4px solid var(--ahl-primary);
  border-bottom: 1px solid var(--ahl-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(--ahl-text);
}

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

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

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

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

.ahl-lab-box li {
  margin-bottom: 8px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.65;
}

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

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

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

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

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

/* Affiliate Gear Card ([ahl_gear_card]) */
.ahl-gear-card {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  padding: 22px 24px;
  margin: 26px 0 32px;
  box-shadow: 0 6px 18px rgba(11, 59, 78, 0.06);
  position: relative;
}

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

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

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

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

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

.ahl-gear-note {
  font-size: 12px;
  color: #64748b;
  margin: 10px 0 0;
  line-height: 1.5;
}

.ahl-gear-btns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.ahl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  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.11);
}

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

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

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

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

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

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

.ahl-hero-overlay {
  background: linear-gradient(115deg, rgba(7, 36, 48, 0.91) 0%, rgba(11, 59, 78, 0.80) 60%, rgba(14, 116, 144, 0.68) 100%);
  padding: 48px 40px;
  color: #ffffff;
}

.ahl-hero-kicker {
  display: inline-block;
  background: rgba(6, 182, 212, 0.92);
  color: #062836;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

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

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

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

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

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

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

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

.ahl-stat-num {
  font-size: 1.12rem;
  font-weight: 800;
  color: #67e8f9;
  display: block;
}

.ahl-stat-label {
  font-size: 12px;
  color: #e2e8f0;
}

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

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

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

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

/* Category Grid */
.ahl-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

/* TOC hierarchical numbering clarity */
.toc .toc-list,
.toc .toc-list ol {
  list-style: none !important;
  counter-reset: ahl-toc !important;
  padding-left: 0 !important;
}
.toc .toc-list ol {
  padding-left: 1.35em !important;
}
.toc .toc-list li::before {
  counter-increment: ahl-toc;
  content: counters(ahl-toc, ".") ". ";
  font-weight: 700;
  color: var(--ahl-primary);
  margin-right: 4px;
}
.toc .toc-list > li {
  font-weight: 700;
  margin-top: 6px;
}
.toc .toc-list ol > li {
  font-weight: 400;
  margin-top: 2px;
}

.ahl-cat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ahl-surface-soft);
  border: 1px solid var(--ahl-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.ahl-cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--ahl-primary);
  box-shadow: 0 6px 16px rgba(14, 116, 144, 0.1);
}

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

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

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

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

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

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

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

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

.ahl-post-card {
  background: #ffffff;
  border: 1px solid var(--ahl-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;
}

.ahl-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(11, 59, 78, 0.11);
}

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

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

.ahl-post-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 59, 78, 0.90);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#footer .logo-footer a,
.footer .logo-footer a {
  display: inline-block !important;
  background: rgba(255, 255, 255, 0.96) !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16) !important;
}

#footer .logo-footer img {
  max-height: 44px !important;
  width: auto !important;
  display: block !important;
}

@media screen and (min-width: 1024px) {
  .mobile-menu-buttons,
  #mobile-menu-buttons {
    display: none !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;
  }

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

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

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

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

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

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

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

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