@charset "utf-8";

/* ==================================================
   公式トップ：ヒーロースライダー＋営業案内
   既存ページとの衝突を避けるため、このパーツ内だけに適用
================================================== */

.ohtaya-top-pickup,
.ohtaya-top-pickup *,
.ohtaya-top-pickup *::before,
.ohtaya-top-pickup *::after {
  box-sizing: border-box;
}

.ohtaya-top-pickup {
  --otp-main: #7a342f;
  --otp-text: #2f2b29;
  --otp-notice: #fff8ce;
  --otp-radius: 18px;
  --otp-shadow: 0 12px 32px rgba(53, 43, 35, .1);
  --otp-content-width: 950px;

  /* 狭い旧カラム内へ置いても画面幅いっぱいに広げる */
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  color: var(--otp-text);
  overflow: hidden;
  font-family: inherit;
}

/* ヒーロースライダー */
.ohtaya-top-pickup__hero {
  position: relative;
  padding-top: 20px;
}

.ohtaya-top-pickup__viewport {
  position: relative;
  display: flex;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 12px max(24px, calc((100vw - min(76vw, 960px)) / 2));
  overflow-x: auto;
  overflow-y: hidden;
  background: transparent;
  cursor: grab;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-y;
}

.ohtaya-top-pickup__viewport::-webkit-scrollbar {
  display: none;
}

.ohtaya-top-pickup__viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.ohtaya-top-pickup__viewport.is-positioning {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.ohtaya-top-pickup__viewport.is-dragging a {
  pointer-events: none;
}

.ohtaya-top-pickup__slide {
  position: relative;
  flex: 0 0 min(76vw, 960px);
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #e8e3dd;
  border-radius: var(--otp-radius);
  box-shadow: var(--otp-shadow);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transform: scale(.94);
  filter: brightness(.72);
  transition: transform .4s ease, filter .4s ease;
}

.ohtaya-top-pickup__slide.is-active {
  z-index: 1;
  transform: scale(1);
  filter: none;
}

.ohtaya-top-pickup__slide picture,
.ohtaya-top-pickup__slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.ohtaya-top-pickup__slide img {
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.ohtaya-top-pickup__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
}

.ohtaya-top-pickup__arrow,
.ohtaya-top-pickup__dot {
  border: 0;
  cursor: pointer;
}

.ohtaya-top-pickup__arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--otp-text);
  background: #f2efeb;
  border-radius: 50%;
  font: inherit;
  font-size: 22px;
  line-height: 1;
}

.ohtaya-top-pickup__arrow:hover,
.ohtaya-top-pickup__arrow:focus-visible {
  background: #e7e1db;
}

.ohtaya-top-pickup__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ohtaya-top-pickup__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  background: #c9c2ba;
  border-radius: 50%;
}

.ohtaya-top-pickup__dot.is-active {
  width: 26px;
  background: var(--otp-main);
  border-radius: 999px;
}

/* 黄色い営業案内 */
.ohtaya-top-pickup__notices {
  width: min(calc(100% - 40px), var(--otp-content-width));
  margin: 24px auto;
  overflow: hidden;
  background: var(--otp-notice);
  border: 1px solid #f0e4a8;
  border-radius: 10px;
}

.ohtaya-top-pickup__notice-item + .ohtaya-top-pickup__notice-item {
  border-top: 1px solid rgba(164, 136, 38, .18);
}

