.hero-section {
  width: 100%;
  height: calc(50vh - 67px);
  margin-top: 67px;
  position: relative;
  overflow: hidden;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: zoom 20s ease-in-out infinite;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

@keyframes zoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.title-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  padding: 0 20px;
  margin: 0 auto;
}

.title-image {
  max-height: 20vh;
  width: auto;
}

@media (max-width: 767.98px) {
  .hero-section {
    height: calc(30vh - 61px);
    margin-top: 61px;
  }
  .title-image {
    max-height: 12vh;
  }
}

.michelin-tabs {
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
    text-align: center; 
    padding: 14px 2px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.tab-list {
    list-style: none;
    padding: 0;
    margin: 0 auto; 
    display: flex;
    justify-content: center; 
    max-width: 960px; 
}
.tab-item {
    margin: 0 12px; 
}
.tab-link {
    display: block;
    padding: 4px 8px;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.tab-link:hover {
    color: #333;
}
.tab-link.active {
    border-bottom-color: var(--primary-color);
}
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767.98px){
  .hero-section {
    height: 20vh;
    padding: 60px 0;
  }
  .hero-section .container {
    padding-left: 5%; 
    padding-right: 5%;
  }
  .hero-title {
      max-width: 70%;
  }
  .tab-list {
      overflow-x: auto;
      padding: 0 8px; 
      -webkit-overflow-scrolling: touch; 
      scrollbar-width: none; 
      -ms-overflow-style: none;
  }
  .tab-list::-webkit-scrollbar { 
    display: none;
  }
  .tab-item {
      flex-shrink: 0; 
      margin: 0 4px;
  }
  .tab-link {
      font-size: 0.85em;
      padding: 4px;
  }
}
.container{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0px auto 28px auto;
}
.flex-column{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

a.media-item{
  display: flex;
  align-items: center;
  margin: 20px 0;
  padding: 0;
  background-color: #fff;
}
.media-item-img{
  flex: 0 0 300px;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2; 
  margin-right: 20px;
}
.media-item-img img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-md);
}
.btn{
  width: 200px;
  border-radius: 999px;
  padding: 0.5rem 1rem;
}
.btn-outline-primary{
  color: var(--primary-color);
  border-color: var(--primary-color);
  border: 2px solid;
  border-radius: 999px;
}
.btn-outline-primary:hover, .btn-outline-primary:active{
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}
.bg-about{
  border: 3px solid var(--primary-color);
  border-radius: var(--border-radius-lg);
  padding: 1rem 2rem;
  margin-top: 20px;
}
.bg-about h3{
  color: var(--primary-color-200);
}
 .stars-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.stars-content {
  display: flex;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: #000 solid 1px;
}

.stars {
  width: 100px;
  display: flex;
  justify-content: end;
  gap: 4px;
  flex-shrink: 0;
  margin-right: 8px;
}

.stars img {
  width: 28px;
  height: 28px;
}

@media (max-width: 767.98px){
  .container {
    max-width: 100%; 
    margin: 0 auto 20px auto; 
    padding: 0 1rem;
    box-sizing: border-box;
  }
  .media-item-img{
    flex: 0 0 160px;
    margin-right: 8px;
  }
  .media-item h3{
    font-size: 18px;
  }
}

.featured-video-container{
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
}
.swiper {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden; 
    margin: 30px auto;
}

.swiper-slide {
    border-radius: var(--border-radius-lg);
    overflow: hidden; 
    box-sizing: border-box;    
}

.video-wrapper {
    position: relative; 
    width: 100%; 
    max-width: 100vw;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex: 1 0 auto;
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--border-radius-lg);
    object-fit: cover;
}

.swiper-pagination {
    position: static; 
    margin: 8px auto; 
    text-align: center;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    display: inline-block; 
    border-radius: 50%; 
    background-color: var(--gray-800); 
    margin: 0 4px; 
    cursor: pointer; 
    transition: background-color 0.3s ease, opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    opacity: 1;
}

@media (max-width: 767.98px) {
  .featured-video-container{
    max-width: 320px;
  }
  .swiper {
    margin: 12px 0; 
  }
}
/* 表單 */
.intro{
  max-width: 600px;
  margin: 16px auto;
}
.form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.form-section.hidden {
    display: none;
}

.restaurant-input {
    width: 100%;
    min-width: 320px;
    height: auto; 
    padding: 1rem;
    border-radius: var(--border-radius-md); 
    border: 1px solid #d1d5db;
    transition: all 0.3s ease-in-out;
}

.restaurant-input:focus {
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 2px  var(--primary-color);
}

.submit-button {
    width: 100%;
    background-color: var(--primary-color); 
    color: #fff; 
    font-weight: 600;
    padding: 0.5rem 1rem;
    max-width: 200px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.submit-button:hover {
    background-color: var(--primary-color-200); 
}

.success-section {
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-600);
}

.success-section.hidden {
    display: none;
}

.success-section p {
    margin-bottom: 1rem;
}

.member-button {
    width: 200px;
    background-color: var(--primary-color); 
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 999px; 
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.member-button:hover {
    background-color:  var(--primary-color-200); 
}

/* 冰箱 */
.refrigerator-container {
    position: relative; 
    width: 100%;
    max-width: 600px;
    min-width: 320px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden; 
    background-color: #f3f4f6; 
}

.refrigerator-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('..image/fridge.webp');
    background-size: cover;
    background-position: center;
}
.refrigerator-spacer {
    position: relative;
    width: 100%;
    padding-top: 210%; 
}

.card-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 9rem 4rem 4rem 4rem; 
}

.food-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; 
}
.food-card-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
    perspective: 1000px;
}
.food-card-front, .food-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
    padding: 0.5rem; 
    background-color: white;
    border-radius: 0.5rem; display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.food-card-back {
    transform: rotateY(180deg);
}

.food-circle {
    cursor: pointer;
    transition: all 0.3s transform, 0.3s opacity;
    transform: scale(1);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    width: 8rem; 
    height: 8rem; 
}
.food-circle img {
    border-radius: 999px; 
    width: 8rem;
    height: 8rem; 
    object-fit: cover;
}
.food-circle:hover {
    transform: scale(1.1);
}
.food-item.active .food-circle {
    display: none;
    pointer-events: none;
}

.food-card-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1.5rem;
    z-index: 1; 
}
.food-item.active {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    transition: transform 0.3s ease;
}

.food-item.active .food-card-wrapper {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s 0.1s, transform 0.3s 0.1s;
    pointer-events: auto;
    position: static;
    width: 100%;
    height: 100%;
}

.food-item.flipped .food-card-container {
    transform: rotateY(180deg);
}
.close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem; 
    line-height: 1;
    cursor: pointer;
    transition-property: color;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: none;
}
.food-card-front img, .food-card-back img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem; 
}
.chef-img {
    width: 6rem; 
    height: 6rem; 
    object-fit: cover;
    margin-bottom: 0.5rem;
}
.chef-specialty {
    color: var(--gray-800);
    margin: 0.5rem 0 1rem 0;
    font-size: 18px;
}
.chef-container .btn{
  max-width: 140px;
  padding: 0.25rem 1rem;
}
.chef-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.chef-container h3{
    font-size: 24px;
}
.chef-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .chef-list {
        flex-direction: row; 
        width: 100%;
        gap: 0; 
    }
}
@media (max-width: 767.98px) {
    .card-grid {
        padding: 4rem 3rem 4rem 3rem; 
    }
    .food-circle{
        width: 7rem; 
        height: 7rem; 
    }
    .food-circle img {
        width: 7rem;
        height: 7rem; 
    }
}