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

/* フォント（math days と同じ Zen Maru Gothic）。@import は必ずこの位置（ほかのルールより前） */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700&display=swap');

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* ==========================================
   カラー変数：色はここだけで決める（下では var(--gc-…) だけを使う）
   サイトごとに変えるのは「色の設定」ブロックの中だけ
========================================== */
:root {
  /* ===== 色の設定: サイトごとにここだけ変える ===== */
  --gc-primary: #557a46;        /* メイン（苔の緑）: ボタン・強調・ページ送り */
  --gc-primary-dark: #36502c;   /* 濃いメイン（深い森）: hover・リンク・フッター背景 */
  --gc-accent: #557a46;         /* アクセント: 見出しの左の線・SNSボタン */
  --gc-soft: #e8eedf;           /* ごく薄い色（若葉）: 薄い面・hover の背景・フッターの文字 */
  --gc-border: #dfe3d3;         /* 罫線（セージ） */
  --gc-bg: #f4f2ea;             /* ページの背景（生成り） */
  --gc-surface: #fcfbf7;        /* カード・本文の面 */
  --gc-text: #2f3529;           /* 本文の文字 */
  --gc-text-sub: #6d7563;       /* 補足の文字 */
  --gc-shadow-color: #3a4a2c;   /* 影の色（薄めて使う） */
  --gc-header-bg: var(--gc-surface);       /* ヘッダーの背景 */
  --gc-header-text: var(--gc-primary-dark); /* ヘッダーのサイト名の文字 */
  --gc-header-line: linear-gradient(90deg, var(--gc-primary) 0%, var(--gc-primary) 100%); /* ヘッダー下の帯（グラデーション可） */
  --gc-sun: none;               /* サイト名の左の丸の色（グラデーション可） */
  --gc-sun-size: 0;             /* 丸の大きさ（0 で出さない。出すなら 0.95em くらい） */
  --gc-footer-bg: var(--gc-primary-dark); /* フッターの背景 */
  --gc-footer-text: var(--gc-soft);       /* フッターの文字 */
  /* ===== ここまで ===== */

  --gc-font: "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
}

/* ==========================================
   フォント：math days と同じ丸ゴシック
========================================== */
body,
.body,
.site-name-text,
.tagline,
.entry-title,
.entry-card-title,
.archive-title,
.article h1,
.article h2,
.article h3,
.sidebar h2,
.sidebar h3,
input,
button,
textarea {
  font-family: var(--gc-font);
}

body,
.body {
  font-weight: 500;
}

/* ==========================================
   サイト全体の色：背景・ヘッダー・フッター・リンク・ラベル
========================================== */
body,
.body {
  background-color: var(--gc-bg);
  color: var(--gc-text);
}

::selection {
  background: var(--gc-soft);
}

.header-container,
.header {
  background: var(--gc-header-bg);
}

/* ヘッダー下の帯（グラデーションも使えるように border-image で描く） */
.header-container {
  border-bottom: 3px solid transparent;
  border-image: var(--gc-header-line) 1;
}

.header .site-name-text,
.header .site-name-text-link,
.header .logo-text a {
  color: var(--gc-header-text);
  letter-spacing: .04em;
}

/* サイト名の左の丸（--gc-sun-size が 0 なら出ない） */
.header .site-name-text::before {
  content: "";
  display: inline-block;
  width: var(--gc-sun-size);
  height: var(--gc-sun-size);
  margin-right: calc(var(--gc-sun-size) * .45);
  border-radius: 50%;
  background: var(--gc-sun);
  vertical-align: -0.08em;
}

.tagline {
  color: var(--gc-text-sub);
}

.navi,
.navi-in > ul > li > a {
  background-color: var(--gc-surface);
  color: var(--gc-text);
}

.main {
  background-color: var(--gc-surface);
  border: none;
}

.entry-content a:not(.blogcard-wrap):not(.a-wrap):not(.wp-block-button__link):not(.btn),
.article .author-info a,
.breadcrumb a {
  color: var(--gc-primary-dark);
  text-decoration-color: var(--gc-primary);
}

/* ボタン（Cocoon の「ボタン」ブロック・WordPress の「ボタン」ブロック）
   形はシンプルな丸いボタンに揃える。色はブロックで指定していないときだけメインの色にする */
