/* ============================================================
   File: Decio/css/decio-public.css（全部差し替え｜PUBLIC + 店舗更新安定化）
   ------------------------------------------------------------
   Decio Phase1｜PUBLIC / 店舗更新 共通表示CSS
   ------------------------------------------------------------
   【責務一覧】
   1. PUBLIC結果ページの基本レイアウトを整える
   2. 画像を横撮影前提の固定比率で表示する
   3. 複数画像スライダーの見た目を整える
   4. スマホ表示時の余白・高さ・ドット位置を調整する
   5. テーマ既定の button / table / select 装飾干渉を遮断する
   6. 店名・商品名・更新日の情報階層を整える
   7. 店舗更新ページの表・ボタン・セレクト・QR枠を安定表示する
   ------------------------------------------------------------
   【今回の修正】
   1. 既存PUBLIC用CSSを維持
   2. shop-update-shortcode.php の出力 class に直接対応
   3. decio-shop-update-table の罫線・余白・背景を追加
   4. 詳細更新ボタン / 更新ボタン / select のテーマ干渉を抑制
   5. QR枠・反応枠・通知枠の見た目を整える
   ------------------------------------------------------------
   【変更方針】
   ・既存class名は維持
   ・HTML構造は変更しない
   ・テーマ依存を減らすため、Decio側CSSで表示責務を持つ
   ============================================================ */

/* ------------------------------------------------------------
   PUBLIC 基本
------------------------------------------------------------ */

.decio-public {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px;
  box-sizing: border-box;
}

.decio-public__header {
  margin: 0 0 10px;
  padding: 0;
  display: block;
}

.decio-public__header > *:first-child {
  margin-top: 0;
}

.decio-public__header > *:last-child {
  margin-bottom: 0;
}

.decio-public__title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
}

.decio-public__shop {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
  color: #444;
}

.decio-public__item {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: #111;
}

.decio-public__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
}

.decio-public__media {
  position: relative;
  margin: 12px 0 18px;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;
}

.decio-public__media:empty {
  display: none;
  margin: 0;
}

.decio-public__header + .decio-public__body {
  margin-top: 0;
}

.decio-public__image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #f5f5f5;
}

.decio-public__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* ------------------------------------------------------------
   Slider
------------------------------------------------------------ */

.decio-public__slider {
  position: relative;
  touch-action: pan-y;
  overflow: hidden;
}

.decio-public__track {
  display: flex;
  width: 100%;
  transition: transform 420ms ease;
  will-change: transform;
}

.decio-public__slide {
  min-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* ------------------------------------------------------------
   PUBLIC Table
------------------------------------------------------------ */

.decio-public__body {
  margin: 0;
  padding: 0;
}

.decio-public__table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.decio-public__row th,
.decio-public__row td {
  border: 1px solid #d8d8d8;
  padding: 12px 10px;
  vertical-align: middle;
  word-break: break-word;
}

.decio-public__label {
  width: 42%;
  text-align: left;
  font-weight: 700;
  background: #fafafa;
}

.decio-public__value {
  width: 58%;
  text-align: left;
  background: #fff;
}

.decio-public__note {
  margin: 10px 0 0;
}

.decio-public__note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #666;
}

/* ------------------------------------------------------------
   Dots
------------------------------------------------------------ */

.decio-public__dots {
  position: absolute;
  inset: auto 0 12px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 5;
  pointer-events: none;
  line-height: 1;
}

.decio-public__dots .decio-dot {
  all: unset;
  display: block;
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  pointer-events: auto;
  flex: 0 0 10px;
}

.decio-public__dots .decio-dot[aria-current="true"] {
  background: rgba(255, 255, 255, 0.95);
}

/* ------------------------------------------------------------
   店舗更新ページ 共通
------------------------------------------------------------ */

.decio-shop-update-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px;
  box-sizing: border-box;
}

.decio-shop-update-wrap *,
.decio-public * {
  box-sizing: border-box;
}

.decio-shop-update-wrap .decio-notice,
.decio-public .decio-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  line-height: 1.8;
  color: #374151;
}

/* QR枠・反応枠のinline styleをベースに、テーマ差分だけ補正 */
.decio-shop-update-wrap code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* ------------------------------------------------------------
   店舗更新テーブル
------------------------------------------------------------ */

