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

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

/* ========================================
 * CICO SEARCH トップページ
 * 記事用UIを非表示
 * ======================================== */

.home .sns-share { display: none; }
.home .sns-follow { display: none; }
.home .date-tags { display: none; }
.home .entry-title { display: none; }

/* ========================================
 * CICO SEARCH トップページ
 * ヒーロー
 * ======================================== */

.home .cico-home-hero {
  position: relative;
  overflow: hidden;
  margin: 0 auto 36px;
  padding: 56px 32px 48px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 15% 20%, rgba(168, 143, 158, 0.18) 0, rgba(168, 143, 158, 0) 34%),
    radial-gradient(circle at 85% 10%, rgba(101, 80, 111, 0.12) 0, rgba(101, 80, 111, 0) 30%),
    linear-gradient(135deg, #f6f1ea 0%, #ffffff 52%, #f7f0f4 100%);
}

.home .cico-home-hero::before,
.home .cico-home-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.home .cico-home-hero::before {
  width: 220px;
  height: 220px;
  left: -90px;
  bottom: -120px;
  background: rgba(168, 143, 158, 0.14);
}

.home .cico-home-hero::after {
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  background: rgba(101, 80, 111, 0.08);
}

.home .cico-home-hero > * {
  position: relative;
  z-index: 1;
}

.home .cico-home-hero-label {
  margin: 0 0 14px;
  color: #65506f;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.home .cico-home-hero-title {
  margin: 0;
  color: #2b211c;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.02em;
}

.home .cico-home-hero-description {
  max-width: 760px;
  margin: 22px auto 0;
  color: #4e4540;
  font-size: 1rem;
  line-height: 1.9;
}

.home .cico-home-hero-tags {
  gap: 10px 12px;
  margin-top: 26px;
}

.home .cico-home-hero-tags p {
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(101, 80, 111, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #65506f;
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
}

.home .cico-home-search-section {
  margin-top: 0;
}

.home .cico-home-about {
  max-width: 820px;
  margin: 44px auto 0;
}

.home .cico-home-about h2 {
  color: #2b211c;
}

/* ========================================
 * CICO SEARCH
 * 検索UI ブランドカラー
 * ======================================== */

/* 検索フォーム全体 */
.cico-search fieldset {
  border-color: rgba(201, 190, 179, 0.85);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(246, 241, 234, 0.68) 100%
    );
  box-shadow: 0 10px 28px rgba(43, 33, 28, 0.04);
}

.cico-search legend {
  color: #2b211c;
}

.cico-search-description {
  color: #716862;
}

/* タグボタン */
.cico-search-tag span {
  border-color: rgba(201, 190, 179, 0.88);
  background: rgba(255, 255, 255, 0.94);
  color: #3f3733;
  box-shadow: 0 2px 7px rgba(43, 33, 28, 0.025);
}

.cico-search-tag:hover span {
  border-color: #a88f9e;
  background: #f8f3f6;
  color: #65506f;
}

.cico-search-tag input[type="checkbox"]:checked + span {
  border-color: #65506f;
  background:
    linear-gradient(
      135deg,
      #65506f 0%,
      #7a5d79 100%
    );
  color: #fff;
  box-shadow: 0 6px 14px rgba(101, 80, 111, 0.18);
}

.cico-search-tag input[type="checkbox"]:focus-visible + span {
  outline: 3px solid rgba(168, 143, 158, 0.38);
  outline-offset: 3px;
}

/* 検索ボタン */
.cico-search fieldset button {
  background:
    linear-gradient(
      135deg,
      #2b211c 0%,
      #4b3630 100%
    );
  color: #fff;
  box-shadow: 0 8px 18px rgba(43, 33, 28, 0.14);
}

.cico-search fieldset button:hover {
  opacity: 1;
  background:
    linear-gradient(
      135deg,
      #3a2b25 0%,
      #65506f 100%
    );
  transform: translateY(-1px);
}

.cico-search fieldset button:active {
  transform: translateY(0);
}

/* 検索結果ヘッダー */
.cico-search-results-header h2 {
  color: #2b211c;
}

