/* 厳選こだわり本舗の見た目に戻す（フードセーバー緑テーマの上書き） */

.head_line {
  background-color: var(--u8ynp2) !important;
}

.head_line a.head-line-link {
  display: block;
  max-width: 100%;
  min-width: 0;
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.head_line a.head-line-link:hover {
  color: #fff !important;
  text-decoration: underline;
}

.header {
  height: auto !important;
  background-color: #fff;
}

body {
  padding-top: 0 !important;
}

.newcontainer {
  /* 固定ヘッダーの実高さ。ヘッダー末尾のスクリプトが --header-offset を上書きする */
  margin-top: var(--header-offset, 188px);
}

.mypattern {
  margin-top: 0 !important;
}

.header_wrap {
  display: flex;
}

.research_SP,
.header-sp-tools {
  display: none;
}

.view_pc {
  width: 100vw;
}

/* 小さい赤い丸の「厳選動画一覧」。右下に浮かせて上下に動かす */
.youtube_bottom_btn {
  position: fixed;
  right: 108px;
  bottom: 88px;
  width: auto !important;
  margin: 0 !important;
  z-index: 500;
  text-align: right;
}

.youtube_bottom_btn .gensen-yt-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  padding: 12px 10px 12px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--u8ynp2, #a71e2d);
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  text-align: center;
  line-height: 1.3;
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  animation: gensen-yt-float 1.8s ease-in-out infinite alternate;
}

.youtube_bottom_btn .gensen-yt-circle i {
  font-size: 30px;
  margin-bottom: 2px;
  line-height: 1;
}

.youtube_bottom_btn .gensen-yt-circle:hover {
  color: #fff !important;
  text-decoration: none;
  filter: brightness(1.06);
}

.youtube_bottom_btn.is-hidden {
  display: none !important;
}

/* 先頭画像を過ぎたら、上へ戻るボタンの左に横長で出す */
.youtube_scroll_btn {
  display: none;
  position: fixed;
  right: 80px;
  bottom: 10px;
  z-index: 500;
  margin: 0;
}

.youtube_scroll_btn.is-visible {
  display: block;
}

