:root {
  --buncha-red: #b8372b;
  --buncha-dark-red: #6f211a;
  --buncha-gold: #e8b923;
  --buncha-cream: #f9f4e7;
  --buncha-ink: #2b211b;
}

body {
  color: var(--buncha-ink);
}

.-color_red,
.lang-switcher__label {
  color: var(--buncha-red) !important;
}

.-color_gold {
  color: var(--buncha-gold) !important;
}

.-fill_red,
.-fill_red path {
  fill: var(--buncha-red) !important;
}

.-stroke_red,
.-stroke_red path {
  stroke: var(--buncha-red) !important;
}

.-bg_red_back,
.-bg-redcloth,
.official_sns.-bg_red_back {
  background-color: var(--buncha-red) !important;
}

.-bg_dark_red {
  background-color: var(--buncha-dark-red) !important;
}

.logo,
.logo a,
.footer__head .logo {
  font-family:
    "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-weight: 700;
  letter-spacing: 0;
}

/* Cài đặt cơ bản cho logo container */
.logo {
  display: inline-block;
  vertical-align: auto;
}

@media (min-width: 1024px) {
  #top > header > h1.logo img {
    display: block;
    width: 54px;
    aspect-ratio: 1;
    height: 54px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
  }

  #top > header > h1.logo {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    height: 74px;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
  }

  #top > header > h1.logo a {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
  }
}

.mb #top > header > h1.logo img {
  width: 42px;
  height: 42px;
}

.mb header .logo img {
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.mb #top > header > h1.logo a {
  padding: 0;
}

.mb #top > header > h1.logo {
  height: 62px;
  padding: 10px 0 10px 12px;
}

.mb .top_page .fv .fv_title .fv_title_sp {
  display: block;
}

/* Áp dụng cho màn hình mobile (kích thước < 768px) */
@media (max-width: 767px) {
  /* 1. Ép mỗi slide chiếm đúng 100% chiều rộng màn hình */
  .gallery .embla__slide {
    flex: 0 0 100%;
    min-width: 0; /* Bắt buộc có để reset mặc định của flexbox, tránh tràn ngang */
  }

  /* 2. Đảm bảo khung bọc ảnh chiếm toàn bộ diện tích slide */
  .gallery .embla__slide_inner {
    width: 100%;
    height: 100%; /* Hoặc bạn có thể set một chiều cao cố định nếu muốn, VD: height: 350px; */
  }

  /* 3. Ép ảnh lấp đầy khung mà không bị méo tỉ lệ */
  .gallery .embla__slide_inner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đây là chìa khóa giúp ảnh tràn viền, tự động cắt phần thừa chứ không bóp méo ảnh */
    display: block;
  }
}

.progressbar .bar {
  flex: 1;
  height: 4px; /* Độ dày của thanh */
  background-color: #e0dcd3;
}

/* Thanh bar đỏ như trong ảnh */
.progressbar .bar .fill {
  height: 100%;
  background-color: #a32824; /* Màu đỏ đô */
  width: 100%; /* Đặt 100% cho thanh active, 0% cho thanh chưa chạy */
}

.lang-switcher__list {
  gap: 6px;
}

.lang-switcher__item button {
  min-width: 44px;
  border: 1px solid var(--buncha-red);
  background: var(--buncha-cream);
  color: var(--buncha-red);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  padding: 9px 12px;
  cursor: pointer;
}

.lang-switcher__item button.is-active {
  background: var(--buncha-red);
  color: var(--buncha-cream);
}

.lang-switcher__item button:focus-visible {
  outline: 2px solid var(--buncha-gold);
  outline-offset: 2px;
}

body:has(.top_page) header .sns-follow {
  transform: translateY(-50%);
}

#top > footer .footer__main .pagetop {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(249, 244, 231, 0.38);
  border-radius: 999px;
  background-color: var(--buncha-dark-red);
  color: var(--buncha-cream);
  box-shadow: 0 12px 24px rgba(43, 33, 27, 0.22);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