.cico-search-results-header p,
.cico-search-results-note {
  color: #716862;
}

/* 検索結果カード */
.cico-search-results > ul > li {
  border-color: rgba(201, 190, 179, 0.72);
  background: #fff;
  box-shadow: 0 3px 12px rgba(43, 33, 28, 0.03);
}

.cico-search-results > ul > li:hover {
  border-color: #a88f9e;
  box-shadow: 0 10px 24px rgba(101, 80, 111, 0.10);
}

.cico-search-results > ul > li > strong a {
  color: #2b211c;
}

/* 作品タグ */
.cico-work-tag {
  border-color: rgba(168, 143, 158, 0.38);
  background: #f8f3f6;
  color: #65506f;
}

/* 作品画像領域 */
.cico-search-result-image {
  background:
    linear-gradient(
      180deg,
      #fbf8f5 0%,
      #f7f1f4 100%
    );
}

/* 0件メッセージ */
.cico-search-empty,
.cico-search-message {
  border-color: rgba(201, 190, 179, 0.72);
  background: #faf7f4;
  color: #3f3733;
}

/* ページネーション */
.cico-search-pagination {
  justify-content: center;
  margin-top: 28px !important;
}

.cico-search-pagination-link {
  color: #65506f;
}

.cico-search-pagination-link:hover {
  color: #2b211c;
}

.cico-search-pagination-current {
  background: #65506f !important;
  color: #fff !important;
}

/* 作品詳細 */
.cico-work-detail-title,
.cico-work-detail-description > h2,
.cico-work-detail-digest > h2 {
  color: #2b211c;
}

.cico-work-detail-info {
  border-color: rgba(201, 190, 179, 0.72);
}

.cico-work-detail-tag {
  border-color: rgba(168, 143, 158, 0.38);
  background: #f8f3f6;
  color: #65506f;
}

.cico-work-affiliate-button {
  background:
    linear-gradient(
      135deg,
      #2b211c 0%,
      #4b3630 100%
    );
}

.cico-work-affiliate-button:hover {
  opacity: 1;
  background:
    linear-gradient(
      135deg,
      #3a2b25 0%,
      #65506f 100%
    );
}


/* ========================================
 * CICO SEARCH
 * 現在の検索条件・条件変更導線
 * ======================================== */

.cico-search-active-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(201, 190, 179, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      rgba(246, 241, 234, 0.92) 0%,
      rgba(248, 243, 246, 0.94) 100%
    );
}

.cico-search-active-filters-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  min-width: 0;
}

.cico-search-active-filters-label {
  color: #716862;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.cico-search-active-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cico-search-active-filter-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(168, 143, 158, 0.38);
  border-radius: 999px;
  background: #fff;
  color: #65506f;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

/*
 * PCでは「条件を変更」を右端に固定する。
 * 検索フォーム本体は固定せず、必要なときだけ上部へ戻れる導線とする。
 */
@media screen and (min-width: 835px) {

  .cico-search-change-filters {
    position: fixed;
    right: 22px;
    top: 50%;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid rgba(101, 80, 111, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #65506f;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(43, 33, 28, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) translateX(12px);
    transition:
      opacity 0.18s ease,
      visibility 0.18s ease,
      transform 0.18s ease,
      background-color 0.18s ease,
      border-color 0.18s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .cico-search-change-filters.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
  }

  .cico-search-change-filters::before {
    content: "⌕";
    margin-right: 7px;
    font-size: 1.05rem;
    line-height: 1;
  }

  .cico-search-change-filters:hover {
    border-color: #a88f9e;
    background: #f8f3f6;
    color: #2b211c;
    text-decoration: none;
  }
}


/* ========================================
 * CICO SEARCH
 * 検索条件パネル
 * PC: 右ドロワー / スマホ: ボトムシート
 * ======================================== */

body.cico-filter-panel-open {
  overflow: hidden;
}

.cico-search-filter-overlay[hidden] {
  display: none !important;
}

.cico-search-filter-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1998;
  background: rgba(43, 33, 28, 0.34);
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cico-search-filter-overlay.is-open {
  opacity: 1;
}

.cico-search-filter-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1999;
  display: flex;
  flex-direction: column;
  width: 92vw;
  max-width: 440px;
  height: 100vh;
  overflow: hidden;
  border-left: 1px solid rgba(201, 190, 179, 0.76);
  background: #fff;
  box-shadow: -16px 0 40px rgba(43, 33, 28, 0.16);
  transform: translateX(104%);
  transition: transform 0.22s ease;
}

.cico-search-filter-panel.is-open {
  transform: translateX(0);
}

.cico-search-filter-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(201, 190, 179, 0.65);
  background: linear-gradient(135deg, rgba(246, 241, 234, 0.96) 0%, rgba(248, 243, 246, 0.98) 100%);
}

