@charset "UTF-8";
/*
Theme Name: Cocoon Child (Pet Disease Search)
Template:   cocoon-master
Version:    1.0.0
Description: 温かみのあるオレンジ基調の犬猫病気検索サイト
*/

:root {
  /* 色彩設定：温かみのあるオレンジ基調、パステルカラー */
  --primary-color: #ffaa6b; /* 温かみのあるオレンジ */
  --primary-hover: #ff9547;
  --bg-color: #fffaf5; /* 柔らかくうるさくないパステルオレンジ/クリームの背景 */
  --text-color: #5c4e46; /* 柔らかいブラウン系グレーで視認性確保 */
  --text-light: #8c7d75;
  --card-bg: #ffffff;
  --border-color: #ffe8d6;
  --tag-dog: #ffd166; /* 犬用タグの色（パステルイエロー寄り） */
  --tag-cat: #ffb5a7; /* 猫用タグの色（パステルピンク寄り） */
  --header-bg: #ffffff;
  --footer-bg: #fff0e5;
}

/* Base Styles */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-hover);
}

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

/* Container */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

/* Header Styles */
.site-header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px rgba(255, 170, 107, 0.05);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  height: 40px;
}

/* Search Box Styles (Header & Main) */
.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.header-search {
  max-width: 400px;
  margin: 0;
}

.search-input {
  width: 100%;
  padding: 15px 25px;
  font-size: 1.1rem;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  background-color: var(--card-bg);
  box-shadow: 0 4px 15px rgba(255, 170, 107, 0.08);
  outline: none;
  transition: all 0.3s ease;
  color: var(--text-color);
  box-sizing: border-box;
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(255, 170, 107, 0.2);
}

/* Live Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 10px;
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  z-index: 1000;
  display: none;
  border: 1px solid var(--border-color);
}

.search-suggestions.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.suggestion-item {
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-color);
  transition: background-color 0.2s;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.suggestion-title {
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.suggestion-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-light);
}

/* Front Page Hero */
.hero-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--bg-color) 0%, #fff 100%);
  border-radius: 20px;
  margin-bottom: 50px;
}

.hero-title {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* Category Cards */
.category-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.category-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px;
  width: 250px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 170, 107, 0.15);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

/* Single Post */
.single-post-wrapper {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  border: 1px solid var(--border-color);
}

.entry-header {
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px dashed var(--border-color);
  padding-bottom: 30px;
}

.entry-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.entry-meta {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* --- Premium Article Enhancement --- */
.entry-content {
  line-height: 1.9;
}

.entry-content h2 {
  position: relative;
  padding: 0.8em 1.2em;
  background: linear-gradient(135deg, #fff 0%, var(--footer-bg) 100%);
  border-radius: 12px;
  border-left: 10px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 170, 107, 0.1);
  margin-top: 2.5em;
  margin-bottom: 1.2em;
  font-size: 1.6rem;
  color: var(--text-color);
}

.entry-content h3 {
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5em;
  margin-top: 2em;
  font-size: 1.4rem;
  color: var(--text-color);
  position: relative;
}

.entry-content h3::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-hover);
}

/* Glassmorphism TOC */
.toc {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2em;
  box-shadow: 0 8px 32px rgba(255, 170, 107, 0.1);
  margin: 2em 0;
}

.toc-title {
  font-weight: bold;
  font-size: 1.3em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1.2em;
  padding-bottom: 0.8em;
  border-bottom: 1px dashed var(--border-color);
}

/* Premium Tables */
.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin: 2em 0;
  border: 1px solid var(--border-color);
}

/* Premium Tables Refinement */
.entry-content table thead th {
  background: var(--primary-color);
  color: #fff;
  font-weight: bold;
  text-align: center;
  border-bottom: 2px solid var(--primary-hover);
}

.entry-content table th, .entry-content table td {
  padding: 1.25em 1.5em;
  border: 1px solid var(--border-color);
}

/* FAQ Styling Refinement */
.entry-content dl {
  background: #fff;
  border-radius: 15px;
  padding: 2em;
  border: 1px solid var(--border-color);
  margin: 2.5em 0;
  box-shadow: 0 4px 15px rgba(255, 170, 107, 0.05);
}

