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

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

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* スマホカテゴリーを1列に強制 */
@media screen and (max-width: 768px) {
  body .night-category-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}
@media screen and (max-width: 768px) {

  .night-category-card {
    min-height: auto !important;
    padding: 14px 18px !important;
    border: 1px solid #eadff0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(70, 20, 100, 0.07);
  }

  .night-category-card strong {
    font-size: 15px;
    color: #58157a;
  }

  .night-category-card small {
    margin-top: 3px;
    font-size: 11px;
    color: #777;
  }

}
/* 新着記事 見出し */
.night-new-title {
  margin: 35px 0 18px;
  padding: 0 0 10px 14px;
  border-left: 5px solid #7b2d9b;
  border-bottom: 1px solid #eadff0;
}

.night-new-title span {
  display: block;
  margin-bottom: 2px;
  color: #b07a35;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.night-new-title h2 {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  color: #4b126a !important;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
}

@media screen and (max-width: 768px) {
  .night-new-title {
    margin: 26px 0 14px;
  }

  .night-new-title h2 {
    font-size: 20px;
  }
}
/* =========================
   カテゴリーエリア
========================= */

.night-category-area {
  margin: 30px 0;
}

/* PC：4列 */
.night-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* カテゴリーカード */
.night-category-grid a.night-category-card,
.night-category-grid a.night-category-card:link,
.night-category-grid a.night-category-card:visited {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 20px 10px;

  background: #ffffff;

  border: 1px solid #eadff0;
  border-radius: 9px;

  box-shadow: 0 3px 10px rgba(70, 20, 100, 0.07);

  color: #4b126a !important;
  text-decoration: none !important;

  transition: 0.2s;
}

/* マウスを乗せた時 */
.night-category-grid a.night-category-card:hover {
  transform: translateY(-2px);
  border-color: #a75ac2;

  box-shadow: 0 5px 14px rgba(70, 20, 100, 0.13);

  text-decoration: none !important;
}

/* アイコン */
.night-category-card .category-icon {
  margin-bottom: 5px;

  color: #8b3bb4;

  font-size: 22px;
  line-height: 1;
}

/* カテゴリー名 */
.night-category-card strong {
  color: #4b126a !important;

  font-size: 15px;
  font-weight: 700;

  text-decoration: none !important;
}

/* 説明 */
.night-category-card small {
  margin-top: 5px;

  color: #777 !important;

  font-size: 11px;

  text-decoration: none !important;
}


/* =========================
   スマホ
========================= */

@media screen and (max-width: 768px) {

  /* 1列 */
  body .night-category-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  /* 横長カード */
  .night-category-grid a.night-category-card,
  .night-category-grid a.night-category-card:link,
  .night-category-grid a.night-category-card:visited {

    display: grid;

    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;

    column-gap: 10px;

    align-items: center;

    text-align: left;

    padding: 14px 16px;

    min-height: 0;

    border-radius: 8px;

    text-decoration: none !important;
  }

  /* 左側アイコン */
  .night-category-card .category-icon {
    grid-column: 1;
    grid-row: 1 / 3;

    margin: 0;

    font-size: 22px;

    text-align: center;
  }

  /* タイトル */
  .night-category-card strong {
    grid-column: 2;

    font-size: 15px;
  }

  /* 説明 */
  .night-category-card small {
    grid-column: 2;

    margin-top: 2px;

    font-size: 11px;
  }

}
/* ヘッダー背景画像全体をHOMEリンクにする */
.header-in {
    position: relative;
}

.header-site-title {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10;
}

.header-site-title a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;

    /* タイトル文字だけ見えなくする */
    font-size: 0 !important;
    color: transparent !important;
}