.entry-content .btn,
.entry-content .btn-wrap > a,
.entry-content .wp-block-button__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-width: 14em;
  padding: 0.85em 1.8em 0.85em 2.1em;
  border: none;
  border-radius: 999px;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--gc-shadow-color) 12%, transparent);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
  text-decoration: none;
  opacity: 1;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.entry-content .btn:not([class*="-font-size"]),
.entry-content .btn-wrap > a,
.entry-content .wp-block-button__link:not([class*="-font-size"]) {
  font-size: 0.92rem;
}

.entry-content .btn:not(.has-background),
.entry-content .btn-wrap > a,
.entry-content .wp-block-button__link:not(.has-background) {
  background-color: var(--gc-primary);
}

.entry-content .btn:not(.has-text-color),
.entry-content .btn-wrap > a,
.entry-content .wp-block-button__link:not(.has-text-color) {
  color: var(--gc-surface);
}

.entry-content .btn:hover,
.entry-content .btn-wrap > a:hover,
.entry-content .wp-block-button__link:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--gc-shadow-color) 20%, transparent);
}

.entry-content .btn:not(.has-background):hover,
.entry-content .btn-wrap > a:hover,
.entry-content .wp-block-button__link:not(.has-background):hover {
  background-color: var(--gc-primary-dark);
}

/* 右の矢印（Cocoon のアイコンの矢印の代わりに細い線の矢印） */
.entry-content .btn::after,
.entry-content .btn-wrap > a::after,
.entry-content .wp-block-button__link::after {
  content: "";
  position: static;
  flex: 0 0 auto;
  width: 0.42em;
  height: 0.42em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.entry-content .btn:hover::after,
.entry-content .btn-wrap > a:hover::after,
.entry-content .wp-block-button__link:hover::after {
  transform: translateX(3px) rotate(45deg);
}

.cat-label {
  background-color: color-mix(in srgb, var(--gc-primary-dark) 85%, transparent);
  border: none;
  color: var(--gc-surface);
  border-radius: 4px;
}

.wp-block-search__button,
.search-submit {
  background-color: var(--gc-primary) !important;
  border-color: var(--gc-primary) !important;
  color: var(--gc-surface) !important;
}

.footer {
  background-color: var(--gc-footer-bg);
  color: var(--gc-footer-text);
}

.footer a,
.footer .site-name-text,
.footer .site-name-text-link,
.copyright {
  color: var(--gc-footer-text);
}

.mobile-footer-menu-buttons,
.mobile-header-menu-buttons {
  background-color: var(--gc-surface);
  color: var(--gc-primary-dark);
}

.mobile-footer-menu-buttons .menu-button > a,
.mobile-header-menu-buttons .menu-button > a {
  color: var(--gc-primary-dark);
}

/* ==========================================
   記事ページ：SNSボタン・目次・コードもサイトの緑に揃える
========================================== */
/* 記事下のフォローボタン欄は出さない（functions.php でも非表示にしている） */
.sns-follow {
  display: none !important;
}

/* シェアボタン：記事の上の左端に、小さく控えめに並べる（文字なしのアイコンだけ） */
.sns-share {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  margin: 0.4rem 0 0.2rem;
}

.sns-share .sns-share-message {
  margin: 0;
  padding: 0;
  color: var(--gc-text-sub);
  font-size: 0.75rem;
  letter-spacing: .08em;
  line-height: 30px;
}

.sns-share .sns-share-buttons {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 0.4rem;
  width: auto !important;
  margin: 0 !important;
}

.sns-share .sns-button {
  flex: 0 0 auto;
  width: 30px !important;
  height: 30px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--gc-border) !important;
  border-radius: 50% !important;
  background: var(--gc-surface) !important;
  color: var(--gc-text-sub) !important;
  box-shadow: none !important;
  transition: color .2s ease, border-color .2s ease;
}

.sns-share .sns-button:hover {
  opacity: 1;
  border-color: color-mix(in srgb, var(--gc-accent) 40%, transparent) !important;
  color: var(--gc-accent) !important;
}

.sns-button .button-caption,
.sns-button .share-count,
.sns-button .follow-count {
  display: none !important;
}

.sns-share .sns-button .social-icon {
  margin: 0 !important;
  color: inherit !important;
  font-size: 14px !important;
  line-height: 1;
}

.toc {
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left;
  background-color: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 10px;
}

.toc-title {
  color: var(--gc-primary-dark);
}

.toc a {
  color: var(--gc-text);
}

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

