/* MAKE "はじめてでも、ちゃんとつくれる。": a bento; the biggest tile carries the main claim (1着から),
   every tile has a small looping diagram drawn in CSS */
.rs .section__head { margin-bottom: 40px; }
.bn { display: grid; gap: 20px; grid-template-columns: 1.25fr 1fr 1fr; grid-template-areas: "a b c" "a d d"; }
.bn__tile { display: flex; flex-direction: column; gap: 10px; padding: 0 24px 24px; }
.bn__tile--a { grid-area: a; } .bn__tile--b { grid-area: b; } .bn__tile--c { grid-area: c; } .bn__tile--d { grid-area: d; }
.bn__tile h3 { font-size: clamp(22px, 1rem + 1.2vw, 30px); font-weight: 900; line-height: 1.25; }
.bn__tile p:last-child { font-size: 14px; line-height: 1.8; color: var(--muted); }
.bn__bar { margin: 0 -24px 8px; padding: 10px 16px; border-bottom: var(--rule); background: var(--soft); font: 700 11px/1 var(--mono); letter-spacing: .12em; }
.bn__fig { display: grid; place-items: center; min-height: 150px; margin-bottom: 6px; border: 1.5px dashed rgba(26, 26, 46, .25); background: var(--white) radial-gradient(rgba(26, 26, 46, .1) 1px, transparent 1.2px) 0 0 / 14px 14px; }
.bn__tile--a .bn__fig { flex: 1; min-height: 300px; padding: 18px 0; }
.bn__tile--a svg { display: block; width: min(100%, 300px); height: auto; overflow: visible; }
@media (max-width: 899px) {
	.bn { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d"; }
	.bn__tile--a .bn__fig { min-height: 0; }
}

/* 01: a purple sample first, then the order fills in tee by tee */
.bn-tee path { fill: var(--ink); }
.bn-tee:first-child path { fill: var(--purple); }
.bn-tee { transform-box: fill-box; transform-origin: center; animation: bn-tee 6s infinite both; animation-delay: calc(var(--i) * 110ms); }
.bn-tee:first-child { animation-name: bn-sample; animation-delay: 0ms; }
@keyframes bn-sample { 0% { opacity: 0; transform: scale(.6); } 8%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes bn-tee { 0%, 18% { opacity: 0; transform: translateY(8px); } 28%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 02: the spec travels to the factory */
.bn-route { grid-auto-flow: column; align-items: center; justify-content: center; }
.bn-route span { padding: 8px 12px; border: var(--rule); background: var(--white); font-weight: 800; font-size: 14px; }
.bn-route b { position: relative; width: 90px; border-top: 2px dashed var(--purple); }
.bn-route b::after { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1.5px var(--frame); animation: bn-move 2.4s ease-in-out infinite; }
.bn-route__f { animation: bn-ok 2.4s infinite; }
@keyframes bn-move { 0% { left: 0; } 70%, 100% { left: calc(100% - 10px); } }
@keyframes bn-ok { 0%, 65% { background: var(--white); } 75%, 100% { background: var(--lime); } }

/* 03: the quote fills in, then it is approved */
.bn-quote { position: relative; display: grid; gap: 10px; width: 150px; padding: 18px 16px; border: var(--rule); background: var(--white); box-shadow: 4px 4px 0 var(--frame); }
.bn-quote i { height: 8px; background: rgba(26, 26, 46, .15); }
.bn-quote i:nth-child(2) { width: 70%; }
.bn-quote i:nth-child(3) { width: 85%; background: var(--purple); animation: bn-bar 3s infinite; }
.bn-quote em { position: absolute; right: -14px; bottom: -14px; padding: 6px 9px; border: var(--rule); background: var(--lime); font: 800 12px/1 var(--mono); font-style: normal; transform: rotate(-8deg); animation: bn-stamp 3s infinite; }
@keyframes bn-bar { 0%, 20% { width: 10%; } 60%, 100% { width: 85%; } }
@keyframes bn-stamp { 0%, 60% { opacity: 0; transform: rotate(-8deg) scale(1.6); } 70%, 100% { opacity: 1; transform: rotate(-8deg); } }

/* 04: a question and its answer */
.bn-chat { place-items: start stretch; align-content: center; gap: 10px; padding: 16px 20px; }
.bn-chat span { justify-self: start; max-width: 80%; padding: 9px 13px; border: var(--rule); border-radius: 14px 14px 14px 2px; background: var(--white); font-size: 13.5px; font-weight: 700; animation: bn-in 5s infinite both; }
.bn-chat .me { justify-self: end; border-color: var(--purple); border-radius: 14px 14px 2px 14px; background: var(--purple); color: var(--white); animation-delay: 1.2s; }
@keyframes bn-in { 0% { opacity: 0; transform: translateY(8px); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) { .bn * , .bn *::after { animation: none !important; } }
