/* =====================================================================
   shop.css v3 - 生命物語 OFFICIAL SHOP（EC特化・聖堂統一デザイン）
   パレットは style.css の聖堂テーマに完全準拠：
   深紅 #0f0f0f / 象牙 #f9f9f9 / 金 #e5e5e5 / 黒檀 #0f0f0f
   style.css の後に読み込むこと。
   ===================================================================== */

/* ---------- レイアウト拡幅（PC 3カラム） ---------- */
.layout {
  grid-template-columns: 250px minmax(0, 1fr) 290px;
  max-width: 1680px;
  gap: 22px;
  padding: 0 18px;
}
.wrap { max-width: 1160px; }
@media (max-width: 1180px) {
  .layout { grid-template-columns: 210px minmax(0, 1fr) 240px; gap: 14px; }
}
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- アイテムグリッド：スマホ2列・PC4列 ---------- */
.thumb-grid.p-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1300px) { .thumb-grid.p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .thumb-grid.p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; } }

/* PC／スマホ表示切替 */
.sp-only { display: none !important; }
@media (max-width: 1080px) {
  .sp-only { display: inline-block !important; }
  .pc-only { display: none !important; }
}

/* ---------- カートを表示（全ページ・右上固定） ---------- */
.cart-fab {
  position: fixed; top: 8px; right: 10px; z-index: 350;
  background: #ffffff;
  border: 1px solid #e5e5e5; border-radius: 4px;
  box-shadow: 0 0 0 1px #0f0f0f, 2px 2px 6px rgba(70, 8, 28, .3);
  padding: 4px 8px; min-width: 52px; min-height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.cart-fab paypal-cart-button { display: block; }

/* ---------- モバイル：ハンバーガー左上・左から開くドロワー ---------- */
@media (max-width: 1080px) {
  .hb-btn { left: 10px !important; right: auto !important; }
  .cart-fab { top: 10px; right: 12px; }
  /* パネルを左側へ */
  .hb-panel {
    left: 0 !important; right: auto !important;
    border-left: none !important;
    border-right: 1px solid #0f0f0f;
    box-shadow: 14px 0 40px rgba(40, 4, 16, .45);
    transform: translateX(-105%);
  }
  .hb-open .hb-panel { transform: translateX(0); }
  /* 閉じるボタンは右上のまま利用可 */
}

/* ---------- 全幅スライドショー ---------- */
.hero-slider {
  position: relative; width: 100%;
  aspect-ratio: 16 / 5;
  min-height: 160px; max-height: 480px;
  overflow: hidden;
  background: #f9f9f9;
  border-bottom: 3px double #0f0f0f;
  box-shadow: 0 1px 0 #e5e5e5;
}
@media (max-width: 640px) { .hero-slider { aspect-ratio: 16 / 7; } }
.hero-slider .hs-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .8s ease;
}
.hero-slider .hs-slide.on { opacity: 1; }
.hero-slider .hs-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.hero-slider .hs-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 8px; z-index: 5;
}
.hero-slider .hs-dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid #ffffff; background: rgba(253, 250, 243, .35);
  cursor: pointer; padding: 0;
  box-shadow: 0 1px 3px rgba(70, 8, 28, .5);
}
.hero-slider .hs-dot.on { background: #e5e5e5; }

/* ---------- ヒーロー（キャッチ） ---------- */
.shop-hero {
  margin: 18px 0 6px;
  text-align: center;
  padding: 30px 16px 26px;
  background:
    radial-gradient(ellipse 75% 120% at 50% -10%, rgba(0,0,0, .32), transparent 65%),
    linear-gradient(180deg, #ffffff, #f9f9f9);
  border: 1px solid #e5e5e5;
  border-top: 3px double #0f0f0f;
  border-bottom: 3px double #0f0f0f;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #e5e5e5, 2px 3px 0 1px #e5e5e5;
  position: relative;
}
.shop-hero.mini { padding: 22px 14px 20px; }
.shop-hero .sh-cross {
  font-size: 24px; line-height: 1; color: #0f0f0f;
  text-shadow: 0 1px 0 #e5e5e5, 0 0 16px rgba(0,0,0, .6);
  margin-bottom: 6px;
}
.shop-hero .sh-title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 29px; letter-spacing: .26em; color: #0f0f0f; margin: 0;
  text-shadow: 1px 1px 0 #ffffff, 2px 2px 0 #e5e5e5;
}
.shop-hero .sh-sub { font-size: 13px; color: #606060; letter-spacing: .08em; margin: 8px auto 0; max-width: 680px; }
.shop-hero .sh-cta { margin: 14px 0 0; }

/* ---------- アイテムカード：聖堂のアーチ ---------- */
.p-grid .thumb-card {
  overflow: visible;               /* 順位章の見切れ防止 */
  border-radius: 3px;
  transition: transform .14s ease, box-shadow .14s ease;
}
.p-grid .thumb-card:hover {
  transform: translateY(-2px);
  box-shadow: 3px 4px 0 #e5e5e5, 0 0 0 1px #e5e5e5;
}
.p-card { position: relative; display: flex; flex-direction: column; }
.p-card .p-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; flex: 1; }

/* アーチ型サムネイル（ロマネスク様式の丸アーチ） */
.p-card .frame {
  aspect-ratio: 3 / 3.6;
  margin: 10px 10px 0;
  width: auto;
  border: 1px solid #e5e5e5;
  border-bottom: 2px solid #e5e5e5;
  border-radius: 50% 50% 3px 3px / 34% 34% 3px 3px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f2f2f2);
  box-shadow: inset 0 0 0 3px #ffffff, inset 0 0 0 4px #e5e5e5;
}
.p-card .frame img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }

