@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){
  /*必要ならばここにコードを書く*/
}

/* ==============================
   マップページ（固定ページID:50）
   上部の余白を詰める
============================== */

.page-id-50 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.page-id-50 .entry-content > .wp-block-group:first-child {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.page-id-50 .entry-content > .wp-block-group:first-child h2,
.page-id-50 .entry-content > .wp-block-group:first-child h3 {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

.page-id-50 .entry-content > .wp-block-group:first-child p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.page-id-50 .wp-block-columns {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

.page-id-50 .wp-block-column {
  margin-bottom: 0 !important;
}

.page-id-50 .wpgmza_map {
  margin-top: 0 !important;
}

@media screen and (max-width: 768px) {
  .page-id-50 .entry-content > .wp-block-group:first-child {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    margin-bottom: 4px !important;
  }

  .page-id-50 .wp-block-columns {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
  }

  .page-id-50 .entry-content {
    padding-bottom: 0 !important;
  }
}

/* マップページ：ヘッダー下の余白をさらに詰める */
.page-id-50 #content {
  padding-top: 10px !important;
}

.page-id-50 #main {
  padding-top: 0 !important;
}

.page-id-50 .article {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 本文最初のブロック上の余白 */
./* スマホ：タイトル下の余白を詰める */
  @media screen and (max-width: 768px) {

  .page-id-50 #content {
    padding-top: 0 !important;
  }

  .page-id-50 .article {
    margin-top: -20px !important;
    padding-top: 0 !important;
  }

  .page-id-50 .entry-title {
    margin-bottom: 0 !important;
  }

  .page-id-50 .entry-content {
    margin-top: 0 !important;
  }

}

  .page-id-50 .article {
    margin-top: -20px !important;
    padding-top: 0 !important;
  }


.page-id-50 .entry-content {
  margin-top: 0 !important;
}

/* タブレット・スマホ */
@media screen and (max-width: 1024px) {
  .page-id-50 #content {
    padding-top: 0 !important;
  }
}

/* タブレット：タイトル下の余白を詰める */
@media screen and (min-width: 769px) and (max-width: 1024px) {

  .page-id-50 #content {
    padding-top: 0 !important;
  }

  .page-id-50 .article {
    padding-top: 0 !important;
    margin-top: -30px !important;
  }

  .page-id-50 .entry-title {
    margin-bottom: 0 !important;
  }

  .page-id-50 .entry-content {
    margin-top: 0 !important;
  }

}

/* =========================
   テーマから探す
========================= */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 30px auto;
}

.theme-card {
  position: relative;
  min-height: 165px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: 0.2s;
}

.theme-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.theme-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.theme-card-inner {
  position: relative;
  z-index: 1;
  min-height: 165px;
  padding: 18px;
}

.theme-card img {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: rgba(255,255,255,0.88);
  border-radius: 50%;
  padding: 6px;
}

.theme-card span {
  position: absolute;
  left: 74px;
  bottom: 24px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* 各カテゴリの背景写真 */
.theme-flower {
  background-image: url("https://keshikicompass.jp/wp-content/uploads/2026/08/Z62_7542-scaled.jpeg");
}

.theme-sea {
  background-image: url("https://keshikicompass.jp/wp-content/uploads/2026/08/Z62_2894-scaled.jpeg");
}

.theme-mountain {
  background-image: url("https://keshikicompass.jp/wp-content/uploads/2026/08/Z62_0719-scaled.jpeg");
}

.theme-waterfall {
  background-image: url("https://keshikicompass.jp/wp-content/uploads/2026/08/Z62_3100-2-scaled.jpeg");
}

.theme-temple {
  background-image: url("https://keshikicompass.jp/wp-content/uploads/2026/08/Z62_7539-scaled.jpeg");
}

.theme-castle {
  background-image: url("https://keshikicompass.jp/wp-content/uploads/2026/08/Z62_9577-8-scaled.jpeg");
}

.theme-city {
  background-image: url("https://keshikicompass.jp/wp-content/uploads/2026/08/Z62_3766-scaled.jpeg");
}

.theme-animal {
  background-image: url("https://keshikicompass.jp/wp-content/uploads/2026/08/Z62_6220-scaled.jpeg");
}


/* タブレット */
@media screen and (max-width: 1024px) {
  .theme-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 18px;
  }

  .theme-card,
  .theme-card-inner {
    min-height: 135px;
  }

  .theme-card img {
    width: 44px;
    height: 44px;
  }

  .theme-card span {
    font-size: 19px;
  }
}


/* スマホ */
@media screen and (max-width: 768px) {

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 14px;
    margin: 20px auto;
  }

  .theme-card {
    min-height: 120px;
    border-radius: 14px;
  }

  .theme-card-inner {
    position: relative;
    min-height: 120px;
    padding: 12px;
  }

  .theme-card img {
    position: absolute;
    left: 12px;
    bottom: 12px;

    width: 34px;
    height: 34px;
    object-fit: contain;

    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    padding: 4px;
  }

  .theme-card span {
    position: absolute;
    left: 58px;
    bottom: 18px;

    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;

    white-space: nowrap;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  }

}