.cico-search-filter-panel-kicker {
  display: block;
  margin-bottom: 4px;
  color: #65506f;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.cico-search-filter-panel-header h2 {
  margin: 0;
  color: #2b211c;
  font-size: 1.25rem;
  line-height: 1.35;
}

.cico-search-filter-panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(168, 143, 158, 0.35);
  border-radius: 50%;
  background: #fff;
  color: #65506f;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.cico-search-filter-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cico-search-filter-panel-form {
  margin: 0 !important;
}

.cico-search-filter-panel-form fieldset {
  margin: 0;
  box-shadow: none;
}

.cico-search-filter-panel-form .cico-search-tags {
  grid-template-columns: calc(50% - 5px) calc(50% - 5px);
  gap: 10px;
}

.cico-search-filter-panel-form .cico-search-tag span {
  min-height: 46px;
  padding: 8px 10px;
  font-size: 0.86rem;
}

.cico-search-filter-panel-form fieldset button {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 18px;
  box-shadow: 0 8px 18px rgba(43, 33, 28, 0.18);
}


/* ========================================
 * CICO SEARCH
 * 検索条件パネル UI仕上げ
 * ======================================== */

/*
 * Cocoonの見出し装飾をパネル見出しへ持ち込まない。
 */
.cico-search-filter-panel-header h2 {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/*
 * パネル内フォームは、公開検索フォームと同じブランドUIを
 * パネル専用セレクタで明示的に再適用する。
 */
.cico-search-filter-panel-form fieldset {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(201, 190, 179, 0.82);
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(246, 241, 234, 0.62) 100%
    );
}

.cico-search-filter-panel-form legend {
  padding: 0 8px;
  color: #2b211c;
  font-size: 0.98rem;
  font-weight: 700;
}

.cico-search-filter-panel-form .cico-search-description {
  margin: 4px 0 16px;
  color: #716862;
  font-size: 0.82rem;
  line-height: 1.65;
}

/*
 * タグ群。
 */
.cico-search-filter-panel-form .cico-search-tags {
  margin-bottom: 18px;
}

.cico-search-filter-panel-form .cico-search-tag span {
  border: 1px solid rgba(201, 190, 179, 0.92);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  color: #3f3733;
  box-shadow: none;
}

.cico-search-filter-panel-form .cico-search-tag:hover span {
  border-color: #a88f9e;
  background: #f8f3f6;
  color: #65506f;
}

.cico-search-filter-panel-form
.cico-search-tag input[type="checkbox"]:checked + span {
  border-color: #65506f;
  background:
    linear-gradient(
      135deg,
      #65506f 0%,
      #7a5d79 100%
    );
  color: #fff;
  box-shadow: 0 5px 12px rgba(101, 80, 111, 0.16);
}

/*
 * 再検索ボタン。
 * 元フォーム側の .cico-search fieldset button に依存せず、
 * パネル内でも必ずCICO SEARCHのブランドUIになるようにする。
 */
.cico-search-filter-panel-form fieldset button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 48px;
  margin: 6px 0 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background:
    linear-gradient(
      135deg,
      #2b211c 0%,
      #4b3630 100%
    );
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(43, 33, 28, 0.14);
}