.article pre,
.wp-block-code {
  background-color: var(--gc-soft);
  border: 1px solid var(--gc-border);
  border-radius: 8px;
  color: var(--gc-text);
}

.post-date,
.post-update,
.entry-categories-tags a {
  color: var(--gc-text-sub);
}

.entry-categories-tags a {
  background-color: var(--gc-soft);
  border: none;
  border-radius: 4px;
}

/* ==========================================
   プロフィール（Cocoon: プロフィールウィジェット）
========================================== */
.author-box {
  background: var(--gc-surface);
  border: none;
  border-radius: 16px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--gc-shadow-color) 4%, transparent), 0 6px 20px color-mix(in srgb, var(--gc-shadow-color) 6%, transparent);
  padding: 32px 26px;
}

.author-widget-name {
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gc-primary-dark);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.author-thumb img {
  border: 3px solid var(--gc-surface);
  box-shadow: 0 0 0 3px var(--gc-soft);
}

.author-thumb.circle-image img {
  border-radius: 50%;
}

.author-name {
  font-size: 1.08em;
  font-weight: 700;
  color: var(--gc-text);
  margin-top: 16px;
  letter-spacing: .02em;
}

.author-name a {
  color: var(--gc-text);
  transition: color .2s ease;
}

.author-name a:hover {
  color: var(--gc-primary);
}

.author-description {
  color: var(--gc-text-sub);
  font-size: 0.88em;
  line-height: 1.85;
  margin-top: 8px;
}

.author-follows a {
  background: var(--gc-surface) !important;
  border: 1px solid var(--gc-border) !important;
  box-shadow: none !important;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.author-follows a:hover {
  background: var(--gc-primary) !important;
  border-color: var(--gc-primary) !important;
  transform: translateY(-2px);
}

/* ==========================================
   ブログカード（内部・外部リンク共通）
   サムネイル＋タイトルのみのコンパクト表示
========================================== */
.blogcard-wrap {
  width: 100%;
  margin: 1.4em 0;
  background: transparent;
}

.blogcard {
  display: flex;
  align-items: center;
  padding: 0;
  background: var(--gc-surface);
  border: none;
  border-radius: 14px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--gc-shadow-color) 4%, transparent), 0 4px 14px color-mix(in srgb, var(--gc-shadow-color) 6%, transparent);
  overflow: hidden;
  position: relative;
  transition: box-shadow .25s ease, transform .25s ease;
}

.blogcard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gc-primary);
  transform: scaleY(0);
  transition: transform .25s ease;
}

.blogcard:hover {
  box-shadow: 0 10px 26px color-mix(in srgb, var(--gc-shadow-color) 18%, transparent);
  transform: translateY(-3px);
}

.blogcard:hover::before {
  transform: scaleY(1);
}

/* 日付・URL表記・本文冒頭は非表示 */
.blogcard-label,
.blogcard-footer,
.blogcard-snippet {
  display: none !important;
}

.blogcard-thumbnail {
  float: none;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  margin: 0;
  overflow: hidden;
}

.blogcard-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.blogcard-content {
  flex: 1;
  margin-left: 0;
  min-height: 0;
  max-height: none;
  padding: 14px 20px;
  overflow: hidden;
}

.blogcard-title {
  margin-bottom: 0;
  color: var(--gc-text);
  font-weight: 600;
  font-size: 0.96em;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}

.blogcard:hover .blogcard-title {
  color: var(--gc-primary-dark);
}

/* ==========================================
   サイドバー：Recent Posts と 人気の記事 を罫線だけのリストに
   （中身は functions.php で固定）
========================================== */
.sidebar {
  padding: 8px 4px;
  background: transparent;
  border: none;
}

.sidebar .widget {
  margin-bottom: 28px !important;
}

.sidebar h2,
.sidebar h3,
.sidebar h2.wp-block-heading {
  margin: 0 0 6px !important;
  padding: 0 0 8px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--gc-border);
  color: var(--gc-primary-dark);
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: .08em;
}

.sidebar h2::before,
.sidebar h3::before,
.sidebar h2::after,
.sidebar h3::after {
  display: none;
}

/* Recent Posts */
.sidebar .wp-block-latest-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar .wp-block-latest-posts li {
  margin: 0;
  padding: 0;
  border-bottom: 1px dashed var(--gc-border);
}

.sidebar .wp-block-latest-posts li:last-child {
  border-bottom: none;
}

