/* RSSフィード */
.da-feed {
  width: 100%;
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  background: #ffffff;
}

.da-feed .da-feed__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 1記事 */
.da-feed .da-feed__item {
  min-height: 0;
  margin: 0;
  padding: 9px 24px;
  border-bottom: 1px solid #e4ebf2;
  background: var(--da-region-background, #ffffff);
  transition: filter 0.2s ease;
}

.da-feed .da-feed__item:last-child {
  border-bottom: 0;
}

.da-feed .da-feed__item:hover {
  filter: brightness(0.985);
}

/* 日付・地域・ショップ名 */
.da-feed .da-feed__meta {
  margin-bottom: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 3px;
  padding: 0;
  align-items: center;
  font-size: 12px;
  line-height: 1.3;
}

.da-feed .da-feed__date {
  color: #7b8da3;
}



.da-feed .da-feed__shop {
  color: #53677e;
  font-weight: 500;
}

/* タイトル */
.da-feed .da-feed__title {
  display: flex;
  width: 100%;
  gap: 16px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  color: #004c91;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.da-feed .da-feed__title:hover {
  color: #0084c9;
}

.da-feed .da-feed__title-text {
  min-width: 0;
}

/* 矢印 */
.da-feed .da-feed__arrow {
  flex-shrink: 0;
  margin-left: auto;
  color: #0088cc;
  font-size: 18px;
}

.da-feed .da-feed__excerpt {
  margin: 8px 0 0;
  color: #52657a;
  font-size: 14px;
  line-height: 1.7;
}

.da-feed .da-feed__empty {
  margin: 0;
  padding: 30px;
  color: #718096;
  text-align: center;
}

@media screen and (max-width: 600px) {
  .da-feed .da-feed__item { padding: 13px 15px; }
  .da-feed .da-feed__meta { gap: 5px; }
  .da-feed .da-feed__title { font-size: 15px; }
  .da-feed .da-feed__excerpt { font-size: 13px; }
}

/* WordPress admin shop manager */
.da-feed-admin { max-width: 1600px; }
.da-feed-admin__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 12px 0 10px; }
.da-feed-admin__heading h1 { margin: 0 0 6px; }
.da-feed-admin__heading p { margin: 0; color: #646970; }
.da-feed-admin__heading > .button { margin-top: 2px; }
.da-feed-admin__intro { margin: 8px 0 14px; }
.da-feed-admin__summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 14px 0; }
.da-feed-admin__summary > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid #dcdcde; }
.da-feed-admin__summary span { color: #50575e; }
.da-feed-admin__summary strong { font-size: 20px; }
.da-feed-admin__filters { padding: 13px; margin: 12px 0; background: #fff; border: 1px solid #dcdcde; }
.da-feed-admin__filter-grid { display: grid; grid-template-columns: minmax(280px,2fr) repeat(4,minmax(125px,1fr)); gap: 10px; align-items: end; }
.da-feed-admin__field { min-width: 0; }
.da-feed-admin__field > label:first-child { display: block; margin: 0 0 5px; font-weight: 600; }
.da-feed-admin__filters input[type="search"], .da-feed-admin__filters select, .da-feed-admin__field select, .da-feed-admin__field input:not([type="checkbox"]):not([type="radio"]), .da-feed-admin__field textarea { width: 100%; max-width: none; }
.da-feed-admin__filter-actions, .da-feed-admin__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.da-feed-admin__list-options { display: flex; justify-content: flex-end; gap: 14px; margin: 12px 0 4px; }
.da-feed-admin__list-options label { display: flex; align-items: center; gap: 6px; }
.da-feed-admin__list-options select { max-width: 210px; }
.da-feed-admin__result-count { margin: 6px 0; color: #646970; }
.da-feed-admin__table { table-layout: fixed; }
.da-feed-admin__table th, .da-feed-admin__table td { padding: 8px 9px; vertical-align: middle; overflow-wrap: anywhere; }
.da-feed-admin__table th:nth-child(1) { width: 18%; }
.da-feed-admin__table th:nth-child(2) { width: 16%; }
.da-feed-admin__table th:nth-child(3) { width: 17%; }
.da-feed-admin__table th:nth-child(4) { width: 7%; }
.da-feed-admin__table th:nth-child(5) { width: 21%; }
.da-feed-admin__table th:nth-child(6) { width: 13%; }
.da-feed-admin__table th:nth-child(7) { width: 8%; }
.da-feed-admin__point-id { display: block; margin-top: 3px; color: #646970; font-size: 12px; }
.da-feed-admin__url { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-feed-admin__enabled, .da-feed-admin__status { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.da-feed-admin__enabled.is-enabled, .da-feed-admin__status.is-normal { color: #116329; background: #edfaef; }
.da-feed-admin__enabled.is-disabled { color: #50575e; background: #f0f0f1; }
.da-feed-admin__status.is-error { color: #8a2424; background: #fcf0f1; }
.da-feed-admin__status.is-uncollected { color: #50575e; background: #f0f0f1; }
.da-feed-admin__status.is-unknown { color: #684199; background: #f6f0fa; }
.da-feed-admin__detail { margin-top: 4px; font-size: 12px; }
.da-feed-admin__detail summary { color: #8a2424; cursor: pointer; }
.da-feed-admin__detail div { max-height: 150px; overflow: auto; margin-top: 4px; padding: 7px; background: #fff8f8; border-left: 3px solid #d63638; white-space: pre-wrap; overflow-wrap: anywhere; }
.da-feed-admin__section { margin: 14px 0; padding: 0 15px 15px; background: #fff; border: 1px solid #dcdcde; }
.da-feed-admin__section h3, .da-feed-admin__section > h2 { margin: 0 -15px 14px; padding: 11px 15px; border-bottom: 1px solid #dcdcde; font-size: 15px; }
.da-feed-admin__form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; }
.da-feed-admin__field--wide { grid-column: 1 / -1; }
.da-feed-admin__field .description { margin: 5px 0 0; }
.da-feed-admin__check { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; }
.da-feed-admin__readonly { padding: 0 3px; color: #50575e; }
.da-feed-admin__readonly p { margin: 7px 0; }
.da-feed-admin__delete { max-width: 840px; border-color: #d63638; }
.da-feed-admin__delete > h2 { color: #b32d2e; }
.da-feed-admin__delete-warning { padding: 12px; border: 1px solid #d63638; background: #fcf0f1; }
.da-feed-admin__delete-warning p { margin: 4px 0 9px; }
.da-feed-admin__delete-link { color: #b32d2e !important; border-color: #d63638 !important; }
.da-feed-admin__delete-button { background: #b32d2e !important; border-color: #b32d2e !important; color: #fff !important; }
@media (max-width: 1100px) {
  .da-feed-admin__filter-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .da-feed-admin__field--search { grid-column: span 2; }
}
@media (max-width: 782px) {
  .da-feed-admin__heading { flex-direction: column; }
  .da-feed-admin__summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .da-feed-admin__filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .da-feed-admin__field--search { grid-column: 1 / -1; }
  .da-feed-admin__list-options { justify-content: flex-start; flex-wrap: wrap; }
  .da-feed-admin__table, .da-feed-admin__table tbody, .da-feed-admin__table tr { display: block; width: 100%; }
  .da-feed-admin__table { border: 0; background: transparent; box-shadow: none; }
  .da-feed-admin__table thead { display: none; }
  .da-feed-admin__table tbody tr { margin: 0 0 10px; padding: 8px 11px; border: 1px solid #dcdcde; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
  .da-feed-admin__table tbody tr td { display: grid; grid-template-columns: minmax(108px,34%) minmax(0,1fr); gap: 9px; padding: 7px 0; border: 0; border-bottom: 1px solid #f0f0f1; }
  .da-feed-admin__table tbody tr td:last-child { border-bottom: 0; }
  .da-feed-admin__table tbody tr td::before { content: attr(data-label); color: #646970; font-weight: 600; }
  .da-feed-admin__table tbody tr td[colspan] { display: block; }
  .da-feed-admin__table tbody tr td[colspan]::before { content: none; }
  .da-feed-admin__url { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .da-feed-admin__summary { gap: 6px; }
  .da-feed-admin__summary > div { padding: 8px; }
  .da-feed-admin__summary strong { font-size: 17px; }
  .da-feed-admin__filter-grid, .da-feed-admin__form-grid { grid-template-columns: minmax(0,1fr); }
  .da-feed-admin__field--search, .da-feed-admin__field--wide { grid-column: auto; }
  .da-feed-admin__table tbody tr td { grid-template-columns: 105px minmax(0,1fr); }
}

.da-feed .da-feed__badges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.da-feed .da-feed__badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 5px; background: var(--da-region-background, #f1f5f9); color: var(--da-region-color, #475569); font-size: 11px; font-weight: 700; line-height: 1.4; }

/* 画像付きvisualレイアウト。既存ショートコードの表示には適用しない。 */
.da-feed--visual .da-feed__item {
  position: relative;
  display: block;
  min-height: 0;
  padding: 6px 16px 7px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--da-region-background, #fff) 0%, var(--da-region-background, #fff) 72%, #f7fafc 100%);
}

.da-feed--visual .da-feed__item--visual-image {
  min-height: 75px;
  padding-right: 156px;
}

.da-feed--visual .da-feed__item--visual-no-image { padding-right: 16px; }

.da-feed--visual .da-feed__meta,
.da-feed--visual .da-feed__title,
.da-feed--visual .da-feed__excerpt {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.da-feed--visual .da-feed__meta { gap: 3px 7px; margin-bottom: 3px; font-size: 10.5px; line-height: 1.3; }
.da-feed--visual .da-feed__badge { padding: 1px 5px; font-size: 9.5px; }
.da-feed--visual .da-feed__title { gap: 8px; font-size: 14px; line-height: 1.38; }
.da-feed--visual .da-feed__arrow { font-size: 16px; line-height: 1.1; }
.da-feed--visual .da-feed__excerpt { margin-top: 2px; font-size: 11px; line-height: 1.35; }

.da-feed--visual .da-feed__visual {
  box-sizing: border-box;
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 12px;
  width: 124px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid #5597bb;
  border-radius: 4px;
  transform: translateY(-50%) rotate(-2deg);
  transform-origin: center;
  pointer-events: none;
}

.da-feed--visual .da-feed__shop-image {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 2px;
  object-fit: cover;
  object-position: center;
}

.da-feed--visual .da-feed__visual::after {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.42) 24%, rgba(255,255,255,.06) 62%, rgba(255,255,255,0) 100%);
  content: "";
  pointer-events: none;
}

@media screen and (max-width: 600px) {
  .da-feed--visual .da-feed__item { padding: 6px 9px 7px; }
  .da-feed--visual .da-feed__item--visual-image { min-height: 0; padding-right: 76px; }
  .da-feed--visual .da-feed__item--visual-no-image { padding-right: 9px; }
  .da-feed--visual .da-feed__meta { gap: 2px 4px; margin-bottom: 3px; font-size: 9.5px; line-height: 1.25; }
  .da-feed--visual .da-feed__badge { padding: 1px 4px; font-size: 8.5px; }
  .da-feed--visual .da-feed__title { gap: 5px; font-size: 12.5px; line-height: 1.36; }
  .da-feed--visual .da-feed__excerpt { margin-top: 2px; font-size: 10px; line-height: 1.32; }
  .da-feed--visual .da-feed__visual { right: 8px; width: 56px; border-radius: 3px; transform: translateY(-50%) rotate(-.7deg); }
  .da-feed--visual .da-feed__shop-image { border-radius: 1px; }
  .da-feed--visual .da-feed__visual::after { border-radius: 1px; background: linear-gradient(90deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.28) 25%, rgba(255,255,255,.02) 76%, transparent 100%); }
}
