/* 表札ワインのラベルを 80×107mm（オリジナルラベルワインと同じ寸法）にする。
   数字は tools/label/geom.py から（巻き角 1.036、表札の帯の巻き角 0.922）。

   .bottle-label の箱 ＝ 瓶の胴の幅いっぱい × 巻いた絵の縦横比。
   下地（表札のまわりの絵。素材ごとに1枚）を背景に置き、まん中に表札の帯（名字を彫った絵）を重ねる。
   どれもラベルに印刷する絵柄で、門灯・ポスト・金庫のダイヤルなどの実物は付かない。 */
.bottle-label:is(.label-marble,.label-gold,.label-stone,.label-dojo){left:32.2%;width:34.7%;top:51.24%;height:auto;aspect-ratio:720 / 1052;padding:0;border-radius:0;box-shadow:none;overflow:visible;
 background-color:transparent;background-repeat:no-repeat;background-position:center;background-size:100% 100%;filter:drop-shadow(0 .6px .8px #020a0755)}
.bottle[data-bottle-wine="white"] .bottle-label:is(.label-marble,.label-gold,.label-stone,.label-dojo){left:34.2%;width:31.8%;top:54.33%}
.bottle-label.label-marble,.bottle-label.label-marble[data-plate-ready]{background-image:url("plate/paper-marble.webp?v=31b")}
.bottle-label.label-gold,.bottle-label.label-gold[data-plate-ready]{background-image:url("plate/paper-gold.webp?v=31b")}
.bottle-label.label-stone,.bottle-label.label-stone[data-plate-ready]{background-image:url("plate/paper-stone.webp?v=31b")}
.bottle-label.label-dojo,.bottle-label.label-dojo[data-plate-ready]{background-image:url("plate/paper-dojo.webp?v=31b")}
/* 以前の帯だけのラベルに付けていた側面の陰は、巻いた絵に含まれるので外す */
.bottle-label:is(.label-marble,.label-gold,.label-stone,.label-dojo)::after{display:none}
/* 金の延べ棒をときどき走る光の帯は、新しい帯の形に合わせて残す */
@media (prefers-reduced-motion:no-preference){
 .bottle-label.label-gold[data-plate-ready]::after{aspect-ratio:900 / 500;-webkit-mask-image:url("plate/label-gold.webp?v=31b");mask-image:url("plate/label-gold.webp?v=31b")}
}
/* 名字の彫りを描けない環境（WebGL2なし）では、表札の面の絵の上に文字を載せる */
.bottle-label:is(.label-marble,.label-gold,.label-stone,.label-dojo):not([data-plate-ready])::before{content:"";display:block;position:absolute;left:10.16%;top:50%;width:79.68%;height:auto;aspect-ratio:var(--plaque-ratio,198 / 83);transform:translateY(-50%);z-index:1;
 background:center / cover no-repeat;border-radius:1px;box-shadow:.6px 1px 1.6px #0007}
.bottle-label.label-marble:not([data-plate-ready])::before{background-image:url("plate/marble-face.webp?v=31")}
.bottle-label.label-gold:not([data-plate-ready])::before{background-image:url("plate/gold-face.webp?v=31");--plaque-ratio:230 / 120}
.bottle-label.label-stone:not([data-plate-ready])::before{background-image:url("plate/stone-face.webp?v=31")}
.bottle-label.label-dojo:not([data-plate-ready])::before{background-image:url("plate/dojo-face.webp?v=31")}
/* 文字の大きさは、ページのスクリプトがラベルの内側の幅に合わせて決める。内側の幅を表札の幅にそろえる（左右の余白は瓶の幅に対する割合） */
.bottle-label:is(.label-marble,.label-gold,.label-stone,.label-dojo){padding:0 3.53%}
.bottle[data-bottle-wine="white"] .bottle-label:is(.label-marble,.label-gold,.label-stone,.label-dojo){padding:0 3.23%}

/* 拡大表示：ラベル全体（平らな絵）と、表札の部分を並べる */
.texture-zoom-figures{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0 0 14px}
.texture-zoom-figures figure{margin:0;min-width:0}
.texture-zoom-figures figcaption{margin-top:6px;font-size:.8125rem;line-height:1.6;color:var(--muted);text-align:center}
.texture-zoom-figures .texture-zoom-plaque{margin-bottom:0}
.label-flat-figure[hidden]{display:none}
.label-flat{position:relative;width:min(100%,230px);margin:0 auto;aspect-ratio:80 / 107;background:#d9d4c8;box-shadow:0 1px 2px #0003,0 8px 20px #0000002b}
.label-flat-art{display:block;width:100%;height:100%}
.label-flat-plate{position:absolute;left:5.50%;top:50%;width:89.00%;height:auto;transform:translateY(-50%);filter:drop-shadow(.4px .8px 1px #0005)}
@media(min-width:700px){
 .texture-zoom-figures{grid-template-columns:minmax(0,250px) minmax(0,1fr);gap:22px;align-items:center}
 .label-flat{width:100%}
 .texture-zoom-figures:has(.label-flat-figure[hidden]){grid-template-columns:minmax(0,1fr)}
}
