/* ==========================
   TOPページ専用スタイル - High Density & Mobile First
   ========================== */

.top-container {
    width: 100%;
    overflow-x: hidden;
    background-color: #fafafa;
}

/* ==========================
   ヒーローセクション
   ========================== */
.hero-section {
    position: relative;
    /* ヘッダーの高さ分を考慮しつつ、スマホファーストで上部に詰める */
    padding: 3rem 1.5rem 4rem; 
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fdfdfd;
    overflow: hidden;
    /* min-heightは廃止 */
}

/* 背景装飾 */
.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); /* ぼかしを柔らかく */
    opacity: 0.4;
    animation: pulse 10s infinite alternate;
}

.hero-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ffdde1, transparent);
    top: -50px;
    left: -50px;
}

.hero-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #fceeff, transparent);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.5; }
}

.hero-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem; /* 要素間の隙間を適度に */
}

/* ヒーローコンテンツ（タイトル等） */
.hero-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: 'Playfair Display', 'Noto Sans JP', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    line-height: 1.25;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.hero-title span {
    display: inline-block;
}

.hero-title-highlight {
    background: linear-gradient(135deg, #d63384 0%, #ff8da1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-subtitle {
    font-size: 1rem;
    color: #777;
    margin: 0 0 1.5rem 0;
    font-weight: 500;
}

/* ==========================
   検索タブ切り替え
   ========================== */
.search-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.25rem;
    border-radius: 12px;
    width: 100%;
    max-width: 550px;
}

.search-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex: 1;
}

.search-tab svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.search-tab:hover {
    color: #555;
    background: rgba(255, 255, 255, 0.5);
}

.search-tab--active {
    background: #fff;
    color: #d63384;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-tab--active svg {
    color: #d63384;
}

