.tea-layout { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,1fr); gap:clamp(15px,2.5vw,30px); align-items:start; }
.tea-left { min-width:0; }
.tea-scenic { border:1px solid #806445; border-radius:8px; background:#f7eddb; overflow:hidden; box-shadow:0 8px 24px -14px #513c2d9a; }
.tea-stage { position:relative; aspect-ratio:1672/941; isolation:isolate; overflow:hidden; background:#dbbe90 url("/assets/work/tea-salon.webp") center/100% 100% no-repeat; scroll-margin-top:10px; }
.tea-stage::after { content:""; position:absolute; inset:6px; pointer-events:none; border:1px solid #fff2c95c; z-index:6; }
.tea-figure { position:absolute; z-index:1; left:-19%; top:16%; width:93%; height:133%; transform-origin:52% 34%; }
.tea-figure img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.tea-table-front { position:absolute; z-index:2; inset:0; background:inherit; mask-image:linear-gradient(to bottom,transparent 66.2%,#000 67.2%); }
.tea-service { position:absolute; inset:0; z-index:3; pointer-events:none; }
.served-item { position:absolute; left:30%; bottom:13%; width:13.5%; height:auto; mix-blend-mode:multiply; mask-image:radial-gradient(ellipse 61% 47% at 50% 57%,#000 67%,transparent 100%); }
.pour-pot { position:absolute; display:none; width:14%; height:auto; left:36.5%; top:43%; transform-origin:2.8% 31%; }
.tea-stream { position:absolute; display:none; left:36.9%; top:48.2%; height:21%; width:.5%; border-radius:40%; transform-origin:top center; background:linear-gradient(90deg,#bc6e21c9,#fff0a9,#ce812e); box-shadow:1px 0 1px #75492047; }
.steam { position:absolute; display:none; left:34.5%; bottom:30.5%; width:5%; height:13%; }
.steam i { display:block; position:absolute; bottom:0; left:25%; width:30%; height:85%; border-radius:50%; border-left:2px solid #fff8e8cc; filter:drop-shadow(0 0 2px #a2673452); transform-origin:center bottom; }
.steam i:nth-child(2) { left:50%; height:100%; animation-delay:.23s; }
.steam i:nth-child(3) { left:64%; height:71%; animation-delay:.4s; }
[data-serve="tea"] .pour-pot,[data-serve="tea"] .tea-stream,[data-serve="tea"] .steam { display:block; }
[data-serve="tea"] .pour-pot { animation:tea-pour 3.2s ease-in-out both; }
[data-serve="tea"] .tea-stream { animation:tea-flow 3.2s ease-in-out both; }
[data-serve="tea"] .steam i { animation:tea-rise 1.65s ease-out 2 both; }
[data-serve="sweet"] .served-item { animation:plate-arrives 1.35s cubic-bezier(.2,.65,.32,1) both; }
[data-serve] .tea-figure { animation:tea-nod 2.6s .38s ease both; }
@keyframes tea-pour { 0%,100% {opacity:0;transform:translate(33%,-2%) rotate(7deg)} 19%,80%{opacity:1;transform:rotate(-22deg)} }
@keyframes tea-flow { 0%,19%,82%,100%{opacity:0;transform:scaleY(.06)} 25%,70%{opacity:.97;transform:scaleY(1)} 78%{opacity:.7;transform:scaleY(.6)} }
@keyframes tea-rise { 0%{opacity:0;transform:translateY(14%) scale(.75)} 28%{opacity:.95} 100%{opacity:0;transform:translate(20%,-55%) rotate(13deg) scale(1.1)} }
@keyframes plate-arrives { from{opacity:0;transform:translate(62%,-11%) rotate(4deg)} to{opacity:1;transform:none} }
@keyframes tea-nod { 0%,100%{transform:none} 44%{transform:translateY(.7%) rotate(1deg)} }
.tea-caption { border-top:1px solid #c4a371; background:linear-gradient(103deg,#403331,#33232b); color:#fff3d9; padding:13px 18px; min-height:73px; }
.tea-caption > span { font:600 1rem/1.55 var(--serif); letter-spacing:.07em; }
.tea-caption p { margin:3px 0 0; color:#f4dfc2; font-size:.86rem; line-height:1.65; }
.tea-vitals { margin-top:11px; border:1px solid #c7b599; border-radius:6px; background:#fcf7ea; padding:12px 16px; }
.tea-energy-title,.tea-recovery { display:flex; align-items:baseline; gap:10px; justify-content:space-between; }
.tea-energy-title h2 { font:600 1.1rem var(--serif); margin:0; }
.tea-energy-title strong { color:var(--green); font-size:1.04rem; }
.tea-recovery { font-size:.84rem; color:var(--soft); }
.tea-recovery span:last-child,.tea-energy-title strong,.tea-stock { font-variant-numeric:tabular-nums; }
#tea-gauge { display:block; width:100%; height:8px; appearance:none; accent-color:#446a60; background:#e1d7c0; border:0; border-radius:20px; margin:9px 0; }
#tea-gauge::-webkit-progress-bar { background:#e1d7c0; border-radius:20px; }
#tea-gauge::-webkit-progress-value { background:linear-gradient(90deg,#415f54,#6d9382); border-radius:20px; transition:width .55s ease; }
#tea-gauge::-moz-progress-bar { background:#527968; border-radius:20px; }
.tea-menu { min-width:0; }
.tea-views { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid #9e7e5f; }
.tea-views button { min-height:44px; border:0; border-radius:5px 5px 0 0; background:transparent; color:#694e48; font:600 1rem var(--serif); }
.tea-views [aria-pressed="true"] { color:#fff3d6; background:#604049; box-shadow:inset 0 3px #b29465; }
#tea-count { font:600 .8rem var(--sans); background:#fff7e4; border:1px solid #b79c74; color:#5b4243; border-radius:100px; min-width:1.6em; display:inline-block; padding:1px 4px; margin-left:4px; }
.tea-intro { margin:14px 0 11px; }
.tea-intro h2 { margin:0; font:600 1.38rem/1.4 var(--serif); color:#4d3033; letter-spacing:.07em; }
.tea-intro p { margin:3px 0 0; font-size:.9rem; line-height:1.65; color:var(--soft); }
.tea-products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.tea-product { position:relative; min-width:0; display:flex; flex-direction:column; background: #fdf8eb; overflow:hidden; border:1px solid #d5c2a1; border-radius:6px; box-shadow:0 4px 12px -10px #63462f75; }
.tea-art { display:block; width:100%; height:clamp(96px,10vw,135px); object-fit:contain; background:#fdf8eb; mix-blend-mode:multiply; }
.tea-product[data-packed]::after { content:"茶棚に追加"; position:absolute; left:6px; top:6px; border:1px solid #8f9c7d; color:#fff6dd; background:#40594c; padding:3px 7px; border-radius:3px; font:600 .75rem/1.5 var(--serif); animation:shelf-stamp .35s ease both; }
@keyframes shelf-stamp { from {opacity:0;transform:translateY(-4px)} to {opacity:1;transform:none} }
.tea-detail { flex:1; display:flex; flex-direction:column; padding:0 10px 10px; }
.tea-name { margin:3px 0 0; font:650 1.01rem/1.5 var(--serif); letter-spacing:.025em; color:#503137; }
.tea-description { margin:3px 0 7px; font-size:.82rem; line-height:1.6; color:var(--soft); }
.tea-values { display:flex; align-items:center; gap:2px 7px; flex-wrap:wrap; justify-content:space-between; padding:5px 0 7px; margin-top:auto; font-size:.82rem; font-weight:550; color:#365d4d; }
.tea-stock { color:#675647; }
.tea-act { min-height:44px; border:1px solid #6e3942; background:#703844; color:#fffae7; border-radius:3px; font-size:.88rem; padding:5px; }
.tea-act:disabled { opacity:1; background:#f0e8d9; border-color:#d4c7b0; color:#716657; }
.tea-feedback:not(:empty) { padding:10px 13px; margin-top:10px; color:#63333b; border-left:3px solid #91525c; background:#fbf2e2; line-height:1.65; }
.open-shelf { white-space:nowrap; text-underline-offset:.2em; padding:5px 0; }
.tea-destinations { display:flex; flex-wrap:wrap; gap:0 19px; border-top:1px solid var(--line); margin-top:20px; }
.tea-destinations a { min-height:44px; display:inline-flex; align-items:center; font-size:.9rem; color:#64454a; text-underline-offset:.25em; }
@media (min-width:701px) { .tea-left { position:sticky; top:15px; } }
@media(max-width:700px) {
  .tea-layout { grid-template-columns:1fr; gap:15px; }
  .tea-caption { min-height:60px; padding:8px 13px; }
  .tea-vitals { padding:9px 12px; margin-top:7px; }
  .tea-products { gap:7px; }
  .tea-art { height:clamp(98px,26vw,140px); }
  .tea-detail { padding-inline:8px; padding-bottom:8px; }
  .tea-name { font-size:.97rem; }
}
@media(prefers-reduced-motion:reduce) {
  .pour-pot,.tea-stream,.steam { display:none!important; }
  #tea-gauge::-webkit-progress-value { transition:none; }
}
