.footer-ground {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
  min-height: calc(100vw * 300 / 1806);
  background-color: #FDF8EB;
  background-image: url("../images/footer.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  color: #FDF8EB;
  padding-bottom: clamp(0.75rem, 1.5vw, 1.2rem);
}
.bg-paper {
  border-radius: 10px;
}
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 1.6rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 0.95rem;
}

#contact,
#contact a {
  color: #FDF8EB;
}

#footer-address {
  white-space: nowrap;
}

@media (max-width: 1099px) {
  .footer-ground {
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
    background-position: center top;
  }

  .footer-bar {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: calc(100vw * 299 / 1806);
    background-color: #4E5630;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.35rem 1.1rem 1rem;
    font-size: 0.85rem;
    line-height: 1.35;
  }

  #footer-name {
    font-size: 1.35rem;
  }

  #footer-address {
    max-width: 22rem;
    white-space: normal;
    text-wrap: pretty;
  }
}

.cat-ribbon,
.cat-pill {
  font-family: Mali, cursive;
  font-weight: 700;
  line-height: 1.15;
  color: #3D2115;
}

.cat-back {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3D2115;
  font-size: 0.95rem;
}

.cat-back svg {
  width: 1.15rem;
  height: 1.15rem;
}

.cat-back:hover {
  color: #C24A32;
}

.cat-intro {
  text-align: center;
}

.cat-intro .cat-ribbon {
  margin-inline: auto;
}

.cat-intro .rich {
  max-width: 40rem;
  margin: 1.35rem auto 0;
}

.cat-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  max-width: 14rem;
  margin: 2.75rem auto 0;
}

.cat-divider::before,
.cat-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E7D7C3;
}

.cat-divider span {
  width: 0.45rem;
  height: 0.45rem;
  transform: rotate(45deg);
  background: #C24A32;
}

.cat-ribbon {
  display: block;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: #FFF2CC;
  padding: 0.35rem 1.15rem 0.5rem;
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  overflow-wrap: anywhere;
}

.cat-pill {
  border-radius: 999px;
  padding: 0.4rem 0.9rem 0.5rem;
  font-size: 1.02rem;
  background: #FFF2CC;
}

.cat-pill.tone-leaf { background: #E5F0D4; }
.cat-pill.tone-jam { background: #F8E0D6; }
.cat-pill.tone-sky { background: #E4F1F4; }

.cat-pill.is-active {
  background: #C24A32;
  color: #FDF8EB;
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1.15rem;
  z-index: 30;
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #3D2115;
  color: #FDF8EB;
  box-shadow: 0 8px 18px rgba(61, 33, 21, 0.22);
}

.to-top.is-on {
  display: grid;
}

.price {
  color: #C24A32;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.rich p + p,
.rich ul,
.rich ol,
.rich blockquote,
.rich h2,
.rich h3,
.rich h4 { margin-top: 0.75rem; }
.rich ul { list-style: disc; padding-left: 1.25rem; }
.rich ol { list-style: decimal; padding-left: 1.25rem; }
.rich a { text-decoration: underline; }
.rich s { text-decoration: line-through; }
.rich blockquote { margin: 0.75rem 0 0; padding-left: 0.8rem; border-left: 3px solid #E7D7C3; }
.rich h2, .rich h3, .rich h4 { font-family: Nunito, sans-serif; font-weight: 800; color: #3D2115; }
.ease-soft {
  transition-duration: 560ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

#site-header {
  background: #FAF3E0;
  border-bottom: 1px solid #E2D4B9;
  color: #3D2115;
  font-family: Nunito, sans-serif;
  transition: box-shadow 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

#site-header #shop-name,
#hero-title,
#oven-note {
  font-family: Mali, cursive;
  font-weight: 600;
  color: #3D2115;
}

#site-nav,
#site-nav a,
#hero-slogan,
#home [data-ui="kicker"],
#picks [data-ui="kicker"] {
  font-family: Nunito, sans-serif;
  color: #3D2115;
}

#home {
  background: #FDF8EB;
}

#home.is-empty {
  display: none;
}

#picks {
  position: relative;
  background: #FAF3E0;
  border-top: 1px solid #E2D4B9;
}

#picks::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  translate: -50% -50%;
  rotate: 45deg;
  background: #C24A32;
  box-shadow: 0 0 0 4px #FDF8EB;
}

#picks-layout:has(.hero-slider.is-empty) {
  grid-template-columns: minmax(0, 1fr);
}

.btn-bake {
  background: #3D2115;
  color: #FDF8EB;
  border-radius: 12px;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 420ms ease,
    box-shadow 420ms ease;
}

.btn-bake:hover {
  transform: translateY(-2px);
  background: #2A160E;
  box-shadow: 0 10px 22px rgba(61, 33, 21, 0.18);
}

#site-header.is-stuck {
  box-shadow: 0 12px 28px rgba(92, 61, 46, 0.08);
}

#site-nav {
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
  border-top-color: transparent;
  opacity: 0;
  transition:
    max-height 560ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 420ms ease,
    margin-top 560ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-top 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

#site-nav.is-open {
  max-height: 70vh;
  margin-top: 1rem;
  padding-top: 1rem;
  overflow: auto;
  border-top-color: #E7D7C3;
  opacity: 1;
}

