/* Reference layout: 1440 px desktop, proportionally scaled down to tablets. */
:root {
  --bg: #fcfaf7;
  --ink: #665e55;
  --main: #6d8360;
  --accent: #dc865f;
  --u: min(1px, 0.0694444444vw);
  --header-height: calc(110 * var(--u));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; isolation: isolate; background: var(--bg); color: var(--ink); font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; font-size: calc(17 * var(--u)); line-height: 1.9; letter-spacing: .035em; }
/* A separate fixed layer keeps the room photo still while the page scrolls. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: url('../assets/images/6.jpg') center center / cover no-repeat; opacity: .12; pointer-events: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: calc(1100 * var(--u)); max-width: calc(100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.shape-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.site-header { height: var(--header-height); position: sticky; top: 0; z-index: 20; color: #403c34; background: rgba(252, 250, 247, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 3px 16px rgba(66, 59, 45, .08); }
.header-inner { width: calc(1360 * var(--u)); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: calc(35 * var(--u)); }
.brand { display: flex; align-items: center; gap: calc(16 * var(--u)); flex-shrink: 0; }
.brand img { width: calc(42 * var(--u)); height: calc(58 * var(--u)); object-fit: contain; opacity: .65; }
.brand strong { display: block; font-family: "Klee One", cursive; font-size: calc(28 * var(--u)); line-height: 1.45; font-weight: 600; letter-spacing: .1em; color: #514b42; }
.brand small { display: block; font-size: calc(15 * var(--u)); line-height: 1.6; letter-spacing: .035em; }
.global-nav { display: flex; align-items: center; gap: calc(34 * var(--u)); font-size: calc(16 * var(--u)); font-weight: 500; }
.global-nav a { padding-block: 10px; white-space: nowrap; }
.global-nav a:hover, .site-footer nav a:hover { color: var(--main); text-decoration: underline; text-underline-offset: .4em; }
.site-header .global-nav a:hover { color: #435c38; }
.global-nav .header-contact { display: inline-flex; align-items: center; gap: calc(14 * var(--u)); }
.header-beans { width: calc(42 * var(--u)); height: calc(44 * var(--u)); flex: 0 0 auto; object-fit: contain; opacity: .5; transform: rotate(-16deg); pointer-events: none; }
.menu-button { display: none; flex-shrink: 0; }
.hero { width: calc(1300 * var(--u)); max-width: calc(100% - 40px); display: grid; grid-template-columns: calc(780 * var(--u)) 1fr; gap: calc(40 * var(--u)); align-items: start; padding-top: calc(28 * var(--u)); padding-bottom: calc(56 * var(--u)); }
.hero-photo { height: calc(620 * var(--u)); clip-path: url(#hero-shape); overflow: hidden; }
.hero-photo img, .access-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo img { object-position: 66% center; }
.hero-copy { position: relative; padding-top: calc(136 * var(--u)); }
.hero-copy h1 { position: relative; font-family: "Klee One", cursive; color: #6d5742; font-size: calc(39 * var(--u)); line-height: 1.57; font-weight: 600; letter-spacing: .075em; margin: 0 0 calc(46 * var(--u)); white-space: nowrap; }
.hero-copy p { font-size: calc(17 * var(--u)); line-height: 2; margin: 0; }
.hero-branch { position: absolute; width: calc(155 * var(--u)); right: calc(-30 * var(--u)); top: calc(-22 * var(--u)); opacity: .4; clip-path: inset(0 0 0 8%); }
.stamp { position: relative; width: calc(230 * var(--u)); margin: calc(18 * var(--u)) calc(-35 * var(--u)) 0 auto; opacity: .65; }
.stamp img { width: 100%; }
.stamp span { position: absolute; left: 5%; top: 20%; width: 55%; text-align: center; color: #667c58; font-family: Georgia, serif; font-size: calc(17 * var(--u)); line-height: 1.45; letter-spacing: .025em; }
.section { position: relative; padding: 0; scroll-margin-top: calc(var(--header-height) + 24px); }
/* Coffee-bean accents stay beside each section title. */
main > section + section { margin-top: 200px; }
/* Generated watercolor accents use the existing space between sections. */
.section-illustration { position: absolute; top: -180px; left: max(24px, calc(50% - 470 * var(--u))); width: clamp(100px, 10.5vw, 150px); height: auto; aspect-ratio: 1; object-fit: contain; opacity: .6; filter: saturate(.75); pointer-events: none; user-select: none; }
.section-illustration--kettle { transform: rotate(-8deg); }
.section-illustration--pour-over { left: auto; right: max(24px, calc(50% - 470 * var(--u))); transform: rotate(6deg); }
.section-illustration--coffee-sack { transform: rotate(-5deg); }

