/* =============================================================
 * 店舗ページ専用「婚活体験談」（2026-08-26）
 * 対象HTMLは .onet-branch-experiences 配下だけに限定
 * ============================================================= */
.onet-branch-experiences {
  --obe-accent: #e60012;
  --obe-dot: #d9dde3;
  --obe-text: #111827;
  --obe-muted: #667085;
  --obe-card-bg: #fff;
  position: relative;
  left: auto;
  width: 100%;
  margin: 0 0 48px !important;
  padding: 0;
  overflow: visible;
  color: var(--obe-text);
  background: transparent;
}

.onet-branch-experiences *,
.onet-branch-experiences *::before,
.onet-branch-experiences *::after {
  box-sizing: border-box;
}

.onet-branch-experiences__viewport {
  overflow: visible;
}

.onet-branch-experiences__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin: 0;
  padding: 0;
}

.onet-branch-experiences.is-count-2 .onet-branch-experiences__track {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(820px, 100%);
  margin-inline: auto;
}

.onet-branch-experiences.is-count-1 .onet-branch-experiences__track {
  grid-template-columns: minmax(0, 410px);
  justify-content: center;
}

.onet-branch-experiences.has-carousel .onet-branch-experiences__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.onet-branch-experiences.has-carousel .onet-branch-experiences__viewport::-webkit-scrollbar {
  display: none;
}

.onet-branch-experiences.has-carousel .onet-branch-experiences__viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.onet-branch-experiences.has-carousel .onet-branch-experiences__viewport.is-animating {
  scroll-snap-type: none;
}

.onet-branch-experiences.has-carousel .onet-branch-experiences__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  gap: 28px;
}

.onet-branch-experiences.has-carousel .onet-branch-experiences__card {
  flex: 0 0 calc((100% - 56px) / 3);
  max-width: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.onet-branch-experiences__card {
  min-width: 0;
  margin: 0;
}

.onet-branch-experiences__image-link {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #eceff2;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
}

.onet-branch-experiences__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.onet-branch-experiences__image-link:hover .onet-branch-experiences__image {
  transform: scale(1.025);
}

.onet-branch-experiences__body {
  padding: 20px 0 0;
}

.onet-branch-experiences__title {
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--obe-text) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.65 !important;
  letter-spacing: 0.01em;
}

.onet-branch-experiences__title::before,
.onet-branch-experiences__title::after {
  content: none !important;
}

.onet-branch-experiences__title a {
  color: inherit;
  text-decoration: none;
}

.onet-branch-experiences__title a:hover {
  color: var(--obe-accent);
}

.onet-branch-experiences__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
}

.onet-branch-experiences__label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border: 1px solid #cbd0d7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--obe-muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.onet-branch-experiences__controls {
  display: none;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.onet-branch-experiences__arrow,
.onet-branch-experiences__dot {
  margin: 0;
  padding: 0;
  appearance: none;
  cursor: pointer;
}

