@charset "UTF-8";

/* =========================================
   2. レイアウト (ヘッダー・エリア枠)
   ========================================= */

/* --- ヘッダー (コンパクト版) --- */
header {
    background: linear-gradient(150deg, #FF5E62 0%, #FF385C 100%);
    padding: 20px 15px; /* コンパクト化適用済み */
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px; /* コンパクト化適用済み */
    box-shadow: 0 4px 20px rgba(255, 56, 92, 0.25);
}

header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.6;
    pointer-events: none;
}

header h1 {
    margin: 0;
    font-size: 1.5rem; /* コンパクト化適用済み */
    font-weight: 800;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    line-height: 1.3;
}

header p {
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.95;
    position: relative;
}

/* --- 検索フィルター枠 --- */
#filter-container {
    background: #fff;
    padding: 12px 15px; /* コンパクト化適用済み */
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.filter-group {
    margin-bottom: 10px; /* コンパクト化適用済み */
}

.filter-group h4 {
    font-size: 0.8rem; /* コンパクト化適用済み */
    color: var(--text-main);
    margin-bottom: 6px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 4px; /* コンパクト化適用済み */
}

/* --- 結果一覧グリッド --- */
#result-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    padding-bottom: 80px;
}

/* --- スマホ・レイアウト調整 --- */
@media screen and (max-width: 768px) {
    header {
        padding: 15px 10px;
    }
    header h1 {
        font-size: 1.4rem;
    }
    header p {
        font-size: 0.75rem;
        margin-top: 4px;
    }

    .header-logo {
        width: 66%;       /* 幅を2/3に */
        max-width: 250px; /* 念のため最大幅も制限 */
        height: auto;     /* 縦横比維持 */
        margin: 0 auto;   /* 中央寄せ */
    }
         
    #filter-container {
        padding: 10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
     
    #result-container {
        gap: 15px; /* スマホ用に間隔を詰める */
    }
}

/* =========================================
   【修正版】トップへ戻るボタン (Pop & Rich Ver.)
   ========================================= */
#scrollToTopBtn {
    position: fixed;
    bottom: 25px; /* 少し浮かせる */
    right: 25px;
    width: 56px; /* 少し大きく */
    height: 56px;
    
    /* --- ポップなデザイン変更点 --- */
    /* ヘッダーと同じグラデーションを採用 */
    background: linear-gradient(135deg, #FF5E62 0%, #FF385C 100%);
    color: #fff;
    
    /* ぼんやり光る影をつけて浮遊感を出す */
    box-shadow: 0 4px 15px rgba(255, 56, 92, 0.4);
    
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    
    /* アニメーション設定 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8); /* 出現前は少し下に置いて小さく */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* バネのような動き */
    
    display: flex;
    align-items: center;
    justify-content: center;
}

/* アイコンを少し太く大きく */
#scrollToTopBtn svg {
    width: 28px;
    height: 28px;
    stroke-width: 3px; /* 線を太くしてポップに */
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* 表示クラス（フワッと飛び出す） */
#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ホバー時（さらに浮き上がり、光が強くなる） */
#scrollToTopBtn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 56, 92, 0.6);
    background: linear-gradient(135deg, #ff7eb3 0%, #ff758c 100%); /* 少し明るく */
}

/* クリック時（沈み込む演出） */
#scrollToTopBtn:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 10px rgba(255, 56, 92, 0.3);
}

/* =========================================
   3. 免責・広告表記エリア (追加)
   ========================================= */
.site-notice-wrapper {
    max-width: 1000px;       /* フィルター枠と幅を合わせる */
    margin: 0 auto 10px auto;/* 中央寄せ & 下に少し余白 */
    padding: 0 15px;         /* 左右の余白 */
    text-align: right;       /* ★ここで右寄せにする */
    box-sizing: border-box;
}

.site-notice-text {
    display: inline-block;   /* 文字の分だけ背景を持たせるため */
    font-size: 11px;         /* 控えめなサイズ */
    color: #999;             /* 薄いグレー */
    line-height: 1.4;        /* 行間を少し狭く */
    margin: 0;
    text-align: right;
}

/* スマホ表示時の微調整 */
@media screen and (max-width: 768px) {
    .site-notice-wrapper {
        margin-bottom: 5px;
        padding: 0 10px;
    }
    .site-notice-text {
        font-size: 10px;     /* スマホではさらに小さく */
        transform-origin: right center;
        transform: scale(0.9); /* CSSピクセル限界より小さく見せるテクニック */
    }
}