.youtube_scroll_btn .gensen-yt-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 250px;
  height: 60px;
  padding: 0 16px;
  box-sizing: border-box;
  background: var(--u8ynp2, #a71e2d);
  color: #fff !important;
  text-decoration: none;
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.youtube_scroll_btn .gensen-yt-bar i {
  font-size: 34px;
  line-height: 1;
}

.youtube_scroll_btn .gensen-yt-bar:hover {
  color: #fff !important;
  text-decoration: none;
  filter: brightness(1.06);
}

@keyframes gensen-yt-float {
  from { transform: translateY(6px); }
  to { transform: translateY(-10px); }
}

@media (max-width: 768px) {
  .youtube_bottom_btn {
    right: 20px;
    bottom: 78px;
  }

  .youtube_bottom_btn .gensen-yt-circle {
    width: 108px;
    height: 108px;
    font-size: 14px;
    letter-spacing: 0.02em;
  }

  .youtube_bottom_btn .gensen-yt-circle i {
    font-size: 24px;
  }

  .youtube_scroll_btn {
    right: 76px;
    bottom: 10px;
  }

  .youtube_scroll_btn .gensen-yt-bar {
    width: 220px;
    height: 52px;
    padding: 0 12px;
    font-size: 15px;
    gap: 8px;
  }

  .youtube_scroll_btn .gensen-yt-bar i {
    font-size: 26px;
  }
}

.gensen-empty-note {
  text-align: center;
  color: #777;
  font-size: 14px;
  padding: 32px 16px;
}

.point-item .point {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

@media (max-width: 768px) {
  :root {
    --headerH: 0px;
  }

  .head_line,
  .header_wrap {
    display: none !important;
  }

  /* 固定ヘッダーだと高さが合わず本文と重なるので、流れに乗せる */
  .header {
    position: sticky !important;
    top: 0;
    left: 0;
    right: 0;
    height: auto !important;
    overflow: visible;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  }

  .newcontainer,
  .mypattern,
  .cart-page.wc-container,
  .content-frame.wc-container,
  body.is-mypage .wc-container {
    margin-top: 0 !important;
  }

  /* 1行目：ロゴ＋アイコン＋ハンバーガー */
  .header-sp-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center !important;
    justify-content: space-between;
    width: 100%;
    height: auto !important;
    min-height: 64px;
    max-height: none;
    padding: 6px 6px 6px 8px;
    box-sizing: border-box;
    overflow: hidden;
    background: #fff !important;
    gap: 6px;
  }

  .header-sp-wrap .logo-wrap-sp {
    display: flex;
    align-items: center;
    height: auto !important;
    padding: 0 4px !important;
    margin: 0 !important;
    flex: 0 0 auto;
    gap: 0;
  }

  .header-sp-wrap .logo {
    width: 86px !important;
    height: auto !important;
    max-height: 44px !important;
    padding: 0 !important;
    object-fit: contain;
  }

  .header-sp-wrap .menu-wrap {
    display: flex !important;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    height: 100%;
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-sp-wrap .head-btn {
    display: flex !important;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px !important;
    min-width: 0;
  }

  .header-sp-wrap .icon-btn {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px !important;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
    text-decoration: none;
    color: #333;
    flex: 0 0 auto;
  }

  .header-sp-wrap .icon-btn img,
  .header-sp-wrap .icon,
  .header-sp-wrap .cart-SP {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain;
    display: block;
  }

  .header-sp-wrap .icon-btn .text-wrapper {
    display: block !important;
    width: auto;
    margin: 0;
    padding: 0;
    font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
    font-size: 8px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    color: #333;
  }

  .header-sp-wrap .menu_hum_wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 36px;
    height: auto;
    padding: 0 2px;
  }

  .header-sp-wrap .menu_hum_wrap p {
    position: static;
    left: auto;
    bottom: auto;
    margin: 0;
    font-size: 8px;
    line-height: 1;
    color: #9f212d;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .header-sp-wrap .openbtn {
    position: relative;
    z-index: 9999;
    width: auto !important;
    min-width: 36px;
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .header-sp-wrap .openbtn > div {
    position: relative;
    width: 22px;
    height: 16px;
  }

  .header-sp-wrap .openbtn span {
    display: block;
    position: absolute;
    left: 0;
    width: 22px !important;
    height: 2px;
    margin: 0;
    border-radius: 2px;
    background-color: #9f212d !important;
  }

  .header-sp-wrap .openbtn span:nth-of-type(1) { top: 1px; }
  .header-sp-wrap .openbtn span:nth-of-type(2) { top: 7px; }
  .header-sp-wrap .openbtn span:nth-of-type(3) { top: 13px; }

  .header-sp-wrap .openbtn.active span:nth-of-type(1),
  .header-sp-wrap .openbtn.active span:nth-child(1) {
    top: 7px;
    left: 0;
    transform: rotate(-45deg);
    width: 22px !important;
  }

  .header-sp-wrap .openbtn.active span:nth-of-type(2),
  .header-sp-wrap .openbtn.active span:nth-child(2) {
    opacity: 0;
  }

  .header-sp-wrap .openbtn.active span:nth-of-type(3),
  .header-sp-wrap .openbtn.active span:nth-child(3) {
    top: 7px;
    left: 0;
    transform: rotate(45deg);
    width: 22px !important;
  }

  .header-sp-wrap .openbtn.active span {
    background-color: #fff !important;
  }

  /* 2〜3行目：検索＋カテゴリ */
  .header-sp-tools {
    display: block;
    width: 100%;
    background: #fff;
  }

  .research,
  .research.research_SP,
  .research_SP,
  .header-sp-search {
    display: flex !important;
    align-items: stretch;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    box-sizing: border-box;
    background: #fff;
  }

  .header-sp-search .key,
  .research_SP .key,
  .research_SP input.key {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #e6e6e6;
    border-right: 0;
    background: #f7f7f7;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 0;
  }

  .header-sp-search .frame-25,
  .research_SP .frame-25 {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #9f212d;
    border: 0;
  }

  .header-sp-search .search,
  .research_SP .search {
    width: 20px;
    height: 20px;
  }

  .header-sp-category {
    display: block !important;
    width: 100%;
    padding: 0 !important;
    background: #fff;
  }

  .header-sp-category > ul {
    list-style: none;
    display: flex !important;
    align-items: center;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 12px !important;
    min-height: 44px;
    background: #fff;
    border: 0 !important;
    border-top: 1px solid #eee !important;
    box-sizing: border-box;
    gap: 0;
  }

  .header-sp-category .nav-item {
    position: relative;
    width: 100%;
  }

  .header-sp-category .dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    width: 100%;
    margin: 0;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }

  .header-sp-category .dropdown-menu.show {
    display: block !important;
  }

  .header-sp-category .dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #333;
    white-space: nowrap;
  }

  .header-sp-category .nav-link {
    display: flex !important;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333 !important;
    text-decoration: none;
  }

  /* フードセーバー時代の leftover を打ち消す */
  .header-sp-wrap .fs-search-main,
  .header-sp-wrap .fs-category-bar,
  .sp-category-bar,
  .sp-topbar {
    display: none !important;
  }

  /* ハンバーガーパネル：display:contents / none で壊れているのを戻す */
  #g-nav {
    display: block !important;
    position: fixed !important;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  #g-nav.panelactive {
    display: flex !important;
    opacity: 1 !important;
    z-index: 9000 !important;
    pointer-events: auto;
    margin-left: 20vw;
    padding: 20px;
    width: 80vw;
    align-items: flex-start;
  }

  #g-nav.panelactive #g-nav-list {
    display: flex;
    width: 100%;
    max-height: 100%;
    overflow: auto;
  }

  @media (max-width: 380px) {
    .header-sp-wrap .logo {
      width: 72px !important;
    }

    .header-sp-wrap .menu-wrap,
    .header-sp-wrap .head-btn {
      gap: 4px !important;
    }

    .header-sp-wrap .icon-btn .text-wrapper,
    .header-sp-wrap .menu_hum_wrap p {
      font-size: 7px;
    }
  }
}