#top > footer .footer__main .pagetop:hover {
  transform: translateY(-2px);
  background-color: var(--buncha-red);
  box-shadow: 0 16px 28px rgba(43, 33, 27, 0.28);
}

#top > footer .footer__main .pagetop:focus-visible {
  outline: 2px solid var(--buncha-gold);
  outline-offset: 3px;
}

#top > footer .footer__foot {
  padding-left: 0;
  text-align: center;
}

#top > footer .footer__foot .copyright {
  display: block;
}

#top > footer .footer__main .pagetop__icon {
  display: block;
  width: 22px;
  height: 22px;
}

#top > footer .footer__main .pagetop__icon path {
  stroke: currentColor;
}

@media (max-width: 1024px) {
  #top > footer .footer__main .pagetop {
    width: 52px;
    height: 52px;
  }

  #top > footer .footer__main .pagetop__icon {
    width: 18px;
    height: 18px;
  }
}

body.mb:has(.top_page) header .sns-follow {
  transform: translate(0);
}

header .sns-follow .sns-list,
header .sns-follow .sns-list a {
  pointer-events: none;
}

header .sns-follow .sns-list.is-active,
header .sns-follow .sns-list.is-active a,
.dt header .sns-follow:hover .sns-list,
.dt header .sns-follow:hover .sns-list a,
.dt header .sns-follow .sns-list.is-hover,
.dt header .sns-follow .sns-list.is-hover a {
  pointer-events: auto;
}

header .sns-toggle,
.-sec_heading1_vertical,
.-h1_vertical,
.top_page .copy .copy_title,
.top_page .copy .copy_text {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed;
}

header .sns-toggle {
  width: auto;
  padding: 10px 14px;
}

.top_page .copy_main,
html:not([lang="ja"]) .top_page .copy_main {
  flex-direction: column;
  align-items: center;
  gap: 42px;
}

.top_page .copy .copy_title {
  text-align: center;
}

html[lang="ja"] .mb .top_page .copy .copy_title .copy_title_keep {
  display: inline-block;
  white-space: nowrap;
}

.top_page .copy .copy_text {
  max-width: 720px;
  gap: 1.8em 0;
  letter-spacing: 0.05em;
}

.top_page .-brand_archive .brand_list {
  overflow: hidden;
  transition: height 0.35s ease;
}

.top_page .-brand_archive .brand_list::after {
  transition: opacity 0.2s ease;
}

.top_page .-brand_archive .brand_list.showAll::after {
  opacity: 0;
}

.top_page .all_brand_foot .-button .icon_minus {
  display: none;
}

.top_page .all_brand_foot .-button.showAll .icon_plus {
  display: none;
}

.top_page .all_brand_foot .-button.showAll .icon_minus {
  display: block;
}

.top_page .copy {
  padding-block: 88px 104px;
}

.top_page .copy .copy_text {
  padding-top: 0 !important;
}

.top_page .menu_head,
.top_page .feature_head,
.top_page .brand_head,
.top_page .news_head {
  margin-bottom: 54px;
}

.top_page .feature_head,
.top_page .brand_head,
.top_page .news_head {
  display: grid;
  justify-content: center;
}

.top_page .feature_head .-sec_heading1_vertical,
.top_page .brand_head .-sec_heading1_vertical,
.top_page .news_head .-sec_heading1_vertical {
  padding: 6px 12px 10px;
}

/* Khối cha bọc toàn bộ phần tin tức */
.news {
  display: flex;
  flex-wrap: wrap; /* Cho phép các phần tử xuống dòng */
  justify-content: center; /* Căn giữa loạt ảnh phía dưới */
}

/* 1. Căn giữa toàn bộ khối tiêu đề so với khung hình */
.top_page .news_head {
  display: flex;
  justify-content: center; /* Căn giữa toàn bộ khối vào giữa màn hình */
  width: 100%;
  margin-bottom: 30px; /* Khoảng cách xuống hàng ảnh phía dưới */
}

