@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

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

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

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

.front-section {
  margin: 40px 0;
}

.front-section-title {
  font-size: 24px;
  margin-bottom: 20px;
}

.front-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.front-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.front-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.front-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.front-card-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.front-card-no-thumb {
  padding: 40px 10px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

.front-card-body {
  padding: 10px 12px 14px;
}

.front-card-title {
  font-size: 14px;
  line-height: 1.5;
}

.related-section {
  margin: 40px 0;
}

.related-section-title {
  font-size: 20px;
  margin-bottom: 16px;
}

.related-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.related-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.16);
}

.related-card-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.related-card-no-thumb {
  padding: 32px 8px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

.related-card-body {
  padding: 8px 10px 10px;
}

.related-card-title {
  font-size: 13px;
  line-height: 1.5;
}

.related-more {
  margin-top: 12px;
  text-align: right;
}

.related-more-link {
  font-size: 13px;
  text-decoration: none;
  color: #1976d2;
}

.related-more-link:hover {
  text-decoration: underline;
}

/* ミニ枠全体 */
.mini-related-section {
  margin: 32px 0;
}

.mini-related-title {
  font-size: 18px;
  margin-bottom: 16px;
}

/* カード一覧（グリッド） */
.mini-related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

/* 各カード */
.mini-related-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mini-related-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.16);
}

/* カード全体をクリック可能に */
.mini-related-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* サムネ（今まで通りの比率でOK） */
.mini-thumb {
  width: 100%;
  overflow: hidden;
}

.mini-thumb img {
  width: 100%;
  height: auto;      /* 画像の縦横比はそのまま */
  display: block;
}

/* No Image 用 */
.mini-thumb-noimg {
  width: 100%;
  padding: 40px 0;
  text-align: center;
  font-size: 11px;
  color: #aaa;
}

/* タイトル部分 */
.mini-info {
  padding: 8px 10px 10px;
}

.mini-title {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* 2行で省略 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* スマホ用微調整 */
@media (max-width: 599px) {
  .mini-related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .mini-title {
    font-size: 13px;
  }
}