/* お知らせ一覧：見出し上下と白い箱の余白を詰め、枠を広げる */
.content-frame.wc-container {
  margin-top: 0;
  margin-bottom: 24px;
  padding: 0 32px 24px;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}
.content-frame .wc-tittlecontainer,
.content-frame .white-container {
  max-width: 1280px;
  width: 100%;
  box-sizing: border-box;
}
.content-frame .wc-tittlecontainer {
  padding: 4px 0 8px;
}
.content-frame .white-container {
  padding: 28px 32px 32px;
}
.content-frame .wc-back {
  padding-top: 16px;
}
.content-frame .table_news th {
  padding: 14px 0;
}
.notice-detail {
  width: min(1100px, calc(100% - 32px));
  margin: 8px auto 40px;
}

/* カートの枠。本文中の style より先に当て、読み込み時の古いレイアウトのちらつきを防ぐ */
.cart-page.wc-container {
  margin-top: 0;
  margin-bottom: 24px;
  padding: 0 32px 24px;
  box-sizing: border-box;
}
.cart-page .wc-tittlecontainer,
.cart-page .white-container {
  max-width: 1280px;
  width: 100%;
  box-sizing: border-box;
}
.cart-page .wc-tittlecontainer {
  padding: 4px 0 8px;
}
.cart-page .white-container {
  padding: 24px 40px 32px;
}
.cart-page .newcart_btn {
  margin-top: 24px;
}
@media (max-width: 1150px) {
  .cart-page.wc-container {
    margin-top: 0 !important;
    padding: 0 20px 24px;
  }
  .cart-page .wc-tittlecontainer,
  .cart-page .white-container {
    max-width: 100%;
  }
  .cart-page .white-container {
    padding: 20px 24px 24px;
  }
  .cart-page .wc-tittlecontainer {
    padding: 4px 0 8px;
  }
}
@media (max-width: 680px) {
  .cart-page.wc-container {
    margin-top: 0 !important;
    padding: 0 12px 16px;
  }
  .cart-page .white-container {
    padding: 16px;
  }
  .cart-page .wc-tittlecontainer {
    padding: 4px 0 8px;
  }
}
@media (max-width: 1150px) {
  .content-frame.wc-container {
    margin-top: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
  .content-frame .wc-tittlecontainer,
  .content-frame .white-container {
    max-width: 100%;
  }
  .content-frame .white-container {
    padding: 20px 16px 24px;
  }
}
@media (max-width: 680px) {
  .content-frame.wc-container {
    margin-top: 0;
    padding-left: 12px;
    padding-right: 12px;
  }
  .content-frame .white-container {
    padding: 16px;
  }
  .content-frame .wc-tittlecontainer {
    padding: 4px 0 8px;
  }
  .notice-detail {
    width: calc(100% - 24px);
    margin-top: 4px;
  }
}

/* PCヘッダー：ログイン時にポイント等が入っても詰まらないよう、検索と余白に幅を持たせる */
@media (min-width: 1151px) {
  .header_wrap {
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    gap: 24px;
    padding: 10px 28px 14px;
  }

  .nav_logo {
    flex: 0 0 auto;
    width: auto;
  }

  .hedaer_logo {
    width: 188px;
  }

  .nav_menu {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .hedaer_top {
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 12px;
  }

  .header_wrap.is-auth .hedaer_top {
    gap: 32px;
  }

  .nav_menu .research-sp {
    flex: 0 1 360px;
    width: auto;
    min-width: 260px;
    max-width: 400px;
  }

  .header_wrap.is-auth .research-sp {
    flex: 1 1 300px;
    min-width: 220px;
    max-width: 400px;
  }

  .nav_menu .research-sp .key {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .header_wrap.is-auth .point-wrap,
  .header_wrap.is-auth .login_wrap,
  .header_wrap.is-auth .member_wrap {
    flex-shrink: 0;
  }

  .header_wrap.is-auth .point-wrap {
    gap: 12px;
  }

  .header_wrap.is-auth .point-item .point {
    width: 32px;
    height: 32px;
  }

  .header-nav .menu {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 36px;
  }

  .header-nav .menu_list {
    gap: 28px;
  }
}

/* PC: キーワード検索をロゴ右の空きへ左寄せ。ゲスト名・ログインは右端のまま */
@media (min-width: 769px) {
  .header_wrap .hedaer_top {
    justify-content: flex-start;
  }

  .header_wrap .hedaer_top > .research-sp {
    margin-left: 40px;
    margin-right: auto;
  }

  .header .nav_wrap .nav-item.dropdown {
    position: relative;
  }

  /* .nav_wrap ul { display:flex } より強く、ホバーするまで出さない */
  .header .nav_wrap .nav-item.dropdown > .dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    width: max-content;
    max-width: calc(100vw - 24px);
    margin: 0;
    padding: 24px 28px;
    background: rgb(240 240 240 / 0.94);
    background-clip: border-box;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  }

  .header .nav_wrap .nav-item.dropdown:hover > .dropdown-menu {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
  }

  .header .nav_wrap .category_titlewrap {
    width: 180px;
    padding-top: 8px;
    font-weight: 600;
    color: #333;
  }

  .header .nav_wrap .category_wrap {
    display: flex;
    flex-direction: column;
    min-width: 168px;
    padding: 4px 0;
  }

  .header .nav_wrap .dropdown-menu > .category_wrap:first-child {
    border-left: 0;
  }

  .header .nav_wrap .dropdown-item {
    display: block;
    padding: 7px 16px;
    color: #333;
    white-space: nowrap;
  }
}

/* スマホヘッダー直下の白い「カテゴリーから探す」は使わない */
.header-sp-category {
  display: none !important;
}

/* ハンバーガー内の赤い「カテゴリーから探す」だけ開閉する */
#g-nav .category-dropdown {
  display: none !important;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  grid-template-columns: 1fr;
  gap: 8px;
}

#g-nav .btn-red.is-open .category-dropdown {
  display: grid !important;
  max-height: 50vh;
  overflow: auto;
}

