/** Shopify CDN: Minification failed

Line 9:0 Unexpected "{"
Line 9:1 Expected identifier but found "%"
Line 11:15 Unexpected "2026"
Line 13:1 Expected identifier but found "%"

**/
{%- comment -%}
  amnos-blog-tab.css
  Copyright © 2026 アムノス手芸
  Original implementation for the Amnos Handicraft Shopify theme.
{%- endcomment -%}

/* ===== Amnos Blog Tab ===== */

.amnos-blog-tabs {
  margin: 40px auto;
}

/* タブボタン */
.tab-buttons-wrapper {
  position: relative;
}

.tab-buttons {
  display: flex;
  gap: 4px;
  margin-bottom: -1px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;  /* ← center → flex-start に変更 */
  scrollbar-width: none;
}

.tab-buttons::-webkit-scrollbar {
  display: none;
}

.tab-button {
  padding: 12px 24px;
  border: 1px solid #ddd;
  border-bottom: none;
  background: #f5f5f5;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  border-radius: 8px 8px 0 0;
  position: relative;
  top: 1px;
  transition: all 0.3s ease;
  flex-shrink: 0;               /* ← 追加：タブが縮まないように */
}

.tab-button:hover {
  background: #fff;
}

.tab-button.active {
  background: #fff;
  border-bottom: 1px solid #fff;
  top: 0;
  font-weight: 600;
  z-index: 2;
}

.tab-content {
  border-top: 1px solid #ddd;
  padding-top: 24px;
}

/* ===== スライダー（風景カードと統一） ===== */

.articles-slider {
  display: none;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 1.5rem 1.5rem;
  scrollbar-width: none;
}

.articles-slider::-webkit-scrollbar {
  display: none;
}

.articles-slider.active {
  display: flex;
}

.no-articles {
  color: #888;
  font-size: 14px;
}

/* ===== カード（風景カードと統一） ===== */

.amnos-slider-card {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border-radius: 0px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.amnos-slider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.13);
}

/* 画像エリア */
.amnos-slider-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0ede8;
  position: relative;
  flex-shrink: 0;
}

.amnos-slider-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.amnos-slider-card:hover .amnos-slider-card__image img {
  transform: scale(1.04);
}

.amnos-slider-card__placeholder svg {
  width: 100%;
  height: 100%;
}

/* ボディ */
.amnos-slider-card__body {
  padding: 0.9rem 1rem 1rem;
  flex: 1;
}

.amnos-slider-card__title {
  font-weight: bold;
  font-size: 1rem;
  margin: 0 0 0.4rem;
  line-height: 1.4;
}

.amnos-slider-card__title a {
  text-decoration: none;
  color: inherit;
}

.amnos-slider-card__date {
  font-size: 0.78rem;
  color: #999;
  margin: 0 0 0.4rem;
}

.amnos-slider-card__text {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* レスポンシブ */
@media (max-width: 749px) {
  .amnos-slider-card {
    flex: 0 0 85vw;
  }
}
