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

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

/* ここから じやすけどっとねっと用 */

/* ========================================
   共通：ページ背景
======================================== */

body.home,
body.single,
body.page {
  background-color: #207a50;
  background-image:
    repeating-linear-gradient(
      35deg,
      #cff0ca08 0 1px,
      transparent 1px 3px
    ),
    repeating-linear-gradient(
      125deg,
      #001a120c 0 1px,
      transparent 1px 4px
    ),
    radial-gradient(
      ellipse at 45% 20%,
      #74c17f52,
      transparent 70%
    ),
    linear-gradient(
      110deg,
      #15563b,
      #288b59 48%,
      #1b6745
    );

  background-attachment: fixed;
}


/* ========================================
   共通：ヘッダー・ナビ・フッター
======================================== */

body.home #header-container,
body.home #header,
body.home #navi,
body.home #footer,
body.single #header-container,
body.single #header,
body.single #navi,
body.single #footer,
body.page #header-container,
body.page #header,
body.page #navi,
body.page #footer {
  background: #101613;
  color: #f5e5be;
}

body.home #header-container,
body.single #header-container,
body.page #header-container {
  border-bottom: 1px solid #bc995a;
}

body.home #header .site-name-text,
body.single #header .site-name-text,
body.page #header .site-name-text {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;

  font-weight: 700;
  font-size: clamp(28px, 5vw, 44px);
  color: #ffe3a1;
}

body.home #header a,
body.home #navi a,
body.home #footer a,
body.single #header a,
body.single #navi a,
body.single #footer a,
body.page #header a,
body.page #navi a,
body.page #footer a {
  color: #ffe3a1;
}

body.home #header .site-description,
body.single #header .site-description,
body.page #header .site-description {
  color: #d3cbb5;
}


/* ========================================
   共通：コンテンツエリア
======================================== */

body.home #content,
body.single #content,
body.page #content {
  margin-top: 28px;
}


/* ========================================
   共通：メインコンテンツ
======================================== */

body.home #main,
body.single #main,
body.page #main {
  background:
    repeating-linear-gradient(
      0deg,
      #ffdec209 0 1px,
      transparent 1px 3px
    ),
    radial-gradient(
      ellipse at 45% 15%,
      #e2697147,
      transparent 65%
    ),
    linear-gradient(
      115deg,
      #4c0a20,
      #921f3c 45%,
      #620f28
    );

  border: 1px solid #c5a46b;
  border-radius: 14px;
  padding: clamp(16px, 3vw, 30px);

  box-shadow:
    inset 0 0 30px #1d000c55,
    0 8px 24px #001a1238;

  color: #fff0d1;
}

body.single #main .entry-content,
body.page #main .entry-content {
  color: #fff0d1;
}

body.single #main .entry-title,
body.page #main .entry-title {
  color: #ffe3a1;
}

body.single #main .entry-content a,
body.page #main .entry-content a {
  color: #ffe3a1;
  text-decoration-color: #c5a46b;
}


/* ========================================
   トップページ：記事一覧
======================================== */

body.home #list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

body.home #list .entry-card-wrap {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px;
  box-sizing: border-box;

  border: 1px solid #d8bc86;
  border-radius: 10px;

  background: #fff9ed;
  color: #30281e;

  box-shadow: 0 4px 10px #24000b55;

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

body.home #list .entry-card-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px #24000b66;
}

body.home #list .entry-card-thumb {
  float: none;
  width: 100%;
  margin: 0 0 14px;
}

body.home #list .entry-card-thumb img {
  width: 100%;
  border-radius: 6px;
}

body.home #list .entry-card-content {
  margin: 0;
  padding: 0;
}

body.home #list .entry-card-title {
  color: #512136;
  font-size: 20px;
  line-height: 1.6;
}

body.home #list .entry-card-snippet {
  color: #574c3c;
}

body.home #list .entry-card-meta {
  position: static;
  color: #74644a;
  margin-top: 12px;
}

body.home #list .cat-label {
  background: #70203a;
  color: #fff0d1;
  border-color: #bd995e;
}


/* ========================================
   共通：サイドバー
======================================== */

body.home #sidebar,
body.single #sidebar,
body.page #sidebar {
  background: transparent;
}

body.home #sidebar .widget,
body.single #sidebar .widget,
body.page #sidebar .widget {
  padding: 18px;

  background: #fff9ed;
  color: #30281e;

  border: 1px solid #cfb47c;
  border-radius: 10px;
}

body.home #sidebar .widget a,
body.single #sidebar .widget a,
body.page #sidebar .widget a {
  color: #225b40;
}

body.home #sidebar .widget-title,
body.single #sidebar .widget-title,
body.page #sidebar .widget-title {
  background: #172d22;
  color: #ffe3a1;

  border-radius: 5px;

  font-size: 18px;
}


/* ========================================
   投稿・固定ページ：細部
======================================== */

body.single .breadcrumb,
body.page .breadcrumb,
body.single .breadcrumb a,
body.page .breadcrumb a {
  color: #d8c8a5;
}

body.single .date-tags,
body.single .post-date,
body.single .post-update {
  color: #ead9b8;
}

