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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/*スニペット非表示*/
.no-sp-snippet .entry-card-snippet {
	display: none;
}

/* ページネーションの最後から2番目の要素を非表示（次への前） */
.pagination .page-numbers:nth-last-child(2) {
  display: none;
}

/* 投稿ページの価格：デフォルトでは非表示（未ログイン） */
span[style*="color:red"],
span[style*="color:red"] + br {
  display: none !important;
}

/* 投稿ページの価格：ログイン中のユーザーだけ表示 */
body.logged-in span[style*="color:red"],
body.logged-in span[style*="color:red"] + br {
  display: inline !important;
}

/* 押しやすいリンクスタイル */
a.item-link {
  color: #b1921b;
  border-right: 4px solid #cea82c;
  border-bottom: 10px solid #987c1e;
  border-left: 4px solid #ffed8b;
  border-radius: 0;
  background: -webkit-gradient(linear, right top, left top, from(#ffd75b), color-stop(30%, #fff5a0), color-stop(40%, #fffabe), color-stop(50%, #ffffdb), color-stop(70%, #fff5a0), to(#fdd456));
  background: -webkit-linear-gradient(right, #ffd75b 0%, #fff5a0 30%, #fffabe 40%, #ffffdb 50%, #fff5a0 70%, #fdd456 100%);
  background: linear-gradient(-90deg, #ffd75b 0%, #fff5a0 30%, #fffabe 40%, #ffffdb 50%, #fff5a0 70%, #fdd456 100%);
  text-shadow: -1px -1px 1px #ffffd9;
  display: inline-flex;        /* 元の並びのまま */
  padding: 12px 18px;         /* 元のパディング */
  font-weight: bold;           /* 太字 */
  text-decoration: none;       /* 下線なし */
  transition: all 0.2s;       /* ホバーアニメーション */
}

/* ホバー時の色変化 */
a.item-link:hover {
  margin-top: 3px;
  border-right: 4px solid #cea82c;
  border-bottom: 7px solid #987c1e;
  border-left: 4px solid #ffed8b;
}

.link-buttons {
  display: flex;
  gap: 5px;           /* ボタン間の隙間 */
  flex-wrap: wrap;
}

.item-link .text {
  display: inline-block;    /* 改行を許可 */
  white-space: normal;    /* 長い文字は折り返す */
  margin-left: 0.25em;  /* gapの代わり */
}



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

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

/*480px以下*/
@media screen and (max-width: 480px) {

  /*必要ならばここにコードを書く*/
  .image-and-buttons {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
  }

  .image-and-buttons img {
    max-width: 180px;
    border-radius: 8px;
  }

  .link-buttons {
    font-size: 12px;
    margin-top: 20px;
    gap: 1px;    /* ボタン間の隙間 */
    display: flex;
    flex-direction: column;
  }

  .item-link {
    align-items: center;    /* 絵文字と文字を縦方向中央揃え */
  }

  .item-link .text {
	margin-left: 0.8em;  /* gapの代わり */
  }
}
