/* ============================================
   人権ライブラリー カスタムCSS
   EC-CUBE 4.3 用
   
   設置場所: html/user_data/assets/css/human_rights.css
   ============================================ */

/* --- CSS変数（色やフォントをここで一括管理） --- */
:root {
  --hr-primary: #1B4332;
  --hr-primary-light: #2D6A4F;
  --hr-accent: #D4A373;
  --hr-accent-warm: #E09F3E;
  --hr-bg: #FAFAF5;
  --hr-bg-warm: #F5F0E8;
  --hr-bg-card: #FFFFFF;
  --hr-text: #2C2C2C;
  --hr-text-light: #6B6B6B;
  --hr-border: #E0DDD5;
  --hr-tag-lecture: #1B4332;
  --hr-tag-book: #7B2D26;
  --hr-tag-monthly: #2E4057;
  --hr-radius: 6px;
  --hr-radius-lg: 12px;
  --hr-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --hr-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --hr-shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
}

/* --- Google Fonts 読み込み --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;600;700&display=swap');

/* ============================================
   カスタムヘッダー
   ============================================ */
.hr-header {
  background: var(--hr-primary) !important;
  color: #fff !important;
}
.hr-header-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 14px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}
.hr-site-logo a {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-decoration: none !important;
  letter-spacing: 0.04em !important;
  line-height: 1.5 !important;
}
.hr-site-logo a small {
  display: block !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.08em !important;
  opacity: 0.75 !important;
  margin-top: 2px !important;
}
.hr-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  font-size: 0.85rem !important;
}
.hr-header-actions a {
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.hr-header-actions a:hover {
  color: #fff !important;
}
.hr-nav {
  background: var(--hr-primary-light) !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
}
.hr-nav-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: flex !important;
  gap: 0 !important;
  overflow-x: auto !important;
}
.hr-nav-inner a {
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 12px 20px !important;
  white-space: nowrap !important;
  transition: color 0.2s, background 0.2s;
}
.hr-nav-inner a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.08) !important;
}

/* ============================================
   ヒーローセクション
   ============================================ */
.hr-hero {
  background: linear-gradient(135deg, var(--hr-primary) 0%, var(--hr-primary-light) 60%, #40916C 100%);
  color: #fff;
  padding: 48px 24px 40px;
  position: relative;
  overflow: hidden;
}
.hr-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,163,115,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hr-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hr-hero h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: #fff;
}
.hr-hero p {
  font-size: 0.92rem;
  opacity: 0.85;
  max-width: 600px;
  line-height: 1.9;
}

/* ============================================
   セクション共通
   ============================================ */
.hr-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 8px;
}
.hr-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.hr-section-header h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hr-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hr-section-header h2 .hr-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.hr-section-header .hr-view-all {
  font-size: 0.82rem;
  color: var(--hr-primary-light);
  text-decoration: none;
  font-weight: 500;
}
.hr-section-header .hr-view-all:hover {
  color: var(--hr-primary);
  text-decoration: underline;
}
.hr-section-divider {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 24px;
}
.hr-section-divider hr {
  border: none;
  height: 1px;
  background: var(--hr-border);
}

/* ============================================
   商品カードグリッド（講演・講座 / 書籍 共通）
   ============================================ */
.hr-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hr-product-card {
  background: var(--hr-bg-card);
  border-radius: var(--hr-radius-lg);
  overflow: hidden;
  border: 1px solid var(--hr-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.hr-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hr-shadow-lg);
  text-decoration: none;
  color: inherit;
}