/* 検索パネル表示/非表示 */
.search-panel {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.search-panel--active {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ==========================
   検索フォーム (New Structure)
   ========================== */
.search-form {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

/* 検索入力欄 */
.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.search-input-wrapper:focus-within {
    border-color: #d63384;
    box-shadow: 0 8px 30px rgba(214, 51, 132, 0.15);
    transform: translateY(-2px);
    z-index: 10;
}

.search-icon {
    color: #bbb;
    margin-left: 0.75rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.search-wrapper:focus-within .search-icon {
    color: #d63384;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
    background: transparent;
    padding: 0.5rem 0;
    min-width: 0; /* Flexboxの子要素がはみ出さないように */
}

.search-input::placeholder {
    color: #ccc;
    font-size: 0.95rem;
}

.search-button {
    background: #222;
    color: #fff;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    white-space: nowrap; /* 重要：文字の折り返しを禁止 */
    flex-shrink: 0;     /* 重要：ボタン幅の縮小を禁止 */
    transition: background 0.2s, transform 0.2s;
    margin-left: 0.5rem;
}

.search-button:hover {
    background: #000;
    transform: translateY(-1px);
}

.search-button .button-arrow {
    transition: transform 0.2s;
}

.search-button:hover .button-arrow {
    transform: translateX(3px);
}

/* ==========================
   ブラウズセクション (High Density Cards)
   ========================== */
.browse-section {
    width: 100%;
    max-width: 550px; /* 検索窓と同じ幅 */
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.browse-label {
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 0.75rem;
    font-weight: 600;
    display: none; /* スマホファーストで高さを稼ぐためデフォルト非表示でも良い */
}

/* グリッドレイアウト */
.discovery-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 常に2列で横並び */
    gap: 1rem;
}

.discovery-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-decoration: none;
    display: flex;
    flex-direction: column; /* アイコン上、テキスト下 */
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
}

.discovery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: rgba(214, 51, 132, 0.2);
}

.card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
    flex-shrink: 0;
}

.discovery-card-category:hover .card-icon-wrapper {
    background: #fff0f5;
    color: #d63384;
}

.discovery-card-ingredient:hover .card-icon-wrapper {
    background: #fdf2f8;
    color: #be185d;
}

.card-text {
    width: 100%;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.25rem 0;
}

.card-description {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
}

.card-arrow {
    display: none; /* シンプルにするため削除 */
}

/* ==========================
   レスポンシブ (スマホ最適化)
   ========================== */
@media (max-width: 768px) {
    /* ヒーローセクションをコンパクトに */
    .hero-section {
        padding: 2.5rem 1rem 3rem; /* 上部パディングを調整して高さを抑える */
    }

    .hero-wrapper {
        gap: 1.5rem; /* 間隔を詰める */
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    /* 検索フォーム */
    .search-wrapper {
        padding: 0.4rem; /* 少しコンパクトに */
    }

    .search-input {
        font-size: 0.9rem;
    }

    .search-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* カード */
    .discovery-cards-container {
        gap: 0.75rem; 
    }
    
    .discovery-card {
        padding: 1rem 0.5rem;
        gap: 0.5rem;
    }
    
    .card-icon-wrapper {
        width: 42px;
        height: 42px;
    }

    .card-icon {
        width: 20px;
        height: 20px;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    /* モバイルでは検索タブのアイコンを非表示にして文字だけに */
    .search-tab svg {
        display: none;
    }
    
    .search-tab {
        padding: 0.65rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================
   トップページ用 詳細フィルター
   ========================== */
.top-filter-section {
    width: 100%;
}

.top-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px dashed rgba(214, 51, 132, 0.3);
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.25s ease;
}

.top-filter-toggle:hover {
    background: linear-gradient(135deg, #fff0f5 0%, #fff 100%);
    border-color: #d63384;
    color: #d63384;
    border-style: solid;
}

.top-filter-toggle svg:first-child {
    color: #d63384;
}

.filter-toggle-text {
    flex: 1;
    text-align: left;
}

.top-filter-toggle .toggle-arrow {
    transition: transform 0.25s ease;
    color: #999;
}

.top-filter-section.is-open .top-filter-toggle .toggle-arrow {
    transform: rotate(180deg);
    color: #d63384;
}

.top-filter-section.is-open .top-filter-toggle {
    background: linear-gradient(135deg, #fff0f5 0%, #fff 100%);
    border-color: #d63384;
    border-style: solid;
    color: #d63384;
}

.top-filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
    opacity: 0;
    margin-top: 0;
}

.top-filter-section.is-open .top-filter-content {
    max-height: 350px;
    opacity: 1;
    margin-top: 0.75rem;
}

.top-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem 0.5rem 0.5rem;
    background: white;
    border-radius: 16px;
    margin-top: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 480px) {
    .top-filter-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 1rem;
    }
}

.top-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.top-filter-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 0.25rem;
}

.top-filter-select,
.top-filter-input {
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #fafafa;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

/* select要素専用のスタイル */
.top-filter-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    padding-right: 2rem;
}

/* option要素のスタイル（視認性向上） */
.top-filter-select option {
    padding: 0.5rem;
    background: white;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* input要素専用のスタイル */
.top-filter-input {
    cursor: text;
}

.top-filter-input::placeholder {
    color: #bbb;
    font-size: 0.8rem;
}

.top-filter-select:hover,
.top-filter-input:hover {
    border-color: #d63384;
    background-color: white;
}

.top-filter-select:focus,
.top-filter-input:focus {
    outline: none;
    border-color: #d63384;
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1);
    background-color: white;
}

/* 含まない成分フィルター */
.exclude-ingredients-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.exclude-ingredients-toggle:hover {
    border-color: #d63384;
    color: #d63384;
}

.exclude-ingredients-toggle .toggle-arrow {
    transition: transform 0.2s ease;
}

.top-filter-group.is-open .exclude-ingredients-toggle .toggle-arrow {
    transform: rotate(180deg);
}

.top-filter-group.is-open .exclude-ingredients-toggle {
    border-color: #d63384;
    color: #d63384;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.exclude-ingredients-content {
    display: none;
    background: #fff;
    border: 1.5px solid #d63384;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.top-filter-group.is-open .exclude-ingredients-content {
    display: block;
}

.exclude-ingredients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .exclude-ingredients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.exclude-ingredient-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
    background: #f8f8f8;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #555;
    cursor: pointer;
    transition: all 0.15s ease;
}

.exclude-ingredient-item:hover {
    background: #fff0f5;
    color: #d63384;
}

.exclude-ingredient-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #d63384;
    cursor: pointer;
}

