/* Off Line ページ用 Publications タブ切り替え CSS */

/* タブコンテナ */
.publications-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0;
  justify-content: center;
}

/* 個別タブボタン */
.publications-tab {
  background: none;
  border: none;
  padding: 16px 28px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
}

.publications-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* アクティブタブ */
.publications-tab.active {
  color: white;
}

/* アクティブタブのインジケーター */
.publications-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6b9ab8, #4a7c9e);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    width: 0;
    left: 50%;
  }
  to {
    width: 100%;
    left: 0;
  }
}

/* タブコンテンツコンテナ */
.publications-content {
  display: none;
}

/* アクティブなコンテンツを表示 */
.publications-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 出版物グリッド（タブ内用） */
.publications-content .book-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* 書籍カード（コンパクト版） */
.book-card-compact {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(20px);
}

.book-card-compact.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.book-card-compact.new-book {
  border-color: rgba(107, 154, 184, 0.3);
  background: rgba(107, 154, 184, 0.08);
}

.book-card-compact:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(74, 124, 158, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.book-icon-small {
  font-size: 2.4rem;
  flex-shrink: 0;
}

.book-content {
  flex: 1;
}

.book-title {
  font-size: 1.2rem;
  font-weight: 400;
  color: white;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}

.book-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.book-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-value {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
}

.price {
  font-weight: 500;
  color: #6b9ab8;
  font-size: 1.1rem;
}

.book-note {
  margin-top: 8px;
}

.note-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
}

/* カテゴリーラベル */
.category-label-small {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 6px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  letter-spacing: 0.1em;
}

.new-label {
  background: linear-gradient(135deg, rgba(107, 154, 184, 0.3), rgba(74, 124, 158, 0.3));
  border-color: rgba(107, 154, 184, 0.4);
  box-shadow: 0 3px 15px rgba(107, 154, 184, 0.3);
}

/* その他の頒布物 */
.other-items {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}

.other-items.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.other-items:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.other-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}

.other-content {
  flex: 1;
}

.other-title {
  font-size: 1.1rem;
  font-weight: 400;
  color: white;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

.other-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* 完売セクション */
.soldout-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin-top: 30px;
}

.soldout-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
}

.soldout-icon {
  font-size: 1.1rem;
  color: #6b9ab8;
}

.soldout-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .publications-tabs {
    gap: 0;
    padding: 0;
    border-bottom: none;
  }
  
  .publications-tab {
    flex: 1;
    text-align: center;
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  }
  
  .publications-tab.active {
    border-bottom: 2px solid #6b9ab8;
  }
  
  .publications-tab.active::after {
    display: none;
  }
  
  .publications-content .book-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .book-card-compact {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }
  
  .other-items {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .publications-tab {
    padding: 12px 12px;
    font-size: 0.95rem;
  }
  
  .publications-content .book-list {
    gap: 12px;
  }
  
  .book-card-compact {
    gap: 12px;
    padding: 16px 12px;
  }
  
  .book-title {
    font-size: 1.1rem;
  }
  
  .book-subtitle {
    font-size: 0.8rem;
  }
}