.entry-content dl dt {
  font-weight: bold;
  color: var(--primary-hover);
  margin-top: 1.5em;
  padding-bottom: 0.5em;
  border-bottom: 1px dashed var(--border-color);
  font-size: 1.15rem;
  line-height: 1.4;
}

.entry-content dl dt:first-child {
  margin-top: 0;
}

.entry-content dl dd {
  margin-left: 0;
  margin-top: 1em;
  padding: 1.25em 1.5em;
  background: var(--bg-color);
  border-radius: 12px;
  color: var(--text-color);
}

.entry-content img {
  border-radius: 12px;
  transition: all 0.3s ease;
}

.entry-content img:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Footer Styles */
.site-footer {
  background-color: var(--footer-bg);
  padding: 40px 0 20px;
  text-align: center;
  margin-top: 60px;
}

.footer-nav {
  margin-bottom: 20px;
}

.footer-nav a {
  margin: 0 15px;
  color: var(--text-color);
}

.footer-nav a:hover {
  color: var(--primary-color);
}

/* Archive Grid Refinement (3 Columns) */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
}

/* Post Card Refinement */
.post-card {
  display: block;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: #333333;
  transition: box-shadow 0s; /* Hover transition 0s as requested */
}

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

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0s;
}

.post-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-color);
  color: #fff;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.post-card-title {
  padding: 15px;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  color: #333333;
  transition: color 0s; /* Hover transition 0s */
}

.post-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-card:hover .post-card-title {
  color: var(--primary-color) !important;
}

/* Global Title Hover Adjustment */
h1 a, h2 a, h3 a, .entry-title, .rank-title, .related-item-title {
  color: #333333;
  transition: color 0s;
}

a:hover h1, a:hover h2, a:hover h3, a:hover .entry-title, a:hover .rank-title, a:hover .related-item-title {
  color: var(--primary-color) !important;
}

/* Horizontal Ranking Item Refinement */
.ranking-item {
  display: flex !important;
  align-items: flex-start;
  gap: 15px;
  padding: 10px 0;
  text-decoration: none;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.ranking-thumb {
  position: relative;
  width: 100px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: visible; /* Show overlapping badge */
}

.ranking-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  border: none !important;
}

.ranking-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 8px;
}

.rank-number {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 28px;
  height: 28px;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.rank-title {
  font-size: 0.85rem;
  font-weight: bold;
  line-height: 1.4;
  color: #333333;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Layout with Sidebar */
.site-content-layout {
  display: flex !important;
  gap: 40px;
  margin-top: 40px;
}

.main-column {
  flex: 1;
  min-width: 0;
}

.site-sidebar {
  width: 300px;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .site-content-layout {
    flex-direction: column !important;
  }
  .site-sidebar {
    width: 100%;
  }
}

/* Sidebar Widgets */
.widget {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 0 20px 0 !important;
}

.widget-title {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

/* Tag Cloud Widget */
.tag-cloud a {
  display: inline-block;
  background: var(--bg-color);
  color: var(--text-color) !important;
  padding: 5px 12px;
  border-radius: 20px;
  margin: 0 5px 10px 0;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.tag-cloud a:hover {
  background: var(--primary-color);
  color: #fff !important;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Category/Tag Links Hover */
.entry-categories a, .entry-tags a {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85rem;
  margin-right: 8px;
  transition: all 0s;
}

.entry-categories a {
  background: var(--primary-color);
  color: #fff;
}

.entry-categories a:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.entry-tags a {
  background: #eee;
  color: #666;
}

.entry-tags a:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Related Posts Hover & Grid */
.related-posts .archive-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Scroll to Top Button */
#js-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 170, 107, 0.3);
  text-decoration: none;
}

#js-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

#js-scroll-top:hover {
  background: var(--primary-hover);
  transform: translateY(-5px);
}

#js-scroll-top::after {
  content: "↑";
  font-size: 1.5rem;
  font-weight: bold;
}
