/* 見本：アオバト焙煎所（架空のコーヒー豆の通販）— クラフト紙×深緑 */
:root {
  --kraft: #d8c4a2; --kraft2: #c9b089; --kraft3: #b89a6e; --paper: #f5eedf; --paper2: #ece2cd;
  --green: #1d3b2d; --green2: #2b5541; --leaf: #6f9a63;
  --ink: #1b1712; --ink2: #241f19; --mute: #2c2620;
  --red: #a3311b; --line: rgba(27,23,18,.2); --line2: rgba(27,23,18,.1);
  --f-en: "Fraunces", "Georgia", serif; --f-ja: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body { margin: 0; background: var(--kraft) var(--noise); color: var(--ink); font-family: var(--f-ja); font-weight: 500; font-size: 17.5px; line-height: 1.9; letter-spacing: .04em; overflow-x: clip; }
::selection { background: var(--green); color: var(--paper); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
a { color: inherit; text-underline-offset: .25em; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.en { font-family: var(--f-en); font-style: italic; font-weight: 400; letter-spacing: .01em; }
.num { font-family: var(--f-en); font-variant-numeric: tabular-nums lining-nums; font-weight: 600; letter-spacing: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ヘッダー（transform・backdrop-filter は付けない） */
.hd { position: fixed; inset: 0 0 auto; z-index: 40; }
.hd-note { margin: 0; background: var(--green); color: var(--paper); font-size: 13.5px; letter-spacing: .08em; text-align: center; padding: 6px 12px; line-height: 1.5; }
.hd-note b { color: #f3d48a; font-weight: 700; }
.hd-bar { display: flex; align-items: center; gap: 28px; padding: 12px 30px; background: var(--kraft) var(--noise); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand b { font: 700 19px/1.1 var(--f-ja); letter-spacing: .1em; display: block; }
.brand small { font: italic 400 13px/1.2 var(--f-en); letter-spacing: .06em; display: block; }
.nav { margin-left: auto; display: flex; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--ink); color: var(--paper); border: 0; cursor: pointer; font-size: 15px; letter-spacing: .08em; }
.cart-btn svg { width: 24px; height: 24px; }
.cart-btn .cnt { min-width: 26px; height: 26px; border-radius: 99px; background: #f3d48a; color: var(--ink); font: 700 14px/26px var(--f-en); text-align: center; padding: 0 6px; }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.14) rotate(-4deg); } 60% { transform: scale(.96); } }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .hd-bar { padding: 8px 14px; gap: 10px; }
  .brand svg { width: 34px; height: 34px; }
  .brand b { font-size: 16.5px; }
  .cart-btn { margin-left: auto; min-height: 42px; padding: 0 12px 0 10px; }
  .cart-btn .lbl { display: none; }
  .menu-btn { display: block; width: 44px; height: 44px; background: none; border: 0; position: relative; cursor: pointer; }
  .menu-btn i { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s; }
  .menu-btn i:first-child { top: 17px; } .menu-btn i:last-child { top: 25px; }
  .open .menu-btn i:first-child { transform: translateY(4px) rotate(45deg); } .open .menu-btn i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hd-note { font-size: 12.5px; }
}
.sp { position: fixed; inset: 0; z-index: 39; background: var(--kraft) var(--noise); display: flex; flex-direction: column; justify-content: center; padding: 110px 28px 90px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; overflow-y: auto; }
.open .sp { visibility: visible; opacity: 1; }
.sp a { font: 700 23px/1.5 var(--f-ja); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sp a small { font: italic 400 16px var(--f-en); }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 28px; border-radius: 999px; background: var(--green); color: var(--paper); text-decoration: none; font-size: 16px; font-weight: 700; letter-spacing: .1em; border: 0; cursor: pointer; transition: background .25s, transform .25s; }
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; }

/* 見出し */
.sec { padding: clamp(80px, 11vw, 140px) 0 0; }
.sh { margin-bottom: 40px; max-width: 46em; }
.sh .en { font-size: 20px; color: var(--green2); display: block; margin-bottom: 4px; }
.sh h2 { font: 700 clamp(30px, 4.2vw, 46px)/1.35 var(--f-ja); margin: 0 0 14px; letter-spacing: .06em; }
.sh p { margin: 0; }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* 最初の画面 */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100vh; min-height: 100svh; padding-top: 98px; }
.hero-ph { position: relative; overflow: hidden; background: var(--green); color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; padding: 40px clamp(24px, 4vw, 56px) 56px; isolation: isolate; }
.hero-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; animation: slowzoom 18s ease-in-out infinite alternate; }
.hero-ph::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29,59,45,.15) 0%, rgba(29,59,45,.35) 40%, rgba(20,40,30,.92) 100%); }
@keyframes slowzoom { to { transform: scale(1.08); } }
.hero-ph .stamp { position: absolute; top: 28px; left: clamp(24px, 4vw, 56px); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 112px; height: 112px; border-radius: 50%; border: 2px solid var(--paper); font: italic 400 15px/1.2 var(--f-en); text-align: center; transform: rotate(-10deg); background: rgba(29,59,45,.55); }
.hero-ph .stamp b { font: 700 13px/1.4 var(--f-ja); letter-spacing: .08em; font-style: normal; }
.hero h1 { font: 700 clamp(36px, 4.4vw, 60px)/1.32 var(--f-ja); letter-spacing: .06em; margin: 0 0 18px; }
.hero-ph p { margin: 0; max-width: 26em; font-size: 16.5px; color: #f5eedf; }
.hero-shop { padding: 34px clamp(20px, 3.4vw, 52px) 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); gap: 28px; align-items: center; }
.map-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.map-head h2 { margin: 0; font: 700 22px/1.4 var(--f-ja); letter-spacing: .08em; }
.map-head .hint { font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.map-head .hint svg { width: 22px; height: 22px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate(5px, -3px); } }