.cico-search-filter-panel-form fieldset button:hover {
  background:
    linear-gradient(
      135deg,
      #3a2b25 0%,
      #65506f 100%
    );
}

.cico-search-filter-panel-form fieldset button:active {
  transform: translateY(1px);
}

/*
 * パネル内だけで完結するため、
 * Cocoonのページトップボタンが重なりにくい位置へ逃がす。
 */
body.cico-filter-panel-open .go-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/*
 * PCは「コンパクトな操作パネル」として見せる。
 */
@media screen and (min-width: 835px) {

  .cico-search-filter-panel {
    width: 90vw;
    max-width: 420px;
  }

  .cico-search-filter-panel-header {
    padding: 20px 20px 16px;
  }

  .cico-search-filter-panel-body {
    padding: 16px;
  }

  .cico-search-filter-panel-form fieldset {
    padding: 16px;
  }

  .cico-search-filter-panel-form .cico-search-tag span {
    min-height: 42px;
    padding: 7px 8px;
    font-size: 0.82rem;
  }
}


/* ========================================
 * CICO SEARCH
 * 検索完了トースト
 * ======================================== */

.cico-search-toast {
  position: fixed;
  top: 92px;
  right: 24px;
  z-index: 2100;
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100vw - 48px);
  max-width: 360px;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(168, 143, 158, 0.34);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(248,243,246,.98) 100%);
  color: #3f3733;
  box-shadow: 0 14px 34px rgba(43, 33, 28, 0.16);
  animation: cico-toast-in 0.24s ease both;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cico-search-toast.is-hiding {
  animation: cico-toast-out 0.22s ease both;
}

.cico-search-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #65506f;
  color: #fff;
  font-weight: 700;
}

.cico-search-toast-title {
  display: block;
  margin-bottom: 2px;
  color: #2b211c;
  font-size: 0.92rem;
  line-height: 1.35;
}

.cico-search-toast-message {
  display: block;
  color: #716862;
  font-size: 0.82rem;
  line-height: 1.45;
}

.cico-search-toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #716862;
  font-size: 1.2rem;
  cursor: pointer;
}

.cico-search-toast-close:hover {
  background: rgba(168, 143, 158, 0.12);
  color: #65506f;
}

@keyframes cico-toast-in {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cico-toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-8px) scale(.98); }
}