#g-nav .btn-red {
  cursor: pointer;
}

#g-nav .btn-red .angle_bottom {
  transition: transform 0.2s ease;
}

#g-nav .btn-red.is-open .angle_bottom {
  transform: rotate(180deg);
}

/* トップ最上部。画像1枚をサイト幅いっぱいに出し、比率はそのまま */
.hero-slider-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
}

.hero-slider {
  width: 100%;
  margin: 0;
  background: none;
}

.hero-slider .slick-list {
  display: block !important;
  overflow: hidden;
  height: auto !important;
}

.hero-slider .slick-slide {
  max-width: none !important;
  width: 100%;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
}

.hero-slider .slick-slide picture {
  display: block;
  width: 100%;
}

.hero-slider .slick-slide img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.hero-slider.slick-dotted.slick-slider {
  margin-bottom: 28px !important;
}

.hero-slider .slick-prev,
.hero-slider .slick-next {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  z-index: 2;
  font-size: 0;
  color: transparent;
}

.hero-slider .slick-prev {
  left: 16px;
}

.hero-slider .slick-next {
  right: 16px;
}

.hero-slider .slick-prev:before,
.hero-slider .slick-next:before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  color: #333;
  opacity: 1;
}

.hero-slider .slick-prev:before {
  content: "\f053" !important;
}

.hero-slider .slick-next:before {
  content: "\f054" !important;
}

.hero-slider .slick-dots {
  bottom: -24px !important;
}

.hero-slider .slick-dots li {
  width: 14px;
  height: 14px;
  margin: 0 5px;
}

.hero-slider .slick-dots li button {
  width: 14px;
  height: 14px;
  padding: 0;
}

.hero-slider .slick-dots li button:before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid #8a8a8a;
  border-radius: 50%;
  background: transparent;
  opacity: 1;
  top: 2px;
  left: 2px;
}

.hero-slider .slick-dots li.slick-active button:before {
  background: #4a4a4a;
  border-color: #4a4a4a;
}

@media (max-width: 680px) {
  .hero-slider .slick-prev,
  .hero-slider .slick-next {
    width: 36px;
    height: 36px;
  }

  .hero-slider .slick-prev {
    left: 8px;
  }

  .hero-slider .slick-next {
    right: 8px;
  }
}