.decio-shop-update {
  margin: 0;
  padding: 0;
}

.decio-shop-update-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed;
  background: #fff;
}

.decio-shop-update-table thead th {
  border: 1px solid #d8d8d8 !important;
  padding: 14px 12px !important;
  text-align: left !important;
  vertical-align: middle !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
  color: #111 !important;
  background: #fafafa !important;
}

.decio-shop-update-table tbody td {
  border: 1px solid #d8d8d8 !important;
  padding: 14px 12px !important;
  text-align: left !important;
  vertical-align: middle !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #111 !important;
  background: #fff !important;
}

.decio-shop-update-table thead th:first-child,
.decio-shop-update-table tbody td:first-child {
  width: 42%;
}

.decio-shop-update-table thead th:last-child,
.decio-shop-update-table tbody td:last-child {
  width: 58%;
}

/* ------------------------------------------------------------
   店舗更新フォーム部品
------------------------------------------------------------ */

.decio-shop-update select {
  min-width: 160px;
  max-width: 100%;
  padding: 8px 36px 8px 10px !important;
  border: 1px solid #cfcfcf !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  appearance: auto;
}

.decio-shop-update button,
.decio-shop-update input[type="submit"],
.decio-shop-update a {
  font: inherit;
}

.decio-shop-update a {
  color: #111;
}

.decio-shop-update a[href] {
  text-decoration: none;
}

.decio-shop-update a[href],
.decio-shop-update button[type="submit"] {
  display: inline-block;
  padding: 10px 14px !important;
  border: 1px solid #111 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #111 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

.decio-shop-update button[type="submit"] {
  cursor: pointer;
}

.decio-shop-update p {
  margin: 20px 0 0;
}

/* ------------------------------------------------------------
   PC
------------------------------------------------------------ */

@media (min-width: 768px) {
  .decio-public__image-box {
    aspect-ratio: 16 / 9;
  }

  .decio-public__dots {
    inset: auto 0 14px 0;
  }
}

/* ------------------------------------------------------------
   スマホ
------------------------------------------------------------ */

@media (max-width: 767px) {
  .decio-public {
    padding: 10px;
  }

  .decio-shop-update-wrap {
    padding: 10px;
  }

  .decio-public__header {
    margin: 0 0 8px;
  }

  .decio-public__title {
    margin: 0 0 8px;
    font-size: 20px;
  }

  .decio-public__shop {
    margin: 0 0 5px;
    font-size: 13px;
  }

  .decio-public__item {
    margin: 0 0 5px;
    font-size: 16px;
  }

  .decio-public__meta {
    font-size: 12px;
  }

  .decio-public__media {
    margin: 10px 0 16px;
    border-radius: 14px;
  }

  .decio-public__image-box {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
  }

  .decio-public__slide {
    padding: 0;
    box-sizing: border-box;
  }

  .decio-public__slide img {
    transition: transform 6s ease;
  }

  .decio-public__slide.is-active img {
    transform: scale(1.08);
  }

  .decio-public__dots {
    inset: auto 0 10px 0;
    gap: 7px;
  }

  .decio-public__dots .decio-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
  }

  .decio-public__row th,
  .decio-public__row td {
    padding: 11px 8px;
    font-size: 14px;
  }

  .decio-public__label {
    width: 45%;
  }

  .decio-public__value {
    width: 55%;
  }

  .decio-public__note p {
    font-size: 11px;
  }

  .decio-shop-update-table thead th,
  .decio-shop-update-table tbody td {
    padding: 12px 8px !important;
    font-size: 14px !important;
  }

  .decio-shop-update-table thead th:first-child,
  .decio-shop-update-table tbody td:first-child {
    width: 44%;
  }

  .decio-shop-update-table thead th:last-child,
  .decio-shop-update-table tbody td:last-child {
    width: 56%;
  }

  .decio-shop-update select {
    width: 100%;
    min-width: 0;
    font-size: 14px !important;
  }

  .decio-shop-update a[href],
  .decio-shop-update button[type="submit"] {
    padding: 9px 12px !important;
    font-size: 13px !important;
  }
}

/* ------------------------------------------------------------
   アクセシビリティ
------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .decio-public__track,
  .decio-public__slide img {
    transition: none;
  }

  .decio-public__slide.is-active img {
    transform: none !important;
  }
}