@keyframes cico-toast-in-mobile {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(14px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes cico-toast-out-mobile {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(14px) scale(.98);
  }
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

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

@media screen and (max-width: 834px){
  .home .cico-home-hero {
    margin-bottom: 28px;
    padding: 42px 24px 36px;
    border-radius: 16px;
  }

  .home .cico-home-hero-title {
    font-size: 2rem;
    line-height: 1.38;
  }

  .home .cico-home-hero-description {
    margin-top: 18px;
    font-size: 0.96rem;
    line-height: 1.8;
  }

  .home .cico-home-hero-tags {
    margin-top: 22px;
  }
}

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

  /*
   * スマホでは通知を画面下部へ表示する。
   *
   * ヘッダー直下はページ本文と視覚的に混ざりやすいため、
   * 下部へ移し、濃いブランドカラーで通知として明確に分離する。
   */
  .cico-search-toast {
    top: auto;
    right: auto;
    bottom: 24px;
    left: 50%;
    width: calc(100% - 28px);
    max-width: 420px;
    padding: 14px 12px 14px 14px;
    border-color: rgba(255, 255, 255, 0.12);
    background:
      linear-gradient(
        135deg,
        rgba(43, 33, 28, 0.98) 0%,
        rgba(101, 80, 111, 0.98) 100%
      );
    color: #fff;
    box-shadow: 0 14px 34px rgba(43, 33, 28, 0.28);
    animation: cico-toast-in-mobile 0.24s ease both;
  }

  .cico-search-toast-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
  }

  .cico-search-toast-title {
    color: #fff;
  }

  .cico-search-toast-message {
    color: rgba(255, 255, 255, 0.82);
  }

  .cico-search-toast-close {
    color: rgba(255, 255, 255, 0.78);
  }

  .cico-search-toast-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .cico-search-toast.is-hiding {
    animation: cico-toast-out-mobile 0.22s ease both;
  }


  .cico-search-filter-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 78vh;
    max-height: 720px;
    border-top: 1px solid rgba(201, 190, 179, 0.76);
    border-left: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -16px 40px rgba(43, 33, 28, 0.18);
    transform: translateY(104%);
  }

  .cico-search-filter-panel.is-open {
    transform: translateY(0);
  }

  .cico-search-filter-panel-header {
    position: relative;
    padding: 22px 18px 14px;
  }

  .cico-search-filter-panel-header::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(101, 80, 111, 0.28);
    transform: translateX(-50%);
  }

  .cico-search-filter-panel-body {
    padding: 12px 14px 18px;
    scroll-padding-top: 12px;
  }

  .cico-search-filter-panel-form fieldset {
    padding: 14px;
    border-radius: 12px;
  }

  .cico-search-filter-panel-form legend {
    font-size: 0.9rem;
  }

  .cico-search-filter-panel-form .cico-search-description {
    margin-bottom: 12px;
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .cico-search-filter-panel-form .cico-search-tags {
    grid-template-columns: calc(50% - 4px) calc(50% - 4px);
    gap: 8px;
  }

  .cico-search-filter-panel-form .cico-search-tag span {
    min-height: 42px;
    padding: 7px 8px;
    font-size: 0.8rem;
  }

  .cico-search-filter-panel-form fieldset button {
    position: sticky;
    bottom: 0;
    min-height: 50px;
    margin-top: 14px;
    border-radius: 999px;
    font-size: 0.9rem;
  }


  .home .entry-content {
    margin-top: 0;
  }

  .home .cico-home-hero {
    margin: 0 -4px 24px;
    padding: 30px 18px 28px;
    border-radius: 14px;
  }

  .home .cico-home-hero-label {
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .home .cico-home-hero-title {
    margin: 0;
    font-size: 1.85rem;
    line-height: 1.28;
    letter-spacing: 0;
  }

  .home .cico-home-hero-description {
    margin-top: 16px;
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .home .cico-home-hero-description br {
    display: none;
  }

  .home .cico-home-hero-tags {
    display: grid !important;
    grid-template-columns: 100%;
    gap: 8px;
    width: 100%;
    max-width: 280px;
    margin: 20px auto 0;
  }

  .home .cico-home-hero-tags p {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.84rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    box-sizing: border-box;
  }

  .home .cico-home-about {
    margin-top: 32px;
  }

  /* スマホではタグ選択時の影を少し弱める */
  .cico-search-tag input[type="checkbox"]:checked + span {
    box-shadow: 0 4px 10px rgba(101, 80, 111, 0.14);
  }

  .cico-search fieldset button {
    box-shadow: 0 6px 14px rgba(43, 33, 28, 0.12);
  }

  .cico-search-active-filters {
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .cico-search-active-filters-main {
    gap: 8px;
  }

  .cico-search-active-filters-label {
    width: 100%;
  }

  /*
   * スマホでは検索結果を見ながら、
   * いつでも条件変更へ戻れる固定ボタンを画面下部へ表示する。
   */
  .cico-search-change-filters {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 16px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 32px);
    max-width: 420px;
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid rgba(101, 80, 111, 0.28);
    border-radius: 999px;
    background:
      linear-gradient(
        135deg,
        rgba(43, 33, 28, 0.97) 0%,
        rgba(101, 80, 111, 0.97) 100%
      );
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 26px rgba(43, 33, 28, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px);
    transition:
      opacity 0.18s ease,
      visibility 0.18s ease,
      transform 0.18s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .cico-search-change-filters.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .cico-search-change-filters::before {
    content: "⌕";
    margin-right: 8px;
    font-size: 1.08rem;
    line-height: 1;
  }

  .cico-search-change-filters.is-visible:active {
    transform: translateX(-50%) translateY(1px);
  }

  /*
   * 固定ボタンで最下部コンテンツが隠れないよう余白を確保する。
   */
  .cico-search-results {
    padding-bottom: 78px;
  }
}
