:root {
  --bg: #f7f2ea;
  --paper: #fffdf9;
  --text: #2f2923;
  --brown: #5f4630;
  --line: #d7c8b6;
  --pour-duration: 3.8s;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f3ece1 0%, var(--bg) 100%);
  font-family: 'Noto Serif JP', serif;
  line-height: 1.8;
}

.container {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(2px);
}

.logo {
  margin: 0;
  padding: 1rem 0;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.hero {
  margin-top: 1.5rem;
}

.hero-banner {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pour-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f8f1e6 0%, #efe1cf 100%);
  animation: overlayFadeOut 0.8s ease forwards;
  animation-delay: var(--pour-duration);
}

.pour-stage {
  position: relative;
  width: min(760px, calc(100% - 2rem));
  height: 260px;
  border: 1px solid #dbcab5;
  border-radius: 16px;
  background: linear-gradient(180deg, #fdf8f1 0%, #f1e4d4 100%);
  overflow: hidden;
}

.pour-pot {
  position: absolute;
  top: 26px;
  left: calc(40% - 52px);
  width: 130px;
  height: 72px;
  border-radius: 35px;
  background: #8a6a4f;
  transform: translateX(-50%);
  transform-origin: 88% 78%;
  animation: potTilt var(--pour-duration) ease-in-out 1 forwards;
}

.pour-pot::before {
  content: '';
  position: absolute;
  top: 22px;
  right: -20px;
  width: 30px;
  height: 14px;
  border-radius: 8px;
  background: #8a6a4f;
}

.pot-handle {
  position: absolute;
  top: 18px;
  left: -20px;
  width: 28px;
  height: 36px;
  border: 6px solid #8a6a4f;
  border-right: none;
  border-radius: 18px 0 0 18px;
}

.cup {
  position: absolute;
  left: 50%;
  bottom: 44px;
  width: 104px;
  height: 86px;
  border: 4px solid #6d5239;
  border-top: 6px solid #6d5239;
  border-radius: 0 0 16px 16px;
  background: #fffdf9;
  overflow: hidden;
  transform: translateX(-50%);
}

.cup::before {
  content: '';
  position: absolute;
  right: -24px;
  top: 18px;
  width: 22px;
  height: 32px;
  border: 4px solid #6d5239;
  border-left: none;
  border-radius: 0 14px 14px 0;
}

.cup-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6%;
  background: linear-gradient(180deg, #7b5636 0%, #5f4630 100%);
  animation: fillCup var(--pour-duration) ease-in-out 1 forwards;
}

.coffee-stream {
  position: absolute;
  top: 86px;
  left: calc(45% + 52px);
  width: 8px;
  height: 92px;
  border-radius: 99px;
  background: linear-gradient(180deg, #6e4a2e 0%, #4d3320 100%);
  transform-origin: top;
  transform: scaleY(0);
  animation: pourStream var(--pour-duration) ease-in-out 1 forwards;
}

.coffee-spill {
  display: none;
  position: absolute;
  left: calc(45% + 95px);
  bottom: 112px;
  width: 7px;
  height: 54px;
  border-radius: 99px;
  background: linear-gradient(180deg, #6e4a2e 0%, #4d3320 100%);
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
  animation: spillStream var(--pour-duration) ease-in-out 1 forwards;
}

.spill-puddle {
  position: absolute;
  left: calc(50% + 20px);
  bottom: 34px;
  width: 48px;
  height: 11px;
  border-radius: 50%;
  background: rgba(95, 70, 48, 0.68);
  transform: scale(0.4);
  opacity: 0;
  animation: puddleGrow var(--pour-duration) ease-in-out 1 forwards;
}

@keyframes overlayFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes potTilt {
  0%,
  15% {
    transform: rotate(0deg);
  }
  25%,
  62% {
    transform: rotate(28deg);
  }
  78%,
  100% {
    transform: rotate(0deg);
  }
}

@keyframes pourStream {
  0%,
  18% {
    transform: scaleY(0);
    opacity: 0;
  }
  24%,
  65% {
    transform: scaleY(1);
    opacity: 1;
  }
  75%,
  100% {
    transform: scaleY(0);
    opacity: 0;
  }
}

@keyframes fillCup {
  0%,
  23% {
    height: 8%;
  }
  62% {
    height: 70%;
  }
  78%,
  100% {
    height: 70%;
  }
}

@keyframes spillStream {
  0%,
  46% {
    transform: scaleY(0);
    opacity: 0;
  }
  54%,
  69% {
    transform: scaleY(1);
    opacity: 0.95;
  }
  79%,
  100% {
    transform: scaleY(0);
    opacity: 0;
  }
}

@keyframes puddleGrow {
  0%,
  56% {
    transform: scale(0.45);
    opacity: 0;
  }
  68% {
    transform: scale(1);
    opacity: 0.75;
  }
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
}

.flavor h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.4;
}

.flavor p {
  margin: 0;
}

.hero-image,
.beans-image {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.card {
  margin-bottom: 1.3rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu li {
  display: grid;
  grid-template-columns: 1.1fr 2fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed #ccb9a3;
}

.item-name {
  color: var(--brown);
}

.item-desc {
  color: #4d4339;
  font-size: 0.95rem;
}

.item-price {
  white-space: nowrap;
}

.menu li:last-child {
  border-bottom: none;
}

.team ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.team li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #ccb9a3;
}

.team li:last-child {
  border-bottom: none;
}

.team li span:first-child {
  color: var(--brown);
}

.info {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: center;
}

.site-footer {
  margin-top: 1.5rem;
  padding: 1.3rem 1rem 1.8rem;
  text-align: center;
  color: #5b5045;
  font-size: 0.92rem;
}

.footer-ad {
  margin: 0 0 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.ad-badge {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border: 1px solid #bda68d;
  border-radius: 999px;
  background: #f4ece1;
  color: #6d5239;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.footer-ad a {
  color: var(--brown);
  font-weight: 600;
  text-underline-offset: 2px;
}

.footer-ad a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .pour-overlay {
    padding: 0 0.8rem;
  }

  .pour-stage {
    width: 100%;
    height: 220px;
  }

  .pour-pot {
    top: 30px;
    left: calc(50% - 47px);
  }

  .coffee-stream {
    left: calc(50% + 48px);
    height: 96px;
  }

  .cup {
    left: 50%;
    width: 94px;
    height: 80px;
  }

  .coffee-spill {
    left: calc(50% + 42px);
    bottom: 100px;
  }

  .spill-puddle {
    left: calc(50% + 14px);
    bottom: 24px;
  }

  .info {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: 1rem;
  }

  .menu li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .item-price {
    font-weight: 600;
  }

  .card {
    padding: 1.1rem;
  }
