@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* ヘッダー */
.header {
  background: #232f3e;
  color: #fff;
  padding: 20px;
  text-align: center;
}

.site-title {
  margin: 0;
  font-size: 28px;
}

/* タブナビ */
.top-tabs ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.top-tabs a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
}

.top-tabs a:hover,
.top-tabs a.active {
  border-bottom: 2px solid #fff;
}

/* 自己紹介 */
.profile {
  padding: 20px;
  text-align: center;
}

/* 最新記事（横スクロール） */
.latest {
  padding: 20px;
}

.latest-scroll {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 10px;
}

.post-card {
  min-width: 250px;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.post-card img {
  width: 100%;
  border-radius: 5px;
}

/* ブログ一覧 */
.blog-list {
  padding: 20px;
}

.blog-item {
  background: #fff;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.blog-item img {
  width: 100%;
  border-radius: 5px;
}

/* カテゴリ一覧 */
.category-links {
  list-style: none;
  padding: 0;
  text-align: center;
}

.category-links li {
  margin: 10px 0;
}

.category-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

/* フッター */
.footer {
  background: #232f3e;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* ヘッダー全体 */
.custom-header {
  text-align: center;
  padding: 40px 0 30px;
}
.custom-header .site-title {
  font-size: 32px;
  font-weight: bold;
  margin: 0;
}
.custom-header .site-subtitle {
  font-size: 16px;
  margin-top: 8px;
  color: #666;
}


/* ▼ 閲覧数が多い記事（横並びカード・最大5件） */
.top-views-cards {
  display: flex;
  flex-wrap: nowrap;     /* 横一列に並べる */
  gap: 20px;
  padding: 10px 0;
  overflow: hidden;      /* スクロールを消す */
}

.top-view-card {
  width: 220px;          /* 固定幅（スマホでも横並び維持） */
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  flex-shrink: 0;        /* カードが潰れない */
}

.top-view-card img {
  width: 100%;
  border-radius: 6px;
}

.top-view-title {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
}

/* ▼ 最新記事（縦並びカード） */
.latest-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

.latest-card {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.latest-card img {
  width: 100%;
  border-radius: 6px;
}

.latest-card-title {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}