@media (min-width: 768px) {
  #site-nav,
  #site-nav.is-open {
    max-height: none;
    margin-top: 1rem;
    padding-top: 0;
    overflow: visible;
    opacity: 1;
  }
}

.nav-item { position: relative; }
.nav-sub {
  display: flex;
  flex-direction: column;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid #E7D7C3;
}
@media (min-width: 768px) {
  .nav-sub {
    display: flex;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 30;
    min-width: 12rem;
    margin: 0;
    padding: 6px 0;
    border: 1px solid #E7D7C3;
    background: #FFFDF9;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    translate: 0 8px;
    transition:
      opacity 360ms ease,
      translate 520ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 360ms ease;
  }
  .nav-item:hover > .nav-sub,
  .nav-item:focus-within > .nav-sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    translate: 0 0;
  }
}

main section.rise-in,
.card-in {
  animation: rise-in 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-sentinel {
  height: 1px;
}

.contact-line {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  column-gap: 0.65rem;
  align-items: start;
  width: min(100%, calc(100vw - 2.5rem));
}

.contact-line svg {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
}

.contact-line span,
.contact-line a {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact-line a {
  justify-self: start;
}

.contact-status.is-ok,
.contact-status.is-bad {
  padding: 0.9rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
}

.contact-status.is-ok {
  background: #FFF2CC;
  color: #3D2115;
}

.contact-status.is-bad {
  background: #F8E0D6;
  color: #C24A32;
}

@keyframes rise-in {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  #site-nav,
  #site-header,
  .nav-sub,
  .detail-dialog,
  .detail-dialog::backdrop,
  .detail-photo,
  .btn-bake,
  .banner-swiper img,
  main section {
    animation: none;
    transition: none;
  }

  .btn-bake:hover {
    transform: none;
  }
}
html:has(dialog[open]) {
  overflow: hidden;
}

.detail-dialog {
  max-height: calc(100dvh - 1.5rem);
  overflow: hidden;
  opacity: 0;
  translate: 0 12px;
  transition:
    opacity 460ms cubic-bezier(0.22, 1, 0.36, 1),
    translate 520ms cubic-bezier(0.22, 1, 0.36, 1),
    overlay 460ms ease allow-discrete,
    display 460ms ease allow-discrete;
}

.detail-dialog[open] {
  opacity: 1;
  translate: 0 0;
}

@starting-style {
  .detail-dialog[open] {
    opacity: 0;
    translate: 0 12px;
  }
}

.detail-dialog::backdrop {
  background: rgba(43, 45, 66, 0.46);
  opacity: 0;
  transition:
    opacity 460ms ease,
    overlay 460ms ease allow-discrete,
    display 460ms ease allow-discrete;
}

.detail-dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .detail-dialog[open]::backdrop {
    opacity: 0;
  }
}

.detail-scroll {
  max-height: calc(100dvh - 1.5rem - 2px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail-photo {
  transition: opacity 420ms ease;
}

.banner-wrap {
  position: relative;
}

.banner-swiper {
  overflow: hidden;
  aspect-ratio: 2.36 / 1;
  background: #FAF3E0;
}

.banner-swiper .swiper-slide {
  overflow: hidden;
  height: 100%;
}

.banner-swiper .swiper-slide,
.banner-swiper img {
  width: 100%;
  height: 100%;
}

.banner-swiper img {
  display: block;
  object-fit: cover;
}

.banner-swiper .swiper-slide-active img {
  animation: banner-drift 7.5s ease-out both;
}

@keyframes banner-drift {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}

.banner-wrap .hero-nav {
  top: 50%;
  translate: 0 -50%;
}

.banner-prev { left: 0.65rem; }
.banner-next { right: 0.65rem; }

.hero-slider {
  position: relative;
  border: 1px solid #E2D4B9;
  border-radius: 24px;
  background: #FAF3E0;
  padding: 0.85rem 0.85rem 0.7rem;
}

.hero-slider.is-empty {
  display: none;
}

.hero-hedgehog {
  position: absolute;
  top: -14px;
  right: -6px;
  z-index: 4;
  width: 58px;
  height: 58px;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(61, 33, 21, 0.12));
}

.hero-swiper {
  border-radius: 16px;
}

.hero-card {
  position: relative;
  display: block;
  color: #3D2115;
  text-decoration: none;
}

.hero-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  background: #E7D7B8;
}

.hero-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  border-radius: 999px;
  background: #C24A32;
  padding: 0.28rem 0.65rem;
  color: #fff;
  font-family: Nunito, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-card-copy {
  padding: 0.75rem 0.2rem 0.15rem;
}

.hero-card-copy h2 {
  font-family: Nunito, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: #3D2115;
}

.hero-card .price {
  margin-top: 0.25rem;
  font-size: 1.05rem;
}

.hero-nav {
  position: absolute;
  top: 46%;
  z-index: 3;
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border: 1px solid #E2D4B9;
  border-radius: 999px;
  background: #FDF8EB;
  color: #3D2115;
  box-shadow: 0 4px 10px rgba(61, 33, 21, 0.1);
}

.hero-nav svg {
  width: 0.95rem;
  height: 0.95rem;
}

.hero-nav.is-off {
  display: none;
}

.hero-prev { left: 0.2rem; }
.hero-next { right: 0.2rem; }

.hero-swiper .swiper-slide {
  height: auto;
}