body.single .entry-categories a,
body.single .cat-link {
  background: #172d22;
  color: #ffe3a1;
  border: 1px solid #bc995a;
  border-radius: 4px;
}

body.single .author-info a,
body.single .author-name a {
  color: #ffe3a1;
}

body.single .related-entry-heading {
  color: #ffe3a1;
  border-bottom: 1px solid #bc995a;
  padding-bottom: 8px;
}

body.single #sidebar .widget-title,
body.page #sidebar .widget-title {
  padding: 10px 12px;
  background: #172d22;
  color: #ffe3a1;
  border: 1px solid #bc995a;
}


/* ========================================
   トップページ：ページネーション
======================================== */

body.home .pagination a,
body.home .pagination .current {
  background: #fff0cf;
  color: #432919;
  border-color: #c7a25e;
}


/* ========================================
   サイドバー：ゲーム紹介
======================================== */

.jiyasuke-game-widget {
  padding: 18px;
  text-align: center;

  background:
    repeating-linear-gradient(
      0deg,
      #ffffff08 0 1px,
      transparent 1px 3px
    ),
    linear-gradient(
      145deg,
      #13281e,
      #0d1813
    );

  border: 1px solid #c5a46b;
  border-radius: 10px;

  color: #eee7d6;

  box-shadow:
    inset 0 0 18px #00000044,
    0 4px 10px #001a1238;
}

.jiyasuke-game-widget__title {
  margin-bottom: 12px;
  color: #ffe3a1;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;

  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.jiyasuke-game-widget__text {
  margin: 0 0 16px;
  color: #eee7d6;
  font-size: 14px;
  line-height: 1.8;
}

.jiyasuke-game-widget__button {
  display: block;
  padding: 12px 16px;

  border: 1px solid #f0d397;
  border-radius: 8px;

  background:
    linear-gradient(
      165deg,
      #ffe6ad,
      #c79a48
    );

  color: #32220b !important;

  font-weight: 700;
  text-decoration: none !important;

  box-shadow:
    inset 0 1px 0 #ffffff70,
    0 3px 0 #795820;

  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.jiyasuke-game-widget__button:hover {
  transform: translateY(-2px);

  box-shadow:
    inset 0 1px 0 #ffffff90,
    0 5px 0 #795820;
}

.jiyasuke-game-widget__button:active {
  transform: translateY(1px);

  box-shadow:
    inset 0 1px 0 #ffffff60,
    0 1px 0 #795820;
}

.jiyasuke-game-widget__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}


/* ゲーム紹介ウィジェットだけ外側の白枠を消す */

body.home #sidebar .widget:has(.jiyasuke-game-widget),
body.single #sidebar .widget:has(.jiyasuke-game-widget),
body.page #sidebar .widget:has(.jiyasuke-game-widget) {
  padding: 0;
  background: transparent;
  border: 0;
}


/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 600px) {
  body.home #list {
    grid-template-columns: 1fr;
  }
}


/* ========================================
   アニメーション軽減設定
======================================== */

@media (prefers-reduced-motion: reduce) {

  body.home #list .entry-card-wrap,
  .jiyasuke-game-widget__button {
    transition: none;
  }

  body.home #list .entry-card-wrap:hover,
  .jiyasuke-game-widget__button:hover,
  .jiyasuke-game-widget__button:active {
    transform: none;
  }
}

/* ========================================
   投稿・固定ページ：h2見出し
======================================== */

body.single .entry-content h2,
body.page .entry-content h2 {
  margin: 2.2em 0 1em;
  padding: 12px 16px;

  background:
    linear-gradient(
      135deg,
      #172d22,
      #234734
    );

  color: #ffe3a1;

  border: 1px solid #bc995a;
  border-left: 6px solid #d8b66c;
  border-radius: 6px;

  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.5;

  box-shadow:
    inset 0 1px 0 #ffffff12,
    0 3px 8px #24000b44;
}

/* ========================================
   トップ：テキスト主体の記事カード
======================================== */

body.home #list .entry-card-thumb {
  display: none;
}

body.home #list .entry-card-wrap {
  min-height: 240px;
  padding: 22px;

  display: flex;
  flex-direction: column;

  background:
    linear-gradient(
      145deg,
      #fffaf0,
      #f7ecd7
    );

  border: 1px solid #d8bc86;
  border-radius: 10px;

  box-shadow:
    inset 0 1px 0 #ffffffaa,
    0 4px 10px #24000b55;
}

body.home #list .entry-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;

  margin: 0;
  padding: 0;
}

body.home #list .entry-card-title {
  margin: 12px 0 10px;

  color: #512136;

  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.6;
}

body.home #list .entry-card-snippet {
  color: #574c3c;

  font-size: 15px;
  line-height: 1.8;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

body.home #list .entry-card-meta {
  position: static;

  margin-top: auto;
  padding-top: 18px;

  color: #74644a;
  font-size: 13px;
}

body.home #list .cat-label {
  position: static;
  display: inline-block;

  width: fit-content;

  padding: 4px 8px;

  background: #172d22;
  color: #ffe3a1;

  border: 1px solid #bc995a;
  border-radius: 4px;

  font-size: 12px;
}