/* CSS Document */

html, body { overflow-x: hidden; }

#contents{
    margin: 0px auto;
    width: 98%;
    
}

.logo{
    margin: 0px 0px 20px 0px;
    width: 200px;
}

.swiper-container { margin: 20px 0; padding-bottom: 30px; overflow-x: hidden; }

.slide-link { display: block; position: relative; overflow: hidden; border-radius: 12px; }

.slide-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}
.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  padding: 8px 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.2;
  max-width: 90%;
  z-index: 2;
  border-bottom-right-radius: 8px;
}

.pickup-featured {
  margin: 40px 0;
    padding: 20px;
  text-align: center;
    background-color: #f9f9f9;
}

.pickup-featured .heading{
    text-align:left;
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-left: 4px solid #0f6022;
    padding-left: 10px;
}


.pickup-card {
  display: block;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
}
.pickup-card-image {
  aspect-ratio: 3 / 2;
  position: relative;
  overflow: hidden;
}
.pickup-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pickup-card-title {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 10px 15px;
  font-size: 1.2rem;
  font-weight: bold;
  border-bottom-right-radius: 8px;
}



/* --- 新着記事一覧 --- */
.latest-articles {
  margin: 40px 0;
}

.latest-articles .heading {
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-left: 4px solid #ccc;
  padding-left: 10px;
}

.latest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.latest-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.latest-list a {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.latest-list .thumb {
  flex: 0 0 100px;
}

.latest-list .thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.latest-list .meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.latest-list .meta .date {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 5px;
}

.latest-list .meta .title {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.4;
    color: #333;
}






/* --- 人気記事ランキング --- */
.ranking {
  margin: 0px 0px 60px 0px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.ranking .heading {
  font-size: 1.4rem;
  font-weight: bold;
  border-left: 5px solid #95c95d;
  padding-left: 12px;
  margin-bottom: 20px;
  color: #333;
}

.ranking ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rank;
}

.ranking li {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
  position: relative;
}

.ranking li::before {
  counter-increment: rank;
  content: counter(rank);
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  font-weight: bold;
  color: #e2e2e2;
  z-index: 0;
}

.ranking li:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ranking a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  z-index: 1;
  position: relative;
  width: 100%;
}

.ranking img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
  flex-shrink: 0;
}

.ranking span {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}

.ranking small {
  font-size: 0.8rem;
  color: #888;
  margin-left: auto;
  white-space: nowrap;
}


.heading{
    margin: 0px 0px 20px 0px;
    font-size: 18px;
    font-weight: bold;
}


.category{
    
}

.category .heading{
    text-align: left;
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-left: 4px solid #FF8C00;
    padding-left: 10px; 
}



.category-grid {
  margin: 0px 0px 20px 0px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
@media screen and (max-width: 767px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.category-card {
  text-decoration: none;
  color: #fff;
}
.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.card-image:hover {
  transform: scale(1.02);
}
.card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 1.1rem;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  box-sizing: border-box;
}







/* --- タイトル --- */
.articleBox .tit {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0px 0px 20px 0px;
}

/* --- メイン画像 --- */
.articleBox .pic {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 0px 0px 20px 0px;
}
.articleBox .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- カテゴリリスト --- */
.articleBox .cateList {
  display: flex;
  gap: 8px;
  margin: 0px 0px 20px 0px;
  padding: 0;
  list-style: none;
}
.articleBox .cateList .item a {
  display: inline-block;
  background: #eee;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  color: #333;
  text-decoration: none;
}
.articleBox .cateList .item a:hover {
  background: #ccc;
}

/* --- 著者エリア --- */
.authorBox {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0px 20px 0px;
  padding: 16px;
  background-color: #f9f9f9; /* 明るいグレー背景 */
  border: 1px solid #ddd;    /* 薄い枠線 */
  border-radius: 8px;        /* 角を丸く */
}

.authorBox .pic {
  margin: 0px 0px 0px 0px;
    width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ccc;    /* アイコンにも枠 */
}

.authorBox .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.authorBox .author .name {
  font-size: 1rem;
  font-weight: bold;
  margin: 0px 0px 4px 0px;
}

.authorBox .author .role {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* --- スマホ対応 --- */
@media (max-width: 767px) {
  .authorBox {
    flex-direction: row;
    align-items: flex-start;
  }
}


/* --- 本文エリア --- */
.articleBox .dogfood-univ-article {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin: 0px 0px 30px 0px;
  padding: 10px 0;
}

/* 記事タイトル */
.articleBox .dogfood-univ-article h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0px 0px 20px 0px;
  border-left: 5px solid #95c95d;
  padding-left: 10px;
  color: #222;
}

/* 小見出し */
.articleBox .dogfood-univ-article h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 30px 0px 10px 0px;
  color: #444;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

/* 段落 */
.articleBox .dogfood-univ-article p {
  margin: 0px 0px 16px 0px;
}

/* 強調文字 */
.articleBox .dogfood-univ-article strong {
  font-weight: bold;
  color: #2a7b2e;
}





/* --- 関連商品セクション --- */
.relatedBox {
  margin: 0px 0px 30px 0px;
  padding: 20px;
  background: #f9f9f9;
  border: 2px solid #ddd;
  border-radius: 12px;
}

.relatedBox .tit {
  font-size: 1.2rem;
  margin-bottom: 1em;
}

.related-list {
  display: grid;
  gap: 20px;
}

/* レスポンシブグリッド：1〜3件で調整 */
.related-list.count-1 {
  grid-template-columns: 1fr;
}
.related-list.count-2,
.related-list.count-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.related-item {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.related-item:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.related-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  padding: 15px;
  color: inherit;
}

.related-text {
  flex: 1;
}

.related-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.5em;
}

.related-caption {
  font-size: 0.9rem;
  color: #555;
}

.related-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}tedBox {
  margin: 40px 0px 20px 0px;
}
.relatedBox .tit {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0px 0px 20px 0px;
}
.relatedBox .list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
}
.relatedBox .item {
  width: calc(33.333% - 14px); /* 3列 */
}
.relatedBox .item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
.relatedBox .item .txt {
  font-size: 0.9rem;
  margin-top: 8px;
}

/* --- スマホ対応 --- */
@media (max-width: 767px) {
  .relatedBox .item {
    width: 100%;
  }
}


/* --- タイトル・説明文 --- */
.taxonomy-dogfood-univ_category h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
  border-left: 6px solid #ff9900;
  padding-left: 12px;
}

.taxonomy-dogfood-univ_category .category-description {
  font-size: 1rem;
  margin-bottom: 40px;
  color: #666;
  line-height: 1.8;
}

/* --- 記事一覧 --- */
.dogfood-univ-articles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
}

.dogfood-univ-articles li {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dogfood-univ-articles li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dogfood-univ-articles a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.dogfood-univ-articles img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.dogfood-univ-articles h2 {
  font-size: 1rem;
  font-weight: 600;
  padding: 12px;
  line-height: 1.4;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .taxonomy-dogfood-univ_category h1 {
    font-size: 1.6rem;
  }

  .dogfood-univ-articles img {
    height: 140px;
  }

  .dogfood-univ-articles h2 {
    font-size: 0.95rem;
    padding: 10px;
  }
}



.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.5em;
  color: #666;
}

.breadcrumb ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  padding: 0;
  margin: 0;
}

.breadcrumb li::after {
  content: ">";
  margin: 0 0.5em;
  color: #aaa;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  text-decoration: none;
  color: #0073aa;
}

.breadcrumb a:hover {
  text-decoration: underline;
}