.sidebar .wp-block-latest-posts__post-title {
  display: block;
  padding: 8px 2px;
  color: var(--gc-text);
  font-size: 0.875rem;
  line-height: 1.6;
  text-decoration: none;
  transition: color .2s ease;
}

.sidebar .wp-block-latest-posts__post-title:hover {
  color: var(--gc-primary);
}

/* 人気の記事：画像なし・順位の数字＋タイトル */
.sidebar .popular-entry-cards {
  counter-reset: gc-rank;
}

.sidebar .popular-entry-card-link {
  display: block;
  margin: 0;
  padding: 0;
  border-bottom: 1px dashed var(--gc-border);
  background: none;
  box-shadow: none;
}

.sidebar .popular-entry-card-link:last-child {
  border-bottom: none;
}

.sidebar .popular-entry-card-link:hover {
  background: none;
}

.sidebar .popular-entry-card {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 8px 2px;
  counter-increment: gc-rank;
}

.sidebar .popular-entry-card::before {
  content: counter(gc-rank);
  flex: 0 0 auto;
  color: var(--gc-primary);
  font-size: 0.78em;
  font-weight: 700;
}

.sidebar .popular-entry-card-thumb,
.sidebar .popular-entry-card-meta {
  display: none;
}

.sidebar .popular-entry-card-content {
  margin: 0;
  padding: 0;
}

.sidebar .popular-entry-card-title {
  color: var(--gc-text);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  transition: color .2s ease;
}

.sidebar .popular-entry-card-link:hover .popular-entry-card-title {
  color: var(--gc-primary);
}

/* ==========================================
   見出し・フォント：スタイリッシュに
========================================== */
body {
  letter-spacing: .01em;
}

.article h1,
.article h2,
.article h3,
.article h4 {
  font-weight: 700;
  letter-spacing: .02em;
}

/* 見出しは「左の緑の線」で統一。レベルが下がるほど線と文字を細く・小さくする */
.article h2,
.article h3,
.article h4,
.article h5 {
  position: relative;
  margin: 2.2em 0 .9em;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--gc-text);
  line-height: 1.5;
}

.article h2::before,
.article h2::after,
.article h3::before,
.article h3::after,
.article h4::before,
.article h4::after,
.article h5::before,
.article h5::after {
  content: none;
}

.article h2 {
  padding: 6px 0 10px 14px;
  border-left: 4px solid var(--gc-accent);
  border-bottom: 1px solid var(--gc-border);
  font-size: 1.25em;
}

.article h3 {
  padding: 2px 0 2px 12px;
  border-left: 3px solid var(--gc-accent);
  font-size: 1.1em;
}

.article h4 {
  padding: 0 0 0 10px;
  border-left: 2px solid var(--gc-accent);
  color: var(--gc-primary-dark);
  font-size: 1em;
}

.article h5 {
  padding: 0 0 0 9px;
  border-left: 2px solid var(--gc-border);
  color: var(--gc-text-sub);
  font-size: 0.9em;
  font-weight: 700;
}

.entry-title {
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.5;
}

/* ==========================================
   記事本文：メインコンテンツを立たせる
========================================== */
.entry-content {
  font-size: 1.03em;
}

/* 行間と段落の間隔は記事・固定ページで共通 */
.entry-content p {
  margin: 0 0 1.1em;
  color: var(--gc-text);
  line-height: 1.85;
}

/* リストも本文と同じ文字の大きさ・行間にする（Cocoon の初期値は少し小さい） */
.article .entry-content ul,
.article .entry-content ol {
  margin: 0 0 1.1em;
  font-size: 1em;
}

.article .entry-content li {
  margin: 0;
  font-size: 1em;
  line-height: 1.85;
}

/* シリーズ内の記事一覧（まとめ記事の中）：ブログ一覧と同じカードを1記事1行で */
.gc-part-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 1.6em;
}

.gc-part-list .entry-card-thumb {
  position: relative;
}

/* ==========================================
   シリーズのまとめ記事（固定ページのグリッド。functions.php の [gc_series]）
========================================== */
.gc-series {
  margin: 2.4em 0 1em;
}

.gc-series-heading {
  margin: 0 0 14px;
  padding: 6px 0 10px 14px;
  border-left: 4px solid var(--gc-accent);
  border-bottom: 1px solid var(--gc-border);
  color: var(--gc-text);
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.5;
}