.ohtaya-top-pickup__notice-button {
  display: grid;
  grid-template-columns: 96px 110px minmax(0, 1fr) 24px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 7px 16px;
  color: var(--otp-text);
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ohtaya-top-pickup__notice-button:hover,
.ohtaya-top-pickup__notice-button:focus-visible {
  background: rgba(255, 255, 255, .45);
}

.ohtaya-top-pickup__notice-category {
  width: fit-content;
  padding: 3px 8px;
  color: #695615;
  background: rgba(255, 255, 255, .7);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}

.ohtaya-top-pickup__notice-date {
  color: #796f55;
  font-size: 16px;
}

.ohtaya-top-pickup__notice-title {
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 旧ページ側の span 装飾を打ち消し、語句単位の改行制御だけを残す */
.ohtaya-top-pickup__notice-title > .text-phrase {
  all: unset !important;
  display: inline-block !important;
  box-sizing: border-box !important;
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  white-space: nowrap !important;
}

.ohtaya-top-pickup__notice-title > .text-phrase::before,
.ohtaya-top-pickup__notice-title > .text-phrase::after {
  display: none !important;
  content: none !important;
}

.ohtaya-top-pickup__notice-arrow {
  font-size: 22px;
  text-align: right;
}

/* お知らせ詳細モーダル */
body.otp-modal-open {
  overflow: hidden;
}

.ohtaya-top-pickup-dialog,
.ohtaya-top-pickup-dialog *,
.ohtaya-top-pickup-dialog *::before,
.ohtaya-top-pickup-dialog *::after {
  box-sizing: border-box;
}

.ohtaya-top-pickup-dialog {
  position: fixed !important;
  inset: 50% auto auto 50% !important;
  width: min(calc(100% - 32px), 680px);
  min-width: 0 !important;
  max-width: 680px !important;
  max-height: min(86vh, 760px);
  max-height: min(86dvh, 760px);
  margin: 0 !important;
  padding: 0;
  color: var(--otp-text, #2f2b29);
  background: #fff;
  border: 0;
  border-radius: var(--otp-radius, 18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
  overflow: auto;
  overscroll-behavior: contain;
  transform: translate(-50%, -50%);
}

.ohtaya-top-pickup-dialog[open] {
  display: block !important;
}

.ohtaya-top-pickup-dialog::backdrop {
  background: rgba(24, 21, 19, .72);
  backdrop-filter: blur(3px);
}

.ohtaya-top-pickup-dialog__close {
  position: sticky;
  z-index: 2;
  top: 14px;
  float: right;
  width: 44px;
  height: 44px;
  margin: 14px 14px -58px 0;
  padding: 0;
  color: #fff;
  background: rgba(30, 27, 25, .75);
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.ohtaya-top-pickup-dialog__image {
  aspect-ratio: 16 / 8;
  margin: 0;
  background: #eee;
}

.ohtaya-top-pickup-dialog__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ohtaya-top-pickup-dialog__body {
  padding: 30px 34px 36px;
}

.ohtaya-top-pickup-dialog__meta {
  margin: 0 0 9px;
  color: var(--otp-main, #7a342f);
  font-size: 16px;
  font-weight: 700;
}

.ohtaya-top-pickup-dialog h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: clamp(19px, 4vw, 32px);
  line-height: 1.5;
  text-align: left !important;
}

.ohtaya-top-pickup-dialog h2::before,
.ohtaya-top-pickup-dialog h2::after {
  display: none !important;
  content: none !important;
}

/* 旧CSSの h2 span 指定をモーダル見出し内だけ完全に無効化 */
.ohtaya-top-pickup-dialog h2 span {
  all: unset !important;
  display: inline-block !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

.ohtaya-top-pickup-dialog h2 span::before,
.ohtaya-top-pickup-dialog h2 span::after {
  display: none !important;
  content: none !important;
}

.ohtaya-top-pickup-dialog__body p {
  font-size: 16px;
  line-height: 1.9;
  margin-top: 10px;
}

.ohtaya-top-pickup-dialog__action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 10px 20px;
  color: #fff !important;
  background: var(--otp-main, #7a342f);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
}

/* 営業案内を開いた直後に要点が把握できる要約枠 */
.ohtaya-top-pickup-dialog__summary {
  margin: 22px 0;
  padding: 18px 20px;
  background: #f8f5f1;
  border-left: 4px solid var(--otp-main, #7a342f);
  border-radius: 8px;
}

.ohtaya-top-pickup-dialog__summary p {
  margin: 0;
}

.ohtaya-top-pickup-dialog__summary p + p {
  margin-top: 6px;
}

.ohtaya-top-pickup-dialog__schedule {
  margin: 0;
}

.ohtaya-top-pickup-dialog__schedule > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
}

.ohtaya-top-pickup-dialog__schedule > div + div {
  border-top: 1px solid #ded8d1;
}

.ohtaya-top-pickup-dialog__schedule dt,
.ohtaya-top-pickup-dialog__schedule dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.ohtaya-top-pickup-dialog__note {
  padding-left: 1em;
  color: #5f5852;
  text-indent: -1em;
}

@media screen and (max-width: 900px) {
  .ohtaya-top-pickup__hero {
    padding-top: 10px;
  }

  .ohtaya-top-pickup__viewport {
    gap: 12px;
    padding: 8px 14px;
  }

  .ohtaya-top-pickup__slide {
    flex-basis: calc(100vw - 28px);
    aspect-ratio: 4 / 3;
    transform: none;
    filter: none;
  }

  .ohtaya-top-pickup__notices {
    width: calc(100% - 28px);
    margin-top: 18px;
  }

  .ohtaya-top-pickup__notice-button {
    grid-template-columns: minmax(0, 1fr) 20px;
    grid-template-areas:
      "category arrow"
      "title    arrow";
    gap: 4px 10px;
    min-height: 58px;
    padding: 9px 12px 10px;
  }

  .ohtaya-top-pickup__notice-category {
    grid-area: category;
  }

  .ohtaya-top-pickup__notice-date {
    display: none;
  }

  .ohtaya-top-pickup__notice-title {
    grid-area: title;
    overflow: visible;
    line-height: 1.5;
    white-space: normal;
    text-overflow: clip;
  }

  .ohtaya-top-pickup__notice-arrow {
    grid-area: arrow;
    align-self: center;
  }
}

@media screen and (max-width: 600px) {
  .ohtaya-top-pickup-dialog__body {
    padding: 26px 22px 30px;
  }

  .ohtaya-top-pickup-dialog__summary {
    padding: 15px 16px;
  }

  .ohtaya-top-pickup-dialog__schedule > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ohtaya-top-pickup__viewport,
  .ohtaya-top-pickup__slide {
    scroll-behavior: auto;
    transition: none !important;
  }
}
