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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* ヘッダー背景画像の表示範囲を調整 */
h1.logo {
  background-image: url('https://asia-traveler.asia/wp-content/uploads/2019/04/DSC_8577.jpg'); /* ここに画像のパスを入力 */
  background-position: center 240px; /* 画像の上部を240pxの位置に設定 */
  background-size: auto 130px; /* 画像の高さを100pxに設定 */
  height: 100px; /* ヘッダーの高さを100pxに設定 */
  width: 100%; /* 幅を設定 */
}

/* フッターのサイト名を非表示 */
.footer-bottom-logo .site-name-text {
  display: none !important;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  /*必要ならばここにコードを書く*/
}


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

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}
/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* ========================================
   プレビュー時のみサイドバー非表示・全幅表示
   ======================================== */
body.preview-full-width #sidebar {
    display: none;
}
body.preview-full-width .content-in {
    display: block;
}
body.preview-full-width #main {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    float: none;
}
body.preview-full-width .main {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    float: none;
}
body.preview-full-width .wrap {
    max-width: 100%;
    width: 100%;
}

/* ========================================
   カスタム検索フォーム
   ======================================== */
.custom-search-form-wrapper {
    margin-bottom: 15px;
}
.custom-search-form .search-input-row {
    display: flex;
    margin-bottom: 8px;
}
.custom-search-form .search-edit {
    flex: 1;
}
.search-category-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}
.search-category-select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 115, 170, 0.3);
}

/* ========================================
   検索結果ヘッダー
   ======================================== */
.search-results-header {
    background: #f0f6fc;
    border-left: 4px solid #0073aa;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}
.search-results-info {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #333;
}
.search-clear-filter {
    display: inline-block;
    font-size: 13px;
    color: #d63638;
    text-decoration: none;
    margin-top: 5px;
}
.search-clear-filter:hover {
    text-decoration: underline;
}

/* ========================================
   検索結果メタバッジ
   ======================================== */
.search-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}
.search-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    line-height: 1.5;
}
.search-badge-cat {
    background: #e8f0fe;
    color: #1a73e8;
    border: 1px solid #c5d9f7;
}
.search-badge-tag {
    background: #fef3e0;
    color: #e67e22;
    border: 1px solid #fad9a1;
}
.search-badge-more {
    background: #eee;
    color: #666;
    border: 1px solid #ddd;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .search-category-select {
        font-size: 13px;
        padding: 6px 8px;
    }
    .search-results-header {
        padding: 10px 15px;
    }
    .search-badge {
        font-size: 10px;
        padding: 1px 6px;
    }
}

/* ========================================
   タグ絞り込みフィルター（v2.1追加）
   ======================================== */
.search-tag-filter {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #d5e3f0;
}
.search-tag-filter-label {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #555;
    font-weight: bold;
}
.search-tag-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.search-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
    background: #fff;
    color: #e67e22;
    border: 1px solid #f0c27a;
    transition: all 0.15s ease;
    cursor: pointer;
}
.search-tag-pill:hover {
    background: #fef3e0;
    border-color: #e67e22;
    color: #d35400;
    text-decoration: none;
}
.search-tag-pill.active {
    background: #e67e22;
    color: #fff;
    border-color: #d35400;
}
.search-tag-pill.active:hover {
    background: #d35400;
    color: #fff;
}
.tag-pill-count {
    font-size: 10px;
    opacity: 0.7;
}
.tag-pill-count::before {
    content: "(";
}
.tag-pill-count::after {
    content: ")";
}
.tag-pill-remove {
    font-size: 14px;
    font-weight: bold;
    margin-left: 2px;
}
.search-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}
@media screen and (max-width: 768px) {
    .search-tag-pill {
        font-size: 11px;
        padding: 3px 8px;
    }
    .tag-pill-count {
        font-size: 9px;
    }
    .search-tag-filter-label {
        font-size: 12px;
    }
}

/* ========================================
   検索フォーム スマホ改善
   ======================================== */
.custom-search-form .search-submit {
    min-width: 44px;
    min-height: 44px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    flex-shrink: 0;
}
.custom-search-form .search-submit:hover {
    background: #005a87;
}
.search-full-submit-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    background: #4db8e8;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 0.5px;
}
.search-full-submit-btn:hover {
    background: #3a9fd4;
}
/* 虫眼鏡ボタン非表示・ドロップダウン全幅（全デバイス共通） */
.custom-search-form .search-submit {
    display: none;
}
.custom-search-form .search-category-row {
    display: block;
}


/* 検索中スピナー */
.search-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: search-spin 0.6s linear infinite;
    vertical-align: middle;
}
@keyframes search-spin {
    to { transform: rotate(360deg); }
}