/* 味の地図 */
.map { position: relative; aspect-ratio: 1 / 1; max-height: calc(100svh - 230px); margin-inline: auto; width: 100%; background: var(--paper) var(--noise); border-radius: 18px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -36px rgba(27,23,18,.6); touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; overflow: hidden; }
.map-in { position: absolute; inset: 44px 44px 44px 44px; }
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line2) 1px, transparent 1px), linear-gradient(90deg, var(--line2) 1px, transparent 1px); background-size: 25% 25%; border: 1px solid var(--line2); }
.map-grid::before, .map-grid::after { content: ""; position: absolute; background: var(--ink); opacity: .55; }
.map-grid::before { left: 50%; top: 0; bottom: 0; width: 1.5px; }
.map-grid::after { top: 50%; left: 0; right: 0; height: 1.5px; }
.ax { position: absolute; font-size: 13px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; line-height: 1.3; }
.ax.l { left: 10px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg) translateY(50%); transform-origin: center; left: 22px; }
.ax.r { right: 22px; top: 50%; transform: translate(50%, -50%) rotate(90deg) translateY(50%); }
.ax.t { top: 12px; left: 50%; transform: translateX(-50%); }
.ax.b { bottom: 12px; left: 50%; transform: translateX(-50%); }
.ax small { font: italic 400 12.5px var(--f-en); margin-left: 4px; }
.dot { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px; cursor: pointer; z-index: 2; }
.dot i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--ink); flex: none; transition: transform .3s var(--ease); }
.dot span { font-size: 14px; font-weight: 700; white-space: nowrap; background: var(--paper); padding: 0 6px; border-radius: 6px; line-height: 1.6; }
.dot.left { flex-direction: row-reverse; }
.dot.on i { transform: scale(1.35); }
.dot.on span { background: var(--ink); color: var(--paper); }
.dot.hide { opacity: .25; }
.cup { position: absolute; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; border: 2px dashed var(--green); background: radial-gradient(circle, rgba(43,85,65,.16) 0 55%, transparent 56%); pointer-events: none; z-index: 1; transition: left .9s var(--ease), top .9s var(--ease); }
.cup::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--green); }
.map.drag .cup { transition: none; }
.cup.pulse { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,85,65,.35); } 100% { box-shadow: 0 0 0 22px rgba(43,85,65,0); } }

