@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap');

/* ========================================================
   AZUMAYA 公式オンラインショップ カテゴリ一覧ページ（独自コメント1）共通スタイル
   Version: 20261008_1
======================================================== */

:root {
  --az-top-max-width: 1200px;
  --az-font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --az-font-en: 'Futura', 'Futura PT', 'Jost', 'Century Gothic', -apple-system, sans-serif;
  --az-font-num: 'Roboto', 'Futura', 'Jost', sans-serif;
}

/* 独自コメント1全体のラッパー */
.az-cat-top-root,
.az-cat-top-area {
  font-family: var(--az-font-main);
  color: #222222;
  line-height: 1.6;
  font-size: 14px;
  width: 100%;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.az-cat-top-root *,
.az-cat-top-root *::before,
.az-cat-top-root *::after,
.az-cat-top-area *,
.az-cat-top-area *::before,
.az-cat-top-area *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.az-cat-top-root a,
.az-cat-top-area a {
  color: inherit;
  text-decoration: none;
}

.az-cat-top-root img,
.az-cat-top-area img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: 0 !important; /* 角丸なし（完全フラット） */
}

/* FutureShop標準のダサい子カテゴリリンクリスト（四角枠線ボタングループ）を完全非表示 */
.fs-c-subgroup,
.fs-c-subgroupList,
.fs-l-subgroupList,
.fs-c-childCategoryList,
.fs-c-groupList {
  display: none !important;
}

/* ========================================================
   1. パターンA：人気カテゴリ（全幅スライダー：基本5枚・画面上3枚見え構図）
======================================================== */
.az-hero-slider-section,
.az-hero-fullbleed-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 24px;
  overflow: hidden;
}

.az-hero-slider-wrap,
.az-hero-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.az-hero-track,
.az-hero-slider-track {
  display: flex;
  gap: 16px;
  width: max-content;
  align-items: center;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: grab;
  touch-action: pan-y;
}
.az-hero-track:active {
  cursor: grabbing;
}

.az-hero-slide-item {
  flex: 0 0 640px; /* PCスライド幅（中央大・左右見切れ構図） */
  border-radius: 0 !important;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
  user-select: none;
}

.az-hero-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  pointer-events: none;
}

/* スライダー左右端の正方形・白透明ボタン */
.az-hero-edge-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #444;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

.az-hero-edge-btn:hover {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
}

.az-hero-edge-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.az-hero-edge-btn--prev { left: 0; }
.az-hero-edge-btn--next { right: 0; }

/* スライダー直下のドットインジケーター（不要のため完全非表示） */
.az-hero-dots-wrap {
  display: none !important;
}

.az-hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50% !important;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s;
}

.az-hero-dot.is-active {
  background: #333;
}

/* スライダー下のタイトル ＆ 説明文（中央揃え・上品な太さ・左右パディング完全撤廃） */
.az-hero-title-box {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  padding: 0 !important;
}

.fs-c-heading--page.az-hero-title-text,
.az-hero-title-text {
  display: block !important;
  font-size: 22px;
  font-weight: 500;
  color: #222;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  line-height: 1.3;
  text-align: center;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.az-hero-desc-text {
  font-size: 13px;
  line-height: 1.95;
  color: #666;
  text-align: center;
  letter-spacing: 0.02em;
}

/* 説明文の開閉ラッパー（PCは常に全文表示） */
.az-desc-expandable-wrap {
  width: 100%;
}
.az-desc-more-btn {
  display: none !important;
}

/* ========================================================
   2. パターンB：通常カテゴリ（全幅グレー背景 2カラム型）
======================================================== */
.az-split-fullbleed-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #f6f6f6; /* 左右に伸びる薄いグレー背景（#f6f6f6） */
  padding: 38px 0;
  margin-bottom: 40px;
}

.az-split-inner-container {
  max-width: var(--az-top-max-width);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.az-split-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.az-split-title {
  font-size: 24px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  line-height: 1.3;
}

.az-split-desc {
  font-size: 13px;
  line-height: 1.95;
  color: #555;
  text-align: justify;
}

.az-split-image-col {
  border-radius: 0 !important;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
}

.az-split-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}