/* バッジ配置：アーチの直線部分（下側）に寄せる */
.p-card .t-badge {
  top: auto; bottom: 26px; left: 0;
  background: #0f0f0f; border-radius: 0 8px 8px 0;
  font-size: 10px; padding: 1px 8px;
}
.p-card .t-new {
  top: auto; bottom: 26px; right: 0; left: auto;
  background: #e5e5e5; color: #333333;
  border-radius: 8px 0 0 8px; font-size: 10px; padding: 1px 8px;
}
.p-card .p-stock {
  position: absolute; right: 6px; bottom: 4px;
  font-size: 10px; padding: 1px 7px; border-radius: 8px;
  color: #fff; letter-spacing: .06em;
}
.p-stock.st-in  { background: #2e7d32; }
.p-stock.st-few { background: #b58e1b; }
.p-stock.st-pre { background: #1c5a8a; }
.p-stock.st-out { background: #7a7a7a; }
.p-card .p-spot {
  position: absolute; left: 6px; bottom: 4px;
  font-size: 10px; padding: 1px 7px; border-radius: 8px;
  color: #ffffff; background: #333333; border: 1px solid #e5e5e5;
  letter-spacing: .08em;
}
/* 順位章（金銀銅の聖章）：アーチ枠の外・最前面 */
.p-card .p-rank {
  position: absolute; left: 4px; top: 4px; z-index: 20;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: bold; font-size: 15px; color: #fff;
  background: #9a8664; border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(70, 8, 28, .35);
}
.p-card .p-rank.r1 { background: linear-gradient(180deg, #e5e5e5, #e5e5e5); color: #333333; }
.p-card .p-rank.r2 { background: linear-gradient(180deg, #e8e8e8, #b9b9b9); color: #555; }
.p-card .p-rank.r3 { background: linear-gradient(180deg, #e0a883, #c07b4d); }

.p-card .t-title {
  padding: 8px 10px 0;
  font-size: 12.5px; line-height: 1.55;
}
.p-card .p-tags { display: block; padding: 2px 10px 0; line-height: 1.5; }
.p-card .p-tags i {
  font-style: normal; font-size: 10px; color: #606060;
  margin-right: 6px; white-space: nowrap;
}
.p-card .p-tags i::before { content: "#"; color: #e5e5e5; }
.p-card .p-price {
  display: block; padding: 3px 10px 8px;
  font-size: 15px; font-weight: bold; color: #0f0f0f;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}
.p-card .p-price small { font-size: 10px; color: #a2826a; font-weight: normal; }

/* カードのアクション部 */
.p-card .p-actions {
  display: block; padding: 6px 10px 10px; margin-top: auto;
  border-top: 1px dashed #e5e5e5;
  text-align: center;
}
.p-card .cart-add { display: block; }
.p-card .cart-add paypal-add-to-cart-button { display: block; max-width: 100%; }
.p-card .p-more { display: inline-block; }
.p-card .p-out {
  display: inline-block; font-size: 11px; color: #7a7a7a;
  letter-spacing: .12em; padding: 4px 0;
}

/* ---------- カテゴリーカード ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px; margin: 6px 0;
}
@media (max-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; } }
.cat-card {
  display: block; text-decoration: none; text-align: center;
  background: #ffffff; border: 1px solid #e5e5e5; border-radius: 3px;
  box-shadow: 1px 2px 0 #e5e5e5; padding: 16px 12px 14px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: 2px 4px 0 #e5e5e5, 0 0 0 1px #e5e5e5; background: #f2f2f2; }
.cat-card .cc-cross { display: block; color: #e5e5e5; font-size: 16px; margin-bottom: 4px; }
.cat-card .cc-name { display: block; font-weight: bold; color: #0f0f0f; font-size: 14.5px; letter-spacing: .04em; }
.cat-card .cc-desc { display: block; font-size: 11px; color: #606060; margin-top: 4px; line-height: 1.6; }
.cat-card .cc-count { display: inline-block; margin-top: 8px; font-size: 11px; color: #606060; background: #f9f9f9; border: 1px solid #e5e5e5; border-radius: 10px; padding: 1px 10px; }

.ptag.active-tag { background: #0f0f0f !important; color: #ffffff !important; border-color: #e5e5e5 !important; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 6px; }

/* ---------- アイテム詳細 ---------- */
.product-detail {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px; margin: 8px 0 4px; align-items: start;
}
@media (max-width: 760px) { .product-detail { grid-template-columns: minmax(0, 1fr); } }

/* 詳細ページのメイン画像もアーチ窓に */
.pd-gallery .pd-main {
  border: 1px solid #e5e5e5;
  border-radius: 50% 50% 3px 3px / 18% 18% 3px 3px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f2f2f2);
  box-shadow: inset 0 0 0 4px #ffffff, inset 0 0 0 5px #e5e5e5, 1px 2px 0 #e5e5e5;
  padding: 18px 14px 12px;
  display: flex; align-items: center; justify-content: center;
  min-height: 280px;
}
.pd-gallery .pd-main img { max-width: 100%; max-height: 540px; object-fit: contain; display: block; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; justify-content: center; }
.pd-thumbs img {
  width: 62px; height: 62px; object-fit: cover; cursor: pointer;
  border: 2px solid #e5e5e5; background: #ffffff;
  border-radius: 50% 50% 3px 3px / 34% 34% 3px 3px;
}
.pd-thumbs img.on, .pd-thumbs img:hover { border-color: #0f0f0f; }

.pd-buy {
  background: #ffffff; border: 1px solid #e5e5e5; border-top: 3px double #0f0f0f;
  border-radius: 3px; box-shadow: 1px 2px 0 #e5e5e5; padding: 18px 18px 16px;
  position: sticky; top: 10px;
}
@media (max-width: 760px) { .pd-buy { position: static; } }
.pd-title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 21px; color: #0f0f0f; margin: 0 0 2px; line-height: 1.5;
}
.pd-subtitle { font-size: 12.5px; color: #606060; margin: 0 0 10px; letter-spacing: .04em; }
.pd-price {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 30px; font-weight: bold; color: #0f0f0f; line-height: 1.2;
}
.pd-price small { font-size: 12px; color: #a2826a; font-weight: normal; }
.pd-stock {
  display: inline-block; margin: 6px 8px 8px 0; font-size: 12px; color: #fff;
  padding: 2px 12px; border-radius: 10px; letter-spacing: .08em;
}
.pd-views { font-size: 11.5px; color: #a2826a; }
.pd-tags { margin: 6px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.pd-spec { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-size: 13px; }
.pd-spec th {
  width: 32%; text-align: left; font-weight: normal; color: #606060;
  background: #f9f9f9; border: 1px solid #e5e5e5; padding: 5px 10px;
}
.pd-spec td { border: 1px solid #e5e5e5; padding: 5px 10px; color: #0f0f0f; }

.pd-paypal {
  margin-top: 10px; padding: 14px 12px 10px;
  background: #f9f9f9; border: 1px dashed #e5e5e5; border-radius: 3px;
  text-align: center;
}
.pd-paypal.cart { background: #ffffff; border-style: solid; }
.pd-paylabel { font-size: 12px; color: #0f0f0f; letter-spacing: .1em; margin: 0 0 10px; font-weight: bold; }
.pd-paynote { font-size: 11px; color: #606060; margin: 8px 0 0; line-height: 1.7; }
.pp-wrap, .pd-cartbtn { max-width: 420px; margin: 0 auto; }
.pd-soldout {
  margin-top: 10px; padding: 14px; text-align: center;
  background: #f2ede4; border: 1px solid #cfc4ae; border-radius: 3px;
  color: #7a7a7a; font-weight: bold; letter-spacing: .1em;
}
.pd-guide { font-size: 12px; margin: 12px 0 0; text-align: center; }
.pd-desc { font-size: 14.5px; line-height: 2; }
.pd-audio { margin: 10px 0 4px; }

/* ---------- 独自試聴プレーヤー（聖堂の聖盤） ---------- */
.sm-player {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #ffffff, #f9f9f9);
  border: 1px solid #e5e5e5; border-radius: 3px;
  box-shadow: inset 0 0 0 2px #ffffff, 1px 2px 0 #e5e5e5;
  padding: 10px 14px;
}
.smp-btn {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid #333333; cursor: pointer;
  background: linear-gradient(180deg, #0f0f0f, #0f0f0f);
  box-shadow: 0 0 0 1px #e5e5e5, 0 2px 4px rgba(70, 8, 28, .3);
  display: flex; align-items: center; justify-content: center;
  transition: transform .1s ease;
}
.smp-btn:active { transform: scale(.94); }
.smp-ic { display: block; }
.smp-ic.play {
  width: 0; height: 0; margin-left: 3px;
  border-left: 14px solid #ffffff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.smp-ic.pause {
  width: 12px; height: 16px;
  border-left: 4px solid #ffffff;
  border-right: 4px solid #ffffff;
}
.smp-body { flex: 1; min-width: 0; }
.smp-label { font-size: 11.5px; color: #606060; letter-spacing: .06em; margin-bottom: 5px; }
.sm-player.playing .smp-label { color: #0f0f0f; }
.smp-track {
  position: relative; height: 8px; border-radius: 5px;
  background: #e5e5e5; border: 1px solid #e5e5e5;
  cursor: pointer; touch-action: none;
}
.smp-buffer {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: #e5e5e5; border-radius: 5px;
}
.smp-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(180deg, #0f0f0f, #0f0f0f);
  border-radius: 5px;
}
.smp-knob {
  position: absolute; top: 50%; left: 0;
  width: 15px; height: 15px; border-radius: 50%;
  background: #ffffff; border: 2px solid #0f0f0f;
  box-shadow: 0 0 0 1px #e5e5e5;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.smp-time {
  display: flex; justify-content: space-between;
  font-family: "Courier New", monospace;
  font-size: 11px; color: #606060; margin-top: 4px;
}

/* ---------- 左カラム：おすすめ・人気（2列・全体が見える） ---------- */
.side-reco {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.side-reco-item {
  display: block; text-decoration: none; background: #ffffff;
  border: 1px solid #e5e5e5; border-radius: 3px; overflow: hidden;
  box-shadow: 1px 1px 0 #f9f9f9;
  position: relative;
}
.side-reco-item:hover { border-color: #e5e5e5; }
.side-reco-item img {
  width: 100%; aspect-ratio: 1 / 1; height: auto;
  object-fit: contain; object-position: center;
  display: block; background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 4px; box-sizing: border-box;
}
.side-reco-item .srt {
  display: block; font-size: 11px; color: #5e4438; padding: 4px 7px 0;
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-reco-item .srp { display: block; font-size: 12px; font-weight: bold; color: #0f0f0f; padding: 2px 7px 6px; }
.side-reco-item .pop-no {
  position: absolute; left: 4px; top: 4px; z-index: 2;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: bold; color: #ffffff;
  background: #0f0f0f; border: 1px solid #e5e5e5;
}
.side-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px; }

/* モバイル時：本文下に出る左カラムも2列を維持 */
@media (max-width: 1080px) {
  .side-left .side-reco { grid-template-columns: 1fr 1fr; max-width: 460px; margin: 0 auto; }
}

/* ---------- ブログ ---------- */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; margin: 6px 0;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: #ffffff; border: 1px solid #e5e5e5; border-radius: 3px;
  overflow: hidden; box-shadow: 1px 2px 0 #f9f9f9;
  transition: transform .12s ease, box-shadow .12s ease;
}
.blog-card:hover { transform: translateY(-2px); border-color: #e5e5e5; box-shadow: 2px 4px 0 #f9f9f9, 0 0 0 1px #e5e5e5; }
.blog-card .bc-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: #f9f9f9; border-bottom: 1px solid #e5e5e5; }
.blog-card .bc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card .bc-cat {
  display: inline-block; margin: 8px 10px 0; align-self: flex-start;
  font-size: 10.5px; color: #606060; background: #f9f9f9;
  border: 1px solid #e5e5e5; border-radius: 10px; padding: 1px 9px;
}
.blog-card .bc-title { display: block; padding: 4px 10px 0; font-size: 13.5px; font-weight: bold; color: #5e4438; line-height: 1.6; }
.blog-card .bc-date { display: block; padding: 2px 10px 10px; font-size: 11px; color: #a2826a; }
.blog-eyecatch { margin: 4px 0 12px; border: 1px solid #e5e5e5; border-radius: 3px; overflow: hidden; }
.blog-eyecatch img { width: 100%; max-height: 420px; object-fit: cover; display: block; }

/* ---------- FAQ ---------- */
.faq-item {
  background: #ffffff; border: 1px solid #e5e5e5; border-radius: 3px;
  box-shadow: 1px 2px 0 #f9f9f9; padding: 12px 14px; margin: 0 0 10px;
}
.faq-q { font-weight: bold; color: #7c2840; font-size: 14.5px; display: flex; gap: 8px; align-items: flex-start; }
.faq-a { margin-top: 6px; font-size: 13.5px; line-height: 1.9; color: #0f0f0f; display: flex; gap: 8px; align-items: flex-start; }
.fq-mark, .fa-mark {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: bold; margin-top: 2px;
}
.fq-mark { background: #0f0f0f; color: #ffffff; }
.fa-mark { background: #f9f9f9; color: #606060; border: 1px solid #e5e5e5; }

/* ---------- 法定表示テーブル ---------- */
.law-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.law-table th {
  width: 30%; text-align: left; vertical-align: top; font-weight: bold; color: #7c2840;
  background: #f9f9f9; border: 1px solid #e5e5e5; padding: 8px 12px;
}
.law-table td { border: 1px solid #e5e5e5; padding: 8px 12px; line-height: 1.8; }
@media (max-width: 560px) {
  .law-table, .law-table tr, .law-table th, .law-table td { display: block; width: 100%; box-sizing: border-box; }
  .law-table th { border-bottom: none; }
}

/* ---------- 管理室 ---------- */
.admin-body .cart-fab { display: none; }
.admin-form { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-form th {
  width: 200px; text-align: left; vertical-align: top; font-weight: bold; color: #7c2840;
  background: #f9f9f9; border: 1px solid #e5e5e5; padding: 8px 12px;
}
.admin-form th em { display: block; font-size: 10px; color: #b03030; font-style: normal; }
.admin-form td { border: 1px solid #e5e5e5; padding: 8px 12px; }
.admin-form input[type=text], .admin-form input[type=number], .admin-form input[type=password],
.admin-form select, .admin-form textarea,
.panel input[type=text], .panel input[type=password], .panel textarea {
  border: 1px solid #c8b89e; border-radius: 3px; padding: 5px 8px;
  background: #fff; color: #0f0f0f; font-size: 13.5px; font-family: inherit;
  box-sizing: border-box; max-width: 100%;
}
@media (max-width: 640px) {
  .admin-form, .admin-form tbody, .admin-form tr, .admin-form th, .admin-form td { display: block; width: 100%; box-sizing: border-box; }
}

/* アイテム一覧テーブル：横スクロールでレイアウト崩れを防止 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e5e5e5; border-radius: 3px; }
.admin-list { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 12.5px; table-layout: auto; }
.admin-list th { background: #0f0f0f; color: #ffffff; padding: 6px 10px; border: 1px solid #333333; white-space: nowrap; }
.admin-list td { border: 1px solid #e5e5e5; padding: 6px 10px; background: #ffffff; white-space: nowrap; vertical-align: middle; }
.admin-list td.cell-title { white-space: normal; min-width: 220px; max-width: 340px; }
.admin-list td.cell-ops { white-space: nowrap; }
.admin-list td.cell-ops form { display: inline-block; margin: 0 2px 0 0; }
.admin-list td.cell-ops .btn { margin: 2px 2px 2px 0; }

.admin-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.admin-img { text-align: center; font-size: 11px; color: #606060; }
.admin-img img { width: 72px; height: 72px; object-fit: cover; display: block; border: 1px solid #e5e5e5; border-radius: 3px; }
.admin-img span { display: block; margin-top: 2px; }

/* スライド管理 */
.admin-slides { display: flex; flex-direction: column; gap: 10px; }
.admin-slide {
  display: grid; grid-template-columns: 220px 1fr; gap: 12px; align-items: center;
  background: #f9f9f9; border: 1px solid #e5e5e5; border-radius: 3px; padding: 8px;
}
@media (max-width: 560px) { .admin-slide { grid-template-columns: 1fr; } }
.admin-slide img { width: 100%; aspect-ratio: 16/5; object-fit: cover; border-radius: 2px; border: 1px solid #e5e5e5; }
.admin-slide .as-ops { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-slide .as-ops form { display: inline-block; margin: 0; }
