:root {
  --paper: #ece9e0;
  --ink: #20231f;
  --rule: #aaa99f;
  --gutter: clamp(24px, 4.2vw, 80px);
  --column-gap: clamp(20px, 2.2vw, 36px);
  --section-type: clamp(52px, 7.2vw, 104px);
  --section-inset: clamp(48px, 5.6vw, 80px);
  --type: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--type); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
img { display: block; width: 100%; max-width: 100%; height: auto; }
figure, p, h1, h2 { margin: 0; }
h1, h2 { font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--ink); color: var(--paper); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.skip-link { position: fixed; top: -70px; left: 24px; z-index: 30; padding: 12px 20px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 20px; }
.site-header { position: absolute; z-index: 12; top: 0; left: var(--gutter); right: var(--gutter); height: 108px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); }
.brand img { width: 58px; height: 58px; border-radius: 50%; }
.site-header nav { display: flex; gap: 42px; align-items: center; }
.site-header nav a { position: relative; display: flex; align-items: center; min-height: 44px; font-size: 13px; }
.site-header nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 7px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.site-header nav a:hover::after { transform: scaleX(1); }
#puppet-rods, #bean-stream-back, #bean-stream { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; pointer-events: none !important; }
#puppet-rods { z-index: 2; }
#bean-stream-back { z-index: 3; }
#bean-stream { z-index: 7; }
.hero { --hero-height: clamp(680px, min(100svh, calc(600px + 32vw)), 1120px); --hero-name-top: clamp(190px, calc(148px + 3.5vw), 218px); --hero-name-size: min(26.7vw, calc((var(--hero-height) - 430px) / .78)); --cup-size: clamp(270px, min(calc(110px + 47vw), calc(100svh - 310px)), 580px); --cup-top: max(235px, calc((var(--hero-height) - var(--cup-size)) * .5 + 55px)); --hero-label-size: clamp(48px, 5.5vw, 88px); --hero-label-offset: clamp(0px, calc((760px - 100vw) * .25), 100px); position: relative; height: var(--hero-height); overflow: hidden; }
.hero-copy, .hero-art { display: contents; }
.hero-location { position: absolute; z-index: 9; left: var(--gutter); top: 136px; display: flex; align-items: center; gap: 16px; font-size: 14px; line-height: 1.45; }
.hero-kanji { font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif; font-size: 42px; font-weight: 400; line-height: 1; }
.hero-word { position: absolute; z-index: 3; top: var(--hero-name-top); left: var(--gutter); right: var(--gutter); display: flex; align-items: center; justify-content: space-between; font-size: var(--hero-name-size); line-height: .78; letter-spacing: -.065em; user-select: none; transform: translate3d(var(--type-x, 0px), var(--type-back-y, 0px), 0); }
.hero-word > span { display: block; }
.hero-word .bean-letter { width: .59em; height: .76em; margin-left: .04em; margin-right: -.025em; }
.bean-letter svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.cup-scene { position: absolute; z-index: 4; width: var(--cup-size); aspect-ratio: 1; left: 58%; top: var(--cup-top); transform: translate3d(calc(-42% + var(--pointer-x, 0px)), var(--pointer-y, 0px), 0) rotate(var(--pointer-r, -4deg)); transform-origin: 50% 135%; }
.hero-cup { aspect-ratio: 1; object-fit: contain; }
.hero-front { position: absolute; z-index: 9; left: var(--gutter); top: min(max(calc(var(--hero-name-top) + var(--hero-name-size) * .78 + 24px), calc(var(--cup-top) + var(--cup-size) * .94 - 20px - var(--hero-label-size) * .9 + var(--hero-label-offset))), calc(var(--hero-height) - 110px - var(--hero-label-size) * .9)); font-size: var(--hero-label-size); font-weight: 700; line-height: .9; letter-spacing: -.055em; pointer-events: none; transform: translate3d(0, var(--type-front-y, 0px), 0); }
.hero-bottom { position: absolute; z-index: 9; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 20px; border-top: 1px solid var(--rule); background: var(--paper); font-size: 12px; line-height: 1.45; }
.hero-bottom .underlined { font-size: 14px; }
.scroll-link { position: absolute; left: 49%; display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 22px; line-height: 1; }
.underlined { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 44px; border-bottom: 1px solid currentColor; font-size: 12px; line-height: 1.5; }
.underlined span { font-size: 19px; transition: transform .2s; }
.underlined:hover span { transform: translate(2px, -2px); }
.bean-anchor { position: absolute; width: 1px; height: 1px; pointer-events: none; }
.anchor-start { top: 18%; }
.anchor-turn { top: 43%; }
.anchor-hero { top: 76%; }
.bean-passage { position: relative; margin: 0 var(--gutter); pointer-events: none; }
.bean-passage .bean-anchor { top: 50%; }
.passage-one { height: clamp(48px, 6vw, 80px); }
.coffee-stage { grid-column: 1 / span 7; grid-row: 2; height: clamp(560px, 46vw, 760px); margin: 48px 0 0; }
.passage-three { height: clamp(72px, 8.4vw, 112px); }
main > section:not(.hero) { margin-left: var(--gutter); margin-right: var(--gutter); }
.coffee-section, .space-intro, .space-layout, .visit-section { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--column-gap); }
.coffee-section { position: relative; padding-top: var(--section-inset); border-top: 1px solid var(--ink); align-items: start; }
.coffee-copy { grid-column: 1 / span 5; grid-row: 1; position: relative; z-index: 9; }
.coffee-copy h2, .space-section h2, .visit-section h2 { position: relative; z-index: 9; width: fit-content; font-size: var(--section-type); line-height: .96; letter-spacing: -.06em; }
.coffee-copy h2 { margin-bottom: 32px; }
.section-lead { max-width: 28ch; font-size: clamp(20px, 2vw, 25px); line-height: 1.4; letter-spacing: -.025em; }
.section-copy { max-width: 29ch; margin-top: 16px; font-size: 16px; line-height: 1.55; }
.coffee-list { margin: 32px 0 20px; font-size: 13px; line-height: 1.7; }
.coffee-copy .underlined { font-size: 13px; }
.food-photo { grid-column: 7 / -1; grid-row: 1 / span 2; align-self: center; position: relative; z-index: 6; margin-top: 0; }
.photo-frame { overflow: hidden; }
.food-photo .photo-frame { aspect-ratio: 1.08; }
.food-photo img { height: 100%; object-fit: cover; object-position: 50% 88%; transform: scale(1.17); transform-origin: 50% 75%; }
.food-photo figcaption { margin-top: 14px; font-size: 12px; line-height: 1.5; }
.anchor-coffee { bottom: 6%; }
.pastry-scene { position: absolute; z-index: 4; left: 59%; top: 35%; width: clamp(260px, 27vw, 400px); aspect-ratio: 1; transform: translate(calc(-50% + var(--pastry-x, 0px)), calc(-50% + var(--pastry-y, 0px))) rotate(var(--pastry-r, -12deg)); transform-origin: 50% 145%; }
.pastry-scene img { aspect-ratio: 1; object-fit: contain; }
.space-section { position: relative; padding-top: var(--section-inset); border-top: 1px solid var(--ink); }
.space-intro { align-items: start; margin-bottom: 48px; }
.space-intro h2 { grid-column: 1 / span 6; }
.space-intro > p { grid-column: 7 / -1; position: relative; z-index: 9; padding-top: .12em; }
.space-note { display: block; margin-top: 20px; font-size: 16px; line-height: 1.5; letter-spacing: 0; }
.space-layout { align-items: end; }
.interior-photo { grid-column: 1 / span 7; position: relative; z-index: 6; }
.interior-photo .photo-frame { aspect-ratio: .96; }
.interior-photo img { height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.17); }
.space-aside { grid-column: 9 / -1; }
.counter-photo { position: relative; z-index: 6; width: 100%; margin: 0; }
.counter-photo .photo-frame { aspect-ratio: 1.05; }
.counter-photo img { height: 100%; object-fit: cover; object-position: 50% 55%; transform: scale(1.18); }
.anchor-space { bottom: 3%; }
.visit-section { position: relative; align-items: start; padding: var(--section-inset) 0 72px; border-top: 1px solid var(--ink); }
.visit-section h2 { grid-column: 1 / span 6; }
.visit-details { grid-column: 7 / -1; position: relative; z-index: 9; padding-top: .12em; }
.visit-details address { font-size: clamp(20px, 2vw, 25px); font-style: normal; line-height: 1.4; letter-spacing: -.025em; }
.visit-details > .underlined { margin-top: 20px; }
.visit-details > p { margin-top: 32px; font-size: 14px; line-height: 1.5; }
.visit-details > p + .underlined { margin-top: 8px; }
.email-link { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 44px; margin-top: 24px; font-size: 13px; overflow-wrap: anywhere; }
.email-link:hover { text-decoration: underline; }
.anchor-visit { bottom: 12%; }
.site-footer { position: relative; z-index: 9; display: flex; align-items: center; justify-content: space-between; margin: 0 var(--gutter); padding: 20px 0 28px; border-top: 1px solid var(--ink); font-size: 12px; }
.site-footer > a:first-child { display: flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; letter-spacing: -.03em; }
.site-footer > a:last-child { display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 26px; line-height: 1; }
@media (min-width: 701px) {
  .hero { --cup-size: min(720px, calc(var(--hero-height) - 220px), 44vw); }
  .hero-copy { position: absolute; z-index: 9; left: var(--gutter); top: calc(50% - 8px); width: calc(44% - var(--gutter)); display: flex; flex-direction: column; align-items: flex-start; transform: translateY(-50%); }
  .hero-location { position: static; margin-bottom: 32px; }
  .hero-word { position: relative; inset: auto; width: 100%; justify-content: flex-start; gap: .025em; font-size: clamp(104px, 15.5vw, 300px); line-height: .86; transform: none; }
  .hero-front { position: static; margin-top: 20px; font-size: clamp(44px, 4.6vw, 88px); line-height: .95; transform: none; }
  .hero-art { position: absolute; left: 49%; right: var(--gutter); top: 140px; bottom: 110px; display: block; }
  .cup-scene { left: 54%; top: 50%; transform: translate3d(calc(-50% + var(--pointer-x, 0px)), calc(-50% + var(--pointer-y, 0px)), 0) rotate(var(--pointer-r, -4deg)); }
}
@media (min-width: 1600px) {
  .hero-bottom { bottom: 36px; }
}
@media (max-width: 700px) {
  :root { --gutter: 23px; }
  .site-header { height: 96px; }
  .brand img { width: 51px; height: 51px; }
  .site-header nav { gap: 27px; }
  .site-header nav a { font-size: 12px; }
  .hero-location { top: 122px; font-size: 13px; }
  .hero-location { gap: 12px; }
  .hero-kanji { font-size: 36px; }
  .hero-bottom { bottom: 29px; font-size: 12px; gap: 20px; }
  .hero-bottom .underlined { max-width: 155px; gap: 13px; font-size: 12px; }
  .hero-bottom .underlined span { font-size: 17px; }
  .scroll-link { display: none; }
  .coffee-section, .space-intro, .space-layout, .visit-section { grid-template-columns: minmax(0, 1fr); }
  .coffee-copy, .food-photo, .space-intro h2, .space-intro > p, .interior-photo, .space-aside, .visit-section h2, .visit-details { grid-column: 1; }
  .coffee-section { row-gap: 40px; }
  .coffee-copy h2 { margin-bottom: 28px; }
  .coffee-list { margin-top: 28px; }
  .food-photo { grid-row: 2; width: 100%; margin: 0; }
  .food-photo .photo-frame { aspect-ratio: 1; }
  .food-photo figcaption { margin-top: 12px; font-size: 12px; }
  .pastry-scene { width: min(240px, 70vw); }
  .coffee-stage { grid-column: 1; grid-row: 3; height: 480px; margin: 0; }
  .space-intro { row-gap: 28px; margin-bottom: 36px; }
  .space-intro > p { padding-top: 0; }
  .space-note { margin-top: 16px; }
  .space-layout { row-gap: 32px; }
  .interior-photo { width: 100%; }
  .space-aside { width: 68%; justify-self: end; }
  .visit-section { row-gap: 32px; padding-bottom: 56px; }
  .visit-details { padding-top: 0; }
  .visit-details > p { margin-top: 32px; }
  .visit-details > .underlined { margin-top: 16px; }
  .visit-details > p + .underlined { margin-top: 6px; }
  .email-link { margin-top: 24px; }
  .site-footer { padding: 16px 0 22px; }
  .site-footer > a:first-child { font-size: 13px; }
  .site-footer > span { display: none; }
}
@media (max-width: 370px) {
  :root { --gutter: 20px; }
  .site-header nav { gap: 20px; }
  .hero-bottom .underlined { max-width: 135px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cup-scene { transform: translateX(-42%) rotate(-4deg); }
  .pastry-scene { transform: translate(-50%, -50%) rotate(-12deg); }
  .hero-word, .hero-front { transform: none; }
}
@media (min-width: 701px) and (prefers-reduced-motion: reduce) {
  .cup-scene { transform: translate(-50%, -50%) rotate(-4deg); }
}