/* 2. Ép Icon nằm TRÊN và thẳng hàng với Chữ */
.top_page .news_head .-sec_heading1_vertical {
  display: flex;
  flex-direction: column; /* Bắt buộc xếp dọc: Icon ở trên, Chữ ở dưới */
  align-items: center; /* Căn thẳng hàng trục giữa cho cả Icon và Chữ */
  justify-content: center;
  gap: 12px; /* Khoảng cách cố định giữa icon và chữ */
  padding: 0;
  margin: 0;
}

/* 3. Cố định kích thước khung chứa Icon */
.top_page .news_head .title_icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px; /* Khớp với width của SVG */
  height: 37px; /* Khớp với height của SVG */
}

/* 4. Định dạng lại chữ (Chuyển về chữ ngang để dễ căn thẳng hàng khi đổi ngôn ngữ) */
.top_page .news_head .-h1_vertical {
  writing-mode: horizontal-tb; /* Đổi về chữ ngang thay vì viết dọc */
  text-align: center; /* Căn giữa nội dung chữ */
  font-size: 24px;
  font-weight: 700;
  color: #a32824;
  white-space: nowrap; /* Giữ chữ trên một hàng, không tự động xuống dòng */
}

.top_page .news_head {
  width: 100%; /* Ép tiêu đề chiếm hết 1 hàng để đẩy ảnh xuống dưới */
  display: flex;
  flex-direction: column; /* Xếp icon ở trên, chữ ở dưới */
  align-items: center; /* Căn giữa cả icon và chữ theo trục dọc */
  justify-content: center;
  margin-bottom: 30px; /* Khoảng cách từ tiêu đề xuống loạt ảnh */
  position: relative;
}

.top_page .news_head .-sec_heading1_vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* Khoảng cách giữa icon và chữ */
}

.top_page .menu_head {
  position: relative;
  z-index: 2;
  display: grid;
  justify-content: center;
}

.top_page .menu_head .-sec_heading1_vertical {
  width: fit-content;
  max-width: calc(100vw - var(--side-space) * 2);
  padding: 14px 24px 18px;
}

.top_page .menu_main {
  position: relative;
  z-index: 1;
}

.top_page .menu_slider .embla__viewport {
  margin-top: 0;
  padding-top: 96px;
}

.top_page .menu_slider .photo {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding-bottom: 0;
}

.top_page .menu_slider .photo > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.top_page .-button .icon svg {
  display: block;
}

.top_page .menu_foot .fukidashi {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .top_page .menu_foot .fukidashi {
    width: fit-content;
  }
}

@media (max-width: 1024px) {
  #top > footer .footer__main > .fnav_button-sp {
    margin-bottom: 24px;
  }
}

