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

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

/* ══════════════════════════════════════
   スライダー
══════════════════════════════════════ */
.hadih-slider-section { position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 30px; min-height: 220px; }
.hadih-slider-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hadih-slider-cards { position: relative; z-index: 1; width: 100%; min-height: 220px; }
.hadih-slide-panel { display: none; justify-content: flex-end; align-items: flex-start; gap: 16px; padding: 30px 20px; box-sizing: border-box; }
.hadih-slide-panel.hadih-panel-active { display: flex; }

.hadih-slide-card { background: #fff; border-radius: 10px; padding: 14px; width: 160px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.hadih-slide-card-img { width: 100%; height: 100px; overflow: hidden; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; }
.hadih-slide-card-img img { width: 100%; height: 100%; object-fit: cover; }
.hadih-slide-card-noimg { font-size: 0.75em; color: #aaa; }
.hadih-slide-card-word { font-size: 0.9em; font-weight: bold; color: #2c3e50; text-align: center; margin: 0; }
.hadih-slide-card-btn { background: #b0b0b0; color: #333; border: none; border-radius: 999px; padding: 5px 14px; font-size: 0.8em; cursor: pointer; }
.hadih-slide-card-btn:hover { background: #888; color: #fff; }

.hadih-slider-dots { position: relative; z-index: 1; text-align: center; padding: 8px 0; background: rgba(255,255,255,0.6); }
.hadih-slider-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ccc; margin: 0 4px; cursor: pointer; transition: background 0.2s; }
.hadih-slider-dot.hadih-dot-active { background: #4a90e2; }

/* ══════════════════════════════════════
   検索バー
══════════════════════════════════════ */
.hadih-search-box-wrap { position: relative; margin-bottom: 25px; }
.hadih-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 1em; pointer-events: none; }
.hadih-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; }
.hadih-search-box:focus { border-color: #4a90e2; box-shadow: 0 0 0 2px rgba(74,144,226,0.2); }

/* ══════════════════════════════════════
   カテゴリーブロック
══════════════════════════════════════ */
.hadih-category-block { margin-bottom: 20px; }
.hadih-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; }
.hadih-category-divider { border: 0; border-top: 3px double #ccc; margin: 30px 0; }

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

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

.hadih-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; }
.hadih-genre-header:hover { background: #f5f5f5; }

.hadih-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; }
.hadih-genre-section.hadih-open .hadih-genre-toggle-icon { transform: rotate(-45deg); margin-top: 5px; }

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

/* ══════════════════════════════════════
   商品カード
══════════════════════════════════════ */
.hadih-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; }
.hadih-card-left { flex: 2; min-width: 0; }
.hadih-card-right { flex: 1; max-width: 320px; width: 100%; padding: 15px; box-sizing: border-box; }
.hadih-term-item.hadih-no-right-content .hadih-card-left { flex: 1; }
.hadih-term-item.hadih-no-right-content .hadih-card-right { display: none !important; }

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

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

.hadih-term-rel { font-size: 0.9em; color: #555; }
.hadih-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; }
.hadih-rel-tag:hover { background-color: #e5e9ec; color: #2475d2; }

.hadih-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; }

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

.hadih-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; }
.hadih-articles-list { margin: 0; padding-left: 18px; }
.hadih-articles-list li { margin-bottom: 8px; font-size: 0.88em; line-height: 1.4; color: #333; }
.hadih-articles-link { color: #4a90e2; text-decoration: none; font-weight: 500; word-break: break-all; }
.hadih-articles-link:hover { text-decoration: underline; }

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

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