/* ===== Aka Design. motion layer ===== */
/* width/height attributes are for CLS only; let CSS (inline height / aspect-ratio) decide the box */
img { height: auto; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* --- scroll reveal (uses individual translate/scale props so inline transforms stay intact) --- */
.js .rv { opacity: 0; translate: 0 28px; transition: opacity .9s cubic-bezier(.22,.61,.36,1), translate .9s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; translate: 0 0; }
.js .rv-img { opacity: 0; scale: 1.04; transition: opacity 1.1s ease, scale 1.6s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0s); }
.js .rv-img.in { opacity: 1; scale: 1; }

/* --- first view on load --- */
.js .fv { opacity: 0; translate: 0 18px; transition: opacity 1s cubic-bezier(.22,.61,.36,1), translate 1s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0s); }
.js.loaded .fv { opacity: 1; translate: 0 0; }
.js .fv-photo { opacity: 0; scale: 1.06; transition: opacity 1.4s ease .2s, scale 2.6s cubic-bezier(.22,.61,.36,1) .2s; }
.js.loaded .fv-photo { opacity: 1; scale: 1; }
.js .fv-badge { scale: 0; rotate: -30deg; transition: scale .8s cubic-bezier(.34,1.56,.64,1) 1.1s, rotate .8s cubic-bezier(.34,1.56,.64,1) 1.1s; }
.js.loaded .fv-badge { scale: 1; rotate: 0deg; }

/* hand-drawn underline draws itself */
.js .draw path { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.2s cubic-bezier(.65,0,.35,1); transition-delay: var(--d, .9s); }
.js.loaded .draw.fv-draw path, .js .draw.in path { stroke-dashoffset: 0; }

/* steam on the badge cup */
@keyframes steam { 0%,100% { translate: 0 0; opacity: .9; } 50% { translate: 0 -2px; opacity: .45; } }
.fv-badge svg path:nth-child(n+3) { animation: steam 2.4s ease-in-out infinite; }
.fv-badge svg path:nth-child(4) { animation-delay: .4s; }
.fv-badge svg path:nth-child(5) { animation-delay: .8s; }

/* drop icon in eyebrows: a small drip when revealed */
@keyframes drip { 0% { translate: 0 -10px; opacity: 0; } 60% { translate: 0 2px; opacity: 1; } 100% { translate: 0 0; } }
.js .in svg.drop, .js.loaded .fv svg.drop { animation: drip .8s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--d, 0s) + .15s); }

/* background words drift in */
.js .bgword { opacity: 0; translate: 40px 0; transition: opacity 1.6s ease .3s, translate 1.8s cubic-bezier(.22,.61,.36,1) .3s; }
.js.loaded .bgword { opacity: 1; translate: 0 0; }

/* --- side CTA slides in --- */
.js .side-cta > * { translate: 110% 0; transition: translate .7s cubic-bezier(.22,.61,.36,1), filter .3s; }
.js.loaded .side-cta > * { translate: 0 0; }
.js.loaded .side-cta > *:nth-child(1) { transition-delay: 1.4s; }
.js.loaded .side-cta > *:nth-child(2) { transition-delay: 1.55s; }
.side-cta > a:hover { filter: brightness(1.06); }
.js.loaded .side-cta > a:hover { translate: -6px 0; transition-delay: 0s; }

/* --- sp bottom bar --- */
.js .sp-cta { translate: 0 100%; transition: translate .5s cubic-bezier(.22,.61,.36,1); }
.js .sp-cta.show { translate: 0 0; }

/* --- hovers --- */
a { transition: color .25s, background-color .25s, border-color .25s, opacity .25s, box-shadow .3s, translate .3s; }
a[style*="border-radius: 999px"]:hover { translate: 0 -2px; box-shadow: 0 8px 20px rgba(58,46,39,.14); }
a span[aria-hidden="true"][style*="border-radius: 50%"] { transition: background-color .3s, translate .3s; }
a span[aria-hidden="true"][style*="border-radius: 50%"] svg { transition: stroke .3s; }
a:hover span[aria-hidden="true"][style*="border-radius: 50%"] { background-color: #B5482F; translate: 4px 0; }
a:hover span[aria-hidden="true"][style*="border-radius: 50%"] svg { stroke: #FFFDF9; }
.card-link h3, .zoom-card h3 { transition: color .3s; }
.card-link:hover h3, .zoom-card:hover h3 { color: #B5482F; }

/* image zoom inside its frame on hover (cards with links) */
.zoom-wrap { display: block; overflow: hidden; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.zoom-card img { transition: scale .6s cubic-bezier(.22,.61,.36,1), filter .6s; }
@media (hover: hover) {
  .zoom-card:hover img { scale: 1.06; filter: brightness(1.03); }
}
@media (prefers-reduced-motion: reduce) { .zoom-card img { transition: none !important; } .zoom-card:hover img { scale: none !important; } }

/* gnav underline */
.gnav-link { position: relative; }
.gnav-link::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 0; height: 2px; border-radius: 2px; background: #B5482F; transition: width .3s, left .3s; }
.gnav-link:hover::after { width: 60%; left: 20%; }

/* sp menu panel */
.sp-menu[open] ul { animation: menuIn .35s cubic-bezier(.22,.61,.36,1); }
@keyframes menuIn { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }

/* faq details */
details > summary { cursor: pointer; }
details[open] > *:not(summary) { animation: menuIn .35s ease; }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv-img, .js .fv, .js .fv-photo, .js .fv-badge, .js .bgword, .js .side-cta > *, .js .sp-cta { opacity: 1 !important; translate: none !important; scale: none !important; rotate: none !important; transition: none !important; }
  .js .draw path { stroke-dashoffset: 0 !important; transition: none !important; }
  .fv-badge svg path, .js svg.drop { animation: none !important; }
}

/* marker: draws in when scrolled into view */
.js .marker { background-size: 0% 100%; transition: background-size 1.2s cubic-bezier(.65,0,.35,1) .4s; }
.js .marker.on { background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce) { .js .marker { background-size: 100% 100% !important; transition: none !important; } }
.digest-card span:last-child { transition: color .3s; }
.digest-card:hover span:last-child { color: #B5482F; }

/* JP line breaks: break only at <wbr> phrase boundaries (BudouX), fallback when overflowing */
body{word-break:keep-all;overflow-wrap:anywhere;line-break:strict}
h1,h2,h3,p{word-break:keep-all}