.exclude-ingredient-item input[type="checkbox"]:checked + span {
    color: #d63384;
    font-weight: 500;
}

/* 検索送信ボタン */
.search-submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #222 0%, #333 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.search-submit-button:hover {
    background: linear-gradient(135deg, #000 0%, #222 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.search-submit-button svg {
    flex-shrink: 0;
}

/* フィルターリセットボタン */
.filter-reset-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    color: #666;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.filter-reset-button:hover {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-color: #d63384;
    color: #d63384;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.1);
}

.filter-reset-button svg {
    flex-shrink: 0;
}

/* ボタングループ */
.filter-button-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.25rem;
}

/* モバイル調整 */
@media (max-width: 480px) {
    .top-filter-toggle {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .top-filter-grid {
        gap: 0.75rem;
        /* スマホでは2列グリッド（メーカーは全幅、テーマとカテゴリーは横並び） */
        grid-template-columns: 1fr 1fr;
    }
    
    /* メーカーを全幅にする */
    .top-filter-group--full {
        grid-column: 1 / -1;
    }
    
    .top-filter-select {
        padding: 0.75rem 2.5rem 0.75rem 0.875rem;
        font-size: 0.9rem;
        min-height: 44px; /* タップしやすい高さを確保 */
    }
    
    .search-submit-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .search-input-wrapper {
        padding: 0.625rem 0.875rem;
    }
}

/* ==========================
   悩み別成分検索モーダル & トリガー
   ========================== */

/* トリガーボタンエリア */
.concern-search-trigger-section {
    width: 100%;
    max-width: 550px;
    margin-top: 2rem;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

.concern-search-trigger {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.concern-search-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #d63384, #ff8da1);
    opacity: 0.8;
}

.concern-search-trigger:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: rgba(214, 51, 132, 0.2);
}

.trigger-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff0f5;
    color: #d63384;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trigger-content {
    flex: 1;
}

.trigger-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.trigger-description {
    display: block;
    font-size: 0.8rem;
    color: #888;
}

.trigger-arrow {
    color: #ccc;
    font-weight: bold;
    transition: transform 0.3s;
}

.concern-search-trigger:hover .trigger-arrow {
    transform: translateX(4px);
    color: #d63384;
}

/* モーダル */
.concern-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.concern-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.concern-modal-container {
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.concern-modal-content {
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
    width: 100%;
    padding: 0;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.concern-modal-overlay.is-open .concern-modal-content {
    transform: scale(1) translateY(0);
}

.concern-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.05);
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    z-index: 10;
}

.concern-modal-close:hover {
    background: #d63384;
    color: #fff;
    transform: rotate(90deg);
}

/* モーダル内コンテンツ */
.concern-section-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #222;
    margin: 2rem 0 0.5rem;
    font-family: 'Playfair Display', 'Noto Sans JP', serif;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.concern-section-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    padding: 0 1rem;
}

.concern-search-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.concern-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 2rem 2rem;
}

/* カテゴリーグリッド */
.concern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* カテゴリーカード共通 */
.concern-group {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.concern-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: height 0.3s ease;
}