.gc-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* カード：画像いっぱいに、下側のグラデーションの上にラベルとタイトルを重ねる */
.entry-content a.gc-series-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: var(--gc-primary-dark);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--gc-shadow-color) 4%, transparent), 0 4px 14px color-mix(in srgb, var(--gc-shadow-color) 8%, transparent);
  text-decoration: none;
  transition: box-shadow .25s ease, transform .25s ease;
}

.entry-content a.gc-series-card:hover {
  box-shadow: 0 10px 24px color-mix(in srgb, var(--gc-shadow-color) 18%, transparent);
  transform: translateY(-3px);
}

.gc-series-thumb {
  position: absolute;
  inset: 0;
  margin: 0;
}

.gc-series-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.entry-content a.gc-series-card:hover .gc-series-thumb-img {
  transform: scale(1.04);
}

.gc-series-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, color-mix(in srgb, var(--gc-primary-dark) 88%, transparent) 0%, color-mix(in srgb, var(--gc-primary-dark) 55%, transparent) 55%, transparent 100%);
}

.gc-series-label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--gc-surface) 22%, transparent);
  color: var(--gc-surface);
  font-size: 0.66em;
  font-weight: 700;
  letter-spacing: .12em;
}

.gc-series-title {
  margin: 0;
  color: var(--gc-surface);
  font-size: 1em;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 1px 3px color-mix(in srgb, var(--gc-shadow-color) 45%, transparent);
}

/* 重ねる形では冒頭文は出さない */
.gc-series-excerpt {
  display: none;
}

/* ==========================================
   Related posts：シンプルなリスト表示
========================================== */
.related-entries {
  background: none;
  padding: 0;
}

.related-entry-heading {
  margin: 0 0 6px;
  padding-bottom: 10px;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gc-text-sub);
  border-bottom: 1px solid var(--gc-border);
}

.related-list {
  row-gap: 0;
  margin-bottom: 0;
}

.related-entry-card-wrap {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--gc-border) !important;
  padding: 7px 2px !important;
  margin: 0 !important;
}

.related-entry-card-wrap:last-child {
  border-bottom: none !important;
}

.related-entry-card-thumb,
.related-entry-card-snippet,
.related-entry-card .cat-label {
  display: none !important;
}

.related-entry-card-content {
  margin-left: 0 !important;
}

.related-entry-card,
.related-entry-card-content {
  margin: 0 !important;
  padding: 0 !important;
}

.related-entry-card-title {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.6;
  font-weight: 500;
  color: var(--gc-text);
  transition: color .2s ease;
}

.related-entry-card-title::after {
  content: "  ›";
  color: var(--gc-primary);
}

.related-entry-card-wrap:hover .related-entry-card-title {
  color: var(--gc-primary-dark);
}

/* ==========================================
   コメント欄：シンプルに
========================================== */
.comment-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gc-text-sub);
  border-bottom: 1px solid var(--gc-border);
}

.comment-btn {
  margin: 0 0 24px;
}

.pagination-next-link,
.comment-btn {
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  color: var(--gc-text);
  font-size: 0.92em;
  font-weight: 500;
  padding: 12px;
  border-radius: 8px;
  box-shadow: none;
}

.pagination-next-link:hover,
.comment-btn:hover {
  background: var(--gc-soft);
  border-color: var(--gc-primary);
  color: var(--gc-primary-dark);
}

.comment-respond {
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: none;
}

.comment-reply-title {
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 14px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  border: 1px solid var(--gc-border);
  border-radius: 6px;
  box-shadow: none;
}

.comment-form textarea:focus,
.comment-form input:focus {
  border-color: var(--gc-primary);
  box-shadow: none;
}

#submit {
  background: var(--gc-primary) !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

#submit:hover {
  background: var(--gc-primary-dark) !important;
}

/* ==========================================
   全体の横幅：PC では画面に合わせて広げる（最大 1240px）
   サイドバーは 300px 固定、本文（一覧）は残り全部
========================================== */
@media screen and (min-width: 1024px){
  .wrap {
    width: min(1240px, calc(100% - 32px));
  }

  .content-in {
    flex-wrap: nowrap;
    gap: 28px;
  }

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

  .sidebar {
    flex: 0 0 300px;
    width: 300px;
  }

  /* 記事・固定ページは本文を読みやすいように少し広く（最大 1360px） */
  .single .wrap,
  .page .wrap {
    width: min(1360px, calc(100% - 32px));
  }
}