/* --- サムネイル --- */
.hr-product-card .hr-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.hr-product-card .hr-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 画像がない場合のプレースホルダー */
.hr-product-card .hr-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.85rem;
  color: #fff;
  text-align: center;
  padding: 16px;
  line-height: 1.6;
}
.hr-thumb-lecture { background: linear-gradient(135deg, #1B4332, #40916C); }
.hr-thumb-book { background: linear-gradient(135deg, #7B2D26, #C1666B); }
.hr-thumb-monthly { background: linear-gradient(135deg, #2E4057, #4A7C9B); }

/* --- タグ（カテゴリラベル） --- */
.hr-product-card .hr-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  z-index: 2;
}
.hr-tag-lecture { background: var(--hr-tag-lecture); }
.hr-tag-book { background: var(--hr-tag-book); }
.hr-tag-monthly { background: var(--hr-tag-monthly); }

/* --- カード本文 --- */
.hr-product-card .hr-card-body {
  padding: 14px 16px 18px;
}
.hr-product-card .hr-card-category {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--hr-text-light);
  margin-bottom: 4px;
}
.hr-product-card .hr-card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--hr-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hr-product-card .hr-card-meta {
  font-size: 0.78rem;
  color: var(--hr-text-light);
  margin-bottom: 10px;
}
.hr-product-card .hr-card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hr-primary);
}
.hr-product-card .hr-card-price small {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--hr-text-light);
}

/* ============================================
   月刊ヒューマンライツ 最新号（フィーチャー表示）
   ============================================ */
.hr-featured-monthly {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--hr-bg-card);
  border-radius: var(--hr-radius-lg);
  border: 1px solid var(--hr-border);
  overflow: hidden;
  margin-bottom: 20px;
  transition: box-shadow 0.3s;
}
.hr-featured-monthly:hover {
  box-shadow: var(--hr-shadow-md);
}
.hr-featured-thumb {
  background: linear-gradient(135deg, #2E4057, #4A7C9B);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: #fff;
  text-align: center;
  position: relative;
  min-height: 260px;
}
.hr-featured-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.hr-featured-thumb .hr-issue-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
}
.hr-featured-thumb h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #fff;
}
.hr-featured-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hr-featured-body .hr-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--hr-tag-monthly);
  color: #fff;
  margin-bottom: 12px;
  align-self: flex-start;
}
.hr-featured-body h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 10px;
}
.hr-featured-body p {
  font-size: 0.85rem;
  color: var(--hr-text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}
.hr-featured-body .hr-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hr-featured-body .hr-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hr-primary);
}
.hr-featured-body .hr-price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--hr-text-light);
}

/* --- カートボタン --- */
.hr-btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--hr-primary);
  color: #fff;
  border: none;
  border-radius: var(--hr-radius);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.hr-btn-cart:hover {
  background: var(--hr-primary-light);
  transform: scale(1.02);
  color: #fff;
  text-decoration: none;
}

/* ============================================
   月刊ヒューマンライツ バックナンバーグリッド
   ============================================ */
.hr-issues-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hr-issue-card {
  background: var(--hr-bg-card);
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.hr-issue-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hr-shadow-md);
  text-decoration: none;
  color: inherit;
}
.hr-issue-card .hr-issue-thumb {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #2E4057, #4A7C9B);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.5;
}
.hr-issue-card .hr-issue-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.hr-issue-card .hr-issue-info {
  padding: 10px 12px;
}
.hr-issue-card .hr-issue-num {
  font-size: 0.7rem;
  color: var(--hr-text-light);
}
.hr-issue-card .hr-issue-title {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 2px 0 6px;
  color: var(--hr-text);
}
.hr-issue-card .hr-issue-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hr-primary);
}

/* ============================================
   サイドバー：カテゴリナビ（帯なし）
   ============================================ */