.concern-group:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* カテゴリー別カラー */
.concern-group--aging::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.concern-group--aging:hover { border-color: rgba(245, 158, 11, 0.3); }
.concern-group--aging .concern-icon-svg { background: #fef3c7; color: #d97706; }

.concern-group--acne::before { background: linear-gradient(90deg, #10b981, #34d399); }
.concern-group--acne:hover { border-color: rgba(16, 185, 129, 0.3); }
.concern-group--acne .concern-icon-svg { background: #d1fae5; color: #059669; }

.concern-group--whitening::before { background: linear-gradient(90deg, #ec4899, #f472b6); }
.concern-group--whitening:hover { border-color: rgba(236, 72, 153, 0.3); }
.concern-group--whitening .concern-icon-svg { background: #fce7f3; color: #db2777; }

.concern-group--hydration::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.concern-group--hydration:hover { border-color: rgba(59, 130, 246, 0.3); }
.concern-group--hydration .concern-icon-svg { background: #dbeafe; color: #2563eb; }

.concern-group--pores::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.concern-group--pores:hover { border-color: rgba(139, 92, 246, 0.3); }
.concern-group--pores .concern-icon-svg { background: #ede9fe; color: #7c3aed; }

.concern-group--sensitive::before { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.concern-group--sensitive:hover { border-color: rgba(244, 63, 94, 0.3); }
.concern-group--sensitive .concern-icon-svg { background: #ffe4e6; color: #e11d48; }

/* カテゴリータイトル */
.concern-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.concern-icon-svg {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 成分タグ（チップ形式） */
.concern-ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.concern-tag {
    position: relative;
    cursor: pointer;
}

.concern-tag input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.concern-tag-text {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    background: #f5f5f5;
    border: 1.5px solid #e8e8e8;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #555;
    transition: all 0.2s ease;
    font-weight: 500;
}

.concern-tag:hover .concern-tag-text {
    background: #fff;
    border-color: #d63384;
    color: #d63384;
}

.concern-tag input:checked + .concern-tag-text {
    background: linear-gradient(135deg, #d63384 0%, #ff8da1 100%);
    border-color: #d63384;
    color: #fff;
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.3);
    transform: scale(1.05);
}

/* 選択中成分表示エリア */
.concern-selection-area {
    flex-shrink: 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 1rem 2rem;
}

.concern-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.concern-selection-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.concern-clear-all {
    background: none;
    border: none;
    font-size: 0.75rem;
    color: #d63384;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.concern-clear-all:hover {
    background: rgba(214, 51, 132, 0.1);
}

.concern-selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 36px;
    align-items: center;
}

.concern-no-selection {
    font-size: 0.85rem;
    color: #aaa;
    font-style: italic;
}

.concern-selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, #d63384 0%, #ff8da1 100%);
    color: #fff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    animation: tagAppear 0.25s ease;
}

@keyframes tagAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.concern-remove-tag {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.concern-remove-tag:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

/* フッター・送信ボタン */
.concern-modal-footer {
    flex-shrink: 0;
    background: #fff;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.concern-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    max-width: 420px;
    padding: 1.1rem 1.5rem;
    background: linear-gradient(135deg, #222 0%, #333 100%);
    color: white;
    border: none;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.concern-search-submit:not(:disabled):hover {
    background: linear-gradient(135deg, #000 0%, #222 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.concern-search-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.concern-submit-text {
    white-space: nowrap;
}

/* スマホ対応 */
@media (max-width: 900px) {
    .concern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .concern-search-trigger-section {
        margin-top: 1.5rem;
    }

    .trigger-content {
        text-align: left;
    }

    .concern-modal-content {
        border-radius: 20px;
        max-height: 88vh;
    }
    
    .concern-modal-body {
        padding: 0 1rem 1.5rem;
    }

    .concern-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .concern-group {
        padding: 1rem;
    }
    
    .concern-section-title {
        font-size: 1.3rem;
        padding-right: 2.5rem;
        margin-top: 1.5rem;
    }
    
    .concern-section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .concern-modal-close {
        width: 36px;
        height: 36px;
        top: 1rem;
        right: 1rem;
    }
    
    .concern-selection-area {
        padding: 0.75rem 1rem;
    }
    
    .concern-modal-footer {
        padding: 1rem;
    }
    
    .concern-search-submit {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .concern-tag-text {
        padding: 0.45rem 0.8rem;
        font-size: 0.75rem;
    }
}