.section-title { display: flex; align-items: center; justify-content: center; gap: calc(16 * var(--u)); font-family: "Klee One", cursive; text-align: center; color: var(--main); font-size: calc(34 * var(--u)); line-height: 1.7; font-weight: 600; letter-spacing: .12em; margin: 0; }
.section-title::after { content: ""; flex: 0 0 auto; width: calc(36 * var(--u)); height: calc(38 * var(--u)); background: url('../assets/images/deco-13.png') center / contain no-repeat; opacity: .65; transform: rotate(18deg); pointer-events: none; }
.section-rule { width: calc(50 * var(--u)); height: calc(7 * var(--u)); margin: calc(2 * var(--u)) auto 100px; background: url('../assets/images/deco-4.png') center / 100% 100% no-repeat; opacity: .8; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: calc(65 * var(--u)); }
.copy h3 { font-family: "Klee One", cursive; color: #8c8262; font-size: calc(30 * var(--u)); line-height: 1.65; font-weight: 600; margin: 0 0 calc(40 * var(--u)); }
.copy p { font-size: calc(17 * var(--u)); line-height: 2.15; margin: 0; }
.concept { padding-bottom: calc(90 * var(--u)); }
.concept .split { width: calc(940 * var(--u)); margin-inline: auto; height: calc(330 * var(--u)); grid-template-columns: calc(440 * var(--u)) calc(500 * var(--u)); gap: calc(50 * var(--u)); }
.product-cutout { display: flex; align-items: center; justify-content: center; height: 100%; }
.product-cutout img { width: calc(500 * var(--u)); max-height: calc(400 * var(--u)); object-fit: contain; filter: brightness(1.1); mix-blend-mode: multiply; mask-image: radial-gradient(ellipse at center, #000 58%, transparent 76%); }
#coffee { padding-bottom: calc(77 * var(--u)); }
#coffee .container { width: calc(1080 * var(--u)); }
.cards { display: grid; gap: calc(62 * var(--u)); }
.cards.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cards article img { width: 100%; height: auto; aspect-ratio: 1.57; object-fit: cover; border-radius: calc(30 * var(--u)); }
.cards article h3 { font-family: "Klee One", cursive; font-size: calc(21 * var(--u)); font-weight: 600; margin: calc(16 * var(--u)) calc(5 * var(--u)) calc(10 * var(--u)); line-height: 1.6; letter-spacing: .03em; }
.cards article p { margin: 0 calc(5 * var(--u)); font-size: calc(16 * var(--u)); line-height: 1.9; letter-spacing: .015em; }
#interior { padding-bottom: calc(57 * var(--u)); }
#interior .cards { gap: calc(64 * var(--u)); }
#interior .cards article img { aspect-ratio: 1.5; border-radius: calc(14 * var(--u)); }
.note { text-align: center; color: #777169; font-size: calc(16 * var(--u)); line-height: 2; margin: calc(38 * var(--u)) 0 0; letter-spacing: .02em; }
.access { padding-bottom: calc(70 * var(--u)); }
.access-split { min-height: calc(410 * var(--u)); grid-template-columns: calc(480 * var(--u)) calc(560 * var(--u)); gap: calc(70 * var(--u)); }
.access .copy { padding-left: calc(16 * var(--u)); }
.access .copy h3 { color: var(--main); font-size: calc(29 * var(--u)); margin-bottom: calc(24 * var(--u)); }
.access .copy p { font-size: calc(16 * var(--u)); line-height: 2; }
.access-photo { height: calc(410 * var(--u)); clip-path: url(#access-shape); overflow: hidden; }
.access-photo img { object-position: center 55%; }
.access-list { list-style: none; padding: 0; margin: calc(27 * var(--u)) 0 0; }
.access-list li { display: flex; align-items: center; gap: calc(13 * var(--u)); font-size: calc(16 * var(--u)); line-height: 1.6; margin: calc(12 * var(--u)) 0; letter-spacing: .015em; }
.access-list img { width: calc(19 * var(--u)); height: calc(21 * var(--u)); object-fit: contain; opacity: .65; }
.flow { padding-bottom: calc(24 * var(--u)); }
.flow-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: calc(76 * var(--u)); padding-inline: calc(25 * var(--u)); }
.flow-grid article { display: grid; position: relative; grid-template-columns: calc(92 * var(--u)) 1fr; grid-template-rows: calc(88 * var(--u)) auto; column-gap: calc(22 * var(--u)); align-items: center; padding-left: calc(38 * var(--u)); min-height: calc(170 * var(--u)); }
.flow-grid article:not(:last-child)::after { content: "·····›"; position: absolute; right: calc(-55 * var(--u)); top: calc(52 * var(--u)); font-size: calc(26 * var(--u)); color: #9ba990; letter-spacing: .08em; }
.step { position: absolute; left: 0; top: 0; width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: 50%; display: grid; place-items: center; background: #4f6b40; color: #fff; font-family: Georgia,serif; font-size: calc(24 * var(--u)); line-height: 1; }
.flow-grid img { width: calc(84 * var(--u)); height: calc(88 * var(--u)); object-fit: contain; }
.flow-grid article:nth-child(2) img { clip-path: inset(0 0 8%); }
.flow-grid article:nth-child(3) img { width: calc(64 * var(--u)); }
.flow-grid h3 { font-family: "Klee One", cursive; font-size: calc(21 * var(--u)); line-height: 1.6; margin: 0; font-weight: 600; white-space: nowrap; }
.flow-grid p { width: calc(300 * var(--u)); grid-column: 1/-1; align-self: start; font-size: calc(16 * var(--u)); line-height: 1.9; margin: calc(15 * var(--u)) 0 0 calc(20 * var(--u)); }
.flow .note { margin-top: calc(30 * var(--u)); }
.contact-panel { width: calc(1360 * var(--u)); min-height: calc(444 * var(--u)); position: relative; display: grid; place-items: center; isolation: isolate; }
.contact-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url('../assets/images/deco-6.png') center / cover; opacity: .25; }
.contact-main { position: relative; text-align: center; width: calc(590 * var(--u)); padding-top: calc(8 * var(--u)); z-index: 2; }
.contact-main p { font-family: "Klee One", cursive; font-weight: 600; font-size: calc(23 * var(--u)); line-height: 1.8; margin: 0 0 calc(34 * var(--u)); }
.contact-leaf { position: absolute; left: calc(15 * var(--u)); bottom: calc(28 * var(--u)); width: calc(240 * var(--u)); height: calc(396 * var(--u)); object-fit: contain; opacity: .75; clip-path: polygon(0 0,68% 0,68% 15%,100% 15%,100% 90%,58% 90%,58% 100%,0 100%); }
.grinder { position: absolute; right: calc(-4 * var(--u)); bottom: calc(44 * var(--u)); width: calc(320 * var(--u)); height: calc(328 * var(--u)); object-fit: cover; object-position: 57% center; }
.cta { margin-bottom: 100px; width: calc(515 * var(--u)); min-height: calc(87 * var(--u)); display: inline-flex; align-items: center; justify-content: center; gap: calc(22 * var(--u)); background: var(--accent); color: #fff9ed; border-radius: calc(20 * var(--u)); font-family: "Klee One", cursive; font-size: calc(28 * var(--u)); font-weight: 600; letter-spacing: .06em; transition: background .2s; }
.cta svg { width: calc(36 * var(--u)); height: calc(30 * var(--u)); flex: 0 0 auto; }
.cta span { font-family: sans-serif; font-size: calc(36 * var(--u)); font-weight: 400; line-height: 1; margin-left: calc(32 * var(--u)); }
.cta:hover { background: #ca764e; }
.site-footer { padding: calc(61 * var(--u)) 0 calc(24 * var(--u)); }
.footer-inner { width: calc(1350 * var(--u)); display: flex; align-items: center; justify-content: space-between; gap: calc(30 * var(--u)); }
.site-footer nav { display: flex; align-items: center; gap: calc(32 * var(--u)); font-size: calc(14 * var(--u)); font-weight: 500; white-space: nowrap; }
.sns { display: flex; gap: calc(20 * var(--u)); }
.sns a { width: calc(30 * var(--u)); height: calc(36 * var(--u)); display: grid; place-items: center; }
.sns img { width: calc(36 * var(--u)); height: calc(36 * var(--u)); object-fit: contain; opacity: .7; clip-path: inset(18% 0 0); }
.copyright { text-align: center; font-size: calc(12 * var(--u)); line-height: 1.8; margin: calc(25 * var(--u)) 0 0; color: #857e75; }
.back-to-top { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 15; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: #58714c; color: #fffdf7; box-shadow: 0 4px 16px rgba(47,59,39,.16); }
.back-to-top svg { width: 21px; height: 21px; }
.back-to-top span { font-family: sans-serif; font-size: 10px; line-height: 1; letter-spacing: .06em; }
.back-to-top:hover { background: #425a38; }
:focus-visible { outline: 2px solid #925b3d; outline-offset: 5px; }
/* Keep content visible even if JavaScript or an animation is unavailable. */
.reveal { opacity: 1; }
@media (max-width: 700px) {
  :root { --u: 1px; --header-height: 84px; }
  main > section + section { margin-top: 100px; }
  .section-illustration { top: -90px; left: 30px; width: 76px; }
  .section-illustration--pour-over { left: auto; right: 30px; }
  body { font-size: 15px; }
  .container { width: calc(100% - 40px); max-width: none; }
  .site-header { height: var(--header-height); }
  .header-inner { gap: clamp(6px, 2vw, 12px); }
  .header-beans { width: 24px; height: 26px; }
  .brand { gap: 10px; }
  .brand img { width: 28px; height: 40px; }
  .brand strong { font-size: 21px; }
  .brand small { font-size: 11px; }
  .menu-button { display: block; position: relative; z-index: 30; background: none; border: 0; padding: 10px; width: 44px; height: 44px; cursor: pointer; }
  .menu-button span:not(.sr-only) { display: block; height: 1px; background: var(--ink); margin: 6px 0; }
  .global-nav { position: absolute; top: 74px; right: 20px; max-height: calc(100dvh - 94px); overflow-y: auto; width: min(320px,calc(100vw - 40px)); background: var(--bg); padding: 22px; display: none; flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 10px 30px rgba(0,0,0,.05); border: 1px solid #e7e6df; border-radius: 12px; }
  .global-nav.is-open { display: flex; }
  .global-nav a { padding: 12px 0; font-size: 14px; }
  .hero { display: grid; grid-template-columns: minmax(0,1fr); gap: 26px; padding-top: 6px; padding-bottom: 52px; }
  .hero-photo { height: auto; aspect-ratio: 1.26; }
  .hero-copy { padding: 16px 8px 0; }
  .hero-copy h1 { font-size: clamp(22px,5.65vw,36px); line-height: 1.7; letter-spacing: .035em; margin-bottom: 24px; }
  .hero-copy p { font-size: 14px; line-height: 2; }
  .hero-branch { width: 84px; top: 4px; right: 0; opacity: .22; }
  .stamp { width: 135px; margin: 12px 0 0 auto; }
  .stamp span { font-size: 10px; }
  .section-title { font-size: 27px; gap: 10px; }
  .section-title::after { width: 28px; height: 30px; }
  .section-rule { width: 42px; height: 5px; margin: 4px auto 50px; }
  .concept { padding-bottom: 54px; }
  .concept .split, .split, .access-split { width: 100%; height: auto; min-height: 0; grid-template-columns: minmax(0,1fr); gap: 22px; }
  .concept .copy { padding-inline: 12px; }
  .copy h3 { font-size: 25px; margin-bottom: 22px; }
  .copy p { font-size: 14px; }
  .product-cutout img { width: min(100%,350px); max-height: 280px; }
  #coffee, #interior, .access { padding-bottom: 58px; }
  #coffee .container { width: calc(100% - 40px); }
  .cards.three { grid-template-columns: minmax(0,1fr); gap: 32px; max-width: 420px; margin-inline: auto; }
  .cards article img { aspect-ratio: 1.57; border-radius: 18px; }
  .cards article h3 { font-size: 20px; margin: 12px 0 7px; }
  .cards article p { font-size: 14px; margin: 0; }
  .cards article p br, .flow-grid p br { display: none; }
  #interior .cards { gap: 32px; }
  #interior .cards article img { aspect-ratio: 1.5; border-radius: 12px; }
  .note { font-size: 12px; margin-top: 28px; }
  .access .copy { padding-left: 0; }
  .access .copy h3 { font-size: 25px; }
  .access .copy p { font-size: 14px; }
  .access-list { margin-top: 22px; }
  .access-list li { font-size: 12px; gap: 9px; margin: 11px 0; }
  .access-list img { width: 16px; height: 18px; }
  .access-photo { width: 100%; height: auto; aspect-ratio: 1.36; max-width: 440px; margin: 8px auto 0; }
  .flow { padding-bottom: 42px; }
  .flow-grid { grid-template-columns: minmax(0,1fr); gap: 24px; padding-inline: 6px; max-width: 420px; margin-inline: auto; }
  .flow-grid article { grid-template-columns: 70px minmax(0,1fr); grid-template-rows: auto auto; gap: 6px 20px; padding-left: 38px; min-height: 96px; }
  .flow-grid img { grid-row: 1/3; width: 64px; height: 78px; }
  .flow-grid h3 { font-size: 20px; white-space: normal; }
  .flow-grid p { width: auto; grid-column: 2; margin: 0; font-size: 14px; }
  .flow-grid article:not(:last-child)::after { display: none; }
  .step { width: 28px; height: 28px; font-size: 18px; }
  .contact-panel { width: calc(100% - 20px); min-height: 440px; padding: 36px 12px 180px; overflow: hidden; }
  .contact-main { width: 100%; padding-top: 0; }
  .contact-main p { font-size: 17px; margin-bottom: 22px; }
  .cta { width: min(100%,360px); min-height: 60px; border-radius: 12px; font-size: clamp(17px,4.7vw,21px); gap: 12px; letter-spacing: .025em; }
  .cta svg { width: 25px; height: 22px; }
  .cta span { font-size: 26px; margin-left: 8px; }
  .contact-leaf { left: 6px; bottom: 10px; width: 108px; height: 170px; opacity: .65; }
  .grinder { width: 148px; height: 150px; right: 2px; bottom: 0; }
  .back-to-top { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 48px; height: 48px; }
  .site-footer { padding: 40px 0 22px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .site-footer nav { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px 25px; font-size: 12px; }
  .sns { gap: 18px; }
  .sns a { width: 36px; height: 36px; }
  .copyright { font-size: 11px; margin-top: 20px; }
}
/* A gentle sway for coffee-bean illustrations, without shifting the layout. */
.header-beans, .section-title::after, .flow-grid article:nth-child(3) img { animation: coffee-bean-sway 7s ease-in-out infinite; transform-origin: center; }
.header-beans { --bean-tilt: -16deg; animation-delay: -1.5s; }
.section-title::after { --bean-tilt: 18deg; }
.section:nth-of-type(even) .section-title::after { animation-delay: -3.5s; }
.flow-grid article:nth-child(3) img { --bean-tilt: 0deg; animation-delay: -2.5s; }
@keyframes coffee-bean-sway {
  0%, 100% { transform: translateY(0) rotate(calc(var(--bean-tilt, 0deg) - 4deg)); }
  50% { transform: translateY(-4px) rotate(calc(var(--bean-tilt, 0deg) + 4deg)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cta { transition: none; } .header-beans, .section-title::after, .flow-grid article:nth-child(3) img { animation: none; } }

/* Animate decorative artwork only; photo backgrounds and text stay still. */
.brand img, .hero-branch, .stamp, .section-illustration,
.contact-leaf, .flow-grid article:not(:nth-child(3)) img,
.access-list img, .sns img, .cta svg, .back-to-top svg {
  --illustration-lift: -4px;
  --illustration-tilt: 1deg;
  animation: illustration-float 10s ease-in-out infinite;
}
.brand img, .hero-branch, .contact-leaf {
  animation-name: illustration-sway;
  transform-origin: 50% 100%;
}
.hero-branch { animation-delay: -3s; }
.contact-leaf { animation-duration: 12s; animation-delay: -5s; }
.stamp { animation-duration: 12s; animation-delay: -4s; }
.section-illustration--kettle { animation-delay: -1s; }
.section-illustration--pour-over { animation-delay: -4s; }
.section-illustration--coffee-sack { animation-delay: -7s; }
.flow-grid article:nth-child(2) img { animation-delay: -3s; }
.access-list img, .sns img, .cta svg, .back-to-top svg {
  --illustration-lift: -2px;
  --illustration-tilt: .5deg;
  animation-duration: 8s;
}
.access-list li:nth-child(even) img, .sns a:nth-child(even) img { animation-delay: -4s; }
.section-rule { animation: illustration-ink 10s ease-in-out infinite; }
@keyframes illustration-float {
  0%, 100% { translate: 0 0; rotate: calc(0deg - var(--illustration-tilt)); }
  50% { translate: 0 var(--illustration-lift); rotate: var(--illustration-tilt); }
}
@keyframes illustration-sway {
  0%, 100% { rotate: -1deg; }
  50% { rotate: 1deg; }
}
@keyframes illustration-ink {
  0%, 100% { scale: .96 1; }
  50% { scale: 1 1; }
}
@media (prefers-reduced-motion: reduce) {
  .brand img, .hero-branch, .stamp, .section-illustration,
  .contact-leaf, .flow-grid article:not(:nth-child(3)) img,
  .access-list img, .sns img, .cta svg, .back-to-top svg, .section-rule { animation: none; }
}