/* ========================================================
   3. 共通コンテンツラッパー（1200px）
======================================================== */
.az-cat-top-inner {
  max-width: var(--az-top-max-width);
  margin: 0 auto;
  padding: 0;
}

/* セクション見出し（文字下だけアクセントで太い下線デザイン） */
.az-sec-title-bar {
  position: relative;
  border-bottom: 1px solid #000000; /* 全体のベース下線（完全なブラック） */
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
}

.az-sec-title-en {
  font-family: var(--az-font-en);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #000000;
  text-transform: uppercase;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid #000000; /* 文字の下だけアクセントで太い線（完全なブラック） */
  margin-bottom: -1px; /* 薄い下線の上に重ねる */
  line-height: 1;
}

/* ========================================================
   4. 【RANKING】セクション（横長角丸バッジ ＋ 縦長・罫線なし・白半透明ボタン）
======================================================== */
.az-ranking-section {
  margin-bottom: 45px;
}

.az-ranking-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.az-ranking-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 0 10px;
  width: 100%;
}

.az-ranking-track::-webkit-scrollbar {
  display: none;
}

.az-ranking-card {
  flex: 0 0 192px;
  scroll-snap-align: start;
  position: relative;
  background: #fff;
  border-radius: 0 !important;
  overflow: hidden;
  display: block;
}

.az-ranking-img-wrap {
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  overflow: hidden;
  position: relative;
  border-radius: 0 !important;
}

.az-ranking-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  transition: transform 0.25s ease;
}

.az-ranking-card:hover .az-ranking-img-wrap img {
  transform: scale(1.03);
}

/* 順位バッジ：横長角丸長方形 ＋ 1px罫線 */
.az-rank-badge-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  font-family: var(--az-font-num);
  z-index: 5;
}

/* 1位: ゴールド単色 ＋ 白文字 ＋ 白罫線 */
.az-rank-badge-pill--1 {
  background: #c5a059;
  color: #ffffff;
  border: 1px solid #ffffff;
}

/* 2位: シルバー単色 ＋ 白文字 ＋ 白罫線 */
.az-rank-badge-pill--2 {
  background: #9e9e9e;
  color: #ffffff;
  border: 1px solid #ffffff;
}

/* 3位: ブロンズ単色 ＋ 白文字 ＋ 白罫線 */
.az-rank-badge-pill--3 {
  background: #b87333;
  color: #ffffff;
  border: 1px solid #ffffff;
}

/* 4位以降: 完全ホワイト背景 ＋ 黒文字 ＋ 黒罫線 */
.az-rank-badge-pill--other {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #111111 !important;
}

.az-ranking-info {
  padding: 8px 2px 4px;
}

.az-ranking-price-line {
  font-family: var(--az-font-num);
  font-size: 13.5px;
  font-weight: 500;
  color: #222;
}

.az-ranking-price-line span {
  font-size: 10px;
  color: #777;
  margin-left: 2px;
}

/* 縦長長方形のナビゲーションボタン（罫線なし・白半透明・スクロールが必要な時のみJSで表示） */
.az-vert-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 54px;
  background: rgba(255, 255, 255, 0.75);
  border: none;
  border-radius: 2px;
  display: none; /* スクロール不要な場合は完全非表示、スクロール必要な時だけflex表示 */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 12px;
  color: #444;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

.az-vert-nav-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
}

.az-vert-nav-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.az-vert-nav-btn--prev {
  left: 0;
}

.az-vert-nav-btn--next {
  right: 0;
}

/* ========================================================
   5. 【COTEGORY】セクション（大きめ正円丸アイコン ＋ 縦長ボタン）
======================================================== */
.az-category-nav-section {
  margin-bottom: 25px;
}

.az-subnav-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.az-subnav-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px 14px;
  padding: 4px 0 16px;
  width: 100%;
}

.az-subnav-track::-webkit-scrollbar {
  display: none;
}

.az-subnav-circle-item {
  flex: 0 0 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 0;
  transition: background-color 0.2s ease;
  background: transparent;
}

/* ユーザー様ご指定：選択中（アクティブ）の子カテゴリデザイン（薄グレー背景カード） */
.az-subnav-circle-item.is-active {
  background: #ececec; /* ご提示スクショ通りの薄グレーベタ塗り */
}

