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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* スマホ（768px以下）のおすすめカード「画像のみ」用2列設定 */
@media screen and (max-width: 768px) {
  /* 親要素：折り返しを許可して横並びに */
  .recommended-in.wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
  }

  /* 各カード：強制的に48%幅（2列）にする */
  .recommended-in.wrap a.a-wrap {
    width: 40% !important; /* 少し余裕を持たせて2枚並べる */
    max-width: 40% !important;
    margin: 0 0 10px 0 !important; /* カードの下に余白、横はリセット */
    flex: 0 0 40% !important;
    display: block !important;
  }

  /* 画像自体の幅も100%に固定 */
  .recommended-in.wrap a.a-wrap img {
    width: 100% !important;
    height: auto !important;
  }
}

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

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

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


/*******************************************************************************
**  全体
*******************************************************************************/


/* ステッチ枠 */

.list-column,
.list-new-entries,
.blog:not(.front-top-page) .main,
.archive .main,
.search .main {
  background-color: color-mix(in srgb, var(--body-color) 60%, white);
  box-shadow: 0 1px 3px 0px rgba(170, 170, 170, 0.18);
  padding: var(--gap30) var(--main-padding);
  position: relative;
}

.list-new-entries:before,
.list-column:before,
.blog:not(.front-top-page) .main:before,
.archive .main:before,
.search .main:before {
  border: 1px dashed var(--main-color);
  bottom: auto;
  box-sizing: border-box;
  content: '';
  display: block;
  height: calc(100% - 8px);
  left: 4px!important;
  pointer-events: none;
  position: absolute;
  right: auto;
  top: 4px;
  width: calc(100% - 8px)!important;;
}


/*******************************************************************************
**  SWIPER
*******************************************************************************/

.body .content-top .is-auto-horizontal {
  padding-bottom: var(--gap30);
}


/* ページネーション */

.body .is-auto-horizontal .swiper-pagination {
  bottom: 10px!important;
  display: flex;
  gap: 5px;
}

.body .is-auto-horizontal .swiper-pagination-bullet {
  background-color: #ccc;
  border-radius: 0;
  height: 3px;
  margin: 0!important;
  opacity: 1;
  transition: all 0.3s;
  width: 30px;
}

.body .is-auto-horizontal .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: var(--main-color);
  width: 60px;
}


/* ページ送りボタン */

.body .is-auto-horizontal .swiper-button-next,
.body .is-auto-horizontal .swiper-button-prev {
  bottom: 0;
  height: unset!important;
  left: auto!important;
  right: 40px;
  top: auto!important;
  transform: unset;
}

.body .is-auto-horizontal .swiper-button-next {
  right: 0;
}

.body .is-auto-horizontal .swiper-button-prev:after,
.body .is-auto-horizontal .swiper-button-next:after {
  color: #ccc;
  font-size: 25px;
}

.body .is-auto-horizontal .swiper-button-prev:hover:after,
.body .is-auto-horizontal .swiper-button-next:hover:after {
  color: var(--main-color);
}


/*******************************************************************************
**  タイトル
*******************************************************************************/

.list-more-button:hover:after {
  transform: translateX(5px);
}

.list-title-in:before {
  background: linear-gradient(135deg, transparent 25%, var(--main-color) 26%, var(--main-color) 50%, transparent 51%, transparent 75%, var(--main-color) 76%, var(--main-color));
  background-size: 4px 4px;
  bottom: 0;
  content: '';
  height: 4px;
  left: 0;
  margin: 0;
  position: absolute;
  top: unset;
  width: 100%;
}

.list-title-in:after {
  content: none;
}

.list-title-in {
  color: var(--main-color)!important;
  font-size: 20px;
  padding: 0 1em 0.5em;
}


/*******************************************************************************
**  もっと見るボタン
*******************************************************************************/

.body .list-more-button {
  background-color: var(--main-color);
  border: 0;
  border-radius: 100px;
  box-shadow: unset;
  color: var(--text-color);
  display: inline-block;
  padding: 5px 15px!important;
  width: fit-content;
}

.list-more-button:after {
  background-color: #fff;
  border-radius: 100px;
  color: var(--main-color);
  content: '\f30b';
  display: inline-block;
  font-family: 'Font Awesome 5 Free';
  font-weight: bold;
  margin: 0 0 0 1em;
  line-height: 20px;
  text-align: center;
  transform: translateX(0);
  transition: all 0.2s ease;
  width: 20px;
}


/*******************************************************************************
**  ペーネーション
*******************************************************************************/

.pagination-next {
  display: none;
}

/* 目次のデザイン調整 */
.body .toc:has(.toc-checkbox) .toc-title {
    align-items: center;
    border: 0;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.toc-checkbox:checked ~ .toc-content {
    border-top: 1px dotted var(--border-color);
    margin-top: var(--padding15);
    padding: var(--gap30) 0 0;
}

.toc-content {
    transition: unset;
}