/* =====================================================================
   AMBER bakery & coffee roastery — 専用スタイル
   GRAY(theme.css/styles.css)とは独立。AMBERページのみで読み込む。
   ===================================================================== */

:root {
  --amber-600: #B86F2B;
  --amber-500: #C98232;
  --honey-400: #DCA14A;
  --butter-300: #F1CA73;
  --cream-100: #FFF8E9;
  --oat-200:   #EAD9B8;
  --toast-500: #9C5B32;
  --brown-800: #4A2D20;
  --espresso-900: #271914;
  --warm-white: #FFFCF5;

  --a-text:   var(--brown-800);
  --a-text-2: #6B4634;
  --a-line:   rgba(74, 45, 32, .16);

  --a-serif-en: 'Newsreader', 'Times New Roman', serif;
  --a-serif-ja: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  --a-sans:     'Zen Kaku Gothic New', -apple-system, 'Hiragino Sans', sans-serif;
  --a-mono:     'Space Mono', ui-monospace, monospace;

  --a-radius: 18px;
  --a-radius-pill: 999px;
  --a-header-h: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.amber {
  margin: 0; background: var(--warm-white); color: var(--a-text);
  font-family: var(--a-sans); line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.amber img, body.amber svg { max-width: 100%; }
.a-wrap { width: min(1160px, 92vw); margin-inline: auto; }

/* 紙の粒子。SVGフィルタを使わず軽量なグラデーションのみ */
.paper-grain::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(74,45,32,.05) .5px, transparent .6px);
  background-size: 3px 3px;
}

/* スキップリンク */
.a-skip {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--brown-800); color: var(--cream-100);
  padding: 10px 16px; border-radius: var(--a-radius-pill); text-decoration: none;
  transition: top .2s;
}
.a-skip:focus { top: 8px; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--amber-600); outline-offset: 3px; border-radius: 6px;
}

/* ---------------- ヘッダー ---------------- */
.a-header {
  position: fixed; top: 0; left:0; right:0; z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.a-header:not(.is-solid) .a-nav-links a { color:var(--cream-100); }
.a-header:not(.is-solid) .a-bag { color:var(--cream-100); border-color:rgba(255,248,233,.52); background:rgba(39,25,20,.2); backdrop-filter:blur(8px); }
.a-header:not(.is-solid) .a-brand img { filter:brightness(1.45) saturate(.75) drop-shadow(0 2px 12px rgba(0,0,0,.3)); }
/* ページ全体が暗色基調のため、スクロール後も暗いまま濃度だけ上げる */
.a-header.is-solid {
  background: rgba(108, 74, 43, .92);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(255, 248, 233, .12);
}
.a-header.is-solid .a-nav-links a { color: rgba(255,248,233,.82); }
.a-header.is-solid .a-nav-links a:hover { color: var(--butter-300); }
.a-header.is-solid .a-bag {
  color: var(--cream-100); border-color: rgba(255,248,233,.28); background: rgba(255,248,233,.07);
}
.a-header.is-solid .a-bag:hover { border-color: var(--butter-300); }
.a-header.is-solid .a-brand img { filter: brightness(1.4) saturate(.8); }
.a-nav {
  height: var(--a-header-h); display: flex; align-items: center; gap: 18px;
}
.a-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; }
/* ロゴ差し替え箇所：/assets/amber-logo.png を置くと自動で使用される */
.a-brand img { display:block; width:148px; height:42px; object-fit:contain; }
.a-brand .a-brand-fallback { display: flex; flex-direction: column; line-height: 1.05; }
.a-brand b { font-family: var(--a-serif-en); font-size: 19px; letter-spacing: .12em; font-weight: 500; }
.a-brand span { font-family: var(--a-mono); font-size: 8.5px; letter-spacing: .22em; color: var(--a-text-2); }
.a-nav-links { display: flex; gap: 20px; }
.a-nav-links a { color: var(--a-text); text-decoration: none; font-size: 14px; }
.a-nav-links a:hover { color: var(--amber-600); }
.a-bag {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--a-line); background: var(--warm-white); color: var(--a-text);
  border-radius: var(--a-radius-pill); padding: 10px 16px; font: inherit; font-size: 14px; cursor: pointer;
  min-height: 44px;
}
.a-bag:hover { border-color: var(--amber-500); }
[hidden] { display: none !important; }
.a-bag-count {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--amber-600); color: var(--cream-100);
  font-family: var(--a-mono); font-size: 11px; display: grid; place-items: center;
}