/* 選ばれた豆のカード */
.pick { background: var(--paper); border-radius: 18px; padding: 22px 22px 22px; box-shadow: 0 30px 60px -36px rgba(27,23,18,.6); position: relative; }
.pick-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; }
.pick-top .num { font-size: 18px; }
.pager { display: flex; gap: 6px; }
.pager button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--paper2); cursor: pointer; display: grid; place-items: center; }
.pager button:hover { background: var(--ink); color: var(--paper); }
.pager svg { width: 18px; height: 18px; }
.pick-bag { width: 150px; margin: 8px auto 4px; height: 190px; }
.pick-bag svg { width: 100%; height: 100%; filter: drop-shadow(0 18px 18px rgba(27,23,18,.25)); }
.pick-bag.swap svg { animation: bagin .6s var(--ease); }
@keyframes bagin { from { opacity: 0; transform: translateY(14px) rotate(-4deg); } }
.pick h3 { font: 700 25px/1.3 var(--f-ja); margin: 0; letter-spacing: .08em; }
.pick .meta { font-size: 14.5px; margin: 2px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.chips li { font-size: 13.5px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--paper2); }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.price .num { font-size: 30px; }
.price small { font-size: 14px; }
.pick .row { display: flex; gap: 8px; }
.pick .row .btn { flex: 1; padding: 0 14px; }
.pick .more { display: inline-block; margin-top: 10px; font-size: 14.5px; font-weight: 700; }

