/* ========================================
   user_css_sealstamp.css
   ユーザー閲覧画面スタイル（sealstamp- 接頭辞統一）
======================================== */

.sealstamp-user-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: sans-serif;
    color: #333;
}

/* ══════════════════════════════════════
   スライダー
══════════════════════════════════════ */
.sealstamp-slider-section { position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 30px; min-height: 220px; }
.sealstamp-slider-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.sealstamp-slider-text { position: relative; z-index: 1; min-height: 220px; display: flex; align-items: center; justify-content: center; padding: 30px 20px; box-sizing: border-box; }
.sealstamp-slider-text p { margin: 0; padding: 20px 30px; background: rgba(255,255,255,0.85); border-radius: 10px; color: #2c3e50; font-size: 1.15em; font-weight: bold; line-height: 1.6; text-align: center; }

/* ══════════════════════════════════════
   検索バー
══════════════════════════════════════ */
.sealstamp-search-box-wrap { position: relative; margin-bottom: 25px; }
.sealstamp-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 1em; pointer-events: none; }
.sealstamp-search-box { width: 100%; padding: 12px 12px 12px 42px; font-size: 1em; border: 1px solid #ccc; border-radius: 999px; box-sizing: border-box; outline: none; }
.sealstamp-search-box:focus { border-color: #4a90e2; box-shadow: 0 0 0 2px rgba(74,144,226,0.2); }

/* ══════════════════════════════════════
   カテゴリーブロック
══════════════════════════════════════ */
.sealstamp-category-block { margin-bottom: 20px; }
.sealstamp-category-main-title { font-size: 1.4em; color: #2c3e50; margin: 0 0 15px 0; padding-left: 5px; border-left: 5px solid #2c3e50; line-height: 1.2; }
.sealstamp-category-divider { border: 0; border-top: 3px double #ccc; margin: 30px 0; }

/* ══════════════════════════════════════
   アコーディオングリッド
══════════════════════════════════════ */
.sealstamp-accordion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; align-items: start; }

.sealstamp-genre-section { border: 1px solid #ddd; border-radius: 12px; overflow: hidden; background: #fff; }
.sealstamp-genre-section.sealstamp-open { grid-column: 1 / -1; }

.sealstamp-genre-header { padding: 15px 20px; font-size: 1.05em; font-weight: bold; color: #2c3e50; background: #fff; border: 1px solid #ccc; cursor: pointer; display: flex; align-items: center; justify-content: space-between; user-select: none; transition: background 0.15s ease; }
.sealstamp-genre-header:hover { background: #f5f5f5; }

.sealstamp-genre-toggle-icon { display: inline-block; width: 10px; height: 10px; border-top: 2px solid #2c3e50; border-right: 2px solid #2c3e50; transform: rotate(135deg); transition: transform 0.2s ease; margin-right: 5px; }
.sealstamp-genre-section.sealstamp-open .sealstamp-genre-toggle-icon { transform: rotate(-45deg); margin-top: 5px; }

.sealstamp-genre-content { display: none; padding: 20px 20px 5px 20px; background: #fff; border-top: 1px solid #eee; }
.sealstamp-genre-section.sealstamp-open .sealstamp-genre-content { display: block; }

/* ══════════════════════════════════════
   商品カード
══════════════════════════════════════ */
.sealstamp-term-item { padding: 20px; border: 1px solid #eee; border-radius: 6px; background: #fff; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; }
.sealstamp-card-left { flex: 2; min-width: 0; }
.sealstamp-card-right { flex: 1; max-width: 320px; width: 100%; padding: 15px; box-sizing: border-box; }
.sealstamp-term-item.sealstamp-no-right-content .sealstamp-card-left { flex: 1; }
.sealstamp-term-item.sealstamp-no-right-content .sealstamp-card-right { display: none !important; }

.sealstamp-term-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.sealstamp-term-genre { color: white; padding: 3px 10px; border-radius: 4px; font-size: 0.8em; font-weight: bold; }
.sealstamp-title-wrap { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.sealstamp-term-title { font-size: 1.3em; font-weight: bold; margin: 0; color: #232323; line-height: 1.2; }
.sealstamp-term-yomi { font-size: 0.85em; color: #666; }
.sealstamp-tag-100yen-text { color: #555555; font-size: 0.82em; font-weight: normal; margin-left: 6px; display: inline-block; user-select: none; }

.sealstamp-term-desc { margin: 0; line-height: 1.6; color: #333; font-size: 0.95em; }
.sealstamp-line { border: 0; border-top: 1px solid #eee; margin: 12px 0; }

.sealstamp-term-rel { font-size: 0.9em; color: #555; }
.sealstamp-rel-tag { display: inline-block; background: #f0f0f0; border: 1px solid #ddd; border-radius: 4px; padding: 2px 8px; margin-right: 5px; font-size: 0.85em; color: #4a90e2; font-weight: bold; cursor: pointer; user-select: none; }
.sealstamp-rel-tag:hover { background-color: #e5e9ec; color: #2475d2; }

.sealstamp-term-note { padding: 12px 15px; background: #fff5f5; border-left: 4px solid #ff7675; border-radius: 0 4px 4px 0; color: #c0392b; font-size: 0.9em; line-height: 1.5; }

.sealstamp-card-image-wrapper { width: 100%; margin-bottom: 15px; border-radius: 4px; overflow: hidden; border: 1px solid #eee; display: flex; }
.sealstamp-card-image { width: 100%; height: auto; object-fit: cover; max-height: 180px; }

.sealstamp-articles-title { font-size: 0.95em; font-weight: bold; color: #2c3e50; margin: 0 0 10px 0; display: flex; align-items: center; gap: 5px; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.sealstamp-articles-list { margin: 0; padding-left: 18px; }
.sealstamp-articles-list li { margin-bottom: 8px; font-size: 0.88em; line-height: 1.4; color: #333; }
.sealstamp-articles-link { color: #4a90e2; text-decoration: none; font-weight: 500; word-break: break-all; }
.sealstamp-articles-link:hover { text-decoration: underline; }

.sealstamp-hidden { display: none !important; }

/* ══════════════════════════════════════
   レスポンシブ
══════════════════════════════════════ */
@media (max-width: 768px) {
    .sealstamp-accordion-grid { grid-template-columns: 1fr; }
    .sealstamp-term-item { flex-direction: column; gap: 15px; }
    .sealstamp-card-right { max-width: 100%; }
}
@media (max-width: 600px) {
    .sealstamp-accordion-grid { grid-template-columns: 1fr; }
}