@media (min-width: 1025px) {
  .top_page .reccomend .reccomend_main .embla__slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* athome_main: 4列対応（GrabFood・ShopeeFood 追加） */
.top_page .athome_main {
  grid-template-columns: repeat(4, 1fr);
  gap: 0 3%;
  padding-right: 0;
}

/* canh 3 ảnh vào giữa màn hình */
.top_page .athome_main {
  justify-items: center;
}

/* Ở desktop: 3 circle sẽ nằm giữa 4 cột (cột 2-4) */
@media (min-width: 1024px) {
  .top_page .athome_main .-circle_link:nth-child(1) {
    grid-column: 2;
  }
  .top_page .athome_main .-circle_link:nth-child(2) {
    grid-column: 3;
  }
  .top_page .athome_main .-circle_link:nth-child(3) {
    grid-column: 4;
  }
}

.mb .top_page .athome_main {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 4%;
}

/* デリバリーサービス バッジ */
.-circle_link .text_box .delivery_badge {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.-circle_link .text_box .delivery_badge svg {
  width: 80px;
  height: 24px;
  border-radius: 4px;
}

/* Container nền ngoài cùng */
.feature_equal_v3 {
  background-color: #f7f6f2;
  padding: 60px 20px;
  font-family: "Mulish", sans-serif;
}

.feature_container {
  max-width: 1200px; /* Mở rộng không gian để đủ chỗ cho 3 cột nằm ngang */
  margin: 0 auto;
}

/* Khởi tạo lưới CSS Grid chia 3 cột bằng nhau */
.point_list_equal {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cột, mỗi cột 1 phần bằng nhau */
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: stretch; /* Ép 3 thẻ luôn cao bằng nhau */
}

/* Định hình chung cho các thẻ (Cards) */
.point-card {
  background: #ffffff;
  border-radius: 24px; /* Bo góc tròn */
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.point-card:hover {
  transform: translateY(-8px); /* Hiệu ứng nảy nhẹ khi di chuột */
}

/* Định dạng chữ "Point 01, 02, 03" */
.point-label {
  font-size: 14px;
  color: #c2bbaf; /* Màu xám kem đậm hơn một chút để dễ đọc */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
  font-weight: 700;
}

/* Tiêu đề chính */
.point-heading {
  font-family: "Lora", serif;
  font-size: 24px;
  color: #2c2c2c;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

/* Nội dung mô tả */
.point-desc {
  font-size: 15px;
  color: #666666;
  line-height: 1.7;
  margin: 0 0 30px 0;
  flex-grow: 1; /* Lò xo đẩy ảnh xuống sát đáy để 3 ảnh thẳng hàng ngang */
}

/* Khung chứa ảnh nằm dưới cùng */
.point-photo {
  width: 100%;
  margin-top: auto;
  position: relative;
  padding-top: 75%; /* Tỉ lệ ảnh 4:3 đồng đều cho cả 3 khung */
  border-radius: 12px;
  overflow: hidden;
}

.point-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Đảm bảo ảnh không bị méo */
}

/* Responsive: Máy tính bảng (chia 2 cột) và Điện thoại (1 cột) */
@media (max-width: 992px) {
  .point_list_equal {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .point_list_equal {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  .point-card {
    padding: 30px 20px;
  }
}

/* Cấu trúc hiển thị hàng ngang cho danh sách */
.ki_list {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0 -15px; /* Tạo khoảng cách âm để bù trừ padding của các cột con */
}

/* Định dạng chung cho mỗi cột */
.ki_list li {
  flex: 1;
  margin: 0 15px; /* Khoảng cách giữa các cột */
  display: flex;
  flex-direction: column; /* Đảm bảo nội dung chảy từ trên xuống */
}

/* Khung chứa ảnh cố định chiều cao bằng nhau */
.ki_list .photo {
  width: 100%;
  height: 240px; /* Bạn có thể thay đổi chiều cao này theo ý muốn */
  overflow: hidden;
  margin-bottom: 15px;
}

/* Xử lý ảnh tự động co giãn vừa khung mà không bị méo/vỡ hình */
.ki_list .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Thuộc tính quan trọng nhất để cố định tỷ lệ ảnh */
}

/* Phần chữ mô tả căn đều hai bên cho đẹp mắt */
.ki_list .description {
  text-align: justify;
}

/* Bao bọc tiêu đề và icon kính lúp để nằm ngang hàng */
.store-title-wrapper {
  display: flex;
  align-items: center; /* Căn giữa theo chiều dọc */
  justify-content: center; /* Căn giữa theo chiều ngang */
  gap: 10px; /* Tạo khoảng cách 10px giữa kính lúp và chữ để không bị dính */
  margin-bottom: 30px;
}

/* Biểu tượng kính lúp */
.store-title-wrapper .search-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tiêu đề chữ */
.store-title-wrapper .store-title {
  font-family: "Lora", serif; /* Hoặc font tiêu đề của bạn */
  font-size: 26px;
  color: #ffffff;
  margin: 0; /* Xóa margin mặc định để thẻ flex hoạt động chuẩn */
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Bố cục dàn ngang cho 2 nút bấm của bạn */
.action-buttons-list {
  display: flex;
  gap: 20px; /* Khoảng cách giữa 2 nút */
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

/* Responsive cho màn hình điện thoại: xếp các nút dọc lại */
@media (max-width: 768px) {
  .action-buttons-list {
    flex-direction: column;
    gap: 15px;
  }
}

/* Cấu trúc cho Section Tuyển Dụng */
.recruitment-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  font-family: "Mulish", sans-serif;
}

/* Thẻ Card Đen mờ sang trọng */
.recruitment-card {
  background-color: rgba(20, 20, 20, 0.85); /* Nền đen mờ */
  border: 1px solid #333;
  border-top: 4px solid #a32824; /* Viền đỏ đô tạo điểm nhấn thương hiệu */
  border-radius: 12px;
  padding: 40px;
  max-width: 650px;
  width: 100%;
  color: #fdfbf7;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
}

/* Tiêu đề */
.rc-title {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 22px;
  margin: 0 0 25px 0;
  line-height: 1.5;
  text-align: center;
  color: #ffffff;
  font-weight: 700;
}

.recruitment-section {
  width: 100%;
  font-family: "Mulish", sans-serif;
  /* Thêm 2 dòng này nếu vùng chứa là Flexbox để ép nó lên trên cùng */
  display: flex;
  align-items: flex-start;
}

.recruitment-card {
  background-color: rgba(20, 20, 20, 0.85);
  border: 1px solid #333;
  border-top: 4px solid #a32824;
  border-radius: 8px;
  padding: 25px 20px;
  width: 100%;
  color: #fdfbf7;
  box-sizing: border-box;
  margin-top: -70px; /* Điều chỉnh con số -35px này (tăng/giảm) cho đến khi mép trên của thẻ bằng đúng chữ "TOP" */
}

/* Tiêu đề nhỏ lại cho vừa với footer */
.rc-title {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 17px; /* Chữ nhỏ lại để không bị rớt nhiều dòng */
  margin: 0 0 15px 0;
  line-height: 1.4;
  text-align: center;
  color: #ffffff;
  font-weight: 700;
}

/* Danh sách thông tin: XẾP DỌC THAY VÌ NGANG */
.rc-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  font-size: 13.5px; /* Giảm size chữ 1 chút */
  line-height: 1.5;
}

.rc-info-list li {
  display: block; /* Ép hiển thị dọc để không bị vỡ chữ */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.rc-info-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Tiêu đề mục (Màu vàng) nằm trên */
.rc-info-list li strong {
  display: block;
  color: #e5c158;
  font-weight: 600;
  margin-bottom: 3px; /* Cắt margin ngang, tạo margin dọc */
}

/* Nội dung nằm dưới (Sẽ rộng hết cỡ, không bị ép xuống dòng vô lý) */
.rc-info-list li span {
  display: block;
  color: #ccc; /* Làm dịu màu chữ nội dung một chút */
}

/* Cụm Nút bấm: XẾP DỌC BẰNG NHAU */
.rc-actions {
  display: flex;
  flex-direction: column; /* Ép nút bấm xếp chồng lên nhau */
  gap: 10px;
}

.rc-btn {
  display: flex;
  align-items: center;
  justify-content: center; /* Căn giữa chữ và icon */
  width: 100%; /* Nút rộng tràn viền thẻ */
  padding: 10px 15px; /* Giảm độ dày của nút */
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px; /* Chữ nút nhỏ gọn */
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.rc-btn-primary {
  background-color: #a32824;
  color: #fff;
}

.rc-btn-primary:hover {
  background-color: #8a201c;
}

.rc-btn-outline {
  background-color: transparent;
  color: #fff;
  border: 1px solid #555;
}

.rc-btn-outline:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

.rc-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  margin-right: 6px;
}

/* 「おすすめの食べ方」の写真を円形いっぱいに見せる */
.top_page .feature_list li:nth-child(2) .step_list .illust {
  padding: 0;
}

.top_page .feature_list li:nth-child(2) .step_list .illust img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
