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

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

/* Cocoon エントリーカードPV：全体のみ表示 */

.admin-pv .today-pv,
.admin-pv .week-pv,
.admin-pv .month-pv {
  display: none !important;
}

/* 「全体:」を非表示 */
.admin-pv .all-pv-label {
  display: none;
}

/* 「閲覧数:」を表示 */
.admin-pv .all-pv::before {
  content: "View";
  margin-right: 0.2em;
}

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

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

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

/* 全体ラッパー */
.writers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

/* 各ライターカード */
.writer-profile {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.writer-profile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* アイキャッチ：中央寄せ */
.writer-profile .eyecatch {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0 8px;
  background: transparent;
  aspect-ratio: auto;
}

/* 丸アイコン（100×100固定） */
.writer-profile .eyecatch img {
  width: 100px;
  height: 100px;
  max-width: 100px;
  max-height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* テキストエリア */
.profiletxt {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* 名前 */
.profiletxt .name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* 説明文 */
.profiletxt .description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 16px;
  flex-grow: 1;
  word-break: break-word;
}

/* ボタン */
.profiletxt .button {
  margin-top: auto;
}

.profiletxt .button a {
  display: block;
  text-align: center;
  padding: 10px 12px;
  background: #222;
  color: #fff;
  font-size: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.profiletxt .button a:hover {
  background: #444;
}

/* ===== レスポンシブ調整 ===== */

/* タブレット以下 */
@media (max-width: 768px) {
  .writers {
    gap: 16px;
  }

  .profiletxt {
    padding: 14px;
  }
}

/* スマホ */
@media (max-width: 480px) {
  .writers {
    grid-template-columns: 1fr;
  }

  .profiletxt .name {
    font-size: 1rem;
  }

  .profiletxt .description {
    font-size: 0.85rem;
  }
}