.az-subnav-circle-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50% !important;
  overflow: hidden;
  background: #eee;
  border: 1px solid #e0e0e0;
  margin-bottom: 9px;
  transition: border-color 0.2s, transform 0.2s;
}

.az-subnav-circle-wrap--all {
  width: 120px;
  height: 120px;
  border-radius: 50% !important;
  background: #f7f7f8;
  border: 1px solid #dcdcdc;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}

.az-subnav-all-text {
  font-family: var(--az-font-en);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #333333;
  margin-left: 0.14em;
  line-height: 1;
  user-select: none;
}

.az-subnav-circle-item:hover .az-subnav-circle-wrap {
  border-color: #111;
  transform: scale(1.02);
}

.az-subnav-circle-item:hover .az-subnav-circle-wrap--all {
  border-color: #111;
  background: #eaeaea;
  transform: scale(1.02);
}

.az-subnav-circle-item.is-active .az-subnav-circle-wrap {
  border-color: #333;
}

.az-subnav-circle-item.is-active .az-subnav-circle-wrap--all {
  border-color: #222;
  background: #e2e2e2;
}

.az-subnav-circle-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% !important;
}

/* アイコン画像なし（NO IMAGE）時の薄グレー丸枠スタイル */
.az-subnav-circle-wrap.is-noimage {
  background: #f2f2f2 !important;
  border: 1px dashed #cccccc !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.az-subnav-circle-wrap.is-noimage img {
  display: none !important;
}
.az-subnav-noimage-text {
  font-family: var(--az-font-en, sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #999999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  user-select: none;
}

.az-subnav-item-title {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  line-height: 1.35;
}

.az-subnav-circle-item.is-active .az-subnav-item-title {
  font-weight: 700;
  color: #111;
}

.az-subnav-item-count {
  font-family: var(--az-font-num);
  font-size: 11px;
  color: #888;
}

.az-subnav-circle-item.is-active .az-subnav-item-count {
  color: #0066cc;
  font-weight: 500;
}

/* ========================================================
   6. レスポンシブ（SP スマホ表示対応）
======================================================== */
@media (max-width: 768px) {
  .az-cat-top-inner {
    padding: 0;
  }

  /* パターンA スライダー SP（左右ボタン非表示 ＆ 78vw幅両端見切れ ＆ ドット表示 ＆ 左右無限ループ） */
  .az-hero-track,
  .az-hero-slider-track {
    gap: 12px;
    touch-action: pan-y;
  }
  .az-hero-slide-item {
    flex: 0 0 78vw; /* 中央メイン（78vw幅・両端に各11vw見切れ） */
    aspect-ratio: 16 / 10;
  }
  .az-hero-edge-btn {
    display: none !important; /* スマホ時はボタン撤廃（スワイプ専用） */
  }
  .az-hero-dots-wrap {
    display: none !important;
  }
  .az-hero-title-box {
    padding: 0 !important;
  }
  .az-hero-title-text {
    font-size: 19px;
  }
  .az-hero-desc-text {
    font-size: 12px;
    line-height: 1.8;
  }

  /* スマホ時は未展開時に3行省略 */
  .az-desc-expandable-wrap:not(.is-expanded) .az-hero-desc-text,
  .az-desc-expandable-wrap:not(.is-expanded) .az-split-desc,
  .az-desc-expandable-wrap:not(.is-expanded) .az-simple-desc-text {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* さりげない「もっと見る」トグルボタン */
  .az-desc-more-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 auto 0;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 500;
    color: #666666;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
  }
  .az-desc-more-btn:active {
    color: #111111;
  }
  .az-desc-more-btn svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    transition: transform 0.25s ease;
  }
  .az-desc-expandable-wrap.is-expanded .az-desc-more-btn svg {
    transform: rotate(180deg);
  }

  /* パターンB 2カラム SP（画像最上部・左右上隙間ゼロ・下にテキスト） */
  .az-split-fullbleed-wrap {
    padding: 0 0 24px 0 !important;
    margin-bottom: 30px;
    background: #f6f6f6;
  }
  .az-split-inner-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
  }
  .az-split-image-col {
    order: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    aspect-ratio: 16 / 10;
  }
  .az-split-image-col img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block !important;
    border-radius: 0 !important;
  }
  .az-split-text-col {
    order: 2 !important;
    padding: 20px 16px 0 !important;
  }
  .az-split-title {
    font-size: 19px;
    margin-bottom: 10px;
    font-weight: 600;
  }
  .az-split-desc {
    font-size: 12.5px;
    line-height: 1.8;
  }

  /* 見出し SP */
  .az-sec-title-en {
    font-size: 16px;
  }

  /* ランキング SP */
  .az-ranking-section {
    margin-bottom: 25px;
  }
  .az-ranking-track {
    padding-right: 20px;
    gap: 10px;
  }
  .az-ranking-card {
    flex: 0 0 130px;
  }
  .az-vert-nav-btn {
    display: none !important;
  }
  
  /* スマホ時：バッジをサムネイル画像の左上角にピタッと配置 */
  .az-rank-badge-pill {
    top: 0;
    left: 0;
    border-radius: 0 0 8px 0;
    padding: 2px 8px;
    font-size: 11px;
  }
  .az-ranking-price-line {
    font-size: 12px;
  }

  /* 子カテゴリ SP（各端末幅に自動連動・gap 8px維持 ＆ 3個完全表示＋4個目半分見切れ＝完全3.5個可変レイアウト） */
  .az-subnav-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 12px 10px 0;
    gap: 8px !important;
  }
  .az-subnav-track::-webkit-scrollbar {
    display: none;
  }
  .az-subnav-circle-item {
    /* (コンテナ幅 - 3箇所分のgap24px) / 3.5個 でどの端末でも数学的に完全3.5個 */
    flex: 0 0 calc((100% - 24px) / 3.5) !important;
    min-width: calc((100% - 24px) / 3.5) !important;
    max-width: calc((100% - 24px) / 3.5) !important;
    scroll-snap-align: start;
    padding: 6px 2px;
    box-sizing: border-box;
    border-radius: 4px;
  }
  .az-subnav-circle-wrap {
    /* 端末のカード幅に合わせて自動伸縮（最大80px正円・崩れない正方形アスペクト比） */
    width: min(80px, calc(100% - 4px)) !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    margin: 0 auto 5px;
  }
  .az-subnav-circle-wrap--all {
    width: min(80px, calc(100% - 4px)) !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    margin: 0 auto 5px;
  }
  .az-subnav-all-text {
    font-size: 18px;
    letter-spacing: 0.12em;
    margin-left: 0.12em;
  }
  .az-subnav-noimage-text {
    font-size: 10px;
    letter-spacing: 0.03em;
  }
  .az-subnav-item-title {
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
    word-break: normal;
  }
  .az-subnav-item-count {
    font-size: 10px;
    text-align: center;
  }
}