/* ---------------- Hero ---------------- */
.a-hero {
  position:relative; height:100dvh; min-height:620px; display:grid; align-items:end; text-align:left;
  background:#5C4028; color:var(--cream-100); padding:92px 0 58px; overflow:hidden;
}
.a-hero-film { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; z-index:0; transform:scale(1.04); filter:brightness(1.1) saturate(1.08); animation:aHeroBreathe 14s ease-in-out infinite alternate; }
.a-hero::after { content:''; position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,rgba(58,32,18,.62) 0%,rgba(92,54,28,.28) 50%,rgba(120,74,38,.06) 78%),linear-gradient(0deg,rgba(52,30,17,.58),transparent 58%); }
.a-hero-inner { position:relative; z-index:2; }
.a-hero.paper-grain::before { z-index:2; opacity:.18; mix-blend-mode:screen; }
@keyframes aHeroBreathe { from{transform:scale(1.04) translate3d(0,0,0)} to{transform:scale(1.11) translate3d(-1.4%,.8%,0)} }
.a-eyebrow {
  font-family: var(--a-mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--toast-500); margin: 0 0 14px;
}
.a-hero h1 {
  font-family: var(--a-serif-ja); font-weight: 500;
  font-size:clamp(48px,7.2vw,102px); line-height:1.08; margin:0 0 14px;
  letter-spacing:-.035em; max-width:12.5em; text-wrap:balance;
}
.a-hero-en {
  font-family: var(--a-serif-en); font-style: italic;
  font-size:clamp(18px,2.2vw,30px); color:var(--butter-300); margin:0 0 22px;
}
.a-hero .a-eyebrow { color:var(--butter-300); }
.a-hero-lede { max-width:30em; margin:0; color:rgba(255,248,233,.82); font-size:15px; }
.a-hero-logo {
  display:block; width:min(360px,48vw); height:auto; margin:0 0 20px;
  filter:brightness(1.45) saturate(.78) drop-shadow(0 12px 24px rgba(0,0,0,.22));
}
.a-hero-seed { display:none; }
.a-hero-seed b {
  position: absolute; left: 43px; top: 16px; width: 27px; height: 39px;
  border-radius: 60% 42% 58% 45%; background: linear-gradient(145deg,#F1CA73,#B86F2B);
  border: 2px solid #7A4527; transform: rotate(-18deg);
  box-shadow: 0 14px 20px rgba(74,45,32,.13); animation: aSeedFloat 4.2s ease-in-out infinite;
}
.a-hero-seed b::after { content:''; position:absolute; left:13px; top:4px; width:2px; height:29px; background:#8F512D; border-radius:2px; transform:rotate(-4deg); opacity:.6; }
.a-hero-seed i { position:absolute; width:7px; height:7px; border-radius:50%; background:#DCA14A; opacity:.45; animation:aDust 3.2s ease-in-out infinite; }
.a-hero-seed i:nth-child(1){left:16px;top:34px}.a-hero-seed i:nth-child(2){right:18px;top:22px;animation-delay:-1.1s}.a-hero-seed i:nth-child(3){right:5px;bottom:8px;animation-delay:-2s}
@keyframes aSeedFloat { 0%,100%{transform:translateY(0) rotate(-18deg)} 50%{transform:translateY(-9px) rotate(-11deg)} }
@keyframes aDust { 0%,100%{transform:translate(0,0) scale(.7);opacity:.15} 50%{transform:translate(4px,-12px) scale(1);opacity:.55} }
.a-scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-family: var(--a-mono); font-size: 10px; letter-spacing: .2em;
  color:var(--cream-100); display:flex; flex-direction:column; align-items:center; gap:8px; z-index:3;
}
.a-scroll-hint i { display:block; width:1px; height:32px; background:var(--cream-100); opacity:.5; animation:aDrop 2s ease-in-out infinite; }
@keyframes aDrop { 0%,100% { transform: scaleY(.4); transform-origin: top; opacity:.25 } 50% { transform: scaleY(1); opacity:.6 } }

/* ---------------- Scroll story ---------------- */
.a-story { position: relative; background: var(--cream-100); }
.a-story-sticky { position:relative; height:720dvh; }
.a-stage {
  position: sticky; top: 0; height: 100dvh; overflow: hidden;
  display: grid; place-items: center; background: #FFF8E9; isolation: isolate;
}
.a-stage::after {
  content:''; position:absolute; inset:0; z-index:2; pointer-events:none; opacity:.32;
  background-image:radial-gradient(rgba(60,35,20,.22) .55px,transparent .7px);
  background-size:4px 4px; mix-blend-mode:multiply;
}
.a-process { position:absolute; inset:0; width:100%; height:100%; z-index:1; overflow:hidden; }
.a-cinema { position:absolute; inset:0; z-index:1; overflow:hidden; background:#20120d; }
.a-cinema-shot img { filter:brightness(1.12) saturate(1.06); }
.a-cinema-shot { position:absolute; inset:-3%; margin:0; opacity:0; overflow:hidden; will-change:opacity,transform; }
.a-cinema-shot.is-visible { opacity:1; }
.a-cinema-shot img { width:100%; height:100%; object-fit:cover; object-position:center; will-change:transform,filter; transform:scale(1.1); filter:saturate(.9) contrast(1.03); }
.a-cinema-shot[data-shot="0"] img { object-position:center 48%; }
.a-cinema-shot[data-shot="1"] img { object-position:center 58%; }
.a-cinema-shot[data-shot="2"] img { object-position:center 48%; }
.a-cinema-vignette { position:absolute; inset:0; z-index:4; pointer-events:none; background:linear-gradient(90deg,rgba(56,32,18,.6),rgba(96,58,30,.08) 57%,rgba(48,28,15,.26)),linear-gradient(0deg,rgba(50,29,16,.5),transparent 56%); }
.a-cinema-word { position:absolute; z-index:3; right:-.03em; bottom:-.22em; margin:0; font-family:var(--a-serif-en); font-size:clamp(150px,27vw,420px); font-weight:300; line-height:.8; letter-spacing:-.08em; color:rgba(255,238,200,.2); mix-blend-mode:screen; white-space:nowrap; pointer-events:none; }
.a-cinema-dust { position:absolute; inset:0; z-index:3; opacity:0; pointer-events:none; transition:opacity .3s; }
.a-cinema-dust i { position:absolute; width:4px; height:4px; border-radius:50%; background:#FFF1CB; box-shadow:0 0 14px rgba(255,236,190,.72); animation:aCinemaDust 3.6s ease-in-out infinite; }
.a-cinema-dust i:nth-child(1){left:12%;top:72%}.a-cinema-dust i:nth-child(2){left:20%;top:51%;animation-delay:-.5s}.a-cinema-dust i:nth-child(3){left:29%;top:66%;animation-delay:-1.1s}.a-cinema-dust i:nth-child(4){left:38%;top:42%;animation-delay:-1.7s}.a-cinema-dust i:nth-child(5){left:47%;top:58%;animation-delay:-2.2s}.a-cinema-dust i:nth-child(6){left:56%;top:35%;animation-delay:-.8s}.a-cinema-dust i:nth-child(7){left:64%;top:69%;animation-delay:-2.8s}.a-cinema-dust i:nth-child(8){left:72%;top:46%;animation-delay:-1.4s}.a-cinema-dust i:nth-child(9){left:80%;top:61%;animation-delay:-2.5s}.a-cinema-dust i:nth-child(10){left:87%;top:32%;animation-delay:-.3s}.a-cinema-dust i:nth-child(11){left:34%;top:28%;animation-delay:-3s}.a-cinema-dust i:nth-child(12){left:59%;top:78%;animation-delay:-1.9s}
@keyframes aCinemaDust { 0%,100%{transform:translate3d(0,28px,0) scale(.45);opacity:0} 35%{opacity:.9} 70%{transform:translate3d(34px,-50px,0) scale(1.35);opacity:.45} }
.a-process { display:none; }
.a-process-bg { transition:fill .2s linear; }
#processTrack, #processParallax { will-change: transform; }
.a-station { transform-box:fill-box; transform-origin:center; }
.a-doodle-note {
  font-family:var(--a-mono); font-size:18px; letter-spacing:.18em; fill:#8C522C;
  paint-order:stroke; stroke:rgba(255,248,233,.75); stroke-width:8px; stroke-linejoin:round;
  opacity:.1;
}
.a-note-light { fill:#F1CA73; stroke:rgba(39,25,20,.55); }
.a-wheat { transform-box:fill-box; transform-origin:50% 100%; animation:aWheatSway 4.8s ease-in-out infinite; }
.a-wheat:nth-child(2){animation-delay:-1.8s;animation-duration:5.6s}.a-wheat:nth-child(3){animation-delay:-3.1s;animation-duration:4.3s}
@keyframes aWheatSway { 0%,100%{translate:0 0;rotate:-1.5deg} 50%{translate:4px 0;rotate:2.2deg} }
#travelGrain,#millWheel,#millHandle,#flourDust,#kneadArm,#kneadHand,#doughBlob,#rollingPin,#foldFlap,#shapeTriangle,#finalCroissant,#heatWaves,#coffeeSteam,#morningPlate { will-change:transform,opacity; transform-box:fill-box; transform-origin:center; }
#bakeGlow { will-change:opacity; }
.a-scene-cap {
  position:absolute; left:clamp(26px,6vw,96px); top:auto; bottom:clamp(66px,10vh,110px); z-index:5;
  width:min(720px,78vw); text-align:left; color:var(--cream-100);
  text-shadow:0 2px 24px rgba(0,0,0,.6); transition:left .7s,bottom .7s,color .35s,text-shadow .35s;
}
.a-scene-step {
  font-family: var(--a-mono); font-size: 10px; letter-spacing: .28em;
  text-transform:uppercase; color:var(--butter-300); margin:0 0 10px;
}
.a-scene-ja {
  font-family: var(--a-serif-ja); font-weight: 500;
  font-size:clamp(38px,6.2vw,86px); margin:0; line-height:1.18; letter-spacing:-.025em;
}
.a-scene-en {
  font-family: var(--a-serif-en); font-style: italic;
  font-size:clamp(16px,2vw,26px); color:var(--butter-300); margin:10px 0 0;
}
/* 焼成シーンは背景が濃くなるので文字を反転 */
.a-stage.is-dark .a-scene-ja { color: var(--cream-100); }
.a-stage.is-dark .a-scene-step,
.a-stage.is-dark .a-scene-en { color: var(--butter-300); }
.a-stage.is-dark .a-scene-cap { text-shadow:0 2px 28px rgba(0,0,0,.82); }
.a-stage[data-scene="1"] .a-scene-cap { left:52%; bottom:12vh; width:min(560px,43vw); }
.a-stage[data-scene="2"] .a-scene-cap { left:7vw; bottom:10vh; }
.a-stage[data-scene="3"] .a-scene-cap { left:52%; bottom:11vh; width:min(560px,43vw); }
.a-stage[data-scene="4"] .a-scene-cap { left:8vw; bottom:11vh; }
.a-progress {
  position:absolute; right:clamp(18px,3vw,42px); top:50%; transform:translateY(-50%); bottom:auto;
  display: flex; gap: 6px; z-index: 3;
  flex-direction:column;
}
.a-progress i {
  width:4px; height:24px; border-radius:3px; background:rgba(74,45,32,.18); transition:background .3s,height .3s;
}
.a-progress i.on { background:var(--amber-600); height:42px; }
.a-stage.is-dark .a-progress i { background: rgba(255,248,233,.25); }
.a-stage.is-dark .a-progress i.on { background: var(--butter-300); }
.a-story-meter { position:absolute; z-index:4; left:0; bottom:0; width:100%; height:4px; background:rgba(74,45,32,.11); }
.a-story-meter i { display:block; width:100%; height:100%; background:var(--amber-600); transform:scaleX(0); transform-origin:left; will-change:transform; }

/* reduced motion / noscript */
.a-story-static { display: none; }
.a-story-static .a-wrap { padding:72px 0; text-align:center; }
.a-story-static h2 {
  font-family:var(--a-serif-ja); font-weight:500; font-size:clamp(24px,5vw,40px); margin:8px 0 12px;
}
.a-story-static p:last-child { max-width:38em; margin:0 auto; color:var(--a-text-2); }

/* ---------------- Shop ---------------- */
.a-shop { background: var(--cream-100); padding: 72px 0 96px; position: relative; }
.a-shop-head { text-align: center; margin-bottom: 34px; }
.a-shop-head h2 {
  font-family: var(--a-serif-ja); font-weight: 500;
  font-size: clamp(24px, 5vw, 40px); margin: 6px 0 8px;
}
.a-shop-head p { color: var(--a-text-2); margin: 0; font-size: 14px; }

.a-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.a-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.a-filters button {
  font: inherit; font-size: 13px; padding: 11px 16px; min-height: 44px;
  border: 1px solid var(--a-line); background: var(--warm-white); color: var(--a-text-2);
  border-radius: var(--a-radius-pill); cursor: pointer;
}
.a-filters button[aria-pressed="true"] { background: var(--amber-600); border-color: var(--amber-600); color: var(--cream-100); }
.a-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--a-text-2); }
.a-sort select {
  font: inherit; font-size: 13px; padding: 11px 12px; min-height: 44px;
  border: 1px solid var(--a-line); border-radius: var(--a-radius-pill);
  background: var(--warm-white); color: var(--a-text); cursor: pointer;
}

.a-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.a-card {
  display: flex; flex-direction: column;
  background: var(--warm-white); border: 1px solid var(--a-line);
  border-radius: var(--a-radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.a-card-media {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--cream-100), var(--oat-200));
  overflow: hidden;
}
.a-card-media::before {
  content:''; position:absolute; width:74%; aspect-ratio:1; border-radius:46% 54% 58% 42% / 53% 42% 58% 47%;
  background:rgba(255,252,245,.72); box-shadow:inset 0 0 0 1px rgba(74,45,32,.08);
  transform:rotate(-7deg); transition:transform .5s cubic-bezier(.2,.75,.25,1),background .35s;
}
.a-card-media svg { position:relative; z-index:1; width:76%; height:auto; transition:transform .5s cubic-bezier(.2,.75,.25,1); filter:saturate(.94); }
/* 写真を入れた商品は、イラスト用の白い丸を出さずに写真を前面に出す */
.a-card-media img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.a-card-media > picture { position:absolute; inset:0; z-index:2; display:block; }
.a-card-media:has(img)::before { display: none; }
.a-card-media .mcar { position:absolute; inset:0; z-index:2; width:100%; height:100%; overflow:hidden; }
.a-card-media .mcar-picture { position:relative; display:block; flex:0 0 100%; width:100%; height:100%; }
.a-card-media .mcar-track { display:flex; width:100%; height:100%; transition:transform .5s cubic-bezier(.4,0,.2,1); }
.a-card-media .mcar-slide { position:relative; inset:auto; flex:0 0 100%; width:100%; height:100%; object-fit:cover; user-select:none; -webkit-user-drag:none; }
.a-card-media .mcar-nav { position:absolute; z-index:3; top:50%; width:34px; height:34px; padding:0; transform:translateY(-50%); border:1px solid rgba(255,255,255,.6); border-radius:50%; background:rgba(36,24,17,.48); color:#fff; font-size:24px; line-height:1; cursor:pointer; opacity:.85; }
.a-card-media .mcar-prev { left:8px; }
.a-card-media .mcar-next { right:8px; }
.a-card-glow {
  position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(60% 60% at 50% 60%, color-mix(in srgb, var(--honey-400) 55%, transparent), transparent 70%);
}
.a-crumb { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--toast-500); opacity: 0; }
.a-card:hover, .a-card:focus-within { transform: translateY(-6px); border-color: var(--amber-500); box-shadow: 0 14px 30px rgba(74,45,32,.14); }
.a-card:hover .a-card-media::before, .a-card:focus-within .a-card-media::before { transform:rotate(5deg) scale(1.08); background:rgba(255,245,214,.88); }
.a-card:hover .a-card-media svg, .a-card:focus-within .a-card-media svg { transform: translateY(-9px) rotate(-2.2deg) scale(1.055); }
.a-card:hover .a-card-glow, .a-card:focus-within .a-card-glow { opacity: .55; }
.a-card:hover .a-crumb, .a-card:focus-within .a-crumb { animation: aCrumb .9s ease-out; }
@keyframes aCrumb { 0% { opacity:0; transform: translateY(0) } 30% { opacity:.65 } 100% { opacity:0; transform: translateY(-14px) } }
.a-card { cursor:pointer; }
.a-card:focus-visible { outline:2px solid var(--amber-500); outline-offset:3px; }

.a-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.a-card h3 { font-family: var(--a-serif-ja); font-weight: 500; font-size: 17px; margin: 0; }
.a-card .a-card-en { font-family: var(--a-serif-en); font-style: italic; font-size: 12px; color: var(--toast-500); margin: -4px 0 0; }
.a-card .a-card-desc { font-size: 13px; line-height:1.85; color: var(--a-text-2); margin: 0; }
.a-allergen { font-family: var(--a-mono); font-size: 10.5px; color: var(--a-text-2); margin: 0; }

.a-stock { display: inline-flex; align-items: center; gap: 6px; font-family: var(--a-mono); font-size: 11px; }
.a-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.a-stock.available { color: #4E7C4A; }
.a-stock.low-stock { color: #A9761B; }
.a-stock.sold-out  { color: #A24B4B; }
.a-stock.coming-soon { color: #6B5E8A; }

.a-variants { display: flex; flex-wrap: wrap; gap: 6px; }
.a-variants button {
  font: inherit; font-size: 12px; padding: 10px 14px; min-height: 44px;
  border: 1px solid var(--a-line); background: var(--cream-100); color: var(--a-text-2);
  border-radius: var(--a-radius-pill); cursor: pointer;
}

/* ---------------- 商品詳細 ----------------
   商品写真はどれも縦長（9:16前後）。以前は正方形の枠に入れていたため上下が切れ、
   詳細の高さに対して写真が足りず、枠の下が空いていた。
   いまは詳細の高さ（--pd-h）を先に決め、写真の列の幅を 9:16 から逆算する。
   写真は高さいっぱいに縦長のまま見せ、文字の側だけを中でスクロールさせる。 */
.a-product-back {
  position:fixed; inset:0; z-index:160; opacity:0; pointer-events:none;
  background:rgba(28,17,11,.56); backdrop-filter:blur(10px) saturate(.9);
  transition:opacity .4s cubic-bezier(.32,.72,0,1);
}
.a-product-back.open { opacity:1; pointer-events:auto; }
.a-product-modal {
  --pd-h: min(780px, calc(100dvh - 56px));
  --pd-pad: clamp(28px, 3.4vw, 48px);
  position:fixed; z-index:170; left:50%; top:50%;
  height:var(--pd-h); width:min(calc(var(--pd-h) * .5625 + 520px), calc(100vw - 48px));
  overflow:hidden; border-radius:22px; background:#FFFAF0; color:var(--a-text);
  box-shadow:0 0 0 1px rgba(74,45,32,.08), 0 2px 6px rgba(45,25,15,.08), 0 40px 100px -24px rgba(45,25,15,.55);
  opacity:0; pointer-events:none; transform:translate(-50%,-47%) scale(.97);
  transition:opacity .35s cubic-bezier(.32,.72,0,1), transform .55s cubic-bezier(.32,.72,0,1);
}
.a-product-modal.open { opacity:1; pointer-events:auto; transform:translate(-50%,-50%) scale(1); }
.a-product-grid { display:grid; grid-template-columns:calc(var(--pd-h) * .5625) minmax(0,1fr); height:100%; }

/* 写真の列 */
.a-product-media { position:relative; height:100%; overflow:hidden; background:linear-gradient(180deg,#F4E6CC,#E9D3AE); }
.a-product-media > img,
.a-product-media .mcar { position:absolute; inset:0; width:100%; height:100%; }
/* webp用に <picture> で包んだ写真も、枠いっぱいに切り抜く（これが無いと縦に引き伸ばされ上側しか見えない） */
.a-product-media > picture > img { display:block; width:100%; height:100%; }
.a-product-media > picture { position:absolute; inset:0; display:block; width:100%; height:100%; }
.a-product-media .mcar-picture { position:relative; display:block; flex:0 0 100%; width:100%; height:100%; }
.a-product-media > img,
.a-product-media > picture > img,
.a-product-media .mcar-slide { object-fit:cover; object-position:center; }
.a-product-media > img { display:block; transform:scale(1.04); transition:transform 1.2s cubic-bezier(.32,.72,0,1); }
.a-product-modal.open .a-product-media > img { transform:scale(1); }
.a-product-media > svg { position:absolute; inset:0; margin:auto; width:72%; height:auto; }
.a-product-media .mcar { overflow:hidden; }
.a-product-media .mcar-track { display:flex; width:100%; height:100%; transition:transform .7s cubic-bezier(.32,.72,0,1); }
.a-product-media .mcar-slide { flex:0 0 100%; width:100%; height:100%; user-select:none; -webkit-user-drag:none; }
/* 送りボタンは写真の右下にまとめ、写真の中央を空ける */
.a-product-media .mcar-nav {
  position:absolute; z-index:2; top:auto; bottom:18px; transform:none;
  display:grid; place-items:center; width:40px; height:40px; padding:0;
  border:1px solid rgba(255,255,255,.42); border-radius:50%;
  background:rgba(30,19,13,.3); backdrop-filter:blur(8px);
  color:#fff; font-size:22px; line-height:1; cursor:pointer;
  transition:background .25s ease, transform .3s cubic-bezier(.32,.72,0,1);
}
.a-product-media .mcar-prev { left:auto; right:66px; }
.a-product-media .mcar-next { right:18px; }
.a-product-media .mcar-nav:hover { background:rgba(30,19,13,.55); }
.a-product-media .mcar-nav:active { transform:scale(.93); }

/* 文字の列。閉じるボタンは詳細の枠に対して置くので、スクロールしても動かない */
.a-product-body {
  display:flex; flex-direction:column; min-height:0; height:100%;
  overflow-y:auto; overscroll-behavior:contain; padding:58px var(--pd-pad) 0;
  scrollbar-width:thin; scrollbar-color:rgba(74,45,32,.22) transparent;
}
.a-product-close {
  position:absolute; z-index:4; top:16px; right:16px; width:40px; height:40px; padding:0;
  border:0; border-radius:50%; background:rgba(74,45,32,.06); color:var(--a-text); cursor:pointer;
  transition:background .2s ease, transform .3s cubic-bezier(.32,.72,0,1);
}
.a-product-close span,
.a-product-close span::before,
.a-product-close span::after { position:absolute; inset:0; }
.a-product-close span::before,
.a-product-close span::after {
  content:''; inset:auto; left:50%; top:50%; width:15px; height:1.5px; border-radius:1px;
  background:currentColor; transform:translate(-50%,-50%) rotate(45deg);
}
.a-product-close span::after { transform:translate(-50%,-50%) rotate(-45deg); }
.a-product-close:hover { background:rgba(74,45,32,.12); }
.a-product-close:active { transform:scale(.92); }
.a-product-close:focus-visible { outline:2px solid var(--amber-600); outline-offset:2px; }

.a-product-head { padding-right:40px; }
.a-product-cat { margin:0 0 14px; font-size:12px; letter-spacing:.08em; color:var(--toast-500); }
.a-product-body h2 {
  margin:0; font-family:var(--a-serif-ja); font-weight:500;
  font-size:clamp(30px,3.1vw,40px); line-height:1.28; letter-spacing:.02em;
  word-break:auto-phrase; text-wrap:balance;
}
.a-product-en { margin:8px 0 0; font-family:var(--a-serif-en); font-style:italic; font-size:16px; color:var(--a-text-2); }

.a-product-facts { list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:22px 0 0; padding:0; }
.a-product-facts li { padding:6px 12px; border-radius:8px; background:rgba(201,130,50,.11); color:#80461F; font-size:12px; line-height:1.5; }

.a-product-story {
  margin:28px 0 12px; padding-top:26px; border-top:1px solid var(--a-line);
  max-width:34em; color:var(--a-text-2); font-size:14.5px; line-height:2.05;
}
.a-product-story p { margin:0 0 1.1em; text-wrap:pretty; }

/* 受け取り方法：2択の切替 */
.a-product-pickup { min-width:0; margin:4px 0 28px; padding:0; border:0; }
.a-product-pickup legend { margin:0 0 12px; padding:0; font-size:12px; letter-spacing:.08em; color:var(--toast-500); }
.a-product-pickup-ways {
  display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px;
  border-radius:12px; background:rgba(74,45,32,.065);
}
.a-product-pickup-ways label { position:relative; display:block; cursor:pointer; }
.a-product-pickup-ways input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.a-product-pickup-ways span {
  display:flex; align-items:center; justify-content:center; min-height:42px; padding:8px 12px;
  border-radius:9px; font-size:13px; color:var(--a-text-2); text-align:center;
  transition:background .25s ease, color .25s ease, box-shadow .25s ease;
}
.a-product-pickup-ways input:checked + span {
  background:#fff; color:var(--a-text); font-weight:700;
  box-shadow:0 1px 2px rgba(74,45,32,.12), 0 6px 14px -4px rgba(74,45,32,.14);
}
.a-product-pickup-ways input:focus-visible + span { outline:2px solid var(--amber-600); outline-offset:2px; }
.a-product-pickup-fields { display:grid; grid-template-columns:1fr 1fr; gap:14px 12px; margin-top:18px; }
.a-product-pickup-fields > p { grid-column:1/-1; margin:0; font-size:12px; line-height:1.7; color:var(--a-text-2); }
.a-product-pickup-fields label { display:grid; gap:7px; font-size:12px; color:var(--a-text-2); }
.a-product-pickup-fields select {
  appearance:none; -webkit-appearance:none; width:100%; min-height:46px; padding:10px 38px 10px 14px;
  border:1px solid rgba(74,45,32,.2); border-radius:10px; color:var(--a-text); font:inherit; font-size:14px;
  background-color:#fff;
  background-image:linear-gradient(45deg,transparent 50%,var(--a-text-2) 50%),linear-gradient(135deg,var(--a-text-2) 50%,transparent 50%);
  background-position:calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size:5px 5px; background-repeat:no-repeat;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.a-product-pickup-fields select:focus { outline:none; border-color:var(--amber-500); box-shadow:0 0 0 3px rgba(201,130,50,.2); }
.a-product-pickup-fields select:disabled { background-color:rgba(74,45,32,.04); color:#8F7B69; cursor:not-allowed; }
.a-product-pickup-msg { color:#9B452D !important; }
.a-product-pickup-msg:empty { display:none; }

.a-product-sizes { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 28px; }
.a-product-sizes button {
  min-height:42px; padding:9px 16px; border:1px solid rgba(74,45,32,.2); border-radius:10px;
  background:transparent; color:var(--a-text); font:inherit; font-size:13px; cursor:pointer;
  transition:border-color .2s ease, background .2s ease;
}
.a-product-sizes button[aria-pressed="true"] { border-color:var(--a-text); background:#fff; font-weight:700; }

/* 価格とボタンは常に下に見えている */
.a-product-buy {
  position:sticky; bottom:0; z-index:2; display:flex; align-items:center; gap:20px;
  margin:auto calc(-1 * var(--pd-pad)) 0; padding:18px var(--pd-pad) 22px;
  background:#FFFAF0; box-shadow:0 -1px 0 var(--a-line);
}
.a-product-price { display:flex; flex-direction:column; margin-right:auto; line-height:1.2; }
.a-product-price span { font-size:11.5px; letter-spacing:.04em; color:var(--a-text-2); }
.a-product-price span:empty { display:none; }
.a-product-price strong {
  font-family:var(--a-serif-en); font-weight:500; font-size:30px; letter-spacing:-.01em;
  font-variant-numeric:tabular-nums lining-nums;
}
.a-product-modal .a-product-add {
  min-width:210px; min-height:52px; padding:12px 26px; border-radius:999px;
  background:#8F4E1F; border:1px solid #8F4E1F; color:var(--cream-100);
  font-size:14px; letter-spacing:.06em;
  transition:background .25s ease, transform .3s cubic-bezier(.32,.72,0,1);
}
.a-product-modal .a-product-add:hover { background:#743D16; border-color:#743D16; }
.a-product-modal .a-product-add:not([disabled]):active { transform:scale(.97); }
.a-product-modal .a-product-add[disabled] { background:#EADBC2; border-color:transparent; color:#7E6A57; }

/* タブレット幅：写真の列を比率で割る */
@media (min-width:761px) and (max-width:1000px) {
  .a-product-modal { width:calc(100vw - 40px); }
  .a-product-grid { grid-template-columns:minmax(0,.82fr) minmax(0,1fr); }
}
/* スマホ：下から出るシート。写真は 4:5 で上に置き、全体を1本でスクロールする */
@media (max-width:760px) {
  .a-product-modal {
    left:0; right:0; top:auto; bottom:0; width:100%; height:auto; max-height:calc(100dvh - 20px);
    border-radius:22px 22px 0 0; transform:translateY(28px);
  }
  .a-product-modal.open { transform:translateY(0); }
  .a-product-grid { display:block; height:auto; max-height:calc(100dvh - 20px); overflow-y:auto; overscroll-behavior:contain; }
  .a-product-media { height:auto; aspect-ratio:4/5; max-height:60svh; }
  .a-product-body { --pd-pad:20px; height:auto; overflow:visible; padding:26px var(--pd-pad) 0; }
  .a-product-close { background:rgba(255,250,240,.82); backdrop-filter:blur(8px); box-shadow:0 2px 10px rgba(30,19,13,.18); }
  .a-product-head { padding-right:0; }
  .a-product-body h2 { font-size:28px; }
  .a-product-story { font-size:14px; line-height:2; }
  .a-product-pickup-fields { grid-template-columns:1fr; }
  .a-product-pickup-fields > p { grid-column:auto; }
  .a-product-buy { gap:14px; padding:14px var(--pd-pad) max(14px, env(safe-area-inset-bottom)); }
  .a-product-price strong { font-size:26px; }
  .a-product-modal .a-product-add { flex:1; min-width:0; }
}
@media (prefers-reduced-motion: reduce) {
  .a-product-modal, .a-product-back, .a-product-media > img, .a-product-media .mcar-track { transition:none; }
  .a-product-media > img { transform:none; }
}
.a-variants button[aria-pressed="true"] { border-color: var(--amber-600); color: var(--amber-600); background: var(--warm-white); font-weight: 700; }

.a-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.a-price { font-family: var(--a-serif-en); font-size: 22px; }
.a-add {
  flex: 0 0 auto; white-space: nowrap; font: inherit; font-size: 13px; font-weight: 700;
  min-height: 44px; padding: 11px 18px; border-radius: var(--a-radius-pill); cursor: pointer;
  background: var(--amber-600); color: var(--cream-100); border: 1px solid var(--amber-600);
}
.a-add:hover { background: var(--toast-500); border-color: var(--toast-500); }
.a-add[disabled] { background: var(--oat-200); border-color: var(--oat-200); color: #8A7A66; cursor: not-allowed; }

/* ---------------- Pairing ---------------- */
.a-pairing { background: var(--warm-white); padding: 72px 0; border-top: 1px solid var(--a-line); }
.a-pairing-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
  background: var(--cream-100); border: 1px solid var(--a-line); border-radius: var(--a-radius); padding: 28px;
}
.a-pairing h2 { font-family: var(--a-serif-ja); font-weight: 500; font-size: clamp(21px, 4vw, 30px); margin: 6px 0 10px; }
.a-pairing p { color: var(--a-text-2); margin: 0 0 14px; font-size: 14px; }
.a-pair-visual { display: flex; align-items: center; justify-content: center; gap: 10px; }
.a-pair-visual svg { width: 40%; height: auto; }
.a-pair-plus { font-family: var(--a-serif-en); font-size: 26px; color: var(--toast-500); }
.a-btn-ghost {
  display: inline-block; text-decoration: none; font-size: 13px; font-weight: 700;
  border: 1px solid var(--amber-600); color: var(--amber-600);
  border-radius: var(--a-radius-pill); padding: 11px 18px; min-height: 44px;
}
.a-btn-ghost:hover { background: var(--amber-600); color: var(--cream-100); }

/* ---------------- GRAY roaster ---------------- */
.a-gray-roaster {
  position:relative; overflow:hidden; padding:clamp(78px,10vw,132px) 0;
  background:#242321; color:#FFF8E9;
}
.a-gray-roaster::before {
  content:''; position:absolute; inset:0; pointer-events:none; opacity:.22;
  background:radial-gradient(circle at 18% 28%,rgba(241,202,115,.18),transparent 34%),
             radial-gradient(rgba(255,248,233,.12) .5px,transparent .6px);
  background-size:auto,4px 4px;
}
.a-gray-roaster-grid {
  position:relative; display:grid; grid-template-columns:minmax(260px,.82fr) minmax(340px,1.18fr);
  gap:clamp(48px,8vw,112px); align-items:center;
}
.a-gray-roaster-mark {
  min-height:clamp(240px,34vw,420px); display:grid; place-items:center;
  border-radius:48% 52% 44% 56% / 54% 44% 56% 46%;
  background:#171716;
}
.a-gray-roaster-mark img { width:min(74%,390px); height:auto; }
.a-gray-roaster-copy .a-eyebrow { margin:0 0 20px; color:var(--butter-300); }
.a-gray-roaster-copy h2 {
  margin:0 0 24px; max-width:14em; font-family:var(--a-serif-ja); font-weight:500;
  font-size:clamp(30px,4.4vw,54px); line-height:1.35; letter-spacing:-.03em; text-wrap:balance;
}
.a-gray-roaster-copy > p:not(.a-eyebrow) {
  max-width:38em; margin:0 0 30px; color:rgba(255,248,233,.76); font-size:14px; line-height:2;
}
.a-btn-primary {
  display:inline-flex; align-items:center; justify-content:space-between; gap:34px;
  min-height:52px; padding:13px 22px; border:1px solid var(--butter-300);
  border-radius:var(--a-radius-pill); background:var(--butter-300); color:#2A1B12;
  text-decoration:none; font-size:13px; font-weight:700;
  transition:transform .22s ease,background .22s ease,border-color .22s ease;
}
.a-btn-primary:hover { transform:translateY(-2px); background:#FFE1A0; border-color:#FFE1A0; }
.a-btn-primary:active { transform:translateY(0) scale(.98); }

/* 主要CTAは同じ輪郭に統一。フィルターや数量操作は用途別の形を維持する。 */
:where(.a-hero-cta a,.a-counter-bottom a,.a-btn-ghost,.a-btn-primary,.a-visit-actions a,.a-add,.a-checkout,.a-brand-switch,.a-bag) {
  border-radius:var(--a-radius-pill);
}

@media (max-width:760px) {
  .a-gray-roaster-grid { grid-template-columns:1fr; gap:38px; }
  .a-gray-roaster-mark { min-height:260px; }
  .a-gray-roaster-copy h2 { font-size:clamp(31px,9.2vw,42px); }
  .a-btn-primary { width:100%; }
}

/* ---------------- Visit ---------------- */
.a-visit { background:linear-gradient(180deg,#7C5735,#8A6440); color: var(--cream-100); padding: 76px 0; }
.a-visit h2 { font-family: var(--a-serif-ja); font-weight: 500; font-size: clamp(24px, 5vw, 38px); margin: 6px 0 24px; }
.a-visit .a-eyebrow { color: var(--butter-300); }
.a-visit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; }
.a-visit dl { margin: 0; display: grid; grid-template-columns: 7em 1fr; gap: 10px 16px; font-size: 14px; }
.a-visit dt { font-family: var(--a-mono); font-size: 11px; letter-spacing: .12em; color: var(--butter-300); }
.a-visit dd { margin: 0; }
.a-visit a { color: var(--butter-300); }
.a-visit-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.a-visit-actions a {
  text-decoration: none; font-size: 13px; font-weight: 700; min-height: 44px;
  padding: 11px 18px; border-radius: var(--a-radius-pill);
  background: var(--butter-300); color: var(--espresso-900); display: inline-block;
}
.a-visit-actions a.ghost { background: transparent; color: var(--butter-300); border: 1px solid var(--butter-300); }

/* ---------------- Footer ---------------- */
.a-footer { background:linear-gradient(180deg,#8A6440,#775433); color: #F6E8D0; padding: 52px 0 34px; font-size: 13px; }
.a-footer a { color: var(--oat-200); text-decoration: none; }
.a-footer a:hover { color: var(--butter-300); }
.a-footer-grid { display: flex; flex-wrap: wrap; gap: 26px 44px; justify-content: space-between; }
.a-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.a-footer-bottom {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,248,233,.16);
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-family: var(--a-mono); font-size: 10.5px; color: rgba(234,217,184,.7);
}

/* ---------------- Bag drawer（保存領域と決済APIはGRAYと共有） ---------------- */
.a-drawer-back {
  position: fixed; inset: 0; background: rgba(39,25,20,.5); z-index: 120;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.a-drawer-back.open { opacity: 1; pointer-events: auto; }
.a-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(420px, 92vw); z-index: 130;
  background: var(--warm-white); border-left: 1px solid var(--a-line);
  transform: translateX(100%); transition: transform .28s ease;
  display: flex; flex-direction: column;
}
.a-drawer.open { transform: translateX(0); }
.a-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--a-line); }
.a-drawer-head h2 { font-family: var(--a-serif-ja); font-weight: 500; font-size: 18px; margin: 0; }
.a-drawer-items { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 18px; }
.a-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--a-line); }
.a-line-name { font-size: 14px; }
.a-line-brand { font-family: var(--a-mono); font-size: 10px; color: var(--toast-500); }
.a-line-price { font-family: var(--a-serif-en); font-size: 15px; text-align: right; }
.a-qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.a-qty button {
  width: 40px; height: 40px; min-height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--a-line); background: var(--cream-100); color: var(--a-text); font: inherit;
}
.a-qty span { font-family: var(--a-mono); font-size: 13px; min-width: 22px; text-align: center; }
/* クーポン・受け取り方法で背が高くなるため、収まらない時はここもスクロールさせる */
.a-drawer-foot { padding: 16px 18px 22px; border-top: 1px solid var(--a-line);
  flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.a-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.a-total b { font-family: var(--a-serif-en); font-size: 22px; }
.a-checkout {
  width: 100%; font: inherit; font-size: 14px; font-weight: 700; min-height: 48px;
  border-radius: var(--a-radius-pill); cursor: pointer;
  background: var(--amber-600); color: var(--cream-100); border: 1px solid var(--amber-600);
}
.a-checkout[disabled] { opacity: .6; cursor: not-allowed; }
.a-drawer-note { font-family: var(--a-mono); font-size: 10px; color: var(--a-text-2); margin: 10px 0 0; text-align: center; }
.a-empty { color: var(--a-text-2); font-size: 14px; padding: 28px 0; text-align: center; }
.a-close {
  width: 44px; height: 44px; min-height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--a-line); background: var(--cream-100); color: var(--a-text); font-size: 16px;
}

/* トースト（aria-live） */
.a-toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 18px); z-index: 140;
  background: var(--brown-800); color: var(--cream-100);
  padding: 12px 20px; border-radius: var(--a-radius-pill); font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: 92vw;
}
.a-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- レスポンシブ ---------------- */
@media (max-width: 1024px) {
  .a-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .a-nav-links { display: none; }
  .a-grid { grid-template-columns: 1fr; }
  .a-pairing-card, .a-visit-grid { grid-template-columns: 1fr; }
  .a-story-sticky { height:600dvh; }
  .a-scene-cap,
  .a-stage[data-scene="1"] .a-scene-cap,
  .a-stage[data-scene="2"] .a-scene-cap,
  .a-stage[data-scene="3"] .a-scene-cap,
  .a-stage[data-scene="4"] .a-scene-cap { left:20px; right:48px; top:auto; bottom:72px; width:auto; }
  .a-scene-ja { font-size:clamp(35px,11vw,52px); line-height:1.2; }
  .a-scene-en { font-size:16px; }
  .a-process { width:100%; height:100%; }
  .a-progress { right:14px; }
  .a-progress i { height:18px; }
  .a-progress i.on { height:32px; }
  .a-hero { height:100svh; min-height:620px; padding:100px 0 58px; }
  .a-hero::after { background:linear-gradient(0deg,rgba(50,28,16,.72),rgba(90,52,28,.06) 78%),linear-gradient(90deg,rgba(58,32,18,.3),transparent); }
  .a-hero-film { object-position:57% center; }
  .a-hero h1 { font-size:clamp(42px,13vw,62px); max-width:8em; }
  .a-hero-logo { width:min(330px,78vw); margin-bottom:18px; }
  .a-hero-lede { font-size:14px; }
  .a-cinema-shot { inset:-2%; }
  .a-cinema-shot[data-shot="0"] img { object-position:center 46%; }
  .a-cinema-shot[data-shot="1"] img { object-position:center 58%; }
  .a-cinema-shot[data-shot="2"] img { object-position:center 52%; }
  .a-cinema-shot[data-shot="3"] img { object-position:center; }
  .a-cinema-shot[data-shot="4"] img { object-position:center; }
  .a-cinema-word { font-size:42vw; bottom:.04em; opacity:.65; }
}
@media (max-width: 480px) {
  /* 長いInstagramハンドル等で横スクロールが出ないよう、定義リストを縦積みにする */
  .a-visit dl { grid-template-columns: 1fr; gap: 2px 0; }
  .a-visit dl dt { margin-top: 12px; }
  .a-visit dd, .a-visit a { overflow-wrap: anywhere; }
  .a-brand img { width:112px; height:38px; }
  .a-nav { gap:10px; }
  .a-scene-step { font-size:9px; letter-spacing:.2em; }
}
@media (max-width: 380px) {
  .a-bag { padding: 10px 12px; }
}

/* safe-area */
@supports (padding: env(safe-area-inset-bottom)) {
  .a-drawer-foot { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .a-toast { bottom: calc(22px + env(safe-area-inset-bottom)); }
  .a-footer { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
}

/* ---------------- reduced motion ---------------- */

/* =====================================================================
   Shop / Pairing / Bag — ストーリーの余韻を引き継ぐシネマティックな暗色
   ===================================================================== */
.a-shop {
  background:
    radial-gradient(120% 70% at 12% 0%, rgba(255,206,132,.26), transparent 64%),
    radial-gradient(110% 60% at 90% 22%, rgba(255,190,110,.18), transparent 62%),
    linear-gradient(180deg,#7C5735,#6A4829);
  color:var(--cream-100);
}
.a-shop::before {
  content:''; position:absolute; inset:0; pointer-events:none; opacity:.4;
  background-image:radial-gradient(rgba(255,248,233,.06) .6px, transparent .7px); background-size:4px 4px;
}
.a-shop > .a-wrap { position:relative; z-index:1; }
.a-shop .a-eyebrow { color:var(--butter-300); }
.a-shop-head h2 { color:var(--cream-100); letter-spacing:-.01em; }
.a-shop-head p { color:rgba(255,241,216,.78); }

.a-shop .a-filters button {
  background:rgba(255,238,205,.1); border-color:rgba(255,228,182,.32); color:rgba(255,244,222,.9);
  backdrop-filter:blur(4px);
}
.a-shop .a-filters button:hover { border-color:var(--butter-300); color:var(--butter-300); }
.a-shop .a-filters button[aria-pressed="true"] {
  background:var(--butter-300); border-color:var(--butter-300); color:#2A1206; font-weight:700;
}
.a-shop .a-sort { color:rgba(255,241,216,.78); }
.a-shop .a-sort select {
  background:rgba(255,238,205,.1); border-color:rgba(255,228,182,.32); color:var(--cream-100);
}
.a-shop .a-sort select option { color:#2A1206; }

.a-shop .a-card {
  background:linear-gradient(180deg,#FFF8EA,#F8E9CF);
  border-color:rgba(74,45,32,.14);
  box-shadow:0 16px 30px rgba(46,26,12,.24);
}
.a-shop .a-card-media { background:linear-gradient(180deg,#FDEED4,#F2DDB8); }
.a-shop .a-card-media::before { background:rgba(255,255,255,.72); box-shadow:inset 0 0 0 1px rgba(74,45,32,.07); }
.a-shop .a-card-media svg { filter:saturate(1.04) drop-shadow(0 10px 16px rgba(74,45,32,.2)); }
.a-shop .a-card h3 { color:var(--brown-800); }
.a-shop .a-card .a-card-en { color:var(--toast-500); }
.a-shop .a-card .a-card-desc { color:var(--a-text-2); }
.a-shop .a-allergen { color:#71543F; }
.a-shop .a-price { color:var(--brown-800); }
.a-shop .a-crumb { background:var(--toast-500); }
.a-shop .a-card:hover, .a-shop .a-card:focus-within {
  border-color:var(--amber-500); box-shadow:0 22px 40px rgba(46,26,12,.32);
}
.a-shop .a-stock.available   { color:#3D6639; }
.a-shop .a-stock.low-stock   { color:#8A5F12; }
.a-shop .a-stock.sold-out    { color:#8C3B3B; }
.a-shop .a-stock.coming-soon { color:#584B76; }
.a-shop .a-variants button {
  background:rgba(255,255,255,.66); border-color:rgba(74,45,32,.18); color:var(--a-text-2);
}
.a-shop .a-variants button[aria-pressed="true"] {
  border-color:var(--amber-600); color:var(--amber-600); background:#FFF; font-weight:700;
}
.a-shop .a-add { background:#8F4E1F; border-color:#8F4E1F; color:var(--cream-100); }
.a-shop .a-add:hover { background:#743D16; border-color:#743D16; }
.a-shop .a-add[disabled] { background:#E4D3B6; border-color:transparent; color:#8A7A66; }
.a-shop .a-empty { color:rgba(255,241,216,.72); }

.a-pairing { background:linear-gradient(180deg,#6A4829,#7C5735); border-top-color:rgba(255,232,192,.2); }
.a-pairing-card { background:linear-gradient(180deg,#FFF8EA,#F8E9CF); border-color:rgba(74,45,32,.14); }
.a-pairing h2 { color:var(--brown-800); }
.a-pairing p { color:var(--a-text-2); }
.a-pairing .a-eyebrow { color:var(--toast-500); }
.a-pairing .a-pair-plus { color:var(--amber-600); }
.a-pairing .a-btn-ghost { border-color:var(--amber-600); color:var(--amber-600); }
.a-pairing .a-btn-ghost:hover { background:var(--amber-600); color:var(--cream-100); }

.a-drawer { background:linear-gradient(180deg,#FFF8EA,#F8E9CF); border-left-color:rgba(74,45,32,.14); color:var(--a-text); }
.a-drawer-head { border-bottom-color:rgba(74,45,32,.14); }
.a-drawer-head h2 { color:var(--brown-800); }
.a-close { background:rgba(255,255,255,.7); border-color:rgba(74,45,32,.18); color:var(--a-text); }
.a-line { border-bottom-color:rgba(74,45,32,.12); }
.a-line-brand { color:var(--toast-500); }
.a-qty button { background:rgba(255,255,255,.7); border-color:rgba(74,45,32,.18); color:var(--a-text); }
.a-drawer-foot { border-top-color:rgba(74,45,32,.14); }
.a-checkout { background:#8F4E1F; border-color:#8F4E1F; color:var(--cream-100); }
.a-drawer-note { color:#71543F; }
.a-drawer .a-empty { color:var(--a-text-2); }

/* =====================================================================
   モバイル：商品を2列に（1枚が大きすぎる問題の解消）
   ===================================================================== */
@media (max-width: 720px) {
  .a-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .a-shop { padding: 56px 0 72px; }
  .a-card-body { padding: 12px 12px 14px; gap: 6px; }
  .a-card h3 { font-size: 14px; line-height: 1.45; }
  .a-card .a-card-en { font-size: 10.5px; }
  .a-card .a-card-desc {
    font-size: 11.5px; line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .a-allergen {
    font-size: 9.5px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  }
  .a-stock { font-size: 10px; }
  .a-variants { gap: 5px; }
  .a-variants button { font-size: 11px; padding: 8px 10px; min-height: 40px; }
  .a-card-foot { flex-direction: row; align-items:center; gap:6px; }
  .a-price { flex:1; min-width:0; font-size:17px; white-space:nowrap; }
  .a-add { width:auto; flex:0 1 auto; min-width:0; text-align:center; font-size:10.5px; padding:10px 9px; white-space:nowrap; }
  .a-controls { gap: 8px; }
  .a-filters { gap: 6px; }
  .a-filters button { font-size: 12px; padding: 10px 13px; }
}
@media (max-width: 380px) {
  .a-grid { gap: 10px; }
  .a-card-body { padding: 10px 10px 12px; }
  .a-add { font-size: 12px; }
}


/* 明るい茶の上でも小見出し・ラベルが読めるよう、金をクリーム寄りに */
.a-shop .a-eyebrow { color:#FFEBC4; }
.a-visit .a-eyebrow { color:#FFEBC4; }
.a-visit dt { color:#FFF3DE; }
.a-visit a { color:#FFEBC4; }
.a-visit-actions a:not(.ghost) { color:var(--espresso-900); }
.a-footer { color:#FFF3DF; }
.a-footer a { color:#FFF3DF; }
.a-footer a:hover { color:#FFFFFF; }
.a-footer p { color:#FBEDD6 !important; }
.a-footer-bottom { color:#F7E7CC !important; border-top-color:rgba(255,248,233,.28); }


/* ---- ブランド切替（AMBER → GRAY）---- */
.a-brand-switch {
  display:inline-flex; align-items:center; gap:10px; text-decoration:none;
  padding:7px 14px 7px 9px; border-radius:var(--a-radius-pill);
  border:1px solid rgba(255,248,233,.4); background:rgba(39,25,20,.28);
  color:var(--cream-100); backdrop-filter:blur(8px);
  transition:border-color .2s, background .2s, transform .2s;
}
.a-brand-switch:hover { border-color:var(--butter-300); background:rgba(39,25,20,.46); transform:translateY(-1px); }
/* 新ロゴ（淡いグラデーションの正方形）。明るい版なので補正は掛けない。 */
.a-brand-switch img { display:block; flex:none; width:32px; height:32px; border-radius:5px; }
.a-brand-switch span { display:flex; flex-direction:column; gap:2px; line-height:1.2; }
.a-brand-switch i { font-style:normal; font-family:var(--a-sans); font-size:11px; letter-spacing:.02em; color:rgba(255,244,222,.92); }
.a-brand-switch b { font-family:var(--a-mono); font-size:11px; letter-spacing:.14em; color:var(--butter-300); }
.a-header.is-solid .a-brand-switch { background:rgba(255,248,233,.1); border-color:rgba(255,248,233,.34); }
@media (max-width: 1100px) { .a-brand-switch span { display:none; } .a-brand-switch { padding:6px; gap:0; } }


/* =====================================================================
   AMBER 下層ページ（卸 / お問い合わせ）
   ===================================================================== */
body.a-subpage { background:#4A3120; color:var(--cream-100); padding-top:var(--a-header-h); }
.a-page-hero {
  position:relative; min-height:min(62dvh,520px); display:grid; align-items:end;
  background:#5C4028; overflow:hidden; padding:80px 0 48px;
}
.a-page-film {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;
  filter:brightness(1.06) saturate(1.05);
}
.a-page-hero::after {
  content:''; position:absolute; inset:0; z-index:1;
  background:linear-gradient(0deg,rgba(52,30,17,.82),rgba(90,52,28,.18) 72%),
             linear-gradient(90deg,rgba(58,32,18,.5),transparent 62%);
}
.a-page-hero-inner { position:relative; z-index:2; }
.a-page-hero h1 {
  font-family:var(--a-serif-ja); font-weight:500; color:var(--cream-100);
  font-size:clamp(30px,5.4vw,60px); line-height:1.18; letter-spacing:-.02em; margin:0 0 10px;
}
.a-page-hero .a-hero-lede { color:rgba(255,248,233,.86); }

.a-panel { padding:64px 0; background:linear-gradient(180deg,#7C5735,#6A4829); }
.a-panel.alt { background:linear-gradient(180deg,#6A4829,#7C5735); }
.a-panel-h { font-family:var(--a-serif-ja); font-weight:500; color:var(--cream-100); font-size:clamp(22px,4.4vw,34px); margin:6px 0 18px; }
.a-panel .a-eyebrow { color:#FFEBC4; }

.a-cta {
  display:inline-block; text-decoration:none; font-weight:700; font-size:14px;
  min-height:48px; padding:14px 24px; border-radius:var(--a-radius-pill);
  background:var(--butter-300); color:#2A1206;
}
.a-cta:hover { background:#FFE1A0; }

.a-points { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.a-point {
  background:linear-gradient(180deg,#FFF8EA,#F8E9CF); border:1px solid rgba(74,45,32,.14);
  border-radius:var(--a-radius); padding:22px 24px; color:var(--a-text);
}
.a-point h3 { font-family:var(--a-serif-ja); font-weight:500; font-size:17px; margin:0 0 8px; color:var(--brown-800); }
.a-point p { margin:0; font-size:13.5px; color:var(--a-text-2); }

.a-faq { display:flex; flex-direction:column; gap:10px; }
.a-faq details {
  background:linear-gradient(180deg,#FFF8EA,#F8E9CF); border:1px solid rgba(74,45,32,.14);
  border-radius:var(--a-radius); padding:16px 20px; color:var(--a-text);
}
.a-faq summary { cursor:pointer; font-weight:700; font-size:14.5px; color:var(--brown-800); }
.a-faq summary::marker { color:var(--amber-600); }
.a-faq p { margin:10px 0 0; font-size:13.5px; color:var(--a-text-2); }

.a-contact-grid { display:grid; grid-template-columns:1fr 1.4fr; gap:28px; align-items:start; }
.a-contact-info {
  background:rgba(255,238,205,.1); border:1px solid rgba(255,228,182,.22);
  border-radius:var(--a-radius); padding:22px 24px; display:flex; flex-direction:column; gap:14px;
}
.a-contact-info > div { display:flex; flex-direction:column; gap:3px; font-size:14px; color:var(--cream-100); }
.a-contact-info span { font-family:var(--a-mono); font-size:10.5px; letter-spacing:.14em; color:#FFE7BA; }
.a-contact-info a { color:#FFEBC4; }

.a-form {
  background:linear-gradient(180deg,#FFF8EA,#F8E9CF); border:1px solid rgba(74,45,32,.14);
  border-radius:var(--a-radius); padding:26px; color:var(--a-text);
}
.a-field { margin-bottom:16px; display:flex; flex-direction:column; gap:6px; }
.a-field label { font-family:var(--a-mono); font-size:11.5px; letter-spacing:.08em; color:var(--a-text-2); }
.a-field label b { color:var(--amber-600); }
.a-field input, .a-field select, .a-field textarea {
  width:100%; font:inherit; font-size:15px; padding:12px 14px; min-height:48px;
  border:1px solid rgba(74,45,32,.2); border-radius:10px;
  background:rgba(255,255,255,.72); color:var(--a-text); box-sizing:border-box;
}
.a-field textarea { min-height:130px; resize:vertical; }
.a-field input:focus, .a-field select:focus, .a-field textarea:focus { outline:none; border-color:var(--amber-600); background:#fff; }
.a-form .a-checkout { margin-top:4px; }
.a-form-note { margin:12px 0 0; font-size:13px; text-align:center; color:var(--a-text-2); }
.a-form-note.is-ok { color:#3D6639; font-weight:700; }
.a-form-note.is-error { color:#8C3B3B; font-weight:700; }

@media (max-width: 720px) {
  .a-points, .a-contact-grid { grid-template-columns:1fr; }
  .a-panel { padding:48px 0; }
  .a-form { padding:20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .a-story-sticky { display: none; }        /* 長尺stickyを止める */
  .a-story-static { display: block; }        /* 静止イラスト＋簡潔なフェードへ */
  .a-card:hover, .a-card:focus-within { transform: none; }
}

/* =====================================================================
   バッグのクーポン / 受け取り方法（cart-extras.js）— AMBER
   ===================================================================== */
#amberExtras .cx { display:flex; flex-direction:column; gap:16px; margin-bottom:16px; }
#amberExtras .cx-block { border-top:1px solid var(--a-line); padding-top:14px; }
#amberExtras .cx-label { font-family:var(--a-mono); font-size:11px; letter-spacing:.1em; color:#7A5A44; margin-bottom:8px; }
#amberExtras .cx-radios { display:flex; flex-direction:column; gap:6px; }
#amberExtras .cx-radio {
  display:flex; align-items:center; gap:8px; cursor:pointer; padding:9px 12px;
  border:1px solid var(--a-line); border-radius:10px; font-size:13px;
  color:var(--brown-800); transition:border-color .2s, background .2s;
}
#amberExtras .cx-radio.on { border-color:#8F4E1F; background:#FBF0DD; }
#amberExtras .cx-radio input { accent-color:#8F4E1F; margin:0; }
#amberExtras .cx-note { font-size:12px; line-height:1.7; color:#6B4A34; margin:0 0 8px; }
#amberExtras .cx-fields { display:flex; flex-direction:column; gap:10px; }
#amberExtras .cx-fields label { display:flex; flex-direction:column; gap:4px; font-size:12px; color:#6B4A34; }
#amberExtras .cx-fields input, #amberExtras .cx-fields select, #amberExtras .cx-row input {
  padding:10px 12px; background:#FFFDF8; border:1px solid var(--a-line);
  border-radius:10px; color:var(--brown-800); font-size:14px; font-family:var(--a-sans);
}
#amberExtras .cx-fields input:focus, #amberExtras .cx-fields select:focus, #amberExtras .cx-row input:focus {
  outline:none; border-color:#8F4E1F;
}
#amberExtras .cx-row { display:flex; gap:8px; }
#amberExtras .cx-row input { flex:1 1 auto; min-width:0; font-family:var(--a-mono); letter-spacing:.08em; text-transform:uppercase; }
#amberExtras .cx-apply {
  flex:0 0 auto; padding:0 16px; border:1px solid #8F4E1F; border-radius:10px;
  background:#8F4E1F; color:#FFF8E9; font-size:13px; cursor:pointer;
}
#amberExtras .cx-apply:hover { background:#7A4118; }
#amberExtras .cx-applied {
  display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:10px 12px;
  border:1px solid #8F4E1F; border-radius:10px; background:#FBF0DD;
}
#amberExtras .cx-code { font-family:var(--a-mono); font-size:13px; letter-spacing:.1em; color:#8F4E1F; }
#amberExtras .cx-applied-label { font-size:12px; color:var(--brown-800); }
#amberExtras .cx-remove { margin-left:auto; background:none; border:0; color:#7A5A44; font-size:12px; cursor:pointer; text-decoration:underline; }
#amberExtras .cx-msg { font-size:12px; line-height:1.6; margin:8px 0 0; color:#6B4A34; }
#amberExtras .cx-msg.is-err { color:#B03A1A; }
#amberDiscount .cx-line {
  display:flex; justify-content:space-between; align-items:baseline;
  font-size:13px; color:#8F4E1F; margin-top:6px;
}
.a-total-grand { border-top:1px solid rgba(255,248,233,.18); margin-top:8px; padding-top:10px; }

/* あと¥◯◯で送料無料（cart-extras.js）— AMBER */
#amberExtras .cx-ship { font-size:12px; color:#6B4A34; }
#amberExtras .cx-ship b { color:#8F4E1F; font-size:13px; }
#amberExtras .cx-ship-done { color:#8F4E1F; }
#amberExtras .cx-bar { height:4px; border-radius:99px; background:#EDDCC2; margin-top:7px; overflow:hidden; }
#amberExtras .cx-bar i { display:block; height:100%; background:#8F4E1F; border-radius:99px; transition:width .3s ease; }
#amberDiscount .cx-line-plain { color:#6B4A34; }

/* セット商品 — AMBER */
.a-set-badge {
  position:absolute; top:12px; left:12px; z-index:2; padding:3px 10px; border-radius:99px;
  background:#8F4E1F; color:#FFF8E9; font-family:var(--a-mono); font-size:10px; letter-spacing:.12em;
}
.a-bundle { margin:10px 0 0; padding:10px 12px; background:#F3E4CC; border-radius:10px; }
.a-bundle-head { font-family:var(--a-mono); font-size:10px; letter-spacing:.1em; color:#7A5A44; margin-bottom:5px; }
.a-bundle ul { margin:0; padding-left:0; list-style:none; }
.a-bundle li { font-size:12.5px; line-height:1.8; color:var(--brown-800); }

/* --- パン予約：枠ごとの残数 --- */
#amberExtras .cx-avail { list-style:none; margin:0 0 10px; padding:10px 12px; border:1px solid rgba(107,74,52,.18); border-radius:10px; background:rgba(107,74,52,.05); display:grid; gap:6px; }
#amberExtras .cx-avail li { font-size:12px; line-height:1.7; color:#6B4A34; }
#amberExtras .cx-avail b { font-weight:600; color:#B86F2B; margin-right:8px; }
#amberExtras .cx-note.is-err { color:#c0392b; }

/* ============================================================
   ヒーロー（GRAY のトップに寄せた組み立て）
   ロゴを線で描いてから塗り、その下を店と焼き上がりの写真が横に流れる。
   下端はクリーム（次のセクションの地）へ溶ける。
   動きは js/amber-hero.js と js/journal-flow.js。
   ============================================================ */
.a-hero {
  /* 左が文字の面、右が写真。空いた余白を「写真の領域」に変えて、余りを作らない。 */
  display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  /* 上の .a-hero は align-items:end で、そのままだと中身が伸びず写真が消える */
  grid-template-rows: minmax(0, 1fr); align-items: stretch; align-content: stretch;
  padding: 0;
  height: auto;
  min-height: min(calc(100dvh - var(--a-header-h)), 760px);
  background: #2E1D14;
}
.a-hero-pane {
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--a-header-h) + clamp(22px, 4vh, 48px)) clamp(22px, 3.6vw, 54px) clamp(30px, 5vh, 56px);
  background: linear-gradient(150deg, #3A2418 0%, #4A2D20 58%, #5C4028 100%);
}
.a-hero-shot { position: relative; overflow: hidden; }
.a-hero-shot::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(58,36,24,.5), transparent 38%);
}
.a-hero-film {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: none; opacity: 1;
  animation: aHeroBreathe 16s ease-in-out infinite alternate;
}
/* 2分割にしたので、ヒーロー全体を覆う膜とクリームへの溶け込みは使わない */
.a-hero::after, .a-hero-fade { display: none; }

/* --- ワードマーク。線で描かれてから塗られる（導入で使う） --- */
.a-intro-mark .a-mark-pen {
  fill: none; stroke: var(--cream-100);
  stroke-linecap: round; stroke-linejoin: round; opacity: .92;
}
.a-intro-mark .a-mark-ink { fill: var(--cream-100); fill-opacity: 0; }
/* 1画ずつの時間と遅延、線の切れ目は JS が入れる（長さに比例させるため） */

@keyframes aMarkDraw    { to { stroke-dashoffset: 0; } }
@keyframes aMarkInk     { to { fill-opacity: .97; } }
@keyframes aMarkLineOut { to { opacity: 0; } }

/* --- 左の面の文字 --- */
.a-hero-inner { position: relative; z-index: 5; }
/* 見出しは英文。和文は下に小さく添える */
.a-hero h1 {
  font-family: var(--a-serif-en); font-weight: 300;
  font-size: clamp(34px, 4.2vw, 62px); line-height: 1.08;
  letter-spacing: -.005em; margin: 0 0 14px; max-width: none;
}
.a-hero-ja {
  font-family: var(--a-serif-ja); font-size: clamp(15px, 1.5vw, 19px);
  color: rgba(255, 248, 233, .82); margin: 0 0 16px;
}
.a-hero-lede { font-size: 14px; }
.a-hero-cta { margin: 20px 0 0; }
.a-hero-cta a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 12px 24px; border-radius: var(--a-radius-pill);
  background: var(--amber-500); color: var(--espresso-900); text-decoration: none;
  font-size: 14px; translate: 0 0; transition: translate .2s ease, box-shadow .2s ease, filter .2s ease;
}
@media (hover: hover) { .a-hero-cta a:hover { translate: 0 -2px; filter: brightness(1.06); box-shadow: 0 0 0 2px var(--honey-400); } }

@media (max-width: 760px) {
  /* 狭い画面では左右に割らず、文字の面の下に写真を置く */
  .a-hero {
    grid-template-columns: 1fr; grid-template-rows: auto minmax(260px, 42vh);
    min-height: 0; padding: 0;
  }
  .a-hero-pane { padding: calc(var(--a-header-h) + 26px) 22px 30px; }
  .a-hero-shot::after { background: linear-gradient(0deg, rgba(58,36,24,.35), transparent 42%); }
  .a-hero h1 { font-size: clamp(30px, 9vw, 44px); }
  .a-hero-ja { font-size: 15px; margin-bottom: 12px; }
  .a-hero-lede { font-size: 13px; }
  .a-hero-cta { margin-top: 16px; }
  .a-intro-mark { width: 78vw; }
}

@media (prefers-reduced-motion: reduce) {
  /* 導入そのものを出さない（.a-intro は上で display:none にしている） */
  .a-hero-film { animation: none; }
}

/* パンくず（下層ページ。構造化データと表示を一致させるため実際に見せる） */
.a-crumbs {
  font-family: var(--a-mono);
  font-size: 11px; letter-spacing: .06em;
  color: rgba(255, 244, 222, .72);
  margin: 0 0 14px;
}
.a-crumbs a { color: rgba(255, 244, 222, .92); text-decoration: underline; text-underline-offset: 2px; }
@media (hover: hover) { .a-crumbs a:hover { color: #fff; } }
.a-crumbs span { color: rgba(255, 244, 222, .62); }

/* 冷蔵・冷凍の表示（商品カード） */
.a-temp { font-family: var(--a-mono); font-size: 10.5px; color: var(--toast-500); margin: 0; }

/* 受け取り方法が選べないとき（例：店頭受取のみのケーキが入っている） */
#amberExtras .cx-radio.is-off { opacity: .45; cursor: not-allowed; }


/* =====================================================================
   導入：全画面にロゴを大きく描いてから、ヘッダーへ収める
   （DOMは js/amber-hero.js が作る。JSが動かないときは何も出ない）
   ===================================================================== */
.a-intro {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: radial-gradient(120% 100% at 50% 40%, #5C4028 0%, #3A2418 52%, #241610 100%);
}
.a-intro::after {
  content: ''; position: absolute; inset: 0; opacity: .3; mix-blend-mode: soft-light;
  background-image: var(--a-intro-photo, url('/assets/amber-own-box.jpg'));
  background-size: cover; background-position: center;
}
.a-intro-mark { position: relative; z-index: 2; width: min(760px, 62vw); }
.a-intro-mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.a-intro.is-out { opacity: 0; visibility: hidden; transition: opacity .75s ease, visibility 0s .8s; }
/* 導入のあいだはスクロールさせない */
html.a-intro-lock, html.a-intro-lock body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .a-intro { display: none; } }

/* ============================================================
   Daylight-inspired editorial hero
   写真・浮遊ナビ・情報パネルの構造だけを参照し、
   AMBERの朝／焼きたて／山梨という情報へ置き換える。
   ============================================================ */
body.amber { background:#241811; }
.a-header {
  top:22px; left:50%; right:auto; width:min(960px,calc(100vw - 44px));
  transform:translateX(-50%); border-radius:10px; overflow:hidden;
  background:rgba(255,250,239,.94); border:1px solid rgba(255,255,255,.68);
  box-shadow:0 18px 50px rgba(36,21,12,.19); backdrop-filter:blur(18px);
}
.a-header.is-solid { background:rgba(255,250,239,.96); box-shadow:0 18px 50px rgba(36,21,12,.19); }
.a-header .a-wrap { width:100%; padding-inline:12px 8px; }
.a-header:not(.is-solid) .a-nav-links a,
.a-header.is-solid .a-nav-links a { color:#2E2018; }
.a-header .a-nav-links a:hover,
.a-header.is-solid .a-nav-links a:hover { color:#A9501B; }
.a-header:not(.is-solid) .a-brand img,
.a-header.is-solid .a-brand img { filter:none; }
.a-header .a-bag,
.a-header:not(.is-solid) .a-bag,
.a-header.is-solid .a-bag {
  color:#fffaf0; border:0; border-radius:7px; min-height:42px; padding:10px 18px;
  background:linear-gradient(135deg,#F5A126 0%,#E76621 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.24),0 8px 20px rgba(167,70,19,.22);
}
.a-header .a-brand-switch { display:inline-flex; }
.a-nav { min-height:60px; padding-top:4px; }
.a-brand img { width:126px; height:36px; filter:none; }
.a-nav-links { gap:24px; }
.a-nav-links a { font-size:13px; font-weight:500; }

.a-hero.a-hero-daylight {
  display:block; position:relative; min-height:clamp(650px,88dvh,860px); height:auto; overflow:hidden;
  background:#4A2D20; color:#fffaf0;
}
.a-hero-daylight .a-hero-shot { position:absolute; inset:0; z-index:0; }
.a-hero-daylight .a-hero-shot::after {
  content:''; position:absolute; inset:0; display:block;
  background:
    linear-gradient(90deg,rgba(35,20,12,.68) 0%,rgba(44,25,14,.36) 46%,rgba(27,16,10,.16) 100%),
    linear-gradient(0deg,rgba(25,15,10,.54),transparent 58%);
}
.a-hero-daylight .a-hero-film {
  position:absolute; inset:-2%; width:104%; height:104%; object-fit:cover; object-position:center;
  filter:saturate(.8) contrast(.98) brightness(.88); animation:aHeroBreathe 18s ease-in-out infinite alternate;
}
.a-hero-daylight .a-hero-pane {
  position:relative; z-index:3; min-height:clamp(650px,88dvh,860px); width:100%; padding:0; background:none;
  display:flex; align-items:flex-end;
}
.a-hero-daylight .a-hero-inner {
  width:min(1060px,calc(100vw - 88px)); margin:0 auto;
  padding:clamp(130px,17vh,190px) 0 clamp(58px,8vh,84px);
}
.a-hero-daylight .a-eyebrow {
  color:#fffaf0; font-size:10px; letter-spacing:.22em; margin-bottom:24px;
}
.a-hero-daylight h1 {
  max-width:8.8em; margin:0 0 26px; color:#fffaf0;
  font-size:clamp(56px,6.8vw,96px); line-height:.92; letter-spacing:-.04em;
  text-wrap:balance;
}
.a-hero-daylight .a-hero-ja {
  margin:0 0 12px; color:#fffaf0; font-size:clamp(17px,1.7vw,22px); letter-spacing:.08em;
}
.a-hero-daylight .a-hero-lede {
  max-width:32em; color:rgba(255,250,240,.92); font-size:clamp(14px,1.25vw,17px); line-height:1.75;
}
.a-hero-daylight .a-hero-cta { margin-top:28px; }
.a-hero-daylight .a-hero-cta a {
  border-radius:var(--a-radius-pill); padding:14px 24px; min-height:48px;
  background:#fffaf0; color:#2E2018; font-weight:600; box-shadow:none;
}
@media (max-width:760px) {
  .a-header { top:12px; width:calc(100vw - 24px); }
  .a-header .a-wrap { max-width:100%; padding-inline:10px 7px; }
  .a-header .a-brand { min-width:0; }
  .a-brand img { width:106px; height:32px; }
  .a-header .a-bag,.a-header:not(.is-solid) .a-bag,.a-header.is-solid .a-bag {
    flex:0 0 auto; margin-left:auto; min-height:38px; padding:8px 13px;
  }
  .a-hero.a-hero-daylight { min-height:88svh; }
  .a-hero-daylight .a-hero-pane { min-height:88svh; align-items:flex-end; }
  .a-hero-daylight .a-hero-film { object-position:56% center; }
  .a-hero-daylight .a-hero-inner { width:calc(100vw - 40px); padding:124px 0 38px; }
  .a-hero-daylight h1 { max-width:100%; font-size:clamp(42px,12.6vw,50px); line-height:.96; }
  .a-hero-daylight .a-hero-lede { max-width:21em; font-size:13px; }
}

/* ============================================================
   BAKE / BREAD / GATHER
   新しい3章は通常スクロール。旧製造工程のスクロール演出は使わない。
   ============================================================ */
.a-triptych { background:#f3ead9; color:#38251b; overflow:hidden; }
.a-chapter { position:relative; min-height:clamp(640px,86dvh,840px); overflow:hidden; }
.a-chapter-no {
  margin:0 0 24px; font-family:var(--a-mono); font-size:11px;
  letter-spacing:.18em; text-transform:uppercase;
}
.a-chapter h2 {
  margin:0; font-family:var(--a-serif-ja); font-size:clamp(36px,4.5vw,64px);
  font-weight:400; line-height:1.25; letter-spacing:-.035em; text-wrap:balance;
}
.a-film-sequence,.a-counter-photo {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.a-film-sequence { display:flex; background:#24160f; }
/* 3章の地がクリームだと、ヒーローとの境目が小数の位置（例 299.55px）に来たとき
   その半端な1行にクリームが混ざり、明るい線になる。
   各章は自分の地色を持っているので、外側の地は暗くし、1px だけヒーローに重ねる。 */
.a-triptych { position:relative; margin-top:-1px; background:#24160f; }
.a-chapter-film { background:#24160f; }
.a-film-frame { position:relative; flex:1 1 33.333%; height:100%; margin:0; overflow:hidden; }
.a-film-frame:first-child { clip-path:polygon(0 0,100% 0,92% 100%,0 100%); margin-right:-2.4%; }
.a-film-frame:nth-child(2) { clip-path:polygon(8% 0,100% 0,92% 100%,0 100%); margin-right:-2.4%; }
.a-film-frame:last-child { clip-path:polygon(8% 0,100% 0,100% 100%,0 100%); }
.a-film-frame img {
  display:block; width:100%; height:100%; object-fit:cover;
  filter:saturate(.78) contrast(1.04) brightness(.86); transform:scale(1.02);
}
.a-film-frame:first-child img { object-position:52% center; }
.a-film-frame:nth-child(2) img { object-position:53% center; }
.a-film-frame:last-child img { object-position:45% center; }
.a-chapter-shade {
  position:absolute; inset:0;
  background:linear-gradient(90deg,rgba(36,20,12,.78),rgba(36,20,12,.25) 62%,rgba(36,20,12,.1));
}
.a-chapter-copy {
  position:relative; z-index:2; width:min(1060px,calc(100vw - 88px)); margin:0 auto;
  padding:clamp(112px,14vh,150px) 0 64px; color:#fff9ec;
}
.a-chapter-copy h2 { max-width:9.5em; }
.a-chapter-copy > p:last-child { max-width:38em; margin:34px 0 0; line-height:2; color:rgba(255,249,236,.84); }
.a-chapter-word {
  position:absolute; right:-.04em; bottom:-.2em; z-index:1; margin:0;
  color:rgba(255,248,232,.11); font-family:var(--a-serif-en); font-size:clamp(150px,25vw,390px);
  font-weight:300; line-height:1; letter-spacing:-.06em;
}
.a-chapter-book {
  display:grid; grid-template-columns:minmax(300px,.8fr) 1.2fr; grid-template-rows:1fr;
  gap:clamp(28px,5vw,72px); align-items:center; padding:clamp(76px,8vw,118px) max(7vw,40px);
  background:
    radial-gradient(circle at 16% 22%,rgba(180,112,44,.10),transparent 25%),
    #f5eddd;
}
.a-chapter-book::before {
  content:''; position:absolute; inset:0; pointer-events:none; opacity:.23;
  background-image:radial-gradient(rgba(67,39,23,.22) .55px,transparent .7px); background-size:4px 4px;
}
.a-book-copy { position:relative; z-index:2; align-self:start; padding-top:2.5vh; }
.a-book-copy h2 { font-size:clamp(34px,3.7vw,52px); }
.a-book-copy > p:not(.a-chapter-no) { max-width:33em; margin:30px 0 0; line-height:2; }
.a-book-note {
  padding:20px 0 0 28px; border-left:1px solid rgba(76,42,24,.35);
  font-family:var(--a-serif-ja); font-size:15px;
}
.a-book-photo { position:relative; z-index:1; margin:0; }
.a-book-photo img { display:block; width:100%; height:100%; object-fit:cover; }
.a-book-photo-main { width:min(48vw,660px); height:min(50vh,520px); justify-self:end; transform:rotate(1.2deg); }
.a-book-photo-note {
  position:absolute; right:5vw; bottom:6vh; width:clamp(170px,17vw,260px); height:clamp(210px,27vw,360px);
  padding:10px 10px 42px; background:#fffaf0; transform:rotate(-4deg); box-shadow:0 28px 70px rgba(79,45,25,.18);
}
.a-book-photo-note figcaption {
  position:absolute; left:12px; bottom:10px; font-family:var(--a-mono); font-size:8px; letter-spacing:.08em;
}
.a-book-stroke {
  position:absolute; left:7vw; bottom:12vh; width:180px; height:22px; border-bottom:3px solid #c6632b;
  border-radius:50%; transform:rotate(-5deg);
}
.a-chapter-counter { min-height:clamp(640px,84dvh,820px); background:#2a1b14; color:#fff8eb; }
.a-counter-photo { filter:brightness(.63) saturate(.9); }
.a-chapter-counter::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(25,14,9,.42),transparent 44%,rgba(25,14,9,.7));
}
.a-counter-top,.a-counter-bottom { position:absolute; z-index:2; left:max(4vw,28px); right:max(4vw,28px); }
.a-counter-top { top:clamp(110px,15vh,160px); }
.a-counter-top h2 { max-width:11em; color:#fff8eb; }
.a-counter-bottom {
  bottom:38px; display:grid; grid-template-columns:1fr auto auto; align-items:end; gap:12px;
  padding-top:22px; border-top:1px solid rgba(255,248,235,.46);
}
.a-counter-bottom p { max-width:32em; margin:0; color:rgba(255,248,235,.85); }
.a-counter-bottom p span { display:block; margin-bottom:5px; font-family:var(--a-mono); font-size:9px; letter-spacing:.18em; }
.a-counter-bottom a {
  display:inline-flex; align-items:center; gap:30px; min-height:54px; padding:14px 20px;
  color:#2b1b13; background:#fff7e8; text-decoration:none; font-weight:600;
  border-radius:var(--a-radius-pill);
  transition:transform .25s ease,background .25s ease;
}
.a-counter-bottom a:last-child { background:#e8782e; }
@media (hover:hover) { .a-counter-bottom a:hover { transform:translateY(-3px); background:#f0aa62; } }

@media (max-width:760px) {
  .a-chapter { min-height:84svh; }
  .a-chapter h2 { font-size:clamp(31px,9.4vw,42px); line-height:1.32; }
  .a-chapter-copy { width:calc(100vw - 40px); padding:100px 0 44px; }
  .a-chapter-copy > p:last-child { margin-top:24px; font-size:13px; line-height:1.9; }
  .a-chapter-word { bottom:-.08em; font-size:42vw; }
  .a-film-frame:first-child,.a-film-frame:nth-child(2),.a-film-frame:last-child {
    clip-path:none; margin-right:0;
  }
  .a-film-frame:first-child { flex-basis:44%; }
  .a-film-frame:nth-child(2) { flex-basis:56%; }
  .a-film-frame:last-child { display:none; }
  .a-chapter-book {
    display:block; min-height:auto; padding:76px 20px 60px;
  }
  .a-book-copy { padding:0; }
  .a-book-copy h2 { font-size:clamp(30px,8.8vw,38px); }
  .a-book-copy > p:not(.a-chapter-no) { font-size:13px; }
  .a-book-photo-main { width:90%; height:38svh; margin:42px 0 0 auto; }
  .a-book-photo-note { right:auto; left:8px; bottom:42px; width:36vw; height:46vw; padding:7px 7px 32px; }
  .a-book-stroke { display:none; }
  .a-chapter-counter { min-height:84svh; }
  .a-counter-photo { object-position:58% center; }
  .a-counter-top { top:82px; }
  .a-counter-bottom { bottom:24px; display:flex; flex-wrap:wrap; align-items:stretch; }
  .a-counter-bottom p { flex:1 0 100%; margin-bottom:8px; font-size:13px; }
  .a-counter-bottom a { flex:1 1 140px; justify-content:space-between; gap:12px; min-height:50px; padding:12px 14px; font-size:12px; }
}

/* =====================================================================
   細部の仕上げ（2026-11-21）
   - 見出しを文節で折り返す
   - ボタンの色を2つの決まりにそろえる
       明るい面：焼き色の茶（#8F4E1F）／暗い面・写真の上：バター色（--butter-300）
     これまでオレンジのグラデーションと #e8782e が混ざり、強調色が4色あった
   - ヘッダーの gray 切替を、明るいヘッダーの上で読める色にする
   - 商品一覧：おすすめ商品を横長の大きいカードにし、空きマスを作らない
   ===================================================================== */

/* 日本語の見出しは文節で折り返す。「つく／る。」「焙／煎」のように1〜2字だけが次の行に落ちるのを防ぐ */
body.amber :is(h1, h2, h3, .a-hero-ja) { word-break:auto-phrase; }

/* ---- ヘッダー ----
   gray（styles.css の header.site）と同じ形にする：画面幅いっぱい・角丸なし・
   半透明の地に細い下線・高さ64px・Bag は文字のボタン。
   以前の「浮いた角丸の帯」はオーナーの指示（2026-11-21「ヘッダー直していいよ」）で廃止。 */
:root { --a-header-h: 64px; }
.a-header,
.a-header.is-solid {
  top:0; left:0; right:0; width:auto; transform:none;
  border:0; border-bottom:1px solid rgba(74,45,32,.12); border-radius:0; overflow:visible;
  background:color-mix(in srgb, #FFFAEF 88%, transparent);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  box-shadow:none;
}
.a-header .a-wrap { width:min(1160px, 92vw); padding-inline:0; }
.a-nav { height:var(--a-header-h); min-height:0; padding-top:0; gap:28px; }
.a-header .a-nav-links { gap:22px; }
.a-header .a-nav-links a,
.a-header.is-solid .a-nav-links a { font-size:14px; font-weight:400; color:#6B4634; }
.a-header .a-nav-links a:hover,
.a-header.is-solid .a-nav-links a:hover { color:var(--a-text); }

.a-header .a-brand-switch {
  gap:9px; padding:4px 12px 4px 4px; border-radius:8px;
  border:1px solid rgba(74,45,32,.12); background:transparent; backdrop-filter:none;
  color:var(--a-text);
}
.a-header .a-brand-switch:hover { transform:none; border-color:rgba(74,45,32,.26); background:rgba(74,45,32,.05); }
.a-header .a-brand-switch img { width:30px; height:30px; border-radius:6px; }
.a-header .a-brand-switch i { font-size:9.5px; letter-spacing:.1em; color:var(--a-text-2); }
.a-header .a-brand-switch b { font-family:var(--a-sans); font-size:12px; font-weight:700; letter-spacing:.02em; color:#8F4E1F; }

/* Bag：gray と同じく文字だけのボタン。数が入ったときだけ丸い数字が付く */
.a-header .a-bag,
.a-header:not(.is-solid) .a-bag,
.a-header.is-solid .a-bag {
  min-height:44px; padding:10px 4px; gap:7px;
  border:0; border-radius:0; background:none; box-shadow:none; backdrop-filter:none;
  color:#6B4634; font-family:var(--a-mono); font-size:12px; letter-spacing:.06em;
  transition:color .2s ease;
}
.a-header .a-bag:hover { color:var(--a-text); }
.a-header .a-bag-count { background:#8F4E1F; color:var(--cream-100); }

@media (max-width:760px) {
  .a-header,
  .a-header.is-solid { top:0; width:auto; }
  .a-header .a-wrap { width:auto; max-width:none; padding-inline:16px 12px; }
  .a-nav { gap:12px; }
  .a-header .a-bag,
  .a-header:not(.is-solid) .a-bag,
  .a-header.is-solid .a-bag { min-height:44px; padding:10px 4px; }
}

/* ---- 写真の上のボタン（03 / GATHER） ---- */
.a-counter-bottom a { transition:transform .35s cubic-bezier(.32,.72,0,1), background .25s ease; }
.a-counter-bottom a:last-child { background:var(--butter-300); }
@media (hover:hover) {
  .a-counter-bottom a:hover { background:#fffdf7; }
  .a-counter-bottom a:last-child:hover { background:#FFE1A0; }
}
.a-counter-bottom a:active { transform:scale(.98); }

/* ---- 商品一覧 ----
   写真は縦長なので、カードの写真枠も 4:5 にして切れる量を減らす。 */
.a-shop .a-card { transition:transform .45s cubic-bezier(.32,.72,0,1), box-shadow .45s cubic-bezier(.32,.72,0,1), border-color .3s ease; }
.a-shop .a-card-media { aspect-ratio:4 / 5; }
.a-shop .a-card-media img { transition:transform .9s cubic-bezier(.32,.72,0,1); }
/* 複数枚の写真は1枚ずつではなく、帯ごと拡大する。
   1枚ずつ拡大すると、隣の写真の端が右側からのぞいてしまうため。
   帯の横移動は JS が transform に書くので、拡大は別のプロパティ（scale）で行う。 */
.a-shop .a-card-media .mcar-track { transition:transform .5s cubic-bezier(.4,0,.2,1), scale .9s cubic-bezier(.32,.72,0,1); }
@media (hover:hover) {
  .a-shop .a-card:hover .a-card-media > img,
  .a-shop .a-card:hover .a-card-media > picture img { transform:scale(1.035); }
  .a-shop .a-card:hover .a-card-media .mcar-track { scale:1.035; }
}
.a-shop .a-card:active { transform:translateY(-2px) scale(.995); }
.a-card-lead { display:none; }

/* おすすめ商品（いまはシュトーレン）を2マス分の横長カードにする。
   全5品のとき 2＋1／1＋1＋1 で6マスがちょうど埋まる。
   絞り込みで先頭に来ないときは普通のカードのまま。 */
.a-shop .a-card.is-featured:first-child { grid-column:span 2; flex-direction:row; }
.a-shop .a-card.is-featured:first-child .a-card-media { flex:0 0 46%; aspect-ratio:auto; }
.a-shop .a-card.is-featured:first-child .a-card-body { justify-content:flex-start; gap:10px; padding:clamp(24px,3vw,40px) clamp(20px,2.6vw,34px) clamp(20px,2.4vw,28px); }
.a-shop .a-card.is-featured:first-child h3 { font-size:clamp(24px,2.5vw,34px); line-height:1.3; }
.a-shop .a-card.is-featured:first-child .a-card-en { font-size:14px; margin:0; }
.a-shop .a-card.is-featured:first-child .a-card-lead {
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:8; overflow:hidden; white-space:pre-line;
  margin:10px 0 4px; max-width:28em; color:var(--a-text-2); font-size:13.5px; line-height:1.95;
}
.a-shop .a-card.is-featured:first-child .a-price { font-size:28px; }
.a-shop .a-card.is-featured:first-child .a-add { min-width:180px; }

@media (max-width:560px) {
  /* 狭い画面では写真を上に戻す。写真は横長に切り出す */
  .a-shop .a-card.is-featured:first-child { flex-direction:column; }
  .a-shop .a-card.is-featured:first-child .a-card-media { flex:none; aspect-ratio:5 / 4; }
  .a-shop .a-card.is-featured:first-child .a-card-body { padding:16px 14px 16px; gap:6px; }
  .a-shop .a-card.is-featured:first-child h3 { font-size:21px; }
  .a-shop .a-card.is-featured:first-child .a-card-lead { -webkit-line-clamp:3; font-size:12.5px; line-height:1.85; margin:4px 0 2px; }
  .a-shop .a-card.is-featured:first-child .a-price { font-size:22px; }
  .a-shop .a-card.is-featured:first-child .a-add { min-width:0; font-size:12px; padding:10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .a-shop .a-card, .a-shop .a-card-media img, .a-shop .a-card-media .mcar-slide { transition:none; }
  .a-shop .a-card:hover .a-card-media > img,
  .a-shop .a-card:hover .a-card-media > picture img { transform:none; }
  .a-shop .a-card:hover .a-card-media .mcar-track { scale:none; }
}

/* リンゴのクリスマスケーキ：縦長写真の中央切り抜きだとケーキの下が切れるため、写真を上へずらす（オーナー指示 2026-12-01） */
.a-card-media img[src*="amber-own-apple-xmas"],
.a-product-media img[src*="amber-own-apple-xmas"] { object-position: center 70%; }

/* ============================================================
   スマホの閲覧体験を PC にそろえる（2026-12-01）
   ============================================================ */

/* ---- スマホのメニュー（js/amber-menu.js）----
   PC ではヘッダーにリンクが並ぶので、ボタンは出さない。 */
.a-menu-btn, .a-menu-panel { display:none; }
@media (max-width:760px) {
  .a-menu-btn {
    display:inline-flex; align-items:center; gap:8px; flex:0 0 auto;
    min-height:44px; padding:10px 4px; margin-left:auto;
    border:0; background:none; cursor:pointer;
    color:#6B4634; font-family:var(--a-mono); font-size:12px; letter-spacing:.06em;
  }
  .a-menu-lines { position:relative; display:block; width:18px; height:10px; }
  .a-menu-lines i {
    position:absolute; left:0; right:0; height:1.5px; border-radius:2px; background:currentColor;
    transition:transform .3s cubic-bezier(.32,.72,0,1), top .3s cubic-bezier(.32,.72,0,1);
  }
  .a-menu-lines i:first-child { top:1px; }
  .a-menu-lines i:last-child { top:7.5px; }
  .a-header.is-menu-open .a-menu-lines i:first-child { top:4.25px; transform:rotate(45deg); }
  .a-header.is-menu-open .a-menu-lines i:last-child { top:4.25px; transform:rotate(-45deg); }
  /* Menu が右へ寄るので、Bag は自動の余白を持たない */
  .a-header .a-nav .a-menu-btn ~ .a-bag { margin-left:0; }

  .a-menu-panel {
    position:absolute; top:100%; left:0; right:0;
    display:grid; padding:6px 16px 14px;
    background:#FFFAEF; border-bottom:1px solid rgba(74,45,32,.12);
    box-shadow:0 24px 40px rgba(36,21,12,.16);
  }
  .a-menu-panel[hidden] { display:none; }
  .a-menu-panel a {
    display:flex; align-items:center; justify-content:space-between;
    min-height:52px; padding:0 4px; border-bottom:1px solid rgba(74,45,32,.1);
    color:#2E2018; text-decoration:none; font-family:var(--a-serif-en); font-size:19px; letter-spacing:.02em;
  }
  .a-menu-panel a:last-child { border-bottom:0; }
  .a-menu-panel a span { color:#A9501B; font-family:var(--a-sans); font-size:15px; }
  .a-menu-panel a:active { background:rgba(74,45,32,.05); }
  .a-menu-btn:focus-visible, .a-menu-panel a:focus-visible { outline:2px solid var(--amber-500); outline-offset:2px; }
  /* gray への切り替えは小さな四角だけ。Menu が入るぶん左右の余白を詰める */
  .a-nav { gap:10px; }
}

/* ---- 商品カード（2列）----
   値段とボタンを横に並べると、ボタンが「¥5,500」に重なって数字が切れていた。
   2列のときは値段を上、ボタンを下の全幅にする。 */
@media (max-width:720px) {
  .a-card-foot { flex-direction:column; align-items:stretch; gap:8px; }
  .a-price { flex:none; font-size:18px; }
  .a-add { width:100%; flex:none; min-height:44px; padding:11px 8px; font-size:12px; }
  .a-shop .a-card.is-featured:first-child .a-add { width:100%; }
}

/* ---- 02 / BREAD の小さな写真（ポラロイド）----
   スマホでは説明文が2行になり、写真の上に重なっていた。枠を少し大きくし、下の余白で受ける。 */
@media (max-width:760px) {
  .a-book-photo-note { width:42vw; height:56vw; padding:7px 7px 40px; }
  .a-book-photo-note picture, .a-book-photo-note img { display:block; height:100%; }
  .a-book-photo-note figcaption { left:9px; right:9px; bottom:7px; font-size:7.5px; line-height:1.5; }
}

/* ---- 文章の最後の1〜2文字だけが次の行に落ちないようにする（対応ブラウザのみ） ---- */
body.amber :is(p, li, dd, figcaption) { text-wrap:pretty; }