/* 焙煎度の点 */
.roast { display: inline-flex; gap: 3px; vertical-align: middle; }
.roast i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); }
.roast i.f { background: #5a3a22; border-color: #5a3a22; }

/* 豆の一覧 */
.filters { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; margin-bottom: 30px; }
.fgroup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fgroup > span { font-size: 14.5px; font-weight: 700; margin-right: 4px; }
.fchip { min-height: 42px; padding: 0 16px; border-radius: 99px; border: 2px solid var(--ink); background: transparent; cursor: pointer; font-size: 15px; font-weight: 700; transition: background .2s, color .2s; }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.fcount { margin-left: auto; font-size: 15px; font-weight: 700; }
.fcount .num { font-size: 22px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { background: var(--paper); border-radius: 18px; padding: 20px 22px 22px; display: grid; grid-template-rows: auto 1fr auto; position: relative; transition: opacity .35s, transform .35s var(--ease), box-shadow .3s; }
.card.out { display: none; }
.card.enter { animation: cardin .5s var(--ease) both; animation-delay: var(--i, 0s); }
@keyframes cardin { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.card-bag { display: block; background: var(--paper2); border-radius: 12px; height: 220px; padding: 16px 0 8px; position: relative; overflow: hidden; }
.card-bag svg { height: 100%; margin: 0 auto; transition: transform .5s var(--ease); filter: drop-shadow(0 12px 12px rgba(27,23,18,.22)); }
.card:hover .card-bag svg { transform: translateY(-6px) rotate(-2deg); }
.card-bag .tag { position: absolute; left: 12px; top: 12px; font-size: 13px; font-weight: 700; background: var(--red); color: #fff; padding: 2px 10px; border-radius: 99px; }
.card h3 { font: 700 22px/1.35 var(--f-ja); margin: 14px 0 0; letter-spacing: .06em; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.card .meta { font-size: 14.5px; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.card .chips { margin-bottom: 14px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.card-foot .num { font-size: 24px; }
.card-foot small { font-size: 13.5px; }
.add-mini { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 99px; border: 0; background: var(--green); color: var(--paper); font-size: 15px; font-weight: 700; cursor: pointer; }
.add-mini:hover { background: var(--ink); }
.add-mini svg { width: 20px; height: 20px; }
.empty { grid-column: 1 / -1; background: var(--paper); border-radius: 18px; padding: 40px; text-align: center; }
.empty[hidden] { display: none; }

/* 定期便 */
.teiki { background: var(--green) var(--noise); color: var(--paper); border-radius: 26px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.teiki-ph { position: relative; min-height: 420px; }
.teiki-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teiki-in { padding: clamp(28px, 4vw, 56px); }
.teiki .sh .en { color: #f3d48a; }
.teiki .sh h2 { color: var(--paper); }
.calc { display: grid; gap: 18px; }
.calc fieldset { border: 0; margin: 0; padding: 0; }
.calc legend { font-size: 15px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 4px 18px; border-radius: 12px; border: 2px solid rgba(245,238,223,.6); font-size: 15.5px; font-weight: 700; line-height: 1.35; transition: background .2s, color .2s, border-color .2s; }
.seg span small { font-size: 12.5px; font-weight: 500; }
.seg input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid #f3d48a; outline-offset: 2px; }
.result { background: rgba(245,238,223,.1); border: 1px solid rgba(245,238,223,.3); border-radius: 16px; padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.result dt { font-size: 14px; font-weight: 700; }
.result dd { margin: 0; font-size: 15px; }
.result .num { font-size: 28px; }
.result s { opacity: .85; margin-right: 6px; }
.result .save { grid-column: 1 / -1; border-top: 1px solid rgba(245,238,223,.3); padding-top: 12px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.result .save .num { font-size: 40px; color: #f3d48a; }
.teiki .btn { background: #f3d48a; color: var(--ink); }
.teiki .btn:hover { background: var(--paper); }
.teiki .note { font-size: 14.5px; margin: 12px 0 0; }

/* 焙煎の話 */
.roastery { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.roastery figure { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 2; }
.roastery figure img { width: 100%; height: 100%; object-fit: cover; }
.when { margin-top: 24px; background: var(--paper); border-radius: 16px; padding: 18px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; position: relative; }
.when div { text-align: center; position: relative; }
.when div + div::before { content: ""; position: absolute; left: -10%; top: 22px; width: 20%; height: 2px; background: var(--ink); }
.when b { display: block; font: 600 26px/1.2 var(--f-en); }
.when span { font-size: 13.5px; font-weight: 700; }
.when-cap { grid-column: 1 / -1; font-size: 14.5px; text-align: center; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }

/* 淹れ方 */
.brew { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.brew figure { margin: 0; border-radius: 200px 200px 22px 22px; overflow: hidden; aspect-ratio: 2 / 3; }
.brew figure img { width: 100%; height: 100%; object-fit: cover; }
.recipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0; }
.recipe div { background: var(--paper); border-radius: 14px; padding: 14px 12px; text-align: center; }
.recipe b { display: block; font: 600 34px/1.1 var(--f-en); }
.recipe b small { font-size: 16px; margin-left: 2px; }
.recipe span { font-size: 13.5px; font-weight: 700; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--paper); display: grid; place-items: center; font: 600 16px var(--f-en); }
.steps b { display: block; }

/* 写真の帯 */
.photos { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 14px; margin-top: clamp(80px, 11vw, 140px); }
.photos figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; height: 360px; }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photos figure:hover img { transform: scale(1.05); }
.photos figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--paper); font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }

/* お届けとお支払い */
.info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.info > div { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); }
.info > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.info h3 { font: 700 19px/1.4 var(--f-ja); margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.info h3 svg { width: 26px; height: 26px; flex: none; }
.info p { margin: 0; font-size: 16px; }
.shopinfo { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.dl { display: grid; grid-template-columns: 7em 1fr; margin: 0; }
.dl dt, .dl dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.dl dt { font-weight: 700; font-size: 15.5px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }

/* フッター */
.ft { margin-top: clamp(80px, 11vw, 140px); background: var(--ink); color: var(--paper); padding: 50px 0 110px; }
.ft-in { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.ft .brand svg { filter: invert(1) brightness(1.4); }
.ft nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.ft nav a { text-decoration: none; }
.ft p { margin: 20px 0 0; font-size: 14px; }

/* カートの引き出し */
.veil { position: fixed; inset: 0; z-index: 60; background: rgba(27,23,18,.45); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(440px, 100%); background: var(--kraft) var(--noise); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .5s var(--ease); box-shadow: -30px 0 60px -30px rgba(27,23,18,.6); }
.cart-open .veil { opacity: 1; visibility: visible; }
.cart-open .drawer { transform: none; }
.cart-open { overflow: hidden; }
.dr-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dr-head h2 { margin: 0; font: 700 21px/1.3 var(--f-ja); letter-spacing: .08em; }
.x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.x svg { width: 20px; height: 20px; }
.ship { padding: 14px 22px; background: var(--paper2); font-size: 15px; font-weight: 700; }
.ship .bar { height: 10px; border-radius: 99px; background: var(--paper); margin-top: 8px; overflow: hidden; }
.ship .bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--green); border-radius: 99px; transition: width .6s var(--ease); }
.ship.ok .bar i { background: var(--leaf); }
.dr-list { flex: 1; overflow-y: auto; padding: 8px 22px; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item.new { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: rgba(245,238,223,.9); } 100% { background: transparent; } }
.line-item .li-bag { width: 64px; height: 80px; }
.line-item .li-bag svg { width: 100%; height: 100%; }
.line-item b { display: block; font-size: 16.5px; }
.line-item small { display: block; font-size: 13.5px; line-height: 1.6; }
.line-item .sub { display: inline-block; background: var(--green); color: var(--paper); font-size: 12.5px; font-weight: 700; padding: 0 8px; border-radius: 99px; margin-top: 2px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 99px; margin-top: 6px; }
.qty button { width: 34px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 18px; font-weight: 700; }
.qty span { min-width: 26px; text-align: center; font: 600 16px var(--f-en); }
.li-price { text-align: right; }
.li-price .num { font-size: 19px; }
.li-del { display: block; margin-left: auto; margin-top: 4px; background: none; border: 0; font-size: 13.5px; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px 0; }
.dr-empty { text-align: center; padding: 50px 10px; }
.dr-empty svg { width: 70px; margin: 0 auto 12px; }
.dr-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 2px solid var(--ink); background: var(--paper); }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin: 0 0 14px; font-size: 15.5px; }
.sum dd { margin: 0; text-align: right; }
.sum .total { font-weight: 700; font-size: 17px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.sum .total.num, .sum dd.total { font-size: 26px; }
.dr-foot .btn { width: 100%; }
.checkout-note { margin-top: 12px; background: var(--green); color: var(--paper); border-radius: 14px; padding: 14px 16px; font-size: 15px; }
.checkout-note[hidden] { display: none; }
.checkout-note b { display: block; font-size: 16px; }

/* 飛んでいく袋・知らせ */
.flyer { position: fixed; z-index: 70; pointer-events: none; width: 70px; height: 90px; margin: -45px 0 0 -35px; }
.flyer svg { width: 100%; height: 100%; }
.toast { position: fixed; z-index: 55; right: 20px; top: 112px; background: var(--ink); color: var(--paper); border-radius: 14px; padding: 12px 14px 12px 18px; display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 700; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; max-width: calc(100vw - 40px); }
.toast.on { opacity: 1; visibility: visible; transform: none; }
.toast button { flex: none; border: 0; border-radius: 99px; background: #f3d48a; color: var(--ink); font-weight: 700; padding: 8px 14px; cursor: pointer; }

/* 商品ページ */
.pd-top { padding-top: 130px; }
.crumb { font-size: 14px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.crumb a { text-decoration: none; }
.crumb span[aria-hidden] { opacity: .8; }
.pd { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(26px, 4vw, 60px); align-items: start; }
.gallery { position: sticky; top: 120px; }
.g-main { background: var(--paper) var(--noise); border-radius: 22px; aspect-ratio: 1 / 1; position: relative; overflow: hidden; display: grid; place-items: center; }
.g-main > * { grid-area: 1 / 1; }
.g-main .g-bag { height: 82%; transition: opacity .4s, transform .6s var(--ease); }
.g-main .g-bag svg { height: 100%; filter: drop-shadow(0 30px 30px rgba(27,23,18,.3)); }
.g-main img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.g-main[data-v="bag"] .g-bag { opacity: 1; }
.g-main:not([data-v="bag"]) .g-bag { opacity: 0; transform: scale(.94); }
.g-main img.on { opacity: 1; }
.g-main .big { position: absolute; left: -2%; bottom: -6%; font: italic 400 clamp(90px, 13vw, 190px)/1 var(--f-en); color: var(--paper2); white-space: nowrap; z-index: 0; pointer-events: none; }
.g-main .g-bag { z-index: 1; }
.g-main img { z-index: 2; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 0; padding: 0; background: var(--paper); cursor: pointer; box-shadow: inset 0 0 0 0 var(--ink); position: relative; }
.thumbs button[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 3px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .t-bag { padding: 10px; height: 100%; }
.thumbs .t-bag svg { height: 100%; margin: 0 auto; }

.buy .kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.pill { font-size: 13.5px; font-weight: 700; padding: 3px 12px; border-radius: 99px; background: var(--green); color: var(--paper); }
.pill.k { background: var(--paper); color: var(--ink); }
.buy h1 { font: 700 clamp(34px, 4vw, 48px)/1.25 var(--f-ja); letter-spacing: .08em; margin: 0; }
.buy .en-name { font-size: 20px; margin: 0 0 12px; }
.buy .lead { margin: 0 0 14px; }
.opt { border: 0; padding: 0; margin: 0 0 20px; }
.opt legend { font-size: 15.5px; font-weight: 700; padding: 0; margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; width: 100%; }
.opt legend small { font-weight: 500; font-size: 14px; }
.opts { display: grid; gap: 8px; }
.opts.c3 { grid-template-columns: repeat(3, 1fr); }
.opts.c4 { grid-template-columns: repeat(4, 1fr); }
.opts.c2 { grid-template-columns: repeat(2, 1fr); }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.opts .o { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 8px 6px; border-radius: 14px; background: var(--paper); border: 2px solid transparent; font-size: 15.5px; font-weight: 700; line-height: 1.4; transition: border-color .2s, background .2s; height: 100%; }
.opts .o small { font-size: 13px; font-weight: 500; }
.opts input:checked + .o { border-color: var(--ink); background: #fffaf0; }
.opts input:focus-visible + .o { outline: 2px solid var(--green); outline-offset: 2px; }
.grind { height: 22px; display: flex; gap: 2px; align-items: center; justify-content: center; margin-bottom: 4px; }
.grind i { border-radius: 50%; background: #5a3a22; }
.opts .o.sub { align-items: flex-start; text-align: left; padding: 10px 14px; }
.opts .o .off { background: var(--red); color: #fff; font-size: 12.5px; padding: 0 8px; border-radius: 99px; margin-left: 6px; }
.interval { margin-top: 8px; display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 700; }
.interval[hidden] { display: none; }
.interval select { font: inherit; font-weight: 700; min-height: 42px; border-radius: 10px; border: 2px solid var(--ink); background: var(--paper); padding: 0 10px; color: var(--ink); }
.grind-hint { font-size: 14.5px; margin: 8px 0 0; }
.total-box { background: var(--paper); border-radius: 18px; padding: 18px 20px; }
.total-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.total-row .num { font-size: 36px; }
.total-row s { font-size: 16px; margin-right: 6px; }
.total-row .per { font-size: 14px; display: block; }
.total-box .btn { width: 100%; margin-top: 14px; min-height: 58px; font-size: 17px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 99px; }
.stepper button { width: 44px; height: 42px; border: 0; background: none; font-size: 20px; font-weight: 700; cursor: pointer; }
.stepper output { min-width: 30px; text-align: center; font: 600 18px var(--f-en); }
.deliv { margin: 14px 0 0; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.deliv svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }

.taste { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); align-items: center; }
.bars { display: grid; gap: 16px; }
.bars div { display: grid; grid-template-columns: 4em 1fr 2em; gap: 12px; align-items: center; font-weight: 700; }
.bars .b { height: 14px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.bars .b i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 99px; transition: width 1.1s var(--ease); transition-delay: var(--d, 0s); }
.bars.in .b i { width: var(--w); }
.bars .num { font-size: 18px; text-align: right; }
.mini-map { max-width: 440px; margin-inline: auto; cursor: default; }
.facts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(26px, 4vw, 60px); align-items: center; }
.facts figure { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; }
.facts figure img { width: 100%; height: 100%; object-fit: cover; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.buybar { display: none; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding-top: 92px; min-height: 0; }
  .hero-ph { min-height: 54svh; }
  .hero-shop { grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); }
  .map { max-height: none; }
  .grid, .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { padding-top: 88px; }
  .hero-ph { min-height: 380px; padding: 30px 20px 30px; }
  .hero-ph .stamp { width: 92px; height: 92px; font-size: 13px; top: 18px; left: auto; right: 18px; }
  .hero-ph .stamp b { font-size: 11.5px; }
  .hero h1 { font-size: 33px; }
  .hero-ph p { font-size: 15.5px; }
  .hero-shop { grid-template-columns: 1fr; padding: 22px 14px 20px; gap: 14px; }
  .map-head { flex-direction: column; gap: 0; margin-bottom: 8px; }
  .map-in { inset: 38px 36px; }
  .dot span { font-size: 13px; }
  .pick { display: grid; grid-template-columns: 110px 1fr; gap: 0 14px; padding: 16px; }
  .pick-top { grid-column: 1 / -1; }
  .pick-bag { width: 110px; height: 150px; margin: 6px 0 0; grid-row: 2 / span 2; }
  .pick h3 { font-size: 22px; margin-top: 8px; }
  .pick-body .row { grid-column: 1 / -1; }
  .pick .row { flex-direction: column; }
  .pick .price .num { font-size: 26px; }
  .pick-act { grid-column: 1 / -1; }
  .grid, .related { grid-template-columns: 1fr; gap: 14px; }
  .card { grid-template-columns: 120px 1fr; grid-template-rows: auto auto; gap: 0 14px; padding: 14px; }
  .card-bag { height: 150px; grid-row: 1 / span 2; padding: 10px 0 4px; }
  .card h3 { margin-top: 0; font-size: 20px; }
  .card-foot { grid-column: 1 / -1; margin-top: 10px; }
  .filters { gap: 12px; }
  .fgroup { width: 100%; }
  .fgroup > span { width: 100%; }
  .fchip { min-height: 40px; padding: 0 13px; font-size: 14.5px; }
  .fcount { margin-left: 0; }
  .teiki { grid-template-columns: 1fr; border-radius: 20px; }
  .teiki-ph { min-height: 220px; }
  .result { grid-template-columns: 1fr; }
  .roastery, .brew, .taste, .facts { grid-template-columns: 1fr; }
  .brew figure { max-width: 320px; aspect-ratio: 4 / 5; }
  .recipe { grid-template-columns: repeat(2, 1fr); }
  .photos { grid-template-columns: 1fr 1fr; }
  .photos figure { height: 220px; }
  .photos figure:first-child { grid-column: 1 / -1; }
  .info { grid-template-columns: 1fr; }
  .info > div + div { padding-left: 0; border-left: 0; }
  .shopinfo { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 5.5em 1fr; }
  .pd-top { padding-top: 112px; }
  .pd { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .opts.c4 { grid-template-columns: repeat(2, 1fr); }
  .toast { top: auto; bottom: 74px; right: 12px; left: 12px; justify-content: space-between; }
  .buybar { display: flex; position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(62px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); border-radius: 18px; padding: 10px 10px 10px 16px; align-items: center; gap: 10px; box-shadow: 0 16px 40px -10px rgba(27,23,18,.6); transform: translateY(160%); transition: transform .45s var(--ease); }
  .buybar.on { transform: none; }
  .buybar div { flex: 1; min-width: 0; line-height: 1.35; }
  .buybar b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar .num { font-size: 20px; }
  .buybar .btn { min-height: 46px; padding: 0 16px; font-size: 15px; background: #f3d48a; color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}
#pSize button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (pointer: coarse) { .map { touch-action: pan-y; } }
@media (max-width: 760px) { .pc-only { display: none; } .hero { padding-top: 92px; } .pd-top { padding-top: 120px; } html { scroll-padding-top: 100px; } }
.when-cap b { display: inline; font: inherit; font-weight: 700; }
.when-cap b, .deliv b { white-space: nowrap; }
.sum { column-gap: 0; }
.sum dd { padding-left: 10px; }
@media (max-width: 760px) { .dr-foot { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } }
.g-main .g-bag { height: auto; width: 54%; align-self: center; justify-self: center; }
.g-main .g-bag svg { width: 100%; height: auto; }
.g-main img { position: absolute; inset: 0; }
.card-bag .tag { z-index: 1; }
@media (max-width: 760px) {
  .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seg span { padding: 4px 10px; height: 100%; }
  .card-bag .tag { left: 6px; top: 6px; font-size: 12.5px; padding: 1px 8px; }
}
.g-main .big { font-size: clamp(64px, 9vw, 130px); }
@media (max-width: 760px) {
  .teiki-in { padding: 26px 20px 30px; }
  .teiki .btn { width: 100%; padding: 0 16px; font-size: 15px; letter-spacing: .04em; }
  .seg span small { font-size: 12.5px; white-space: nowrap; }
}
.map-head { flex-wrap: wrap; } .map-head h2 { white-space: nowrap; }