/* ==========================================
   投稿一覧（ブログページ）：1記事1行の横長カード（画像は左）
========================================== */
#list.list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.entry-card-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: none !important;
  background: var(--gc-surface);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--gc-shadow-color) 4%, transparent), 0 4px 14px color-mix(in srgb, var(--gc-shadow-color) 6%, transparent);
  border-radius: 12px;
  padding: 0 !important;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}

.entry-card-wrap:hover {
  box-shadow: 0 8px 20px color-mix(in srgb, var(--gc-shadow-color) 18%, transparent);
  transform: translateY(-3px);
}

.entry-card {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

/* 画像はカードの左端いっぱい（高さはカードに合わせる） */
.entry-card-thumb {
  float: none;
  flex: 0 0 200px;
  width: 200px;
  min-height: 112px;
  margin: 0 !important;
  overflow: hidden;
}

.entry-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.entry-card-meta {
  display: none !important;
}

.entry-card-content {
  flex: 1;
  min-width: 0;
  align-self: center;
  margin-left: 0 !important;
  padding: 12px 20px;
}

/* タイトルは途中で切らずに全部出す（Cocoon の初期値は3行で省略） */
.entry-card-title {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  margin: 0;
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1.6;
  color: var(--gc-text);
  transition: color .2s ease;
}

.entry-card-wrap:hover .entry-card-title {
  color: var(--gc-primary-dark);
}

/* 本文の冒頭（2行まで）：マウスを乗せたときだけ出す */
.entry-card-snippet {
  max-height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  color: var(--gc-text-sub);
  font-size: 0.76em;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  transition: max-height .3s ease, opacity .3s ease, margin .3s ease;
}

.entry-card-wrap:hover .entry-card-snippet,
.entry-card-wrap:focus-visible .entry-card-snippet {
  max-height: 3.6em;
  margin-top: 4px;
  opacity: 1;
}

/* Cocoon 設定のカードタイプ（大きなカード・縦型カード・タイルカード）や
   スキンでカードタイプが変わっていても、一覧は1記事1行（画像は左）にする */
#list.list {
  height: auto !important; /* タイルカードの並べ替え（masonry）が付ける高さを消す */
}

#list .entry-card-wrap {
  display: block;
  position: relative !important; /* masonry の絶対配置を消す */
  top: auto !important;
  left: auto !important;
}

#list .entry-card-wrap .entry-card {
  display: flex;
  flex-direction: row;
}

#list .entry-card-wrap .entry-card-thumb {
  float: none;
  flex: 0 0 200px;
  width: 200px;
  margin: 0 !important;
}

#list .entry-card-wrap .entry-card-content {
  display: block;
  height: auto;
  margin: 0 !important;
  padding: 12px 20px;
}

/* マウスの無い端末（タブレット等）は常に出す */
@media (hover: none) {
  .entry-card-snippet {
    max-height: 3.6em;
    margin-top: 4px;
    opacity: 1;
  }
}

/* ==========================================
   ページネーション（数字）
========================================== */
.pagination-next {
  display: none !important;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--gc-border) !important;
  border-radius: 8px;
  background: var(--gc-surface);
  color: var(--gc-text);
  font-size: 0.9em;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.page-numbers.dots {
  border: none !important;
  background: none;
}

.pagination .current,
.page-numbers.current {
  background: var(--gc-primary) !important;
  border-color: var(--gc-primary) !important;
  color: var(--gc-surface);
  font-weight: 600;
}

.page-numbers:not(.dots):not(.current):hover {
  border-color: var(--gc-primary) !important;
  color: var(--gc-primary-dark);
  background: var(--gc-soft);
}

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  .entry-card-thumb,
  #list .entry-card-wrap .entry-card-thumb {
    flex-basis: 110px;
    width: 110px;
    min-height: 74px;
  }

  .entry-card-content,
  #list .entry-card-wrap .entry-card-content {
    padding: 10px 14px;
  }

  .entry-card-title {
    font-size: 0.86em;
  }

  .entry-card-snippet {
    display: none !important;
  }
}

/* ==========================================
   サイトごとの追加 CSS（見出しの形など、サイトによって変えるデザイン）
   sync_child_themes.sh はこのブロックをテーマごとに残す
========================================== */
/* ===== サイトごとの追加 CSS ===== */
/* ===== ここまで（サイトごとの追加 CSS） ===== */