.onet-branch-experiences__arrow {
  position: absolute;
  top: var(--obe-nav-y, 120px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border: 2px solid var(--obe-accent);
  border-radius: 50%;
  outline: 0;
  box-shadow: none;
  background: #fff;
  color: var(--obe-accent);
  font-size: 0;
  line-height: 1;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.onet-branch-experiences__arrow::before {
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
}

.onet-branch-experiences__arrow::after {
  content: none;
}

.onet-branch-experiences__arrow.is-prev {
  left: -48px;
}

.onet-branch-experiences__arrow.is-prev::before {
  margin-left: 3px;
  transform: rotate(-135deg);
}

.onet-branch-experiences__arrow.is-next {
  right: -48px;
}

.onet-branch-experiences__arrow.is-next::before {
  margin-right: 3px;
  transform: rotate(45deg);
}

@media (hover: hover) {
  .onet-branch-experiences__arrow:hover {
    border-color: var(--obe-accent);
    background: var(--obe-accent);
    color: #fff;
  }
}

.onet-branch-experiences__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.onet-branch-experiences__dot {
  display: block;
  flex: 0 0 8px;
  width: 8px;
  min-width: 8px;
  height: 8px;
  min-height: 8px;
  border: 0;
  border-radius: 50%;
  outline: 0;
  box-shadow: none;
  background: var(--obe-dot);
  opacity: 1;
}

.onet-branch-experiences__dot::before,
.onet-branch-experiences__dot::after {
  content: none;
}

.onet-branch-experiences__dot.is-active {
  background: var(--obe-accent);
}

/* PC・タブレットではカード高をそろえ、タイトル行数にかかわらず
 * カテゴリシールの上辺を同じ位置に合わせる。 */
@media (min-width: 768px) {
  /* 2件時の複製カードはSP無限ループ専用。PC・タブレットは元投稿2件だけを表示。 */
  .onet-branch-experiences.is-count-2 .onet-branch-experiences__card.is-clone {
    display: none;
  }

  .onet-branch-experiences.has-carousel .onet-branch-experiences__controls {
    display: flex;
  }

  .onet-branch-experiences__card {
    display: flex;
    flex-direction: column;
  }

  .onet-branch-experiences__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
  }

  .onet-branch-experiences__labels {
    margin-top: auto;
  }
}

.onet-branch-experiences a:focus-visible,
.onet-branch-experiences button:focus-visible {
  outline: 3px solid rgba(230, 0, 18, 0.35);
  outline-offset: 4px;
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .onet-branch-experiences {
    margin-bottom: 40px !important;
  }

  .onet-branch-experiences__track {
    gap: 20px;
  }

  .onet-branch-experiences.has-carousel .onet-branch-experiences__track {
    gap: 24px;
  }

  .onet-branch-experiences.has-carousel .onet-branch-experiences__card {
    flex-basis: calc((100% - 24px) / 2);
  }

  .onet-branch-experiences__arrow.is-prev {
    left: -36px;
  }

  .onet-branch-experiences__arrow.is-next {
    right: -36px;
  }

  .onet-branch-experiences__image-link {
    border-radius: 18px;
  }

  .onet-branch-experiences__body {
    padding-top: 16px;
  }

  .onet-branch-experiences__label {
    padding-inline: 9px;
    font-size: 12px;
  }
}

@media (max-width: 767.98px) {
  .onet-branch-experiences {
    left: auto;
    width: 100%;
    margin: 0 0 30px !important;
    padding: 0;
    background: transparent;
  }

  .onet-branch-experiences__viewport {
    width: 100%;
    padding-inline: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    /* 矢印移動はJSで周辺情報と同じ420ms補間を行うため、二重smoothを避ける。 */
    scroll-behavior: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .onet-branch-experiences__viewport::-webkit-scrollbar {
    display: none;
  }

  /* JS側の420msアニメーション中はブラウザ標準smooth/snapとの二重制御を止める。 */
  .onet-branch-experiences.has-loop .onet-branch-experiences__viewport.is-animating,
  .onet-branch-experiences.has-loop .onet-branch-experiences__viewport.is-dragging {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .onet-branch-experiences__track,
  .onet-branch-experiences.is-count-1 .onet-branch-experiences__track,
  .onet-branch-experiences.is-count-2 .onet-branch-experiences__track {
    display: flex;
    width: auto;
    margin: 0;
    gap: 16px;
  }

  .onet-branch-experiences__card {
    flex: 0 0 100%;
    padding: 22px;
    border-radius: 28px;
    background: #fff;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .onet-branch-experiences.has-carousel .onet-branch-experiences__card {
    flex-basis: 100%;
  }

  .onet-branch-experiences__image-link {
    border-radius: 20px;
    box-shadow: none;
  }

  .onet-branch-experiences__image {
    aspect-ratio: 4 / 3;
  }

  .onet-branch-experiences__body {
    padding: 17px 0 0;
  }

  .onet-branch-experiences__title {
    margin-bottom: 12px !important;
    font-size: min(3.8vw, 16px) !important;
    line-height: 1.6 !important;
  }

  .onet-branch-experiences__labels {
    gap: 6px;
  }

  .onet-branch-experiences__label {
    min-height: 23px;
    padding: 2px 9px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 12px;
  }

  .onet-branch-experiences:not(.is-count-1) .onet-branch-experiences__controls {
    --obe-accent: var(--color_deep01);
    --obe-dot: var(--onet-palette-control-muted, var(--color_pale01));
    display: flex;
    margin-top: 32px;
  }

  .onet-branch-experiences__arrow {
    background: var(--onet-slider-button-background, var(--color_pale01));
    border-color: var(--onet-slider-button-border, var(--color_deep01));
    color: var(--onet-slider-button-icon, var(--color_deep01));
    transform: translateY(calc(-50% - 4px));
  }

  .onet-branch-experiences__arrow:is(:hover, :focus-visible) {
    background: var(--onet-slider-button-hover-background, var(--color_pale01));
    color: var(--onet-slider-button-hover-icon, var(--color_deep01));
  }

  .onet-branch-experiences__controls button:focus-visible {
    outline-color: var(--color_deep01);
  }

  .onet-branch-experiences__arrow.is-prev {
    left: -4px;
  }

  .onet-branch-experiences__arrow.is-next {
    right: -4px;
  }

  .onet-branch-experiences__dot {
    transition: background-color 0.2s ease, transform 0.2s ease;
  }

  .onet-branch-experiences__dot.is-active {
    transform: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .onet-branch-experiences__viewport {
    scroll-behavior: auto !important;
  }

  .onet-branch-experiences__image,
  .onet-branch-experiences__dot {
    transition: none !important;
  }
}