/* ========================================================
   7. パターンC：画像なし・シンプル型（上に詰める構成）
======================================================== */
.az-simple-title-box {
  text-align: center;
  max-width: 760px;
  margin: 20px auto 36px;
  padding: 0 16px;
}
.az-simple-title-text {
  font-size: 24px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.az-simple-desc-text {
  font-size: 13.5px;
  line-height: 1.95;
  color: #555;
  text-align: center;
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .az-simple-title-box {
    margin: 16px auto 24px;
    padding: 0;
  }
  .az-simple-title-text {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .az-simple-desc-text {
    font-size: 12.5px;
    line-height: 1.85;
    text-align: left;
  }
}

/* ========================================================
   8. 戻るアイコン専用スタイル（az-subnav-back-item）
======================================================== */
.az-subnav-back-item .az-subnav-circle-wrap {
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}
.az-subnav-back-item:hover .az-subnav-circle-wrap {
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
  transform: scale(1.04);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.az-subnav-back-item svg {
  width: 48%;
  height: 48%;
  display: block;
  transition: transform 0.2s ease;
}
.az-subnav-back-item:hover svg {
  transform: translateX(-2px);
}
.az-subnav-back-item .az-subnav-item-title {
  color: #475569 !important;
  font-weight: 600 !important;
}