.hr-sidebar-section {
  margin-bottom: 24px !important;
}
.hr-sidebar-section .hr-sidebar-heading {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid var(--hr-primary) !important;
  color: var(--hr-primary) !important;
}
.hr-sidebar-section ul,
.hr-sidebar-section ul.hr-sidebar-nav,
.hr-sidebar-section ul.hr-sidebar-subnav {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.hr-sidebar-section ul li,
.hr-sidebar-section ul.hr-sidebar-nav li,
.hr-sidebar-section ul.hr-sidebar-subnav li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.hr-sidebar-section ul li::before,
.hr-sidebar-section ul.hr-sidebar-nav li::before,
.hr-sidebar-section ul.hr-sidebar-subnav li::before {
  display: none !important;
  content: none !important;
}
.hr-sidebar-section ul li a,
.hr-sidebar-section ul li:first-child a,
.hr-sidebar-section ul.hr-sidebar-nav li a,
.hr-sidebar-section ul.hr-sidebar-nav li:first-child a {
  display: block !important;
  padding: 9px 12px !important;
  font-size: 0.85rem !important;
  color: var(--hr-text) !important;
  text-decoration: none !important;
  border-radius: var(--hr-radius) !important;
  background: transparent !important;
  font-weight: 400 !important;
  transition: background 0.2s, color 0.2s;
}
.hr-sidebar-section ul li a:hover,
.hr-sidebar-section ul.hr-sidebar-nav li a:hover {
  background: var(--hr-bg-warm) !important;
}
/* サブナビ */
.hr-sidebar-section .hr-sidebar-subnav {
  padding-left: 16px !important;
}
.hr-sidebar-section .hr-sidebar-subnav li a,
.hr-sidebar-section .hr-sidebar-subnav li:first-child a,
.hr-sidebar-section .hr-sidebar-subnav .hr-sidebar-subnav li a,
.hr-sidebar-section .hr-sidebar-subnav .hr-sidebar-subnav li:first-child a {
  padding: 6px 12px !important;
  font-size: 0.8rem !important;
  color: var(--hr-text-light) !important;
  background: transparent !important;
}
.hr-sidebar-section .hr-sidebar-subnav li a:hover,
.hr-sidebar-section .hr-sidebar-subnav .hr-sidebar-subnav li a:hover {
  background: var(--hr-bg-warm) !important;
  color: var(--hr-text) !important;
}

/* ============================================
   サイドバー：バナー共通
   ============================================ */
.hr-sidebar-banner {
  background: var(--hr-bg-warm);
  border-radius: var(--hr-radius-lg);
  padding: 22px 20px;
  text-align: center;
  border: 1px solid var(--hr-border);
  margin-bottom: 20px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.hr-sidebar-banner:hover {
  box-shadow: var(--hr-shadow-md);
  transform: translateY(-2px);
}
.hr-sidebar-banner .hr-banner-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.hr-sidebar-banner h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  margin-bottom: 6px;
}
.hr-sidebar-banner p {
  font-size: 0.78rem;
  color: var(--hr-text-light);
  line-height: 1.7;
}
.hr-sidebar-banner .hr-banner-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.hr-sidebar-banner .hr-banner-btn:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

/* --- 定期購読バナー --- */
.hr-banner-subscription {
  background: linear-gradient(135deg, #F5F0E8 0%, #FFF9F0 100%);
}
.hr-banner-subscription .hr-banner-label {
  color: var(--hr-accent-warm);
}
.hr-banner-subscription h4 {
  color: var(--hr-primary);
}
.hr-banner-subscription .hr-banner-btn {
  background: var(--hr-primary);
  color: #fff;
}

/* --- 会員募集中バナー --- */
.hr-banner-membership {
  background: linear-gradient(135deg, #EBF0F5 0%, #F0F5FA 100%);
  border-color: #D0D9E4;
}
.hr-banner-membership .hr-banner-label {
  color: #C0392B;
}
.hr-banner-membership h4 {
  color: #2E4057;
}
.hr-banner-membership .hr-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2E4057, #4A7C9B);
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.hr-banner-membership .hr-banner-btn {
  background: #2E4057;
  color: #fff;
}

/* ============================================
   デフォルトフッター完全非表示
   ============================================ */
.ec-footerRole,
.ec-footerNavi,
.ec-footerTitle {
  display: none !important;
}

/* ============================================
   カスタムフッター
   ============================================ */
.hr-footer {
  background: #1B4332 !important;
  color: #fff !important;
  margin-top: 40px !important;
  width: 100% !important;
}
.hr-footer .hr-footer-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 24px !important;
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr 1fr !important;
  gap: 32px !important;
}
.hr-footer .hr-footer-col h4 {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  margin-bottom: 14px !important;
  color: #fff !important;
}
.hr-footer .hr-footer-col p {
  font-size: 0.8rem !important;
  line-height: 1.8 !important;
  color: rgba(255,255,255,0.7) !important;
}
.hr-footer .hr-footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.hr-footer .hr-footer-col ul li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.hr-footer .hr-footer-col ul li::before {
  display: none !important;
  content: none !important;
}
.hr-footer .hr-footer-col ul li a {
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none !important;
  font-size: 0.8rem !important;
  display: block !important;
  padding: 4px 0 !important;
}
.hr-footer .hr-footer-col ul li a:hover {
  color: #fff !important;
}
.hr-footer .hr-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15) !important;
  text-align: center !important;
  padding: 16px 24px !important;
  background: transparent !important;
}
.hr-footer .hr-footer-bottom p {
  font-size: 0.72rem !important;
  color: rgba(255,255,255,0.5) !important;
  margin: 0 !important;
}

/* ============================================
   アニメーション
   ============================================ */
@keyframes hrFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hr-product-card,
.hr-issue-card,
.hr-featured-monthly {
  animation: hrFadeUp 0.5s ease both;
}
.hr-product-card:nth-child(1),
.hr-issue-card:nth-child(1) { animation-delay: 0.05s; }
.hr-product-card:nth-child(2),
.hr-issue-card:nth-child(2) { animation-delay: 0.10s; }
.hr-product-card:nth-child(3),
.hr-issue-card:nth-child(3) { animation-delay: 0.15s; }
.hr-issue-card:nth-child(4) { animation-delay: 0.20s; }

/* ============================================
   レスポンシブ対応
   ============================================ */
@media (max-width: 960px) {
  .hr-product-grid { grid-template-columns: repeat(2, 1fr); }
  .hr-issues-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hr-footer .hr-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}
@media (max-width: 600px) {
  .hr-hero h2 { font-size: 1.3rem; }
  .hr-product-grid { grid-template-columns: 1fr; }
  .hr-featured-monthly { grid-template-columns: 1fr; }
  .hr-issues-grid { grid-template-columns: repeat(2, 1fr); }
  .hr-section { padding: 24px 16px 8px; }
}
